Skip to content

heyeren2/Flow-On-Arc

Repository files navigation

Flow On Arc

A DeFi dApp on Arc Network featuring token swapping, lending/borrowing, and a tier-based faucet system.

Features

  • 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

Setup

  1. Install dependencies:
npm install
  1. Update contract addresses in src/constants/contracts.js:

    • Update CAT, DARC, PANDA, USDC token addresses
    • Update FAUCET, SWAP_ROUTER, LENDING_POOL contract addresses
  2. Start the development server:

npm run dev
  1. Open your browser to http://localhost:5173

Contract Integration

The dApp integrates with three main contracts:

  1. FlowOnArcFaucet: Tier-based token faucet with cooldown periods
  2. FlowSwapRouter: AMM-style token swap router
  3. FlowLendingPool: Lending and borrowing protocol

Network

Tokens

  • CAT: CAT Token (18 decimals)
  • DARC: DARC Token (18 decimals)
  • PANDA: PANDA Token (18 decimals)
  • USDC: USDC (6 decimals) - used for faucet tier system

Security

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.

License

MIT

About

Start interacting on Arc with Flow On Arc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors