Swap2Quote
Defined in: protocols/swap2.ts:92
A price for a swap, before anything is signed. Amounts in base units.
Properties
Section titled “Properties”estimatedDuration?
Section titled “estimatedDuration?”
optionalestimatedDuration?:number
Defined in: protocols/swap2.ts:102
Seconds.
expiry?
Section titled “expiry?”
optionalexpiry?:number
Defined in: protocols/swap2.ts:104
Unix seconds.
fees:
Swap2Fee[]
Defined in: protocols/swap2.ts:100
Every fee, network and protocol.
fromTokenAmount
Section titled “fromTokenAmount”fromTokenAmount:
bigint
Defined in: protocols/swap2.ts:94
What leaves the wallet.
priceImpact?
Section titled “priceImpact?”
optionalpriceImpact?:number
Defined in: protocols/swap2.ts:106
Decimal, 0.01 = 1 %.
toTokenAmount
Section titled “toTokenAmount”toTokenAmount:
bigint
Defined in: protocols/swap2.ts:96
Expected delivery.
toTokenAmountMin
Section titled “toTokenAmountMin”toTokenAmountMin:
bigint
Defined in: protocols/swap2.ts:98
Least the swap may deliver after slippage; below it the swap reverts or refunds.