소스 검색

add gas price motherfucker

Shawn Lu 1 년 전
부모
커밋
af679450ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/bridge/StargateClient.ts

+ 1 - 1
src/bridge/StargateClient.ts

@@ -94,7 +94,7 @@ export class StargateClient {
 
   async calculateGasCost(toChainId: number, routerEth: RouterETH, lzGasCost: bigint) {
     const feeData = await this.provider.getFeeData()
-    const gasPrice = feeData.gasPrice
+    const gasPrice = (feeData.gasPrice * 130n) / 100n
     const amount = ethers.parseEther('0.001')
     const gasLimit = await routerEth.swapETH.estimateGas(
       toChainId,