Solana — Devnet (Solend Yield)
Heron's primary chain. The Anchor program deploys on Solana devnet with real CPI into Solend's wSOL reserve.
Overview
| Parameter | Value |
|---|---|
| Network | Solana Devnet |
| Asset | wSOL (wrapped SOL) |
| Venue | Solend (reserve 5VVLD7BQp8y3bTgyF5ezm1ResyMTR3PhYsT4iHFU8Sxz) |
| Program | BSPwK2zXA4K887pbm5ovxzVQS2rWJAaQkkiEU3TRY632 |
| Yield source | Borrower utilization (~1.27% supply APY) |
| Decimals | 9 (native SOL precision) |
How It Works
- User connects Solana wallet via Reown AppKit
- Deposits wSOL → vault PDA created per-user (non-custodial)
- Keeper runs 5-min cycles, evaluates via Net-Edge gate
- On approval: Solend CPI deposit — real cTokens received
- Exchange rate ~1.06 proves real yield accrual
Vault Program (heron-vault)
The Anchor program at BSPwK2zXA4K887pbm5ovxzVQS2rWJAaQkkiEU3TRY632 provides:
Instructions
| Instruction | Description |
|---|---|
initialize_policy | Set mandate root, caps, position limits |
initialize_vault | Create vault, link to policy, set executor |
deposit | User moves wSOL into vault |
withdraw | User moves wSOL out (never blocked) |
execute | Agent allocates into Solend (Merkle-verified, cap-checked, nonce-guarded) |
deallocate | Agent redeems from Solend (same Merkle proof, skips caps) |
emergency_exit | Owner sweeps all venues back to idle in one tx |
set_paused | Kill switch (freezes agent, never blocks withdrawal) |
Timelock
queue_venue_add— propose new venue with delayqueue_caps_increase— propose raising caps with delay- Sentinel can veto queued changes (never raise them)
Solend Integration
The vault performs real Cross-Program Invocation (CPI) into Solend's lending protocol:
execute instruction
→ Merkle proof verification (venue whitelisted?)
→ Cap check (per-action, epoch, position)
→ Nonce + expiry check (replay guard)
→ Solend CPI: deposit wSOL into reserve
→ Receive cTokens (claim on deposited capital + accrued interest)Deployment
# Build and deploy the program
cd packages/solana
anchor build
anchor deploy --provider.cluster devnet
# Run keeper for Solana
cd app/backend
HERON_NETWORK=solana uv run python keeper_run.py --executeEnvironment Variables
HERON_SOLANA_RPC=https://devnet.helius-rpc.com/?api-key=YOUR_KEY
HERON_SOLANA_KEYPAIR=~/.config/solana/heron-solana-vault-owner.json