Risks, trust assumptions and audit plan
OrdLend is pre-audit test software. This page says plainly who you trust and what can go wrong. Keep it public and current: it's part of launching honestly.
Who you trust
| Party | What they can do | What they cannot do |
|---|---|---|
| Signer operators (t-of-n FROST) | Together: attest deposits (which lets loans be paid out), sign seizures after default_height, sign releases together with the borrower | Release an inscription without the borrower's signature; seize before default_height |
| Coordinator | Stall signing sessions | Make operators sign anything: each operator checks every spend against its own bitcoind, indexers and Solana view |
| Admin key | Replace the signer set, pause, list collections, record liquidation proceeds | Move pool funds directly |
| Price authority | Set collection floor prices, which size new loans | Touch existing loans (no price liquidations) |
| Program upgrade authority | Replace the program code | Nothing, if the program is frozen or behind a timelocked multisig |
| ord indexers | Report wrong inscription locations | Fool operators when two or more independent indexers have to agree |
Main risks
For borrowers
- Late release after repayment. The default leaf has no destination: after
default_height, a colluding threshold of operators could take a repaid inscription if it hasn't been released by then. Release normally happens within minutes of repaying. Keep the gap between maturity anddefault_heightwide (operators require a safety margin) and repay early. - Operators disappear. The borrower recovers the inscription alone through the escape leaf, but only after
escape_height, which is at least 90 days (12,960 blocks) afterdefault_height. - Wallet signing. The borrower signs the release leaf. A malicious frontend could ask for a signature over the wrong transaction; wallets have to show where the inscription goes.
For lenders
- Operator or admin compromise is the big one. A threshold of operators, or an admin who swaps in their own signer set, can attest a fake deposit and have USDC paid out against nothing. That drains the pool. Mitigations before mainnet: admin behind a multisig with a timelock on
update_signers, independent operators, per-collection exposure caps (already in the program) and TVL caps. - Liquidation shortfall. If the auction raises less than the debt, lenders take the loss. Until liquidation, pool value still counts the defaulted principal (see the TODO in
pool.rs). - Floor price manipulation. Thin Ordinals markets are easy to move. The plan is a 7-day TWAP from several marketplaces with outliers dropped; today one key sets it, with a 24-hour staleness limit.
For everyone
- Smart contract and script bugs. No audit yet.
- Indexer bugs. ord indexers have disagreed with each other before. Operators wait while indexers disagree, which can delay deposits and releases.
- Bitcoin reorgs. Deposits need several confirmations: 3 recommended, 2 in the test runs.
- Regulation. Lending to retail users can need licenses depending on where you are and where your users are.
Already in place
- Taproot vault with no key path (NUMS internal key), with three script leaves: release, default after a timelock, escape after a long timelock.
- The inscription always stays on the first sat of output 0, and fees come from separate inputs.
- Operators verify every spend themselves. The coordinator is untrusted.
- Attestation votes are stored per payload, so one dishonest signer can't block honest ones.
- Fixed-term loans with no price-triggered liquidations.
- LTV, protocol-fee and origination-fee ceilings are hard-coded (
MAX_LTV_BPS = 60%). - Offline tests:
scripts/test-all.sh. - Live test on local Bitcoin regtest and Solana:
scripts/e2e/run-all.sh. - Live test on public Bitcoin signet and Solana testnet:
scripts/signet/.
Before mainnet (audit plan)
- Audit 1: Solana program. Access control, attestation logic, pool share math, the fee and interest paths, and upgrade/admin controls.
- Audit 2: Bitcoin side. Vault scripts and the address derivation, spend construction and
verify_spend, the FROST integration, and the signer policy rules. - Replace the trusted dealer with DKG for operator keys.
- Admin and upgrade authority behind a multisig with a timelock.
- At least 3 independent operators, each running its own bitcoind and two different indexers.
- Price keeper with a TWAP from several sources.
- Staged rollout. Low TVL and per-collection caps, a bug bounty, and limits raised only after time without incidents.
The community token
The pump.fun token is separate from the protocol:
- no fee discounts, governance, revenue share or buybacks;
- never accepted as collateral or held by the pool;
- no token code in the program.
Buying it gives no claim on the protocol. See launch/PUMPFUN.md.