aave-flashloan-arbitrage icon indicating copy to clipboard operation
aave-flashloan-arbitrage copied to clipboard

Issue

Open DannyEllis55 opened this issue 2 years ago • 5 comments

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

DannyEllis55 avatar Oct 28 '22 22:10 DannyEllis55

have you installed ganache / ganache-cli globally?

Niceural avatar Dec 11 '22 16:12 Niceural

I think it should be installed globally

kaymen99 avatar Dec 13 '22 06:12 kaymen99

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 ???

ashspider avatar Dec 15 '22 09:12 ashspider

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

kaymen99 avatar Dec 18 '22 20:12 kaymen99

after calling the deposit function should I call makeArbitrage() function to execute the flashloan. or are there any initial steps before it?

ashspider avatar Jan 16 '23 08:01 ashspider