Views
Read-only router state. All views work on read-only clients.
fallback_swap_router
async def fallback_swap_router(self) -> strThe Uniswap fallback "venue" address — dynamic router configuration, which is why it isn't in the static PAMMS mapping.
fallback = await router.fallback_swap_router()Returns str
fallback_quoter
async def fallback_quoter(self) -> strThe quoter contract used to price the fallback route.
Returns str
fallback_fee
async def fallback_fee(self) -> intThe global fallback fee tier, in hundredths of a bip (e.g. 3000 = 0.30%).
Returns int
get_pair_fee
async def get_pair_fee(self, token_a: str, token_b: str) -> intThe raw per-pair fee tier override — 0 means unset. Order-independent: get_pair_fee(a, b) == get_pair_fee(b, a).
await router.get_pair_fee(USDC, WETH)Returns int
resolved_fee
async def resolved_fee(self, token_in: str, token_out: str) -> intThe effective Uniswap V3 tier for a pair: the per-pair override if set, otherwise the global fallback_fee.
Returns int
is_whitelisted_venue
async def is_whitelisted_venue(self, venue: str) -> boolWhether an address is a whitelisted pAMM. The Uniswap fallback is usable as a venue without being whitelisted, so this returns False for it.
Returns bool
get_whitelisted_venues
async def get_whitelisted_venues(self) -> list[str]Every whitelisted pAMM venue (excludes the Uniswap fallback). Order is not guaranteed.
venues = await router.get_whitelisted_venues()Returns list[str]
paused
async def paused(self) -> boolWhether swaps are paused. Quote functions remain callable while paused.
Returns bool