ChainScore Labs
All Guides

Synthetic Stocks and Commodities in DeFi

LABS

Synthetic Stocks and Commodities in DeFi

Chainscore © 2025

Core Concepts of Synthetic Assets

Foundational principles enabling the creation and use of tokenized derivatives for real-world assets on-chain.

Collateralization

Over-collateralization is the primary security model. Users lock crypto assets (e.g., ETH) exceeding the value of the minted synthetic asset to absorb price volatility. This creates a collateral ratio, often 150% or higher. It mitigates counterparty risk and ensures the synthetic's value is always backed, even during market crashes.

Price Oracles

Decentralized oracle networks like Chainlink provide critical off-chain price data. They feed real-time valuations of the underlying asset (e.g., Tesla stock, gold) onto the blockchain. This data is aggregated from multiple sources to resist manipulation. Accurate oracles are essential for minting, redeeming, and liquidating positions.

Synthetic Token (Synth)

The ERC-20 token representing a specific asset, such as sTSLA or sXAU. It tracks the price of its real-world counterpart via oracles. Synths are fungible, tradeable on DEXs, and composable within DeFi for lending or yield farming. They grant exposure without requiring custody of the physical asset.

Debt Pool & Staking

A shared debt pool system aligns incentives across the protocol. Stakers deposit collateral to back the entire ecosystem of synths and earn fees from trading and minting. Their staked value fluctuates based on the aggregate performance of all synths, creating a collective risk model distinct from isolated vaults.

Minting & Burning

The mint/burn mechanism controls synth supply. Users mint synths by depositing collateral into a smart contract, creating a debt position. To reclaim collateral, they must burn an equivalent value of synths, repaying the debt. This process enforces the synthetic asset's peg to its target price through economic incentives.

Liquidation & Incentives

Automated liquidations protect the system's solvency. If a user's collateral ratio falls below a threshold (e.g., 150%), their position can be liquidated by keepers for a reward. This mechanism swiftly recapitalizes the debt pool, ensuring all synths remain fully backed and minimizing systemic risk from undercollateralized accounts.

Protocol Design and Collateral Models

How Synthetic Assets Work

Synthetic assets are blockchain tokens that track the price of real-world assets like stocks or gold, without holding the underlying asset. Protocols use collateral to back the value of these synthetic tokens, ensuring they maintain their peg.

Key Mechanisms

  • Over-collateralization: Users lock more crypto (e.g., ETH) than the value of the synthetic they mint, creating a safety buffer against price drops. This is used by protocols like Synthetix.
  • Collateral Pools: Instead of individual positions, users contribute to a shared pool that backs all synthetic assets. This mutualized risk model improves capital efficiency.
  • Price Oracles: Decentralized data feeds (e.g., Chainlink) provide real-time price data for the tracked assets, which is critical for calculating collateral ratios and liquidations.

Example

When minting a synthetic Tesla (sTSLA) token on Synthetix, you would first stake SNX tokens as collateral into the protocol's debt pool. The system calculates your collateral ratio, and you can then mint sTSLA up to a value less than your staked collateral. The price of sTSLA is updated via oracles to match the real NASDAQ price.

Minting and Trading Synthetic Assets

Process overview for creating and exchanging synthetic representations of real-world assets on-chain.

1

Deposit Collateral and Mint sUSD

Lock crypto assets as collateral to generate the protocol's stablecoin, which is used to purchase synths.

Detailed Instructions

First, connect your wallet to the Synthetix protocol interface. Navigate to the Mintr dApp or the equivalent section on the frontend. You will need to deposit an accepted collateral asset, typically SNX (Synthetix Network Token) or ETH. The protocol requires you to maintain a collateralization ratio (C-Ratio) above a minimum threshold, often 400% for SNX. This means for every 100 sUSD you mint, you must have at least $400 worth of SNX locked. After approving the contract and depositing your collateral, execute the mint function to generate sUSD, the protocol's debt-backed stablecoin. This sUSD represents your debt to the system and is the primary currency for acquiring other synthetic assets.

  • Sub-step 1: Approve the ProxyERC20 contract to spend your SNX or ETH.
  • Sub-step 2: Call the issueMaxSynths() function to mint the maximum sUSD allowed by your current collateral.
  • Sub-step 3: Verify your new Debt Balance and updated C-Ratio on the dashboard.
solidity
// Example interaction with the Synthetix issuer contract ISynthetixIssuer issuer = ISynthetixIssuer(0x...IssuerAddress); issuer.issueSynths(amount_sUSD);

Tip: Monitor your C-Ratio closely. Falling below the target can trigger liquidations or prevent you from claiming staking rewards.

2

Exchange sUSD for a Target Synth

Use the Synthetix Exchange to trade sUSD for a specific synthetic asset like sTSLA or sXAU.

Detailed Instructions

With sUSD in your wallet, proceed to the Synthetix Exchange, often integrated into the same interface. Select the desired synthetic asset (Synth) from the list, which includes synthetic stocks (e.g., sTSLA), commodities (e.g., sXAU for gold), forex (e.g., sEUR), and crypto indices. The exchange uses a peer-to-contract model via a liquidity pool, not a traditional order book. The exchange rate is provided by a decentralized oracle network, currently Chainlink. Be aware of the exchange fee, which is dynamically adjusted by the protocol's governance. Confirm the transaction to burn your sUSD and mint the new Synth into your wallet. This action does not alter your overall debt balance; it merely changes the denomination of your debt.

  • Sub-step 1: On the exchange page, select sUSD as the 'from' currency and your target Synth (e.g., sAAPL) as the 'to' currency.
  • Sub-step 2: Review the quoted exchange rate and the associated fee (e.g., 30 basis points).
  • Sub-step 3: Execute the exchange() function, specifying the sourceCurrencyKey ("sUSD") and destinationCurrencyKey ("sAAPL").
javascript
// Example using the Synthetix.js library const { synthetix } = require('@synthetixio/contracts-interface'); const tx = synthetix.exchange({ from: 'sUSD', to: 'sBTC', amount: '100' });

Tip: For large trades, check the skew rate on the chosen Synth pool, as high demand can increase the effective exchange fee.

3

Manage Synth Holdings and Debt

Monitor your portfolio's exposure and debt obligations within the Synthetix system.

Detailed Instructions

Your synthetic assets are debt positions, not simple holdings. The total value of all Synths you own (denominated in sUSD) represents your debt allocation. The system's global debt pool is periodically recomputed, and your share of it fluctuates based on the performance of the Synths you hold relative to others. Use the Debt Hub interface to view your current debt balance, debt ownership percentage, and the profit/loss from your chosen exposures. If the value of your Synths appreciates faster than the average debt pool, you accrue a profit (in a future claimable state). Conversely, underperformance creates a deficit. You can rebalance your exposure by exchanging back into sUSD or into different Synths. This is a critical risk management step for minters.

  • Sub-step 1: Navigate to the 'Debt' or 'Portfolio' section to see your debt breakdown.
  • Sub-step 2: Calculate your effective exposure: (Value of sTSLA in USD) - (Your % of Debt Pool * Total Debt Pool Value).
  • Sub-step 3: To rebalance, exchange a portion of your Synths back to sUSD using the steps in the previous section.
solidity
// Querying debt balance for an account IDebtCache debtCache = IDebtCache(0x...DebtCacheAddress); (uint debt, bool invalid) = debtCache.cachedDebt();

Tip: Active traders should track the weekly debt snapshot to understand how periodic rebases affect their position.

4

Burn Synths to Reclaim Collateral

Close your debt position by burning synthetic assets to unlock your staked collateral.

Detailed Instructions

To exit your position and reduce your system debt, you must burn synthetic assets. First, ensure you hold enough sUSD. If you hold other Synths like sCOIN, you must exchange them for sUSD first. In the Mintr dApp or staking interface, navigate to the Burn section. Here, you can choose to burn a specific amount of sUSD or burn all synths to fully repay your debt. Burning sUSD destroys the tokens and reduces your recorded debt in the system. This improves your collateralization ratio (C-Ratio). Once your debt is sufficiently low and your C-Ratio is well above the target (e.g., 400%), you can withdraw a portion of your locked collateral. The process involves two transactions: first burning the debt, then unlocking the collateral if desired.

  • Sub-step 1: Exchange any non-sUSD Synths back to sUSD on the Synthetix Exchange.
  • Sub-step 2: Call the burnSynths(amount_sUSD) function on the issuer contract.
  • Sub-step 3: After burning, call withdrawCollateral(amount_SNX) if your C-Ratio allows.
