Ver Fonte

hardcode gas cost

Shawn Lu há 1 ano atrás
pai
commit
b67ebaa250
1 ficheiros alterados com 2 adições e 2 exclusões
  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 }
   }
 }