From 5e4fd391feafc76bf8993d7a61fa6f19fac8d9a7 Mon Sep 17 00:00:00 2001 From: nicholaspai Date: Fri, 10 Jan 2025 20:45:05 -0700 Subject: [PATCH] Update limits.ts --- api/limits.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/limits.ts b/api/limits.ts index 0c6863c32..52431d44a 100644 --- a/api/limits.ts +++ b/api/limits.ts @@ -37,7 +37,6 @@ import { getCachedOpStackL1DataFee, } from "./_utils"; import { MissingParamError } from "./_errors"; -import { bnZero } from "utils"; const LimitsQueryParamsSchema = object({ token: optional(validAddress()), @@ -234,7 +233,9 @@ const handler = async ( // and tokenGasCost. const tokenGasCost = nativeGasCost && gasPrice - ? nativeGasCost.mul(gasPrice).add(opStackL1GasCost ?? bnZero) + ? nativeGasCost + .mul(gasPrice) + .add(opStackL1GasCost ?? ethers.BigNumber.from("0")) : undefined; const relayerFeeDetails = await getRelayerFeeDetails( depositArgs,