|
@@ -70,6 +70,10 @@ export class StargateClient {
|
|
|
minReceiveAmount,
|
|
|
{ value: sendAmount + lzGasCost, gasLimit, gasPrice },
|
|
|
)
|
|
|
+ const receipt = await res.wait()
|
|
|
+ if (!receipt.status) {
|
|
|
+ throw new Error('Transaction reverted')
|
|
|
+ }
|
|
|
return res.hash
|
|
|
} catch (e) {
|
|
|
StargateClient.logger.error(e.message, `Failed to bridge to ${toChainId}`)
|
|
@@ -92,7 +96,7 @@ export class StargateClient {
|
|
|
value: amount + lzGasCost,
|
|
|
},
|
|
|
)
|
|
|
- const gasCost = ((this.chainId === 110 ? gasPrice : ethers.parseUnits('0.5', 'gwei')) * gasLimit * 110n) / 100n
|
|
|
+ const gasCost = ((this.chainId === 110 ? gasPrice : ethers.parseUnits('0.55', 'gwei')) * gasLimit * 110n) / 100n
|
|
|
return { gasCost, gasPrice, gasLimit }
|
|
|
}
|
|
|
}
|