kaymen99 / uniswap-sushiswap-arbitrage

Smart contract for performing arbitrage between Uniswap and Sushiswap
MIT License
63 stars 16 forks source link

Script execution #1

Closed FabianBoni closed 2 years ago

FabianBoni commented 2 years ago

Running 'scripts\arbitrage.py::main'... File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie_cli\run.py", line 49, in main return_value, frame = run( File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\project\scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File ".\scripts\arbitrage.py", line 15, in main account = get_account() File ".\scripts\helper_scripts.py", line 16, in get_account return accounts[0] File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\network\account.py", line 113, in getitem return self._accounts[key] IndexError: list index out of range

kaymen99 commented 2 years ago

You need to add the INFURA project ID in the .env file and then run the command on the mainnet-fork: brownie run scripts/arbitrage.py --network=mainnet-fork

FabianBoni commented 2 years ago

That should not be the problem, because I already did.

kaymen99 commented 2 years ago

"list index out of range" means that the accounts list is not loaded properly for the mainnet-fork network

FabianBoni commented 2 years ago

So you mean the problem has to be on the INFURA site?