-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(RewardStreamerMP): extract MP and Stake mathematical formula…
…s to abstract contracts
- Loading branch information
Showing
10 changed files
with
614 additions
and
336 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.26; | ||
|
||
import { ITrustedCodehashAccess } from "./ITrustedCodehashAccess.sol"; | ||
|
||
/** | ||
* @title IStakeConstants | ||
* @author Ricardo Guilherme Schmidt <ricardo3@status.im> | ||
* @notice Interface for Stake Constants | ||
* @dev This interface is necessary to linearize the inheritance of StakeMath and MultiplierPointMath | ||
*/ | ||
interface IStakeConstants { | ||
function MIN_LOCKUP_PERIOD() external view returns (uint256); | ||
function MAX_LOCKUP_PERIOD() external view returns (uint256); | ||
function MP_APY() external view returns (uint256); | ||
function MAX_MULTIPLIER() external view returns (uint256); | ||
} |
Oops, something went wrong.