A DeFi dApp on Arc Network featuring token swapping, lending/borrowing, and a tier-based faucet system.
- Dashboard: View your portfolio and token balances
- Swap: Swap between USDC, CAT, DARC, and PANDA tokens
- Lend/Borrow: Supply collateral, withdraw, borrow, and repay tokens
- Faucet: Claim test tokens based on your USDC balance tier
- Activity: View your transaction history
- Install dependencies:
npm install-
Update contract addresses in
src/constants/contracts.js:- Update
CAT,DARC,PANDA,USDCtoken addresses - Update
FAUCET,SWAP_ROUTER,LENDING_POOLcontract addresses
- Update
-
Start the development server:
npm run dev- Open your browser to
http://localhost:5173
The dApp integrates with three main contracts:
- FlowOnArcFaucet: Tier-based token faucet with cooldown periods
- FlowSwapRouter: AMM-style token swap router
- FlowLendingPool: Lending and borrowing protocol
- Chain: Arc Testnet
- Chain ID: 5042002
- RPC: https://arc-testnet.drpc.org
- CAT: CAT Token (18 decimals)
- DARC: DARC Token (18 decimals)
- PANDA: PANDA Token (18 decimals)
- USDC: USDC (6 decimals) - used for faucet tier system
Bot and scraper traffic is managed via public/robots.txt, which blocks aggressive crawlers (AI scrapers, SEO bots) and restricts access to app routes while allowing search engines to index the landing page.
MIT