IdleYieldSource for PoolTogether Prize Pool
PoolTogether Yield Source that uses Idle to generate yield by lending ERC20 token supported by Idle and deposited into the Idle Yield Source.
Setup
1). 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 .envrc
Once your env variables are setup, load them with:
direnv allow
2). Install Dependency by running:
yarn
3). To compile Smart contract code:
yarn compile
3). To run unit tests:
yarn test
4). Check test coverage
yarn coverage
5). Test script for prizepool For Mainnet fork
yarn fork
6). Deploy New Idle Yield Source through Pooltogether-proxy-contract on kovan or mainnet
yarn deploy-kovan
or
yarn deploy-mainnet
Output For Kovan:-
PoolTogether Idle Yield Source - Deploy Script
network: Kovan (remote)
deployer: 0x2031d045f56e679925bFdCDa3416448Cc9B1b688
Deploying IdleYieldSourceProxyFactory...
Deploying Proxy Yield Source...
Deployed Yield Source...
Initializing Yield Source
Initialized!!
Deployed New IdleYieldSource Address 0xecD4b75E7ccf571CF99B0F51955866657469bB49