All projects

evmX — Autonomous Community Reward Protocol

Autonomous 3-tier ERC-20 reward protocol on Base L2 powered by Chainlink CRE, VRF v2.5 & Data Feeds

DeFi & Tokenization CRE & AI Tenderly

What it is

evmX is an autonomous community reward protocol deployed on Base L2. Users trade evmX tokens, and a 3% buy/sell tax fills three reward pools: Micro (fast, small rewards), Mid (medium rewards), and Mega (weekly jackpot). 

The protocol uses 3 Chainlink services:

  • CRE: 2 workflows — Autonomous Rewards (cron-triggered pool monitoring + execution) and Event Monitor (real-time PoolAllocated event tracking)
  • VRF v2.5: Provably fair random winner selection with native ETH payment
  • Data Feeds: ETH/USD price reference for real-time USD valuations

Key features: Smart Ladder dynamic thresholds, anti-whale protection (4% max wallet), same-block trade protection, emergency fallback with on-chain entropy, and multi-entry system (up to 3 entries per cycle per pool).

The contract is 1,385 lines of Solidity, fully verified on BaseScan, with 174 tests (Foundry + Hardhat) covering attacks, fuzz, invariants, economic stress, and Base Mainnet fork scenarios.

Launch plan: 100% of hackathon prize funds will be allocated to Uniswap V2 liquidity on Base Mainnet, with LP tokens permanently burned and ownership renounced — making evmX a truly unstoppable autonomous protocol.

How it Works

Smart Contract: 1,385 lines of Solidity 0.8.28, deployed on Base L2 (Sepolia testnet). Built with Hardhat + Foundry dual framework, OpenZeppelin (ERC20, Ownable, ReentrancyGuard).

Chainlink Integration:

  • VRF v2.5: fulfillRandomWords callback for random winner selection (native ETH payment, 2.5M gas callback limit)
  • CRE: 2 TypeScript workflows using @chainlink/cre-sdk — Autonomous Rewards (cron trigger + callContract + writeReport) and Event Monitor (EVM log trigger on PoolAllocated events)
  • Data Feeds: ETH/USD AggregatorV3Interface for real-time USD price display

Frontend: Single-page HTML/JS dApp with ethers.js v6, cosmic UI theme, real-time contract reads, MetaMask wallet integration.

DEX: Uniswap V2 Router on Base for automatic token→ETH swaps (tax collection).

Testing: 174 tests — Foundry (121: attacks, fuzz, invariants, formal properties, edge cases, economic stress) + Hardhat (53: unit, integration, 50-bot stress, Base Mainnet fork tests).

All code verified on BaseScan. Contract address: 0x4AfdC83DC87193f7915429c0eBb99d11A77408d1

Links

Created by

  • Gábor Gömöri