Cancel Order

Order cancellation

In Carina, order cancellation allows users to invalidate an existing order before it is executed. Once cancelled, the order is no longer eligible for matching or execution by solvers. This mechanism gives users control to withdraw unexecuted orders in response to changing market conditions or updated preferences.

Types of Cancel

In Carina, there are two types of order cancellation: on-chain and off-chain. The following sections explain how each works.

  1. What's on-chain cancellation?

On-chain cancellation is performed by submitting a transaction that marks an order as cancelled in the protocol’s smart contracts. Once confirmed on-chain, the order is no longer executable by any solver, even if it was previously broadcast or included in a batch.

  1. How It Works:

  • The user submits an on-chain transaction to cancel the intent.

  • This transaction marks the order as cancelled and invalidates its signature.

  • Any subsequent attempt to execute the intent will be rejected when checked by solvers or smart contracts.

  1. Characteristics:

  • Requires an on-chain transaction and gas fees

  • Guarantees that the intent can no longer be executed

  • Necessary when an intent has already been signed and broadcast

Last updated