Many of you have probably already heard about the Hive Debt Ratio and the Haircut Rule that comes with it. But few understand these two notions which are important for the good financial health of the Hive ecosystem.
In this post, I will try to explain to you in the simplest possible way the mechanisms that come into play, starting from the basics that are necessary for your understanding.
1. One blockchain, two tokens
The Hive ecosystem has two tokens: HIVE and HBD (Hive Backed Dollars)
To avoid confusion, because the Hive platform has the same name as its HIVE token, we used to capitalize it when talking about the last one.
HIVE is the main liquid currency of the Hive ecosystem. It may be traded, staked, bought, and sold.
HBD was designed as an attempt to bring stability to the individuals who use the Hive network. Although HBD can also be traded, bought and sold (but not staked, although some see moving HBD to savings as a form of staking), it is considered a debt by the blockchain.
2. Why a debt?
HBD are created by a mechanism similar to convertible notes, which are often used to fund startups. In the startup world, convertible notes are short-term debt instruments that can be converted to ownership at a rate determined in the future, typically during a future funding round.
HIVE can be viewed as ownership in the community whereas HBD can be viewed as a debt denominated in HIVE.
The terms of the convertible note allow the holder to convert to the backing token (HIVE) with a minimum notice at the fair market price of the token.
Translated to the Hive ecosystem, the above sentence means that:
- the "terms" are embedded into the blockchain code as a smart contract
- it allows its users to convert each HBD they own into the equivalent of $1 USD worth of HIVE
- the conversion process will take 3.5 days
- the conversion price is the "median" HIVE price observed during those 3.5 days using the price feeds from the Hive witnesses. This has been put in place to factor out short-term price fluctuations.
Each HBD is essentially an IOU ("I Owe You [HIVE tokens]") issued by the platform and given out as a reward to its users.
3. What is the debt ratio?
As we have seen above, if HIVE is viewed as ownership in the whole supply of tokens, then HBD can be viewed as debt.
The debt ratio is the ratio between the HIVE virtual supply and the HBD supply.
- The HIVE supply is the number of HIVE tokens, both liquid (HIVE) and staked (Hive Power), that are in existence.
- The HBD supply is the number of HBD tokens that are in existence.
- The HIVE virtual supply is the HIVE supply plus the amount of HIVE we would get if we instantly converted all the HBD supply into HIVE.
Note: since hardfork 24, HBD stored in the treasury (@hive.fund wallet) don't count towards the HBD debt ratio because it doesn't make sense to count them in the debt ratio as they are "locked" by another "smart contract" which prevents them to be liquidated at once (the daily outflows are capped at 1/100th of its holdings).
A pseudo formula to compute the debt ratio would be :
convert_to_HIVE( HBD_supply - hive_fund_HBD_balance )
-------------------------------------------------------------------
convert_to_HIVE( HBD_supply - hive_fund_HBD_balance ) + HIVE_supply
You can find a visual representation of its value over time in my financial stats:
4. What is the Haircut rule?
Some might wonder why does the debt ratio matter?
The answer is: the debt ratio determines how and when the blockchain creates new HBD.
There are 5 mechanisms involved in the creation of HBD:
- payout of author rewards
- conversion from HIVE to HBD
- interest payment on HBD stored in savings
- allocation of part of the inflation to DHF
- conversion from the ninja mined HIVE
The Haircut Rule is the fact that when the debt ratio is higher than predefined thresholds, the blockchain will slow down or even stop printing new HBDs for some of its HBD creation mechanisms.
The haircut rule comes with three thresholds: soft-lower-limit, soft-upper-limit and hard-limit. As of writing, the thresholds have the following values:
Threshold | Value | pre-HF26 |
---|---|---|
soft-lower-limit | 20% | 9% |
soft-upper-limit | 20% | 10% |
hard-limit | 30% | 10% |
Note: Pre-HF26 values are shown in the above table so you can see that soft-lower-limit may be different from soft-upper-limit
Each of these thresholds may be used (or not) depending on each HBD creation mode.
5. What are the effects of the Debt Ratio and the Haircut Rule?
I will now describe each different ways to create HBD and how they are subject to the influence of the debt ratio and the haircut rule thresholds.
Author rewards
When publishing posts on Hive, authors can choose the 50/50 payment method which means their author reward will be split into 50% HBD and 50% Hive Power
When the debt ratio is higher than the soft-lower-limit, the amount of HBD printed for author rewards is reduced and authors receive less HBD. The missing part is replaced by liquid HIVE.
When the debt ratio is higher than the soft-upper-limit, HBD stops to be printed and the author no longer receives HBD. These are completely replaced by liquid HIVE.
As soon as the debt ratio falls back, HBD may start to be printed again.
Paying for posts can be summarized as follows:
Debt ratio | Payout |
---|---|
< soft-lower-limit | Hive Power + HBD |
between soft-lower-limit and soft-upper-limit | Hive Power + HBD + HIVE |
> soft-upper-limit | Hive Power + HIVE |
When the debt ratio is between soft-lower-limit and soft-upper-limit, the blockchain will print HBD on the basis of this formula:
HBD print rate = 100% * (10 - debt ratio)
This means that the closer the debt ratio is to the soft-upper-limit, the less HBD will be printed and replaced by more HIVE until it will be HIVE only when the debt ratio reaches the soft-upper-limit
Note: If you go back to the graph provided in section 3, you will notice that around the end of September 2021, the debt ratio was over 9% and then 10% for a few days, which is why the blockchain shrank and then completely stopped paying rewards to authors with HBD.
But, as you can see in the thresholds table in section 4, since hardfork 26 the soft-lower-limit is the same as the soft-upper-limit. This has the effect that there is no longer a transition period during which authors receive both HBD and liquid HIVE as was the case before hardfork 26. As soon as the debt ratio exceeds the soft-lower-limit, the HBD parts of the author rewards are paid in liquid HIVE only.
Conversion from HIVE to HBD
When converting HIVE to HBD, the HIVE are locked for 3.5 days as collateral (they are removed from the account's balance) and 50% of the value (based on the minimum median price - computed hourly from the witnesses' price feed - over the previous 3.5 day window) is instantly converted into new HBD (added to the user's balance). Three days later, the value will be recomputed based on the median price from those 3 days and part of the collateralized HIVE will be returned to the account accordingly.
During these conversion operations, the price is adjusted to take into account the 5% fee that is applied. As a result, the instant conversion is usually less than 50% of the current value of HIVE, but this is all adjusted at the end.
Regarding the role of the debt ratio, things are more simple in this case:
When the debt ratio is higher than the soft-upper-limit, the conversion requests are rejected by the blockchain to avoid printing new HBD.
Interest payment
Each top 20 witnesses propose an APR rate for HBD. The median value of those propositions is used by the blockchain to pay interest to users for holding HBD. Of course, the interest is paid by printing new HBD.
Note: Since Hive hardfork 25, interest is only paid for HBD stored in savings.
The debt ratio has no influence on interest payment.
Allocation of part of inflation to DHF
Every hour, 10% of the HIVE inflation is converted from HIVE to HBD and sent to the DHF (Decentralized Hive Fund - @hive.fund HBD balance).
This HBD creation process is not influenced by the debt ratio.
Conversion from the ninja-mined HIVE
Long story made short, the so-called "ninja mined" HIVE are tokens that have been minted during the creation process of the Steem blockchain and put into an account controlled by Steemit inc, with the promise to use it for the development of the community.
When Justin Sun made his hostile takeover and the community decided to fork Steem and create Hive, those funds were moved to the DHF blockchain-controlled account @hive.fund
Later, it has been decided to peacefully convert those HIVE into HBD over ~5 years. Therefore, every day since 2020-10-31, the blockchain converts to HBD 0.05% of the HIVEs that were stored in the @hive.fund balance on that date.
This HBD creation process is not influenced by the debt ratio.
Conversion from HBD to HIVE
Although we are not in the case of the creation of new HDBs, quite the opposite, the debt ratio also has an effect on this process.
To perform this conversion, the blockchain uses the median price feed provided by the witnesses. When the debt ratio exceeds the hard-limit, the HIVE price used for the conversion will no longer be the median price feed but a corrected price feed.
The aim is to limit the effective price to force HBD to remain at or below the hard-limit threshold of the combined market cap of HIVE and HBD. This way, we can protect the blockchain by preventing individuals with a lot of HBD to take advantage of a sharp decline in the HIVE price to make in-chain-but-out-of-market conversions to HIVE and take over the blockchain.
6. Why the debt ratio logic?
If the debt-to-ownership ratio gets too high then the entire currency can become unstable.
Debt conversions can dramatically increase the token supply, which in turn can be sold on the market and put down pressure on the price.
Subsequent conversions require the issuance of even more tokens. Left unchecked the system can collapse leaving worthless ownership backing a mountain of debt. A rapid change in the value of HIVE can dramatically change the debt-to-ownership ratio.
The blockchain prevents the debt-to-ownership ratio from getting too high and the debt ratio logic has been put in place to ensure that the blockchain will never have higher than a hard-limit debt-to-ownership ratio.
Conclusion
I hope you now have a better understanding of what the debt ratio is, why it was created, what its effects are, and when they come into play.
Thanks for reading.