Skip to content

Latest commit

 

History

History
255 lines (192 loc) · 6.85 KB

File metadata and controls

255 lines (192 loc) · 6.85 KB

Hobba - Devnet Deployment Summary

✅ Deployment Successful!

Date: October 30, 2025 Status: LIVE on Solana Devnet


Deployment Details

Program Information

  • Program Name: Hobba
  • Program ID: 3p7j8mL7YcXw12voSKMfqxdPFgW5DMpCykyMQz7B6H9Z
  • IDL Account: 4H844nzNBnBsmHQxukULNhb4qWj42CC41TgCR3t3KNeH
  • Program Data: GYKFwgxNWv47GncapA54ToeqEqSAHsbWMccPbrJfitJ2
  • Upgrade Authority: 5dM54xjTdJYnaTUZaMNgP39QupisJzEh4d5iQDWXMGT9
  • Deployment Slot: 418,166,451
  • Program Size: 323,024 bytes (315.5 KB)
  • Rent Balance: 2.24945112 SOL

Transaction

  • Signature: 4KQach2EBZNw7JfAeRD5nRM84scV6N6eSTEvvPYXCyAPeaPBqpV8kAKgsUVDpaKtwcL5uUTmPgeoB2A2MXkw2g3p

Cost

  • Deployment Cost: ~2.28 SOL
  • Balance After: 3.04 SOL

Explorer Links

Solana Explorer

SolanaFM (Alternative)


What is Hobba?

Hobba is a Solana program that enables users to borrow against cbBTC collateral via the Kamino lending protocol, with advanced delegation capabilities.

Key Features

8 Instructions

  1. initialize_position - Create user lending positions
  2. deposit_and_borrow - Deposit cbBTC collateral and borrow
  3. get_loan_health - View position health metrics
  4. repay - Repay borrowed tokens
  5. create_delegation - Grant borrowing rights to special accounts
  6. update_delegation - Modify delegation settings
  7. delegated_borrow - Allow delegate to borrow on behalf of user
  8. delegated_repay - Allow delegate to repay on behalf of user

2 State Accounts

  • UserPosition - Tracks lending positions (129 bytes)

    • Owner, collateral, borrowed amount, timestamps
    • Health factor calculations built-in
  • DelegationAuth - Manages delegation permissions (98 bytes)

    • Delegate address, max borrow limit, active status
    • Tracking of delegate borrowing activity

3 Utility Modules

  • Oracle Integration - Price feed handling (mock mode for safety)
  • Token Validation - Production-ready SPL token validation
  • Kamino CPI - Cross-program invocation helpers (placeholder mode)

11 Error Codes

Comprehensive error handling for all edge cases


Current Mode: Safe Development ⚠️

Mock Oracles

  • Returns $60,000 fixed price for testing
  • Clearly logged in program output
  • Safe for testing core logic without real price volatility

Placeholder Kamino CPI

  • Logs messages instead of actual cross-program calls
  • No interaction with real Kamino protocol
  • Safe for testing program structure

Why This is Good

This allows you to test:

  • ✅ Account creation and management
  • ✅ State transitions
  • ✅ PDA derivation and constraints
  • ✅ Access control and authorization
  • ✅ Delegation system
  • ✅ Error handling
  • ✅ Health calculations (with consistent prices)

Without risk of:

  • ❌ Real money loss
  • ❌ Unexpected Kamino interactions
  • ❌ Oracle price manipulation issues

Testing on Devnet

Monitor Program Activity

# Stream logs in real-time
solana logs 3p7j8mL7YcXw12voSKMfqxdPFgW5DMpCykyMQz7B6H9Z --url devnet

View Program Details

# Check program status
solana program show 3p7j8mL7YcXw12voSKMfqxdPFgW5DMpCykyMQz7B6H9Z --url devnet

Run Tests

# Run Anchor tests on devnet
anchor test --provider.cluster devnet --skip-local-validator

Interact with Program

import * as anchor from "@coral-xyz/anchor";
import { PublicKey } from "@solana/web3.js";

const connection = new anchor.web3.Connection(
  "https://api.devnet.solana.com",
  "confirmed"
);

const programId = new PublicKey("3p7j8mL7YcXw12voSKMfqxdPFgW5DMpCykyMQz7B6H9Z");

// Load program IDL and interact...

What Can Be Tested

✅ Fully Functional

  • Create user positions
  • Initialize delegations
  • Update delegation parameters
  • Activate/deactivate delegations
  • Test state management
  • Verify PDA constraints
  • Check access controls
  • Test all error conditions
  • Health factor calculations (with mock prices)

⚠️ Limitations

  • Mock oracle prices ($60,000 fixed)
  • Kamino CPI calls are placeholders
  • No real borrowing/lending occurs
  • No real token transfers to Kamino

Next Steps

For Testing (Now)

  1. ✅ Program is deployed and ready
  2. Use your devnet wallet to create positions
  3. Test delegation system
  4. Verify state management
  5. Check program logs on Explorer

For Production (Later)

See PRODUCTION_INTEGRATION.md:

  1. Add Pyth SDK for real oracle integration
  2. Add Kamino SDK for actual CPI calls
  3. Security audit
  4. Extensive devnet testing with real oracles
  5. Mainnet deployment

Verification

All verification checks ✅ PASSED:

  • Program shows as "Deployed" on Explorer
  • Solana CLI returns valid program info
  • IDL account exists and contains interface
  • Upgrade authority matches deployer wallet
  • Program size matches build output
  • Rent-exempt balance funded

Quick Reference

Item Value
Program ID 3p7j8mL7YcXw12voSKMfqxdPFgW5DMpCykyMQz7B6H9Z
Network Solana Devnet
Keypair target/deploy/hobba-keypair.json
Size 315.5 KB
Instructions 8
State Accounts 2
Oracle Mode Mock ($60k)
Kamino CPI Placeholder

Support & Documentation


Important Notes

⚠️ This is a devnet deployment with mock oracles and placeholder Kamino integration

Safe For:

  • ✅ Testing core program logic
  • ✅ Testing account structures
  • ✅ Testing state management
  • ✅ Testing delegation system
  • ✅ Demonstrating functionality

NOT Suitable For:

  • ❌ Real borrowing/lending operations
  • ❌ Production oracle price feeds
  • ❌ Actual Kamino protocol integration
  • ❌ Mainnet deployment without production integration

Changelog

v0.1.0 - October 30, 2025

  • Initial devnet deployment
  • Renamed from kamino_borrow to hobba
  • New program ID generated
  • Full feature set deployed
  • Mock oracles enabled for safe testing
  • Placeholder Kamino CPI for development

Deployed by: Upgrade Authority Wallet Network: Solana Devnet Status: ✅ LIVE and Verified

🎉 Hobba is ready for testing on devnet!