findRoutes
findRoutes(
chainId,deployment,table,tokenIn,tokenOut,limit?):object
Defined in: protocol-swap2-curve/src/routes.ts:155
Candidate routes tokenIn → tokenOut: at most MAX_ROUTE_POOLS pools and MAX_ROUTE_STEPS steps, no
token or pool twice, at most one wrap and one ERC-4626 hop. Ranked fewest pools first, then by the thinnest pool’s
TVL, and cut to limit. truncated says the cut (or the search budget) dropped some.
Parameters
Section titled “Parameters”chainId
Section titled “chainId”number
deployment
Section titled “deployment”CurveChainPools | undefined
tokenIn
Section titled “tokenIn”`0x${string}`
tokenOut
Section titled “tokenOut”`0x${string}`
limit?
Section titled “limit?”number = MAX_QUOTE_CANDIDATES
Returns
Section titled “Returns”object
routes
Section titled “routes”routes:
CurveRoute[]
truncated
Section titled “truncated”truncated:
boolean