Back to Blog

Stablecoins Explained: Is Ethena the Upgraded Luna?

Code AuditingMetaSleuth
July 26, 2024
10 min read
Key Insights

Introduction: The Crucial Role of Stablecoins in Web3 Security

Stablecoins play a crucial role in the crypto industry, currently boasting a market capitalization of approximately $165 billion as of July 25, 2024. This represents a significant portion of the overall cryptocurrency market, which stands at $2.417 trillion. Tether (USDT) is notably the third-largest token by market capitalization, behind Bitcoin and Ether.

This article aims to delve deep into stablecoins, providing an in-depth understanding of their definitions, classifications, and vital role within the digital currency landscape. Using Ethena's USDe as a case study, we will explore its operational mechanisms and examine potential security risks associated with stablecoins, shedding light on whether USDe can be considered an "upgraded" Luna in the competitive realm of stablecoins. Understanding these mechanisms and risks is paramount for ensuring Web3 security and protecting user assets.

What are Stablecoins and Why Do We Need Them?

Stablecoins are defined as "a cryptocurrency that aims to maintain a stable value relative to a specified asset, or a pool or basket of assets," according to the Financial Stability Board and Bank for International Settlements. In real-world practices, stablecoins are typically pegged to fiat currencies, such as the US dollar.

The primary question is: Why do we need stablecoins?

Bridging Traditional Finance and Web3

Firstly, in the context of Web3 massive adoption, digital assets offer more convenient exchangeability compared to conventional assets. Stablecoins facilitate everyday transactions by serving as a stable medium of exchange, while also enabling quick and cost-effective cross-border payments, avoiding the delays and high fees associated with traditional banking systems. They act as a crucial bridge, allowing users to interact with decentralized finance (DeFi) applications without exposure to the extreme volatility of other cryptocurrencies.

Mitigating Volatility in Crypto Markets

Secondly, stablecoins facilitate the reduction of volatility. Popular cryptocurrencies like BTC or ETH are unsuitable as stablecoins due to their inherent price fluctuations. During periods of market turbulence, stablecoins provide stability, acting as a refuge for value preservation. This stability is essential for various DeFi protocols, trading, and even everyday payments, making them a cornerstone of a functional crypto economy.

How Do Stablecoins Maintain "Stability"? Classification and Mechanisms

Stablecoins employ various mechanisms to maintain their peg, broadly categorized into collateralized and algorithmic approaches. Understanding these classifications is key to assessing their inherent security risks.

Collateralized Stablecoins

Collateralized stablecoins are fully backed by other assets, ensuring their value is supported by tangible reserves. Assuming they are managed in good faith and have a robust mechanism for redeeming the underlying assets, these stablecoins are unlikely to drop significantly below the value of their underlying assets due to potential arbitrage opportunities.

Typical examples of such stablecoins include:

  • Fiat-collateralized stablecoins: These are backed by reserves of fiat currencies, such as the US dollar. Typical examples include Tether USD (USDT) and USD Coin (USDC), which are the top two stablecoins in terms of market capitalization. As of July 2024, they account for more than 90% of the total stablecoin market capitalization.
  • Commodity-collateralized stablecoins: These are backed by reserves of commodities such as gold or other real-world assets. A typical example is Tether Gold (XAUt), which uses gold as collateral.
  • Cryptocurrency-collateralized stablecoins: These are backed by reserves of other cryptocurrencies such as BTC or ETH. A notable example is DAI, developed by MakerDAO, which uses ETH and other Ethereum-based approved assets as collateral. These often utilize over-collateralization to buffer against price drops in the underlying crypto assets.

Algorithmic Stablecoins

