docs: apply review feedback to input validation guide - #440
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Claude finished @pedromcunha's task in 1m 56s —— View job Code review — PR #440Reviewed the 24/24 line rewrite of Overall this is a good pass: the deprecation warning is now scoped to "quotes that contain A few things to fix before merge. 1.
|
|
There was a problem hiding this comment.
@pedromcunha Scout thinks this example needs to be updated to compare paymentDetails.depository with Relay’s canonical depository address for the payment chain before using it to select the transaction.
| ``` | ||
|
|
||
| At this point the transaction is bound to the order you inspected in step 2. Sending it cannot result in a different recipient, a smaller guaranteed output, or a different destination chain. | ||
| At this point the transaction is bound to the order you inspected in step 2. If the order settles, the settlement uses the recipient, output amount, currency, deadline, and destination chain encoded in the verified order. Verification confirms the encoded order. It does not guarantee that the order will fill. |
There was a problem hiding this comment.
@pedromcunha Scout: The current example checks the depository and order ID, but it does not yet check the native value or ERC-20 token and amount.
There was a problem hiding this comment.
@pedromcunha Scout: Extend this example to validate the payment fields. For native deposits, compare depositTx.value with the order’s payment amount. For ERC-20 deposits, compare the decoded token and amount with the order’s payment fields and require depositTx.value === 0. Also compare the decoded depositor with the expected payer.
|
Claude finished @pedromcunha's task in 2m 37s —— View job Code review — PR #440Re-reviewed after The new hardening in step 4 is a real improvement — cross-checking 1.
|
|
Claude finished @pedromcunha's task in 3m 3s —— View job Code review — PR #440Re-reviewed at Of the four items from my previous pass, 1, 2 and 4 are still open — the two hardening gaps and the 1.
|
|
Claude finished @pedromcunha's task in 2m 6s —— View job Code review — PR #440Re-reviewed at That commit closes item 2 from my last pass cleanly, and does it better than I suggested: deriving Item 1 is still open, and the new import brings one new correctness question with it. 1.
|

No description provided.