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
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 contractaccount
: address of an account
- amount of total staked ERC20(this.stakedToken) by
account
/
Stakes given
amount
in this contractamount
: amount of ERC20(this.stakedToken) to stake /
Withdraws given
amount
from this contractamount
: amount of ERC20(this.stakedToken) to withdraw /
No description
No description
Last modified 1yr ago