Use Case: DeFi Yield & Lending
Manage your DeFi positions across multiple Solana protocols without leaving Telegram. Lend, borrow, provide liquidity, track yields — all through simple messages to your bot.
The Scenario
You have idle USDC sitting in your wallet earning nothing. Or you want to borrow against your crypto holdings without selling them. Or you've been eyeing a liquidity pool but the DeFi interfaces look too complicated.
With D0, you can interact with Kamino, Meteora, Sanctum, Raydium, Pendle, and Drift through your Telegram chat. No browser tabs, no connecting wallets to sites, no confusing pool UIs.
Get started: Deposit 500 USDC to Kamino, Find Meteora pools for SOL, or What are the Sanctum LST rates?.
Kamino: Lending & Borrowing
Kamino is the easiest entry point for DeFi. Deposit idle tokens to earn interest, or borrow against your deposits without selling.
Deposit to Earn Yield
You: "Deposit 500 USDC to Kamino"
Bot: "Deposit preview: Amount: 500 USDC Protocol: Kamino Lending Current APY: 8.2% Estimated daily earnings: ~$0.11
Shall I proceed?"
You: "Yes"
Bot: "Deposit complete! TX: 3def...uvw. Your Kamino deposit: 500 USDC earning 8.2% APY."
Your USDC is now earning interest. You can withdraw anytime.
Borrow Against Your Deposits
Once you have deposits on Kamino, you can borrow against them without selling your original position.
You: "Borrow 100 USDC from Kamino"
Bot: "Borrow preview: Amount: 100 USDC Protocol: Kamino Lending Borrow APR: 12.5% Health factor after borrow: 2.1 (Safe)
Shall I proceed?"
You: "Go ahead"
Bot: "Borrow complete! TX: 7ghi...rst. You received 100 USDC. Health factor: 2.1."
Your health factor shows how safe your position is. Keep it above 2.0 to stay well away from liquidation. If your collateral value drops or your borrowed amount grows, your health factor goes down.
Repay Your Loan
You: "Repay 50 USDC to Kamino"
Bot: "Repay preview: Amount: 50 USDC Remaining loan after repay: ~50 USDC Health factor after repay: 3.5 (Very Safe)
Shall I proceed?"
You: "Yes"
Bot: "Repayment complete! TX: 9jkl...xyz. Remaining loan: 50 USDC. Health factor improved to 3.5."
Paying down your loan improves your health factor and reduces your interest costs.
Check Your Kamino Portfolio
You: "Show my Kamino portfolio"
Bot: "Your Kamino positions:"
Deposits:
| Token | Amount | APY | Value |
|---|---|---|---|
| USDC | 500 | 8.2% | $500 |
| SOL | 5.0 | 6.5% | $711 |
Borrows:
| Token | Amount | APR | Owed |
|---|---|---|---|
| USDC | 50 | 12.5% | $50.02 |
Health Factor: 3.5 (Very Safe) Net APY: ~6.8%
You're earning 8.2% on your USDC deposit and paying 12.5% on your borrow. Your net APY factors in both sides of the position.
Meteora: Liquidity Pools
Provide liquidity to trading pools and earn fees when people swap tokens.
Find Pools
You: "Find Meteora pools for SOL"
Bot: "Top Meteora pools for SOL:"
DLMM Pools:
| Pool | TVL | 24h Fees | APR |
|---|---|---|---|
| SOL/USDC | $12.5M | $45K | 32% |
| SOL/USDT | $8.2M | $28K | 28% |
Dynamic AMM Pools:
| Pool | TVL | 24h Fees | APR |
|---|---|---|---|
| SOL/USDC | $5.8M | $12K | 18% |
DLMM pools have higher APR but require active management. Dynamic AMM pools are simpler and set-and-forget.
Add Liquidity
You: "Add liquidity to the SOL/USDC Meteora pool"
Bot: "Add liquidity preview: Pool: SOL/USDC (Dynamic AMM) Your deposit: 1 SOL + 142 USDC Pool share: ~0.02% Estimated APR: 18% Slippage: 1%
Shall I proceed?"
You: "Yes"
Bot: "Liquidity added! TX: 2mno...abc. You're now earning fees from the SOL/USDC pool."
You're now earning a share of all trading fees from people swapping between SOL and USDC.
Check Your Positions
You: "Show my Meteora positions"
Bot: "Your Meteora positions:"
| Pool | Type | Deposited | Current Value | Fees Earned |
|---|---|---|---|---|
| SOL/USDC | DAMM | $284 | $290 | $6.20 |
Total LP Value: $290
Your position grew from $284 to $290. Some of that is price movement, some is fees earned.
Remove Liquidity
You: "Remove 50% of my SOL/USDC Meteora position"
Bot: "Remove liquidity preview: Pool: SOL/USDC (Dynamic AMM) Removing: 50% of position You'll receive: ~0.5 SOL + ~71 USDC Slippage: 1%
Shall I proceed?"
You: "Yes"
Bot: "Liquidity removed! TX: 5pqr...def. You received 0.498 SOL and 70.85 USDC."
You pulled half your position out and got back both tokens plus your share of accumulated fees.
Sanctum: Liquid Staking
Check rates for Solana liquid staking tokens. When you stake SOL natively, it's locked. Liquid staking gives you a token representing your staked SOL that you can still use in DeFi.
Check LST Rates
You: "What are the Sanctum LST rates?"
Bot: "Sanctum LST Overview:"
| LST | Price (SOL) | APY |
|---|---|---|
| mSOL | 1.082 | 7.2% |
| bSOL | 1.065 | 6.8% |
| jitoSOL | 1.074 | 7.5% |
| INF | 1.058 | 6.5% |
Best yield: jitoSOL at 7.5% APY
If you're holding SOL long-term, converting it to jitoSOL lets you earn 7.5% staking rewards while keeping your tokens liquid for DeFi.
Exploring Other Protocols
Raydium Pools
You: "Search Raydium pools for SOL"
Bot: "Raydium Pools for SOL:"
| Pool | Type | TVL | APR |
|---|---|---|---|
| SOL/USDC | CLMM | $45M | 24% |
| SOL/USDT | CPMM | $12M | 18% |
Use pool IDs for detailed info.
Raydium is another major Solana DEX. Your bot can pull pool data and help you compare rates across protocols.
Pendle Yield Markets
You: "Show Pendle yield markets on Ethereum"
Bot: "Pendle Markets (Ethereum):"
| Market | Underlying | Maturity | Fixed APY | Implied APY |
|---|---|---|---|---|
| stETH Mar'26 | Lido stETH | Mar 2026 | 4.2% | 3.8% |
| sDAI Jun'26 | Maker sDAI | Jun 2026 | 5.1% | 4.9% |
Pendle lets you lock in fixed yields or speculate on future rates.
Pendle tokenizes yield, letting you trade future yield separately from the underlying asset. It's advanced DeFi but your bot can show you what's available.
Drift Protocol
You: "Show Drift perpetual markets"
Bot: "Drift Perp Markets:"
| Market | Price | Funding (1h) | OI |
|---|---|---|---|
| SOL-PERP | $142.35 | +0.0008% | $25M |
| BTC-PERP | $98,450 | +0.0012% | $45M |
| ETH-PERP | $3,850 | -0.0003% | $18M |
Drift is a perpetual DEX with its own vaults. Your bot can pull market data and vault performance.
Real-World DeFi Strategies
Strategy 1: Idle USDC Yield
You have USDC sitting in your wallet doing nothing. Put it to work.
- "Show my wallet balance" — See how much USDC is idle
- "What's the Kamino USDC deposit APY?" — Check current rates
- "Deposit 1000 USDC to Kamino" — Start earning yield
- "Show my Kamino portfolio" — Verify the deposit is working
Now your USDC is earning yield instead of sitting idle.
Strategy 2: Leveraged Yield
Deposit SOL as collateral, borrow USDC against it, and deploy the borrowed USDC to earn even more yield.
- "Deposit 10 SOL to Kamino" — Use SOL as collateral
- "Borrow 500 USDC from Kamino" — Borrow against your SOL (keep health factor above 2)
- "Add liquidity to SOL/USDC on Meteora" — Earn LP fees with borrowed USDC
- "Show my DeFi portfolio" — Monitor all positions together
You're now earning yield on your original SOL deposit, plus LP fees from the borrowed USDC. Just watch your health factor — if SOL price drops, you could get liquidated.
Strategy 3: LP Farming
Provide liquidity to high-APR pools to earn trading fees.
- "Find Meteora pools for SOL" — Compare DLMM vs Dynamic AMM pools
- "Add liquidity to the SOL/USDC DLMM pool" — Higher APR, more active management
- "Show my Meteora positions" — Track fees earned
- "Remove liquidity when done" — Exit when you want
Tips for DeFi
- Start with Kamino lending. It's the simplest way to earn yield with low risk. Deposit stablecoins, earn interest, withdraw anytime. No impermanent loss, no complicated pool mechanics.
- Monitor health factors. If you're borrowing on Kamino, check your health factor regularly. Keep it above 2.0 to stay safe from liquidation.
- Compare APYs across protocols. Rates change constantly based on supply and demand. Before you commit a large amount, check a few protocols to see where you're getting the best rate.
- DLMM vs Dynamic AMM. DLMM pools (concentrated liquidity) have higher APR because your liquidity is focused in a specific price range. But you need to watch them — if the price moves out of your range, you stop earning fees. Dynamic AMM pools are simpler and more hands-off.
- Check Sanctum LSTs. If you're holding SOL long-term, converting to a liquid staking token like jitoSOL lets you earn staking rewards while keeping your tokens liquid for DeFi.
- Use the two-step workflow. All DeFi operations show a preview first. You see exactly what you're depositing, borrowing, or providing as liquidity before anything executes. If the numbers don't look right, don't confirm.
- Track your net APY. If you're borrowing and lending at the same time, make sure your earnings exceed your borrowing costs. Earning 8% on deposits while paying 12% on borrows means you're losing 4% net unless you're doing something else with the borrowed funds that earns more than 12%.
