Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exploit Question #1

Open
jasperdegens opened this issue Jan 21, 2021 · 0 comments
Open

Exploit Question #1

jasperdegens opened this issue Jan 21, 2021 · 0 comments

Comments

@jasperdegens
Copy link

Hi Emilio,

Thanks for the great tutorial this morning on flashloans -- the whys and hows of flashloans make much more sense. I've been experimenting locally and was looking for the contract exploit you mentioned, and I saw there is a reentrancy vulnerability. However, after some local tests it seems the gas fee to exploit the vulnerability is greater than the 0.09% bump you receive when calling arbitrage() (which is capped at 0.01 ETH). Executing a reentrancy attack once costs ~83603 gas, 10 times =~262802 gas in my tests, . Is there another method that I am missing? I am not too keen to burn all the funds on the contract in gas fees. This isn't an issue but was just wondering if I am on the right direction. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant