Skip to content
docs

UniswapProviderConfig

Defined in: protocol-swap2-uniswap/src/provider.ts:38

optional deadlineSeconds?: number

Defined in: protocol-swap2-uniswap/src/provider.ts:47

Seconds the router accepts the swap after the quote (multicall deadline). Default 600.


optional defaultSlippageBps?: number

Defined in: protocol-swap2-uniswap/src/provider.ts:43

Slippage when the caller names none (bps). Default 50.


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

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

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


optional enabled?: boolean

Defined in: protocol-swap2-uniswap/src/provider.ts:39


optional quoteTtlMs?: number

Defined in: protocol-swap2-uniswap/src/provider.ts:45

Local quote lifetime (must cover an approval being mined). Default 5 min.


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

Defined in: protocol-swap2-uniswap/src/provider.ts:41

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