diff --git a/packages/synapse-interface/utils/calculateGasFeeInGwei.ts b/packages/synapse-interface/utils/calculateGasFeeInGwei.ts index 1f769bdfb4..3a97d25d99 100644 --- a/packages/synapse-interface/utils/calculateGasFeeInGwei.ts +++ b/packages/synapse-interface/utils/calculateGasFeeInGwei.ts @@ -3,10 +3,12 @@ import { formatGwei } from 'viem' /** * Calculates the estimated gas fee in Gwei. * TODO: Hardcoding gas limit to 200k for now, update dynamically + * * @param {string} gasPrice - The current gas price in Gwei as a string. * @param {number} gasLimit - Function to format a value as Gwei. * @returns {number|null} The formatted estimated gas cost, or null if the calculation is not possible. */ + export const calculateGasFeeInGwei = (gasPrice?: string, gasLimit = 200000) => { if (!gasPrice) return null