<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Making Algorithmic Stablecoins More Stable: The Terra-Luna Case Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Federico Calandra</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francesco P. Rossi</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francesco Fabris</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marco Bernardo</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Matematica, Informatica e Geoscienze, Università degli Studi di Trieste</institution>
          ,
          <addr-line>Trieste</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dipartimento di Scienze Pure e Applicate, Università degli Studi di Urbino Carlo Bo</institution>
          ,
          <addr-line>Urbino</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We study the dynamics of the Terra-Luna collapse occurred in May 2022 by creating a simulation environment that embodies both the free market buying-selling transactions and the Terra-Luna protocol exchange features. The parameters used during the simulation generate the conditions necessary for triggering the deviation from the peg of the stablecoin UST, along with the subsequent collapse of its value to almost zero. Then we present three proposals to increase the stability of algorithmic stablecoins and we employ the simulation environment to show how they could help stabilize the algorithmic stablecoin's peg.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Decentralized finance</kwd>
        <kwd>algorithmic stablecoins</kwd>
        <kwd>Terra-Luna ecosystem</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The decentralized finance (DeFi) environment introduces a new paradigm in the finance sector. It enables
unbanked users with smartphones and Internet access to engage in financial activities like money
transfer, lending, borrowing, or speculating on synthetic stocks or commodities, on a 24/7/365 basis,
without the need for a bank or other financial institution’s involvement [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. DeFi platforms utilize
cryptocurrencies as the primary medium of exchange within their ecosystems.
      </p>
      <p>The volatility of these digital assets has forced the introduction of collateralized stablecoins (CS). These
are cryptocurrencies backed by a fiat currency or a commodity – typically USD, but also EUR, CHF,
JPY, RMB, KRW, or gold. These digital assets maintain dynamically the peg with the corresponding fiat
currency through a seigniorage process, along with a certification that for each collateralized token
there exists a corresponding amount of value of the fiat currency, deposited in a bank, that can be
redeemed.</p>
      <p>Nowadays, we count dozens of fiat-backed stablecoins traded on the main cryptocurrency exchanges,
such as USDT, USDC, TUSD, and BUSD. Their capitalization and success are increasing over time. They
are used as a safe haven of stability when traders want to exit the volatility turmoil of the market and
control the keys of the owned tokens, avoiding the use of a centralized exchange, the only able to swap
a cryptocurrency with a fiat currency.</p>
      <p>The spirit of the DeFi philosophy is that of creating a new paradigm for a decentralized financial
system, totally detached from (central) banks, financial institutions, and fiat currencies. Unfortunately,
collateralized stablecoins do not comply with this philosophy, since by using them the DeFi sector
remains bonded with the traditional financial market via the fiat currency used as collateral. It is at this
point that algorithmic stablecoins (AS) come into play. They are coins or tokens whose price is anchored
to fiat currency solely by using an algorithmic protocol. More precisely, there are two diferent kinds of
pure algorithmic stablecoin pegging mechanisms: rebasing and seigniorage.</p>
      <p>
        In the rebasing model, stablecoin’s total supply is not fixed and is modified adaptively on a regular
basis, directly on the wallets of all users. The general idea is that when the price of the AS is above the
parity with the adopted fiat currency – say the USD – it is necessary to increase the supply, since the
demand is high and the token is too scarce. On the contrary, when the price is below the parity, it is
necessary to decrease the supply, since the demand is low and the token is too abundant. This implies
that a user with, say, 1000 tokens today, could find a greater amount in her/his wallet the day after,
say 1100, if AS price &gt; $1, without any action by the user. On the contrary, if AS price &lt; $1, then the
wallet content could be smaller, say 900 tokens. The Ampleforth protocol (AMPL) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is an example of
this model.
      </p>
      <p>The seigniorage model typically has two tokens: the AS token and the governance token (GT). The
AS token is the algorithmic stablecoin, while the GT token is used to absorb the volatility of the AS
token. This means that when AS price &lt; $1, we can profitably burn 1 AS for $1 worth of GT inside the
protocol, which we can sell at market, yielding the diference as a profit. This reduces the total supply
of AS and stabilizes the price. On the contrary, when AS price &gt; $1, burning $1 worth of GT can mint 1
AS, which we can sell at market, yielding the diference as a profit. This increases the total supply of
AS and stabilizes the price.</p>
      <p>
        The Terra-Luna protocol [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], based on the AS TerraUSD (UST) and the GT LUNA, is of this kind. It has
been, at the same time, the most successful and the worst example of how to build a decentralized AS.
The most successful because it globally collected almost $60B of capitalization and $20B of Total Value
Locked1 (TVL) in no more than 15 months between January 2021 and May 2022, in an unprecedented
rash of money induced by the Anchor protocol platform, which ensured 20% of Annual Percentage Yield
(APY) for users who were lending UST. The worst example because more than 90% of the entire market
cap was lost in 7 days between May 9 and May 15, 2022, as a consequence of a disastrous collapse
induced by an irreversible depeg of UST, which crashed its value to almost zero.
      </p>
      <p>After recalling the basics of Terra-Luna (Section 2), we present the first contribution of this paper,
which is a simulation environment for Terra-Luna based on Matlab® (Section 3). This environment
mirrors the dynamics of the free market, allowing users to buy and sell UST and LUNA. Moreover, by
changing some parameters, we can induce the market conditions that led to the collapse of the UST peg.</p>
      <p>The second contribution of this work is to illustrate three proposals that aim to improve the stability
of the original protocol (Section 4). Firstly we propose a redesign of the original algorithmic stabilization
mechanism used in the Terra protocol, whose failure caused the collapse of the system. The second
proposal involves creating a USDT reserve pool that the protocol can utilize to automatically restore
the AS price. Finally, we propose a solution that aims to prevent hyperinflation of GT by introducing an
automatic BTC pool. The paper concludes with all simulation results (Section 5) and a final discussion
(Section 6).</p>
    </sec>
    <sec id="sec-2">
      <title>2. Background</title>
      <p>
        2.1. The Terra Stabilization Mechanism
The Terra algorithmic market module (TMM) played a central role in maintaining the price stability of
UST. This is the module that provides incentives for arbitrageurs2 to mint or burn UST in response to
price deviations from the peg [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        When UST’s market price falls below the peg, e.g., $0.98, arbitrageurs can profitably burn 1 UST
obtaining automatically $1 worth of LUNA from the protocol, making a $0.02 profit per UST burnt.
Conversely, if UST’s price exceeds the peg, e.g., $1.02, they can burn $1 worth of LUNA and mint 1 UST,
again yielding a $0.02 profit. This mechanism operates via the protocol’s algorithmic market-maker,
the virtual liquidity pool (VLP), with LUNA’s price sourced from validator oracles, see Figure 1.
The VLP is implemented through a variant of the classical constant-product market-making algorithm
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In this case the constant-product formula  is defined as:
1
 =  2 ·   (1)
1It is the amount of USD locked in smart contracts of the DeFi’s protocols.
2An arbitrageur is an individual or entity that engages in the practice of exploiting price discrepancies in diferent markets to
make profits.
where   is the initial quantity of UST in the pool, while the fraction 1/  expresses
the price of LUNA in USD as observed in external markets [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].   is repeatedly updated by
oracles, implying that the pool actively adapts to market fluctuations.
      </p>
      <p>The TMM integrates the    stabilization mechanism, with the parameter  indicating the
deviation of the UST amount into the VLP compared to its base size  :
  =   + ,    =</p>
      <p>The dynamics of  play a crucial role in adjusting the liquidity pool sizes in response to market activities.
As swaps happen and the balance between UST and LUNA quantities shifts,  changes to ensure
that  stays constant. A key aspect of the market module’s functionality is its ability to replenish
the VLP, progressively bringing  back towards zero. The rate of this replenishment is determined
by the    parameter. At the end of each block – with one block being produced
approximately every 6 seconds –  is updated using the following formula:
 :=  ·
︂(
1</p>
      <p>
        1
−   
︂)
(2)
(3)
This formula governs the adjustment of  , with    influencing the pace of the
adjustment. This parameter was determined by the Terra community, and at the time of the de-pegging
event, its value was 36, meaning that a partial replenishment of the VLP occurs every 36· 6 = 216 seconds
if no transactions take place during this period [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Note, as a consequence, that a full replenishment
can be obtained only when the number of blocks tends to infinity.
2.2. The Terra-Luna Collapse
The collapse of the Terra protocol was triggered by a complex series of events [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]:
tocurrencies.
1. On May 5, 2022, there was evident selling pressure on UST and LUNA, indicated by negative
hourly log returns. This selling pressure persisted, indicating a loss of confidence in both
cryp2. On May 7, 2022, the stablecoin UST lost its peg with USD due to a liquidity pool attack on
Curve-3pool3. This event triggered intervention from the Luna Foundation Guard (LFG), which
defended the UST peg and recovered the price temporarily.
3Curve-3pool is a DeFi liquidity pool protocol designed to facilitate eficient stablecoin trading. It is a component of the
3. Despite this intervention, on May 9, 2022, UST lost its peg for the second and final time, leading
to a significant decrease in both LUNA and UST prices. This event marked a critical blow to the
stability of the Terra-Luna ecosystem.
4. Finally, on May 11, 2022, an announcement by Do Kwon (co-founder and CEO of Terraform Labs),
presumably indicating the last attempt to defend the peg by endorsing community proposal 1164,
was interpreted by the market as a signal of the impending demise of the Terra-Luna ecosystem.
      </p>
      <p>This interpretation caused a final crash in the market, indicating the collapse of the Terra protocol.</p>
      <p>These events highlight a cascade of failures within the Terra-Luna protocol, including an irreversible
depeg of the UST stablecoin, the lost of about $54B of capitalization, and the collapse of the other two
DeFi platforms involved in the Terra-Luna ecosystem. They are the lending platform Anchor and the
exchange Mirror protocol, which allowed users to create and trade mirrored assets (mAssets) that mirror
the price of stocks and/or commodities of the real world.
2.3. Literature Review
Stablecoins have gained interest from researchers across disciplines and from financial institutions. The
literature delves into their design, mechanisms, and impacts on financial stability, monetary policy, and
regulation.</p>
      <p>
        The ECB Crypto-Assets Task Force has tackled the issue of stablecoins in their report n. 247 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Calcaterra et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] study the first-order design principles for stablecoins by illustrating the core
design features and their interoperative feedback, while the recent BIS Paper n. 141 [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] provides
an overview of the evolution of the stablecoin market over the past decade and examines whether
stablecoins have stayed true to their name in terms of being “stable”. Ante et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] review 22
peerreviewed articles, ofering insights into stablecoin types, benefits, risks, and regulatory challenges. They
identify research gaps, notably the lack of robust data and frameworks for analyzing the stablecoin
ecosystem’s complexities. Furthermore, recent research by Choi and Kim [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] examines the challenges
and opportunities associated with stablecoins and central bank digital currency (CBDC). They explore
the financial stability implications of stablecoins and the potential for CBDCs to revolutionize payment
infrastructures and monetary policies.
      </p>
      <p>
        As for the algorithmic stablecoins, Clements [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] examine their fragility, highlighting risks like
self-fulfilling runs and coordination failures. Recent failures, like the Terra-Luna collapse, bolster
Clements’ argument, prompting questions about designing stablecoins resilient to high volatility.
      </p>
      <p>The Terra-Luna ecosystem has been the subject of several studies that explore its unique features
and challenges, as well as the failure that occurred in May 2022.</p>
      <p>
        Cho [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] explains the collapse of the Terra project by analyzing the impact of the Anchor protocol
on the system’s stability. Anchor was a great catalyzer for the demand and supply of UST, but – at
the same time – was one of the responsible for the collapse of the system. Cho shows that, during
the de-pegging event, the UST supply increased rapidly from 2.3B to 3.4B, contrary to the expected
contraction mechanism that should have reduced the UST supply when the UST price was below the
peg. The article attributes this anomaly to the run on the Anchor protocol, which allowed users to
borrow UST at a low interest rate and sell it on the market, creating a downward pressure on the UST
price and an upward pressure on the UST supply. The article of Cho showed that the UST price on
exchanges followed the redeemed value of UST that users could obtain by swapping UST for LUNA and
selling it on the market. Cho finds that the redeemed value of UST was consistently lower than the
UST price on exchanges, indicating that users were under-compensated when they redeemed UST for
LUNA. Cho also finds that the UST price on exchanges followed the redeemed value of UST closely,
suggesting that users were arbitraging the price diference by selling UST on the market and buying
UST on the Terra blockchain. This mechanism played a significant role in the de-pegging event, as it
created a disincentive for users to hold UST and a downward pressure on the UST price.
      </p>
      <p>
        Briola et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] quantitatively describe the main events that led to the Terra project’s failure by
