aave_brownie_py
aave_brownie_py copied to clipboard
Gas estimation failed
Hi! Everything works fine in mainnet-fork, but when I try to execute in Kovan I get this error:
You have 0.102528088850729021 worth of ETH deposited You have 9.876093905E-9 worth of ETH already borrowed You have 0.082022461204489312 ETH available to borrow Lets borrow some DAI! El precio DAI/ETH es 0.000956734067650536 Puedo pedir prestado hasta 81.44513797404251 DAI Borrowing DAI! File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie_cli\run.py", line 49, in main return_value, frame = run( File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\project\scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File ".\scripts\aave_borrow.py", line 48, in main tx2 = lending_pool.borrow( File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\network\contract.py", line 1693, in call return self.transact(*args) File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\network\contract.py", line 1566, in transact return tx["from"].transfer( File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\network\account.py", line 642, in transfer receipt, exc = self._make_transaction( File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\network\account.py", line 725, in _make_transaction raise VirtualMachineError(e) from None File "C:\Users\teres\AppData\Roaming\Python\Python310\site-packages\brownie\exceptions.py", line 121, in init raise ValueError(str(exc)) from None ValueError: Gas estimation failed: 'The execution failed due to an exception.'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.
Any suggestion? Thanks
The kovan addresses have changed a lot... It's likely due to a new address. Maybe we should update the repo to stick to mainnet-forks and not testnets?
What do you think?