Smart Contract

TensorUSDT Smart Contrat is an upgradeable ERC20 token contract built using OpenZeppelin's upgradeable contract library. Let me break down its components and functionality:

Contract Architecture

The contract uses the UUPS (Universal Upgradeable Proxy Standard) pattern, which allows the contract logic to be upgraded while maintaining the same contract address and state.

Inherited Contracts:

  1. Initializable - Ensures initialization happens only once (replaces constructor)

  2. ERC20Upgradeable - Standard token functionality (transfer, balance, etc.)

  3. ERC20BurnableUpgradeable - Adds token burning capability

  4. OwnableUpgradeable - Access control with owner privileges

  5. ERC20PermitUpgradeable - Gasless approvals using EIP-2612 signatures

  6. UUPSUpgradeable - Upgrade mechanism


Token Features

Feature
Description

Standard ERC20

Transfer, approve, balanceOf, etc.

Burnable

Token holders can destroy their tokens

Mintable

Create new tokens

Permit

Gasless approvals via signatures

Upgradeable

Contract logic can be updated

Ownable

Centralized control by owner

Last updated