1 results for tag "evm-token-decimals"
Prevent silent decimal mismatch bugs across EVM chains β always call `decimals()` at runtime, cache by `(chain_id, token_address)` (not symbol), use `Decimal`/`BigInt` exact math (never float), re-query after bridging, and normalize to 18-decimal WAD when comparing across tokens. Ships Python (`web3.py`), TypeScript (`ethers`), and Solidity examples plus a `cast call <token> "decimals()(uint8)"` quick check.