StakeableTokenWrapper
A wrapper for an ERC-20 that can be staked and withdrawn.
In this contract, staked tokens don't do anything- instead other contracts can inherit from this one to add functionality. / c
#
Functions#
constructorCreates a new StakeableTokenWrapper with given _stakedToken
address
#
Parameters:Name | Type | Description |
---|---|---|
_stakedToken | contract IERC20 | address of a token that will be used to stake |
/
#
balanceOfRead how much account
has staked in this contract
#
Parameters:Name | Type | Description |
---|---|---|
account | address | address of an account |
#
Return Values:Name | Type | Description |
---|---|---|
amount | address | of total staked ERC20(this.stakedToken) by account |
/
#
stakeStakes given amount
in this contract
#
Parameters:Name | Type | Description |
---|---|---|
amount | uint256 | amount of ERC20(this.stakedToken) to stake |
/
#
withdrawWithdraws given amount
from this contract
#
Parameters:Name | Type | Description |
---|---|---|
amount | uint256 | amount of ERC20(this.stakedToken) to withdraw |
/