Decimal Reference
Decimal Table
Type
Decimals
Constant
Example
Decimal Constants
import { DECIMALS } from '@thetanuts-finance/thetanuts-client';
DECIMALS.USDC // 6
DECIMALS.WETH // 18
DECIMALS.cbBTC // 8
DECIMALS.PRICE // 8 — strikes and settlement prices
DECIMALS.SIZE // 18 — numContracts (independent of collateral)Conversion Examples
To on-chain values
From on-chain values
Real-World Usage
Approving collateral for an order fill
Building an RFQ with a human-readable strike
Reading settlement prices from on-chain
Formatting balances for display
Common Mistakes
See Also
Last updated

