tokenly / swapbot

Exchange tokens with an automated machine
3 stars 4 forks source link

Account for fees when showing maximum BTC for sale #219

Open deweller opened 9 years ago

deweller commented 9 years ago

When a bot is buying a token for BTC (or selling BTC), the online calculator does not take into account fees when showing the maximum amount to purchase.

So the calculator says it is ok, but then when you send funds the swap is out of stock.

The calculator should take into account the fees it will need to send.