/grim-reaper

EVM-based on-chain liquidation bot built with Huff language

Primary LanguageSolidityMIT LicenseMIT

Reaper • ci license solidity

Getting Started

This is grim-reaper: EVM-based on-chain liquidation bot for Aave V3 built with Huff language. Optimized for gas efficiency. This repo doesn't include any off-chain architecture.

Requirements

The following will need to be installed. Please follow the links and instructions.

Quickstart

  1. Install dependencies

Once you've cloned and entered into your repository, you need to install the necessary dependencies. In order to do so, simply run:

forge install
  1. Build & Test

To build and test your contracts, you can run:

forge build
forge test

For more information on how to use Foundry, check out the Foundry Github Repository and the foundry-huff library repository.

Single Liquidation Gas Used Contract Size (kB)
Pure Solidity Contract 34403 1.105
Solidity Contract with assembly 33913 0.792
Huff Contract 33861 0.552

Acknowledgements

Disclaimer

These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.