Views
Read-only router state. All views work on read-only clients.
fallbackSwapRouter
fallbackSwapRouter(): Promise<Address>The Uniswap fallback "venue" address — dynamic router configuration, which is why it isn't in the static PAMMS mapping.
const fallback = await router.fallbackSwapRouter();Returns Address
fallbackQuoter
fallbackQuoter(): Promise<Address>The quoter contract used to price the fallback route.
Returns Address
fallbackFee
fallbackFee(): Promise<number>The global fallback fee tier, in hundredths of a bip (e.g. 3000 = 0.30%).
Returns number
getPairFee
getPairFee(tokenA: Address, tokenB: Address): Promise<number>The raw per-pair fee tier override — 0 means unset. Order-independent: getPairFee(a, b) === getPairFee(b, a).
await router.getPairFee(USDC, WETH);Returns number
resolvedFee
resolvedFee(tokenIn: Address, tokenOut: Address): Promise<number>The effective Uniswap V3 tier for a pair: the per-pair override if set, otherwise the global fallbackFee.
Returns number
isWhitelistedVenue
isWhitelistedVenue(venue: Address): Promise<boolean>Whether an address is a whitelisted pAMM. The Uniswap fallback is usable as a venue without being whitelisted, so this returns false for it.
Returns boolean
getWhitelistedVenues
getWhitelistedVenues(): Promise<Address[]>Every whitelisted pAMM venue (excludes the Uniswap fallback). Order is not guaranteed.
const venues = await router.getWhitelistedVenues();Returns Address[]
paused
paused(): Promise<boolean>Whether swaps are paused. Quote functions remain callable while paused.
Returns boolean