Sequencer

The Sequencer plays a crucial role in:

  • Receiving Proofs: Securely receives proofs from CPs.

  • Validating Proofs: Checks the integrity, authenticity, and timeliness of proofs, including CP signatures.

  • Batching Proofs: Aggregates proofs into blobs for efficient storage and processing.

  • Submitting Data: Submits aggregated task data to the Swan Chain, creating AggregateTask contracts with blob CIDs.

  • Gas Fee Management: Manages gas fees for CPs, maintaining separate accounts for gas costs and charging a small fee per task.

Dynamic Pricing Strategy

Due to significant increases in ETH mainnet gas prices, the Sequencer has implemented a dynamic pricing strategy to maintain stable L3 operations. The price per proof is calculated using the following formula:

Gas=GasbaseGasPricebaseGasPricerealCountproofGas = \frac{ \frac{Gas_{base}}{GasPrice_{base}}*GasPrice_{real}}{Count_{proof}}
GasL3=min(Gas,Gasmax)Gas_{L3} = \min(Gas, Gas_{max})

Where:

  • GasbaseGas_{base} = 0.01 ETH

  • GasPricebaseGasPrice_{base} = 20 Gwei

  • GasPricerealGasPrice_{real} = Current ETH mainnet gas price at the time of L3 chain interaction

  • GasmaxGas_{max} = 0.00001 ETH

For example, based on recent network conditions (as of November 12):

  • Daily network-wide proof submissions (CountproofCount_{proof}) = 8,500

  • Average gas price (GasPricerealGasPrice_{real}) = 25 Gwei

GasL3=min(0.0120258500,0.00001)=0.000001470588235ETHGas_{L3} = \min( \frac{ \frac{0.01}{20}*25 }{8500}, 0.00001)=0.000001470588235 ETH

This results in an adjusted gas fee that ensures efficient operation while maintaining cost-effectiveness for all participants.

Last updated