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
constructor(contract IERC20 _stakedToken)
balanceOf(address account)
stake(uint256 amount)
withdraw(uint256 amount)
Function constructor(contract IERC20 _stakedToken)
{#StakeableTokenWrapper-constructor-contract-IERC20-}
Creates a new StakeableTokenWrapper with given _stakedToken
address
_stakedToken
: address of a token that will be used to stake /
Read how much account
has staked in this contract
account
: address of an account
- amount of total staked ERC20(this.stakedToken) by
account
/
Stakes given amount
in this contract
amount
: amount of ERC20(this.stakedToken) to stake /
Withdraws given amount
from this contract
amount
: amount of ERC20(this.stakedToken) to withdraw /
No description
No description