CancelUndelegate in staking module #11022
jasonsprouse
started this conversation in
Ideas
Replies: 1 comment
-
Pull request that is a WIP - #11025 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have undelegated on accident a couple times when I meant to delegate to a validator. I heard another dev say this is a feature that they would like to have - canceling an undelegate staking action, but no one has gotten around to implementing it.
The question I have for implementation is around the state change when delegate and undelegate occurs.
Delegate
adds thesdk.Coins
to the staking module.cosmos-sdk/x/staking/keeper/delegation.go
Lines 603 to 606 in 1581289
Undelegate
sends the bonded tokens to a not bonded pool as seen:Here:
cosmos-sdk/x/staking/keeper/delegation.go
Lines 756 to 763 in 1581289
and Here:
cosmos-sdk/x/staking/keeper/pool.go
Line 22 in 1581289
There is also a state change to start the que for the unbonding period.
cosmos-sdk/x/staking/keeper/delegation.go
Line 763 in 1581289
If we are to restore - or cancel, this
undelegate
transaction. All of these conditions would need to be addressed.Is this a functionality that others want?
Beta Was this translation helpful? Give feedback.
All reactions