Powered by LibFi

# AutoFi Precious Metals Vault (afCommodities)

Precious Metals Portfolio

---
config:
  theme: neutral
---
flowchart TB


    subgraph CommoditiesVault[afCommodities Plasma Vault]
        V3[ERC-4626 Vault<br/>Base Asset: USDC]
    end



    subgraph SharedFuses[Shared Fuse Set]
        ERC[SupplyFuseERC4626]
        Bal[BalanceFuseERC4626]
        Swap[SwapFuseUniversal]
    end



    subgraph CommodityTokens[Commodity Basket]
        tIAU[tIAU Gold]
        tSIVR[tSIVR Silver]
        tPPLT[tPPLT Platinum]
    end


    V3 --> SharedFuses --> CommodityTokens


    Raindex[(Raindex)]
    SharedFuses --> Raindex

# What It Is

afCommodities provides exposure to precious metals through a basket of tokenized ETFs: gold (tIAU), silver (tSIVR), and platinum (tPPLT). This vault offers a traditional safe-haven allocation with onchain access.

# How It Works

Your USDC deposit is converted into a diversified precious metals portfolio. The vault maintains target weights across the three metals, rebalancing periodically. Gold forms the largest allocation as the deepest and most liquid market, with silver and platinum providing additional diversification.

# Target Returns

Precious metals price appreciation with low correlation to equity and crypto markets

# Who It’s For

  • Investors seeking portfolio diversification
  • Those looking for inflation hedges
  • Users wanting safe-haven assets accessible onchain
  • Anyone concerned about currency debasement

# Benefits

True Diversification: Precious metals historically show low correlation to stocks and crypto.

Inflation Protection: Gold and silver have served as inflation hedges for millennia.

No Storage Hassles: Tokenized exposure eliminates storage and insurance concerns while maintaining price exposure.

Industrial Exposure: Silver and platinum have significant industrial applications, providing upside from economic activity.

# Risk Profile

Low-Medium Risk: Precious metals are less volatile than equities but can still experience significant price swings. No yield generation; returns come purely from price appreciation.

# Stock Vault Rebalancing Flows

---
config:
  theme: neutral
---
sequenceDiagram
    participant Alpha as Alpha Bot
    participant Vault as Plasma Vault
    participant Pyth as Pyth Oracle
    participant Raindex
    participant Tokens as Wrapped ST0x

    Note over Alpha: Monthly or threshold-based rebalance

    Alpha->>Vault: get current token balances
    Alpha->>Pyth: get all token prices
    Alpha->>Alpha: calculate current weights
    Alpha->>Alpha: compare to target weights

    loop For each token needing adjustment
        alt Token overweight
            Alpha->>Vault: withdraw wrapped token
            Alpha->>Vault: swap token to USDC
            Vault->>Raindex: takeOrder sell
        else Token underweight
            Alpha->>Vault: swap USDC to token
            Vault->>Raindex: takeOrder buy
            Alpha->>Vault: deposit wrapped token
        end
    end

    Alpha->>Vault: verify final weights
    Alpha->>Alpha: log rebalance complete

# Stock Corporate Action Handling

---
config:
  theme: neutral
---
flowchart TB
    subgraph Monitoring[Corporate Action Monitor]
        CA[Check Corporate Action ID]
        Oracle[Compare Token vs Oracle CA ID]
    end

    subgraph Actions[Response Actions]
        Pause[Pause Trading]
        Wait[Wait for Sync]
        Resume[Resume Normal Ops]
    end

    subgraph Types[Corporate Action Types]
        Split[Stock Split<br/>Wrapped token adjusts automatically]
        Dividend[Dividend<br/>Reinvested in wrapped token]
        Merger[Merger/Spinoff<br/>Manual intervention]
    end

    CA --> Oracle
    Oracle -->|Mismatch| Pause
    Oracle -->|Match| Resume
    Pause --> Wait
    Wait -->|Synced| Resume

    Types --> CA