@somnia-chain/markets-sdk / index / decodeAmendOrder
Function: decodeAmendOrder()
decodeAmendOrder(
receipt,pool):DecodedAmendment
Defined in: packages/sdk/src/decode/orders.ts:154
Decode one amendment from its receipt. The pool returns the new order id,
but an EOA cannot read return data, so it comes from OrderPlaced instead.
A single amend reverts outright when its replacement does not rest or fill,
so a receipt that reached here carries exactly one placement.
Parameters
receipt
TransactionReceipt
pool
`0x${string}`