LPsLux Proposals
Interoperability
LP-3052

Cross-Chain Fee Collection

Final

FeeCollector sweeps accumulated fees from every L1 and L2 to the C-Chain treasury over Warp, where the splitter routes them.

Category
Core
Created
2026-08-26

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:

FunctionDescription
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:

FieldTypeDescription
sourceChainbytes32Originating chain ID
amountuint256Fee amount in native token
tokenaddressToken address (native = 0x0)
epochuint256Collection 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

ParameterDefaultGovernance range
Sweep interval24 hours1 hour – 30 days
Minimum amount100 LUX equivalent1 – 10,000 LUX
Maximum per sweepunlimitedconfigurable

Security Considerations

  1. sweep() is permissionless — anyone can call it, so there is no keeper dependency.
  2. Warp message signatures are validated by BLS quorum on the destination chain (LP-0118).
  3. The FeeCollector holds no admin keys. Parameters are set by governance timelock only.
  4. A failed sweep (Warp message rejected) retries on the next interval. Fees are never lost.

Reference

ResourceLocation
FeeCollector contractgithub.com/luxfi/standard/contracts/treasury/FeeCollector.sol
Treasury contractgithub.com/luxfi/standard/contracts/treasury/Treasury.sol
Warp implementationgithub.com/luxfi/evm/warp/
Warp protocolLP-6602
Fee routingLP-3053
Burn address precompilesLP-3051

Copyright (c) 2026 Lux Industries Inc. All rights reserved.

Licensed under the MIT License.