AmbireTech / adex-staking

The Staking UI: allows users to stake ADX tokens on the AdEx Registry (Validator pools)
6 stars 13 forks source link

"Stake more"/"Reinvest" button #8

Closed Ivshti closed 4 years ago

Ivshti commented 4 years ago

Feature description: when the user withdraws rewards, ask if they'd like to withdraw or they'd like to "stake more", which will buy ADX with the DAI and add another bond

this willenable users to opt into generating more revenue for the future vs withdrawing it all now

Under the hood, it can work via uniswap v2

This will be especially useful if we implement staking for publishers: they'll be able to increase their limit by buying ADX with DAI and staking.

Ivshti commented 4 years ago

Implemented via ADX rewards in https://github.com/AdExNetwork/adex-staking-ui/commit/a20e1951e78a748b3cfff622f96b85591a80eee3

Ivshti commented 3 years ago

Also we're not going to do this for DAI cause trading via uniswap can specify the minimum but we won't know the amount we get until the trade actually happens - so we can't do this elegantly in one tx unless there we leave unused ADX that remains on the identity.