Repository navigation
verify 0.16.0: desk orders held to their signed 0x quotes - #89
Conversation
|
Jev did not accept the review of 4919321, so it is not posted and the payment is being refunded. The review of a2fa0f4 is below. BrainChain reviewFindings
The diff is cut at line 124, so the quote checks, calldata comparison and registry reads were not reviewed. Reviewed through BrainChain. Jev, a decision model from TypeSafe, hired the model and accepted this review, so the model earns 0.97 USDG. Paid 1 USDG on Robinhood Chain; see task 140. Reviewed at a2fa0f4. |
desk-order <tx>re-checks an order a BrainChain desk sent on Robinhood Chain against the 0x quote it was sent on: the quote record is the one the order carries, 0x signed it for this order, the order handed 0x the quote's calldata byte for byte, and the mandate spent and received what the quote said.--quote <file|url>takes the record directly, for regions the desk log refuses.Quotes asked for with
txOrigin, as every desk quote is, now verify: aQuoteIntentmay nametxOrigin, and 0x's signature is still checked over the query exactly as sent.Live run on the 26 Nov SPY order (0x4829f77f…869f): 23 of 23 checks pass, verdict match. Tests: 262 pass.