Skip to content
docs

SlippageContext

Defined in: protocol-swap2-core/src/slippage.ts:22

optional etaSeconds?: number

Defined in: protocol-swap2-core/src/slippage.ts:31

The route’s expected time to settle, in seconds.


fromChain: string

Defined in: protocol-swap2-core/src/slippage.ts:23


fromSymbol: string

Defined in: protocol-swap2-core/src/slippage.ts:26

Catalog symbols of the two sides, e.g. “USDC”, “ETH”, “cbBTC”.


optional priceImpactBps?: number

Defined in: protocol-swap2-core/src/slippage.ts:29

Price impact of this trade as the provider reports it, in bps.


toChain: string

Defined in: protocol-swap2-core/src/slippage.ts:24


toSymbol: string

Defined in: protocol-swap2-core/src/slippage.ts:27


optional volatilityBps?: number

Defined in: protocol-swap2-core/src/slippage.ts:33

Recent price range of the more volatile side (e.g. over 1 h), in bps.