aave-flashloan-arbitrage
aave-flashloan-arbitrage copied to clipboard
Issue
I get this issue every time. unfortunately. Any suggestions?
raise RPCProcessError(cmd, uri) RPCProcessError: Unable to launch local RPC client. Command: ganache-cli URI: http://127.0.0.1:8545
have you installed ganache / ganache-cli globally?
I think it should be installed globally
i am using remix ide to execute your smart contract can you please tell me which function i should call first ? i am stuck there.. and the contract address for the asset also which one to use for weth ???
To excute an arbitrage (after deploying the contract) you must first call the deposit function to add funds to the contract (erc20 must be approved in advance ) then call the flashloan function
You can check the scripts/flashloan_arbitrage.py code to see the whole sequence
after calling the deposit function should I call makeArbitrage() function to execute the flashloan. or are there any initial steps before it?