opnswap
Swap any token. Fast, cheap, on-chain
by ogharka · submitted Jun 13, 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 is OPN Swap?
OPN Swap is a decentralized token swap aggregator built natively on the IOPN testnet. Users can swap ERC-20 tokens directly on-chain using an AMM with constant-product formula (x × y = k).
What I Built ?
Smart Contracts (Solidity — OPN Testnet, Chain ID 984)
OPNSwap.sol — AMM router with liquidity pools, swap routing, and OPN fee collection WOPN.sol — Wrapped OPN so native OPN can participate in liquidity pools MockToken.sol — USDC, WETH, DAI, USDT with built-in testnet faucet
Key mechanics:
Every swap charges a 0.001 OPN fee routed to the fee collector Constant-product AMM: x * y = k 0.25% pool fee to liquidity providers
Frontend (React + Ethers.js)
Real-time swap quotes from on-chain contracts Slippage tolerance settings MetaMask wallet connection with auto network switch to OPN Live token balances and faucet button Transaction explorer links
Why I Built It
I've been in crypto since 2016, self-taught. I wanted to prove I could build something real and functional on IOPN — not just deploy a template but write contracts from scratch and wire them to a live UI. Jumper.xyz inspired the design. Links
- Live app: https://opn-swap.vercel.app
- GitHub: https://github.com/ogharka/opn-swap
- OPNSwap contract: 0x01cbB7e8E5FDb181c652A0208836307cD3AB7efb
- WOPN contract: 0x1946fa8DB3BB70A88E7E743fd81EccFe343DdaC2
Roadmap
02/03
What ships next.
The builder's own next-quarter plan. Use it to gauge follow-through and ambition.
Q3 2026 — Core Fixes
- Verify all contracts on IOPN explorer
- Add real price feeds via oracle
- Better price impact warnings
- Transaction history for wallet
- Mobile UI improvements
Q4 2026 — Liquidity & Trading
- Liquidity provider dashboard (add/remove from UI)
- Limit orders
- Multi-hop routing (DAI → WOPN → WETH)
- More trading pairs and deeper pools
- Top liquidity provider leaderboard
2027 — Mainnet Prep
- Full smart contract security audit
- Deploy to IOPN Mainnet
- Bridge support from Ethereum and Base
- Protocol governance token launch
- Fee sharing with liquidity providers
- Analytics dashboard — volume, TVL, fees
Long Term
- Default swap layer on IOPN
- Aggregate liquidity from multiple DEXs
- Mobile app (iOS + Android)
- DAO governance for fees and token listings
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.