Fantom FLend AAVE protocol v2
This repository contains the smart contracts source code and markets configuration for Aave Protocol V2. The repository uses Docker Compose and Hardhat as development enviroment for compilation, testing and deployment tasks.
What is Aave?
Aave is a decentralized non-custodial liquidity markets protocol where users can participate as depositors or borrowers. Depositors provide liquidity to the market to earn a passive income, while borrowers are able to borrow in an overcollateralized (perpetually) or undercollateralized (one-block liquidity) fashion.
Documentation
The documentation of Aave V2 is in the following Aave V2 documentation link. At the documentation you can learn more about the protocol, see the contract interfaces, integration guides and audits.
A more detailed and technical description of the protocol can be found in this repository, here
Audits
- MixBytes (16/09/2020 - 03/12/2020): report
- PeckShield (29/09/2020 - 03/12/2020) : report (Also available in Chinese in the same folder)
- CertiK (28/09/2020 - 02/12/2020): report
- Consensys Diligence (09/09/2020 - 09/10/2020): report
- Certora, formal verification (02/08/2020 - 29/10/2020): report
Markets configuration
The configurations related with the Markets are located at markets
directory. You can follow the IAaveConfiguration
interface to create new Markets configuration or extend the current Aave configuration.
Each market should have his own Market configuration file, and their own set of deployment tasks, using the Aave market config and tasks as a reference.
Migration
For deploying Aave Protocol V2, you can use the available scripts located at package.json
. For a complete list, run npm run
to see all the tasks.
Setup enviroment:
npm run run-env
Compile smart contracts:
npm run compile
Deploy smart contracts to mainnet
npm run aave:opera:full:migration