← Back to ProjectsNovember 4, 2026. Posted by Peach
Blockchain DEX project!

One of the most fun mods I’ve taken at NTU: SC4053 Blockchain Technology 🦇
For our development project, my team and I built Batman DEX, a decentralized exchange on Ethereum where users never hand their keys to anyone. Funds stay in their own MetaMask wallet, and the smart contracts only match and settle trades between users. No admin, no owner, nobody (not even us) can move user funds.
What it does:
- Anyone can issue their own ERC20 token and list it for trading
- An on-chain order book with limit orders, price-time priority and partial fills
- Cancel orders anytime and get the unfilled part back
- Stop-limit orders that wait off the book until the market reaches your trigger, then activate automatically via a keeper script
- Sealed-bid batch auctions: traders commit hidden orders, reveal them later, and everyone trades at one fair clearing price, so nobody can see your order and jump ahead of it
I lerned that in a smart contract, every loop costs gas, so the matching engine has to be bounded or a single order could become impossible to execute. AI coding tools are powerful but confidently wrong sometimes. We kept an AI audit log of every bug the AI introduced and wrote a test to prove each fix (73 tests, near 100% coverage)
Built with Solidity, Hardhat, OpenZeppelin, Next.js and ethers.js.
Huge thanks to my teammates. And thank you to the SC4053 teaching team for such a hands-on mod! :)