Skip to content

Commit

Permalink
add blob da fee to NewL1CostFuncFjord
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchaindevsh committed Nov 2, 2024
1 parent eb4eccc commit f74cea1
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 = l1Cost.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 f74cea1

Please sign in to comment.