← Back to home

AAVE Liquidation Protection

ReactRust

AAVE Liquidation Protection Bot. Avoid liquidation penalties and take precise control over thresholds where repayment occurs.

Screenshots

AAVE Liquidation Protection screenshot 1

Problem Statement

Track cost of collateral and debt using Chainlink. When PnL reaching user-defined boundaries (stop-loss and take-profit). Can be assembled in single transaction: 1. Get Flashloan eqaul to debt 2. Repay user debt 3. Swap user's collateral to debt using 1inch API 4. Repay Flashloan

Solution

This project uses Go/Gin on the backend, making use of go-ethereum libraries and JS/React/web3 on the frontend with MetaMask integration.It uses Chainlink (off-chain) for pricing information, AAVE flash loans and 1inch swaps to repay loans automatically.One notable thing is the use of an EIP712 message to attest the trust between the user and the bot and the keccak256 signature used to sign the calldata. These are used to protect the executeOperation LendingPool callback from malicious users.

Hackathon

MarketMake

2024

Contributors