Gamma
HomeWeb AppDiscordTwitter
  • Introduction to Gamma
  • ℹ️Limit Order Hook
    • Introduction
    • Advantages over CEX Limit Orders
    • Creating Limit Orders
    • Creating Scale Orders
    • Canceling and Claiming Orders
  • ℹ️LP Vaults
    • Introduction
    • Strategies
      • V4 - MultiPosition Strategies
      • Dual Position Strategies - Base/Limit
    • Developer Portal
    • Incentives
    • Guides
      • Providing Liquidity
        • Deposit Liquidity
        • Withdraw Liquidity
        • Stake LP Tokens for Rewards
    • Troubleshooting / Help
      • Transaction Errors
      • Reset the App
      • Using Block Explorers
      • Manually Withdraw
      • Revoke Permissions
    • FAQ
      • Concentrated Liquidity
      • Using Gamma
      • Analytics
      • Incentives
      • Operations
      • Security
    • Glossary
  • ℹ️Perp Vaults
    • Introduction
    • Strategies
  • ℹ️Information
    • GAMMA Token
      • GAMMA Token FAQ
    • Contracts
    • Audits
    • Tokenomics
    • Contact / Links
    • Brand Assets
    • Governance
Powered by GitBook
On this page

Was this helpful?

  1. Limit Order Hook

Canceling and Claiming Orders

PreviousCreating Scale OrdersNextIntroduction

Last updated 2 days ago

Was this helpful?

Orders can be permissionlessly canceled and claimed at any time. This can be done in batches or individually.

Why must orders be claimed?

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.

ℹ️