-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Recover cancel unbonding logic #110
feat: Recover cancel unbonding logic #110
Conversation
x/multi-staking/keeper/msg_server.go
Outdated
} | ||
cancelUnbondingCoin := sdk.NewCoin(k.keeper.stakingKeeper.BondDenom(ctx), unbondEntry.Balance) | ||
|
||
cancelBondAmount := cancelMSCoin.BondValue() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This amount needs to be adjust similarly to AdjustUnbondAmount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdjustUnbondAmount
should be used when we move shares out from validator, my func is not move any shares, I've just re delegate to the same validator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should adjust unbond amount for staking module. We just keep the lock value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've some update. Could you check that pls @neitdung
x/multi-staking/keeper/msg_server.go
Outdated
} | ||
cancelUnbondingCoin := sdk.NewCoin(k.keeper.stakingKeeper.BondDenom(ctx), unbondEntry.Balance) | ||
|
||
cancelBondAmount := cancelMSCoin.BondValue() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should adjust unbond amount for staking module. We just keep the lock value
NewMultiStakingUnlock
construct function