-
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.
- Loading branch information
Showing
5 changed files
with
60 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// hevm: flattened sources of src/interfaces/IStakingRewards.sol | ||
|
||
pragma solidity >=0.4.24; | ||
|
||
////// src/interfaces/IStakingRewards.sol | ||
/* pragma solidity >=0.4.24; */ | ||
|
||
interface IStakingRewards { | ||
// Views | ||
function lastTimeRewardApplicable() external view returns (uint256); | ||
|
||
function rewardPerToken() external view returns (uint256); | ||
|
||
function earned(address account) external view returns (uint256); | ||
|
||
function getRewardForDuration() external view returns (uint256); | ||
|
||
function totalSupply() external view returns (uint256); | ||
|
||
function balanceOf(address account) external view returns (uint256); | ||
|
||
// Mutative | ||
|
||
function stake(uint256 amount) external; | ||
|
||
function withdraw(uint256 amount) external; | ||
|
||
function getReward() external; | ||
|
||
function exit() external; | ||
} | ||
|
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,19 @@ | ||
// hevm: flattened sources of src/RewardsDistributionRecipient.sol | ||
|
||
pragma solidity >=0.5.16 <0.6.0; | ||
|
||
////// src/RewardsDistributionRecipient.sol | ||
/* pragma solidity ^0.5.16; */ | ||
|
||
contract RewardsDistributionRecipient { | ||
// "sc/ktnstk" in bytes. | ||
address public constant rewardsDistribution = 0x73632F6b746e73746B0000000000000000000000; | ||
|
||
function notifyRewardAmount() external; | ||
|
||
modifier onlyRewardsDistribution() { | ||
require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract"); | ||
_; | ||
} | ||
} | ||
|
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