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.
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.
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.
- 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.
- 02 Sign. The borrower signs the term sheet.
- 03 Commit. The lender deposits the principal and its collateral in the loan contract.
- 04 Fund. The borrower sends one Bitcoin transaction with one output per tranche, each for the exact amount.
- 05 Prove. Anyone submits the proof after the required confirmations. The principal is credited to the borrower.
- 06 Withdraw. The borrower calls
claimPayout. - 07 Repay. Before the last safe repayment time, the borrower deposits the tranche's share into escrow.
- 08 Reveal. Within the reveal window, the lender publishes the secret and is paid.
- 09 Reclaim. The borrower spends the Bitcoin with the secret.
Live vault values
| Setting | Value |
|---|---|
| Confirmations | 3 |
| Funding window | 30 minutes |
| Proof window | 3 hours |
| Reveal window | 1 day |
| Liquidation payout | 105% of the tranche |
| Smallest output | 15,000 sats |
| Smallest loan | 7 USDC or USDG |
| Term | 1 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).