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.
More explainers
- What is Helius?Helius is the developer-infrastructure company powering much of Solana — RPC nodes, enhanced APIs, webhooks, and tooling that apps are built on. Here is what that infrastructure does and why it matters.
- What is Phantom?Phantom is the most popular Solana wallet — a browser extension and mobile app for holding tokens and NFTs, swapping, and staking, now multichain. Here is what it does and how to use it safely.
- What is Solflare?Solflare is one of the longest-running Solana wallets — a staking-focused, self-custody wallet available as an extension, mobile app, and hardware-friendly tool. Here is what sets it apart from Phantom.
- What is Magic Eden?Magic Eden is the leading NFT marketplace that grew up on Solana and expanded across chains — buy, sell, and mint digital collectibles, plus the ME token. Here is its story and how it works.
- What is Pyth?Pyth is an oracle network that brings low-latency, first-party market data — crypto, equities, FX, commodities — on-chain for Solana and dozens of other chains. Here is what an oracle is and why Pyth matters.
- What is Wormhole?Wormhole is a cross-chain interoperability protocol connecting Solana to dozens of blockchains — moving tokens and data between them. Here is how cross-chain messaging works and why bridges carry real risk.
- What is Squads?Squads is smart-account and multisig infrastructure for Solana — how teams, DAOs, and protocols secure their treasuries and program-upgrade keys. Here is why it underpins much of the ecosystem.
- What is Helium?Helium is a community-built wireless network — a flagship DePIN project — that migrated to Solana. People deploy hotspots to provide IoT and mobile coverage and earn tokens. Here is how it works.
- What is Render?Render is a decentralised GPU network — a flagship DePIN project on Solana — connecting idle graphics power to people who need rendering and AI compute. Here is how it works and why it moved to Solana.
- 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 Backpack?Backpack is a Solana-born wallet and a centralised crypto exchange, built by the team behind the Anchor framework and the Mad Lads NFT collection. Here is what the two products are and how they differ.
- 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.
- What is Pump.fun?Pump.fun is the memecoin launchpad that lets anyone mint a token on Solana in seconds. Here is how the bonding curve works, what "graduation" means, and how to think about the risks.
- What is Raydium?Raydium is one of the oldest and largest DEXes on Solana — an automated market maker and liquidity hub where much of the network's on-chain trading and memecoin liquidity lives. Here is how it works, where it came from, and what to watch.
- What is Orca?Orca is a Solana DEX known for clean UX and concentrated-liquidity "Whirlpools." Here is how it works, how concentrated liquidity differs from a normal pool, and what LPs should know.
- What is Drift?Drift is the leading decentralised derivatives exchange on Solana — perpetual futures, spot, borrow-lend, prediction markets, and vaults, all on-chain with cross-margin. Here is how it works and what the risks are.
- What is Marinade?Marinade is the liquid-staking pioneer on Solana — stake SOL, receive mSOL, and keep your capital usable across DeFi while it earns. Here is how liquid staking works and how Marinade approaches decentralisation.
- How to think about Solana price (a framework, not a prediction)How professionals actually analyse the SOL price — fundamental, technical, on-chain, macro — plus the common mistakes and what to ignore. No predictions, just frameworks.
- 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 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.
- What is a Solana airdrop?Airdrops are how Solana protocols distribute their tokens to users who interacted with them early. Here is how they work, recent examples, and how to spot a scam one.
- 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 staking on Solana?Staking SOL means delegating it to a validator and earning ~7% APY in return. Here is how it works, your options, and the trade-offs.
- What is a compressed NFT?Compressed NFTs ("cNFTs") are Solana NFTs that use Merkle trees to store metadata cheaply. Here is why they exist, what tradeoffs they make, and where you see them.
- How to bridge to SolanaA practical guide to moving funds onto Solana from Ethereum, BSC, or other chains — which bridge to use, fees to expect, and the most common gotchas.
- What are the best Solana wallets?A short, opinionated comparison of the top Solana wallets — Phantom, Solflare, Backpack, and Ledger — and which to use for what.
- What is a Solana validator?Solana validators run the network: they propose blocks, vote on transactions, and earn rewards. Here is what they do, what it costs, and how to pick one.
- What is Jupiter on Solana?Jupiter is the dominant DEX aggregator on Solana — it routes your trades across every liquidity venue to get the best price. Here is what it does and why it became the default.