Token amounts on-chain are raw integers. The decimals field is per-contract metadata, and it changes between deployments of the same ticker. How we kept raw integers end to end and pushed the decimal point to the edges of a payment pipeline across Ethereum, TRON, and Solana.
Samiul
Ethereum TRON Solana Stablecoins ERC20 Payments