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.
Parameters
Section titled “Parameters”amountUsd
Section titled “amountUsd”unknown
priceUsd
Section titled “priceUsd”unknown
decimals
Section titled “decimals”number
Returns
Section titled “Returns”bigint | null