Tokens & Apps · ERC-20 from scratch · 2026Verified on Sepolia
StableX
An ERC-20 built without OpenZeppelin core: capped supply, role-based minting and USDC-style blacklisting.
- Implementation
- Zero OZ core
- Access
- 2-role model
- Tests
- 31 total
01 The problem
Stablecoin-style tokens need more control than a plain ERC-20 (minting authority, freezing and supply caps) without giving one key total power.
A custom ERC-20 written from scratch, with two separate role mappings and a deployer that holds no privileges after deployment.
02 How it works
Hover or tap a step
03 What I built
- 01A hard-capped supply with separate MINTER and BLACKLISTER roles.
- 02Blacklist checks on sender, receiver and operator in transferFrom.
- 03Infinite allowances that are never decremented, saving gas for integrations.
- 0431 unit, fuzz and invariant tests, with a documented comparison against OpenZeppelin.
06 Verify it on-chain
StableX
Sepolia