Skip to content
docs

CurveProviderConfig

Defined in: protocol-swap2-curve/src/provider.ts:48

optional defaultSlippageBps?: number

Defined in: protocol-swap2-curve/src/provider.ts:56

Slippage when the caller names none (bps). Default: suggestSlippage from swap2-core for the pair and the route’s price impact (stable ↔ stable 10 bps, majors 50, others 100, plus half the impact).


optional deployments?: Readonly<Record<number, CurveDeployment>>

Defined in: protocol-swap2-curve/src/provider.ts:60

Override the deployments (tests, new chains). Still verified on-chain before use.


optional enabled?: boolean

Defined in: protocol-swap2-curve/src/provider.ts:49


optional onWarning?: (message) => void

Defined in: protocol-swap2-curve/src/provider.ts:64

Told when a chain’s AddressProvider lists another router than the pinned one (never acted on). Default console.warn.

string

void


optional pools?: Readonly<Record<number, CurveChainPools>>

Defined in: protocol-swap2-curve/src/provider.ts:62

Override the pool allowlist (tests).


optional quoteTtlMs?: number

Defined in: protocol-swap2-curve/src/provider.ts:58

Local quote lifetime. Router NG has no deadline, so this is the only expiry. Default 3 min.


rpcUrls: Readonly<Record<number, readonly string[]>>

Defined in: protocol-swap2-curve/src/provider.ts:51

JSON-RPC endpoints per EVM chain id, tried in order. A chain without one is not offered.