Lux Standard Library
The canonical smart contract library for Lux Network. Battle-tested implementations for tokens, DeFi, governance, and post-quantum security.
- Contracts
- 469
- Tests
- 751
- Coverage
- 95%
- Audits
- 3
Everything you need to build on Lux
Composable, audited contracts following best practices
Tokens
LUX, LUXD stablecoin, AI token, bridgeable ERC20/ERC721
DeFi
Self-repaying loans, perpetuals, lending, yield farming
AMM
Uniswap V2/V3 pools, QuantumSwap router, WLUX
Smart Accounts
ERC-4337 abstraction, session keys, paymasters
Governance
DAO, voting, timelocks, veLUX tokenomics
Bridge
Cross-chain with Warp messaging and MPC validation
Safe
Multi-sig wallets, FROST threshold signatures
Post-Quantum
Lamport signatures, ML-DSA, quantum-safe crypto
Quick Start
# Install with Foundry
forge install luxfi/standard
# Add to remappings.txt
@lux/=lib/standard/contracts/
# Import in your contract
import "@lux/tokens/LUX.sol";
import "@lux/defi/liquid/LiquidLUX.sol";Design Principles
Composable
Contracts work together seamlessly. Mix and match protocols to build complex systems.
Orthogonal
Each contract does one thing well. Clean separation of concerns throughout.
Secure
Audited implementations with post-quantum cryptography support.