{"_id":"@athenalend/protocol-v2","name":"@athenalend/protocol-v2","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@athenalend/protocol-v2","version":"0.0.1","description":"Athena Protocol V2 smart contracts","scripts":{"run-env":"npm i && tail -f /dev/null","hardhat":"hardhat","hardhat:kovan":"hardhat --network kovan","hardhat:goerli":"hardhat --network goerli","hardhat:tenderly-main":"hardhat --network tenderlyMain","hardhat:ropsten":"hardhat --network ropsten","hardhat:main":"hardhat --network main","hardhat:docker":"hardhat --network hardhatevm_docker","hardhat:mumbai":"hardhat --network mumbai","hardhat:matic":"hardhat --network matic","hardhat:fuji":"hardhat --network fuji","hardhat:avalanche":"hardhat --network avalanche","compile":"SKIP_LOAD=true hardhat compile","console:fork":"FORK=main hardhat console","test":"npm run compile && TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-athena/*.spec.ts","test-amm":"npm run compile && TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-amm/*.spec.ts","test-amm-scenarios":"npm run compile && TS_NODE_TRANSPILE_ONLY=1 hardhat test ./test-suites/test-amm/__setup.spec.ts test-suites/test-amm/scenario.spec.ts","test-scenarios":"npm run compile && npx hardhat test test-suites/test-athena/__setup.spec.ts test-suites/test-athena/scenario.spec.ts","test-subgraph:scenarios":"npm run compile && hardhat --network hardhatevm_docker test test-suites/test-athena/__setup.spec.ts test-suites/test-athena/subgraph-scenarios.spec.ts","test:main:check-list":"npm run compile && FORK=main TS_NODE_TRANSPILE_ONLY=1 hardhat test  test-suites/test-athena/__setup.spec.ts test-suites/test-athena/mainnet/check-list.spec.ts","dev:coverage":"buidler compile --force && buidler coverage --network coverage","athena:evm:dev:migration":"npm run compile && hardhat athena:dev","athena:docker:full:migration":"npm run compile && npm run hardhat:docker -- athena:mainnet --skip-registry","athena:kovan:full:migration":"npm run compile && npm run hardhat:kovan -- athena:mainnet --skip-registry","matic:mumbai:full:migration":"npm run compile && npm run hardhat:mumbai sidechain:mainnet -- --pool Matic --skip-registry","matic:matic:full:migration":"npm run compile && npm run hardhat:matic sidechain:mainnet -- --pool Matic --skip-registry","avalanche:fuji:full:migration":"npm run compile && npm run hardhat:fuji avalanche:mainnet -- --pool Avalanche","amm:kovan:full:migration":"npm run compile && npm run hardhat:kovan -- amm:mainnet --skip-registry","athena:docker:full:migration:add-registry":"npm run compile && npm run hardhat:docker -- athena:mainnet","athena:kovan:full:migration:add-registry":"npm run compile && npm run hardhat:kovan -- athena:mainnet","athena:goerli:full:migration:add-registry":"npm run compile && npm run hardhat:goerli -- athena:testnet","matic:mumbai:full:migration:add-registry":"npm run compile && npm run hardhat:mumbai sidechain:mainnet -- --pool Matic","matic:matic:full:migration:add-registry":"npm run compile && npm run hardhat:matic sidechain:mainnet -- --pool Matic","amm:kovan:full:migration:add-registry":"npm run compile && npm run hardhat:kovan -- amm:mainnet","avalanche:fuji:full:migration:add-registry":"npm run compile && npm run hardhat:fuji avalanche:mainnet -- --pool Avalanche","avalanche:mainnet:full:migration:add-registry":"npm run compile && npm run hardhat:avalanche avalanche:mainnet -- --pool Avalanche","athena:docker:add-market-to-registry-from-config":"npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Athena","athena:kovan:add-market-to-registry-from-config":"npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Athena","matic:mumbai:add-market-to-registry-from-config":"npm run compile && npm run hardhat:mumbai add-market-to-registry --pool Matic","amm:kovan:add-market-to-registry-from-config":"npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Amm","matic:matic:add-market-to-registry-from-config":"npm run compile && npm run hardhat:matic add-market-to-registry --pool Matic","athena:main:add-market-to-registry-from-config":"npm run compile && npm run hardhat:main -- add-market-to-registry --pool Athena","athena:docker:add-market-to-new-registry":"npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Athena --deploy-registry","athena:kovan:add-market-to-new-registry":"npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Athena --verify --deploy-registry","matic:mumbai:add-market-to-new-registry":"npm run compile && npm run hardhat:mumbai add-market-to-registry --pool Matic --verify --deploy-registry","amm:kovan:add-market-to-new-registry":"npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Amm --verify --deploy-registry","matic:matic:add-market-to-new-registry":"npm run compile && npm run hardhat:matic -- add-market-to-registry --pool Matic --verify --deploy-registry","athena:main:add-market-to-new-registry":"npm run compile && npm run hardhat:matic -- add-market-to-registry --pool Matic --verify --deploy-registry","athena:kovan:full:initialize":"npm run hardhat:kovan -- full:initialize-lending-pool --verify --pool Athena","athena:ropsten:full:migration":"npm run compile && npm run hardhat:ropsten -- athena:mainnet --verify","athena:fork:main:tenderly":"npm run compile && npm run hardhat:tenderly-main -- athena:mainnet","athena:fork:main":"npm run compile && FORK=main hardhat athena:mainnet","athena:fork:kovan":"npm run compile && FORK=kovan hardhat athena:mainnet","amm:fork:main":"npm run compile && FORK=main hardhat amm:mainnet","amm:fork:kovan":"npm run compile && FORK=kovan hardhat amm:mainnet","amm:fork:main:tenderly":"npm run compile && npm run hardhat:tenderly-main -- amm:mainnet","athena:main:full:migration":"npm run compile && npm run hardhat:main -- athena:mainnet --verify","athena:main:full:initialize":"npm run compile && FORK=main full:initialize-tokens --pool Athena","amm:main:full:migration":"npm run compile && npm run hardhat:main -- amm:mainnet --verify","prettier:check":"npx prettier -c 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts'  'test-suites/test-athena/**/*.ts'","prettier:write":"prettier --write 'tasks/**/*.ts' 'contracts/**/*.sol' 'helpers/**/*.ts'  'test-suites/test-athena/**/*.ts'","ci:test":"npm run compile && npm run test","ci:clean":"rm -rf ./artifacts ./cache ./types","print-contracts:kovan":"npm run hardhat:kovan -- print-contracts","print-contracts:main":"npm run hardhat:main -- print-contracts","print-contracts:ropsten":"npm run hardhat:main -- print-contracts","dev:deployUIProvider":"hardhat --network kovan deploy-UiPoolDataProvider --verify","main:deployUIProvider":"hardhat --network main deploy-UiPoolDataProvider --verify","matic:deployUIProvider":"hardhat --network matic deploy-UiPoolDataProvider","mumbai:deployUIProvider":"hardhat --network mumbai deploy-UiPoolDataProvider","fuji:deployUIProvider":"hardhat --network fuji deploy-UiPoolDataProvider","dev:deployUIProviderV2":"hardhat --network kovan deploy-UiPoolDataProviderV2 --verify","dev:deployUIProviderV2V3":"hardhat --network kovan deploy-UiPoolDataProviderV2V3 --verify","fuji:deployUIIncentivesV2V3":"hardhat --network fuji deploy-UiIncentiveDataProviderV2V3","mumbai:deployUIIncentivesV2V3":"hardhat --network mumbai deploy-UiIncentiveDataProviderV2V3 --verify","matic:deployUIIncentivesV2V3":"hardhat --network matic deploy-UiIncentiveDataProviderV2V3 --verify","dev:deployUIIncentivesProviderV2":"hardhat --network kovan deploy-UiIncentiveDataProviderV2 --verify","main:deployUIIncentivesProviderV2":"hardhat --network main deploy-UiIncentiveDataProviderV2 --verify","matic:deployUIIncentivesProviderV2":"hardhat --network matic deploy-UiIncentiveDataProviderV2 --verify","mumbai:deployUIIncentivesProviderV2":"hardhat --network mumbai deploy-UiIncentiveDataProviderV2 --verify","dev:deployUniswapRepayAdapter":"hardhat --network kovan deploy-UniswapRepayAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c","dev:UniswapLiquiditySwapAdapter":"hardhat --network kovan deploy-UniswapLiquiditySwapAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c","main:deployUniswapRepayAdapter":"hardhat --network main deploy-UniswapRepayAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","main:UniswapLiquiditySwapAdapter":"hardhat --network main deploy-UniswapLiquiditySwapAdapter  --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","main:ParaSwapLiquiditySwapAdapter":"hardhat --network main deploy-ParaSwapLiquiditySwapAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --augustusRegistry 0xa68bEA62Dc4034A689AA0F58A76681433caCa663","kovan:verify":"npm run hardhat:kovan verify:general -- --all --pool Athena","ropsten:verify":"npm run hardhat:ropsten verify:general -- --all --pool Athena","mainnet:verify":"npm run hardhat:main verify:general -- --all --pool Athena","matic:mumbai:verify":"npm run hardhat:mumbai verify:general -- --all --pool Matic","matic:mainnet:verify":"npm run hardhat:matic verify:general -- --all --pool Matic","matic:mumbai:verify:tokens":"npm run hardhat:mumbai verify:tokens -- --pool Matic","matic:mainnet:verify:tokens":"npm run hardhat:matic verify:tokens -- --pool Matic","kovan:verify:tokens":"npm run hardhat:kovan verify:tokens -- --pool Athena","ropsten:verify:tokens":"npm run hardhat:ropsten verify:tokens -- --pool Athena","mainnet:verify:tokens":"npm run hardhat:main verify:tokens -- --pool Athena","print-config:fork:mainnet":"FORK=main hardhat print-config:fork","print-config:kovan":"hardhat --network kovan print-config --pool Athena --data-provider 0xA1901785c29cBd48bfA74e46b67C736b26054fa4","external:deploy-assets-kovan":"npm run compile && hardhat --network kovan external:deploy-new-asset --symbol ${SYMBOL} --verify","external:deploy-assets-main":"npm run compile && hardhat --network main external:deploy-new-asset --symbol ${SYMBOL} --verify","prepublishOnly":"npm run compile"},"devDependencies":{"@nomiclabs/buidler":"^1.4.7","@nomiclabs/buidler-ethers":"2.0.0","@nomiclabs/buidler-etherscan":"^2.1.0","@nomiclabs/buidler-waffle":"2.0.0","@nomiclabs/hardhat-ethers":"^2.0.0","@nomiclabs/hardhat-etherscan":"^3.1.4","@nomiclabs/hardhat-waffle":"^2.0.0","@openzeppelin/contracts":"3.1.0","@tenderly/hardhat-tenderly":"1.1.0-beta.5","@typechain/ethers-v4":"1.0.0","@typechain/ethers-v5":"^2.0.0","@typechain/truffle-v4":"2.0.2","@typechain/truffle-v5":"2.0.2","@typechain/web3-v1":"1.0.0","@types/chai":"4.2.11","@types/lowdb":"1.0.9","@types/mocha":"7.0.2","@types/node":"14.0.5","bignumber.js":"9.0.0","buidler-typechain":"0.1.1","chai":"4.2.0","chai-bignumber":"3.0.0","chai-bn":"^0.2.1","defender-relay-client":"^1.7.0","dotenv":"^8.2.0","eth-sig-util":"2.5.3","ethereum-waffle":"3.0.2","ethereumjs-util":"7.0.2","ethers":"^5.0.19","globby":"^11.0.1","hardhat":"^2.2.0","hardhat-gas-reporter":"^1.0.0","hardhat-typechain":"^0.3.3","husky":"^4.2.5","lowdb":"1.0.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-alpha.53","pretty-quick":"^2.0.1","solidity-coverage":"^0.7.16","temp-hardhat-etherscan":"^2.0.2","ts-generator":"^0.1.1","ts-node":"^8.10.2","tslint":"^6.1.2","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typechain":"^4.0.0","typescript":"^4.0.5"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts'  --pattern 'test-suites/test-athena/**/*.ts' --pattern 'tasks/**/*.ts'"}},"author":{"name":"Athena"},"contributors":[],"license":"AGPLv3","dependencies":{"axios-curlirize":"^1.3.7","tmp-promise":"^3.0.2"},"keywords":["athena","protocol","protocol-v2","ethereum","solidity"],"_id":"@athenalend/protocol-v2@0.0.1","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-dnIQGxFLjM1GgYe1SEuV+kYpfKugEkmtWyldjTbNG9gFYgtI654oukSWV3r7v74/1Tu1H4INfdbb5nBhj8vsJA==","shasum":"46a2a6fc47dd1aa53e85722744473cc5e2bbe433","tarball":"https://registry.npmjs.org/@athenalend/protocol-v2/-/protocol-v2-0.0.1.tgz","fileCount":379,"unpackedSize":17549238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAi70ZmBAVnGOr3o+Yv0vphW+4roDiL2KjClKst1B8dsAiEAgzEyZAZ7Z455QoXQzbB+SrLmwatdf9k2Ys/+mvKvzTI="}]},"_npmUser":{"name":"carlos53093","email":"carloslin53093@gmail.com"},"directories":{},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/protocol-v2_0.0.1_1712241975265_0.19454009806599926"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-04T14:46:15.187Z","0.0.1":"2024-04-04T14:46:15.566Z","modified":"2024-04-04T14:46:15.795Z"},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"description":"Athena Protocol V2 smart contracts","keywords":["athena","protocol","protocol-v2","ethereum","solidity"],"contributors":[],"author":{"name":"Athena"},"license":"AGPLv3","readme":"[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![Build pass](https://github.com/ATHENA/protocol-v2/actions/workflows/node.js.yml/badge.svg)](https://github.com/athena/protocol-v2/actions/workflows/node.js.yml)\n```\n        .///.                .///.     //.            .//  `/////////////-\n       `++:++`              .++:++`    :++`          `++:  `++:......---.`\n      `/+: -+/`            `++- :+/`    /+/         `/+/   `++.\n      /+/   :+/            /+:   /+/    `/+/        /+/`   `++.\n  -::/++::`  /+:       -::/++::` `/+:    `++:      :++`    `++/:::::::::.\n  -:+++::-`  `/+:      --++/---`  `++-    .++-    -++.     `++/:::::::::.\n   -++.       .++-      -++`       .++.    .++.  .++-      `++.\n  .++-         -++.    .++.         -++.    -++``++-       `++.\n `++:           :++`  .++-           :++`    :+//+:        `++:----------`\n -/:             :/-  -/:             :/.     ://:         `/////////////-\n```\n\n# Athena Protocol v2\n\nThis repository contains the smart contracts source code and markets configuration for Athena Protocol V2. The repository uses Docker Compose and Hardhat as development enviroment for compilation, testing and deployment tasks.\n\n## What is Athena?\n\nAthena 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.\n\n## Documentation\n\nThe documentation of Athena V2 is in the following [Athena V2 documentation](https://docs.athena.com/developers/v/2.0/) link. At the documentation you can learn more about the protocol, see the contract interfaces, integration guides and audits.\n\nFor getting the latest contracts addresses, please check the [Deployed contracts](https://docs.athena.com/developers/v/2.0/deployed-contracts/deployed-contracts) page at the documentation to stay up to date.\n\nA more detailed and technical description of the protocol can be found in this repository, [here](./athena-v2-whitepaper.pdf)\n\n## Audits\n\n- MixBytes (16/09/2020 - 03/12/2020): [report](./audits/Mixbytes-athena-v2-03-12-2020.pdf)\n- PeckShield (29/09/2020 - 03/12/2020) : [report](./audits/Peckshield-athena-v2-03-12-2020-EN.pdf) (Also available in Chinese in the same folder)\n- CertiK (28/09/2020 - 02/12/2020): [report](./audits/Certik-athena-v2-03-12-2020.pdf)\n- Consensys Diligence (09/09/2020 - 09/10/2020): [report](https://consensys.net/diligence/audits/2020/09/athena-protocol-v2/)\n- Certora, formal verification (02/08/2020 - 29/10/2020): [report](./audits/Certora-FV-athena-v2-03-12-2020.pdf)\n- SigmaPrime (January 2021): [report](./audits/SigmaPrime-athena-v2-01-2021.pdf)\n\n## Connect with the community\n\nYou can join at the [Discord](http://athena.com/discord) channel or at the [Governance Forum](https://governance.athena.com/) for asking questions about the protocol or talk about Athena with other peers.\n\n## Getting Started\n\nYou can install `@athenalend/protocol-v2` as an NPM package in your Hardhat, Buidler or Truffle project to import the contracts and interfaces:\n\n`npm install @athenalend/protocol-v2`\n\nImport at Solidity files:\n\n```\nimport {ILendingPool} from \"@athenalend/protocol-v2/contracts/interfaces/ILendingPool.sol\";\n\ncontract Misc {\n\n  function deposit(address pool, address token, address user, uint256 amount) public {\n    ILendingPool(pool).deposit(token, amount, user, 0);\n    {...}\n  }\n}\n```\n\nThe JSON artifacts with the ABI and Bytecode are also included into the bundled NPM package at `artifacts/` directory.\n\nImport JSON file via Node JS `require`:\n\n```\nconst LendingPoolV2Artifact = require('@athenalend/protocol-v2/artifacts/contracts/protocol/lendingpool/LendingPool.sol/LendingPool.json');\n\n// Log the ABI into console\nconsole.log(LendingPoolV2Artifact.abi)\n```\n\n## Setup\n\nThe repository uses Docker Compose to manage sensitive keys and load the configuration. Prior 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 enviroment file named `.env` and fill the next enviroment variables\n\n```\n# Mnemonic, only first address will be used\nMNEMONIC=\"\"\n\n# Add Alchemy or Infura provider keys, alchemy takes preference at the config level\nALCHEMY_KEY=\"\"\nINFURA_KEY=\"\"\n\n\n# Optional Etherscan key, for automatize the verification of the contracts at Etherscan\nETHERSCAN_KEY=\"\"\n\n# Optional, if you plan to use Tenderly scripts\nTENDERLY_PROJECT=\"\"\nTENDERLY_USERNAME=\"\"\n\n```\n\n## Markets configuration\n\nThe configurations related with the Athena Markets are located at `markets` directory. You can follow the `IAthenaConfiguration` interface to create new Markets configuration or extend the current Athena configuration.\n\nEach market should have his own Market configuration file, and their own set of deployment tasks, using the Athena market config and tasks as a reference.\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\n## Deployments\n\nFor deploying Athena Protocol V2, you can use the available scripts located at `package.json`. For a complete list, run `npm run` to see all the tasks.\n\n### Kovan deployment\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 athena:kovan:full:migration\n```\n\n### Mainnet fork deployment\n\nYou can deploy Athena Protocol v2 in a forked Mainnet chain using Hardhat built-in fork feature:\n\n```\ndocker-compose run contracts-env npm run athena:fork:main\n```\n\n### Deploy Athena into a Mainnet Fork via console\n\nYou can deploy Athena into the Hardhat console in fork mode, to interact with the protocol inside the fork or for testing purposes.\n\nRun the console in Mainnet fork mode:\n\n```\ndocker-compose run contracts-env npm run console:fork\n```\n\nAt the Hardhat console, interact with the Athena protocol in Mainnet fork mode:\n\n```\n// Deploy the Athena protocol in fork mode\nawait run('athena:mainnet')\n\n// Or your custom Hardhat task\nawait run('your-custom-task');\n\n// After you initialize the HRE via 'set-DRE' task, you can import any TS/JS file\nrun('set-DRE');\n\n// Import contract getters to retrieve an Ethers.js Contract instance\nconst contractGetters = require('./helpers/contracts-getters'); // Import a TS/JS file\n\n// Lending pool instance\nconst lendingPool = await contractGetters.getLendingPool(\"LendingPool address from 'athena:mainnet' task\");\n\n// You can impersonate any Ethereum address\nawait network.provider.request({ method: \"hardhat_impersonateAccount\",  params: [\"0xb1adceddb2941033a090dd166a462fe1c2029484\"]});\n\nconst signer = await ethers.provider.getSigner(\"0xb1adceddb2941033a090dd166a462fe1c2029484\")\n\n// ERC20 token DAI Mainnet instance\nconst DAI = await contractGetters.getIErc20Detailed(\"0x6B175474E89094C44Da98b954EedeAC495271d0F\");\n\n// Approve 100 DAI to LendingPool address\nawait DAI.connect(signer).approve(lendingPool.address, ethers.utils.parseUnits('100'));\n\n// Deposit 100 DAI\nawait lendingPool.connect(signer).deposit(DAI.address, ethers.utils.parseUnits('100'), await signer.getAddress(), '0');\n\n```\n\n## Interact with Athena in Mainnet via console\n\nYou can interact with Athena at Mainnet network using the Hardhat console, in the scenario where the frontend is down or you want to interact directly. You can check the deployed addresses at https://docs.athena.com/developers/deployed-contracts.\n\nRun the Hardhat console pointing to the Mainnet network:\n\n```\ndocker-compose run contracts-env npx hardhat --network main console\n```\n\nAt the Hardhat console, you can interact with the protocol:\n\n```\n// Load the HRE into helpers to access signers\nrun(\"set-DRE\")\n\n// Import getters to instance any Athena contract\nconst contractGetters = require('./helpers/contracts-getters');\n\n// Load the first signer\nconst signer = await contractGetters.getFirstSigner();\n\n// Lending pool instance\nconst lendingPool = await contractGetters.getLendingPool(\"0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9\");\n\n// ERC20 token DAI Mainnet instance\nconst DAI = await contractGetters.getIErc20Detailed(\"0x6B175474E89094C44Da98b954EedeAC495271d0F\");\n\n// Approve 100 DAI to LendingPool address\nawait DAI.connect(signer).approve(lendingPool.address, ethers.utils.parseUnits('100'));\n\n// Deposit 100 DAI\nawait lendingPool.connect(signer).deposit(DAI.address, ethers.utils.parseUnits('100'), await signer.getAddress(), '0');\n```\n","readmeFilename":"README.md"}