reviewing, in a systematic way, news from heterogeneous social media sources and by discussing the
fragility of the Terra project and its vicious dependence on the Anchor protocol. They also identify the
crash’s trigger events, analyzing hourly and transaction data for BTC, LUNA, and UST.
      </p>
      <p>
        Liu et al. [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] use data from the Terra blockchain and trading data from exchanges to study the
dynamics and interactions of the system. They showed that it was a complex phenomenon that happened
across multiple chains and assets and that the run on Terra was not due to market manipulation but
rather to growing concerns about the sustainability of the system.
      </p>
      <p>
        Kurovskiy and Rostova [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] investigate the collapse of the Terra-Luna ecosystem by using
transactionlevel data from the Terra blockchain and cryptocurrency exchanges, illustrating the several flaws in the
design of UST that impeded its price stabilization.
      </p>
      <p>
        Uhlig [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] develops a novel theory to account for the Terra crash and uses it to shed light on the data.
He introduces a new methodology to show how crashes unfold gradually, by introducing the method of
quantitative interpretation.
      </p>
      <p>
        Ferretti and Furini [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] investigate the collapse of UST through Twitter as a passive sensor, analyzing
sentiment in tweets to explore correlations with market value, highlighting the challenge of foreseeing
sudden catastrophic events solely through sentiment analysis.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. The Simulation Environment</title>
      <p>
        We present two distinct and independent simulations of the Terra stability mechanism. The first
