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
Coin balances and reserves were always divided by 10**18 in getBalances , causing incorrect values for ERC-20 tokens with other decimals. The vault client also recalculated formatted numbers on every render.
Impact
Users see wrong balances/reserves for tokens not using 18 decimals.
Extra render work increases UI latency during frequent state updates.
Fix
Use vault.decimals || 18 to scale coinReserve and coinBalance .
ssue Description