Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement V5 StakingPool and migrations #100

Open
Ivshti opened this issue Jan 19, 2021 · 0 comments
Open

Implement V5 StakingPool and migrations #100

Ivshti opened this issue Jan 19, 2021 · 0 comments
Assignees

Comments

@Ivshti
Copy link
Member

Ivshti commented Jan 19, 2021

ETA: must be ready by the end of Feb so we can test it through March

StakingPool

See how enter, leave and withdraw work: https://github.com/AdExNetwork/adex-protocol-eth/blob/v5-aggregate-channels/contracts/StakingPool.sol#L173

It's somewhat similar to the loyalty pool.

UI wise:

  • we need partial unbonds
  • we need to show individual maturing withdraw requests
  • we need a button to rage leave
  • restaking button will no longer be shown

Migrations

Migrations will work in the following way: ask the user to migrate, under the hood it does a requestUnbond. When the bond has matured, show another button "finalize migration" that will call unbond on Staking and call the migration contract with the old bond, which will give you the new stake and the reward.

During this time, show the incurred migration reward in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants