# Stablecoin Analysis

> A Claude skill from brainbytes-dev/everything-claude-trading.

- **Type:** Skill
- **Install:** `agentstack add skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [brainbytes-dev](https://agentstack.voostack.com/s/brainbytes-dev)
- **Installs:** 0
- **Category:** [Finance & Payments](https://agentstack.voostack.com/c/finance-and-payments)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [brainbytes-dev](https://github.com/brainbytes-dev)
- **Source:** https://github.com/brainbytes-dev/everything-claude-trading/tree/main/skills/crypto/stablecoin-analysis

## Install

```sh
agentstack add skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Stablecoin Analysis

## When to Activate
- Evaluating stablecoin peg mechanisms, reserve compositions, and risk profiles
- Assessing depeg risk factors and historical depeg events
- Analyzing stablecoin yield strategies and their risk/return characteristics
- Comparing stablecoin designs (fiat-backed, crypto-backed, algorithmic)
- Monitoring stablecoin market dynamics as macro indicators for crypto markets

## Core Concepts

### Stablecoin Classification

**Fiat-Backed (Custodial):**
- **USDT (Tether)** — largest by market cap; reserves include cash, T-bills, commercial paper (reduced), secured loans
- **USDC (Circle)** — fully backed by cash and short-duration US Treasuries; monthly attestations by Deloitte
- **BUSD (Paxos/Binance)** — regulated by NYDFS; being wound down
- **PYUSD (PayPal)** — regulated, backed by US Treasuries and deposits
- Peg mechanism: issuer mints/redeems 1:1 with USD; arbitrageurs keep market price near $1
- Risks: custodial risk, regulatory risk, reserve composition opacity, banking relationship risk

**Crypto-Backed (Decentralized):**
- **DAI (MakerDAO/Sky)** — over-collateralized by ETH, WBTC, stablecoins, RWAs
  - Minimum collateral ratio: 150% for ETH vaults (liquidation at 145%)
  - Stability fee (interest rate) set by governance
  - DSR (DAI Savings Rate) provides yield to DAI holders
  - Increasingly backed by RWAs and USDC — centralization concerns
- **LUSD (Liquity)** — backed only by ETH, immutable contracts, no governance
  - Minimum collateral ratio: 110%
  - Redemption mechanism: anyone can redeem LUSD for $1 of ETH from riskiest vaults
  - Truly decentralized but smaller scale
- **crvUSD (Curve)** — uses LLAMMA (Lending-Liquidating AMM Algorithm)
  - Soft liquidation: gradually converts collateral to stablecoin as price drops
  - Re-collateralizes automatically if price recovers
  - Novel approach but complex risk profile
- Risks: collateral volatility, liquidation cascades, oracle failures, governance attacks

**Algorithmic (Uncollateralized or Partially Collateralized):**
- **Historical failures:** UST/LUNA (death spiral, $40B lost), IRON/TITAN, Basis Cash
- **Seigniorage model:** mint stablecoin by burning governance token; reflexive — works in expansion, fails in contraction
- **Fractional-algorithmic:** FRAX (partially collateralized, partially algorithmic); has moved toward full collateralization
- Risks: death spiral risk (loss of confidence -> redemption -> further depegging -> more redemption)

### Peg Mechanisms

**Hard Peg (Fiat-Backed):**
```
Market price > $1.00:
  - Arbitrageurs mint new tokens at $1.00 from issuer
  - Sell on market above $1.00
  - Profit drives price back to $1.00

Market price  more LUNA minting -> death spiral
```

### Reserve Analysis

**Key Reserve Metrics:**
```
Reserve ratio = total reserves / total stablecoin outstanding
  >1.0: over-collateralized (safe)
  =1.0: fully backed (standard for fiat-backed)
  60/40 (stressed stablecoin becoming dominant in pool)
2. CEX withdrawal suspensions or delays for the stablecoin
3. Issuer communication changes (delays, vagueness, leadership changes)
4. Sustained discount >0.5% for 24+ hours
5. Large redemption queues (on-chain observable for crypto-backed)
6. Social media sentiment shift (FUD can become self-fulfilling)
7. Declining reserves in attestation reports
8. Regulatory announcements targeting the issuer
```

