curveRemotePins
curveRemotePins(
opts):RemotePins&object
Defined in: protocol-swap2-curve/src/verify.ts:276
curvePins plus verifyBuild: a remote Curve build checked on the client — curveVerifyQuote on the
request it answered, then on chain (over the app’s own RPCs) the pinned router (code and version, once per chain),
each hop pool’s pinned code and coins, and a fresh get_dy of the exact route at or above the minimum. The quote’s
figures are then held to that fresh get_dy (§5.3 C9: the minimum is the device’s own): destAmount no more than the
slippage above it, and min_dy no more than the slippage below it (or below destAmount, if lower) — the request’s
slippageBps, else defaultSlippageBps, else the provider’s auto slippage re-derived here from a fresh 1/1000 probe
(plus CURVE_AUTO_SLIPPAGE_DRIFT_BPS). A backend naming min_dy = 1 or an inflated output is refused.
remoteProvider({name: "curve", baseUrl, ...curveRemotePins({rpcUrls})}).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”RemotePins & object