Matching Lifecycle

How The Protocol Operates

STEP 01

Create an Order

Define your token pair, amount, starting price, and price slope to control how your order adjusts over time.

STEP 02

Price Discovery

Your order price dynamically moves along its configured curve, naturally converging with counterparty orders.

STEP 03

Keeper Matching

Autonomous keepers continuously scan for compatible buy and sell orders where buy price meets or exceeds sell price.

STEP 04

On-Chain Settlement

Matched orders are settled atomically on-chain. Tokens are exchanged at the settlement price with transparent keeper fees.

Live Mathematical Engine

Dynamic Pricing Curve Simulator

Experience the on-chain formula P(t) = P₀ + s · t defined in PriceCurve.sol. Matches when BuyPrice(t) ≥ SellPrice(t).

Price Discovery in Progress
$2400$2800$3200$36000s150s300s450s600s
t = 0s
Buy Bid Price:$2700.00
Sell Ask Price:$3300.00
Current Spread:$600.00
Keeper Fee (0.1%):+$3.043

Curve Configuration

P(t) = P₀ + s·t
Buy Start P₀ (Bid):$2700
Buy Slope (s):+0.8 /s
Sell Start P₀ (Ask):$3300
Sell Slope (s):-0.6 /s
Presets:

Example Walkthrough: Alice & Bob (ETH / USDC Pair)

Alice (Buyer)Buy 1.0 ETH

Alice wants to buy ETH. She can set a positive or negative slope. Here, her bid starts at $2700 with slope +0.8/s.

Bob (Seller)Sell 1.0 ETH

Bob wants to sell ETH. He can also configure a positive or negative slope. Here, his ask starts at $3300 with slope -0.6/s.

Autonomous Keeper0.1% Reward

Keepers scan for BuyPrice(t) ≥ SellPrice(t). At t = 428.57s, prices cross at $3042.86. The keeper executes the atomic swap on-chain (+$3.043 bounty) and the curves stop moving once settled.