瀏覽代碼

hardcode gas cost

Shawn Lu 1 年之前
父節點
當前提交
b67ebaa250
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 }
   }
 }