Overview

This section provides detailed technical reference for the WTD Token Protocol smart contracts.

  • Roles & Permissions — All roles across all contracts with their capabilities: roles-and-permissions.md

  • Errors — All custom error types grouped by contract: errors.md

  • Events — All events grouped by contract with parameter descriptions: events.md

Contract Addresses

Contract addresses vary by network. Check the project's deployment records for the latest addresses on:

  • Base (mainnet)

Solidity Version

All contracts target Solidity ^0.8.28 with optimizer enabled (200 runs) and via_ir.

Dependencies

Dependency
Version
Usage

OpenZeppelin Contracts

v5.1.0

ERC20, AccessControl, ReentrancyGuard, SafeERC20, UUPS

OpenZeppelin Contracts Upgradeable

v5.1.0

Upgradeable token base contracts

Uniswap v4 Core

Latest

PoolManager, PoolKey, Currency

Uniswap v4 Periphery

Latest

PositionManager

Chainlink

Latest

ETH/USD price feed

Last updated