Staking


Functions:

Events:

Modifiers:

Graphs:


Function Definitions:

constructor()

constructor(contract IERC20 _rewardsToken, contract IERC20 _stakingToken, contract IRewardsEscrow _rewardsEscrow) public 

totalSupply()

totalSupply() external  returns (uint256)

balanceOf()

balanceOf(address account) external  returns (uint256)

lastTimeRewardApplicable()

lastTimeRewardApplicable() public  returns (uint256)

rewardPerToken()

rewardPerToken() public  returns (uint256)

earned()

earned(address account) public  returns (uint256)

getRewardForDuration()

getRewardForDuration() external  returns (uint256)

stakeFor()

stakeFor(uint256 amount, address account) external 

stake()

stake(uint256 amount) external 

withdraw()

withdraw(uint256 amount) public 

getReward()

getReward() public 

exit()

exit() external 

setEscrowDuration()

setEscrowDuration(uint256 duration) external 

notifyRewardAmount()

notifyRewardAmount(uint256 reward) external 

approveRewardDistributor()

approveRewardDistributor(address _distributor, bool _approved) external 

recoverERC20()

recoverERC20(address tokenAddress, uint256 tokenAmount) external 

setRewardsDuration()

setRewardsDuration(uint256 _rewardsDuration) external 

setRewardsEscrow()

setRewardsEscrow(address _rewardsEscrow) external 

Events

RewardAdded

RewardAdded(uint256 reward)

Staked

Staked(address user, uint256 amount)

RewardsEscrowUpdated

RewardsEscrowUpdated(address _previous, address _new)

Withdrawn

Withdrawn(address user, uint256 amount)

RewardPaid

RewardPaid(address user, uint256 reward)

RewardsDurationUpdated

RewardsDurationUpdated(uint256 newDuration)

EscrowDurationUpdated

EscrowDurationUpdated(uint256 _previousDuration, uint256 _newDuration)

Recovered

Recovered(address token, uint256 amount)

RewardDistributorUpdated

RewardDistributorUpdated(address distributor, bool approved)

Modifiers

updateReward()

updateReward(address account)

Graphs

Dependency Graph

Inheritance Graph

Last updated