{"repo":"YSMsimon/mydex","free":true,"listed":false,"github":"https://github.com/YSMsimon/mydex","clone":"git clone https://github.com/YSMsimon/mydex.git","description":"Uniswap V2 token swap interface with MetaMask integration","language":"Solidity","stars":38,"topics":["dex","erc20","ethereum","html","javascript","metamask","token-swap","uniswap"],"license":null,"category":"blockchain-web3","readme_excerpt":"Uniswap V2 Token Swap Interface --- --- A simple Uniswap V2-style token swap interface built with HTML + JS + MetaMask + Ethers.js . - Frontend: public/index.html , public/swap.js - Example contracts: contract/factory.sol , contract/router.sol (placeholders for your own UniswapV2-compatible contracts) Deploy Your Own Contracts ----------------------------------- If you want your own Factory/Router. The repo includes placeholders in contract/ — you can replace them or point to your own. --- ⚙️ Setup / Usage 1. Deploy contracts - Deploy your Factory contract. - Deploy your Router contract and link it to the Factory. 2. Prepare tokens - Add liquidity or approve token spending for the Router. 3. Configure frontend - Update routerAddress in swap.js . 4. Run locally bash cd public python3 -m http.server Frontend Configuration ---------------------- Once deployed, update the frontend addresses: - Open public/swap.js - Set routerAddress to your deployed router - Update tokenAddresses to the ERC-20 tokens on your network","default_branch":null,"files":null,"tree":[],"storefront":"/r/YSMsimon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YSMsimon/mydex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}