Swap2Route
Defined in: protocol-swap2-router/src/swap2/router.ts:30
One route in a picker: the public quote plus its place in the auction.
Properties
Section titled “Properties”netValueUsd
Section titled “netValueUsd”netValueUsd:
number|null
Defined in: protocol-swap2-router/src/swap2/router.ts:36
Net USD value when the router prices routes (valueUsd), else null.
provider
Section titled “provider”provider:
string
Defined in: protocol-swap2-router/src/swap2/router.ts:32
Provider name.
quote:
Swap2Quote
Defined in: protocol-swap2-router/src/swap2/router.ts:34
The provider’s quote.
relativeValue
Section titled “relativeValue”relativeValue:
number
Defined in: protocol-swap2-router/src/swap2/router.ts:38
Value against the best route, 0..1.
tags: (
"best"|"fastest")[]
Defined in: protocol-swap2-router/src/swap2/router.ts:40
best (most value within the tie band) and/or fastest (lowest ETA).