Algorithmic stablecoins maintain stability by algorithmically ensuring collateral security or adjusting market circulations (supply and demand dynamics). Typical methods include:

  • Liquidation: To ensure that the value of all outstanding stablecoin debt is always fully collateralized, some stablecoins employ a liquidation mechanism. This process involves liquidating risky collateral whose value drops below that of the corresponding issued stablecoins through auctions. This mechanism generally includes over-collateralization (e.g., a 150% ratio), which provides a buffer between the value of the collateral and the corresponding stablecoins. Typical examples include DAI, currently the largest algorithmic stablecoin, which combines collateralization with algorithmic adjustments.
  • Burning and minting: This involves burning existing tokens to decrease total supply or minting new tokens to increase total supply, assuming total demand remains unchanged during adjustment. For instance, if the stablecoin drops from the target price of $1 to $0.9, the algorithm will automatically burn a tranche of tokens to introduce more scarcity, leading to less circulation and pushing up the price of the stablecoin. Typical examples include TerraUSD (UST), which utilized a fixed exchange rate to facilitate an arbitrage opportunity through burning and minting; however, during significant market downturns, the protocol failed to maintain stability, leading to the largest loss of over $40 billion in Web3 history. This catastrophic event highlighted the inherent security risks of purely algorithmic designs without sufficient collateral backing.
  • Adjusting borrowing interest: This involves increasing or decreasing the borrowing interest ratio to control the supply of stablecoins within a borrowing-and-earning framework (essentially a yield opportunity for stablecoin holders), assuming people are profit-seeking. If the stablecoin drops from the target price of $1 to $0.9, the algorithm will automatically increase the borrowing interest ratio and attract (or lock) more circulation in this mechanism, thus pushing up the price of the stablecoin. Typical examples include Beanstalk (BEAN), which operates a credit-based system with an adjustable total loan amount (referred to as Soil) to manage the circulation of BEAN.

It is notable that these classification measurements are not mutually exclusive. Stablecoins can implement multiple mechanisms to maintain stability. For instance, DAI is backed by collateral in terms of cryptocurrencies while simultaneously employing algorithmic adjustments (i.e., liquidation). This combination of strategies can enhance the stability and reliability of the stablecoin by leveraging the strengths of each mechanism to mitigate potential weaknesses.

Key Security Risks and Solutions for Stablecoins

Despite their promise of stability, stablecoins are not immune to security challenges. Understanding these security risks is crucial for both users and developers.

Collateral Transparency Issues

For fiat or commodity-collateralized stablecoins, users may question whether the collateral is securely preserved and available for redemption at all times. Many stablecoins address this concern by placing collateral in escrow with third-party custodians such as banks, conducting regular audits, and publishing reserve attestation reports. These measures can enhance the transparency of collateral management and mitigate public skepticism, building trust in the stablecoin's backing.

Collateral Value Fluctuation

For cryptocurrency-collateralized stablecoins, whose underlying assets are more volatile than fiat or commodities, fluctuations in collateral value can lead to unexpected collateral shortfalls, resulting in insufficient backing. To address this issue, many stablecoins implement over-collateralization and liquidation mechanisms to mitigate the negative impacts of collateral fluctuations. Over-collateralization to some extent ensures that the collateral value remains within a safe range during market fluctuations, as the initial value of the cryptocurrency reserves exceeds the value of the issued stablecoins. The liquidation mechanism allows for the liquidation of under-collateralized positions, thereby maintaining the stablecoin's peg.

Smart Contract Vulnerability

Stablecoins rely on complex smart contracts to implement their stabilization designs, particularly for algorithmic ones. However, these smart contracts can also introduce new risks of code-level vulnerabilities, such as reentrancy attacks, logic bugs, or governance exploits, which can lead to severe consequences and significant financial losses. Therefore, rigorous smart contract auditing and ongoing security assessments are crucial for ensuring the safety and reliability of these protocols. BlockSec's expertise in code audit and Web3 security can help identify and mitigate these critical vulnerabilities.

Best Security Auditor for Web3

Validate design, code, and business logic before launch

Market Volatility and Oracle Risks

Extreme volatility in stablecoins and stablecoin-related tokens, such as a sudden crash within a short time frame, can erode trust and disrupt stability. In rapidly changing market conditions, such as during a black swan event, stabilization mechanisms might not respond swiftly enough, causing significant price deviations. During high demand or panic situations, the automated market maker (AMM) design of stablecoins can lead to liquidity shortages in liquidity pools, exacerbating price swings. Illiquid markets are particularly vulnerable to manipulation. Additionally, stablecoins rely on oracles to determine external prices (e.g., USD or ETH). Incorrect oracle data can result in mispriced stablecoins, creating a new attack surface that can distort the system and lead to exploits. Robust oracle security is therefore paramount.

The Stablecoin Landscape: Top Players and Their Mechanisms

We select the top 20 stablecoins from DefiLlama, which collectively account for over 99% of the total market capitalization of stablecoins (as of July 2024), as illustrated in the following figure.

