Skip to content
docs

curveVerifyQuote

const curveVerifyQuote: (params, quote) => string | null

Defined in: protocol-swap2-curve/src/verify.ts:87

The swap a Curve quote’s router call makes, opened on the client against the app’s own request: the explicit-receiver exchange on the chain’s pinned Router NG (0xc872a3c5 on [5][5] routers, 0xfd44959c on [4][5]), selling exactly the input of the source token (the router’s native sentinel for a native input, paid as exactly that value; a token input attaches no value and approves exactly the router), for the destination token, with min_dy the quote’s minimum (never 0), paid to the recipient, no zap pools, and a route that checkRoute accepts: allowlisted pools only, their pinned coins, swap types 1/2 (8 through the pinned wrapped native, 9 only on router v1.2 through scrvUSD). The reason it fails, or null.

QuoteParams

Quote

string | null