Hey all, long time no see.
Today I introduce to you the Hive Swap Calculator!
What does it do?
If you're looking to buy or sell some Hive, but you're not sure what the best route is. Should you go through Hive? Hive-Engine? Which coin? That's where the Hive Swap Calculator comes in. It's designed to show you the most profitable way to buy or sell Hive, based on real-time market prices.
The interface is designed to be straightforward and is not dissimilar to the interface you might see on Uniswap. You've got an input for the amount, a toggle for buying or selling, and a field to set Hive-Engine fees (since there are multiple routes to deposit/withdraw hive).
Smarter Decisions
This was intended to be a one day project, however, after realising the logic necessary to factor in the ever-changing network fees, it took a little longer - but it does mean it accurately factors in the withdrawal fees for any networks which charge it (including BSC, ETH .etc) with the live fee from hive-engine.
Code
If you're interested in the setup - it's a Go backend for the basic calculations and merging of the data and javascript for the final calculations based on the data you enter in the page. You can check out the code here if you want to learn more about it.
I'm always open to feedback. So go ahead, give it a spin, and let me know what you think! Of course, markets change rapidly and so I'd only recommend using this if there's a good margin to be had - however I had fun and it was a good way to mess around with some hive and hive engine APIs I haven't touched in a while.
Don't forget to check it out here Hive Swap Calculator.
Thanks for stopping by as always, CA