Matching Lifecycle
How The Protocol Operates
Create an Order
Define your token pair, amount, starting price, and price slope to control how your order adjusts over time.
Price Discovery
Your order price dynamically moves along its configured curve, naturally converging with counterparty orders.
Keeper Matching
Autonomous keepers continuously scan for compatible buy and sell orders where buy price meets or exceeds sell price.
On-Chain Settlement
Matched orders are settled atomically on-chain. Tokens are exchanged at the settlement price with transparent keeper fees.
Dynamic Pricing Curve Simulator
Experience the on-chain formula P(t) = P₀ + s · t defined in PriceCurve.sol. Matches when BuyPrice(t) ≥ SellPrice(t).
Curve Configuration
P(t) = P₀ + s·tExample Walkthrough: Alice & Bob (ETH / USDC Pair)
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 wants to sell ETH. He can also configure a positive or negative slope. Here, his ask starts at $3300 with slope -0.6/s.
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.