Neat Swap

An AMM that adjusts its swap fee on every trade to undercut competing exchanges.

Neat Swap

Created At

ETHGlobal Mumbai

Project Description

neat swap is a token exchange that adjusts its trading fee for every swap instead of using a fixed fee. Before a trade, an off-chain service checks competing exchanges and calculates a fee just below the lowest one it finds. The idea is simple: give traders a lower fee while helping liquidity providers attract more trades. It’s deployed on Base, with a small live pool for testing. A lower fee doesn’t guarantee the best overall swap price, since liquidity and price impact also matter.

How it's Made

We built neat swap with Solidity and Uniswap v4. A custom hook changes the pool’s fee when a swap happens. A Node.js service checks competing venues, calculates the fee and signs a quote. Our router passes that quote to the contracts, which use it to apply the fee. We used Foundry for contract development and testing, then deployed on Base. For now, the quote service is trusted, so the system depends on it providing accurate information.

background image mobile

Join the mailing list

Get the latest news and updates

Neat Swap | ETHGlobal