Back to leaderboard
Season 1 · DeFi & Open Finance

OPNXSWAP

A decentralized token swap built on the IOPN network.

Stage 1, ReviewDeFi & Open Finance

by andromedacripto17 · submitted Jun 21, 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

OPN Mini Swap is a minimal Uniswap V2-style AMM DEX deployed on the IOPn Testnet (chainId 984), with a built-in faucet so reviewers can claim test tokens and run a full swap end-to-end without needing pre-existing balances.

6 contracts deployed, all pragma solidity =0.8.20, zero external dependencies:

  • OPNSwapFactory — creates and indexes liquidity pairs via deterministic CREATE2 (pair addresses are predictable, immune to front-running).
  • OPNSwapRouter — the entry point for swaps and liquidity. Every state-changing call enforces an on-chain deadline plus an explicit amountOutMin/amountInMax slippage check — real guarantees, not just UI hints. User tokens flow straight to the Pair via transferFrom; they never sit in the Router's balance.
  • WOPN — Wrapped OPN, a WETH9-style wrapper for the native token, checks-effects-interactions on withdraw.
  • TestToken — minimal ERC-20, deployed twice (TKA / TKB) to form the tradeable pair.
  • Faucet — 10 TKA per wallet, 24h cooldown. No mint power: it only redistributes a balance the owner funds manually, so a worst-case compromise leaks at most its own reserve.

Two supporting files complete the system: OPNSwapPair (the AMM pool — constant-product invariant, LP mint/burn) and OPNSwapERC20 (base ERC-20 the Pair inherits to issue LP tokens).

Why this design

OPN Chain is fully EVM-compatible, so instead of trusting an undocumented third-party router, every contract here is deployed from scratch on the audited Uniswap V2 pattern — Factory + Pair + Router, 0.3% fee, reentrancy-safe by construction. No OpenZeppelin, no proxies, no upgradeability: access control, the ERC-20 standard, and the fixed-point math are all hand-written, keeping the whole system small enough to read end-to-end in one sitting.

Testnet only. Tokens carry no real value; contracts are unaudited — do not deploy to mainnet or use with real funds.

Roadmap

02/03

What ships next.

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

Q1 2026 — Hardening & audit prep

  • Third-party security review of the Factory/Pair/Router trio before any move past testnet.
  • Add a Hardhat fuzz-testing suite (Echidna or Foundry invariant tests) on top of the existing Chai test suite, targeting the constant-product invariant and the Faucet cooldown logic.
  • Gas profiling pass on OPNSwapRouter and OPNSwapPair swap paths.

Q2 2026 — Feature completeness

  • Multi-hop swap routing in the frontend UI (the Router already supports path[], the UI currently only wires direct pairs).
  • LP position dashboard: add/remove liquidity from the UI, not just via scripts.
  • Price charts and historical swap activity, indexed from on-chain events.

Q3 2026 — Beyond testnet

  • Formal audit and remediation cycle.
  • Mainnet deployment plan contingent on audit results — no mainnet deploy happens without it.
  • Governance/timelock for feeToSetter, replacing the current single-owner control.

This roadmap reflects an early-stage testnet demo: the priority order is security review first, feature breadth second, and mainnet last — deliberately, since a DEX handling real funds inherits all the risk these contracts haven't been audited against yet.

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.

  • 01FaucetPrimary

    0x7e5c2C1c206912692b10A6d3c950e01227DD2006

    tx 0x12e83a223401baf53595711c5069eeeaf863f1528b9a18924f624a20ab25a478

    deployed Jun 21, 2026 · block 19007934

  • 02OPN Test Token B

    0xC3DF6c7d9c2ba5C000f76f33ee3746C042b5a61d

    tx 0x241abb94b68fb0024900ec4c380c269a8bd251f93bc9bc4ab1b9df4dc1a429b6

    deployed Jun 21, 2026 · block 19005860

  • 03OPN Test Token A

    0x91868509607d179781bD5776FBCfCB30Dd5629fE

    tx 0x98a6aa2dae5578661d5f36686d8d565342fb66b3f75d3b6582a759cd524a3320

    deployed Jun 21, 2026 · block 19005856

  • 04OPNSwapRouter

    0xe2bA49F5Cbd691246d11DF2eA01634EA43E624A5

    tx 0xef1f1800a5bc4816d6124dc58797ab630a8256e4c44192be75b96d8715f32aec

    deployed Jun 21, 2026 · block 19005853

  • 05Wrapped OPN

    0x2d66aaC10452fde876a2E46eFD745C30a49B97B4

    tx 0xc833d3998096768bdd6f47f8cb9b3667c13fa6b4b2a802ee5b508934bcf9b35a

    deployed Jun 21, 2026 · block 19005849

  • 06OPNSwapFactory

    0x4642c152796b582f76F724aC031C094ca4e94666

    tx 0x30a8ee1886fb61537cb48c7a3df259a080af61424df4d38a1bfd286178dd7fce

    deployed Jun 21, 2026 · block 19005845