Self-Liquidation Preventer
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
Self-Liquidation Preventer is a DeFi safety tool that continuously monitors your lending positions and helps you take action before liquidation occurs. It reads your debt balances, collateral values, liquidation thresholds, and current oracle prices to compute your health factor. Based on this analysis, it recommends specific actions — such as repaying a portion of your debt or adding more collateral — to bring your position back to a safe level. The tool then constructs and executes the necessary transactions in a single step, saving you from costly liquidations and preserving your position.
HOW TO USE
Connect your EVM wallet via the BGWallet bridge. Enter your lending pool address (e.g., Aave, Compound), the debt token address, and the collateral token address. Click "Check Health" to analyze your current position. The tool will display your health factor, liquidation threshold, debt outstanding, collateral value, and available borrowing power. Based on this, it provides a clear recommendation. To act, enter the amount of debt you wish to repay, the amount of collateral you want to add (or both), then click "Prevent Liquidation". The tool will handle approvals and execute the transactions atomically, providing a transaction hash for tracking.
TECHNICAL MECHANISM
The tool computes health factor using the formula: (collateral_value * liquidation_threshold) / debt_value. It fetches token prices from the lending pool's oracle or a fallback price feed to ensure accuracy. When you initiate prevention, it encodes a series of contract calls: first, it checks and sets allowances for the debt and collateral tokens, then calls the lending pool's `repay` and/or `deposit` functions. The entire sequence is bundled using a multicall pattern when possible, or executed sequentially with proper nonce management. The tool simulates the resulting health factor after the proposed actions and warns you if the position would remain risky. All transactions are sent with a user-defined slippage tolerance to handle price fluctuations.
WHAT IT CANNOT SEE
This tool cannot predict oracle price volatility or block reorganizations that may change your health factor between the simulation and the execution of your transaction. It also cannot detect off-chain price manipulation or sudden liquidity changes that could affect the value of your collateral. The health factor displayed is based on the latest available on-chain data and may be outdated by the time you execute. Always monitor market conditions and act promptly — this tool is an aid, not a guarantee against liquidation.
PLEASE NOTE
EVM chains only. This tool relies on the BGWallet connector and will not function on Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, or XRP. The user is responsible for ensuring the supplied contract addresses are correct and that the lending pool supports the specified operations. Always double-check the recommended actions before signing any transaction.