Skip to content

Redelegation subtracts coins from redelegator #1630

Closed
@cwgoes

Description

Caught by #1620 as it breaks the loose token supply invariant.

stakeKeeper.BeginRedelegation calls stakeKeeper.Delegate, which subtracts coins from the delegator's account - but stakeKeeper.unbond never adds coins to the delegator's account; it just creates a Delegation object. Probably introduced with the unbonding period changes; not sure what the easiest way to change the code structure is (maybe we need a different Delegate function for redelegation), but this definitely isn't the desired behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions