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 will cause there are more Staking votes than the actual balances, which also means we might lock more funds than a user has. For instance, 5UW4LiYMc1r1X3yQVLCVi281wi5GCyRCwJZ3d9jHpbBSGW5Y has negative usable balances due to the over-staking-lock.
We expect 1 PCX 1 vote in theory, but there are more Staking votes now, the consequence is that some stakers are earning more rewards than they should. If someone's frozen balances are more than his free balance, then he has more unexpected gains due to this bug, at the same time some other people will have fewer rewards as the reward pot per validator is correct. This bug only relates to the distribution of all nominators behind a validator, some earn more and some others earn less.
The stakers having any windfall, especially these have negative usable balance now, will have to wait for the fix using XStaking::force_reset_staking_lock().
Update: This bug is not the root cause of the staking reward drop as there only are 10 accounts with negative usable balance, the total involved money is less than 6000PCX, which is too small compared to the total stakes(6M+). The main reason is when we migrated to 2.0, we settled all the latest vote weight of 1.0. And the vote weight is measured by blocks, which means we have to spend 3 times the time to obtain the same vote weight in 2.0, so the users with legacy vote weight earns more, but once they make their first claim on 2.0, they will have no advantages.
The text was updated successfully, but these errors were encountered:
ChainX/xpallets/mining/staking/src/lib.rs
Line 351 in 8d78cde
This line will cause there are more Staking votes than the actual balances, which also means we might lock more funds than a user has. For instance,
5UW4LiYMc1r1X3yQVLCVi281wi5GCyRCwJZ3d9jHpbBSGW5Y
has negative usable balances due to the over-staking-lock.We expect 1 PCX 1 vote in theory, but there are more Staking votes now, the consequence is that some stakers are earning more rewards than they should. If someone's frozen balances are more than his free balance, then he has more unexpected gains due to this bug, at the same time some other people will have fewer rewards as the reward pot per validator is correct. This bug only relates to the distribution of all nominators behind a validator, some earn more and some others earn less.
Should be fixed by #408.
https://github.com/chainx-org/ChainX/pull/408/files#diff-acfc4fead7dba36919225985639fe230fc951b8b6630dc3e48d15fb5a3366076R351-R354 will ensure 1 PCX 1 vote again.
The stakers having any windfall, especially these have negative usable balance now, will have to wait for the fix using
XStaking::force_reset_staking_lock()
.Update: This bug is not the root cause of the staking reward drop as there only are 10 accounts with negative usable balance, the total involved money is less than 6000PCX, which is too small compared to the total stakes(6M+). The main reason is when we migrated to 2.0, we settled all the latest vote weight of 1.0. And the vote weight is measured by blocks, which means we have to spend 3 times the time to obtain the same vote weight in 2.0, so the users with legacy vote weight earns more, but once they make their first claim on 2.0, they will have no advantages.
The text was updated successfully, but these errors were encountered: