@upcoming/multichain-library 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ async function swapOnGnosisAuto(options, settings, jsonRpcProvider) {
13
13
  return swapOnGnosisCustom({
14
14
  originPrivateKey: options.originPrivateKey,
15
15
  originAddress: options.originAddress,
16
- gas: BigInt(quote.tx.gas),
16
+ gas: (BigInt(quote.tx.gas) * 5n) / 4n, // add 25% buffer
17
17
  gasPrice: BigInt(quote.tx.gasPrice),
18
18
  to: quote.tx.to,
19
19
  value: BigInt(quote.tx.value),
@@ -28,7 +28,7 @@ async function swapOnGnosisCustom(options, settings, jsonRpcProvider) {
28
28
  chain: Constants_1.Constants.gnosisChainId,
29
29
  chainId: Constants_1.Constants.gnosisChainId,
30
30
  account: options.originAddress,
31
- gas: BigInt(options.gas),
31
+ gas: (BigInt(options.gas) * 5n) / 4n, // add 25% buffer
32
32
  gasPrice: BigInt(options.gasPrice),
33
33
  type: 'legacy',
34
34
  to: options.to,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@upcoming/multichain-library",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {