LBTC
Bridgeable Bitcoin representation on Lux Network
LBTC (LuxBTC)
Bridgeable Bitcoin representation on the Lux Network. LBTC is an ERC20B token with admin-controlled minting and burning for cross-chain bridge operations.
Inherits: ERC20B
Token Details
| Property | Value |
|---|---|
| Name | LuxBTC |
| Symbol | LBTC |
| Decimals | 18 |
| Type | Bridgeable ERC20 |
Use Cases
- Cross-Chain Bridge: Represents BTC from Bitcoin network on Lux
- DeFi Integration: Use BTC in Lux DeFi protocols (margin, loans, etc.)
- Collateral: Provide LBTC as collateral for lending protocols
- Trading: Trade LBTC pairs on Lux DEX
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
Bitcoin Network Lux Network
┌────────────┐ ┌────────────┐
│ BTC │ ──Lock──────────────│ LBTC │
│ │ │ mint() │
│ │ ◄─Unlock────────────│ burn() │
└────────────┘ └────────────┘
▲ │
│ MPC Oracle Bridge │
└───────────────────────────────┘Deployment
import "@luxfi/standard/src/tokens/LBTC.sol";
// Deploy LBTC token
LuxBTC lbtc = new LuxBTC();
// Grant bridge contract admin rights
lbtc.grantAdmin(bridgeContract);Usage
// Bridge mints LBTC when BTC is locked
lbtc.mint(user, 1e18); // 1 LBTC
// Bridge burns LBTC when BTC is released
lbtc.burnIt(user, 1e18);
// Standard ERC20 operations
lbtc.transfer(recipient, amount);
lbtc.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