Last active
November 13, 2020 23:25
-
-
Save iphelix/27e939cc69513c14f14788c900946b0a to your computer and use it in GitHub Desktop.
Damn Vulnerable DeFi - Unstoppable
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
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