Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Apr 3, 2024
1 parent 6d12c41 commit 9758112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/synapse-interface/utils/calculateGasFeeInGwei.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9758112

Please sign in to comment.