Demo · sample data
DEX Swap & NFT Mint
AMM swap quote with slippage, plus an NFT mint card
rajibsai.com/demos/dex-nft
ETH
You receive (est.)
USDC
Slippage
- Rate
- 1 ETH ≈ 3,300 USDC
- Price impact
- 0.51%
- LP fee (0.3%)
- 0.0075 ETH
- Min. received
- 8,167.16 USDC
Genesis Orbs
Mock collection · testnet-style flow
0 / 1000 minted in this demo
Constant-product AMM math (x·y=k) with a 0.3% LP fee, price impact and slippage protection — the same building blocks used in production DEX front ends wired to Ethers.js.
About this demo
A constant-product AMM quote engine with price impact, LP fee and minimum received, next to a generative NFT mint card. It is the same flow I wire up with Ethers.js and Web3.js for real DEX and NFT front ends.
Features
- Swap quotes with rate, price impact and 0.3% LP fee
- Slippage tolerance and minimum received
- Generative NFT preview with a testnet-style mint flow
- Wallet-free: runs on mock pools only
Tech used
SolidityReactEthers.jsWeb3.jsNode.js
Use cases
- DEX and AMM launches or forks
- Liquidity pools, farms and launchpads
- NFT minting sites and marketplace front ends
Want the production version?
Real contracts, APIs and integrations, scoped to your project.