@chanceprotocol/aave-v3-yield-source v1.1.1
PoolTogether Aave V3 Yield Source 👻
PoolTogether Yield Source that uses Aave V3 to generate yield by lending any ERC20 token deposited into the Yield Source to Aave.
Development
Clone this repository and enter the directory:
cd aave-v3-yield-sourceInstallation
Install dependencies:
yarnEnv
We use direnv to manage environment variables. You'll likely need to install it.
Copy .envrc.example and write down the env variables needed to run this project.
cp .envrc.example .envrcOnce your env variables are setup, load them with:
direnv allowCompile
Run the following command to compile the contract:
yarn compileTest
We use the Hardhat ecosystem to test our contracts.
To run unit tests:
yarn testTo run coverage:
yarn coveragePolygon fork
Before deploying, you can make sure your implementation works by deploying a Yield Source Prize Pool on a fork of Polygon.
To do so, run the following command:
yarn run-yield-source-forkCode quality
Prettier is used to format TypeScript and Solidity code. Use it by running:
yarn formatSolhint is used to lint Solidity files. Run it with:
yarn hintTypeChain is used to generates types for scripts and tests. Generate types by running:
yarn typechain2 years ago