one investigates the role of the mechanism in the collapse of Terra-Luna and is rooted in Cho’s
study [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], which highlights the system’s limited redemption capacity. The second model delves into
the repercussions of a sudden and substantial increase in LUNA supply during a collapse, resulting in
its complete devaluation over a short period.
      </p>
      <p>
        The same simulation environment will be used in Section 4 to propose three enhancements to the
Terra protocol. The first one consists of a redesign of the stability mechanism, while the other two have
to do with limiting the LUNA supply growth.
3.1. Price Dynamics through an AMM
To achieve our goals efectively, we need an environment that can accurately reflect the price changes
in the free markets of the exchanges, for both the stablecoin and the governance coin, and the dynamics
of the Terra stabilizing protocol. This can be done by simulating an Automated Market Maker (AMM),
which operates within discrete time intervals called iterations or samples. AMMs serve as foundational
components in decentralized exchanges (DEX) [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], allowing the two tokens associated with the AMM
itself to be swapped; this approach revolutionizes assets trading through automated decentralized
processes. Unlike traditional order-book-based exchanges, AMMs rely on liquidity pools (LP), constituted
by the reserve of the two tokens, that algorithmically pair and maintain the two assets. The LP operates
through a constant-product formula mechanism [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], which ensures that the token balance within its
pools remains stable:  =  · , where  and  are the token reserve balances of the two tokens, while
 is a constant called the invariant of the pool.
      </p>
      <p>In our simulations, two AMMs (or markets) are implemented: one that governs the buying and selling
of the stablecoin, and the other that governs the buying and selling of the governance token. During
each time interval, a swap occurs within each AMM, influencing simulated token prices. The impact of
these swaps on prices depends on the volume of tokens involved: larger volumes have a greater efect
on simulated prices, so inducing a slippage on it.</p>
      <p>Let us explore in detail how AMMs are implemented within the simulations. Each AMM is described
by a LP Π , composed of two tokens  and . At the discrete time instant , the state of a LP is
defined by:
• () and (), which represent the supplies of  and , respectively, at iteration .
•  = ()· (), which is the invariant at time .
(4)
(5)
In our simulations, we assume zero transaction fees and constant pool liquidity for simplicity, as these
factors are deemed unimportant for our analysis goals. The liquidity pool state at a given time  can be
written as:</p>
      <p>Π ,,((), ())
We can define a swap as a function that operates on a liquidity pool state. The swap function takes a
token  and a swapped quantity  as input and produces a token  and the related quantity  as
output. The token  can either be  or , and the token  is consequently  or . If the swap is
performed at time  + 1, the diference in supply at the output is equal to:
() − ( + 1) =</p>
      <p>() − () + 
where () and () are the pool quantities of tokens  and  respectively.</p>
      <p>In an AMM, the token price is measured in terms of the other token in the liquidity pool. Therefore,
