project screenshot 1

AAVE Liquidation Protection

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

AAVE Liquidation Protection

Created At

MarketMake

Project Description

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

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates