UniswapProviderConfig
Defined in: protocol-swap2-uniswap/src/provider.ts:38
Extended by
Section titled “Extended by”Properties
Section titled “Properties”deadlineSeconds?
Section titled “deadlineSeconds?”
optionaldeadlineSeconds?:number
Defined in: protocol-swap2-uniswap/src/provider.ts:47
Seconds the router accepts the swap after the quote (multicall deadline). Default 600.
defaultSlippageBps?
Section titled “defaultSlippageBps?”
optionaldefaultSlippageBps?:number
Defined in: protocol-swap2-uniswap/src/provider.ts:43
Slippage when the caller names none (bps). Default 50.
deployments?
Section titled “deployments?”
optionaldeployments?: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.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: protocol-swap2-uniswap/src/provider.ts:39
quoteTtlMs?
Section titled “quoteTtlMs?”
optionalquoteTtlMs?:number
Defined in: protocol-swap2-uniswap/src/provider.ts:45
Local quote lifetime (must cover an approval being mined). Default 5 min.
rpcUrls
Section titled “rpcUrls”rpcUrls:
Readonly<Record<number, readonlystring[]>>
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.