kaymen99 / uniswap-sushiswap-arbitrage

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

testnet name #2

Closed carterlasalle closed 1 year ago

carterlasalle commented 2 years ago

what should i put instead of mainnet-fork?

kaymen99 commented 2 years ago

The use of mainnet-fork is only for testing, you can change it to the Koran testnet or to the real ethereal mainnet (but be careful you'll be using real money in this case) If you want to use other networks you need to check the ones that both Sushiswap and uniswap are deployed to, and add their respective addresses into the brownie-config.yaml file

carterlasalle commented 2 years ago

Ah Okay!

Installing this I had some issues


New compatible solc version available: 0.6.12
Compiling contracts...
  Solc version: 0.6.12
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
WARNING: Unable to compile aave/protocol-v2@1.0.1 due to a CompilerError - you may still be able to import sources from the package, but will be unable to load the package directly.```

2.

```Rocket1@Carters-MacBook-Pro uniswap-sushiswap-arbitrage % brownie run scripts/arbitrage.py --network=mainnet-fork
Brownie v1.17.2 - Python development framework for Ethereum

UniswapSushiswapArbitrageProject is the active project.

Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie --fork https://mainnet.infura.io/v3/57f794b83cf64c88a948f49ff6ba34ef --chainId 1'...
  File "brownie/_cli/__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "brownie/_cli/run.py", line 44, in main
    network.connect(CONFIG.argv["network"])
  File "brownie/network/main.py", line 50, in connect
    rpc.launch(active["cmd"], **active["cmd_settings"])
  File "brownie/network/rpc/__init__.py", line 93, in launch
    raise RPCProcessError(cmd, uri)
RPCProcessError: Unable to launch local RPC client.
Command: ganache-cli
URI: http://127.0.0.1:8545 

> The use of mainnet-fork is only for testing, you can change it to the Koran testnet or to the real ethereal mainnet (but be careful you'll be using real money in this case) If you want to use other networks you need to check the ones that both Sushiswap and uniswap are deployed to, and add their respective addresses into the brownie-config.yaml file
kaymen99 commented 2 years ago

try to install ganache-cli : npm install -g ganache-cli

carterlasalle commented 2 years ago

npm install -g ganache-cli


npm ERR! path /usr/local/bin/ganache-cli
npm ERR! EEXIST: file already exists
npm ERR! File exists: /usr/local/bin/ganache-cli
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Rocket1/.npm/_logs/2022-05-05T23_00_10_578Z-debug-0.log