it is crucial to establish a fixed reference for token pricing. Here, the reference is USD, serving as
a stable benchmark for analyzing price fluctuations of the algorithmic stablecoin. As fiat currency
cannot be used in DeFi, we need to make an assumption. Let’s designate the other token as  , a fully
collateralized stablecoin pegged to USD; for example, USDT or USDC. This allows token values to be
expressed in USD, assuming  remains at a constant external value of $1.</p>
      <p>
        The concept of algorithmic stablecoin involves a stabilization mechanism that is usually based on
two tokens: the stablecoin  (e.g. UST) and the governance token , which is volatile (e.g. LUNA).
Both simulations instantiate the AMM model above by employing two liquidity pools to emulate the
price of  and . The first pool, denoted by Π , is designed to simulate the market operations on 
and consists of  and  . The second pool, denoted by Π  , replicates the market dynamics of  and
consists of  and  . At each time instant , a swap occurs within Π  and Π  altering the price of 
and , the state of the liquidity pool is given by Π , ,((),  ()) where  =  or  = , and
the price () of the token  is determined by the ratio of the quantities of the two tokens inside the
pool at that specific moment:
() =
 ()
()
This is what Uniswap, the most used DEX with the highest TVL, refers to as the “mid price” [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]; it can
be viewed as the price at which one could theoretically trade an infinitesimally small amount of one
token for the other in the pool, without slippage of the price.
3.2. Wallet Distribution
The simulation environment imposes the crucial choice of setting the efective quantities of each token
we have to swap to simulate an ordinary session of the free market or to use in the simulated Terra-Luna
redemption protocol. One possible approach could be that of using information about the amount of
tokens inside the wallet of each user. Since we have no data about the original distribution of UST and
LUNA, we estimated such data from the distribution of BTC and ETH [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] among addresses within
their respective blockchains, under the hypothesis that all the cryptocurrencies show a similar wallet
balance distribution. We found that BTC and ETH balances can be approximated with an exponential
distribution with parameter  , whose probability density function is defined as follows:
 (,  ) =
{︃ − 
0
if  &gt; 0
if  ≤ 0
where  represents a given wallet balance and parameter  was obtained using MATLAB’s fitdist()
function, which returns the value of  that best fits the provided input data – in our case, the balances
of BTC wallets. The analysis reveals that the majority of the wealth is held by a few “whales”: for
example, at the time of writing over 90% of all Bitcoin are held in wallets with a balance of more than
1 BTC, and only 4 addresses hold more than 100 000 BTC [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ].
3.3. Stochastic Swaps
(6)
(7)
The probability of buying or selling a token within a liquidity pool is set by using the stochastic process
of a random walk, which fully reflects the intrinsic uncertainty of the market. A random walk represents
the cumulative efect of a sequence of random steps or movements, taken at discrete time intervals,
starting from an initial position. Mathematically, a simple one-dimensional random walk can be defined
as follows. Let {} be a sequence of independent and identically distributed random variables, with a
probability distribution function () = (0), representing the successive steps taken at discrete
time points  = 0, 1, 2, ... on the left or the right. The position of the walker at time  is given by the
sum of all the random steps up to that point:
      </p>
      <p>= 0 + 1 + 2 + . . . + 
In the stochastic swap model presented in this study, a random walk is employed to determine the
probability of a token  to be swapped within the pool at a given iteration. Let’s consider the example
of liquidity pool Π ,,. At iteration ,  =  with probability (), and  =  with probability
1 − (). So, there are three possible scenarios:
() = 12
() &lt; 12
() &gt; 12
=⇒
=⇒
=⇒
equilibrium condition
 experiences buying pressure
 experiences selling pressure
At the beginning of each iteration, () is varied from its current value by an amount ∆ :
( + 1) = () + ∆
where ∆ is a random variable with a normal distribution Φ(  Δ,  Δ2) such that its mean value  Δ is
equal to zero, while its variance  Δ2 is a simulation parameter initialized during the simulation setup that
expresses the market volatility. At the beginning of the simulations, we suppose that the market is in a
state of equilibrium, hence (0) = 12 . The value of () is subsequently updated based on equation (7),
allowing for both positive or negative steps, that increases or reduces the probability of sale.
3.4. Inducing the Collapse
We have now the problem of representing the conditions of a panic sell (FUD – Fear, Uncertainty,
Doubt) or of an irrational buy (FOMO – Fear of Missing Out) that can aflict the free market. During
the FUD phase, users who are in a state of panic tend to sell their cryptocurrencies with great intensity,
triggering what is known as a “bank run”. Widespread panic can be triggered by any external event. In
the case of the Terra-Luna ecosystem, it was the withdrawal of large amounts of UST from the Anchor
protocol and the partial loss of the peg.</p>
      <p>We can model this by introducing the concept of panic zone for the stablecoin. When the market
enters the panic zone, a mechanism is triggered to represent the irrational behavior of users, whose
decisions are driven more by emotions than rationality. Otherwise, we are in the healthy zone, where
the users act as usual, in a normal condition of the market. It is understood that the stablecoin tends to
maintain the peg inside the healthy zone, while tends to lose it outside, when entering the panic zone.</p>
      <p>Concerning the pool Π , we have implemented two diferent definitions of panic zones, used in
the simulations to represent the behavior of the buying/selling probability, when hovering over the
boundaries separating the healthy zone from the panic zone of the market. The two approaches
respectively use the price of the stablecoin and its probability of sale to trigger the risk of a collapse
when entering the panic zone.
3.4.1. The Variable Mean Approach Based on Price
Suppose that at iteration  = 0 the price is set to (0) = 1. As the simulation progresses, various buy
and sell transactions of  will occur, leading to fluctuations in its probability and price on the basis of
equations (6) and (7). At iteration ,  is in the healthy zone if:
|1 − ()| &lt; 
with  &lt; 1
In our simulation we have set  = 0.05; this implies that the healthy zone of  covers the interval
$0.95 &lt; () &lt; $1.05. When the price of the algorithmic stablecoin exits this healthy zone, a price
collapse mechanism for  is triggered. In this scenario, the goal is to create selling or buying pressure
that acts proportionally to the deviation of the price from $1. To implement this selling or buying
pressure, we adjust the mean value  Δ, initially set to 0, on the basis of the following formula:
 Δ = (1 − ()) ·  Δ
So, when |1 − ()| ≥  we are in the panic zone, and the following market conditions hold:
1− () &gt; 0
1− () &lt; 0
=⇒  Δ &gt; 0
=⇒  Δ &lt; 0
=⇒
=⇒
selling pressure
buying pressure
Note that the slippage of the mean is proportional to the slippage of the price.
3.4.2. The Variable Probability Approach
In the second approach the sell probability () freely fluctuates as described in equations (6) and (7),
when we are in a healthy zone. The only diference is that now the healthy zone itself is defined in
terms of probabilities, more precisely as the interval 0.3 ≤ () ≤ 0.7. Outside this interval, we are in
the panic zone, and the user behavior is modeled through a completely diferent function representing
her/his irrational mindset, which is an exponential-type function.</p>
      <p>Define now the “ ℬ zone”, or buy zone, as the market condition in which () &lt; 0.3: in this scenario,
the demand for buying cryptocurrency is particularly high for various reasons. On the contrary, the
“ zone”, or sell zone, represents the most critical phase of the market, in which () &gt; 0.7 and the
stablecoin risks the collapse. The functions ℬ() and () compute the sell probability within the panic
zone:
ℬ() =</p>
      <p>1
1+e + ℬ
() =
1+e−
1
+
 
Here  is the distance from the healthy zone,  is a parameter determining the slope of the function, and
ℬ and  need to be computed based on the parameters lowerBound = 0.3 and upperBound = 0.7
ifxing the limits of the healthy zone, so as to align the values of  inside and outside the interval. More
precisely we have:
ℬ =  if</p>
      <p>1  = lowerBound
1+e 
 =  if</p>
      <p>1
1+e−  = upperBound
In our case ℬ =  because 0.5 − lowerBound = upperBound − 0.5.</p>
      <p>Inside the Terra-Luna protocol, the simulation keeps track of the number of tokens in circulation for
both cryptocurrencies and models the principle of scarcity in the following way. When a new quantity
of a token is minted, a positive step is taken during the random walk of the market in which it is traded,
increasing its probability of sale. Conversely, when a certain quantity of a token is burnt, a negative
step is taken during the random walk of the market in which it is traded, increasing its probability of
purchase. The length of the step taken is proportional to the quantity minted or burnt.</p>
      <p>The Terra-Luna protocol is not used during each time unit, but its probability of use  ( )
increases with the deviation  from the peg value. This is because a larger variation in the price of UST
ofers greater profit opportunities for arbitrageurs, who tend to use the protocol more frequently. The
function  ( ) is defined as follows:
1–15
(8)
(9)
(10)
(11)
with  and  suitable constants. In our case  = 0.55,  = 5, and  = |1 − UST.price| · 10. Equation
(11) assumes diferent interpretations depending on whether the price of UST is above or below the
parity. In the former case, the function returns the probability of minting UST; in the latter case, the
function gives the probability of burning UST.</p>
      <p>The scheme shown in Figure 1, describing the arbitrageurs’ opportunity when using the Terra-Luna
protocol, is not used in practice when the market approaches zone . Normally, when the price of UST
is less than 1, this would imply the purchase of discounted UST to make profit. However, if the price
undergoes a significant drop triggering a bank run, this is no more true. In a panic phase users simply
want to get rid of all the UST already in their possession, without buying new ones to make profit, also
because in these cases the value of LUNA received in change is plummeting.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Three Terra-Luna Stabilization Proposals</title>
      <p>
        We now propose three mechanisms to improve the stability of the Terra-Luna protocol. They aim to
enhance the system’s redemption capacity during periods of crisis and high volatility.
4.1. Modifying the TerraPool  Mechanism
At the core of Terra’s stabilization mechanism is the concept of virtual liquidity pool (VLP) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], that
in our case corresponds to Π ,, i.e., the pool containing both the stable (UST) and the volatile
(LUNA) tokens, respectively. Initially, it comprises an equal quantity of   units for  and .
In equation (3) we introduced the parameter  , which is equal to the diference between the current
quantity of  and the baseline quantity   in the    stabilization mechanism. Under
these hypotheses, at each iteration  we have:
() =  2 · ()
1
() =   +  ()
() =
      </p>
      <p>(12)
