Skip to content

TEEZY234/XHedge

 
 

XHedge 🛡️📉

XHedge Banner

A Stablecoin Volatility Shield for Weak Currencies.

License: MIT Built on Stellar

💡 The Idea

Even stablecoins expose users in emerging economies (like Nigeria) to FX timing risk, dollar volatility relative to local inflation, and entry/exit rate manipulation. Stable ≠ Stable relative to local purchasing power.

XHedge acts as a "Micro hedge fund for everyday Africans."

  • User Action: Users deposit stablecoins.
  • AI Engine: Predicts FX volatility and local inflation trends.
  • Smart Allocation: Contract automatically allocates funds into:
    • Stablecoins (Safety)
    • Synthetic inflation hedges (Growth)
    • Liquidity pools (Yield)

This is a rare narrative with a strong technical moat.


🏗️ Architecture

graph TD
    User((User)) -->|Deposit USDC| UI[XHedge Dashboard]
    UI -->|Invoke| Vault[Soroban Vault Contract]
    
    subgraph AI Engine
        Data[Central Bank/FX APIs] -->|Feed| Model[FX Forecast Model]
        Model -->|Signal| Oracle[Rebalance Oracle]
    end

    subgraph On-Chain Strategy
        Oracle -->|Trigger| Vault
        Vault -->|Alloc 40%| USDC[USDC Reserves]
        Vault -->|Alloc 30%| LP[Stellar LP Positions]
        Vault -->|Alloc 30%| Synth[Synthetic Hedges]
    end
    
    Vault -->|Yield/Protection| User
Loading

🛠 Tech Stack

Blockchain:

  • Soroban asset management contract
  • Yield allocation logic
  • Stellar liquidity integration

AI:

  • Time-series FX forecasting
  • Inflation modeling
  • Risk scoring engine

Data Sources:

  • Central bank APIs
  • FX feeds
  • Market price feeds

Frontend:

  • Portfolio dashboard
  • Risk visualization UI

🚀 Getting Started

1. Prerequisites

  • Node.js v18+
  • Rust & Cargo
  • Freighter Wallet

2. Local Setup

(This repo is currently local-only).

Verify Integrity:

cargo build --all

Setup Smart Contracts:

cd smartcontract
# See docs/ISSUES-SMARTCONTRACT.md for tasks

Setup Frontend:

cd frontend
npm install
# See docs/ISSUES-FRONTEND.md for tasks

📚 Documentations & Trackers

Guides:


🤝 Contributing

See CONTRIBUTING.md


Project maintained by @bbkenny.

About

XHedge - Cross-chain hedging protocol on Stellar Soroban

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 44.7%
  • TypeScript 37.8%
  • Rust 16.3%
  • Shell 0.7%
  • JavaScript 0.3%
  • CSS 0.2%