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

Improve cw20-staking contract #59

Closed
1 of 3 tasks
ethanfrey opened this issue Aug 26, 2020 · 1 comment
Closed
1 of 3 tasks

Improve cw20-staking contract #59

ethanfrey opened this issue Aug 26, 2020 · 1 comment

Comments

@ethanfrey
Copy link
Member

ethanfrey commented Aug 26, 2020

Builds on #58

Some things to improve:

  • Track unbonding period for claims - you cannot get payment before all the other claims ahead of you (Fix Claims handling in cw20-staking #110)
  • Handle case the validator unbonded and all your delegations auto-unbonded (contract cannot detect and stuck currently)
  • Figure out if we need get_bonded and assert_bonded or a better solution - these are debug sanity checks but expensive code
@ethanfrey
Copy link
Member Author

You can look at achor/lido for a production staking contract. This is just a toy/demo.

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

1 participant