Learn. Earn. Spend. Save. Bridge.
An AI-powered educational platform where users earn AiC (AI Cognitive) tokens with a programmatic 1:1 peg to USDC on Circle's Arc blockchain. Complete with virtual card spending and banking integration for true financial freedom.
This project includes Virtual Visa Card and Fintech Banking features that will be requested from Circle Partner Alliance to complete the fiat-to-crypto ecosystem integration. See CIRCLE_PARTNERSHIP_REQUEST.md for details.
AIC (AI Cognitive Token) is a blockchain-native reward token that:
- Earned through gameplay: Type blockchain vocabulary words correctly
- AI-validated: OpenAI validates accuracy, speed, and cognitive skill
- Programmatically pegged to USDC: Built-in AMM provides liquidity
- Unlimited earning potential: Vocabulary is unlimited, creating deep liquidity
- Real market value: Swap AIC โ USDC โ Any chain via Bridge Kit
- Automated AIC minting upon game completion
- AMM-based swap mechanism (AIC/USDC)
- Real-time liquidity pool management
- Pay-per-performance model for educational content
- AI validates learning outcomes
- Instant micropayments in AIC tokens
- AIC represents cognitive skill (real-world asset)
- Tokenized learning achievements
- Programmatic value transfer based on performance
- OpenAI GPT-4 validates word submissions
- Analyzes accuracy, speed, and cognitive patterns
- Detects cheating and intentional errors
- Calculates fair rewards (100-500 AIC per word)
- Built on Arc's programmable Layer 1 infrastructure
- 1:1 USDC peg via Arc's native FX engine
- No external liquidity pools needed
- USDC as native gas token (few cents per transaction)
- Sub-second finality with instant settlement
- Vocabulary words are unlimited
- Continuous player engagement = constant AIC minting
- Deep liquidity pool forms naturally
- Market value established through gameplay volume
- Swap AIC โ USDC on Arc
- Bridge USDC to Ethereum, Base, Arbitrum, etc.
- Circle Bridge Kit integration
- CCTP for secure transfers
- USDC as native gas token (6 decimals)
- Arc's FX engine for programmatic stablecoin conversion
- Sub-second finality via Malachite consensus
- Predictable, dollar-denominated fees
- Production-ready for mainnet
- Built on Circle's "Economic OS for the internet"
- Spend USDC anywhere Visa is accepted (70M+ merchants)
- Instant crypto-to-fiat conversion at point of sale
- 5% AiC cashback on all purchases
- Real-time card management and security
- ACH transfers (free, 1-3 days)
- Wire transfers (international support)
- Instant withdrawals (seconds)
- Direct deposit integration
- Complete fiat on/off-ramp solution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ USER PLAYS GAME โ
โ Types Vocabulary Words โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI VALIDATION (OpenAI) โ
โ โข Accuracy Analysis โข Speed Check โข Cheat Detection โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AIC TOKEN MINTING (On-Chain) โ
โ ERC20 Contract โ mintGameReward() โ
โ Reward: 100-500 AIC tokens โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AIC BALANCE IN WALLET โ
โ View in MetaMask / Dashboard โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SWAP AIC โ USDC (On-Chain AMM) โ
โ AICSwap Contract โ swapAICForUSDC() โ
โ Programmatic 1:1 Peg Mechanism โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ USDC IN WALLET (Real Value!) โ
โ Ready for bridging โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BRIDGE TO OTHER CHAINS (Circle Bridge Kit) โ
โ Arc โ Ethereum, Base, Arbitrum, Polygon, etc. โ
โ Use anywhere in DeFi! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Location: contracts/AICToken.sol
- Standard: ERC20 with minting capability
- Decimals: 6 (matches USDC on Arc)
- Minting: Authorized minters only (game validators)
- Supply: Initial 1M + unlimited game rewards
- Burn: Users can burn tokens
Key Functions:
mintGameReward(address player, uint256 amount, string submissionId)
burn(uint256 amount)
addMinter(address minter)Location: contracts/AICSwap.sol
- Model: Constant Product (x * y = k)
- Fee: 0.3% per swap
- Slippage: Configurable (default 5%)
- Liquidity: Add/remove permissionlessly
Key Functions:
swapAICForUSDC(uint256 aicIn, uint256 minUsdcOut)
swapUSDCForAIC(uint256 usdcIn, uint256 minAicOut)
addLiquidity(uint256 aicAmount, uint256 usdcAmount)
getAICPrice() // Current market price- Arc Testnet (Chain ID: 5042002)
- Circle USDC (Native gas + swap pair)
- Viem (Ethereum interactions)
- OpenZeppelin (Smart contract standards)
- React + TypeScript
- Tailwind CSS (Modern UI)
- Lucide React (Icons)
- Supabase (Database + Auth)
- Edge Functions (Serverless validation)
- OpenAI GPT-4 (AI validation)
- Circle Bridge Kit (Cross-chain transfers)
- MetaMask (Wallet connection)
- Arc Explorer (Transaction verification)
git clone <your-repo>
cd <project>
npm installSee DEPLOYMENT_GUIDE.md for detailed instructions.
Quick Deploy:
- Open Remix IDE
- Deploy
AICToken.solto Arc Testnet - Deploy
AICSwap.solwith token addresses - Add minter permission for backend
- Add initial liquidity (AIC/USDC)
# Add deployed contract addresses
VITE_AIC_TOKEN_ADDRESS=0x_YOUR_AIC_TOKEN_ADDRESS
VITE_AIC_SWAP_ADDRESS=0x_YOUR_SWAP_ADDRESS
VITE_USDC_ADDRESS=0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
# Backend minter wallet
GAME_MINTER_PRIVATE_KEY=0x_YOUR_BACKEND_PRIVATE_KEYnpm run devnpm run build-
Connect Wallet
- Install MetaMask
- Add Arc Testnet (Chain ID: 5042002)
- Get testnet USDC: https://faucet.circle.com
-
Play Game
- Read vocabulary word
- Type it accurately
- Get AI validation score
- Earn AIC tokens (100-500 per word)
-
Check Earnings
- View AIC balance in wallet
- See total earned in dashboard
- Track transaction history
-
Swap to USDC
- Go to Swap tab
- Enter AIC amount
- Get quote with 0.3% fee
- Confirm swap
- Receive USDC instantly
-
Bridge to Other Chains
- Go to Bridge tab
- Select destination chain
- Transfer USDC via CCTP
- Use anywhere!
Arc Explorer: https://testnet.arcscan.app
-
Mint AIC Tokens (play game)
- Transaction:
mintGameReward() - Verify on explorer
- Check wallet balance
- Transaction:
-
Approve AIC for Swap
- Transaction:
approve(swapAddress, amount) - Required before swap
- Transaction:
-
Swap AIC โ USDC
- Transaction:
swapAICForUSDC() - Check USDC received
- Verify price accuracy
- Transaction:
-
Bridge USDC Cross-Chain
- Use Bridge Kit
- CCTP transfer
- Receive on destination chain
-
Arc Network's Native FX Infrastructure
- AIC leverages Arc's built-in FX engine
- Programmatic 1:1 peg to USDC at protocol level
- No manual liquidity pools required
- Automated conversion between stablecoins
-
Unlimited Supply from Gameplay
- Vocabulary words are infinite
- Players continuously earn AIC
- Constant minting = growing value
-
Market Value via Arc Protocol
- Arc's FX engine maintains price stability
- Instant delivery-versus-payment (DvP)
- Institutional-grade settlement
-
Real Utility
- Educational performance = real value
- Cognitive skills tokenized
- Transferable, tradeable, valuable
When Arc launches mainnet (2026):
- Deploy production AIC token
- Migrate liquidity pool
- Real USDC pairing
- Players swap massive AIC earnings โ Real USDC
- Bridge to any chain
- Trade anywhere in DeFi
- โ OpenZeppelin audited contracts
- โ ReentrancyGuard on all swaps
- โ Slippage protection
- โ Authorized minters only
- โ AI cheat detection
- โ RLS policies on database
- โ Edge function validation
- users: Wallet addresses, total earnings
- word_submissions: Game results, AI scores
- token_transactions: All AIC mints/swaps
- vocabulary_words: Word bank with difficulty
- Build:
npm run build - Deploy to Vercel/Netlify/Cloudflare Pages
- Use Remix IDE
- Deploy to Arc Testnet
- Verify on Arc Explorer
- Supabase Edge Functions
- Auto-deployed on git push
[Link to demo video showing full flow]
- โ Play game, earn AIC tokens
- โ AI validation in action
- โ Check balance in MetaMask
- โ Swap AIC โ USDC
- โ Verify ALL transactions on Arc Explorer
- โ Bridge USDC to another chain
- โ Show liquidity pool statistics
- โ AIC token deployment
- โ Swap mechanism
- โ Game integration
- โ Bridge integration
- Deploy to Arc Mainnet
- Real USDC liquidity
- Production economics
- Marketing push
- Multi-language support
- Mobile apps
- Educational partnerships
- DeFi integrations
- AIC lending/borrowing
- NFT achievements
- Leaderboards with stakes
- Tournament mode
Built for Circle's AI Agents on Arc with USDC Hackathon
MIT License - Built with Circle's Arc blockchain
- Arc Docs: https://docs.arc.network
- Arc Explorer: https://testnet.arcscan.app
- Circle Bridge Kit: https://developers.circle.com/bridge-kit
- USDC Faucet: https://faucet.circle.com
- Remix IDE: https://remix.ethereum.org
Questions? Issues? Reach out:
- GitHub Issues
- Arc Discord
- Circle Developer Forum
This project demonstrates: โ Real working prototype on Arc Testnet โ AI-powered payment system โ Programmatic USDC pegging โ Cross-chain functionality โ Production-ready architecture โ All transactions verifiable on-chain
Let's build the future of AI + blockchain payments! ๐