You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line sets a wrong lock if you unbond before and now bond again, the locked value should always be the sum of LockedType::Bonded and LockedType::BondedWithdrawal, now it's wrongly set to LockedType::Bonded only.
ChainX/xpallets/mining/staking/src/lib.rs
Line 879 in 238f824
This line sets a wrong lock if you
unbond
before and nowbond
again, the locked value should always be the sum ofLockedType::Bonded
andLockedType::BondedWithdrawal
, now it's wrongly set toLockedType::Bonded
only.After #403, the staking lock should work as expected again. The corrupted unbonded locking state in Staking can be fixed by purging the useless records since the noted balances are actually not locked in Balances, i.e, https://github.com/chainx-org/ChainX/pull/403/files#diff-acfc4fead7dba36919225985639fe230fc951b8b6630dc3e48d15fb5a3366076R538 .
The locking state of these accounts' will be corrected using
XStaking::force_unlock_bonded_withdrawal()
.The text was updated successfully, but these errors were encountered: