This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Range Order Cancellation Tool

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryDeFi
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Range Order Cancellation Tool lets you cancel active range orders (LP positions acting as limit orders) by removing liquidity from the position and withdrawing the underlying tokens back to your wallet. Instead of manually interacting with the NonfungiblePositionManager to burn the position and collect tokens in separate transactions, you add the token IDs you want to cancel, verify ownership and position details, and execute a batch cancellation operation. The tool removes liquidity from each specified position, burns the LP token, and sends both tokens to your wallet in one batched transaction. This is essential for traders who need to close range orders quickly without manual overhead.

HOW TO USE

Connect your EVM wallet and select the network. Enter the NonfungiblePositionManager contract address (e.g., Uniswap V3). In the input area, list the range order token IDs you want to cancel. Click "Add token IDs" to load them, then click "Check orders" to verify that you own each position and to view their tick ranges. Review the status, then click "Cancel range orders" to execute the batch cancellation transaction. The tool burns the LP tokens, removes liquidity from the positions, and withdraws the underlying tokens to your wallet in one transaction.

TECHNICAL MECHANISM

The tool first verifies ownership of each range order by calling ownerOf(tokenId) on the NonfungiblePositionManager contract. It then reads each position's details using the positions(tokenId) function to retrieve the tick range and liquidity. The cancellation is performed by calling the burn() function on the NonfungiblePositionManager for each token ID. The burn() function removes the liquidity from the position, burns the LP token, and transfers the underlying tokens (both token0 and token1) back to the owner's wallet. The tool also collects any unclaimed fees during the burn process. The tool uses receipt.effectiveGasPrice for accurate gas reporting and provides progress feedback during the cancellation process.

WHAT IT CANNOT SEE

This tool cannot cancel range orders that are not owned by the connected wallet—ownership is verified before proceeding. It relies on the DEX contract supporting position removal via the NonfungiblePositionManager interface; positions that do not support the burn() function or use non-standard LP tokens are not supported. The tool does not support positions that are locked or have pending claims that prevent burning. Gas costs scale with the number of orders cancelled, which can be significant for large batches.

PLEASE NOTE

Cancelling a range order removes your liquidity from the pool and withdraws both tokens to your wallet. This action is irreversible—you will need to re-add liquidity if you want to place a new range order. The position manager contract must be trusted; verify its security and audit status before use. This tool is for EVM chains only and does not support non-EVM networks.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.