usdValue
usdValue(
prices,options?): (quote,params) =>number|null
Defined in: protocol-swap2-router/src/value.ts:27
A valueUsd for the router: the guaranteed output in USD, minus the native
fee the route charges on top of the input (bridge messaging fees), minus
the source gas when gasUsd can say it. null when a needed price is missing
— the auction then falls back to comparing guaranteed outputs.
Parameters
Section titled “Parameters”prices
Section titled “prices”Readonly<Record<string, number>>
options?
Section titled “options?”gasUsd?
Section titled “gasUsd?”(quote, params) => number | null
Returns
Section titled “Returns”(quote, params) => number | null