Skip to content

Commit

Permalink
Update limits.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Jan 11, 2025
1 parent ea1585e commit 5e4fd39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
getCachedOpStackL1DataFee,
} from "./_utils";
import { MissingParamError } from "./_errors";
import { bnZero } from "utils";

const LimitsQueryParamsSchema = object({
token: optional(validAddress()),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5e4fd39

Please sign in to comment.