This repository contains the contracts and tests for the integration with the Keep3r Network.
The Keep3r Network will automate the autocompounding via periodical harvests in the different strategies.
HarvestV2KeeperJob
To work HarvestV2KeeperJob, the keeper must be a valid keeper on Keep3r V2
- Have at least 50 KP3R bonded
- Should not be a contract
The cooldown per strategy is initially set in 5 days. Once the actual timestamp per strategy is over 5 days, then the trigger will controlled by:
IBaseStrategy(_strategy).harvestTrigger(_getCallCosts(_strategy));
Which will be represented by a profit in USDT threshold. If the claimable profit > threshold
it will be true
Goerli Testing deployments
- HarvestV2Keeper: 0xeecdE45B2286fFE7677E209DC3C149Cd160a242E
Steps for Common Repo usage
cd grizzly-keeper-contracts
yarn
To install Hardhat, go to an empty folder, initialize an npm
project (i.e. npm init
), and run
npm install --save-dev hardhat
Once it's installed, just run this command and follow its instructions:
npx hardhat
To run the tests:
npx hardhat test
or for a specific test
npx hardhat test tests/<test>.ts
in the case of the harvestKeeper test
npx hardhat test tests/harvestKeeper.ts --network hardhat