Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for RWA Yield Compass

Inspiration

The RWA (Real World Asset) tokenization space on BNB Chain is growing rapidly, with hundreds of millions in TVL across treasury, real estate, credit, and commodity protocols. But investors face a critical problem: there's no unified way to compare tokenized yields against their traditional finance equivalents. Is a 4.9% tokenized T-Bill yield worth the smart contract risk? How does a tokenized real estate yield compare to a public REIT? RWA Yield Compass was built to answer these questions with data, not guesswork.

What it does

RWA Yield Compass is an AI-powered analytics tool that:

  • Scans 8+ BNB Chain RWA protocols across treasuries, real estate, private credit, and commodities
  • Maps each tokenized asset to its TradFi benchmark (T-Bills, REITs, corporate bonds, spot gold)
  • Calculates yield spreads — the DeFi premium or discount vs traditional equivalents, measured in basis points
  • Computes composite risk scores combining smart contract risk, counterparty risk, and liquidity
  • Detects yield anomalies using statistical z-score analysis to flag suspiciously high or low yields
  • Generates AI-driven allocation suggestions for conservative, moderate, and aggressive risk profiles
  • Produces interactive Plotly dashboards and beautiful HTML reports with dark-mode UI

How I built it

Built entirely in Python with a modular architecture:

  1. Protocol Registry: Curated database of BNB Chain RWA protocols with yield data, TVL, risk parameters, and audit status
  2. TradFi Benchmark Engine: Maps each RWA category to relevant traditional finance products for apples-to-apples comparison
  3. Risk Scoring Model: Weighted composite of smart contract risk (30%), counterparty risk (40%), and liquidity penalty (30%)
  4. Anomaly Detection: Z-score analysis across the yield distribution to flag statistical outliers
  5. Allocation Engine: Risk-adjusted return optimization that weights eligible protocols by their Sharpe-like ratios
  6. Visualization Layer: Interactive Plotly charts (yield comparisons, TVL distribution, risk histograms) + Rich terminal UI

Key technologies: Python, NumPy, Pandas, Plotly, Rich, Web3.py, Jinja2

Challenges I ran into

  • Data normalization: RWA protocols report yields in different formats (APY vs APR, net vs gross). Standardizing to comparable metrics required careful analysis of each protocol's methodology.
  • Risk quantification: Smart contract risk and counterparty risk are inherently subjective. I built a multi-factor scoring system that weighs audit status, TVL (as a proxy for battle-testing), protocol maturity, and underlying asset quality.
  • TradFi mapping: Some tokenized assets don't have clean TradFi equivalents. Tokenized carbon credits, for example, behave differently from spot carbon markets. The benchmark selection algorithm handles edge cases through category-based fallback matching.

Accomplishments that I'm proud of

  • Complete analytical pipeline from raw protocol data to actionable investment recommendations
  • Interactive HTML dashboard that rivals paid analytics platforms in presentation quality
  • Anomaly detection that correctly flags outlier yields (e.g., Credix at 11.2% when the mean is 7.1%)
  • Risk-adjusted allocation that produces sensible portfolio suggestions across different risk tolerances
  • Total TVL tracked: $826M across 8 protocols on BNB Chain

What I learned

  • The BNB Chain RWA ecosystem is more mature than most people realize — there are serious institutional-grade products with proper audits and regulated underlying assets
  • The yield spread between tokenized and traditional products is surprisingly narrow for treasury products (27-36 bps) but much wider for real estate and credit (195-262 bps), suggesting the market is still pricing in significant smart contract risk for less liquid RWA categories
  • Building effective risk models for DeFi requires combining on-chain metrics with off-chain due diligence factors

What's next for RWA Yield Compass

  • Live on-chain data integration via BNB Chain RPC (Web3.py) for real-time yield tracking
  • Historical yield tracking and trend analysis with time-series charts
  • Cross-chain comparison (BNB Chain vs Ethereum vs Solana RWA ecosystems)
  • Alert system for yield anomaly notifications
  • API endpoint for integration with portfolio management tools
  • BNB Chain deployment as a smart contract-backed oracle for RWA yield data

Built With

Share this project:

Updates

Submission history