Canceling and Claiming Orders
Last updated
Was this helpful?
Last updated
Was this helpful?
Orders can be permissionlessly canceled and claimed at any time. This can be done in batches or individually.
When orders are executed, they are burned in the afterSwap hook and held in the PoolManager for the creator of the limit order to then claim.
The reason we do not do the transfer to the user immediately upon execution is that transfers of tokens are extremely gas costly, and so we separated out the transfer of tokens in a separate claim function to avoid overburdening the swap with additional gas fees.
Once you open a position, so long as it remains open, you can cancel the order at any time.
Once an order has been executed, you can claim the order directly on the Executed Orders tab.