Skip to content

Conversation

@jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Oct 9, 2024

This PR does introduces two things to the mixnet contract:

  • it fixes and re-enables code for migrating vested delegation into the liquid one and correctly handles case when somebody already has a liquid delegation towards the same mixnode
  • it introduces migration to recompute amount of tokens missing towards each specified node and using ratios provided in MigrateMsg (which got very painstakingly determined by scraping our chain) it either adds additional tokens to existing delegations or, if somebody decided to undelegate everything, creates brand new delegation in that place.

oh and there's plenty of unit tests for the both additions... not going to make the same mistake twice lol


This change is Reviewable

@jstuczyn jstuczyn requested review from durch and octol October 9, 2024 13:56
@vercel
Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
nym-explorer ⬜️ Ignored (Inspect) Visit Preview Oct 15, 2024 2:09pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Oct 15, 2024 2:09pm

@jstuczyn jstuczyn force-pushed the bugfix/vested-delegation-restoration branch from e04829c to 1f089ca Compare October 9, 2024 14:07
@jstuczyn jstuczyn modified the milestones: Magura, Temporary Home Oct 9, 2024
@jstuczyn
Copy link
Contributor Author

superseded by #4977 which removes the contract migration code as it's already been run

@jstuczyn jstuczyn closed this Oct 16, 2024
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

Successfully merging this pull request may close these issues.

3 participants