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/27e939cc69513c14f14788c900946b0a to your computer and use it in GitHub Desktop.
Save iphelix/27e939cc69513c14f14788c900946b0a to your computer and use it in GitHub Desktop.
Damn Vulnerable DeFi - Unstoppable
function executeFlashLoan(uint256 amount) external {
require(msg.sender == owner, "Only owner can execute flash loan");
pool.flashLoan(amount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment