docs: clarify same-chain gasless swap limitations (INT2-266) - #454
Conversation
|
Claude finished @pedromcunha's task in 6m 18s —— View job Code review: PR #454Read both changed files plus I could not verify the API-level claims ( 1.
|
3435f65 to
350a241
Compare
|
Claude finished @pedromcunha's task in 2m 7s —— View job Review: PR #454 — clarify same-chain gasless swap limitations
The diff is a single 4-line 1.
|
350a241 to
0e07d20
Compare
|
Claude finished @pedromcunha's task in 2m 11s —— View job Code review:
|
|
| </Warning> | ||
|
|
||
| <Warning> | ||
| Same-chain ERC-20 → ERC-20 swaps do not support the permit flow on their own. Passing **`usePermit: true`** on a same-chain quote is ignored and the quote returns `approve` and `swap` transaction steps instead of a permit signature step. |
There was a problem hiding this comment.
Same-chain permit route omits the solver flag
usePermit: true alone produces the documented self-executed transaction flow for same-chain ERC-20 swaps, but readers are not told how to obtain the permit flow. A live Base USDC → WETH quote returned a swap transaction step with usePermit alone and an EIP-712 authorize1 signature step when forceSolverExecution: true was added. Explain that callers must include forceSolverExecution: true to route through the solver and receive permit instructions; otherwise the adjacent permit-based instructions leave same-chain integrators unable to implement this supported flow.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Artifacts
Same-chain permit quote comparison script
- A narrowly scoped Python script made two non-mutating Relay quote requests that differ only by the solver-routing flag, providing the executable verification method.
Live quote response with usePermit alone
- Executed the same-chain Base USDC-to-WETH quote using `usePermit: true` only and captured HTTP 200 OK with a transaction `swap` step and no signature step.
Live quote response with usePermit and forced solver execution
- Executed the identical quote with `forceSolverExecution: true` added and captured HTTP 200 OK with an EIP-712 signature `authorize1` step, proving the omitted requirement.
…tation Narrow authorize2 to same-chain ERC-20 -> native swaps, merge the stacked permit warnings on the gasless swaps page, normalize ERC-20 spelling.
|
Claude finished @pedromcunha's task in 2m 14s —— View job Code review: PR #454 — clarify same-chain gasless swap limitations
Reviewed the current head ( But the rewrite dropped the one thing INT2-266 was for, and it did so while making the claim stronger. That's the blocking issue. 1.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Same-chain ERC-20 -> ERC-20 quotes ignore usePermit and return approve + swap transaction steps; forceSolverExecution is required to get the permit flow. Document what forceSolverExecution changes, and distinguish the Gasless Swaps page from the Gasless Execution (/execute) page.