# Sequencer will be underpaid because of incorrect `commitScalar`

Morphl2's GasPriceOracle commitScalar was 100X too low, so L1 data fees undercharged users and sequencers bled revenue committing batches.

- Payout: Audit contest
- Severity: high
- Program: Morphl2
- Found by: PapaPitufo
- Disclosed: 2024-08-28
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2024-08-morphl2-judging/issues/90
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-08-morphl2%3AH-3
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic vuln:fee-bypass

**Target:** GasPriceOracle.sol L1 fee calculation / commitBatch cost
**Root cause:** commitScalar was configured as 230e9 instead of 230_000e9, so getL1FeeCurie massively underprices the L1 gas cost of commitBatch() relative to the true sequencer cost.
**Steps:**
1. Read getL1FeeCurie in GasPriceOracle.sol: `(commitScalar * l1BaseFee + blobScalar * _data.length * l1BlobBaseFee) / PRECISION`
2. Compare commitScalar=230e9 against Foundry-estimated commitBatch gas of ~230,000; correct value is 230_000e9
3. Submit an L2 tx with ~128kb calldata (half non-zero) to fill a blob: calldata gas `1024*128*(4+16/2)=1,310,720`, total ~1,331,720 gas
4. At l1BaseFee 30 gwei and L2 gas price 0.001 gwei, user pays ~60,659 gwei (~$0.13)
5. Sequencer pays blob 52,428 gwei + 230,000*30 gwei = ~6,952,428 gwei (~$15.98) to commit the batch
6. Repeat to drain sequencer revenue
**How found:** Code review of the L1 fee formula in GasPriceOracle.sol, cross-checked against go-ethereum rollup_fee.go and the actual gas cost of commitBatch() estimated with Foundry; noticed commitScalar was 100X smaller than the real commit cost, and traced the value to Scroll's on-chain implementation.
**Exploitation:** No capital or exploit contract needed: a user repeatedly submits 0-value L2 transfers padded with ~128kb calldata, each costing ~$0.13 in L2 fees while forcing the sequencer to spend ~$15.98 in L1 gas to commit the batch, bleeding sequencer revenue ~100X.
**Insight:** When auditing L2 fee oracles, recompute each scalar against the real on-chain gas cost of the corresponding L1 operation (here commitBatch) rather than trusting copied config values; copied constants from other chains can carry the same mispricing.

