Automated Liquidation Shield

AI-Powered DeFi Liquidation Protection

Repo
Automated Liquidation Shield banner

About

## 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.

## The problem it 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.

Screenshots

Automated Liquidation Shield screenshot 1Automated Liquidation Shield screenshot 2Automated Liquidation Shield screenshot 3Automated Liquidation Shield screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Risk Analyzer Hook

This system represents a significant improvement in DeFi risk management, providing automated protection while maintaining market efficiency.

xtreamly

An AI-powered vault on Aave that maximizes APY through leveraged loops, dynamic intelligent strategies, and adaptive hedging mechanisms, delivering up to 5x profitability with near-zero liquidation risk.