-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
R4R: Redelegation doesn't subtract from liquid #1660
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1660 +/- ##
=========================================
Coverage ? 63.61%
=========================================
Files ? 122
Lines ? 6805
Branches ? 0
=========================================
Hits ? 4329
Misses ? 2230
Partials ? 246 |
50e0fee
to
b88fb7c
Compare
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.
Tested ACK
msgDelegate := newTestMsgDelegate(delegatorAddr, validatorAddr, initBond) | ||
got = handleMsgDelegate(ctx, msgDelegate, keeper) | ||
require.True(t, got.IsOK(), "expected delegation to be ok, got %v", got) | ||
|
||
// balance should have been subtracted after delegation | ||
amt2 := accMapper.GetAccount(ctx, delegatorAddr).GetCoins().AmountOf(denom) | ||
require.Equal(t, amt1.Sub(sdk.NewInt(initBond)).Int64(), amt2.Int64(), "expected coins to be subtracted") |
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.
oh yeah, makes sense 👍
closes #1630