Decentralised Finance · Vol. 1 · April 2026 · caput.shanescalder.com
Living document — updated as the architecture develops

The Self-Custody Option

Why every options market requires you to give up your assets — and why none of them have to. An argument for escrow-settled, oracle-free, bilateral derivatives.

Author
Research Conducted
April 2026
Version
1.0 — Initial publication
Implementation
0
Options markets with self-custody
2
Wallets required per contract
0
Oracles required for settlement
0
Assets borrowed or lent

§0The Core Finding

Every options market ever built — exchange-traded, OTC, DeFi — requires one party to give up custody of their assets for the duration of the contract. A clearinghouse holds them. A smart contract holds them. A protocol treasury holds them. A counterparty desk holds them. The assumption is so embedded it is not questioned. It is just what options require.

It is not what options require. It is what options have always done.

The distinction matters because the custody assumption is the source of every structural risk in derivatives — counterparty failure, exchange insolvency, protocol exploit, admin key compromise. These are not bugs in specific implementations. They are consequences of a design assumption that has persisted for as long as derivatives have existed. Remove the custody assumption and those risks disappear. Not reduced. Removed.

The finding

The gap between "non-custodial" and "self-custody" is not a matter of degree. Non-custodial means a smart contract holds your assets instead of a person. Self-custody means nobody holds your assets. The escrow holds them. Your wallet is the only key. That is a different kind of statement about who controls the money.

§1The Custody Assumption

Three models exist for options today. All three require custody transfer. The intermediary varies — exchange, escrow agent, smart contract — but the pattern is identical. Funds leave the user's control and return only when the intermediary permits.

A · Centralised exchange
User deposits funds. Exchange holds custody. Exchange is counterparty, clearinghouse, and settlement layer. User's assets are pooled with every other user's assets. Withdrawal requires permission. The venue decides when you get your money back.

⨯ CUSTODY TRANSFERRED · ⨯ VENUE IS COUNTERPARTY
B · OTC desk
Two parties negotiate. A third party settles. Legal agreements, escrow agents, margin accounts held by intermediaries. Works for eight-figure desks. For everyone else, the overhead per contract eats any premium worth collecting.

⨯ OVERHEAD PER CONTRACT · ⨯ SCALES POORLY DOWN
C · DeFi protocol
User deposits into a smart contract. Protocol holds custody. Oracle feeds price. Settlement is computed against the oracle, not executed against a real market. The "option" is a yield product wrapped in options language. There is no writer on the other side.

⨯ ORACLE DEPENDENCY · ⨯ POOL IS COUNTERPARTY
D · Self-custody option
Two wallets. Three escrows. One multisig with its master key disabled. Funds sit in on-chain escrows for the term. Released only by cryptographic condition. Settlement is a real swap through the AMM. No intermediary holds assets at any point. Both parties sign every transaction in their own wallet. The bot coordinates. It never signs.

✓ SELF-CUSTODY · ✓ NO ORACLE · ✓ BILATERAL · ✓ REAL SETTLEMENT

§2The Missing Instrument

On most chains and in most markets, derivatives are built on top of borrowing infrastructure. To short an asset you borrow it. To write an option you post margin in a lending pool. To create leveraged exposure you use a margin facility. The entire architecture assumes that somewhere, someone is lending.

On XRPL, that infrastructure does not exist. There is no lending protocol for XRP or RLUSD. There is no margin facility. There are no perpetuals. There is an AMM for spot trading, and that is it. If you want directional exposure to XRP/RLUSD beyond buying and holding spot — in either direction — there is no on-chain instrument available.

The assumption is that derivatives require borrowing. They do not. They require two parties willing to take opposite sides of a price movement, and a mechanism to settle the outcome. Everything else is infrastructure that existing markets added because they had no other way to enforce the contract.

The self-custody option requires nothing borrowed and nothing lent. The seller provides the notional. The buyer provides margin and premium. The AMM provides the rate. The escrow provides custody. The instrument is self-contained. Every component exists on the ledger already. No new protocol is needed. No liquidity pool is needed. No lending market is needed.

RequirementTraditional derivativeSelf-custody option
Borrowing facilityYes — margin lending, short sellingNo — seller provides notional directly
Liquidity poolYes — protocol or exchange-managedNo — AMM is venue, not counterparty
OracleYes — external price feedNo — AMM rate is the settlement
Custody transferYes — to exchange, protocol, or agentNo — ledger escrow, user wallets only
IntermediaryYes — clearinghouse, protocol, or deskNo — 2-of-2 multisig, master key disabled
Fractional reserveYes — leverage through lendingNo — fully collateralised by both parties
The observation

This instrument does not exist because the assumption has always been that creating it requires infrastructure that does not exist on XRPL — lending, margin, oracles, protocol governance. The assumption was wrong. The ledger's native primitives — escrow, multisig, AMM — are sufficient. The instrument was always possible. Nobody built it.

§3The Oracle Assumption

Options need a price to settle against. Every existing implementation solves this with an oracle — an external price feed that tells the contract what the asset is worth at expiry.

The oracle is a dependency. It can be manipulated. It can be stale. It can disagree with the market. It introduces a single point of failure into a system that claims to be decentralised. Hundreds of millions of dollars have been lost to oracle manipulation in DeFi. The problem is not bad oracles. The problem is needing one at all.

Oracle-settled
An external system reports that the price is X. The contract computes a payoff against X. The assets never interact with the market. Settlement is a calculation. Whether X is correct, current, or manipulated is an open question at every expiry.
AMM-settled
The locked asset swaps back through the AMM. The swap produces whatever the market gives. Settlement is a trade. There is no X to report, no feed to trust, no oracle to manipulate. The price is the outcome, not an input.

An option that settles through a real swap does not need to know the price. The price is whatever the market gives. The AMM is not an oracle. It is the venue. The distinction is architectural, not semantic.

§4What Is a Call. What Is a Put.

These are not textbook definitions. This is how calls and puts work in this specific instrument — through the AMM, with real swaps, no formula, no strike price.

Call — buyer believes XRP rises
Deploy: seller deposits 100 XRP. AMM swaps to RLUSD at rate 0.50 → 50 RLUSD locked in escrow.

Settlement (XRP rose, rate now 0.40): 50 RLUSD swaps back → 125 XRP. Seller gets 100 XRP (made whole). Buyer gets 25 XRP (gain).

Settlement (XRP fell, rate now 0.60): 50 RLUSD swaps back → ~83 XRP. Seller needs 100 XRP — shortfall of ~17 XRP comes from buyer's margin.

PREMIUM PAID AT DEPLOY REGARDLESS OF OUTCOME
Put — buyer believes XRP falls
Deploy: seller deposits 100 RLUSD. AMM swaps to XRP at rate 0.50 → 200 XRP locked in escrow.

Settlement (XRP fell, rate now 0.60): 200 XRP swaps back → 120 RLUSD. Seller gets 100 RLUSD (made whole). Buyer gets 20 RLUSD (gain).

Settlement (XRP rose, rate now 0.40): 200 XRP swaps back → ~80 RLUSD. Seller needs 100 RLUSD — shortfall of ~20 RLUSD comes from buyer's margin.

PREMIUM PAID AT DEPLOY REGARDLESS OF OUTCOME
The mechanism

In both cases the seller is made whole first. The AMM determines the outcome. No oracle computes the difference. The swap itself is the settlement. The payoff is option-shaped — premium, margin, asymmetric exposure — but the mechanism is a spot trade, not a formula. There is no strike price. There is no payoff curve computed against a reference rate. There is a swap at deploy and a swap at settlement. The difference between those two swaps is the contract's outcome.

§5The Escrow Primitive

A time-locked, condition-gated escrow with a cryptographic release mechanism does what a clearinghouse does: hold assets, prevent premature withdrawal, release on defined conditions. But the escrow is not an intermediary. It is a ledger object. Nobody operates it. Nobody can modify it after creation. The assets sit on-chain, owned by the creator, released only when the condition is met or the time expires.

Fig. 01 — Three-escrow structure with per-contract multisig
W_SELLER Seller Wallet signs · never gives up keys W_BUYER Buyer Wallet signs · never gives up keys ESCROW S seller's locked asset PREIMAGE-SHA-256 ESCROW B buyer's margin PREIMAGE-SHA-256 ESCROW P buyer's premium PREIMAGE-SHA-256 ↓ SAME CONDITION · SAME FULFILLMENT ↓ M 2-of-2 Multisig MASTER KEY DISABLED per-contract · cleaned up after settlement FINISHAFTER: DEPLOY+5m CANCELAFTER: TERM+30d

Three escrows with a shared cryptographic condition, pointed at a 2-of-2 multisig with its master key disabled, replicate the function of a clearinghouse without requiring one. The chain enforces custody. The condition enforces timing. The multisig enforces bilateral agreement on distribution.

If the coordination layer fails permanently, escrows hit their CancelAfter date and refund to their sources. Seller gets their deposit back. Buyer gets margin and premium back. Nothing is stuck. The failsafe is built into the ledger primitive, not into the software.

§6Settlement Through the AMM

At deploy, the seller's asset is swapped through the AMM into its opposite. At settlement, it swaps back. The difference between what went in and what comes out is the contract's outcome. There is no formula. There is no computation against an external price. There is a real swap that produces whatever the market gives.

Fig. 02 — Deploy and settlement: two real swaps, one outcome
DEPLOY SELLER'S 100 XRP → AMM → LOCKED ASSET 50 RLUSD ↓ into escrow S ESCROW → M RATE AT DEPLOY: 0.50 XRP/RLUSD SETTLEMENT FROM ESCROW 50 RLUSD → AMM → SWAP-BACK 125 XRP distributed from M: SELLER 100 BUYER +25 RATE AT SETTLEMENT: 0.40 XRP/RLUSD

The contract's payoff is not computed. It is executed. There is no formula that says "if the price moved X%, pay Y." There is a real swap that produces whatever the market gives. The payoff is option-shaped — premium paid, margin at risk, asymmetric exposure — but the settlement mechanism is a spot trade, not a calculation.

§7Margin and the Two Tiers

The buyer's margin is their risk capital. It absorbs losses when the swap-back produces less than the seller's deposit. The margin is locked at deploy and cannot be topped up. The buyer knows their maximum loss before they sign: premium plus margin. That is it.

Fig. 03 — Margin consumption and liquidation tiers
0% 100% MARGIN CONSUMED RATE MOVEMENT AGAINST BUYER → COOPERATIVE ZONE both parties co-sign settlement BUFFER TAIL RISK seller absorbs 90% SOFT LIQUIDATION co-signed · buyer keeps 10% HARD LIQUIDATION automatic · pre-signed

Soft liquidation at 90%

Both parties must agree. The buyer still has a 10% buffer. There is time. The buyer may believe the rate recovers. The seller is protected by the buffer while waiting for signatures. This tier preserves the buyer's agency over the timing of liquidation.

Hard liquidation at 100%

Automatic. No cooperation required. A pre-signed transaction fires. The buyer's margin is fully consumed. Waiting any longer means the seller's deposit starts eroding. The pre-signed swap-back delivers a fixed amount — (deposit minus margin) — to the seller, regardless of timing.

The design decision

The 90% threshold requires trust. The 100% threshold requires math. That boundary — where cooperation gives way to automation — is the design decision that makes the instrument functional for both parties.

§8Why the Seller Cannot Cheat

The seller runs the bot. The bot holds the pre-signed liquidation transaction. The seller could fire it at any time after escrow release. But the pre-signed transaction delivers a fixed amount: (deposit minus margin). At any rate better than the 100% threshold, that amount is less than what the seller would get by waiting for a normal settlement.

Margin consumed AMM needs from locked Seller receives Left in M vs. waiting
0% (no movement) ~90 of 100 RLUSD 90 XRP ~10 RLUSD −10 XRP value
50% consumed ~95 of 100 RLUSD 90 XRP ~5 RLUSD −5 XRP value
90% consumed ~99 of 100 RLUSD 90 XRP ~1 RLUSD −1 XRP value
100% (intended) 100 of 100 RLUSD 90 XRP 0 correct outcome

The pattern is visible in every row. The seller loses value by firing early. Only at the intended threshold does the outcome align. The chain does not prevent early firing. The math makes it irrational.

The protection is not enforcement. It is incentive alignment. The buyer is not trusting the seller to behave well. The buyer is trusting the seller to act in their own economic interest. That is a different kind of trust — one with a formal basis.

Game-theoretic protection is weaker than cryptographic enforcement but stronger than trust. It occupies a specific and defensible position in the security spectrum: the seller has the technical capability to fire early, but doing so costs them money in every scenario except the one where the fire is intended. The incentive is to wait.

§9What Changes

DomainBeforeAfter
CustodyIntermediary holds assets during the termEscrow holds assets. Both wallets retain signing authority. No intermediary.
PriceOracle feeds price to settlement formulaAMM executes a real swap. The rate is the outcome, not an input.
SettlementComputed against external price. Synthetic delivery.Executed through the market. Real assets, real swap, real outcome.
LiquidationProtocol-controlled or manualTwo-tier: cooperative at 90%, automatic at 100%. Game-theoretic protection.
BorrowingRequired. Leverage through lending pools.None. Both sides fully collateralised. Self-contained.
InfrastructureProtocol, smart contracts, governance tokens, liquidity poolsTwo wallets, three escrows, one multisig. Native ledger primitives. No protocol.
The conclusion

A self-custody option is not an option without a clearinghouse. It is an option where the ledger is the clearinghouse. The escrow holds custody. The AMM settles. The multisig enforces bilateral agreement. The game theory prevents abuse. No oracle. No pool. No borrowing. No protocol.

What remains is the instrument itself — two parties, one pair, one term, one outcome determined by a real swap on a real market. That is what an option has always been. Everything else was infrastructure.

The architecture described in this paper is implemented in Caput. Two wallets. Three escrows. One multisig. One AMM. No oracle. No pool. No protocol. Self-custody options on XRP/RLUSD. This paper describes the why. caput.dev is the what.

Research conducted and architecture developed by Shane Calder, April 2026. Developed in collaborative reasoning with Anthropic Claude. This paper is a living document and will be updated as the architecture develops.

This paper describes a problem class and its resolution. It does not describe implementation. The architecture that addresses the problem class is the subject of separate work.

Free to read and share. Not to reproduce without written permission.
© 2026 Shane Calder · 132 Engineering · 132eng.dev