
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@modus-finance/core-v3
Advanced tools
For the latest Aave V3 code visit the V3 Origin Repository here.
.///. .///. //. .// `/////////////-
`++:++` .++:++` :++` `++: `++:......---.`
`/+: -+/` `++- :+/` /+/ `/+/ `++.
/+/ :+/ /+: /+/ `/+/ /+/` `++.
-::/++::` /+: -::/++::` `/+: `++: :++` `++/:::::::::.
-:+++::-` `/+: --++/---` `++- .++- -++. `++/:::::::::.
-++. .++- -++` .++. .++. .++- `++.
.++- -++. .++. -++. -++``++- `++.
`++: :++` .++- :++` :+//+: `++:----------`
-/: :/- -/: :/. ://: `/////////////-
This repository contains the smart contracts source code and markets configuration for Aave Protocol V3. The repository uses Docker Compose and Hardhat as development environment for compilation, testing and deployment tasks.
Aave is a decentralized non-custodial liquidity markets protocol where users can participate as suppliers or borrowers. Suppliers 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.
See the link to the technical paper or visit the Aave Developer docs
You can find all audit reports under the audits folder
V3.0.1 - December 2022
V3 Round 1 - October 2021
V3 Round 2 - December 2021
Formal Verification - November 2021-January 2022
You can join the Discord channel or the Governance Forum to ask questions about the protocol or talk about Aave with other peers.
You can install @aave/core-v3
as an NPM package in your Hardhat or Truffle project to import the contracts and interfaces:
npm install @aave/core-v3
Import at Solidity files:
import {IPool} from "@aave/core-v3/contracts/interfaces/IPool.sol";
contract Misc {
function supply(address pool, address token, address user, uint256 amount) public {
IPool(pool).supply(token, amount, user, 0);
{...}
}
}
The JSON artifacts with the ABI and Bytecode are also included in the bundled NPM package at artifacts/
directory.
Import JSON file via Node JS require
:
const PoolV3Artifact = require('@aave/core-v3/artifacts/contracts/protocol/pool/Pool.sol/Pool.json');
// Log the ABI into console
console.log(PoolV3Artifact.abi)
The repository uses Docker Compose to manage sensitive keys and load the configuration. Prior to any action like test or deploy, you must run docker-compose up
to start the contracts-env
container, and then connect to the container console via docker-compose exec contracts-env bash
.
Follow the next steps to setup the repository:
docker
and docker-compose
.env
and fill the next environment variables# Add Alchemy or Infura provider keys, alchemy takes preference at the config level
ALCHEMY_KEY=""
INFURA_KEY=""
# Optional, if you plan to use Tenderly scripts
TENDERLY_PROJECT=""
TENDERLY_USERNAME=""
You can run the full test suite with the following commands:
# In one terminal
docker-compose up
# Open another tab or terminal
docker-compose exec contracts-env bash
# A new Bash terminal is prompted, connected to the container
npm run test
1.0.0 (2021-09-14)
virtual
on Pool and Configurator getRevision
functions (ddd4ac5)wadraymath.ts
to support wad and ray math on ethers bignumber (cc468df)DefaultReserveInterestRateStrategy
(08d6c63)LiqudationLogic
(5fa09f5)ValidationLogic
(c8703d4)LendingPool
references of contracts (702a8d3)LendingPool
references of tasks, helpers and tests (6fdde99)LENDING_POOL
of Errors lib (59b5104)LendingPool
of Pool
contract (9919194)public
modifier from contract constructors (207dd42)getLendingPool()
of PoolAddresesProvider (2b94692)getLendingPoolCollateralManager()
of AddressesProvider (e318492)getLendingPoolConfigurator()
of PoolAddressesProvider (6a34932)getLendingRateOracle()
of PoolAddressesProvider (e50413e)setLendingPoolCollateralManager()
of AddressesProvider (b79b168)setLendingPoolConfiguratorImpl()
of PoolAddressesProvider (475fbe1)setLendingPoolImpl()
of PoolAddressesProvider (d3070f0)setLendingRateOracle()
of PoolAddresesProvider (2988f28)interest-overflow.spec.ts
(c177a81)getWalletProvider()
in 1__general.ts
(0c3ac70)AaveOracle
(9622097)protocol/configuration
package (d679c22)FlashLoan
package (eb0d5d8)atoken-permit.spec.ts
(0e0c68d)Transfer
emission code (f51ef2c)FlashloanPremiumToProcolUpdated
event (108e203)GenericLogic
internal (e7ff741)ReserveLogic
internal (6598274)ValidationLogic
library internal (e1d1a01)WadRayMath
and PercentageMath
unchecked (1a81ecf)atoken-edge.spec.ts
(b17310e)dropReserve()
into PoolHelperLogic
library (38a9904)finalizeTransfer()
from Pool
into PoolBaseLogic
library (053d9ed)flashLoan()
from Pool
to PoolBaseLogic
library (f9af312)actions
to support effective gas price after London. (d98fa47)impossible
cases. Reasoning added to notion notes (2e733be)refreshDebt()
from ReserveLogic.sol
(5ddd74e)IReserveInterestRateStrategy
(3107e2a)ethers
subpaths (c731f77)lending
(81aa4ce)UserConfiguration
from Pool
(5ffc46c)deployments
contracts (495e145)Pool
(a6e01a5)PoolBaseLogic
library functions (df1f197)IScaledBalancetoken
(c0e9987)LiquidationLogic
(1998cc2)ReserveConfiguration
(5afa498)MockIncentivesController
to get of compiler warnings (dd7bf6c)Helpers
(9797019)ReserveLogic
(3bfe674)ValidationLogic
(9298d56)deployment-token-helper.spec.ts
(d7e28e4)_executeWithdraw()
(30ffa88)FAQs
Aave Protocol V3 core smart contracts
We found that @modus-finance/core-v3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.