Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless-eth committed Oct 6, 2024
1 parent aa8d87e commit 54a5403
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,14 @@ export async function calcMantlePreVerificationGas(
let l1GasPrice: bigint

if (verify) {
const minValues =
gasPriceManager.mantleManager.getMinMantleOracleValues()

tokenRatio = minValues.minTokenRatio
scalar = minValues.minScalar
rollupDataGasAndOverhead = minValues.minRollupDataGasAndOverhead
l1GasPrice = minValues.minL1GasPrice
} else {
;[tokenRatio, scalar, rollupDataGasAndOverhead, l1GasPrice] =
await Promise.all([
publicClient.readContract({
Expand Down Expand Up @@ -525,14 +533,6 @@ export async function calcMantlePreVerificationGas(
rollupDataGasAndOverhead,
l1GasPrice
})
} else {
const minValues =
gasPriceManager.mantleManager.getMinMantleOracleValues()

tokenRatio = minValues.minTokenRatio
scalar = minValues.minScalar
rollupDataGasAndOverhead = minValues.minRollupDataGasAndOverhead
l1GasPrice = minValues.minL1GasPrice
}

const mantleL1RollUpFeeDivisionFactor = 1_000_000n
Expand Down

0 comments on commit 54a5403

Please sign in to comment.