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 is similar to the fix in #3836 (I should've caught all cases...sigh). We need to groom through all the decimal coins methods and make sure there is no case where zero coins can be returned. In this case, DecCoins#TruncateDecimal cannot return any zero coins in out.
This does not affect mainnet because there will exist only one token and IsZero will return true in such a case as above.
Summary of Bug
The following stracktrace shows how
DecCoin/s#TruncateDecimal
can lead to a panic:This is similar to the fix in #3836 (I should've caught all cases...sigh). We need to groom through all the decimal coins methods and make sure there is no case where zero coins can be returned. In this case,
DecCoins#TruncateDecimal
cannot return any zero coins inout
.This does not affect mainnet because there will exist only one token and
IsZero
will returntrue
in such a case as above.credit: @fkbenjamin
For Admin Use
The text was updated successfully, but these errors were encountered: