Browse Source

hardcode gas cost

Shawn Lu 1 year ago
parent
commit
b67ebaa250
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bridge/StargateClient.ts

+ 2 - 2
src/bridge/StargateClient.ts

@@ -98,7 +98,7 @@ export class StargateClient {
         value: amount + lzGasCost,
       },
     )
-    const gasCost = ((this.chainId === 110 ? gasPrice : ethers.parseUnits('0.6', 'gwei')) * gasLimit * 110n) / 100n
-    return { gasCost, gasPrice, gasLimit }
+    // const gasCost = ((this.chainId === 110 ? gasPrice : ethers.parseUnits('0.6', 'gwei')) * gasLimit * 110n) / 100n
+    return { gasCost: ethers.parseEther('0.0004'), gasPrice, gasLimit }
   }
 }