During and after the loan

What happens once a loan is made from your lend order: early repayment, how you're paid, refinancing, and selling the position.

Early repayment#

You decide on your lend order whether borrowers can repay before maturity. The setting carries over to every loan made from that order.

  • 50% fee (app default). Early repayment is allowed. On early repay the borrower pays interest so far plus half of what's left to maturity.
  • Make-whole. Same as allowed, but the fee is 100% of remaining interest: they still pay the full term's leftover interest if they leave early.
  • Not allowed. The borrower can't repay or refinance before maturity. You earn the full term's interest.

The trade-off is open to everyone: borrowers might skip lenders who block early repayment, and can cap the fee they'll accept. So lenders who block early repayment, or charge a high fee, can get matched less often. Each side sees the cost of its choice, and the market can settle on a fair fee.

For example only (not a return): on a loan of 10,000 USDC at 8% for 90 days, repaid after 30 days, the interest left to maturity is about 131.51 USDC. With a 50% early-repayment fee, the borrower pays you about 65.75 USDC on top of the interest so far.

The protocol can take a share of this fee. It's currently 0% on testnet and may change before mainnet; see Who controls what.

Borrowers can also require a minimum liquidation LTV. A match outside those terms reverts.

Getting paid#

You're paid when a loan ends: when the borrower repays, when it's refinanced, or when it's liquidated.

How the loan endsYou receive
Repaid at maturityThe principal plus the full term's interest.
Repaid earlyThe principal, the interest so far, and any early-repayment fee.
RefinancedThe same as repaid early, less the protocol's refinancing fee.
LiquidatedWhat the borrower owed, paid by the liquidator, who takes collateral in return.

Interest is simple: the yearly rate, charged on the original principal for the time the loan was open, on a 365-day year. The protocol can take a share of the interest as a fee. It's currently 0%.

Where the money goes#

It goes back where it came from: into your Earn source if the loan was funded from Earn, or to your wallet if it wasn't. There's nothing to do. If the loan position has changed hands, the repayment goes to the new holder's wallet instead.

If that transfer fails (for example because the Earn source won't take deposits at that moment, or because that Earn source was removed), the money waits in the protocol for you as claimable. A banner on every page of the app tells you, and the amounts are listed under Waiting to claim on the Portfolio and Lend pages. You can claim at any time, including while the protocol is paused. Each claim pays out everything waiting in one token, across all your loans; Claim all claims every token, with one wallet confirmation per token. Withdrawals from a removed source still work; only new deposits into it are blocked.

If the collateral doesn't cover the debt#

If the collateral's price falls so far that selling it can't cover what the borrower owes, the loan still closes, and you bear the shortfall on that loan. Other lenders' loans aren't affected, and yours aren't affected by theirs.

Refinancing#

A borrower can move their loan to a new lender at a lower rate, if you allowed early repayment. That closes your loan early:

  • You're paid the principal, the interest so far and any early-repayment fee, less the protocol's refinancing fee, which is a share of the principal (currently 0.50% on testnet).
  • The money goes back to your Earn source, or to your wallet if the loan wasn't funded from Earn.

If you set early repayment to Not allowed, the loan can't be refinanced before maturity.

A refinance also can't leave the borrower with worse early-repayment terms than the current loan: the new lender must not block early repayment if the old one didn't, and must not charge a higher early-repayment fee.

Selling a loan#

When a loan is made, the lender receives a loan position: a token (an ERC-721) that records the claim to the repayment. Whoever holds it when the loan ends is paid. Because each loan is isolated, that claim's value depends only on its own terms and collateral, so a lender who wants their money before maturity can sell the position to someone else.

Ways to sell#

The protocol's secondary market supports three ways to sell a loan position:

  • Fixed price. List it at a price, in an accepted currency, until a date you choose. Anyone can buy it at that price.
  • Auction. Set a reserve price and an end time. Buyers bid, and the highest bid above the reserve wins when the auction is settled. Outbid buyers can claim their money back.
  • Offers. Buyers can place an offer on any loan position, and the holder can accept one.

You can cancel a fixed-price listing at any time, and an auction until its first bid. If a position changes hands outside the market, its open listing and auction close.

A position can't be listed, bid on or sold while its loan can be liquidated, or while its price can't be confirmed. It can be sold again once the loan is healthy. Positions also can't change hands in the last hour before maturity, so listings and auctions must end before then. Delisting a position from sale, transferring the position NFT and settling an auction all keep working while the protocol is paused. While trading is paused, settling an auction refunds the winning bidder instead of completing the sale.

The protocol can take a fee on a sale. It's currently 0%. The fee is locked when you list or start the auction: the sale uses the lower of that recorded fee and the fee at settlement, so a later increase doesn't apply to an open listing.

What the buyer gets#

The buyer takes over your claim: the principal and the interest due when the loan ends, on the loan's original terms. The terms themselves, including the rate, maturity and collateral, don't change.

When a position changes hands, by a sale or any other transfer:

  • The new holder is paid, straight to their wallet. If the loan was funded from your Earn source, the repayment no longer goes back there.
  • Your registered callback stops covering that loan's ownership — the buyer must LenderCallbackDispatcher.register themselves if they want hooks.