Skip to content

Commit

Permalink
Update gas-prices.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Jan 9, 2025
1 parent 7565aa2 commit 8e8b3f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/gas-prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
TOKEN_SYMBOLS_MAP,
} from "./_constants";
import { assert, Infer, object, optional, string } from "superstruct";
import { isDefined } from "utils";

const chains = mainnetChains;

Expand Down Expand Up @@ -153,7 +152,7 @@ const handler = async (
return [originChainId, ethers.utils.formatEther(markup)];
}
})
.filter(isDefined)
.filter((x) => x !== undefined)
),
originChainPriorityFeeMarkups: Object.fromEntries(
Object.keys(chainIdsWithToken)
Expand All @@ -164,7 +163,7 @@ const handler = async (
return [originChainId, ethers.utils.formatEther(markup)];
}
})
.filter(isDefined)
.filter((x) => x !== undefined)
),
},
nativeGasCost: gasCosts[i].nativeGasCost.toString(),
Expand Down

0 comments on commit 8e8b3f2

Please sign in to comment.