How a loan works
A loan has four numbers and nothing else: how many coins are locked, how much is lent, how much must be paid back (the buyback), and how long the borrower has. The term runs from the moment a lender funds the loan and can be anything from 1 to 90 days.
- 1The borrower locks coins in the desk and states the terms. Until a lender funds it, the borrower can cancel and take the coins back at any time.
- 2A lender funds the loan in USDC or HYPE. The borrower receives the money less the fee, and the lender receives a note for the loan.
- 3If the buyback is paid by the deadline, the coins return to the borrower in that same transaction and the buyback waits in the desk for whoever holds the note.
- 4If the deadline passes without payment, whoever holds the note can collect the coins. The borrower keeps the money that was lent.
There is no oracle, no margin call and no liquidation. The contract never reads a price, so a fall in the coin's price changes nothing about the loan before the deadline. Anyone may pay a loan's buyback, and the coins always go to the borrower.
An example with made-up numbers
You lock 1,000,000 PUMP and ask for 1,000 USDC, with a buyback of 1,050 USDC in 14 days. A lender funds it. You receive 995 USDC, which is 1,000 less the 0.5% fee, and the lender receives the note. Pay 1,050 USDC within 14 days and your 1,000,000 PUMP come back in that transaction. If the 14 days pass without payment, the holder of the note can collect the 1,000,000 PUMP and you keep the 995 USDC.
The deadline is exact. A repayment in the same second as the deadline is accepted, and one second later it is refused. There is no grace period.
Offers
A lender does not have to wait for a borrower's request. A lender can sign a standing offer for one coin: how much they will lend in total, against how many coins, for what buyback and for how long. A borrower accepts it in one step and the loan starts at once.
Signed, not onchain
An offer is a signed message. It is not a transaction and it is not onchain until a borrower accepts it. Only then do its terms appear onchain, in the same transaction that starts the loan.
- Published offers are sent to this site and shown in its offer book, where anyone can read their terms and the lender's address.
- Link offers are never sent to this site. The whole signed offer sits in the part of the link after the # sign, which browsers do not send to any server. A link offer can also name one wallet, and then the contract refuses everyone else.
Partial fills
A borrower can take part of an offer. Every fill keeps the offer's ratio of coins, money and buyback. When the ratio does not divide evenly, the coins required and the buyback owed are rounded up, by one smallest unit at most, in the lender's favour. An offer can set a smallest fill, and the last remainder can always be taken even if it is below that.
The lender's money is not locked
An offer does not move or hold the lender's funds. It can be filled only while the lender's wallet holds the money and has approved the desk to take it. The book on this site lists an offer only for the amount the lender can actually pay at that moment.
Withdrawing
A lender can withdraw one offer with cancelOffer, which shows only the offer's hash onchain, or every offer signed so far with cancelAllOffers. Removing the token approval also stops fills. An offer expires by itself at the time the lender chose.
Refinance
Before the deadline, a borrower can roll a loan into a new lender's offer for the same coin. It happens in one transaction:
- The new lender pays in and the fee is taken from that amount.
- The old loan's full buyback is set aside for the holder of the old note, who collects it whenever they like.
- If the new money exceeds the old buyback, the borrower receives the difference. If it falls short, the borrower pays the difference. If the two loans are in different assets, the borrower pays the old buyback in the old asset and receives the new money in the new one.
- The coins stay in escrow throughout. If the new offer needs more coins the borrower adds them, and if it needs fewer the rest are returned.
Refinancing is never paused. It cannot be done after the deadline.
Notes
Every loan mints one note, a standard transferable token (ERC-721), to the lender. The note is the claim on the loan: whoever holds it collects the buyback after a repayment, or the coins after a missed deadline. Collecting burns the note. The picture and the data of a note are built onchain from the loan itself.
Because repayments wait in the desk for the note holder, a borrower can always repay, whatever happens to the lender's wallet.
Selling a note
A lender who wants out early can transfer the note to anyone, or list it at a fixed price on the note market. The market never holds a note or any money. The note stays in the seller's wallet until the sale, the buyer pays the seller directly in the same transaction, and there is no fee. Prices are in USDC or wrapped HYPE. A buyer should check the loan behind a note before buying: its deadline, its buyback and the coins it holds are all on the Escrow page.
Fees
The only fee is 0.5% of the amount lent, taken once from that amount when a loan is funded. A refinance is a new funding, so the fee applies to the new amount. Repaying, collecting, cancelling, transferring and selling a note carry no fee from the desk, though every transaction pays network gas to the chain. The rate is fixed in the contract and no one can change it.
Fees wait in the desk, counted apart from escrow, until anyone sends them on to the fee wallet. The Escrow page shows both figures. Swept fees collect in the fee wallet, whose address is shown on the Escrow page and can be looked up on the explorer.
The $LIEN buyback
The buyback is off until $LIEN has launched and its address is set on the admin page. From then on a job run by this site's server sends the collected fees to the fee wallet once an hour and swaps them into $LIEN through the KyberSwap aggregator, which finds the coin's liquidity wherever it trades. Fees worth less than 5 dollars wait until there is more, and a swap that would move the price by more than 3% is made smaller. The job runs outside the loan contract with the fee wallet's own key, so it can only ever spend fees and can never reach escrow. The $LIEN it buys stays in the fee wallet. The Escrow page shows whether the buyback is on and lists every buyback with its transaction.
Fee-free borrowing for $LIEN holders
After $LIEN launches, its address and a minimum holding are set in the contract through the timelock. From then on, a borrower who holds at least that amount at the moment a loan is funded pays no fee on it. The contract checks the borrower's balance at that moment and at no other time.
No waiver is set in the contract today. Every borrower pays the fee.
$LIEN has not launched. Its address will be shown here once the owner sets it.
Reference prices
The site shows live prices so both sides can judge a loan. They are for guidance only. The contract never sees them and no loan depends on them.
- Reference price. The midpoint between the best bid and the best ask on the coin's Hyperliquid spot book. HYPE amounts are valued at Hyperliquid's HYPE mid price and USDC at one dollar.
- Implied loan-to-value. The amount lent divided by what the locked coins are worth at the reference price. Above 70% the site marks the cover as thin.
- Suggested safe size. 25% of the resting bids within 2% below the midpoint. It hints at how much of the coin could be sold without moving the price far. The feed returns the top 20 price levels, so the real depth can be greater and this figure is a floor.
Prices are fetched from Hyperliquid by this site's server every few seconds and can lag the market. They can be missing or wrong, and a thin book can make them jump.
Coins
The site lists coins that exist as real tokens on HyperEVM and that move between HyperEVM and the Hyperliquid spot book, so a lender who ends up with the coins has a market to sell them in.
PUMP (Pump)
Unit, backed 1:1 by PUMP on Solana
PURR (Purr)
Native to Hyperliquid
FARTCOIN (Fartcoin)
Unit, backed 1:1 by FARTCOIN on Solana
PENGU (Pudgy Penguins)
Official LayerZero token of Pudgy Penguins
PUMP and FARTCOIN are Unit tokens, each backed one for one by the original on Solana. PENGU is the official LayerZero token of Pudgy Penguins. PURR is native to Hyperliquid. Holding a bridged token means trusting its bridge as well as the coin.
The contract itself accepts any standard token as collateral. The list above is what this site shows.
Contracts
The desk is four contracts on HyperEVM (chain 999). None of them can be upgraded. Their source is published on Sourcify.
Loan note
One token per loan, minted and burned only by the desk
Note market
Fixed price sales of notes. No admin, no fee, holds nothing
How the contracts were checked
- Tests. 63 unit and fuzz tests cover requests, offers, repaying, collecting, refinancing, fees, the admin limits, the note and the note market.
- Invariants. A test drives the desk with random sequences of every action from several wallets, 128 runs of 128 calls. After each call the desk's balance of every token must equal what it owes users plus unswept fees, and a note must exist exactly while its loan has something to collect.
- Real tokens on a fork. Full loans were run against the real USDC, wrapped HYPE, PUMP, FARTCOIN, PENGU and PURR contracts on a copy of the chain, and every transaction on this site was driven through a browser against that copy.
- Mainnet rehearsal. Right after deployment 39 checks were run on the live contracts with real funds: request, fund, repay, collect, a signed offer filled in part, a private offer, a refinance, a note sale, a fee sweep, a pause, a missed deadline and a timelocked change. All 39 passed.
- Published source. All four contracts are an exact match on Sourcify, so the code that runs is the code anyone can read.
- Timelock. The only admin is a timelock with a 24 hour wait. It can change the fee wallet, the fee waiver token and the guardian, and it has no way to touch escrow.
The contracts and their tests will be published in a public repository, linked here.
Admin limits
The desk has two roles. The admin is a timelock contract, and its address is fixed in the desk for good. The guardian is a wallet the admin appoints.
What the admin can do, after a 24 hour wait
- Change the wallet that receives swept fees.
- Set the token and the minimum holding for fee-free borrowing.
- Appoint or replace the guardian.
- Pause or resume new loans.
Each change is announced onchain first and can be carried out only after the wait. Changing the wait itself is a change that has to wait.
What the guardian can do, at once
Pause or resume new loans. That is all. A pause stops three things: opening a request, funding a request and accepting an offer.
What nobody can do
- Move, freeze or redirect collateral, lent money or a repayment. No function exists for it.
- Pause repaying, collecting, refinancing, cancelling a request or withdrawing an offer. These never check the pause.
- Change the fee rate, the terms of a loan or the length of a deadline.
- Upgrade or replace the contracts.
Tokens sent to the desk by mistake, outside a loan, cannot be recovered by anyone for the same reason.
What is private
These are the exact limits. Nothing here is stronger than it reads.
- A signed offer is not onchain until a borrower accepts it. Before that, the chain shows nothing about it.
- An offer you publish is public in this site's offer book: its terms and your address can be read by anyone.
- An offer you share by link exists only in that link. The offer sits after the # sign, and browsers do not send that part of an address to servers. Anyone you give the link to can read the offer, and so can anyone they pass it to.
- Every loan is public onchain from the moment it starts: both wallets, the coins, the amounts, the deadline, and later whether it was repaid. So is every request a borrower opens. This site cannot hide any of that and does not claim to.
- Withdrawing a single offer shows its hash onchain together with your address, and nothing else about it.
No tracking
- The site has no analytics and no tracking of any kind.
- It loads no scripts, fonts or images from anyone else. Everything the page uses is served from lienmarkets.xyz.
- A strict content security policy tells your browser to let the page talk to this site only. A request from the page to any other address is blocked by the browser.
- Prices and chain data are fetched by this site's server. Hyperliquid and the chain endpoint see the server, not you.
- Connecting a wallet uses no connection relay and no login service. The page only talks to wallets installed in your browser.
- The server counts requests per address in memory for about a minute to stop abuse. The counts are never written anywhere.
Two things are outside this site's control. The company that hosts the site handles every request, as any web host does, and can see the addresses requests come from. And your own wallet talks to the chain through its own connection, chosen by you or by the wallet's maker, when it sends a transaction or shows a balance.
Backup app
Repaying and collecting must not depend on this website. A static copy of the essential screens is kept on IPFS, a network where a page is addressed by its content and can be served by anyone who holds a copy.
The backup copy is at https://bafybeid2tz7dshblkwykbz4fw7ja2fay26dozqf2fhoh2b6ealqyy5ugji.ipfs.inbrowser.link/. Its content id is bafybeid2tz7dshblkwykbz4fw7ja2fay26dozqf2fhoh2b6ealqyy5ugji, and any IPFS gateway or node can serve it under that id.
The copy can show your loans and notes and send the transactions that matter when time is short: repay a loan, collect on a note, cancel an unfunded request and withdraw all your offers. It cannot refinance or start a new loan. It has no server behind it, so it reads the chain through a public endpoint that you can change, and that endpoint sees your requests. It shows no reference prices.
By hand
Everything can also be done with any tool that calls a contract, such as a block explorer's write page or a command line wallet, using the desk address 0x6D27d50992589056D98acEf39E403Aa09fD95606. Amounts are in the token's smallest unit. Your loan and request numbers are on the Escrow page.
Repay a loan
- 1For a USDC loan, call
approve(desk, amount)on the USDC token with the buyback as the amount. For a HYPE loan you can skip this and send native HYPE instead. - 2Call
repay(loanId)on the desk. For a HYPE loan paid in native HYPE, send exactly the buyback as the value of the call.
Cancel an unfunded request
Call cancelRequest(requestId) from the wallet that opened it. The coins return at once.
Collect on a note
From the wallet holding the note, call claim(loanId, to, nativeOut). to is the address that receives the payment or the coins. Set nativeOut to true to receive a HYPE repayment as native HYPE, and false otherwise. Before the deadline of an unpaid loan the call is refused.
Withdraw offers
Call cancelAllOffers() to cancel every offer you have signed, or cancelOffer(offerHash) for one.
Read a loan
loans(loanId) returns the borrower, start, deadline, status, collateral token, asset, collateral amount, amount lent and buyback. Status 1 is active, 2 is repaid and waiting for the note holder, 3 is settled and 4 means the lender kept the coins.
Risks
- Lenders can lose value. If the coin falls far enough, the coins a lender collects after a missed deadline can be worth less than the money lent. Nothing liquidates the loan before the deadline. The lender chooses the cover when choosing the terms.
- Borrowers can lose their coins. After the deadline the holder of the note can collect all the coins, even if they are worth far more than the buyback. There is no grace period and no partial repayment.
- Offers are not guarantees. A signed offer can be withdrawn, can expire, or can fail if the lender's wallet no longer holds the money.
- Tokens can misbehave. Tokens that take a cut on transfer are refused as collateral. Tokens that change balances by themselves are not supported and can leave their own loans short. A token whose issuer can freeze or block addresses can block a payout in that token. Bridged tokens carry the risk of their bridge.
- Reference numbers are only references. Prices, loan-to-value and suggested sizes on this site can be late or wrong.
Nothing on this site is financial advice.