-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Slashing should reduce registered amount that is bonded #3088
Comments
Interesting. Keeping these two in mind:
I don't see how this account ended up like this. Is this on Alexander? |
Alex, yes. Currently the same account is unlocking (aka entered the 2 year wait), however the same thing now shows slightly differently - the total value being unlocked is now > freeBalance. |
This may help as well, only 2 extrinsics on this account - https://polkascan.io/pre/alexander/module/account/5F7BJL6Z4m8RLtK7nXEqqpEqhBbd535Z3CZeYF6ccvaQAY6N
The controller is here - https://polkascan.io/pre/alexander/module/account/69edffba4af672942bf6f60dfe839a20abf4556bb28a7c470a1778291326c46c (linked from the bond extrinsic) |
Comment offline from @kianenigma: the original issue that staking.active>freeBalance could be valid if the account has been slashed. So this is actually ok. I'd suggest to open another issue for the locks that are off. |
@Tbaut any other strange behavior regarding this? Now, reading the discussion again, I think the original offset was simply because of paying fees. |
It's not about the fee, it's about the registered amount (see this comment) and the new title of this issue. |
This is fixed already, as we do call update-ledger now with the new amount bonded after the slash. substrate/frame/staking/src/slashing.rs Lines 599 to 606 in 9467f56
|
The account
5F7BJL6Z4m8RLtK7nXEqqpEqhBbd535Z3CZeYF6ccvaQAY6N
has more DOTs bonded than available infree_balance
. Also it has no vesting and no reserved balance.staking.ledger from its controller:
which is ~9,9951×10¹⁵
balances.freeBalance: ~9,9946x10¹⁵
The text was updated successfully, but these errors were encountered: