Skip to content

Commit

Permalink
Merge pull request #18 from ethstorage/mod_l1cost
Browse files Browse the repository at this point in the history
add blob da fee to `NewL1CostFuncFjord`
  • Loading branch information
blockchaindevsh authored Nov 4, 2024
2 parents eb4eccc + 491e2ae commit 4ce1fe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/types/rollup_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ func NewL1CostFuncFjord(l1BaseFee, l1BlobBaseFee, baseFeeScalar, blobFeeScalar *

l1CostScaled := new(big.Int).Mul(estimatedSize, l1FeeScaled)
l1Cost := new(big.Int).Div(l1CostScaled, fjordDivisor)
l1Cost = new(big.Int).Add(l1Cost, new(big.Int).Mul(big.NewInt(int64(costData.Blobs)), big.NewInt(params.BlobDAFee)))

calldataGasUsed = new(big.Int).Mul(estimatedSize, new(big.Int).SetUint64(params.TxDataNonZeroGasEIP2028))
calldataGasUsed.Div(calldataGasUsed, big.NewInt(1e6))
Expand Down

0 comments on commit 4ce1fe4

Please sign in to comment.