Hey DeFi University fam! ๐
I'm excited to share a tool I've been building to help us track and visualize our DeFi positions across multiple protocols. Whether you're farming yields on Pendle, running leveraged loops on Contango, or lending on Morpho and Aave โ this tool brings everything together in one dashboard.
๐ฏ What is the DeFi Flight Simulator?
It's a portfolio tracking tool that lets you:
โ
Add all your DeFi positions in one place
โ
See your total portfolio value and weighted average APY
โ
Track liquidation risk for leveraged positions
โ
Visualize your allocation with interactive charts
โ
Export/import your portfolio data
The best part? It works completely offline โ your data stays in your browser, no account needed. ๐
๐ฎ Getting Started
Adding Your First Position
2. In the Configuration Console (left panel), fill in:
- Position Name โ Give it a descriptive name (e.g., "PT-sUSDe Dec 2025")
- Protocol โ The protocol you're using (Pendle, Contango, Morpho, Aave)
- Asset โ The asset you're holding (sUSDe, USDC, ETH, etc.)
- Principal Amount โ How much you've deposited (in USD)
- Expected APY โ Your expected yield percentage
3. Click Add Position
That's it! Your position now appears in the dashboard. โจ
๐ Protocol-Specific Examples
Here's how to track positions for each protocol we commonly use:
๐ฃ Pendle Positions (Fixed Yields)
Pendle lets you lock in fixed yields through Principal Tokens (PTs).
Example Setup:
- Position Name: PT-sUSDe Dec 2025
- Protocol: Pendle
- Asset: PT-sUSDe
- Principal: $10,000
- Expected APY: 15%
- Leveraged: No
โก Contango Positions (Leveraged Loops)
Contango enables leveraged yield farming through looping strategies.
Example Setup:
- Position Name: sUSDe Loop Contango
- Protocol: Contango
- Asset: sUSDe
- Principal: $10,000
- Expected APY: 12%
- Leveraged: Yes
- Leverage: 3.0x
- LLTV: 0.86
- Borrow APY: 4.5%
๐ก When you enable "Leveraged Position", additional fields appear for tracking liquidation risk.
๐ต Morpho Positions (Optimized Lending)
Morpho optimizes lending rates across protocols.
Example Setup:
- Position Name: Morpho USDC Supply
- Protocol: Morpho
- Asset: USDC
- Principal: $5,000
- Expected APY: 8%
- Leveraged: No
๐ข Aave Positions (Standard Lending)
Aave is the OG lending protocol with reliable yields.
Example Setup:
- Position Name: Aave ETH Supply
- Protocol: Aave
- Asset: ETH
- Principal: $15,000
- Expected APY: 2.5%
- Leveraged: No
๐ฑ Understanding the Dashboard
The dashboard has three main panels plus a visualization section at the bottom:
โฌ
๏ธ Left Panel: Configuration Console
- Add Position form for new positions
- Export button to save your portfolio as JSON
- Import button to load a saved portfolio
- Reset to clear everything
- Active Positions list showing all your positions
โฌ Center Panel: Simulation Canvas
- Your Positions cards showing each position
- Click the โ๏ธ pencil icon to edit any position
- Click the ๐๏ธ trash icon to remove a position
- Each card shows: Protocol, Asset, Principal, and Expected APY
โก๏ธ Right Panel: Risk Telemetry
- Total Portfolio Equity โ Your total invested amount
- Weighted Average APY โ Your blended yield across all positions
- Liquidation Risk โ Shows "Low Risk", "Medium", or "Critical" based on your leveraged positions
- Position Breakdown โ Each position with its allocation percentage
โฌ๏ธ Bottom Section: Portfolio Analytics
Scroll down to see the Portfolio Allocation pie chart:
- Visual breakdown of your portfolio by position
- Allocation percentages for each position
- Summary stats: Total Positions, Protocols, and Assets
๐ Pro Tips
1๏ธโฃ Track Leveraged Positions Carefully โ ๏ธ
When you add a leveraged position (like Contango loops), enable the "Leveraged Position" toggle and enter:
- Leverage โ Your loop multiplier (e.g., 3.0x)
- LLTV โ Liquidation loan-to-value threshold (usually 0.86 for most markets)
- Borrow APY โ What you're paying to borrow
The dashboard will calculate your effective APY and monitor liquidation risk.
2๏ธโฃ Compare Yields Across Protocols ๐
Add all your positions, then look at the Weighted Average APY to see your blended return. This helps you decide where to allocate more capital.
3๏ธโฃ Export Your Portfolio ๐พ
Click Export to download your portfolio as a JSON file. This is useful for:
- Backing up your data
- Sharing your portfolio setup with others
- Moving to a different browser
4๏ธโฃ Edit Positions Anytime ๐
Markets change. Click the edit button on any position to update:
- APY rates (Pendle fixed yields change as you approach maturity)
- Principal amounts (when you add or remove funds)
- Leverage levels (if you adjust your loops)
๐ฏ Example Portfolio
Here's what a diversified DeFi portfolio might look like:
Position 1: PT-sUSDe Dec 2025
- Protocol: Pendle
- Asset: PT-sUSDe
- Principal: $10,000
- APY: 15%
Position 2: sUSDe Loop
- Protocol: Contango
- Asset: sUSDe
- Principal: $10,000
- APY: 38% (3x leverage)
Position 3: USDC Supply
- Protocol: Morpho
- Asset: USDC
- Principal: $5,000
- APY: 8%
Position 4: reUSD Vault
- Protocol: Pendle
- Asset: reUSD
- Principal: $10,000
- APY: 14%
Position 5: ETH Supply
- Protocol: Aave
- Asset: ETH
- Principal: $10,000
- APY: 2.5%
๐ Portfolio Stats:
- Total Equity: $45,000
- Weighted Average APY: ~18%
- Protocols: 4
- Assets: 5
๐ Try It Now!
๐ฌ Questions or feedback? Drop a comment below โ I'd love to hear how you're using it and what features you'd like to see next!
Happy farming! ๐พโจ
โ ๏ธ Note: This tool is for tracking and visualization purposes only. Always DYOR and verify your actual positions on each protocol's official interface.