# Why Djed is different than UST?

**URL:** <https://forum.cardano.org/t/why-djed-is-different-than-ust/101140>\
**Category:** Misc Dev Talk\
**Created:** [13 May 2022 08:35 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140 "2022-05-13T08:35:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [13 May 2022 08:35 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/1 "2022-05-13T08:35:09Z")

</div>

Hi there

What happened with Tera Luna and ust is horible, it is like nuke exploded on your business.  
People will look very supiscious into the future algoritmic stable coins.

Does anybody believe they can fix these problems and price can recover some value?

Can djed be the next ust or is it protected from such disaster? For me as ada holder it looks scary when we will see djed in the market…

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [13 May 2022 08:44 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/2 "2022-05-13T08:44:45Z")

</div>

Personally, I would not bet on Terra/Luna being able to recover.

Djed will be built quite differently. The details are explained in the paper: [https://iohk.io/en/research/library/papers/djeda-formally-verified-crypto-backed-pegged-algorithmic-stablecoin/](https://iohk.io/en/research/library/papers/djeda-formally-verified-crypto-backed-pegged-algorithmic-stablecoin/)

In the experiments on testnet, they chose that the reserve contract has to hold between four and eight times the value of the minted Djeds in ADA. So, not being able to repay the Djed holders can only happen if the price of ADA suddenly drops by more than 75%.

One of the downsides is that a _lot_ of ADA will be locked in that contract.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [13 May 2022 09:52 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/3 "2022-05-13T09:52:28Z")

</div>

It will recover in some way, but nobody nows where is the bottom of Luna, trying to catch these falling knifes is harmful.

ADA already droped 75% from ATH, but suddenly is almost not possible, it can happen after hack, global nuclear war or smth.

ADA locked in contracts will give us more stable ADA I think.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [13 May 2022 09:57 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/4 "2022-05-13T09:57:08Z")

</div>

And what do you mean 4-8 times. I need 4-8 times bigger coleteral in Ada than djed - usd value I borrow?

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [13 May 2022 10:07 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/5 "2022-05-13T10:07:42Z")

</div>

> [@TadCryp](#):
>
> It will recover in some way, but nobody nows where is the bottom of Luna, trying to catch these falling knifes is harmful.

They just stopped their blockchain completely. I don’t think they will recover.

> [@TadCryp](#):
>
> ADA already droped 75% from ATH, but suddenly is almost not possible,

Over a longer period, the Djed construction can adapt. People can buy the reserve coin (Shen) to fill the reserve.

> [@TadCryp](#):
>
> And what do you mean 4-8 times. I need 4-8 times bigger coleteral in Ada than djed - usd value I borrow?

The Djed contract mints two kinds of coins, Djed – the stable coin pegged to USD – and Shen – the reserve coin. Both are bought by transferring ADA into the reserve. You don’t borrow anything there.

You buy Djed with the current ADA/USD rate (given to the contract by some oracle). And you can also sell them again for that rate. So, the Djed contract/reserve has liabilities to the Djed holders: Number of Djed in circulation times current ADA/USD rate.

The rest of the reserve – reserve minus liabilities – is the equity – the current value of all the Shen tokens in circulation. And this has to be three to seven times the liabilities. So, we need a lot of Shen holders. They can buy Shen for the current price – equity divided by Shen tokens in circulation.

If ADA goes up, liabilities go down and Shen go up. If ADA goes down, Shen also go down up to the point, where you cannot sell them to the contract anymore, because the Djed – stablecoin – holders are privileged in this concept.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [13 May 2022 14:07 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/6 "2022-05-13T14:07:48Z")

</div>

So amount of Djed depends on Shen circulation. Djed borrowed has the fixed price from the moment you converted ada/usd, when Shen price will depend on ada price as reserve.

I see it is programmed stable coin on demand and supply in a market. As I understood Djed is what people get to convert at ada/usd rate to usd. Shen is for equity as reserver or as liquidity provider and DJed is for stable coin function in crypto market.

Data example:  
I need 100 Djed I buy it for ADA/USD rate 1usd per ada with ADA coins.  
It locks 3-7 times more Shen coins 3x100 - 7x100  
If ADA/USD drops to 80 cents, DJed still maintain 1usd and only Shen down to 80cents, which means need more Shen to maintain liabilities?

Am I wrong or not with the data example?

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [13 May 2022 15:37 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/7 "2022-05-13T15:37:38Z")

</div>

Perhaps, the blogpost is more accessible than the original paper:

> **[Djed: implementing algorithmic stablecoins for proven price stability - IOHK...](https://iohk.io/en/blog/posts/2021/08/18/djed-implementing-algorithmic-stablecoins-for-proven-price-stability/)**
>
> Djed is the first coin to use formal verification to eliminate price volatility

In the beginning the reserve is empty. You cannot buy Djed, then, because there would not be enough ADA in the reserve to be in the ×4 – ×8 range.

So, first, someone has to buy Shen, first, to fill up the reserve. We don’t have a price for Shen now, so the protocol has a minimal price as parameter. Let’s say it’s 0.2 ADA/Shen.

User A buys 1500 Shen for 300 ADA. Now, we have 300 ADA in the reserve.

Now, if the current exchange rate is 1 ADA/USD, user B can buy 50 Djed for 50 ADA. Then, the reserve has 350 ADA, 50 ADA are liabilities for the 50 Djed of user B and 300 ADA are the equity for the 1500 Shen of user A.

If ADA falls and we now have 2 ADA/USD, liabilities would be 100 ADA for the 50 Djed of user B and equity would be 250 ADA for the 1500 Shen of user A. So, the Shen would have fallen to 0.16 ADA/Shen, but, since 350 ADA reserve divided by 100 ADA liabilities is only 3.5, user A could not sell their Shen, anyway.

If ADA rises and we have 0.5 ADA/USD, liabilities would only be 25 ADA for the 50 Djed of user B and equity would be 325 ADA for the 1500 Shen of user A. So, the Shen would have risen to 0.216 ADA/Shen and user A could sell a lot of it, since 350 ADA reserve divided by 25 ADA liabilities is 14, so there is more than enough reserve.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [14 May 2022 09:14 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/8 "2022-05-14T09:14:33Z")

</div>

with numbers example always easier to understand. Thanks! It will make ada price more stable, because more ada will be locked.

By the way, luna is recovering slowly:

> **[Terra price today, LUNA to USD live, marketcap and chart | CoinMarketCap](https://coinmarketcap.com/currencies/terra-luna/)**
>
> Get the latest Terra price, LUNA market cap, trading pairs, charts and data today from the world’s number one cryptocurrency price-tracking website

---

<div class="post-metadata">

**Author:** ![mcrio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/mcrio/32/40017_2.png) [@mcrio](https://forum.cardano.org/u/mcrio)\
**Post date:** [14 May 2022 12:36 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/9 "2022-05-14T12:36:55Z")

</div>

@HeptaSean Thanks for the easy to understand explanation. 😀

---

<div class="post-metadata">

**Author:** ![DinoDude](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DinoDude](https://forum.cardano.org/u/DinoDude)\
**Post date:** [15 May 2022 02:03 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/10 "2022-05-15T02:03:35Z")

</div>

DJED could get wrecked similar to what happened to Luna/Terra death spiral if enough users sell both DJED and SHEN simultaneously which would as a consequence tank ADA similar to how BTC reserves sold in the recent fiasco have tanked the entire market. Seeing as there are no users currently this is highly speculative. However any algorithmic stable coin is always susceptible to an abuse of the algorithm itself.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [15 May 2022 04:59 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/11 "2022-05-15T04:59:27Z")

</div>

> [@DinoDude](#):
>
> DJED could get wrecked similar to what happened to Luna/Terra death spiral if enough users sell both DJED and SHEN simultaneously which would as a consequence tank ADA similar to how BTC reserves sold in the recent fiasco have tanked the entire market.

Why would that tank ADA? It would, at first, only unlock a lot of ADA to those users selling both coins.

If someone would try to stabilise the Djed, that would rather require to _buy_ Shen and to do that would require to buy ADA on other markets. As you said, highly speculative, but sounds like it could provide a factor _against_ tanking.

---

<div class="post-metadata">

**Author:** ![DinoDude](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DinoDude](https://forum.cardano.org/u/DinoDude)\
**Post date:** [15 May 2022 05:17 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/12 "2022-05-15T05:17:35Z")

</div>

I mean theoretically if algorithmic stable coins worked, which there has been very little proof of, then yes this is how it should play out. In theory selling one should induce buying of the other. As we just witnessed a capitulation can not only send both into a death spiral but also tank the backing asset. In this case the backing asset of DJED is ADA which gives a minor whale manipulation an option to put Cardano back to nearly 1 cent without much resistance.

Repetition without reason is ridiculous. Thank me in October?

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [15 May 2022 06:13 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/13 "2022-05-15T06:13:16Z")

</div>

> [@DinoDude](#):
>
> In this case the backing asset of DJED is ADA which gives a minor whale manipulation an option to put Cardano back to nearly 1 cent without much resistance.

How?

The ADA/USD exchange rate goes into the Djed system through an oracle. It is not determined by the trades with the contract. The contract just says that ADA/DJED is (as long as the reserve has enough ADA) always this ADA/USD coming from outside.

Nothing in the Djed system can _directly_ influence the ADA/USD exchange rate.

---

<div class="post-metadata">

**Author:** ![Triton-pool](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Triton-pool](https://forum.cardano.org/u/Triton-pool)\
**Post date:** [15 May 2022 14:55 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/14 "2022-05-15T14:55:43Z")

</div>

> [@DinoDude](#):
>
> DJED could get wrecked similar to what happened to Luna/Terra death spiral if enough users sell both DJED and SHEN simultaneously

That is exactly what cannot happen. Shen cannot be sold if the reserve does not meet given criteria.

---

<div class="post-metadata">

**Author:** ![magnetar](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@magnetar](https://forum.cardano.org/u/magnetar)\
**Post date:** [15 May 2022 16:56 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/15 "2022-05-15T16:56:57Z")

</div>

I’m no expert but you guys aren’t convincing me after the terra fiasco. The concept of algorithmic stable coins seems very precarious. I don’t like the idea of any stable coin that isn’t directly backed by something like USD or gold at 1:1.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [15 May 2022 17:36 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/16 "2022-05-15T17:36:21Z")

</div>

For me too, but i am happy djed was not the first algo stable coin, other wise might cardano we would see dead today. I hope on tesnet they will simulate these billions shorts and will look how it will worm

Last crash proofed than best stable coins are usdc and busd - practice is practice and always truth and facts coming from practice. Even most people loved usdt is not as stable as it looked like.

---

<div class="post-metadata">

**Author:** ![TadCryp](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TadCryp](https://forum.cardano.org/u/TadCryp)\
**Post date:** [15 May 2022 17:41 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/17 "2022-05-15T17:41:42Z")

</div>

Can they simulate on testnet these billions in shorts and longs try to make “death spiral”?

Might they would try same scenario as for Luna was…

---

<div class="post-metadata">

**Author:** ![Triton-pool](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Triton-pool](https://forum.cardano.org/u/Triton-pool)\
**Post date:** [15 May 2022 18:55 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/18 "2022-05-15T18:55:01Z")

</div>

you cannot simulate the same that killed Terra, because Djed works differently. It does not allow to buy the stablecoin or to sell the reserve coin if the value of the reserve and equity is out of given limits.  
in simplified terms Djed, based on the coefficients used in each particular implementation, guarantees stability of the stablecoin upto certain price fluctuation of the base coin. No more, no less.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [15 May 2022 18:55 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/19 "2022-05-15T18:55:41Z")

</div>

> [@magnetar](#):
>
> I’m no expert but you guys aren’t convincing me after the terra fiasco. The concept of algorithmic stable coins seems very precarious.

I’m not here to convince anyone. I’m not affiliated with COTI or IOG and just trying to understand, how it is supposed to work. And it is supposed to work totally differently from Terra/Luna, so lumping all together under “the concept of algorithmic stable coin” seems too simple to me.

> [@magnetar](#):
>
> I don’t like the idea of any stable coin that isn’t directly backed by something like USD or gold at 1:1.

Has other problems. How do we know, how can we verify that the backing is really there? With Tether it is highly questionable. Are they, should they be allowed to invest the backing somewhere or does it have to lie around unused?

> [@TadCryp](#):
>
> Can they simulate on testnet these billions in shorts and longs try to make “death spiral”?

Honestly, don’t know. Simulations on testnet are also quite limited, because nobody has any real risks.

---

<div class="post-metadata">

**Author:** ![Triton-pool](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Triton-pool](https://forum.cardano.org/u/Triton-pool)\
**Post date:** [15 May 2022 18:57 UTC](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140/20 "2022-05-15T18:57:51Z")

</div>

[https://www.google.com/url?sa=t&source=web&rct=j&url=https://iohk.io/en/research/library/papers/djeda-formally-verified-crypto-backed-pegged-algorithmic-stablecoin/&ved=2ahUKEwjU8P68l-L3AhWRPOwKHWwnBqoQFnoECAYQAQ&usg=AOvVaw2LDmHyArtIfHJ1aMZg-ZOl](https://www.google.com/url?sa=t&source=web&rct=j&url=https://iohk.io/en/research/library/papers/djeda-formally-verified-crypto-backed-pegged-algorithmic-stablecoin/&ved=2ahUKEwjU8P68l-L3AhWRPOwKHWwnBqoQFnoECAYQAQ&usg=AOvVaw2LDmHyArtIfHJ1aMZg-ZOl)  
Read through this and decide for yourself

[Next page](https://forum.cardano.org/t/why-djed-is-different-than-ust/101140.md?page=2)
