Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Jan 9, 2025
1 parent 11a3a1a commit e10b448
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 @@ -1984,7 +1984,6 @@ export function getCachedFillGasUsage(
return {
opStackL1GasCost: gasCosts.opStackL1GasCost,
nativeGasCost: gasCosts.nativeGasCost,
tokenGasCost: gasCosts.tokenGasCost,
};
};

Expand All @@ -1994,12 +1993,10 @@ export function getCachedFillGasUsage(
fetchFn,
(gasCosts: {
nativeGasCost: BigNumber;
tokenGasCost: BigNumber;
opStackL1GasCost: BigNumber | undefined;
}) => {
return {
nativeGasCost: BigNumber.from(gasCosts.nativeGasCost),
tokenGasCost: BigNumber.from(gasCosts.tokenGasCost),
opStackL1GasCost: gasCosts.opStackL1GasCost
? BigNumber.from(gasCosts.opStackL1GasCost)
: undefined,
Expand Down Expand Up @@ -2034,6 +2031,11 @@ export function getMaxFeePerGas(
baseFeeMarkup: baseFeeMultiplier,
priorityFeeMarkup: priorityFeeMultiplier,
} = getGasMarkup(chainId);
console.log(
"getMaxFeePerGas",
baseFeeMultiplier.toString(),
priorityFeeMarkup.toString()
);
return sdk.gasPriceOracle.getGasPriceEstimate(getProvider(chainId), {
chainId,
baseFeeMultiplier,
Expand Down

0 comments on commit e10b448

Please sign in to comment.