What is marginfi?
6 min read · updated 25 May 2026
marginfi is a decentralised lending and borrowing protocol on Solana — one of the network's core "money markets," alongside Kamino. It's the on-chain equivalent of a bank's deposit-and-loan desk, except there's no bank: smart contracts match lenders and borrowers and set rates automatically.
How an on-chain lending market works
You deposit assets (SOL, stablecoins, liquid-staking tokens and more) into a shared pool and earn interest paid by borrowers. Borrowers post collateral and take out loans against it. Interest rates float algorithmically with utilisation: when most of a pool is borrowed, rates rise to attract deposits and cool demand; when little is borrowed, rates fall. Nobody sets the rate by hand.
Crucially, loans are over-collateralised — you must deposit more value than you borrow. That's what lets a permissionless system lend safely to anonymous borrowers: there's always more collateral than debt backing each loan.
Cross-margin accounts
marginfi uses a cross-margin design: all your deposits collectively back all your borrows in one account. That's capital-efficient (idle collateral in one asset supports a borrow in another) but it also means a problem in one position draws on your whole account, so it pays to keep a healthy buffer.
What people use it for
- Earn yield on idle assets by lending them.
- Borrow without selling — access liquidity against your holdings while keeping price exposure (and avoiding a taxable sale).
- Leverage and shorting — borrow an asset to go long or short, or loop deposits and borrows to amplify a yield position.
- A base layer for other protocols, which build leveraged and automated strategies on top of marginfi's markets.
Liquidations — the key risk
If your collateral falls too far in value relative to your debt, your account becomes eligible for liquidation: liquidators repay part of your loan and seize collateral (plus a penalty) to bring you back to health. In fast crashes, liquidations can cascade. The defence is simple but easy to ignore: borrow well below your limit and watch your health factor.
Points and the MRGN token
marginfi ran one of Solana's best-known "points" campaigns, rewarding early lenders and borrowers ahead of a token; its ticker is MRGN. Points programs like this became a standard way for Solana protocols to bootstrap usage before a token launch.
Risks to keep in mind
- Liquidation in volatile markets, especially with cross-margin tying positions together.
- Oracle and smart-contract risk — pricing of collateral relies on oracle feeds, and any contract can have bugs.
- Bad-debt risk if a liquidation can't be completed fast enough in extreme conditions.
For the latest marginfi news, see the marginfi project page, or read What is Solana? for the bigger picture.
Learning Solana? We write it up daily.
Solana news in plain English — no jargon walls, no shilling. Free, unsubscribe anytime.
More explainers
- What is Kamino?Kamino is a DeFi suite on Solana that combines lending and borrowing with automated concentrated-liquidity vaults — DeFi without the manual position management. Here is what it bundles and how the pieces fit.
- What is Solana? The complete guideA comprehensive guide to Solana: the technology, the apps that run on it, the economics, the criticisms, and what to watch next. Updated for 2026.
- What is JitoSOL?JitoSOL is a liquid staking token on Solana that earns staking rewards plus MEV from the Jito client. Here is how it works and why it matters.
- What is liquid staking?Liquid staking lets you earn staking rewards without locking up your tokens. Here is how it works on Solana, who the major players are, and what to watch out for.
- JitoSOL vs mSOL: which liquid staking token should you pick?JitoSOL and mSOL are the two biggest liquid staking tokens on Solana. Here is how they compare on yield, safety, DeFi support, and decentralization.
- What is Tensor?Tensor is the NFT marketplace and aggregator built for pro traders on Solana — fast execution, advanced order types, and the TNSR token. Here is what makes it different and who it is for.