Top 20 Stablecoins by Market Cap, Source: DefiLlama
Top 20 Stablecoins by Market Cap, Source: DefiLlama

The market capitalization for these stablecoins exhibits a high level of concentration, with the top 5 stablecoins (i.e., USDT, USDC, DAI, USDe, and FDUSD) accounting for 96% of the total market capitalization and the top 20 stablecoins accounting for 99%. This indicates a market highly dominated by a few key players, consistent with the Pareto Principle.

Among the top 20 stablecoins, all are collateralized by certain assets, such as US dollars, US treasuries, or other cryptocurrencies. Additionally, 9 of these stablecoins also incorporate an algorithmic stabilization mechanism to adjust circulation (supply) or ensure collateral security.

Comparison of Top 20 Stablecoins by BlockSec
Comparison of Top 20 Stablecoins by BlockSec

This phenomenon indicates a prevailing preference among users for fully collateralized stablecoins, particularly those backed by fiat currencies, despite the claims of algorithmic stablecoins regarding their well-designed and stable mechanisms. As Sam Kazemian, the founder of Frax, stated, "If you want to create a very large stablecoin, you want to become safer as you get bigger, not the other way around; as people use money, you want it to be safer." This sentiment underscores the importance of robust backing and transparent mechanisms to build trust and ensure stablecoin security.

Case Study: Ethena Labs - USDe and Its Unique Risks

In the past year, USDe, issued by Ethena Labs, has garnered significant attention and, as of July 2024, ranks as the fourth-largest stablecoin according to DefiLlama. This section examines USDe as a case study, exploring its operational mechanisms and potential security risks.

Understanding Ethena's Delta Hedging Mechanism

USDe is designed as a centralized exchange (CEX)-based stablecoin, with its stability mechanism currently heavily reliant on CEX's operational stability. Specifically, USDe uses mainstream cryptocurrencies as collateral and employs a "delta hedging" strategy to maintain stability.

So what is "delta hedging"? Let's consider the following example. When 1 ETH is transferred upon the minting of USDe, the stablecoin is exposed to a "positive delta of 1 ETH," meaning its value is fully sensitive to the spot market price of ETH. Ideally, as a stablecoin, the goal is to minimize this sensitivity, aiming for a "delta of 0" to ensure stability. To achieve this, Ethena employs delta hedging by "going short" on a perpetual contract with a nominal position size equal to 1 ETH. This strategy neutralizes the exposure of the collateral's value to market fluctuations. Consequently, regardless of how the market price of ETH changes, the collateral value remains stable.

The yield of USDe comprises two main components: staking yield, which is the native yield from ETH staking, and earnings from delta-hedging derivatives positions. The second component further breaks down into two parts: 1) earnings from the funding rate, which are the periodic payments between long and short positions on CEXs, and 2) earnings from the basis spread, which are the profits derived from the price difference between the spot market and futures contracts. According to historical data analysis by Ethena, this combination of yields remains positive even during bearish market conditions, such as the Terra incident and the FTX collapse.

Security Risks of Ethena's USDe

Despite its innovative approach, USDe introduces unique security risks due to its reliance on centralized entities and complex market dynamics.

Centralization Risk

The primary security issue stems from the reliance on CEXs for delta hedging and the custody method of "off-exchange settlement." We name this issue as the centralization risk. This dependency creates a vulnerability where the failure of these exchanges—whether due to operational issues or a bank run—could jeopardize the stability of the stablecoin. Despite the distribution of collaterals across multiple exchanges, over 90% are concentrated in three major exchanges: Binance, OKX, and Bybit. A significant event affecting any of these major CEXs could have cascading effects on USDe's stability.

Market Risk

Additionally, the market risk should not be neglected. The yield mechanism of USDe may encounter periods of persistently negative funding rates, which can lead to some components of Ethena's yield design becoming negative. Although historical data indicates that such negative periods have been relatively brief (less than two weeks), it is crucial to account for the possibility of prolonged adverse conditions in the future. Therefore, adequate countermeasures, such as reserve funds, should always be well prepared for this tough duration. A sustained period of negative funding rates could significantly impact USDe's ability to maintain its peg and generate yield, potentially leading to instability.

Explore MetaSleuth Investigation

Trace flows and build evidence for investigations

Try now for free

Conclusion: Navigating the Future of Stablecoin Security

