Rewards Pool
RewardsPool
RewardsPool
handles the distribution of a single token to a parent pool such as the SDLPool
. A parent pool may control multiple RewardsPools
if stakers receive rewards in the form of multiple different tokens.
View Functions
token
Returns the address of the rewards token this pool distributes
Return Values
token
address
Address of rewards token
withdrawableRewards
Returns an account's total unclaimed rewards
Parameters
_account
address
Address of account
Return Values
rewards
uint256
Total unclaimed rewards
Write Functions
withdraw
Withdraws the sender's unclaimed rewards
withdraw
Withdraws an account's unclaimed rewards
Parameters
_account
address
Account to withdraw for
onTokenTransfer
ERC677 implementation that receives rewards and distributes them
distributeRewards
Distributes new rewards that have been deposited
updateReward
Updates an account's principal reward balance
Parameters
_account
address
Address of account
Last updated