The two problems every new DEX faces
Prime Liquidity as a foundation
Order = (A, B, Fee, R, M)
where A and B are the two token amounts, Fee is a percentage the Liquidity Provider imposes on each swap, R is the exchange rate (value of A / value of B), and M is the minimum swap size expressed as a fraction of the range [0, 1].
Because each Liquidity Order is its own UTxO, Liquidity Providers can commit only one side of a pair. They can post a sell order for ADA at 0.35 USDA without having to also commit USDA. And they can choose how their UTxOs are distributed across exchange rates using a concentration function:
f(x) = n / (|x/m|³ + 1)
where n is tokens in the UTxO closest to market price and m controls how concentrated liquidity is around that price. Small m = tight concentration (Uniswap V3-style). Large m = broad distribution across a wider range.The Liquidity Order model
swap A → B on Order = (A, B, Fee, R, M):
1. Bx ≤ B - cannot draw more B than the order has
2. Bx / R ≥ (A + B/R) × M - minimum swap size enforced
3. Ax ≥ (Bx / R) × (1 + Fee) - deposited A covers B plus fee
After execution, the Order becomes Order' = (A + Ax, B - Bx, Fee, R, M). The LP is now short Ax of A and has more B. If they set M = 1, the Order becomes non-partially fulfillable - a classic single-execution limit order.
That is the primitive. From it, everything else composes: partial fills, limit orders, LP-style concentrated liquidity, and the ability for Matchmakers to combine multiple Orders into a single trade.Matching on Hydra L2
The Matchmaker role is initially operated by Bynet itself. Once the model is proven, the code is open-sourced and any SPO with sufficient BYNET stake can join and compete.
Building your DEX on top
Adding CEX-grade order types
Wallet integration
Economics: BYNET, fees and matchmaker spread
When to use Bynet vs building from scratch
Binar built Bynet Protocol end-to-end - Prime Liquidity contracts, Matching Engine on Hydra, BynetDEX order-book UX, mobile wallet, Cardanomarket.io hub, BYNET token model. If you are building a Cardano trading product and want to integrate or extend Bynet, or you want a similar Prime Liquidity + Matching Engine architecture on a different chain - let's talk.