A partial of the interface of base on-chain Asset in https://github.com/cardstack/cardwallet/blob/5b85603d477cd97a41c27ec7786f812afbfa7526/src/entities/tokens.ts#L1 Decimals represents the difference between the conventional amount displayed and the amount that the blockchain thinks of it in. Eg. decimals would be 18 for DAI, CARD, and ETH, representing the relationship between ether and wei Necessary for functions to accept arbitrary amounts of decimals as some assets like USDC do not use 18 decimals like many ETH assets do.

Hierarchy

  • Asset

Properties

Properties

decimals: number
symbol?: string

Generated using TypeDoc