OPNSwap - The AI Dex on IOPN
AMM DEX on OPN Chain with an AI Trading Copilot and on-chain Risk Score
by _tieuyen · submitted Jun 6, 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
OPNSwap is a permissionless AMM DEX we built natively for OPN Chain (IOPn) — a complete, self-contained DeFi stack: Swap, Liquidity, Farms & Staking, a Merkle-based Airdrop, and an on-chain Analytics dashboard, with our own clean trading interface. On top of the exchange we engineered two AI features wired directly into the trading flow: an AI Trading Copilot and an on-chain AI Risk Score.
Everything is deployed and source-verified by us on OPN Chain testnet (chainId 984) and tested end-to-end with real on-chain transactions.
Why
DeFi UX still hides real risk: thin liquidity, price impact, and impermanent loss are invisible until you lose money. OPN Chain positions itself as infrastructure for AI — so we built an AI layer that explains risk in plain language, grounded in live on-chain data. Not a chatbot bolted on, but analysis tied to the exact swap you're about to make.
How it works
- AMM core: our own
Factory/Pair/Routercontracts inSolidity 0.8.24(battle-tested constant-product model),0.30%LP fee,WOPNwrapper for native OPN swaps. - Tokenomics:
OSWAPutility token (capped100M) + aMasterChefrewards engine for farms/staking with per-block emissions, built on audited OpenZeppelin libraries. - Airdrop: Merkle-proof
claim()— gas-efficient and double-claim protected. - AI Risk Score: rates every swap
0–100client-side from real reserves (TVL depth,x*y=kprice impact, token verification). - AI Copilot: a backend proxy (API key never exposed to the frontend) that explains slippage, impermanent loss, and why a swap loses value; it falls back to our offline heuristic engine so it never breaks in a demo.
- Analytics: live TVL, pool breakdown, and
OSWAPemission read straight from chain. - Bilingual UI (English / Vietnamese).
Deployed & verified (testnet, chain 984)
Router 0xe3Bb1A8Fca436599A6FA15908e8a01767c565BCc
Factory 0x45a9bF3Bc8f67Ce0f74d0a184713A00AC7B6DA50
OSWAP 0x7e59817450beF2B86857b6773beC3121A709218A
MasterChef 0x9991AeC4339f6B842f8bacE920fA4Fa8557D1f79
Airdrop 0xC6204Ac659178fbEa0058324173020919B6cd103
Try it
- Live demo: https://dex-on-iopn.vercel.app
- Code: https://github.com/tieuyen1s/Dex-On-IOPN
- Contracts verified on https://testnet.iopn.tech
Roadmap
02/03
What ships next.
The builder's own next-quarter plan. Use it to gauge follow-through and ambition.
Now — Q3 2026 (live on testnet)
- AMM core (
Factory/Pair/Router), Farms & Staking, Merkle Airdrop — deployed & source-verified on OPN Chain testnet (chain 984) - AI Risk Score + AI Trading Copilot wired into the swap flow
- On-chain Analytics dashboard, bilingual UI (EN/VI)
Q4 2026 — Hardening & community
- Third-party security audit of all contracts; add a timelock + multisig on admin roles
- Incentivized testnet: trading competitions and the first OSWAP airdrop to early testers, LPs, and farmers (Merkle-based claim already live)
- Multi-hop routing + slippage-optimized swaps; price oracle (TWAP already built into
Pair)
Q1 2027 — Mainnet & TGE
- Mainnet launch on OPN Chain
- OSWAP TGE (Token Generation Event): public token generation with transparent allocation — community/airdrop, liquidity, farms, team (vested), and ecosystem reserve
- Initial liquidity bootstrapping + launch farms; list
OSWAPpairs - Retroactive airdrop distribution to verified testnet participants
Q2 2027 — AI-native DeFi
- Agent-managed liquidity vaults: deposit once, an AI agent auto-rebalances LP positions to optimize yield and reduce impermanent loss
- AI Copilot upgraded to execute guided actions (suggested routes, one-click rebalance)
- Leverage OPN Chain's subsidized GPU compute for on-chain price/volume models
Beyond
- Concentrated liquidity (V3-style) pools
- Cross-chain swaps via IBC once OPN Chain enables it
- DAO governance with
OSWAP(fee-sharing + emission control)
On-chain proof
03/03
9 contracts on OPN Chain.
The chain itself confirmed every deployment is valid, signed by the builder's wallet, and inside the season's window.