What problem does it solve? Building on Marginfi requires precise knowledge of its SDK APIs, account model, health calculations, and program addresses, where mistakes like wrong bank lookups or unsafe borrows can cause failed transactions or liquidations. ## Core Features & Use Cases - Lending & Borrowing Operations: Create Marginfi accounts, deposit collateral, borrow, repay, and withdraw using the @mrgnlabs/marginfi-client-v2 SDK with UI-denominated amounts. - Advanced DeFi Primitives: Execute flash loans, leveraged looping positions, and repay-with-collateral flows composed with swap instructions. - Risk & Health Monitoring: Compute health components, free collateral, interest rates, and utilization to manage positions safely. - Use Case: Build a bot that deposits SOL as collateral, borrows 50% of available USDC capacity, monitors maintenance health, and repays with accrued interest using repayAll. ## Quick Start Ask the agent to set up a Marginfi client on Solana mainnet and deposit 1 SOL into the SOL bank using the marginfi-client-v2 SDK.