├── .envrc.example ├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .solcover.js ├── .solhint.json ├── .solhintignore ├── .yarn └── releases │ └── yarn-berry.cjs ├── .yarnrc.yml ├── Constant.ts ├── README.md ├── aave.config.ts ├── aave ├── aaveKovan.json ├── aaveMainnet.json ├── aaveMumbai.json └── aavePolygon.json ├── contracts ├── external │ └── aave │ │ ├── ATokenInterface.sol │ │ ├── IAToken.sol │ │ ├── IAaveIncentivesController.sol │ │ ├── ILendingPool.sol │ │ ├── ILendingPoolAddressesProvider.sol │ │ ├── ILendingPoolAddressesProviderRegistry.sol │ │ ├── IProtocolDataProvider.sol │ │ └── IProtocolYieldSource.sol ├── test │ ├── ATokenMintable.sol │ ├── ATokenYieldSourceHarness.sol │ ├── AaveLendingPool.sol │ ├── ERC20Mintable.sol │ └── SafeERC20Wrapper.sol └── yield-source │ └── ATokenYieldSource.sol ├── hardhat.config.ts ├── hardhat.network.ts ├── package.json ├── scripts ├── createAndRunPrizePoolMumbai.ts ├── createAndRunPrizePoolPolygon.ts ├── fork │ ├── distributeEtherFromBinance.ts │ ├── impersonateAccounts.ts │ └── index.ts ├── generateDeployment.ts ├── helpers.ts ├── package-version.sh └── runLifecycle.ts ├── test └── ATokenYieldSource.test.ts ├── tsconfig.json └── yarn.lock /.envrc.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.envrc.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | /.yarn/** linguist-vendored 2 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 15.11.0 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | types 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.solcover.js -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.solhintignore -------------------------------------------------------------------------------- /.yarn/releases/yarn-berry.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.yarn/releases/yarn-berry.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /Constant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/Constant.ts -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/README.md -------------------------------------------------------------------------------- /aave.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/aave.config.ts -------------------------------------------------------------------------------- /aave/aaveKovan.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/aave/aaveKovan.json -------------------------------------------------------------------------------- /aave/aaveMainnet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/aave/aaveMainnet.json -------------------------------------------------------------------------------- /aave/aaveMumbai.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/aave/aaveMumbai.json -------------------------------------------------------------------------------- /aave/aavePolygon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/aave/aavePolygon.json -------------------------------------------------------------------------------- /contracts/external/aave/ATokenInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/ATokenInterface.sol -------------------------------------------------------------------------------- /contracts/external/aave/IAToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/IAToken.sol -------------------------------------------------------------------------------- /contracts/external/aave/IAaveIncentivesController.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/IAaveIncentivesController.sol -------------------------------------------------------------------------------- /contracts/external/aave/ILendingPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/ILendingPool.sol -------------------------------------------------------------------------------- /contracts/external/aave/ILendingPoolAddressesProvider.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/ILendingPoolAddressesProvider.sol -------------------------------------------------------------------------------- /contracts/external/aave/ILendingPoolAddressesProviderRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/ILendingPoolAddressesProviderRegistry.sol -------------------------------------------------------------------------------- /contracts/external/aave/IProtocolDataProvider.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/IProtocolDataProvider.sol -------------------------------------------------------------------------------- /contracts/external/aave/IProtocolYieldSource.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/external/aave/IProtocolYieldSource.sol -------------------------------------------------------------------------------- /contracts/test/ATokenMintable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/test/ATokenMintable.sol -------------------------------------------------------------------------------- /contracts/test/ATokenYieldSourceHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/test/ATokenYieldSourceHarness.sol -------------------------------------------------------------------------------- /contracts/test/AaveLendingPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/test/AaveLendingPool.sol -------------------------------------------------------------------------------- /contracts/test/ERC20Mintable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/test/ERC20Mintable.sol -------------------------------------------------------------------------------- /contracts/test/SafeERC20Wrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/test/SafeERC20Wrapper.sol -------------------------------------------------------------------------------- /contracts/yield-source/ATokenYieldSource.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/contracts/yield-source/ATokenYieldSource.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /hardhat.network.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/hardhat.network.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/package.json -------------------------------------------------------------------------------- /scripts/createAndRunPrizePoolMumbai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/createAndRunPrizePoolMumbai.ts -------------------------------------------------------------------------------- /scripts/createAndRunPrizePoolPolygon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/createAndRunPrizePoolPolygon.ts -------------------------------------------------------------------------------- /scripts/fork/distributeEtherFromBinance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/fork/distributeEtherFromBinance.ts -------------------------------------------------------------------------------- /scripts/fork/impersonateAccounts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/fork/impersonateAccounts.ts -------------------------------------------------------------------------------- /scripts/fork/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/fork/index.ts -------------------------------------------------------------------------------- /scripts/generateDeployment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/generateDeployment.ts -------------------------------------------------------------------------------- /scripts/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/helpers.ts -------------------------------------------------------------------------------- /scripts/package-version.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/package-version.sh -------------------------------------------------------------------------------- /scripts/runLifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/scripts/runLifecycle.ts -------------------------------------------------------------------------------- /test/ATokenYieldSource.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/test/ATokenYieldSource.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pooltogether/aave-yield-source/HEAD/yarn.lock --------------------------------------------------------------------------------