Rewards Pool WSD
Last updated
Last updated
RewardsPoolWSD
is similar to RewardsPool
but it handles a single rebasing token minted by a StakingPool
by wrapping the tokens when they’re received for distribution and unwrapping them when a user claims their rewards.
Returns the address of the rewards token this pool distributes
Return Values
Name | Type | Description |
---|---|---|
Returns the address of the wrapped version of the token this pool distributes
Return Values
Name | Type | Description |
---|---|---|
Returns an account's total unwrapped unclaimed rewards
Parameters
Return Values
Returns an account's total wrapped unclaimed rewards
Parameters
Return Values
Withdraws the sender's unclaimed rewards
Withdraws an account's unclaimed rewards
Parameters
ERC677 implementation that receives rewards and distributes them
Distributes new rewards that have been deposited
Updates an account's principal reward balance
Parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
token
address
Address of rewards token
wrappedToken
address
Address of wrapped rewards token
_account
address
Address of account
rewards
uint256
Total unclaimed rewards (unwrapped)
_account
address
Address of account
rewards
uint256
Total unclaimed rewards (wrapped)
_account
address
Account to withdraw for
_account
address
Address of account