Looping Strategy Auto-Unwind Tool
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
The Looping Strategy Auto-Unwind Tool provides a safe, one-click way to unwind leveraged looping positions. You specify the percentage of your position to unwind (from 1% to 100%), and the tool calculates the exact amounts of debt to repay and collateral to withdraw. It reads your current position — collateral, debt, leverage ratio, health factor, and liquidation price — then executes the unwind in a single atomic transaction. This eliminates the need to manually repay debt and withdraw collateral across multiple steps, reducing gas costs and execution risk.
HOW TO USE
Connect your EVM wallet and select your network. Enter the vault or strategy contract address that holds your looping position. Specify the unwind percentage — 100% to close the entire position, or a lower percentage to partially unwind. Click "Preview unwind" to see your current position details, including collateral, debt, leverage, health factor, liquidation price, and the exact amounts that will be unwound. If the preview looks correct, click "Unwind position" — the tool will execute the unwind in a single transaction. Progress is shown in real-time, and gas costs are calculated accurately using effectiveGasPrice.
ONE TECHNICAL SECTION — THE REAL MECHANISM
The tool interacts with a vault contract that manages looping strategies — typically involving borrowing against collateral, using the borrowed funds to acquire more collateral, and repeating (looping) to achieve leverage. The contract exposes getPosition() to read the user's collateral, debt, leverage, and share count. getHealthFactor() calculates the position's health relative to the liquidation threshold, and getLiquidationPrice() determines the price at which liquidation would occur. The unwind() function accepts a percentage parameter, calculates the proportional debt to repay and collateral to withdraw, and executes both operations in a single atomic transaction. This ensures that the unwinding is completed without leaving the position in an intermediate state, which could be vulnerable to price movements. The tool reads the current market price via getCurrentPrice() to provide context on the position's risk.
WHAT IT CANNOT SEE
The tool cannot predict market movements or guarantee liquidation avoidance. It does not evaluate market conditions, the probability of liquidation, or the optimal timing for unwinding. It cannot detect if the underlying assets are manipulated or if the vault contract has been compromised. It does not provide financial advice or ensure that unwinding at any particular time is optimal. The tool also cannot recover funds if the unwind fails due to slippage or insufficient liquidity — always review the preview carefully before executing.
PLEASE NOTE
This tool is EVM-only and supports Ethereum, Goerli, Sepolia, Optimism, Arbitrum, Polygon, and Base. It does not support Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, or XRP. Looping strategies involve significant risk including liquidation, impermanent loss, and interest rate changes. Partially unwinding may leave a position with different leverage characteristics — understand the impact before executing. The tool is provided free and as-is; users assume full responsibility for their trading decisions and risk management.