CurveProviderConfig
Defined in: protocol-swap2-curve/src/provider.ts:48
Extended by
Section titled “Extended by”Properties
Section titled “Properties”defaultSlippageBps?
Section titled “defaultSlippageBps?”
optionaldefaultSlippageBps?: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).
deployments?
Section titled “deployments?”
optionaldeployments?: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.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: protocol-swap2-curve/src/provider.ts:49
onWarning?
Section titled “onWarning?”
optionalonWarning?: (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.
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”void
pools?
Section titled “pools?”
optionalpools?:Readonly<Record<number,CurveChainPools>>
Defined in: protocol-swap2-curve/src/provider.ts:62
Override the pool allowlist (tests).
quoteTtlMs?
Section titled “quoteTtlMs?”
optionalquoteTtlMs?: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
Section titled “rpcUrls”rpcUrls:
Readonly<Record<number, readonlystring[]>>
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.