EVM Token Decimal Precision

•
215k
•

Prevents silent decimal mismatch bugs across EVM chains by implementing runtime querying, caching, and safe normalization patterns.

This skill provides Claude with the specialized knowledge required to handle ERC-20 token decimals accurately across diverse EVM-compatible blockchains. It addresses common pitfalls like precision drift in bridged tokens and hardcoded decimal assumptions that lead to massive calculation errors in DeFi applications. By enforcing best practices for runtime decimals() querying, chain-specific caching, and robust math using BigInt or Decimal types, it ensures that balances, USD valuations, and on-chain transactions remain precise and reliable for bots, dashboards, and financial tools.

主な機能

01214,597 GitHub stars
02Integration with major Web3 libraries like Ethers.js and Web3.py
03Defensive handling for non-standard or legacy token contracts
04Multi-chain caching logic using chain ID and token address pairs
05Runtime decimal querying via ERC-20 metadata interface
06Safe normalization patterns for Solidity, Python, and TypeScript

ユースケース

01Building cross-chain DeFi portfolio trackers and dashboards
02Implementing secure token normalization in Solidity smart contracts
03Developing trading bots that require precise balance and price calculations