How Solvent works
Solvent lends SOL against memecoins from one shared pool. Lenders put SOL in and earn every loan fee. Borrowers lock a bag, get 25% of its value in SOL, and get the bag back when they repay.
Overview
Everything runs in one Solana program written in Lean 4 and compiled with toly’s lean-svm, which turns Lean straight into Solana bytecode (sBPF v3). The pool’s accounting is written as pure state transitions, and each rule on this page that says proven is a theorem the Lean kernel checks.
There is no oracle and no liquidation halfway through a loan. A coin’s price is read once, when the loan opens, from its pumpswap pool. If the loan isn’t repaid on time, the bag is sold for SOL in a falling-price auction and the SOL goes back to the pool.
Borrowing
- Pick a coin and an amount. The site shows what the bag is worth, the SOL you get (25% of that value), the 3% fee, and the due time.
- Sign one transaction. Your tokens move into an escrow the program controls, and the SOL moves from the pool to your wallet in the same transaction.
- Repay any time before the deadline. Pay back the SOL plus the 3% fee and the bag returns to your wallet at once. There is no fee for repaying early, and anyone can repay a loan on the borrower’s behalf; the bag always goes back to the borrower.
Terms
| Term | Due | Fee |
|---|---|---|
| 24 hours | 24 h after the loan opens | 3% of the loan |
| 72 hours | 72 h after the loan opens | 3% of the loan |
| 7 days | 168 h after the loan opens | 3% of the loan |
Due times on the site are shown in Miami time (America/New_York). On chain they are a Unix timestamp read from the Solana clock.
How much you get
The loan is at most 25% of the bag’s value (the loan-to-value, or LTV). The value is the lowest of three reads, explained under How the price is read, minus pump’s sell fee. Example from live prices when this page was built: 3,300 NEET is worth about 0.889 SOL, so it borrows 0.222 SOL and repays 0.229 SOL with the 3% fee. The fee is a pool config value, the same for every term at launch.
Lending
- Deposit SOL. You get pool shares at the current share price. The share price is the pool’s assets (free SOL plus SOL out on live loans) divided by all shares.
- Earn. Every loan fee is added to the pool, so the share price goes up for everyone. There are no token rewards; fees are the only yield.
- Withdraw. Burn shares for SOL at the current share price, paid from free SOL only. If the pool is fully lent out, withdrawals wait for repayments or auctions.
The auction
If a loan isn’t repaid within its term plus a 15 minute grace period, anyone can call start_auction.
- The start price is the bag’s value at that moment (the lower of spot and the reference price, read under the same guards as a new loan), so the first buyer gets no free discount.
- The price falls in a straight line to zero over 12 hours. It only ever falls (proven).
- The first buyer pays the current price in SOL into the pool and receives the whole bag. Buyers bring their own swap; the pool never sells on a DEX itself.
- A bag no one wants even near zero stays in escrow and is written off.
No one is liquidated halfway through a loan, so there is no price feed to attack during it. The price matters only at open and at auction.
Which coins qualify
Lenders don’t pick coins one by one, so the pool uses fixed rules:
- A graduated pump.fun coin with its canonical pumpswap pool, quoted in SOL.
- No freeze authority, no live mint authority, and no token-2022 extensions beyond metadata.
- A pool at least 50 SOL deep (a config value).
- At least 20 price samples, each 150+ slots apart (about 20 minutes of history), before its first loan. A gap of more than 300 slots restarts the history.
The 12 coins shown on the home page pass the pool-depth rule today; the build checks them live against dexscreener.
How the price is read
These guards come from the security reviews of an earlier peer-to-peer bag lender and its double-sandwich and split-bag attacks.
- Three reads, take the lowest: a snapshot you take a few slots before borrowing, the pool’s spot price at the moment of the loan, and a reference price a keeper samples every 150 slots.
- The reference price drops at once to a lower sample, but rises at most 2% per 150 slots, so a pump has to be held for a long time to count.
- Marginal value: a bag is valued as what it would add to the bags of that coin already in escrow,
sell(escrowed + bag) − sell(escrowed), so splitting one bag into many loans doesn’t help. - No swaps in the loan transaction: the program reads the instructions sysvar and allows only itself, the compute budget, memo and the wallet guard at the top level.
- Custom pump pairs are read for their quote mint and refused unless the quote is SOL.
None of this is proven to make prices fair. It makes pushing them expensive, not impossible.
Caps
Percentage caps with small absolute floors, so a small pool can still lend:
| Pool size | Per loan: max(5%, 0.25 SOL) | Per coin: max(15%, 0.5 SOL) | Lendable (80%) |
|---|---|---|---|
| 3 SOL | 0.25 | 0.5 | 2.4 |
| 5 SOL | 0.25 | 0.75 | 4.0 |
| 20 SOL | 1.0 | 3.0 | 16 |
| 100 SOL | 5.0 | 15 | 80 |
Also: all bags of one coin in escrow stay under 5% of that coin’s pool tokens. The floors make a small pool riskier per coin: one bad 0.5 SOL coin is 10 to 17% of a 3 to 5 SOL pool.
Fees and money flow
- Loan fees go 100% to the pool. The protocol cut is 0%.
- Auction proceeds go to the pool.
- The Solvent coin launches on a Raydium LaunchLab platform with a 3% platform fee to the team’s fee wallet and a 0% creator fee. That fee comes from trading the coin, never from the pool or from loans.
- If the team ever adds SOL to the pool from those fees, it is a normal deposit and is posted here with its transaction.
The Lean proofs
Each theorem is about the pure accounting each instruction runs. SOL moves directly on a vault account the program owns, so no proof relies on what happens inside a CPI.
- The books add up: after every instruction, free SOL + SOL out on live loans = total pool assets, and the vault’s lamport change equals what the instruction said it moved.
- No payout beyond free SOL: withdraw, open_loan and write_off never move more than the pool’s free SOL.
- No dilution: deposit and withdraw never lower the share price for lenders who stay; rounding favours the pool; overdue loans count at zero from the deadline.
- No loan above its limit: loan ≤ LTV × min(snapshot, spot, reference), given the prices the program read.
- Caps hold: per-coin, per-loan and utilisation caps are never exceeded after open_loan.
- The auction price only falls, from its start to zero.
- Loan states only move forward: open → repaid, or open → overdue → sold or written off.
Not proven
- That the prices read are fair.
- That a coin won’t go to zero during a loan (bad debt is real).
- The token transfers themselves (CPIs to the token program).
- The lean-svm compiler beyond its own published theorems.
- The keeper bot.
Money values are 64-bit integers on chain. Every money theorem carries a bound that keeps values under 264, so the proof about whole numbers holds for the code that runs.
Addresses
Each one links to Solscan when it exists.
| What | Address |
|---|---|
| Program | Not deployed yet |
| Pool config | Not deployed yet |
| Pool vault | Not deployed yet |
| Upgrade authority (single admin key) | Not deployed yet |
| Keeper | Not deployed yet |
| Solvent coin | Not launched yet |
Risks
- Unaudited. Neither Solvent nor lean-svm has been audited. lean-svm is days old, and its own readme says not to use it with real funds. The pool starts small for this reason.
- Single admin key, upgradeable. One key can pause the pool, change config values and upgrade the program. That key is listed above.
- Thin prices. Memecoin pools can be pushed. The guards make it costly, not impossible.
- Bad debt. A coin can go to zero during a loan. Lenders share that loss.
- Liquidity. When most of the pool is lent out, lenders wait to withdraw.
FAQ
Can I lose my bag?
Only if you don’t repay within the term plus 15 minutes. Price moves during the loan don’t matter.
Can I repay part of a loan?
Not at launch. A loan is repaid in full: the SOL plus the 3% fee.
Who picks the coins?
No one. The rules under Which coins qualify do.
Can I check the math myself?
Yes. The proof files are posted here at launch with the lean-svm commit and the build command, and every pool number on the site is read from on-chain accounts you can look up on Solscan.