-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Azuro-protocol/staking-incentive
Staking Incentive
- Loading branch information
Showing
9 changed files
with
879 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.24; | ||
|
||
/// @title Fixed-point math tools | ||
library FixedMath { | ||
uint256 constant ONE = 1e18; | ||
|
||
function mul(uint256 self, uint256 other) internal pure returns (uint256) { | ||
return (self * other) / ONE; | ||
} | ||
|
||
function div(uint256 self, uint256 other) internal pure returns (uint256) { | ||
return (self * ONE) / other; | ||
} | ||
} |
Oops, something went wrong.