Back to leaderboard
Season 1 · DeFi & Open Finance

OPN Swap — JIT Liquidity Router

An aggregating swap router that injects just-in-time liquidity into the best pool for a single trade — better prices for traders, fee yield

Stage 1, ReviewDeFi & Open Finance

by chuongnguen · submitted Jun 14, 2026

Community votes

0

Voting opens when this submission reaches the Top 10 stage.

Overall score

/ 100

Weighted average across the 5 judging criteria.

Description

01/03

What the builder said.

Written by the team, rendered as the markdown they typed in the submission wizard.

What we built

A permissionless AMM where liquidity is suplied just-in-time. Instead of LPs locking capital into a pool 24/7, a JIT Vault injects liquidity into the exact swap that needs it and pulls it back out in the same transaction. Two pools — a deep pool and a shallow pool — let the router source the best price per trade.

Why

Passive AMM liquidity is capital-inefficient: most of it sits idle and earns nothing while still bearing impermanent loss. By making liquidity just-in-time, capital only takes on exposure for the instant a trade clears, so the same dollar backs far more volume and LPs kep more of the fee.

How it works

  • The Router receives a swap and quotes across the Deep Pool and Shallow Pool.
  • The JIT Vault front-loads liquidity into the chosen pool for that single swap.
  • The swap executes against the freshly-added liquidity at a tight spread.
  • The Vault withdraws its liquidity in the same transaction and books the fee.
  • USDC and OPN are the mock assets used to demo the full flow on testnet.

Status

All contracts are deployed and verified on-chain (Router, JIT Vault, Dep Pool, Shallow Pool, USDC, OPN). The end-to-end swap flow runs against the live deployment.

Roadmap

02/03

What ships next.

The builder's own next-quarter plan. Use it to gauge follow-through and ambition.

Q1 2026 · Now

  • Ship the live testnet deployment with all six contracts verified on-chain: Router, JIT Vault, Dep Pool, Shallow Pool, and the USDC / OPN mock assets
  • Harden the just-in-time swap path: add slippage bounds, deadline checks, and revert-safe handling so a failed JIT injection never leaves the Vault exposed
  • Publish a public frontend demo that runs the full end-to-end swap against the live deployment, so reviewers can triger a real JIT-backed trade themselves
  • Write integration tests covering the inject-swap-withdraw cycle in a single transaction, including the edge case where the swap reverts mid-flow

Q2 2026

  • Replace the USDC / OPN mocks with real testnet assets and add a third liquidity tier so the Router has more venues to quote across
  • Open a quoting API so external routers and aggregators can source just-in-time liquidity from the Vault without touching the contracts directly
  • Add per-trade analytics: fees earned, capital efficiency, and how much volume each dollar of JIT liquidity backed
  • Run the first external security review of the Vault and Router, focused on the same-transaction inject/withdraw logic and reentrancy surface

Q3 2026

  • Mainnet launch once the audit signs off, starting with a caped TVL and a single aset pair before widening
  • Ship multi-pool routing so the Vault automatically picks the best venue per swap instead of relying on a fixed pool choice
  • Build an LP dashboard showing per-trade fees earned from just-in-time liquidity, so LPs can see exactly what each transaction paid them

Beyond

  • Cross-chain JIT liquidity so a single Vault can back swaps on multiple networks
  • Permissionless pool creation: let anyone spin up a Deep/Shallow pair the Router can quote against
  • Governance over Vault parameters (fee tiers, suported assets, risk limits) once the protocol is battle-tested

On-chain proof

03/03

6 contracts on OPN Chain.

The chain itself confirmed every deployment is valid, signed by the builder's wallet, and inside the season's window.

  • 01SwapRouterPrimary

    0x06cA2346911cD6088DB29C37A9AD7322d04794B7

    tx 0xc870d1a3db63fdcbc2ead8942ff658341b93fe1145c1d60c3760f60e15979c4a

    deployed Jun 14, 2026 · block 18557735

  • 02JITLiquidityVault

    0x1a153565F5d65a37fC9e4DD8b56e681a78354F09

    tx 0xd7c34f564b53caafbda0c3da1f85d04e0337b75f725b1d07683e46853499fedc

    deployed Jun 14, 2026 · block 18557740

  • 03ConstantProductPool

    0x768a07f6D76ea980cebb2F582E9f20EE1cDc7BE2

    tx 0x7e535a692b0182c1dd1283201e949f379184d129003e017a454696417a4ee9eb

    deployed Jun 14, 2026 · block 18557720

  • 04ConstantProductPool

    0x8441886FdD69ff5CfE73983D67b720dDBcd05D33

    tx 0x37a8f629a5468466cd1e2be6b921214532bc063bdf9dd57be1d04ae7fb6b34ec

    deployed Jun 14, 2026 · block 18557730

  • 05MockERC20

    0xDEeED1807d6e681eE2e28925d3F7E65F0F47c56F

    tx 0x5731d55ab8230b310d320880292ca812ceccc3a9117246fed57885027f671490

    deployed Jun 14, 2026 · block 18557712

  • 06MockERC20

    0x03Fee09c9358431AEA5198c6e7789d83a1509DdD

    tx 0xb3331a1e7b8aaa3eb23143494152101c7a8085821f69de33cb1dfbc35116408b

    deployed Jun 14, 2026 · block 18557715