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
Since there is a routine that handles cases where it is 0, it would be better to either let the handling occur after the code or move the zero check to an earlier point in the code.
Summary of Bug
It is unclear when totalPreviousPower becomes 0, but if it does, a panic could occur.
cosmos-sdk/x/distribution/keeper/allocation.go
Line 36 in 748c1ed
Since there is a routine that handles cases where it is 0, it would be better to either let the handling occur after the code or move the zero check to an earlier point in the code.
cosmos-sdk/x/distribution/keeper/allocation.go
Line 64 in 748c1ed
Version
v0.50.8/multi-asset-staking-poc
Steps to Reproduce
The text was updated successfully, but these errors were encountered: