Skip to content
docs

acrossUsdToUnits

acrossUsdToUnits(amountUsd, priceUsd, decimals): bigint | null

Defined in: protocol-swap2-across/src/api.ts:102

A USD amount as base units of a token priced at priceUsd, rounded down — integer math only (no Number of a big value): amountUsd × 10^decimals / priceUsd. Null when either is not a usable number.

unknown

unknown

number

bigint | null