{"id":13632887,"url":"https://github.com/aave/aave-v3-core","last_synced_at":"2025-05-14T16:09:34.300Z","repository":{"id":38455372,"uuid":"389913398","full_name":"aave/aave-v3-core","owner":"aave","description":"This repository contains the core smart contracts of the Aave V3 protocol.","archived":false,"fork":false,"pushed_at":"2024-09-03T13:56:47.000Z","size":19326,"stargazers_count":935,"open_issues_count":46,"forks_count":611,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-03T02:08:24.354Z","etag":null,"topics":["blockchain","defi","ethereum","solidity"],"latest_commit_sha":null,"homepage":"https://aave.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aave.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":"audits/01-11-2021_OpenZeppelin_AaveV3.pdf","citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-27T08:54:40.000Z","updated_at":"2025-04-01T14:38:20.000Z","dependencies_parsed_at":"2024-01-14T07:18:15.686Z","dependency_job_id":"c11f372e-c616-4378-b87e-42e143d7d332","html_url":"https://github.com/aave/aave-v3-core","commit_stats":{"total_commits":1559,"total_committers":31,"mean_commits":50.29032258064516,"dds":0.6812059012187299,"last_synced_commit":"782f51917056a53a2c228701058a6c3fb233684a"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Faave-v3-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Faave-v3-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Faave-v3-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aave%2Faave-v3-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aave","download_url":"https://codeload.github.com/aave/aave-v3-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457749,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","defi","ethereum","solidity"],"created_at":"2024-08-01T22:03:21.850Z","updated_at":"2025-04-10T03:49:01.134Z","avatar_url":"https://github.com/aave.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Decentralized Finance (DeFi)","五、实战示例（从 demo 到生产级）"],"sub_categories":["2. 主网真实项目（抄作业）"],"readme":"# ⚠️ This repository is DEPRECATED and no longer maintained ⚠️\n\nFor the latest Aave V3 code visit the V3 Origin Repository [here](https://github.com/aave-dao/aave-v3-origin).\n\n[![Build pass](https://github.com/aave/aave-v3-core/actions/workflows/node.js.yml/badge.svg)](https://github.com/aave/aave-v3-core/actions/workflows/node.js.yml)\n[![codecov](https://codecov.io/gh/aave/aave-v3-core/branch/master/graph/badge.svg?token=U50KN38G67)](https://codecov.io/gh/aave/aave-v3-core)\n\n```\n        .///.                .///.     //.            .//  `/////////////-\n       `++:++`              .++:++`    :++`          `++:  `++:......---.`\n      `/+: -+/`            `++- :+/`    /+/         `/+/   `++.\n      /+/   :+/            /+:   /+/    `/+/        /+/`   `++.\n  -::/++::`  /+:       -::/++::` `/+:    `++:      :++`    `++/:::::::::.\n  -:+++::-`  `/+:      --++/---`  `++-    .++-    -++.     `++/:::::::::.\n   -++.       .++-      -++`       .++.    .++.  .++-      `++.\n  .++-         -++.    .++.         -++.    -++``++-       `++.\n `++:           :++`  .++-           :++`    :+//+:        `++:----------`\n -/:             :/-  -/:             :/.     ://:         `/////////////-\n```\n\n# Aave Protocol v3\n\nThis 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.\n\n## What is Aave?\n\nAave 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.\n\n## Documentation\n\nSee the link to the technical paper or visit the Aave Developer docs\n\n- [Technical Paper](./techpaper/Aave_V3_Technical_Paper.pdf)\n\n- [Developer Documentation](https://docs.aave.com/developers/)\n\n## Audits and Formal Verification\n\nYou can find all audit reports under the audits folder\n\nV3.0.1 - December 2022\n\n- [PeckShield](./audits/09-12-2022_PeckShield_AaveV3-0-1.pdf)\n- [SigmaPrime](./audits/23-12-2022_SigmaPrime_AaveV3-0-1.pdf)\n\nV3 Round 1 - October 2021\n\n- [ABDK](./audits/27-01-2022_ABDK_AaveV3.pdf)\n- [OpenZeppelin](./audits/01-11-2021_OpenZeppelin_AaveV3.pdf)\n- [Trail of Bits](./audits/07-01-2022_TrailOfBits_AaveV3.pdf)\n- [Peckshield](./audits/14-01-2022_PeckShield_AaveV3.pdf)\n\nV3 Round 2 - December 2021\n\n- [SigmaPrime](./audits/27-01-2022_SigmaPrime_AaveV3.pdf)\n\nFormal Verification - November 2021-January 2022\n\n- [Certora](./certora/Aave_V3_Formal_Verification_Report_Jan2022.pdf)\n\n## Connect with the community\n\nYou can join the [Discord](http://aave.com/discord) channel or the [Governance Forum](https://governance.aave.com/) to ask questions about the protocol or talk about Aave with other peers.\n\n## Getting Started\n\nYou can install `@aave/core-v3` as an NPM package in your Hardhat or Truffle project to import the contracts and interfaces:\n\n`npm install @aave/core-v3`\n\nImport at Solidity files:\n\n```\nimport {IPool} from \"@aave/core-v3/contracts/interfaces/IPool.sol\";\n\ncontract Misc {\n\n  function supply(address pool, address token, address user, uint256 amount) public {\n    IPool(pool).supply(token, amount, user, 0);\n    {...}\n  }\n}\n```\n\nThe JSON artifacts with the ABI and Bytecode are also included in the bundled NPM package at `artifacts/` directory.\n\nImport JSON file via Node JS `require`:\n\n```\nconst PoolV3Artifact = require('@aave/core-v3/artifacts/contracts/protocol/pool/Pool.sol/Pool.json');\n\n// Log the ABI into console\nconsole.log(PoolV3Artifact.abi)\n```\n\n## Setup\n\nThe 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`.\n\nFollow the next steps to setup the repository:\n\n- Install `docker` and `docker-compose`\n- Create an environment file named `.env` and fill the next environment variables\n\n```\n# Add Alchemy or Infura provider keys, alchemy takes preference at the config level\nALCHEMY_KEY=\"\"\nINFURA_KEY=\"\"\n\n\n# Optional, if you plan to use Tenderly scripts\nTENDERLY_PROJECT=\"\"\nTENDERLY_USERNAME=\"\"\n\n```\n\n## Test\n\nYou can run the full test suite with the following commands:\n\n```\n# In one terminal\ndocker-compose up\n\n# Open another tab or terminal\ndocker-compose exec contracts-env bash\n\n# A new Bash terminal is prompted, connected to the container\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faave%2Faave-v3-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faave%2Faave-v3-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faave%2Faave-v3-core/lists"}