Cross-Chain Fee Collection
FeeCollector sweeps accumulated fees from every L1 and L2 to the C-Chain treasury over Warp, where the splitter routes them.
LP-3052: Cross-Chain Fee Collection
Abstract
Defines the cross-chain fee collection mechanism for Lux Network. Each L1 and L2 chain in the topology (LP-5210) collects transaction fees in its native gas token. The FeeCollector contract on each chain periodically sweeps accumulated fees to the C-Chain treasury over Warp (LP-6602). The C-Chain treasury then routes fees through the fee splitter (LP-3053).
Specification
Architecture
L1/L2 Chain (Zoo) C-Chain
FeeCollector Treasury
|-- accumulates fees |-- receives Warp transfers
|-- sweep() triggers Warp ---> |-- routes to FeeSplitter
|-- configurable interval |-- emits FeeReceived event
FeeCollector Contract
Deployed on each L1 and L2:
| Function | Description |
|---|---|
sweep() | Sends accumulated fees to the C-Chain Treasury via Warp |
setInterval(uint256) | Minimum seconds between sweeps (default 86400 = 1 day) |
setMinAmount(uint256) | Minimum balance to trigger a sweep, so dust never moves |
Warp Message
The sweep sends a Warp message containing:
| Field | Type | Description |
|---|---|---|
| sourceChain | bytes32 | Originating chain ID |
| amount | uint256 | Fee amount in native token |
| token | address | Token address (native = 0x0) |
| epoch | uint256 | Collection epoch number |
Fee Denomination
L1 and L2 chains may use different gas tokens. The Treasury contract on C-Chain accepts all Lux-native tokens and converts to LUX through the DEX settlement precompile at 0x9999 (LP-9999) before routing to the fee splitter.
Collection Schedule
| Parameter | Default | Governance range |
|---|---|---|
| Sweep interval | 24 hours | 1 hour – 30 days |
| Minimum amount | 100 LUX equivalent | 1 – 10,000 LUX |
| Maximum per sweep | unlimited | configurable |
Security Considerations
sweep()is permissionless — anyone can call it, so there is no keeper dependency.- Warp message signatures are validated by BLS quorum on the destination chain (LP-0118).
- The FeeCollector holds no admin keys. Parameters are set by governance timelock only.
- A failed sweep (Warp message rejected) retries on the next interval. Fees are never lost.
Reference
| Resource | Location |
|---|---|
| FeeCollector contract | github.com/luxfi/standard/contracts/treasury/FeeCollector.sol |
| Treasury contract | github.com/luxfi/standard/contracts/treasury/Treasury.sol |
| Warp implementation | github.com/luxfi/evm/warp/ |
| Warp protocol | LP-6602 |
| Fee routing | LP-3053 |
| Burn address precompiles | LP-3051 |
Copyright
Copyright (c) 2026 Lux Industries Inc. All rights reserved.
Licensed under the MIT License.