{"repo":"lbkolev/aave-liquidation","free":true,"listed":false,"github":"https://github.com/lbkolev/aave-liquidation","clone":"git clone https://github.com/lbkolev/aave-liquidation.git","description":null,"language":"Rust","stars":20,"topics":["aave","defi","evm","liquidation","ethereum"],"license":null,"category":"blockchain-web3","readme_excerpt":"Standalone AaveV3 liquidation bot, unlikely to be profitable nowadays. Components: - contracts/ - contains example contract used to execute liquidations - src/ - contains the offchain logic responsible for tracking and managing liquidation opportunities - migrations/ - holds the database migrations The offchain service is built with actix's actor model in mind. The setup is abstracted enough to work on any and all Aave forks, on all EVM-compatible chains, so long as you know the deployment address of the protocol's: - Pool - PoolAddressesProvider - UiPoolDataProviderV3 Simply create a new migration file in migrations/ , copy 20240101010102 insert val and adjust the values accordingly. Idiosyncrasies - all reserves's real time value is tracked by listening for AnswerUpdated , emitted by Chainlink's price aggregators. - users's open positions & exposure is kept both in-memory and in postgres for later usage - the smart contract executing the liquidation relies on flashloan to execute the liquidation Example usage - deploy the contract (perhaps locally through anvil fork anvil --fork-url https://eth.merkle.io ) - start postgres run the offchain service Flow The flow of execution goes like Database schema","default_branch":null,"files":null,"tree":[],"storefront":"/r/lbkolev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lbkolev/aave-liquidation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}