DeFi
Access multiple DeFi protocols on Solana directly through your D0 Bot. Lend, borrow, provide liquidity, and track yields — all through simple messages.
Supported Protocols
| Protocol | What It Does | Available Operations |
|---|---|---|
| Kamino | Lending & borrowing | Deposit, withdraw, borrow, repay, portfolio view |
| Meteora | Liquidity pools (DLMM + Dynamic AMM) | Add/remove liquidity, view pools, check positions |
| Sanctum | Liquid staking (LST) | Check LST prices and APY |
| Raydium | AMM pools | Search pools, view info and market data |
| Pendle | Yield tokenization (Ethereum) | Browse markets, check positions |
| Drift | Perpetual DEX & vaults | View markets, funding rates, vault info |
Get started: Deposit 100 USDC to Kamino, Find Meteora pools for SOL, or Show my Kamino portfolio.
Kamino: Lending & Borrowing
The simplest way to put your idle tokens to work. Deposit USDC, SOL, or other supported tokens into Kamino's lending pools and start earning interest immediately. If you need liquidity but don't want to sell, you can borrow against your deposits instead.
| You Say | What Happens |
|---|---|
| "Deposit 100 USDC to Kamino" | Deposit tokens to earn lending yield |
| "Withdraw 50 USDC from Kamino" | Withdraw your deposited tokens |
| "Borrow 50 USDC from Kamino" | Borrow against your deposits |
| "Repay 50 USDC to Kamino" | Pay back a loan |
| "Show my Kamino portfolio" | View deposits, borrows, and health factor |
You: "Deposit 500 USDC to Kamino"
Bot: "Preview: Deposit 500 USDC to Kamino lending. Current APY: 8.2%. Shall I proceed?"
You: "Yes"
Bot: "Done! 500 USDC deposited. Earning 8.2% APY."
Your deposit starts earning interest right away. You can withdraw anytime.
If you're borrowing, watch your health factor. This number tells you how safe your position is — keep it above 2.0 to stay well away from liquidation. If your collateral drops or your borrowed assets rise in value, your health factor goes down. When it hits 1.0, you get liquidated.
Meteora: Liquidity Pools
Provide liquidity to trading pools and earn a share of the trading fees. When traders swap on Meteora, they pay a small fee that gets split among everyone who provided liquidity.
| You Say | What Happens |
|---|---|
| "Find Meteora pools for SOL" | Search for available pools |
| "Add liquidity to SOL/USDC pool" | Deposit tokens into a pool |
| "Show my Meteora positions" | View your LP positions and earned fees |
| "Remove 50% of my LP position" | Withdraw liquidity from a pool |
Meteora has two types of pools:
- Dynamic AMM — Traditional liquidity pools. You deposit equal value of both tokens and earn fees on all trades. Simpler to manage, lower APR.
- DLMM (concentrated liquidity) — You pick a specific price range where your liquidity sits. Higher potential APR because your liquidity is more focused, but you need to watch it. If the price moves out of your range, you stop earning fees until you rebalance.
Sanctum: Liquid Staking
Check current rates for Solana liquid staking tokens. When you stake SOL natively, it's locked. Liquid staking gives you a token (jitoSOL, mSOL, bSOL) that represents your staked SOL but can still be used in DeFi.
You: "What are the best LST rates?"
Bot: "Current LST rates:
- jitoSOL: 7.5% APY
- mSOL: 7.2% APY
- bSOL: 6.8% APY"
Use these LSTs as collateral on Kamino, provide them as liquidity on Meteora, or just hold them and earn staking rewards while keeping your tokens liquid.
Two-Step Workflow
Every DeFi operation follows the same preview-then-confirm pattern:
- Preview — Your bot shows you the deposit / borrow / liquidity numbers (amounts, current APY, fees, health factor) before anything executes.
- Confirm — You review the preview and approve. Only then does your bot submit the transaction.
This prevents accidental deposits, borrows, or withdrawals. You always see the details before anything executes.
Tips for Using DeFi
- Start with Kamino. Lending is the simplest DeFi activity and carries the least risk. Deposit idle stablecoins, earn yield, withdraw anytime. No impermanent loss, no price range management.
- Compare APYs across protocols. Rates change constantly based on supply and demand. Before committing a large amount, check a few protocols.
- Watch your health factor when borrowing. Market moves can push you toward liquidation faster than you expect. Keep a buffer above 2.0.
- Understand impermanent loss. When you provide liquidity, the value of your position can change based on token price movements. If one token pumps hard, you would have made more money just holding it. Not a guaranteed loss, but a risk to be aware of.
- DLMM needs active management. If you use concentrated liquidity pools, check positions regularly. If the price moves out of your range, you stop earning fees and need to rebalance.
Want Real Walkthroughs?
For three real-world strategies — idle USDC yield, leveraged yield, and LP farming — see Use Case: DeFi Yield & Lending.
