Interface: PostTradeAdditionalParams
Additional parameters for posting orders. In most of the cases you don't need to use them.
Properties
checkEthFlowOrderExists
• Optional
checkEthFlowOrderExists: EthFlowOrderExistsCallback
Selling native token orders are special, because they are created from smart-contract, and their validTo is always the same. Because of that, you might get the same orderId when trying to create an order with the same parameters The callback is needed to check if there is already an order with the same orderId
See
https://github.com/cowprotocol/ethflowcontract/blob/main/src/libraries/EthFlowOrder.sol#L90
Defined in
external/cow-sdk/src/trading/types.ts:223
networkCostsAmount
• Optional
networkCostsAmount: string
Cost of executing the order onchain. The value is used in getQuoteAmountsAndCosts in order to calculate proper amounts
Defined in
external/cow-sdk/src/trading/types.ts:228
signingScheme
• Optional
signingScheme: SigningScheme
By default, is EIP712 for EOA wallets. You might need other types of signing, for example PRESIGN when sign order via Smart Contract wallets.
Defined in
external/cow-sdk/src/trading/types.ts:233