Skip to content
docs

underlyingAllowed

underlyingAllowed(pool, index): boolean

Defined in: protocol-swap2-curve/src/routes.ts:60

Whether exchange_underlying (swap_type 2) may run on pool, given the chain’s allowlisted pools index: only on a metapool that names its base pool, with that base pool itself allowlisted (and not denied), and underlying the meta coins followed by the base pool’s coins. Never on a lending pool (no base pool): its underlying route deposits into the lending venue, which a get_dy view never touches (Aave v2 on Polygon has every reserve frozen).

CurvePool

ReadonlyMap<string, CurvePool>

boolean