Skip to content
docs

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.

Readonly<Record<string, number>>

(quote, params) => number | null

(quote, params) => number | null