Core Concepts
Venue
A venue represents a DeFi protocol that offers yield opportunities. Examples include Kamino, Drift, and other lending/yield protocols. Each venue contains one or more strategies for different tokens. API Field:venueId, venueName
Strategy
A strategy is a specific yield opportunity within a venue. Each strategy:- Supports a specific token (e.g., USDC)
- Has a current APY
- May have minimum/maximum deposit limits
strategyId for supply/unwind operations.
API Field: strategyId, strategyName
Allocation
An allocation represents funds deployed to a yield strategy. It tracks:- Principal: Original amount deposited
- Current Value: Principal + accrued yield
- Yield Earned: Total yield accumulated
allocation, allocations
Operation
An operation is a business workflow representing intent:- Supply: Deploy funds to a yield strategy
- Unwind: Withdraw funds from a yield strategy
pending- Operation createdawaiting_signature- Unsigned transaction ready for signingsubmitted- Transaction broadcast, awaiting confirmationconfirmed- Successfully confirmed on-chainfailed- Transaction failed
operationId, operationType
Transaction
A blockchain transaction within an operation. Goes through these states:- unsigned: Transaction built, waiting for user signature
- pending: Signed and broadcast, waiting for confirmation
- confirmed: Successfully confirmed on-chain
- failed: Transaction failed
transactionId, txHash, status
Wallet Concepts
Organization (Org)
Your company or entity within RebelFi. All wallets, operations, and allocations belong to an organization. API Field:organizationId
Operational Wallet (OpWallet)
A wallet that is actively monitored for yield optimization. Configuration:- Buffer Amount: Minimum liquidity to maintain
- Enable Yield: Whether to optimize for yield
Buffer Amount
Minimum liquidity to keep available (not deployed to yield) in an operational wallet. Purpose:- Ensure funds available for immediate withdrawals
- Maintain operational liquidity
- Funds above buffer → eligible for yield deployment
- Funds at or below buffer → kept liquid
Financial Concepts
Principal
The original amount of funds deployed, excluding yield earned. Calculation:Principal = Total Balance - Cumulative Yield
Yield
Cumulative earnings from yield protocols. Tracking:- Lifetime Yield: Total earned since inception
- Daily Yield: Last 24 hours
- Current Value: Principal + Yield
APY (Annual Percentage Yield)
The annualized rate of return, expressed as a decimal. Format: Decimal (e.g.,0.085 for 8.5% APY)
Display: (apy * 100).toFixed(2) + '%' → “8.50%“
Reservation
A temporary financial lock on available funds during an operation. Lifecycle:- Created: When operation is planned
- Active: Locks funds (reduces available balance)
- Consumed: When operation completes successfully
- Released: When operation fails or is rejected
Custody Concepts
Agent
A service that polls RebelFi for unsigned transactions, signs them via your custody solution, and reports execution. Responsibilities:- Poll for pending transactions
- Sign via custody provider
- Submit to blockchain
- Report status back to RebelFi
Custody Adapter
The integration layer between RebelFi and your specific custody provider (Fireblocks, BitGo, Tatum, etc.). Built by RebelFi as part of your onboarding.Lease
A time-bound claim on a transaction attempt. Purpose: Prevents duplicate execution by multiple agents Duration: Typically 30-60 secondsData Types
Amount (Base Units)
Monetary values are expressed in base units (smallest divisible unit of the token). Examples:- USDC has 6 decimals:
"1000000"= 1 USDC "1000000000"= 1,000 USDC
Blockchain
Supported blockchain networks:solana- Solana mainnetpolygon- Polygon (coming soon)ethereum- Ethereum (planned)
Timestamp
ISO 8601 format:"2024-01-15T10:30:00Z"
Common Acronyms
| Acronym | Full Term | Description |
|---|---|---|
| APY | Annual Percentage Yield | Annualized rate of return |
| TVL | Total Value Locked | Total value in protocol |
| SDK | Software Development Kit | Client library for integration |
| API | Application Programming Interface | HTTP endpoints |
| DeFi | Decentralized Finance | Blockchain-based financial protocols |
Visual Example: Complete Flow
Related Documentation
- How It Works - Architecture overview
- API Reference - Complete API documentation
- SDK Reference - TypeScript types