()
()
Each swap executed within the pool dynamically alters the value of  ().</p>
      <p>In the original implementation of the pool replenishing mechanism of equation (3),  () goes down
to zero only when  →</p>
      <p>∞. So, we suggest a diferent method that acts similarly, but can bring  ()
to zero after exactly    (  ) blocks. The idea is very simple. Let’s consider the
scenario where the initial swap within the pool at time  = 0 involves an amount of  stable tokens .
Then the replenishment of  tokens in the VLP is spread among a list of /  chunks, which will
supply  in the subsequent   time instants of the simulation. More formally, let  be a vector of
length   initially empty; at the time instant  = 0 it is filled with the   chunks:
 = [︁(︁
 
 )︁ (︁
,</p>
      <p>)︁
 
, ...,
︁(</p>
      <p>
        )︁]︁
 
|| =  
as a consequence of the swap. The first element 1 of  will determine the value of  (1) as follows:
 (1) =  (0) − 1
Simultaneously, during this iteration, a swap operation takes place within the virtual pool denoted as
Consequently, the update of vector  takes place according to the following procedure:
(, ), where  ∈ {, }. Consider  = [/ , / , ..., /  ], where || =   .
{︃() = ( − 1) + 
() = ( − 1) − 
if  = 
if  = 
(13)
After this,  () is updated as follows, where now 1 is the first element of ():
 () =  ( − 1) − 1
Finally, the elements of the vector  are shifted left and the last element is set to zero:
() = [1, 2, ...,   →]−− −
ℎ
( + 1) = [2, 3, ...,   , 0]
This process guarantees that, if no swaps occur, the virtual pool is fully replenished after exactly  
blocks. Based on this setup, the improvement of the stability we are going to propose pertains to a
variant of the VLP replenishing mechanism suggested above. If the variation of  exceeds  ·  
(where  = 0.05 in our simulation), the array () is treated as if it had a length of  /2. Essentially,
in a crisis scenario, the virtual pool’s redemption capacity doubles. Given that the variation of 
correlates directly with the price () of  (as shown in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]), this modification enables the system
to recover more rapidly from a peg loss and ensures that  returns to zero in half the original time.
4.2. Implementing a UST Reserve Pool
This improvement involves the implementation of a reserve pool that the protocol can use to
automatically buy back , i.e., UST, if its price falls below the peg. The reserve pool functions as
a collateral for the token . The purpose is to utilize this pool during a crisis to quickly restore
() to the peg. The reserve pool is filled with () USDT and, in our simulation, we have set
() = 0.2 · (total supply ). If () falls significantly below the peg, the protocol uses some of the
reserves to buy  from Π . This mechanism ensures that  can eficiently recover the peg value even
in adverse market conditions, at least as far as the pool has tokens to use. At iteration , the quantity 
of USDT to sell is determined by the following system of equations, derived from formulas (4) and (5),
where ̃︀() is the quantity of  when () = 0.95:
⎨⎧ = ̃︀() −  ()
⎩0.95 = ̃︀()2+̃︀()
=⇒
⎧⎨ = ̃︀() −  ()
      </p>
      <p>
        √︁ 0.905.9+54 − 1
