
A decentralized liquidity aggregation and lending protocol on Solana enabling multi-asset borrowing and lending with robust risk management.
Marginfi v2 is a decentralized liquidity aggregation protocol built on the Solana blockchain. It enables users to access multiple lending markets through a unified platform, supporting assets such as SOL, USDC, USDT, wBTC, ETH, and BONK. The protocol pools liquidity from various sources to offer competitive interest rates for lenders and lower borrowing costs for borrowers. Marginfi's architecture centers around marginfi groups, which manage lending pools composed of multiple banks, each with its own mint and oracle feeds. This design allows users to borrow and lend across up to 16 assets simultaneously within a single marginfi account, providing flexibility and efficient liquidity management.
The protocol incorporates a deterministic and transparent risk management system that operates at the marginfi group level. Each bank defines its own risk parameters, including loan-to-value ratios and asset isolation to mitigate contagion risk. Real-time risk monitoring adjusts these parameters dynamically based on market conditions. If a user's account health falls below the required threshold, liquidation mechanisms protect the overall pool integrity. Marginfi plans to expand functionality with cross-composing features to enable asset trading within the platform, further enhancing liquidity and investment opportunities.
Developers can integrate with Marginfi by compiling the protocol's Rust-based programs targeting Solana's Sealevel Virtual Machine (SVM). The project requires an x86_64 architecture for compatibility. Comprehensive testing suites and verifiable builds are provided, including integration tests and Ellipsis Labs verifiable build support. Marginfi's modular design and use of custom oracles (currently Pyth, with Switchboard support planned) make it a flexible infrastructure component for DeFi applications on Solana.
DeFi users and developers face fragmented liquidity across multiple lending markets on Solana, leading to inefficiencies and higher borrowing costs. Managing risk and exposure across diverse assets is complex without a unified platform. Additionally, real-time risk assessment and transparent liquidation mechanisms are often lacking or opaque.
Core components that organize liquidity and risk management, enabling efficient pooling and distribution of assets.
User accounts that support multi-asset borrowing and lending with continuous health factor updates.
Automated system that evaluates account health using asset prices, volatility, and liquidity metrics to trigger liquidations if necessary.
DeFi developers can build applications that allow users to efficiently borrow and lend multiple assets through a single Marginfi account.
Financial institutions can contribute liquidity to lending pools with transparent risk parameters and real-time monitoring to optimize returns.
Marginfi plans to enable cross-composing features allowing users to trade between assets within the platform, enhancing liquidity and investment strategies.
Discover trusted tools and services in the QuickNode Marketplace. Everything you need to launch faster and scale smarter.
Explore web3 competitors and apps like Margin Fi.

0x provides battle-tested APIs to embed fast, gasless, and deeply liquid crypto trading into decentralized applications.
Crypto.com is a comprehensive platform offering cryptocurrency trading, payments, wallets, and DeFi services to over 150 million users worldwide.

Firebird Finance is a decentralized finance (DeFi) platform offering various financial products and services.


Balancer is a decentralized automated market maker (AMM) protocol enabling customizable liquidity pools and token swaps on Ethereum.

EarnPark is a decentralized finance (DeFi) platform focused on automated market making and digital wealth building strategies.

Osmosis is the leading decentralized exchange and DeFi hub built as a sovereign Layer 1 appchain in the Cosmos ecosystem, enabling cross-chain asset swaps and liquidity provision.

MakerDAO enables the generation of Dai, the world’s first unbiased currency and leading decentralized stablecoin.

TrueUSD is a USD-backed stablecoin offering transparent, multi-chain digital currency with daily third-party attestations of reserves.

Ethena is a synthetic dollar protocol on Ethereum offering a crypto-native, censorship-resistant stablecoin and a dollar-denominated savings instrument.
| Open Source | |
|---|---|
| Price (Monthly) | Free | 
| Price (Annual) | Free | 
| Messaging | N/A | 
| Support | Community support via GitHub | 
| Analytics | 
Marginfi v2 provides comprehensive developer resources including detailed guides, integration tests, and verifiable builds to facilitate secure and efficient development on Solana.
| Composability | |||
| Cross-Chain | |||
| Customizability | |||
| Developer Support | |||
| Ease of Integration | |||
| Performance |