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

Recurring DCA Swap Canceller

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 cancellation and fund withdrawal for recurring DCA (dollar-cost averaging) swap schedules, enabling you to stop automated trades and reclaim remaining funds. It reads your connected wallet address, DCA contract address, schedule IDs, schedule status (active/paused/cancelled), current block timestamp, total invested, remaining amount, and next execution time. You can then sign and send transactions to cancel individual or multiple DCA schedules, withdraw remaining funds from cancelled schedules, and record cancellation metadata on-chain. All schedule parameters are displayed in a clear review panel before you sign, so you know exactly what you are cancelling. The tool also logs transaction hashes, confirmation status, and gas costs, providing a complete audit trail of all cancellation activities.

HOW TO USE

Connect your wallet using the built-in wallet bridge, choose the network that matches your DCA contract, and paste the DCA contract address. Enter the schedule IDs you want to cancel or withdraw from as a comma-separated list. The review panel shows all inputs and the current block timestamp before you sign. Use the numbered action buttons: check schedules to view current status, invested amount, and next execution time for all listed schedules; cancel selected to cancel one or more schedules in batch; or withdraw remaining to withdraw any remaining funds from cancelled schedules. You can also check status to view current schedule states. 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 DCA contract you are using, so you are in full control. When you cancel a schedule, the tool constructs a contract call to the cancelSchedule function, which marks the schedule as inactive and stops all future executions. The contract also tracks the remaining funds that have not yet been swapped. When you withdraw remaining funds, the tool calls withdrawRemaining, which transfers the unspent funds back to your wallet. The tool reads schedule state via getSchedule, which returns all schedule details including owner, token addresses, amount per interval, interval duration, next execution time, total invested, total out, executions count, paused status, and active status. 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, predict future price movements, detect market manipulation, or ensure that the DCA contract handles cancellations correctly. It cannot detect if the schedule has pending executions or if the remaining amount calculation is accurate. The tool also cannot verify that the DCA contract correctly handles edge cases like partial cancellations, overlapping schedules, or failed withdrawals. It cannot simulate the outcome of a transaction before you sign it, nor can it guarantee that the cancellation will be processed 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 schedule IDs before signing. Use testnet first. The tool is a transaction-signing interface and DCA cancellation management tool, not a price prediction or market analysis 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.