Skip to content
A

Automated Liquidation Shield

AI-Powered DeFi Liquidation Protection

Created on 29th August 2026

•

A

Automated Liquidation Shield

AI-Powered DeFi Liquidation Protection

The problem Automated Liquidation Shield solves

Automated Liquidation Shield helps DeFi users protect their lending positions from liquidation risk.

In DeFi, users deposit assets such as ETH as collateral and borrow assets such as USDC. If the collateral price falls, the Health Factor can decrease and the position may become vulnerable to liquidation.

Our system makes this process safer and easier by:

  • Detecting liquidation risk early using the Health Factor.
  • Using live ETH market prices for analysis.
  • Simulating ETH price drops of 5%, 10%, 15%, and 20%.
  • Dynamically recalculating collateral value, Health Factor, and liquidation risk for each scenario.
  • Generating multiple possible protection strategies.
  • Comparing strategies based on safety, available capital, cost, and expected outcome.
  • Recommending the most suitable protection action for the user's position.
  • Providing a simulated execution flow so users can understand how a protection strategy would work.

Instead of simply warning users that their position is at risk, the project helps them understand what could happen and what protection strategy would be most suitable.

Challenges we ran into

Our main challenge was making the liquidation risk and protection recommendations dynamic instead of hardcoded.

We faced several challenges during development:

Dynamic Health Factor calculation — We had to ensure the Health Factor changed correctly when collateral, debt, or ETH price changed. We solved this by keeping the main risk calculations in the backend.
Scenario simulation — We needed the -5%, -10%, -15%, and -20% ETH price scenarios to dynamically recalculate the position. We connected each scenario to the backend calculation engine.
Strategy selection — Multiple protection strategies could be generated, but not all were affordable or effective. We added checks for available capital, required amount, cost, and target Health Factor.
Frontend and backend connection — We faced API connection issues while connecting the React frontend with the FastAPI backend. We separated the API layer and tested the backend endpoints independently before connecting them to the dashboard.
Blockchain integration — Real blockchain integration would require wallet connection, smart contracts, transaction signing, and security testing. Due to the hackathon time limit, we implemented a simulated blockchain execution layer while keeping the architecture ready for future real integration.
Testing — Some existing tests represented the previous strategy behavior. We updated them to match the corrected logic and added tests for scenario analysis, capital constraints, strategy scoring, and acceptance/rejection reasons.

These challenges helped us build a more reliable and modular system while keeping the core liquidation-risk and protection logic functional for the hackathon demonstration.

Discussion

Builders also viewed

See more projects on Devfolio