Clarify exact-input strict deposit address overpayment behavior - #436
Clarify exact-input strict deposit address overpayment behavior #436ted-palmer wants to merge 1 commit into
Conversation
…-1284) Exact-input strict deposit addresses do not refund overpayments — the full deposited amount is filled. Excess refunds only apply to exact-output strict addresses. Updates the comparison table, the Strict Addresses quote-regeneration section, and scopes the 2026-05-07 API changelog entry to EXACT_OUTPUT. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CNEPc3fHgCqveDTBeMj4qt
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Claude finished @ted-palmer's task in 2m 3s —— View job Review: Clarify exact-input strict deposit address overpayment behavior
The correction itself looks right, and editing 1.
|
|
| - **Overpayment (`EXACT_INPUT`)** — The full deposited amount is filled. The excess is **not** refunded — the fill scales up to cover everything that was deposited. | ||
| - **Overpayment (`EXACT_OUTPUT`)** — The fill proceeds for the originally quoted amount and the excess is returned to `refundTo` as a separate refund leg. The fill itself is never scaled up. |
There was a problem hiding this comment.
Strict overpayment contract mismatch
The new EXACT_INPUT exception says an overpayment fills the entire deposited amount without refunding the excess. RelayKit’s current generated API schema defines strict deposit-address overpayments as filling the quoted amount and returning the excess in a separate refund leg, with no trade-type exception. The same unsupported exception is repeated in the comparison table and the May 7 changelog entry. Restore the generic quoted-fill/excess-refund wording, or update the authoritative API contract before publishing this behavior.
Artifacts
Strict-overpayment live quote validation script
- This authored shell script submits safe quote-only requests for both trade types and prints the current public RelayKit schema, showing the validation procedure without sending funds.
Strict-overpayment behavior before the documentation change
- This command capture reads the base revision’s comparison-table row, showing that it documented all strict overpayments as quoted-fill plus excess-refund.
Live strict quotes and current RelayKit schema
- This executed capture shows successful strict `EXACT_INPUT` and `EXACT_OUTPUT` quotes and then RelayKit’s generated schema stating strict overpayments refund excess, contradicting the new exception.
MDX structural smoke-check output
- This captured failed smoke check is included for completeness; it found that the changelog intentionally has no fenced code block, not a defect in the changed documentation.
No description provided.