OPN Swap

JIT Liquidity Router
not connected no wallet
Season 1 · DeFi & Open Finance · OPN Swap

Just-in-Time liquidity, on demand

An aggregating swap router that routes each trade to the best pool and deepens it with just-in-time liquidity for a single transaction — optimal injection computed off-chain, verified on-chain.

−80%
gas vs on-chain search
6/6
contracts verified
11/11
tests passing
984
OPN testnet chainId
01

Live demo

Compare swap price with and without JIT liquidity

Swap

Price comparison

Output without JIT
Output with JIT
Trader improvement
Pool selected
JIT injected
Price improvement from JIT
Waiting for RPC connection…
02

How it works

One atomic transaction
1
Route

The router scans every pool for the pair and picks the one with the best output.

2
Optimize off-chain

A concave-PnL search finds the profit-maximizing injection off-chain — no gas spent searching.

3
Verify & inject

The contract verifies the hint in one step, then the vault deepens the pool for this trade only.

4
Swap & unwind

The trade executes at the better price; the vault withdraws and keeps its share of the fee for LPs.

03

Roadmap

From proof-of-concept to live infrastructure
Shipped Phase 0 · MVP
Core protocol on OPN testnet
  • Constant-product pools, aggregating router, multi-hop routing
  • JIT vault with on-chain optimizer (concave-PnL ternary search)
  • Deployed & verified on OPN testnet · 11/11 tests passing
In progress Phase 1 · Hardening
Security & capital efficiency
  • Off-chain compute / on-chain verify — 80% gas reduction
  • Multi-LP vault with pro-rata fee shares + abuse caps
  • Reentrancy guards, safe approvals, permissioned pool registry
Next Phase 2 · Robustness
Oracles & MEV resistance
  • TWAP price oracle instead of trusting spot reserves
  • MEV/sandwich protection for the inject-swap-withdraw cycle
  • Split routing — divide a large trade across multiple pools
Later Phase 3 · Mainnet
Production launch
  • Third-party security audit
  • Keeper network for off-chain hint computation
  • Permissionless pool/vault creation, governance, mainnet deploy
04

Deployed contracts

OPN Testnet · chainId 984