Skip to content

Commit

Permalink
Update _utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Dec 27, 2024
1 parent 1a21394 commit eaf7fd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export const getHubPoolClient = () => {
);
};

export const getGasMarkup = (chainId: string | number) => {
export const getGasMarkup = (chainId: string | number): number => {
if (typeof gasMarkup[chainId] === "number") {
return gasMarkup[chainId];
}
Expand Down Expand Up @@ -1974,8 +1974,10 @@ export async function getMaxFeePerGas(chainId: number): Promise<BigNumber> {
}
const { maxFeePerGas } = await sdk.gasPriceOracle.getGasPriceEstimate(
getProvider(chainId),
chainId,
getGasMarkup(chainId)
{
chainId,
baseFeeMultiplier: getGasMarkup(chainId),
}
);
return maxFeePerGas;
}
Expand Down

0 comments on commit eaf7fd8

Please sign in to comment.