diff --git a/src/custom/hooks/useSwapCallback.ts b/src/custom/hooks/useSwapCallback.ts index 2f79271e7f..368838e46c 100644 --- a/src/custom/hooks/useSwapCallback.ts +++ b/src/custom/hooks/useSwapCallback.ts @@ -211,6 +211,7 @@ async function _swap(params: SwapParams): Promise { signer: library.getSigner(), allowsOffchainSigning, appDataHash, + quoteId: trade.quoteId, }) let pendingOrderParams: AddUnserialisedPendingOrderParams diff --git a/src/custom/utils/signatures.ts b/src/custom/utils/signatures.ts index c1f648de0a..185c79fe0a 100644 --- a/src/custom/utils/signatures.ts +++ b/src/custom/utils/signatures.ts @@ -48,6 +48,7 @@ export interface OrderCreation extends UnsignedOrder { // - Signature: EIP-712,ETHSIGN // - Owner address: for PRESIGN signature: string // 65 bytes encoded as hex without `0x` prefix. r + s + v from the spec + quoteId?: number | null // TODO: replace all of this with SDK. Next PR } export interface SingOrderCancellationParams { diff --git a/src/custom/utils/trade.ts b/src/custom/utils/trade.ts index 017038d6f3..083c0e4789 100644 --- a/src/custom/utils/trade.ts +++ b/src/custom/utils/trade.ts @@ -28,6 +28,7 @@ export interface PostOrderParams { recipientAddressOrName: string | null allowsOffchainSigning: boolean appDataHash: string + quoteId?: number } function _getSummary(params: PostOrderParams): string { @@ -72,6 +73,7 @@ export async function signAndPostOrder(params: PostOrderParams): Promise