___ _ _ ___ | _ (_)_ _____| / __|_ __ ____ _ _ __ | _/ \ \ / -_) \__ \ V V / _` | '_ \ |_| |_/_\_\___|_|___/\_/\_/\__,_| .__/ |_| A decentralized exchange on the Polygon Amoy Testnet using an AMM model with token swaps, liquidity provision, and live market data.█PixelSwap
PixelSwap is a fully functional decentralized exchange built on the Polygon Amoy Testnet, developed as a university project to explore the architecture of DeFi protocols and on-chain smart contract interactions. The platform allows users to swap between MATIC and a custom ERC-20 token (SWP) using an Automated Market Maker (AMM) model with a 0.3% fee mechanism — modelled after Uniswap V1. Real-time price calculation uses the getAmountOfTokens constant-product formula, ensuring accurate slippage estimates before every trade. Users can also provide liquidity to the pool and receive LP tokens proportional to their share, which entitle them to a cut of all trading fees. Removal burns LP tokens and returns the underlying assets. A live market data panel fetches MATIC price and a 7-day sparkline chart from the CoinGecko API, and a crypto news feed on the Explore page keeps traders informed. Wallet connectivity is handled by ThirdwebProvider, supporting MetaMask and WalletConnect out of the box. The custom Solidity smart contract is deployed directly on-chain on Polygon Amoy.