Comment on page
StakeWise StakedEthToken smart contract details.
An address with an admin role can enable/disable support for the ERC-20 contracts using the toggleTokenContract function. When the token support is enabled, stakers can lock the supported ERC-20 tokens in the
StakedTokenscontract. If the token support is disabled, stakers can withdraw their locked tokens and rewards, but
rwETHstops accumulating for the disabled ERC-20 contract. Staking new tokens for disabled ERC-20 contract will be disallowed. The disabling functionality is added as a precaution in case the supported contract starts misbehaving.
Let's assume that the staker has deposited
stETH/ETHUniswap liquidity pool and received Uniswap LP tokens in return. In order to continue earning
stETHdeposited, the staker needs to lock his LP tokens in the StakedTokens contract by calling the stakeTokens function. While the LP tokens are locked in the
StakedTokenscontract, the staker is able to pull his portion of
rwETHfrom it. The amount he can pull is calculated based on his share of the total amount of LP tokens locked in the
Example of earning rwETH from staking while being a Uniswap LP