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

Increasing the loan amount #27

Open
harman-brar opened this issue May 3, 2022 · 0 comments
Open

Increasing the loan amount #27

harman-brar opened this issue May 3, 2022 · 0 comments

Comments

@harman-brar
Copy link

harman-brar commented May 3, 2022

Increasing the amount from 1 ether (to any of 2, 5, 10 ether) in FlashloanV2.sol:89 leads to the following error:

ValueError: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.

Trying to interact with the overloaded flashloan function in the run_flash_loan_v2.py script via

tx = flashloan.flashloan([weth], [5 * 1e18], {"from": acct})

also leads to the same error. Everything works fine as long as I only flash 1 ether.

What is the correct way to increase the loan amount?

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