In summary, stablecoins play a crucial role in the cryptocurrency ecosystem by providing stability and facilitating transactions in a volatile market. Their classifications, from fiat-collateralized to algorithmic mechanisms like Ethena Labs' USDe, to RWA-backed stablecoins like Ondo, address various needs within the crypto community but also present inherent security risks like collateral transparency, value fluctuations, smart contract vulnerabilities, and market volatility.

As Ethena Labs continues to refine and innovate with USDe, a critical question emerges: will USDe navigate market volatility without experiencing the collapse seen with Luna? The crypto community closely observes whether USDe can indeed maintain stability and potentially claim a leading role in the competitive stablecoin landscape. Its reliance on CEXs and delta hedging introduces a new set of challenges that require careful monitoring and robust risk management.

Given the significant market capitalization and impact of stablecoins, it is crucial to focus on their security risks. Continuous audits, diligent oversight, and advanced Web3 security tools are imperative to maintain stability and trust in the market. BlockSec remains committed to enhancing the security and usability of the Web3 world, providing essential services to safeguard the future of stablecoins and the broader crypto ecosystem.

About BlockSec

BlockSec is a full-stack Web3 security service provider. The company is committed to enhancing security and usability for the emerging Web3 world in order to facilitate its mass adoption. To this end, BlockSec provides smart contract and EVM chain security auditing services, the Phalcon platform for security development and blocking threats proactively, the MetaSleuth platform for fund tracking and investigation, and MetaSuites extension for web3 builders surfing efficiently in the crypto world.

To date, the company has served over 300 clients such as Uniswap Foundation, Compound, Forta, and PancakeSwap, and received tens of millions of US dollars in two rounds of financing from preeminent investors, including Matrix Partners, Vitalbridge Capital, and Fenbushi Capital.

Sign up for the latest updates
Weekly Web3 Security Incident Roundup | Mar 16 – Mar 22, 2026
Security Insights

Weekly Web3 Security Incident Roundup | Mar 16 – Mar 22, 2026

This BlockSec weekly security report covers seven DeFi attack incidents detected between March 16 and March 22, 2026, across Ethereum, BNB Chain, Polygon, and Polygon zkEVM, with total estimated losses of approximately $82.7M. The most significant event was the Resolv stablecoin protocol's infrastructure-key compromise, which led to over $80M in unauthorized USR minting and cross-protocol contagion across lending markets. Other incidents include a $2.15M donation attack combined with market manipulation on Venus Protocol, a $257K empty-market exploit on dTRINITY (Aave V3 fork), access control vulnerabilities in Fun.xyz and ShiMama, a weak-randomness exploit in BlindBox, and a redemption accounting flaw in Keom.

Building a Secure Stablecoin Payment Network: BlockSec Partners with Morph
Partnership

Building a Secure Stablecoin Payment Network: BlockSec Partners with Morph

BlockSec has partnered with Morph as an official audit partner for the $150M Morph Payment Accelerator. By offering exclusive discounts on smart contract audits and penetration testing, BlockSec provides institutional-grade security to payment builders, ensuring a safe and resilient foundation for the future of global stablecoin payments.

Weekly Web3 Security Incident Roundup | Mar 9 – Mar 15, 2026
Security Insights

Weekly Web3 Security Incident Roundup | Mar 9 – Mar 15, 2026

This BlockSec weekly security report covers eight DeFi attack incidents detected between March 9 and March 15, 2026, across Ethereum and BNB Chain, with total estimated losses of approximately $1.66M. Incidents include a $1.01M AAVE incorrect liquidation caused by oracle misconfiguration, a $242K exploit on the deflationary token MT due to flawed trading restrictions, a $149K exploit on the burn-to-earn protocol DBXen from `_msgSender()` and `msg.sender` inconsistency, and a $131K attack on AM Token exploiting a flawed delayed-burn mechanism. The report provides detailed vulnerability analysis and attack transaction breakdowns for each incident.

Best Security Auditor for Web3

Validate design, code, and business logic before launch. Aligned with the highest industry security standards.

BlockSec Audit

Go Deeper with MetaSleuth Investigation

Extend your crypto compliance capabilities with Blocksec's MetaSleuth Investigation, the first platform for tracing funds, mapping transaction networks and revealing hidden on-chain relationships.

Move from detection to resolution faster with clear visual insights and evidence-ready workflows across the digital assets ecosystem.

MetaSleuth Investigation