bancorprotocol / webapp

Bancor Swap/Analytics webapp
https://app.bancor.network
MIT License
32 stars 45 forks source link

portfolio - allow restaking rewards on the pool level #1595

Closed ashachaf closed 2 years ago

ashachaf commented 2 years ago

as a user, i would like to have the option to stake rewards from the pool level and not on the account level. this should allow cheaper staking of specific rewards.

function: function stakeReserveRewards( IDSToken poolToken, IReserveToken reserveToken, uint256 maxAmount, IDSToken newPoolToken)

where the values are:

  1. pool token - the pool you are currently in
  2. reserve token - the reserve token you are staked in (within the pool indicated above. for example, if the pool is ETHBNT, the reserve can be either ETH or BNT)
  3. amount - out of the available rewards, an amount from 0-max available
  4. new pool - indication on the new pool you are staking into (rewards are always BNT)

mockups: