← Back to Patent Claims
Patent Claim 097 All Patents →

Deterministic VRF-Shuffled Batch-Auction Clearing

Bounded Iterative Price Discovery, Oracle-Band Clamping, and Per-Intent Limit/Slippage Filtering Over a VRF-Shuffled Batch

Patent Claim JIL Sovereign July 2026 Claim 97 of 157

Executive Summary

Where the companion filing on VRF batch shuffling covers how intents are ordered, this claim covers what happens next: how JIL Sovereign's AMM v5 core turns a shuffled batch of buy and sell intents into a single settlement event at one clearing price. The engine starts its search at the live oracle price, iteratively nudges a candidate clearing price toward the level that would balance directional flow, and stops either when the imbalance is negligible or after a fixed maximum number of iterations - all while the candidate price is clamped to a percentage band around the oracle so it can never wander to an economically implausible level even under a thin or lopsided batch.

Once a clearing price is found, every intent in the shuffled batch is evaluated against it independently: intents whose limit price or maximum-slippage tolerance would be violated are skipped rather than force-filled, and the remainder fill at the single discovered price with fees split across liquidity-provider, protocol, and a dedicated allocation the codebase itself labels the humanity-fee share.

Core Innovation: A bounded, oracle-clamped iterative search converges every filled order in a VRF-shuffled batch onto one clearing price, so no participant can profit from where in the shuffle their order landed - only from whether their own limit and slippage terms are satisfied at that single price.

Problem Statement

A batch auction that shuffles order sequence but still fills each order at its own marginal price along a continuous bonding curve reopens a subtler version of the ordering problem: an order later in the shuffled sequence still executes against a pool state already moved by every order ahead of it. A true batch-auction defense against MEV requires that price, not just sequence, be decoupled from position in the batch.

8
Maximum price-search iterations per batch
1%
Adjustment step per iteration toward flow balance
1
Uniform clearing price applied to every fill

Why Continuous-Curve Batch Execution Falls Short

  • Sequential AMM execution within a batch: Even after shuffling, each order still moves the price for the next, so batch position still matters economically - just via price impact instead of ordering priority.
  • Unbounded price search: A clearing algorithm without an iteration cap or an oracle clamp can, on a thin or adversarial batch, converge slowly or drift the settlement price away from any external reference.
  • All-or-nothing batch fills: Forcing every order in a batch to execute regardless of its own limit price either strands conservative traders or requires unbounded price movement to clear.

Technical Architecture

Clearing Pipeline

StepMechanismBound
1. ShuffleFisher-Yates over VRF seed (see Claim 96)Uniform over all orderings
2. Band computationp_min = p_oracle * (1 - band), p_max = p_oracle * (1 + band)Pool-configured oracle_band_bps
3. Iterative searchEvaluate net directional flow at the candidate price; step price ±1% toward balanceStops when |net flow| < 1 unit, or after 8 iterations
4. ClampCandidate price forced back into [p_min, p_max] if the search overshootsHard floor/ceiling, no exceptions
5. Per-intent filterReject if clearing price violates the intent's limit price, or if the deviation from current pool spot exceeds the intent's own max_slippage_bpsIndependent per intent
6. Uniform fillEvery admitted intent executes at the single discovered clearing priceNo per-order price variance

Fee Allocation on Cleared Volume

Each filled intent's fee is computed against the total fee rate and then split proportionally across three destinations tracked in the same execution record: a liquidity-provider share, an operations share, and a residual share the codebase itself designates for a dedicated protocol allocation - keeping the economics of every fill transparent and auditable alongside the clearing price and the fill itself.

Prior Art Differentiation

ApproachPrice BasisBounded Search?Oracle-Clamped?
Continuous AMM (no batching)Per-trade marginal priceN/ANo
Batch with sequential curve fillsPosition-dependent within batchN/ARarely
Generic uniform-price batch auctionSingle clearing priceOften unbounded searchNot always
JIL SovereignSingle clearing price8-iteration capYes - hard band clamp

Patent Claim

Independent Claim 97: A computer-implemented method for clearing a batch of swap intents comprising: ordering said intents using a Fisher-Yates permutation seeded by a verifiable random value; computing a permissible price band bounded above and below a current oracle-reported reference price; iteratively adjusting a candidate clearing price, beginning at said oracle-reported reference price, toward the price at which aggregate directional order flow across the ordered intents is minimized, for a bounded number of iterations, and clamping the candidate price to remain within said permissible price band throughout; filtering each intent against the resulting clearing price using that intent's individually specified limit price and maximum slippage tolerance; and executing every intent that satisfies said filter at the single resulting clearing price.