We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
I am able to get the compile the code perfectly fine, but I am from the United States, and US residents cannot use Bancor according to its ToS. Please tell me what changes I need to make to the code.
Very good content.
Is it possible to set the same transaction up, but setting specific exchange rates and only performing the trade if all legs are good to go.
Meaning that the transaction will be either all completed at a specific exchange rate or not at all.
yes of course!
Markus, You're fantasy!
Can you guide how to write smart contract do flashloan arbitrage
Like this contract 0x166a309EFcEedc82C501014130BeADd0B3097475
Borrow asset then making multiple swaps across different decentralized exchanges in a single transaction.
https://etherscan.io/tx/0x8...
Markus, You're fantasy!
I have one question.
How can I get the profitable pair?
You keep track of the prices in all pools that interest you. And you also have a fair evaluation price, for example from the Binance or Coinmarket Cap API. Whenever a pool drops below the fair evaluation price, you can arbitrage. Factoring in gas costs and you need to do some math when it becomes profitable and when it's not. Bonus points for inspecting the mempool and getting information even faster. Tools like https://bloxroute.com/ can help here, but are expensive.
Awsome tutorial bro