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

Integration of redelegation into Quint #64

Merged
merged 18 commits into from
Aug 18, 2023
Merged

Conversation

angbrav
Copy link
Collaborator

@angbrav angbrav commented Jun 23, 2023

This PR integrates into the Quint spec:

  • Redelegation.
  • Latest changes in slashing, i.e., cubic offset and preventing bond amounts from going below 0.

else bonds.mapRemoveSet(resultUnbonding.toRemove).set(resultUnbonding.new.start, resultUnbonding.new.amount)
// Compute a modified redelegation bond in case one was partially unbonded
val modifiedRedelegation = if (not(redelegatedBonds.has(resultUnbonding.new.start))) {epoch: -1, valsToRemove: Set(), valToModify: "", epochsToRemove: Set(), epochToModify: -1, newAmount: -1}
else computeModifiedRedelegation(redelegatedBonds, resultUnbonding.new.start, resultUnbonding.new.amount)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should redelegatedBonds be redelegatedBonds.get(resultUnbonding.new.start)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks!

@angbrav angbrav changed the title [WIP] Integration of redelegation into Quint Integration of redelegation into Quint Jul 19, 2023
@angbrav angbrav marked this pull request as ready for review July 19, 2023 14:52
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.

2 participants