Why do Kamino, MarginFi, and Solend organize lending markets so differently — and why does that matter for integrators? Understanding their architectural tradeoffs is essential if you build wallets, bots, or on-chain programs that interact with Solana lending protocols.
What you'll learn: This lesson drills into each protocol's market engine and reserve accounting model, comparing pooled reserves with global indexes versus per-user ledgering. You will see concrete examples of reserve accounts, collateral vaults, and borrower obligation patterns, and how interest accrual and reserve accounting change transaction composition. The lesson maps integration surfaces: SDK endpoints, instruction formats, CPI entry points, program-derived accounts (PDAs), and common transaction structures you will construct. You will also learn how collateral management and liquidation flows are implemented, and which governance and upgrade mechanisms affect integration stability and security primitives that protect critical instructions.
Who this is for: Advanced Solana developers, integrators, security engineers, and protocol designers who already know reserve accounts, oracles, and CPIs and want practical patterns for programmatic integration.
Key topics covered:
- Comparative market engines: pooled reserves with global indexes vs per-user ledgering
- Collateral vaults, borrower obligation accounts, and liquidation flow mechanics
- CPI patterns, PDAs, and typical transaction structures for integrations
- SDK endpoints and off-chain bot integration touchpoints
- Governance, upgrade paths, and access-control/security primitives
Learn how to translate abstract lending primitives into concrete integration points and build more robust, upgrade-resistant integrations:
https://www.forge.college/