⎩̃︀() = 2
4.3. Implementing a BTC Reserve Pool against LUNA Hyperinflation
This approach is an automatization of the attempt made by the Luna Foundation Guard to support the
value of UST, when during the agitated phases of the collapse they sold at the market about 80 000 BTC
[
        <xref ref-type="bibr" rid="ref22">22</xref>
        ]. The proposed solution aims to prevent the hyperinflation of the volatile token , which results
from its excessive minting due to the usage pressure of the Terra-Luna protocol of Figure 1. It is well
known that the number of LUNA in circulation soars from 340 million to 6.5 trillion at the end of the
collapse event [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ].
      </p>
      <p>When the value of the stablecoin  reaches a critical level – e.g., $0.95 – a queue system is
automatically activated, which involves a reserve of BTC. At this point, a user has three options available:
1. sell her/his own  directly on the market;
2. use the classic stabilization protocol, burning 1  to obtain $1 worth of ;
3. burn 1  to obtain $1 worth of BTC.</p>
      <p>It is necessary to clarify some aspects. For the correct functioning of the system, the presence of a
reliable oracle, which provides the real-time price of BTC, is essential. Moreover, the users will not
receive real BTC, as the latter is a native cryptocurrency of another blockchain. Instead, they will
receive $1 worth of wrapped BTC (wrBTC), which is a synthetic token that represents the ownership of
a BTC on a blockchain diferent from the original one. Obviously, it is not possible to prevent users
from selling their own  on the market. However, it is possible to induce them to undertake option 2
or option 3 through the creation of a double-queue system: queue  collects transactions of users eager
to exchange  tokens for BTC, while queue  contains transactions of those who prefer to normally
use the protocol, obtaining $1 worth of  for each  inserted.</p>
      <p>Both options ofer the benefit of reducing the circulating supply of , but queue  has the additional
advantage of avoiding the minting of . A probability function can govern the mechanism by selecting,</p>
      <p>Collapses
   
 Δ
 Δ</p>
      <p>Δ
10− 4 5 · 10− 4 10− 3
(14)
at each time interval, which queue to activate. Both queues follow the FIFO (First In First Out) principle.
The probability function can be a simple logistic function, which essentially depends on two parameters:
• the deviation of the price () from the parity;
• the filling percentage of the BTC reserve.</p>
      <p>In our simulation, the function () returns the probability that queue  is activated, and is defined
as follows:
() =</p>
      <p>1
1 + −  (−  )
where  determines the slope of the curve and  establishes the point on the -axis where the graph has
an inflection point. These parameters can be manipulated to obtain a function that conforms to one’s
preference. The independent variable  could be set as a combination of the filling percentage of the
BTC reserve and the deviation from parity, for example the product of the two. To reproduce the market
context before the collapse of the Terra-Luna system, the 100% of the reserve could be considered equal
to $1B in BTC. When the reserve is empty, the probability of queue  being selected is set to zero.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Simulation Results</title>
      <p>We carried out two kinds of simulations. The first one evaluates the performance of the original
stabilization mechanism of the Terra protocol under normal market conditions, characterized by
constant volatility  Δ. In the second one, we simulated a crisis scenario, marked by escalating volatility,
to induce a collapse and to test the eficacy of the three proposed improvements discussed in the
preceding sections.</p>
      <p>Firstly, we conducted a series of 10 simulations, each with diferent constant values of parameters
 Δ,   , and  , resulting in a comprehensive total of 270 simulation runs.
The parameter  Δ plays a pivotal role in determining market volatility, while   
and   determine the redemption capacity of the stability mechanism. In each simulation, 
starts at $1, with a total supply of 107, while Π  and Π  initially consist of 2 · 106 units of  and ,
respectively. The price of the volatile token is initially set to (0) = $100. Results are shown in Table
1. We considered  collapsed when its price falls below $0.50 and the system is not able to recover.
Figure 2 shows the behavior of the price of  during a collapse.</p>
      <p>In the second series of tests, we conducted 30 simulations with the goal of inducing the system
