LETH
Bridgeable Ethereum representation on Lux Network
LETH (LuxETH)
Bridgeable Ethereum representation on the Lux Network. LETH is an ERC20B token with admin-controlled minting and burning for cross-chain bridge operations.
Inherits: ERC20B
Token Details
| Property | Value |
|---|---|
| Name | LuxETH |
| Symbol | LETH |
| Decimals | 18 |
| Type | Bridgeable ERC20 |
Use Cases
- Cross-Chain Bridge: Represents ETH from Ethereum network on Lux
- DeFi Integration: Use ETH in Lux DeFi protocols (margin, loans, etc.)
- Gas Token Alternative: Trade and hold ETH exposure on Lux
- Collateral: Provide LETH as collateral for lending protocols
Functions
Inherits all functions from ERC20B:
function mint(address account, uint256 amount) public onlyAdmin returns (bool)
function burnIt(address account, uint256 amount) public onlyAdmin returns (bool)
function grantAdmin(address to) public onlyAdmin
function revokeAdmin(address to) public onlyAdminBridge Flow
Ethereum Network Lux Network
┌────────────┐ ┌────────────┐
│ ETH │ ──Lock──────────────│ LETH │
│ │ │ mint() │
│ │ ◄─Unlock────────────│ burn() │
└────────────┘ └────────────┘
▲ │
│ MPC Oracle Bridge │
└───────────────────────────────┘Deployment
import "@luxfi/standard/src/tokens/LETH.sol";
// Deploy LETH token
LuxETH leth = new LuxETH();
// Grant bridge contract admin rights
leth.grantAdmin(bridgeContract);Usage
// Bridge mints LETH when ETH is locked
leth.mint(user, 1e18); // 1 LETH
// Bridge burns LETH when ETH is released
leth.burnIt(user, 1e18);
// Standard ERC20 operations
leth.transfer(recipient, amount);
leth.approve(spender, amount);Security
- Admin-Only Minting: Only authorized bridge contracts can mint
- Admin-Only Burning: Only authorized bridge contracts can burn
- Role-Based Access: AccessControl for admin management
- Ownable: Owner can transfer ownership