AngelDguez

Results 7 comments of AngelDguez

> The following setting in brownie-config.yaml worked for me: > > ``` > settings: > gas_limit: "2074044" > ``` This worked for me...what is the reason for that specific gas...

You can add the gas in the transaction on run_flash_loan.py tx = flashloan.flashloan(weth, {"from": acct, "gas_limit": 2074044})

Hi, FlashloanV2 is Withdrawable hence you can use the function withdraw. Something like the below would withdraw all the weth you have in your flashloan for instance. ![image](https://user-images.githubusercontent.com/66129281/158631009-7690fc34-2ccc-471e-b5c2-220348b61464.png)

Has your flashLoan contract got "contract FlashloanV2 is FlashLoanReceiverBaseV2, Withdrawable " withdrawable inherit? ![image](https://user-images.githubusercontent.com/66129281/161381757-3430d68b-3dc1-41e8-9406-762c616ebb6b.png)

i think you are missing adding the import Withdrawable on FlashLoanReceiverBaseV2.sol ``` // SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.6.8; import { SafeMath } from '@openzeppelin/contracts/math/SafeMath.sol'; import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol';...

> Has your flashLoan contract got "contract FlashloanV2 is FlashLoanReceiverBaseV2, Withdrawable " withdrawable inherit? ![image](https://user-images.githubusercontent.com/66129281/161381757-3430d68b-3dc1-41e8-9406-762c616ebb6b.png) Here I was talking about Flashloan.sol which is another file you need to modify.

Can you quickly try having ![image](https://user-images.githubusercontent.com/66129281/162786556-168ad332-f49b-43e8-b950-851c042c83f5.png) in your FlashloanV2.sol contract instead of ![image](https://user-images.githubusercontent.com/66129281/162786845-c89afe24-47c3-479b-ad62-77ddf69035dc.png) Flashloan_aave is a different flashloan I am playing with.