to collapse by gradually increasing the volatility  Δ from  Δ = 0.0001, with a 0.00002 step every
1000 iterations, with a total of 100 000 iterations. Figure 3 illustrates the behavior of  under these
conditions. The results are shown in Table 2, and make it evident that the original implementation of
Terra is unable to withstand such scenarios, with the peg being lost in 28 out of 30 simulations.</p>
      <p>Better results are obtained with the modification of the TerraPool replenishing mechanism and
the UST Reserve Pool. As for the BTC Reserve Pool improvement, we performed two separate sets of
tests. The first one involved the use of the Terra standard stabilization protocol, without any queue
system. The second one incorporated the queue system described in Section 4.3. In both scenarios, we
conducted 100 runs of the simulation program, monitoring and recording the circulating supply of 
(LUNA). The results are shown in Figure 4.</p>
      <p>Simulation</p>
      <p>Total collapses
Mean collapse time</p>
    </sec>
    <sec id="sec-6">
      <title>6. Discussion and Conclusions</title>
      <p>The first conclusion we can draw is the structural weakness of the Terra-Luna protocol, since Table 2
shows an astonishingly high number of collapses as a consequence of an increasing volatility  Δ of
the market (28 out of 30). Also, the huge number of circulating supply of LUNA, of the order of 1012
and described in Figure 4a, is a clear warning of this structural weakness. Even if a perfect algorithmic
stablecoin should resist all kinds of market destabilization forces, with only "0" in the second and third
columns of Table 1, the improvements we obtain with the three proposals shed light on the mechanism
one could implement to increase the strength of an algorithmic stablecoin protocol.</p>
      <p>The TerraPool method indicates that it is possible to work on the replenishment protocol with a
mild rate of success (24 collapses out of 30 instead of 28). Significantly better results are obtained with
(a) Circulating supply of LUNA in the original protocol (b) Circulating supply of LUNA with the queue system
implementing the BTC Reserve Pool
the use of a UST Reserve Pool (7 collapses out of 30). Also, the method of limiting the LUNA supply
with the queue system implementing the BTC Reserve Pool shows a good performance, reducing to
109 the original supply of LUNA of order 1012. Note that this huge supply was the main cause of
the crash in the LUNA value and of the Terra-Luna collapse. Note, moreover, that this last method
guarantees an almost constant value of supply for all simulations. These evaluations underscore the
critical importance of incorporating reserve pools and refining virtual pool replenishing mechanisms to
improve the stability of algorithmic stablecoin systems in the face of market volatility. The utilization of
a reserve pool provides a significant cushion against adverse market movements, acting as a stabilizing
force during periods of heightened volatility, and the obtained data serve as a clear illustration of the
robustness exhibited by this hybrid collateralized-algorithmic stablecoin. It efectively demonstrates
the coin’s ability to resist challenges posed by a highly volatile market. In general, our solutions extend
beyond Terra-Luna, adapting to diverse seigniorage stablecoin frameworks.</p>
      <p>As far as the limitations of our approach are concerned, while the introduction of a reserve pool
shows promising results, it moves away from the notion of a pure algorithmic stablecoin, transitioning
towards a partially collateralized stablecoin model. Future research should address these trade-ofs and
explore avenues for optimizing stability while maintaining algorithmic integrity. Another limitation is
related to the design choices we made. They are an inevitable approximation of the human behavior in
ifnancial markets. Anyway, we tried to be as general as possible in designing these phenomena, since
our simulations are initializable with diferent parameters, allowing for flexibility in capturing various
market conditions and behaviors. A critical aspect for future exploration lies in refining the parameters
and assumptions underlying our simulation model. This could be achieved by incorporating real-world
data and historical market trends.</p>
      <p>Moving forward, our research suggests several interesting directions. Further investigation into
alternative replenishment protocols and reserve pool mechanisms could yield insights into improving
the stability of this type of system. Our simulation-based approach could help researchers to efectively
design and evaluate new algorithmic stablecoin protocols, ofering valuable information about their
performance and robustness in various market conditions.</p>
      <p>Acknowledgments. This research has been supported by the PRIN 2020 project NiRvAna –
Noninterference and Reversibility Analysis in Private Blockchains.</p>
      <p>Code Repository. The Matlab code implementing our simulations is publicly available at
