Converting HIVE to HBD, with lots of math

in STEMGeeks β€’ 3 years ago

I learned something new and interesting about directly converting HIVE to HBD (Hive-Backed Dollars). 😎

  1. Half of the HIVE is instantly converted to HBD which assumes that HBD costs exactly $1.05 regardless of the current HBD price and future changes in HBD price. The 5% extra HBD is burned.
  2. The worth of (the half of) HIVE to be converted to HBD is taken from the 3.5-day median HIVE price.
  3. After 3.5 days from initial time of conversion, the rest of the HIVE is returned (as HIVE, not as HBD), whose total amount is determined by the median price of HIVE for the past 3.5 days (which is technically the period from the start to end of conversion).

To make it easier to think about, the blockchain "loans" us half the worth of HIVE as HBD pegged at $1.05 per HBD, then sends back more or less the unconverted HIVE depending on the median price of HIVE during the conversion period. πŸ€“

The three facts above mean that it is best to convert under the following scenarios (though #NotFinancialAdvice):

  • The price of HIVE is predicted to increase or at least remain the same.
  • The price of HBD is higher than $1.05.
  • You need the HBD for some reason and are okay with waiting for 3.5 days to get more or less half of the HIVE back.
  • HBD is significantly higher than $1.05 and you want to earn by converting lots of HIVE.


(screenshot of current HIVE and HBD prices on #PeakD wallet)

Note that starting below, we get theoretical with lots of mathematics. πŸ€“ You have been informed ahead of time! πŸ˜‚


Let's imagine!

Β 
Let's first assume the following:

  • The price of HBD is at $2.
  • The price of HIVE has been stable at $0.50 for the past 3.5 days.
  • The price of HIVE will continue to be at $0.50 for the next 3.5 days.
  • You have 100 HIVE (worth $50) and want to earn by converting to HBD.
  • The Hive internal market allows you to swap 1 HIVE for 0.5 HBD without fees.
  • The prices above won't change whenever you make a conversion or a swap.

Let's then assume that we will do the following steps:

  1. You convert 100 HIVE (worth $50) to HBD. You instantly get 23.75 HBD which is 25 HBD (100 HIVE * 0.5 HBD per HIVE * 0.95 / 2) minus the 5% fee which is burned. 23.75 HBD is worth $47.50.
  2. You use the Hive internal market to swap 23.75 HBD to 47.50 HIVE (using the ratio of 1 HIVE to 0.5 HBD).
  3. You convert 47.50 HIVE (worth $23.75) to HBD. With the same equation as on the first step, you instantly get approximately 11.281 HBD. (This is approximately 47.5% of the HBD instantly obtained in step 1.)
  4. You repeat steps 1 to 2 until you have so little HIVE remaining that it would no longer be worth the time to repeat.

Since you get 47.5% back for every trade, we can use the infinite geometric series formula (math, I told you πŸ€“) to determine how much USD worth of HIVE we can get by repeating steps 1 to 2.

sum = (first term) / (1 - common ratio)

The first term is $50 and the common ratio is 47.5% or 0.475.

sum = 50 / (1 - 0.475) = 50 / 0.525 β‰ˆ 95.238

The end result is that for a $50 capital in the form of HIVE, you get at most $95.23 after all the conversions and swaps using your $50 capital, which will go back to you after 3.5 days, in the form of HIVE. That's only the theoretical limit of repeating the steps. The reason why you can't get exactly $95.23 regardless of how many times you repeat is because the blockchain will round down every conversion and swap to the nearest thousandth (0.001 HIVE or 0.001 HBD).

Note that this is assuming that the price of HIVE does not change. If HIVE increases in price, then you get more of the remaining half of HIVE after 3.5 days; if price decreases, then you get less HIVE when the conversion completes.

Further thinking!

Β 
What if the price of 1 HBD is idealistically at $3? What if more realistically, HBD is at $1.17 which is the current price at publish time? Maybe you want to comment them out and use the infinite geometric series formula. πŸ˜‚

Why not convert your unneeded HIVE if the price of HBD is high? You will also help the Hive community this way by helping stabilize the price of HBD. 😏


Please note that this is #NotFinancialAdvice. βš–οΈπŸ‘

Thanks for reading!

Posted with STEMGeeks

Sort: Β 

I've been using the PeakD wallet to run my free coins through the HIVE-HBD conversion. With so many people running this conversion, i am surprised that HBD has bee consistently above $1.10 for the last week.

I have a nasty habit of doing the exact wrong thing. Since PeakD knows the price of HIVE and HBD, I wish the program put up warning signs so that we don't accidentally do the wrong conversion.

Β 3 years agoΒ (edited)Β 

I found out recently that this change has been a great way of both helping users earn more coins and bringing HBD closer to $1 faster. πŸ€”

Maybe you mean with the "wrong thing" is accidentally converting HBD to HIVE instead of HIVE to HBD. πŸ€”

Thanks for your comment (and upvote)! 😁

Yes, i meant confusing the new Hive-HBD conversion with the HBD-Hive conversion.

!engage

While I would like to see a new feature on #PeakD where HBD to HIVE conversion when HBD is above $1 would show a notice, I think that #PeakD already has a whole lot of features that they won't be able to maintain all features at the same time.

I also believe that people should be careful every single time they make a monetary transaction.

Thanks for the !ENGAGE. Have some !PIZZA with !LUV and enjoy being !ALIVE.

<><

<><

LUV

Connect

Trade


@yintercept, you've been given LUV from @savvyplayer.

Check the LUV in your H-E wallet. LUV changes soon. (5/10)

@yintercept! I sent you a slice of $PIZZA on behalf of @savvyplayer.

Did you know you can earn $PIZZA through Hive-Engine Diesel Pools? (6/10)

Thank you for your engagement on this post, you have recieved ENGAGE tokens.

You Are Alive and have been rewarded with 0.1 ALIVE tokens from the We Are Alive Tribe, and it's paid for by the earnings on @alive.chat, swing by our daily chat any time you want.

The !ENGAGE command should be in uppercase. Thanks for attempting to share! πŸ˜€

Have a !PIZZA with !LUV! 😁

@yintercept! I sent you a slice of $PIZZA on behalf of @savvyplayer.

Did you know PIZZA team has a curation trail with 29 followers? (1/10)

<><

<><

LUV

Connect

Trade


@yintercept, you've been given LUV from @savvyplayer.

Check the LUV in your H-E wallet. LUV changes soon. (1/10)

!LUV !PIZZA

When you learn something new, I learn something new as well!

@savvyplayer! I sent you a slice of $PIZZA on behalf of @lolxsbudoy.

Did you know PIZZA has a very active community Discord? (1/10)

<><

<><

LUV

Connect

Trade


@savvyplayer, you've been given LUV from @lolxsbudoy.

Check the LUV in your H-E wallet. LUV changes soon. (1/3)

Thanks for reading and appreciating my article! πŸ˜€

Are you going to try doing my strategy when the price of HBD skyrockets again? πŸ€” #NotFinancialAdvice πŸ˜…

!PIZZA !LUV !ALIVE !ENGAGE

Would like to do that, I'm gonna save some money first hehe

!LUV !PIZZA

@savvyplayer! I sent you a slice of $PIZZA on behalf of @lolxsbudoy.

Did you know PIZZA team has a curation trail with 29 followers? (2/10)

<><

<><

LUV

Connect

Trade


@savvyplayer, you've been given LUV from @lolxsbudoy.

Check the LUV in your H-E wallet. LUV changes soon. (2/3)

You can test it out by using about 2 HIVE and converting it to HBD. 😏

I don't know how many times I should say #NotFinancialAdvice. πŸ€” That tag is not just for you, but for anyone else who might happen to read our conversation here. πŸ˜…

!PIZZA !LUV !ALIVE !ENGAGE

Man! I was late, pretty late as the price went up just like boom... I was planning to buy some hive today and try your strategy. Unfortunately!

!LUV !PIZZA

Posted via D.Buzz

@lolxsbudoy, sorry. :(

You can call the LUV bot a maximum of 3 times per day. To give more each day, check LUV Levels.

Unfortunately, you run out of !LUV for today, and you already shared to me 2 !PIZZAs this day too, so you need to share your PIZZAs with somebody else. 😏

Anyway, what would you use to buy HIVE? I assume it would be the DEC you earned from #Splinterlands. πŸ€“

!ALIVE !ENGAGE

@lolxsbudoy! I sent you a slice of $PIZZA on behalf of @savvyplayer.

Did you know PIZZA has a very active community Discord? (3/10)

<><

<><

LUV

Connect

Trade


@lolxsbudoy, you've been given LUV from @savvyplayer.

Check the LUV in your H-E wallet. LUV changes soon. (2/10)

There has already been too much ENGAGE today.

You Are Alive and have been rewarded with 0.1 ALIVE tokens from the We Are Alive Tribe, and it's paid for by the earnings on @alive.chat, swing by our daily chat any time you want.

<><

<><

LUV

Connect

Trade


@lolxsbudoy, you've been given LUV from @savvyplayer.

Check the LUV in your H-E wallet. LUV changes soon. (7/10)

Thank you for your engagement on this post, you have recieved ENGAGE tokens.

You Are Alive and have been rewarded with 0.1 ALIVE tokens from the We Are Alive Tribe, and it's paid for by the earnings on @alive.chat, swing by our daily chat any time you want.

<><

<><

LUV

Connect

Trade


@lolxsbudoy, you've been given LUV from @savvyplayer.

Check the LUV in your H-E wallet. LUV changes soon. (3/10)

@lolxsbudoy! I sent you a slice of $PIZZA on behalf of @savvyplayer.

Did you know you can spend $PIZZA on games in the $Pizza Store? (4/10)

Thank you for your engagement on this post, you have recieved ENGAGE tokens.

You Are Alive and have been rewarded with 0.1 ALIVE tokens from the We Are Alive Tribe, and it's paid for by the earnings on @alive.chat, swing by our daily chat any time you want.