Developer Guide
All USDT0 Network tokens (USDT0, XAUt0, CNHT0) are Omnichain Fungible Tokens (OFT). The OFT standard allows tokens to move seamlessly across multiple blockchains using LayerZero's messaging protocol, ensuring a unified supply across all chains. USDT0 Network tokens leverage LayerZero's infrastructure to enable secure and efficient cross-chain transfers.
1. Architecture Overview
The USDT0 implementation separates token functionality from cross-chain messaging. This split enables independent upgrades of token and messaging components while maintaining consistent token behavior across chains.
Core Components
The implementation consists of three main components:
OAdapterUpgradeable (on Ethereum):
Implements LayerZero OFT functionality for Ethereum
Handles both sending and receiving cross-chain messages
Interfaces directly with the source TetherToken contract on Ethereum
Locks/Unlocks tokens for cross-chain transfers
OUpgradeable (on other chains):
Implements LayerZero OFT functionality for other chains
Handles both sending and receiving cross-chain messages
Interfaces with the TetherTokenOFTExtension (or equivalent)
Controls minting/burning for cross-chain transfers
TetherTokenOFTExtension (on other chains):
Offers mint/burn interface for the OFT
Component Interaction Diagram
The graphic illustrates how USDT0 tokens are transferred across Ethereum, Chain A, and Chain B:

Ethereum → Chain B:
USDT0 Adapter locks tokens on Ethereum
A LayerZero message triggers USDT0 OFT on Chain B to mint equivalent tokens
Chain B → Chain A:
USDT0 OFT burns tokens on Chain B
A message triggers USDT0 OFT on Chain A to mint the equivalent
Chain A → Ethereum:
USDT0 OFT burns tokens on Chain A
A message instructs the USDT0 Adapter to unlock tokens on Ethereum
The flow ensures consistent token supply across chains.
2. Interfaces Reference
Token Interfaces
All USDT0 tokens implement the following standard interfaces:
ERC20
ERC20Permit (EIP-2612)
EIP-3009 (Gasless transfers)
Key public functions for integration:
OFT Interfaces
The OFT implementation provides cross-chain transfer functionality through LayerZero:
The OFT interface is consistent across all chains, whether using OAdapterUpgradeable on Ethereum or OUpgradeable on other chains. The only difference is that on Ethereum, users need to approve the OFT adapter to spend their tokens before calling send.
Example: Bridging from Ethereum to Arbitrum
The following example shows how to bridge tokens from Ethereum to Arbitrum, including necessary approvals and parameter handling. This example uses USDT0, but the same code works for XAUT0 and CNHT0 by changing the token and OFT addresses.
3. Security Configuration (DVNs)
USDT0 tokens utilize a dual-DVN security configuration requiring verification from:
LayerZero DVN
USDT0 DVN
Both DVNs must verify the payloadHash before a cross-chain message can be committed for execution. This setup ensures enhanced security through independent verification of all cross-chain transfers.
For detailed information about LayerZero DVNs and security stacks, refer to: https://docs.layerzero.network/v2/home/modular-security/security-stack-dvns
4. Legacy Mesh (USDT0-Specific)
The Legacy Mesh is a cross-chain liquidity network for USDT that connects legacy deployments on Ethereum, Arbitrum, Celo, Tron, and TON. It enables USDT transfers across chains without minting or burning. Instead, it uses a credit-based system where liquidity is locked and unlocked between smart contract pools on each chain.
At its core is the UsdtOFT contract, which implements LayerZero's IOFT interface for compatibility with standard OFT tooling. Unlike standard OFT contracts, UsdtOFT does not alter token supply—it moves USDT by crediting and debiting pool balances.
Key Mechanics
Fee-based Transfers: A small fee (in basis points) is deducted from each transfer. The feeBps variable defines the rate.
Interface Support:
quoteOFT(): Returns transfer limits, expected amounts, and feesquoteSend(): Returns LayerZero messaging feessend(): Executes the cross-chain transfer and applies fees
This mechanism enables seamless interoperability across non-upgradeable USDT deployments.
Please note: When an upgrade is processed, the entire Legacy Mesh infrastructure smart contracts are migrated as a whole. If your application integrates Legacy Mesh directly at the smart contract level, we recommend reaching out to [email protected]. This ensures you have a direct communication channel and remain fully updated on the latest changes.
Last updated
Was this helpful?