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

Conditional Swap Limit Order Executor

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

This tool provides on-chain creation, execution, and cancellation of conditional swap limit orders that execute only when a specific price condition is met. It reads your connected wallet address, order contract address, token in address, token out address, limit price, order amount, current price, current block timestamp, order status (active/executed/canceled), and price feed data. You can then sign and send transactions to create new limit orders with specified price conditions, execute orders when the price condition is met, cancel active orders, and record order metadata on-chain. All order parameters are displayed in a clear review panel before you sign, so you know exactly what you are trading. The tool also logs transaction hashes, confirmation status, and gas costs, providing a complete audit trail of all order activities.

HOW TO USE

Connect your wallet using the built-in wallet bridge, choose the network that matches your order contract, and paste the order contract address. Enter the token in address (the token you want to sell), token out address (the token you want to buy), limit price in raw units (e.g., 1e18 for a 1:1 ratio), order amount in raw units, and token decimals for display purposes. The review panel shows all inputs, the current order status, and the current price before you sign. Use the numbered action buttons: create order to place a new conditional limit order with your specified price limit, execute order to manually execute an order when the price condition is met (or use the contract's automatic execution), or cancel order to cancel an active order. You can also check status to view current order state and price, or check price to see the current market price from the price feed. Each transaction is signed sequentially, and the tool displays transaction details and confirmation status.

THE REAL MECHANISM

This tool uses ethers.js v5.7.2 to build and send transactions through the wallet's signer. It does not rely on any hardcoded contract addresses – you paste the order contract you are using, so you are in full control. When you create an order, the tool constructs a contract call to the createOrder function, which stores the token in/out addresses, limit price, amount, and owner address. The contract checks the current price against the limit price and executes the order if the condition is already met. When you check price, the tool calls getCurrentPrice on the order contract, which returns the current price from an on-chain price feed (e.g., Chainlink or Uniswap TWAP). When you execute an order, the tool calls executeOrder, which verifies that the price condition is met and performs the swap. When you cancel an order, the tool calls cancelOrder, which marks the order as inactive and refunds any locked tokens. The tool reads order state via getOrder, which returns all order details. All transactions are sequential to prevent nonce conflicts, and gas costs are calculated using effectiveGasPrice for accurate post-EIP-1559 reporting.

WHAT IT CANNOT SEE

This tool cannot verify off-chain price accuracy, detect oracle manipulation, predict future price movements, or ensure that the order contract handles executions correctly. It cannot detect if the price feed used by the contract is accurate or if the oracle has been manipulated. The tool also cannot verify that the order contract correctly handles edge cases like slippage, partial fills, or failed swaps. It cannot simulate the outcome of a transaction before you sign it, nor can it guarantee that the order will be executed correctly if the contract is not properly implemented.

PLEASE NOTE

This tool works only on EVM-compatible chains supported by your wallet and provider. Always double-check the contract addresses and parameters before signing. Use testnet first. The tool is a transaction-signing interface and order management tool, not a price feed validator or trading strategy system.

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.