AngelDguez
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. 
Has your flashLoan contract got "contract FlashloanV2 is FlashLoanReceiverBaseV2, Withdrawable " withdrawable inherit? 
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?  Here I was talking about Flashloan.sol which is another file you need to modify.
Can you quickly try having  in your FlashloanV2.sol contract instead of  Flashloan_aave is a different flashloan I am playing with.