Find something... ⌘K

Loans (MaxyLock) / How it works

How MaxyLock works

MaxyLock lends against Bitcoin that never leaves the Bitcoin network. The borrower locks BTC in scripts and receives the loan on EVM and SVM chains. Nothing is wrapped, bridged or held by a custodian.

Each loan is between one borrower and one lender, on terms both signed. In the loans Maxy offers, Maxy is the lender.

  • Locks. The borrower spends a lock with a secret; the lender spends it after a fixed time. Nothing else can spend it.
  • Proof. The contract pays the principal only after a Bitcoin proof, with no oracle or committee.
  • Stakes on both sides. The lender posts collateral too. If it is repaid and withholds the secret, that collateral buys the borrower Bitcoin at a premium.

A fall in the Bitcoin price does not, by itself, cost the borrower the collateral. No administrator can touch funds: the one privileged power is to pause new loans.

Maxy's loans use no price feed, no early-repayment rebate and no protection modules.

Commit term sheet signed
Fund and prove BTC into the HTLCs
Repay and release secret published
Resolve default or liquidation

How a loan works

The nine steps of a loan, from terms to getting the Bitcoin back. In the loans Maxy offers, Maxy's service does the lender's part.

Term sheet negotiated off chain
Borrower signs EIP-712
Lender commits principal + collateral
Fund the HTLCs then submit the proof

A loan splits its Bitcoin into tranches: 1 to 7 collateral tranches, each repaid on its own, plus one interest tranche that prepays interest in BTC. The lender sweeps that one ten minutes after the verification deadline. Each collateral tranche is locked to a secret the lender holds.

  1. 01 Agree terms. The lender makes one secret per tranche and gives the borrower the hashes. Both build the Bitcoin scripts and check the hashes.
  2. 02 Sign. The borrower signs the term sheet.
  3. 03 Commit. The lender deposits the principal and its collateral in the loan contract.
  4. 04 Fund. The borrower sends one Bitcoin transaction with one output per tranche, each for the exact amount.
  5. 05 Prove. Anyone submits the proof after the required confirmations. The principal is credited to the borrower.
  6. 06 Withdraw. The borrower calls claimPayout.
  7. 07 Repay. Before the last safe repayment time, the borrower deposits the tranche's share into escrow.
  8. 08 Reveal. Within the reveal window, the lender publishes the secret and is paid.
  9. 09 Reclaim. The borrower spends the Bitcoin with the secret.

Live vault values

SettingValue
Confirmations3
Funding window30 minutes
Proof window3 hours
Reveal window1 day
Liquidation payout105% of the tranche
Smallest output15,000 sats
Smallest loan7 USDC or USDG
Term1 day

The contract allows wider bounds. A vault's values can change, and the SDK checks each plan against your quote.

The whole protocol, chapter by chapter: MaxyLock documentation (PDF).