How it works

A Pearcurve loan goes through four steps: both sides post their terms, the orders are matched, the loan settles, and the borrower repays.

1. Post your terms#

Lenders post a lend order:

  • how much they'll lend in total, and the fixed yearly rate
  • the shortest and longest term they'll lend for
  • which collateral they accept, the most a borrower can get against its value (max loan-to-value) and the point at which collateral is sold (liquidation loan-to-value)
  • whether borrowers can take partial fills of the order, the smallest loan, and the most one borrower can take
  • whether borrowers can repay early, and any early-repayment fee
  • where the assets wait for a match: in the lender's wallet, or earning a variable rate in Aave or Compound
  • order expiry: how long the order stays open before it can no longer be matched

Borrowers post a borrow order: how much they need, the highest rate they'll pay, the term, the collateral they'll lock, which lender terms they'll accept, a matching fee (solver tip), and when the order expires. They can also turn on auto-refinance, covered in step 4.

Posting an order doesn't move your assets. They move only when a loan is made.

2. Match#

Orders can be matched in three ways:

  • Take an order from the orderbook. A borrower picks a lend order and borrows from it, in one transaction, or a lender picks a borrow order and fills it. Neither pays a matching fee.
  • Auto-match. A borrower posts an order and the protocol matches it with the best open lend order in the same transaction.
  • Solvers. Anyone can run a solver: a bot that finds compatible orders and settles many matches in one batch. Unlike solvers on some other protocols, Pearcurve solvers never hold or control user funds: they only find a match and submit settlement, so there is no bond and no allowlist. The borrower's matching fee is a solver tip, like an EVM transaction tip to a validator: it pays whoever settles your match. The tip should at least cover the solver's network (gas) cost; a higher tip is more likely to be picked up sooner. A borrow order with no tip won't be picked up by solvers, but lenders can still fill it from the orderbook.

Every match runs at the lender's rate, which must be at or below the borrower's maximum. One lend order can fund many loans via partial fills, and one borrow order can be filled by several lenders. Each fill is its own isolated loan.

3. Settle#

Settlement is one transaction. The borrower's collateral is locked, the lender's assets move from their wallet or Earn source, and the borrower receives the loan, less the matching fee if a solver made the match.

The lender receives a loan position NFT (ERC-721) that records their claim to the repayment. Whoever holds it is paid when the loan is repaid, so a lender can sell it before maturity.

Collateral is sized against the principal plus the interest for the full term, not the principal alone. A loan whose collateral price never moves stays above its liquidation point all the way to maturity.

4. Repay#

Interest is simple and fixed: the annual rate, charged on the original principal for the time the loan is open, on a 365-day year. It doesn't compound.

  • At maturity, the borrower repays the principal plus interest, and the collateral is returned.
  • Early, if the lender allowed it. The borrower pays interest only for the time the loan was open, plus any early-repayment fee the lender set, which is a share of the interest left to maturity.
  • Refinance. A borrower can move the loan to a new lender at a lower rate, if the original lender allowed early repayment. With auto-refinance on, anyone can trigger that move once a lend order is open below the borrower's chosen rate.

When a loan is repaid, the lender's money goes back to their Earn source, or to their wallet if the loan wasn't funded from Earn. If that transfer fails, the money waits in the protocol until the lender claims it.

If a loan isn't repaid#

A loan can be liquidated when what the borrower owes reaches the liquidation loan-to-value, or when it isn't repaid by maturity plus the protocol's grace period. Anyone can liquidate: they repay the debt and receive the collateral needed to cover it, plus a bonus. In a full liquidation, any collateral left over goes back to the borrower.

If the collateral can't cover the debt, the loan still closes, and only that loan's lender bears the loss. Other loans aren't affected.