1️⃣TokenRegistry.sol

The TokenRegistry contract is the core contract that manages the registration and approval of tokens.

Key Features

  • Maintains a list of tokens and their statuses (Pending, Approved, Rejected)

  • Validates token contracts by checking ERC20 compliance

  • Stores and updates token metadata

  • Provides query functions for token information

Events

event TokenAdded(address indexed contractAddress, address indexed submitter);
event TokenApproved(address indexed contractAddress);
event TokenRejected(address indexed contractAddress, string reason);
event TokenUpdated(address indexed contractAddress);
event TokentrollerUpdated(address indexed newTokentroller);

Relevant functions

// For Token Management
function addToken(address contractAddress, MetadataInput[] calldata metadata) external
function approveToken(address contractAddress) external
function rejectToken(address contractAddress, string calldata reason) external

Last updated