Skip to content

Instantly share code, notes, and snippets.

@iphelix
Last active November 13, 2020 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iphelix/c45a5c27db73654005dca34b7c277d16 to your computer and use it in GitHub Desktop.
Save iphelix/c45a5c27db73654005dca34b7c277d16 to your computer and use it in GitHub Desktop.
Damn Vulnerable DeFi - Unstoppable
it('Exploit', async function () {
/** YOUR EXPLOIT GOES HERE */
});
after(async function () {
/** SUCCESS CONDITION */
await expectRevert.unspecified(
this.receiverContract.executeFlashLoan(10, { from: someUser })
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment