What problem does it solve? AI agents and developers often lack accurate, up-to-date knowledge of the Marginfi protocol on Solana, leading to hallucinated program addresses, outdated SDK patterns, and incorrect health or interest calculations when building lending and borrowing applications. ## Core Features & Use Cases - Lending & Borrowing Operations: Create Marginfi accounts, deposit collateral, borrow assets, repay debt, and withdraw funds using the @mrgnlabs/marginfi-client-v2 SDK. - Advanced DeFi Primitives: Execute flash loans, leveraged looping positions, and repay-with-collateral swaps in single atomic transactions. - Risk & Account Monitoring: Compute health components, free collateral, interest rates, utilization, and portfolio values with correct oracle price handling. - Use Case: Build a bot that deposits SOL as collateral, borrows USDC against it with a safety buffer, monitors maintenance health, and repays the full debt including accrued interest. ## Quick Start Ask the agent to create a Marginfi account and deposit 1 SOL as collateral using the marginfi-client-v2 SDK on Solana mainnet.