First social DEX with ERC-7715 automated copy trading. Follow traders, auto-copy swaps in <5s via MetaMask permissions. Real-time indexing by Envio. Fully non-custodial.
The First Social DEX with Under 5 Second Automated Copy Trading
metacow.vercel.app | Twitter @metacowdex | YouTube Demo
Powered by ERC-7715 Advanced Permissions & Envio Real-Time Indexing
A revolutionary decentralized exchange combining social trading with automated copy trading - follow successful traders and automatically replicate their trades in under 5 seconds without manual approvals.
Trader swaps, Envio indexes in under 1 second, your trade executes automatically, all non-custodial.
One permission. Zero approvals. Infinite trades.
Novel Innovation: First-ever automated social copy trading using ERC-7715
Real Problem Solved: Eliminates approval fatigue (users normally need 10-20 approvals per day)
Session Account Pattern: Backend bot executes trades via delegated permissions
Fine-Grained Control: Daily spend limits per token (e.g., 10 USDC per day)
Time-Bounded Security: 30-day expiration with instant revocation
Production Ready: Fully functional demo with real blockchain transactions
The Flow:
User grants permission, session account created, bot monitors Envio, trader swaps, bot executes copy in under 5 seconds, user earns automatically.
Critical Dependency: Copy trading impossible without Envio's speed
5 Key Integrations:
Copy Trade Triggers: WebSocket notifications enable under 5 second execution
Real-Time Social Feed: All swaps indexed instantly for transparent tracking
Price Charts: Historical data powers trading analytics
Volume Tracking: 24 hour volume and APR calculations
User History: Complete trade history via GraphQL
Performance:
Sub-second indexing enables our core feature
GraphQL plus WebSockets for maximum flexibility
Indexes 4 event types: Swapped, LiquidityAdded, LiquidityRemoved, PairCreated
Active journey documentation on Twitter @metacowdex:
Development progress updates
ERC-7715 benefits showcases
Community engagement with @MetaMaskDev tags
Screenshots and demo videos
Traditional Copy Trading:
30-60 second execution delays
Manual approval per trade
Centralized custody
Opaque track records
Price slippage losses
MetaCow DEX:
Under 5 second execution
One-time permission
100% non-custodial
On-chain reputation
Minimal slippage
Set & Forget: Grant permission once with daily limits
Lightning Fast: Sub-5 second trade replication
Your Keys: Funds never leave your smart account
Full Control: Pause or revoke anytime
Real-Time: Every trade appears instantly
Follow Top Traders: See their moves first
Engage: Like, comment, share strategies
Transparent: All trades on-chain and verified
Swap: Any token pair, 0.3% fees
Liquidity: Earn fees as LP provider
Rewards: Claim and auto-reinvest
Charts: Live price data
On-Chain Scores: Based on LP provision, profit and loss, engagement
Trust Badges: Identify top performers
Rankings: Discover best traders
ERC-7715 Advanced Permissions - Delegated transaction execution
MetaMask Smart Accounts Kit - Account abstraction (ERC-4337)
Envio - Sub-second blockchain indexing and GraphQL API
Pimlico - ERC-4337 bundler for gas optimization
Frontend: Next.js 14, TypeScript, Tailwind CSS, Viem
Backend: Railway, Node.js, MongoDB
Blockchain: Solidity 0.8.22, OpenZeppelin Upgradeable, UUPS Proxy
Network: BNB Testnet (EIP-7702 supported)
User Interface (Next.js) connects to MongoDB plus Railway Backend, which connects to Envio Indexer (under 1 second latency), which connects to BNB Testnet Blockchain containing Factory Contract (UUPS), Pair Contracts (UUPS), and Smart Accounts (ERC-4337 plus 7715), which connects to Pimlico Bundler.
Trader swaps
Envio indexes event (under 1 second)
Backend bot receives WebSocket notification
Bot checks copy permissions
Session account executes trade via ERC-7715
Follower's trade completed (under 5 seconds total)
Social feed updates in real-time
User grants permission via MetaMask Flask with the following parameters: chain ID 97, expiry of 30 days from current time, session account address as signer, and permission type "erc20-token-periodic" with token address, period amount of 10 tokens per day, period duration of 1 day, and justification "Auto-copy trades with 10 USDC daily limit."
Daily spending caps
Time-limited (30 days)
Revocable anytime
Token-specific
Non-custodial
Networks include BNB Testnet with ID 97 starting at block 44826265.
Contracts include MiniDexPair with events: Swapped, LiquidityAdded, and LiquidityRemoved.
Queries retrieve latest swaps with user, input token, output token, input amount, output amount, and transaction hash data.
WebSocket listens for incoming swap messages, retrieves copy permissions for the trader, and executes copy trades for all copiers automatically.
MiniDexFactoryUpgradeable.sol - Pair creation and reputation management
MiniDexPairUpgradeable.sol - AMM logic, swaps, liquidity, rewards
UUPS Upgradeable - Future-proof without redeployment
Constant Product AMM - x times y equals k formula
0.3% Trading Fees - Distributed to LP providers
On-Chain Reputation - Score calculation in contract
LP Rewards - Claimable plus auto-reinvest
Trading functions include swap. Liquidity functions include add liquidity and claim and reinvest. Analytics functions include get reputation score and get APR.
Swap Fee: 0.3%, with 100% going to LP Providers.
Score equals LP Share divided by 1e14 (maximum 10,000 points), plus Rewards Claimed divided by 1e16 (engagement bonus), plus Trading Profit divided by 1e16 (success bonus), minus Trading Loss divided by 1e16 (risk penalty).
Example: User with 10% LP, 50 USDC rewards, 200 USDC profit, 30 USDC loss receives a score of 32,000 points (10,000 plus 5,000 plus 20,000 minus 3,000).
Frontend: metacow.vercel.app
Backend: Railway (session accounts plus copy bot)
Envio: GraphQL endpoint plus WebSocket
BNB Smart Chain Testnet (Chain ID: 97) with Factory and Pairs (TKA/TKB, TKA/USD, TKB/USD), verified on BscScan.
Install MetaMask Flask
Visit metacow.vercel.app
Connect wallet
Make a swap or enable copy trading
Find a trader in Social feed
Click "Auto Copy"
Set daily limit (e.g., 10 USDC)
Approve permission in MetaMask Flask
Done! Future trades auto-copy in under 5 seconds
Dhruv Pancholi - Solo Developer
Website: metacow.vercel.app
Twitter @metacowdex
MetaMask Smart Accounts Kit
ERC-7715 Specification
Envio Docs
MetaMask Team - ERC-7715 innovation
Envio Team - Blazing-fast indexing
OpenZeppelin - Secure contract libraries
Pimlico - ERC-4337 infrastructure
Built for MetaMask Advanced Permissions Dev Cook-Off
Last Updated: December 26, 2025 | Version: 1.0.0 | Status: Live
95% build is done
50$ in Fair3hackathon