Lend. Borrow.
Nobody sees who.
The first shielded peer-to-peer lending protocol on Midnight, built on shielded tokens and zero-knowledge proofs. Every offer and every loan sits on a public board, and no wallet address is ever attached to either side.
- No wallet address ever shown
- Your rate locked in when you borrow
- Lend on your own terms

Loans are public, but identities are private.
Every amount, term and outcome is public, and that is on purpose: a market needs a board people can read. What the protocol never records is who. There is no lender field and no borrower field anywhere, because the right to act on a position is a token you hold, not a name on a list.
One loan, two ledgers
Both names, permanently on record. A conventional record ties both people to the loan forever. Anyone with the file knows who borrowed, who lent, and how much each is worth.
Your wallet isn't your resume.
Lending on a transparent protocol means publishing your balance sheet. Anyone can read who borrowed, against what, and how close they are to the edge. AMP Finance keeps the loan public and the people private.
Like a pawnshop, not a bank.
Lenders post offers. A borrower picks one and puts up collateral. The money and the collateral change hands in one transaction, so neither side has to trust the other, and neither ever learns who the other is.
Swap it for a shielded twin, one for one. The only step that touches your public address.
Lenders set the terms. Borrowers pick one. No name or address appears on any of them.
Collateral in, money out, in one transaction. Each side gets a token that is the key to its position.
Repay by the deadline and the collateral comes back. After the grace period, the lender keeps it.
Know the cost before you commit.
Try an example offer from either side. Move the sliders to see what goes in, what comes back, and what happens if a loan runs late. Borrowers pay no protocol fee.
An example offer. Pick a side.
You get back
up to1,040sUSDC
for 1,000 sUSDC lent, if the loan runs the full 30 days.
- The amount you lent
- 1,000 sUSDC
- Interest (up to 5% for 30 days)
- + 50 sUSDC
- Protocol fee (20% of the interest)
- − 10 sUSDC
Other ways it can end
- Repaid halfway through
- you get 1,020 sUSDC
- Repaid in the grace period
- you get 1,052.5 sUSDC
- Not repaid
- you take 3,000 sNIGHT
The rules live in the contract.
For the curious: this is roughly what happens when a borrower takes an offer, trimmed down from AMP Finance's lending contract. It is written in Compact, the language Midnight contracts are written in.
export circuit borrow( offerId: Bytes<32>, principal: Uint<64>, collateral: ShieldedCoinInfo): [] { const offer = offers.lookup(disclose(offerId)); const loanId = newLoanId(); assert(!offer.paused, "offer paused"); assert(principal >= minBorrowPrincipal, "below minimum"); assert(principal <= escrowValueOf(offerId), "more than available"); assert(blockTime() < offer.expiresAt, "offer expired"); assert(collateral.color == offer.collateralColor, "wrong collateral"); const owed = ceilDiv(principal * offer.ratioCollateral, offer.ratioPrincipal); assert(collateral.value == owed, "wrong amount"); receiveShielded(collateral); const escrow = offerPrincipal.lookup(offerId); sendShielded(escrow, ownPublicKey(), principal); mintShieldedToken(loanTokenFor(loanId), 1, ownPublicKey()); loans.insert(loanId, Loan { principal: principal, collateral: collateral.value, rateBps: offer.rateBps, fixedInterest: offer.fixedInterest, expiry: blockTime() + offer.termSecs, status: ACTIVE // no lender field, no borrower field });}Questions people ask first
Short answers before you request access.
Still unsure?
AMP Finance is the first privacy-focused peer-to-peer lending protocol on Midnight. Lenders post offers on their own terms, borrowers take them by putting up collateral, and no wallet address is ever attached to either side.
On most lending protocols it is: anyone can read who borrowed, against what, and how close they are to the edge. On AMP Finance the loan is still public, so it works as a real market, but the people are not. Your position is a token in your wallet, and holding it is what proves the offer or loan is yours. Your address is never written next to it.
Every offer and loan: the amounts, rates, dates and how each one ended. Never who is behind any of them. The one public moment is shielding: the shield step records the address that did it and the amount, before you ever reach a market.
A public token names the wallet that spends it, so a loan built on public tokens would expose both sides. AMP Finance only works with shielded tokens. Shielding is one for one with no protocol fee, and you can unshield at any time whatever isn't locked in a loan.
In your wallet. Every offer and every loan comes with a token, and that token is the only key to the position. It moves only if you send it, and if you restore your wallet from its seed phrase, every position comes back with it.
The lender sets one rate for the whole term and picks how it is charged. With flexible interest the borrower can repay whenever they like and pays by the hour used, so repaying early costs less. With fixed interest the borrower pays the whole term's interest, however early they repay. Some offers also let a borrower extend the deadline, one extension at a time.
The borrower has until the deadline, then a short grace period in which they can still repay with a flat late fee. Once that ends, the lender takes the collateral and the loan closes. Nothing sells the collateral early if its price falls, so collateral makes a loan backed, not safe. Lenders choose how much to ask for.
Yes, while it is open. A lender can change its collateral, interest and extensions, withdraw whatever has not been lent, or pause the offer so nobody can borrow from it until they resume it. An offer set to re-offer takes repaid money back for the next borrower, the principal alone or with its interest, until the lender closes it. A loan already taken never changes: it keeps the terms it was borrowed on.
AMP Finance opens first as a beta on Midnight Preview, a test network where every token is free and worth nothing. Request access at the bottom of this page. Each transaction pays a small Midnight network fee. Lenders also pay a protocol fee out of their interest; borrowers pay no protocol fee.
Get in before the doors open.
The beta runs on Midnight's preview network, with free test tokens to lend and borrow against. Leave your X handle and email, and we'll send an invite when a spot opens up.