AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Stablecoin Analysis

skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis · by brainbytes-dev

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

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-brainbytes-dev-everything-claude-trading-stablecoin-analysis)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Stablecoin Analysis? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.

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

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.