What problem does it solve? Integrating with Marginfi's decentralized lending protocol on Solana requires navigating account creation, bank discovery, health calculations, and complex operations like flash loans and looping, which is error-prone without structured guidance. ## Core Features & Use Cases - Lending & Borrowing Operations: Deposit collateral, borrow assets, repay debt, and withdraw positions using the @mrgnlabs/marginfi-client-v2 SDK. - Advanced DeFi Operations: Execute flash loans, leveraged looping positions, and repay-with-collateral swaps in single transactions. - Health & Risk Monitoring: Compute account health components, free collateral, interest rates, and utilization to avoid liquidation. - Use Case: Build a bot that deposits SOL as collateral, borrows USDC against it at 50% of capacity, and continuously monitors maintenance health to prevent liquidation. ## Quick Start Ask the AI to initialize a Marginfi client on Solana mainnet and deposit 1 SOL into a Marginfi account using the marginfi-client-v2 SDK.