solidity
// Burning synths to reduce debt ISynthetixIssuer issuer = ISynthetixIssuer(0x...IssuerAddress); issuer.burnSynths(amount_sUSD); // Then, if C-Ratio is safe issuer.withdrawCollateral(amount_SNX);

Tip: Always verify your new C-Ratio after burning before attempting to withdraw collateral, as a failed transaction due to insufficient ratio will still incur gas costs.

Synthetic Asset Protocol Comparison

Comparison of key technical and economic parameters for major synthetic asset protocols.

FeatureSynthetix (SNX)Mirror ProtocolUMA

Collateral Type

SNX (staked), ETH

UST, aUST

Any ERC-20 (via Optimistic Oracle)

Minting Fee (Stability)

0.3% exchange fee + debt pool fluctuations

1.5% minting fee + Terra transaction costs

No protocol fee; gas costs for contract deployment & settlement

Oracle Solution

Chainlink + decentralized pyth network for crypto; internal for forex

Band Protocol for stock/ETF prices

Optimistic Oracle (UMA's DVM for disputes)

Settlement Speed / Finality

Near-instant on L2 Optimism; ~5 min on Ethereum L1

~6 seconds (Terra block time)

Dispute period (typically 24-48 hours) for price resolution

Primary Asset Focus

Forex, crypto, commodities (sUSD, sETH, sBTC)

Stocks, ETFs (mTSLA, mIAU)

Custom synthetic tokens for any verifiable metric

Liquidity Model

Peer-to-contract via synth pools; no counterparty risk

Automated Market Makers (AMM) on Terra (Terraswap)

Requires external liquidity provision (e.g., Uniswap pools)

Max Collateral Ratio (C-Ratio)

400% (target, enforced via staking rewards)

~150-200% (minimum for safety, varies by asset)

Collateral requirement set per contract (e.g., 120%)

Technical and Financial Risks

Key challenges and vulnerabilities associated with synthetic asset protocols, covering smart contract, oracle, and market structure risks.

Oracle Manipulation

Oracle failure is a primary risk. Synthetic assets rely on external price feeds. If an oracle is delayed, censored, or manipulated, it can cause incorrect pricing, allowing for profitable exploits like draining collateral pools. Protocols mitigate this with decentralized oracle networks and circuit breakers, but the dependency remains a critical single point of failure.

Smart Contract Vulnerabilities

Code exploits can lead to catastrophic loss. The complex logic for minting, trading, and liquidating synthetics is a high-value target. A bug in the collateral management or fee calculation could be exploited to mint unlimited assets or steal funds. Rigorous audits and formal verification are essential but not guarantees against novel attack vectors.

Liquidation Cascades

Volatility-driven liquidations can destabilize the system. During high market volatility, a drop in collateral value or spike in synthetic asset price can trigger mass liquidations. This creates sell pressure on the collateral asset, potentially causing a feedback loop that depletes the protocol's solvency and harms all remaining positions.

Collateral Risk

Collateral depegging directly threatens protocol solvency. Many synthetics are backed by stablecoins or LP tokens. If the collateral asset loses its peg or suffers an exploit (e.g., a stablecoin depeg), the entire backing for the synthetic becomes undercollateralized. This requires robust collateral diversification and high-quality, battle-tested assets.

Governance Attacks

Protocol parameter changes pose a centralization risk. Governance tokens often control critical levers like fee rates, collateral ratios, and oracle whitelists. A malicious actor gaining majority control could extract value or sabotage the system. This highlights the importance of decentralized, well-distributed governance with timelocks on sensitive actions.

Regulatory Uncertainty

Legal and compliance risk is an external threat. Synthetic stocks and commodities may attract regulatory scrutiny as potential unregistered securities. Enforcement actions against issuers or restrictions on access could render assets illiquid or worthless. This legal overhang creates uncertainty for long-term holders and protocol developers operating in a gray area.

SECTION-FAQ

Frequently Asked Questions

Ready to Start Building?

Let's bring your Web3 vision to life.

From concept to deployment, ChainScore helps you architect, build, and scale secure blockchain solutions.