Back to projects
DeFi · Tokenomics

JudgeToken

ERC-20 governance token with tiered staking

Contracts
4
Test suites
4
Max supply
500M
Status
Verified on Sepolia

Overview

JudgeToken is a complete staking and rewards ecosystem built to deepen my understanding of advanced reward accounting and treasury mechanics.

The protocol mints a capped 500M-token supply, distributes base and bonus rewards on a quarterly cadence, and lets stakers choose lock-up periods with scaled early-exit penalties.

It's the most reward-math-intensive project in my portfolio — the accounting handles stale quarters, bonus gating, and pro-rata distribution per block.

Key highlights

  • 4-contract ecosystem: JudgeToken (ERC-20 + Burnable + Permit + Votes), JudgeTreasury, RewardsManager, and JudgeStaking.
  • Pro-rata reward accounting via accJudgePerShare / accBonusJudgePerShare computed per block.
  • Scaled early-withdrawal penalties (up to 20%) that reward longer lock-ups while preserving flexibility.
  • Permissionless updatePool() that safely settles lagging quarters (capped at 4 per call to prevent DoS).

What it does

  • Capped 500M supply with quarterly reward blocks (~648,000 blocks ≈ 90 days)
  • Bonus rewards gated behind base-reward settlement to prevent gaming
  • Multi-token recovery system with bounded recovery fees for accidentally sent tokens
  • Circular-dependency-safe deployment order with post-deploy role grants
  • SafeERC20 + ReentrancyGuard + CEI throughout; storage layout captured for analysis

Tech stack

Solidity ^0.8.20FoundryOpenZeppelin (SafeERC20, AccessControl, Math)Forge Script (deploy + verify)Sepolia Testnet