FV-SOL-2-C1 Token Decimals
TLDR
Precision errors often occur when dealing with tokens that have decimal points, especially when tokens with varying decimal standards (e.g., 6, 8, or 18 decimals) interact within the same system.
A mismatch in decimal handling can lead to incorrect calculations, resulting in inaccurate token transfers or balances.
Game
The transferAmount
function assumes the token has 18 decimals, can you identify how this assumption could lead to a significant error in token transfers?
Last updated
Was this helpful?