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

Liquidation Price Calculator

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

Liquidation Price Calculator helps you determine the liquidation price of your DeFi positions. You provide collateral amount, debt amount, liquidation threshold (%), and collateral price, and the tool calculates the price at which your position would become liquidatable. It also displays your health factor, distance to liquidation, and visual price position indicators. This is essential for DeFi users managing leveraged positions, monitoring risk, and avoiding liquidations. It reads the current network chain ID from your wallet provider for context, but calculations are performed locally.

HOW TO USE

Connect your wallet using the "Connect" button (required for network context). Select the target network (Ethereum Mainnet, Sepolia, Polygon, BSC, Arbitrum, Optimism, and testnets are supported). Enter your position parameters: collateral amount, debt amount, liquidation threshold (as a percentage, e.g., 80), collateral price (USD), and optionally debt token price. Click "Calculate liquidation price" — the tool will compute the liquidation price, health factor, and distance to liquidation. The entire operation is read-only — no transactions are signed or sent.

TECHNICAL MECHANISM

The tool uses the formula: Liquidation Price = (Debt * Debt Price) / (Collateral * (Threshold / 100)). The health factor is calculated as (Collateral * Current Price) / (Debt * Debt Price). The distance to liquidation is the percentage difference between current price and liquidation price. The tool uses ethers.js v5.7.2 for network context but performs all calculations locally. All inputs are validated for correctness. Results are displayed with color-coded status indicators: green (safe), yellow (near liquidation), and red (liquidated).

WHAT IT CANNOT SEE

The tool cannot guarantee that the calculated liquidation price will match actual protocol behavior due to protocol-specific liquidation mechanics, fees, or rounding. It cannot account for price slippage or oracle manipulation. It is limited by RPC provider availability and price feed freshness. It cannot read positions that require complex protocol-specific logic without full integration. It cannot account for protocol-specific liquidation penalties or bonuses. It cannot detect if the user has multiple positions or cross-collateralized positions.

PLEASE NOTE

This tool is for educational and risk management purposes. Always verify liquidation parameters with the specific protocol you are using. The tool does not persist any data; all state is lost on page reload. EVM chains only.

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.