### Stablecoin Yield Strategies
```
Low risk:
- Supply to Aave/Compound (3-8% APY variable)
- Curve 3pool LP (2-5% base + CRV rewards)
- DSR (MakerDAO savings rate, currently 5-15% depending on governance)

Medium risk:
- Lending on newer protocols with higher rates (higher smart contract risk)
- LP in volatile/stablecoin pairs on DEXs
- Delta-neutral basis trading using stablecoin as collateral

High risk:
- Exotic stablecoin farms on new chains
- Leveraged stablecoin lending loops
- Algorithmic stablecoin incentive programs
```

## Examples

### Example 1: USDC Depeg Trade (March 2023)
```
Situation: USDC trading at $0.93 after SVB news
Analysis:
- Circle's exposure: $3.3B of $40B reserves (8.25%)
- Worst case: 8.25% haircut on reserves -> USDC worth $0.9175
- Best case: deposits recovered -> USDC worth $1.00
- Expected value at $0.93: strongly positive if deposit recovery likely

Trade: Buy USDC at $0.93
- If deposits recovered (70% probability): profit = 7.5%
- If haircut applied (30% probability): loss = 1.4%
- Expected value: 0.7 * 7.5% + 0.3 * (-1.4%) = 4.8%

Outcome: Fed backstopped all deposits. USDC repegged within 48 hours.
7.5% return in 2 days.
```

### Example 2: Curve Pool Imbalance Warning
```
Monitoring: Curve 3pool composition
Normal state: ~33% DAI / ~33% USDC / ~33% USDT

Warning signal detected:
- DAI: 25%
- USDC: 25%
- USDT: 50%

Interpretation: Market is dumping USDT into the pool, buying DAI/USDC.
This suggests concern about USDT peg or reserves.
USDT discount on Curve: 0.2%

Action:
- Reduce USDT exposure
- Monitor Tether redemption data and reserve attestations
- Set alert for >55% USDT imbalance (escalation threshold)
- Check if discount is also present on other venues (confirms systemic concern vs pool-specific flow)
```

### Example 3: Crypto-Backed Stablecoin Stress Test
```
DAI stress test scenario: ETH drops 40% in 24 hours

Current state:
- Total DAI: 5B
- ETH-backed DAI: 2B ($4B ETH collateral at 200% CR)
- USDC-backed DAI: 1.5B
- RWA-backed DAI: 1.5B

After 40% ETH drop:
- ETH collateral value: $4B * 0.6 = $2.4B
- Collateral ratio: 2.4B / 2B = 120% (below 150% threshold)
- Liquidations trigger: ~$800M of ETH vaults liquidated
- Liquidation penalty generates revenue but may cascade
- DAI supply contracts as vaults are closed

Assessment:
- USDC and RWA backing provides stability floor (3B backing 3B DAI = 100%)
- ETH liquidation cascade is contained if oracle stays live
- Key risk: oracle failure during ETH crash would prevent liquidations
- DAI should hold peg due to diversified collateral
```

## Quality Gate

Before relying on or investing in stablecoins, verify:

- [ ] Peg mechanism is understood — how does it maintain $1? What are the failure modes?
- [ ] Reserve composition is verified — recent attestation or on-chain proof of reserves reviewed
- [ ] Redemption mechanism tested — can you actually redeem for $1? What are the delays and minimums?
- [ ] On-chain liquidity is sufficient — can you exit your position size without >0.5% slippage?
- [ ] Depeg early warning indicators are being monitored (Curve pool imbalance, discount on DEXs)
- [ ] Counterparty risks identified — banking partners, custodians, oracle providers
- [ ] Regulatory status is clear — issuer jurisdiction, licenses, pending regulatory actions
- [ ] Historical performance reviewed — how did this stablecoin behave during March 2023, May 2022?
- [ ] Concentration risk managed — do not hold >50% of stablecoin allocation in a single stablecoin
- [ ] Chain-specific risks considered — bridged vs native USDC, L2 sequencer dependencies

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [brainbytes-dev](https://github.com/brainbytes-dev)
- **Source:** [brainbytes-dev/everything-claude-trading](https://github.com/brainbytes-dev/everything-claude-trading)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis
- Seller: https://agentstack.voostack.com/s/brainbytes-dev
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
