Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,13 @@ export type SwapTransferOrder = Omit<Transfer, 'type'> &
}

// Specific type for TwapOrder
export type TwapOrder = BaseOrder & {
export type TwapOrder = Omit<BaseOrder, 'executedBuyAmount' | 'executedSellAmount'> & {
type: TransactionInfoType.TWAP_ORDER
/** @description The executed sell token raw amount (no decimals) */
executedSellAmount: null | string
/** @description The executed buy token raw amount (no decimals) */
executedBuyAmount: null | string
/** @description The number of parts the order is split into */
numberOfParts: string
/** @description The amount of sellToken to sell in each part */
partSellAmount: string
Expand Down