https://github.com/FedericoCalandra/Algorithmic-Stablecoin-Collapse-Simulation.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>K.</given-names>
            <surname>Qin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Afonin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Lazzaretti</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . Gervais,
          <article-title>CeFi vs</article-title>
          . DeFi - Comparing Centralized to Decentralized Finance,
          <source>arXiv preprint arXiv:2106.08157</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Ampleforth</surname>
          </string-name>
          ,
          <article-title>#ampl the decentralized unit of account</article-title>
          , https://www.ampleforth.org/,
          <year>2022</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-10.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>E.</given-names>
            <surname>Kereiakes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kwon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. Di</given-names>
            <surname>Maggio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Platias</surname>
          </string-name>
          ,
          <article-title>Terra money: Stability and adoption</article-title>
          , White
          <string-name>
            <surname>Paper</surname>
          </string-name>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <article-title>[4] terra</article-title>
          .money, Liquidity parameters, https://classic-agora.terra.money/t/liquidity-parameters-
          <volume>3</volume>
          / 3895,
          <year>2022</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-01.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Park</surname>
          </string-name>
          ,
          <article-title>Formal specification of constant product (xy= k) market maker model and implementation, White paper (</article-title>
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Briola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Vidal-Tomás</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Aste</surname>
          </string-name>
          ,
          <article-title>Anatomy of a stablecoin's failure: The Terra-Luna case</article-title>
          ,
          <source>Finance Research Letters</source>
          <volume>51</volume>
          (
          <year>2023</year>
          )
          <fpage>103358</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>F. van Echelpoel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. T.</given-names>
            <surname>Chimienti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Adachi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Athanassiou</surname>
          </string-name>
          , I. Balteanu,
          <string-name>
            <given-names>T.</given-names>
            <surname>Barkias</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Ganoulis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kedan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Neuhaus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Pawlikowski</surname>
          </string-name>
          , et al.,
          <article-title>Stablecoins: Implications for monetary policy, ifnancial stability, market infrastructure and payments, and banking supervision in the Euro area</article-title>
          ,
          <source>ECB Occasional Paper, European Central Bank</source>
          <volume>247</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>C.</given-names>
            <surname>Calcaterra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. A.</given-names>
            <surname>Kaal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Rao</surname>
          </string-name>
          ,
          <article-title>Stable cryptocurrencies: First order principles</article-title>
          ,
          <source>Stanford Journal of Blockchain Law &amp; Policy</source>
          <volume>3</volume>
          (
          <year>2020</year>
          )
          <fpage>62</fpage>
          -
          <lpage>64</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kosse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Glowka</surname>
          </string-name>
          , I. Mattei, T. Rice,
          <article-title>Will the real stablecoin please stand up?</article-title>
          ,
          <source>BIS Papers, Bank for International Settlements</source>
          <volume>141</volume>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>L.</given-names>
            <surname>Ante</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Fiedler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Willruth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Steinmetz</surname>
          </string-name>
          ,
          <article-title>A systematic literature review of empirical research on stablecoins</article-title>
          ,
          <source>FinTech</source>
          <volume>2</volume>
          (
          <year>2023</year>
          )
          <fpage>34</fpage>
          -
          <lpage>47</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>J.</given-names>
            <surname>Choi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. H.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <article-title>Stablecoins and central bank digital currency: Challenges and opportunities</article-title>
          ,
          <source>Oxford Research Encyclopedia of Economics and Finance</source>
          (
          <year>2024</year>
          ). URL: https://ssrn.com/abstract= 4756822. doi:
          <volume>10</volume>
          .2139/ssrn.4756822.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R.</given-names>
            <surname>Clements</surname>
          </string-name>
          ,
          <article-title>Built to fail: The inherent fragility of algorithmic stablecoins</article-title>
          ,
          <source>SSRN</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <article-title>A token economics explanation for the de-pegging of the algorithmic stablecoin:</article-title>
          <source>Analysis of the case of Terra, Ledger</source>
          <volume>8</volume>
          (
          <year>2023</year>
          )
          <fpage>36</fpage>
          -
          <lpage>44</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>J.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Makarov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Schoar</surname>
          </string-name>
          ,
          <article-title>Anatomy of a Run: The Terra Luna Crash</article-title>
          ,
          <source>Technical Report, National Bureau of Economic Research</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>G.</given-names>
            <surname>Kurovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Rostova</surname>
          </string-name>
          , How Algorithmic Stablecoins Fail,
          <source>Technical Report, SNB BNS</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>H.</given-names>
            <surname>Uhlig</surname>
          </string-name>
          ,
          <article-title>A Luna-tic stablecoin crash</article-title>
          ,
          <source>Technical Report, National Bureau of Economic Research</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ferretti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Furini</surname>
          </string-name>
          ,
          <article-title>Cryptocurrency turmoil: Unraveling the collapse of a unified stablecoin (USTC) through Twitter as a passive sensor</article-title>
          ,
          <source>Sensors</source>
          <volume>24</volume>
          (
          <year>2024</year>
          )
          <article-title>1270</article-title>
          . URL: https://doi.org/10.3390/ s24041270. doi:
          <volume>10</volume>
          .3390/s24041270.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>V.</given-names>
            <surname>Mohan</surname>
          </string-name>
          ,
          <article-title>Automated market makers and decentralized exchanges: A DeFi primer</article-title>
          ,
          <source>Financial Innovation</source>
          <volume>8</volume>
          (
          <year>2022</year>
          )
          <fpage>20</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <surname>Uniswap</surname>
          </string-name>
          , Pricing in uniswap, https://docs.uniswap.org/sdk/v2/guides/pricing,
          <year>2018</year>
          . Accessed:
          <fpage>2024</fpage>
          -02-28.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>Blockchair</given-names>
            <surname>Wallet</surname>
          </string-name>
          <string-name>
            <surname>Data</surname>
          </string-name>
          , Blockchair, https://blockchair.com/,
          <year>2023</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-01.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <surname>BitInfoChart</surname>
          </string-name>
          , Bitcoin rich list, https://bitinfocharts.com/top-100
          <string-name>
            <surname>-</surname>
          </string-name>
          richest-bitcoin-addresses.html,
          <year>2024</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-02.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <surname>Coindesk</surname>
          </string-name>
          ,
          <article-title>Lfg reserves dwindle to just 313 bitcoins from 80k after UST crash</article-title>
          , https://www.coindesk. com/business/2022/05/16/luna-foundation
          <article-title>-guard-left-with-313-bitcoin-after-ust-</article-title>
          <string-name>
            <surname>crash</surname>
          </string-name>
          ,
          <year>2022</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-02.
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>T.</given-names>
            <surname>Block</surname>
          </string-name>
          ,
          <article-title>Luna supply soared to 6.5 trillion coins before Terra's latest halt</article-title>
          , https://www.theblock. co/post/146762/luna-supply
          <article-title>-soared-to-6-5-trillion-coins-before-terras-latest-</article-title>
          <string-name>
            <surname>halt</surname>
          </string-name>
          ,
          <year>2022</year>
          . Accessed:
          <fpage>2024</fpage>
          -03-02.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>