We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Full-stack-Web-Dev BD • 3 years ago

Awsome tutorial bro

Joseph Capozza • 2 years ago

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.

Distillers • 2 years ago

Very good content.

aleksandrkrasnopolskiy • 2 years ago

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.

Markus Waas • 2 years ago

yes of course!

PhanTom • 3 years ago

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

Top Dev • 3 years ago

Markus, You're fantasy!
I have one question.
How can I get the profitable pair?

Markus Waas • 3 years ago

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.