Static WEI_PRECISION

Source
pub static WEI_PRECISION: u8
Expand description

Number of decimal places used by the native Ether denomination.

On the EVM all ERC-20 balances are expressed in wei – the smallest indivisible unit of Ether, named after cryptographer Wei Dai. One ether equals 10^18 wei, so using 18 decimal places is sufficient to represent any value expressible on-chain.

Tokens that choose a smaller precision (e.g. USDC’s 6, WBTC’s 8) still fall below this upper bound.