@openocean.finance/openocean-sdk 1.5.4 → 1.5.6

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.
@@ -570,7 +570,7 @@ var Swap = /** @class */ (function () {
570
570
  })];
571
571
  case 1:
572
572
  gas = _b.sent();
573
- return [2 /*return*/, Math.ceil(gas * 1.15)];
573
+ return [2 /*return*/, Math.ceil(gas * 1.25)];
574
574
  }
575
575
  });
576
576
  });
@@ -702,8 +702,8 @@ var Swap = /** @class */ (function () {
702
702
  if (+gmxFee) {
703
703
  swapParams.value = new bn_js_1.default(swapParams.value).add(new bn_js_1.default(gmxFee)).toNumber();
704
704
  }
705
- console.log('sendEthTransaction swapParams', JSON.stringify(swapParams));
706
705
  if (!(this.wallet.key === "GnosisSafeWallet")) return [3 /*break*/, 5];
706
+ console.log('sendEthTransaction swapParams', JSON.stringify(swapParams));
707
707
  _b.label = 1;
708
708
  case 1:
709
709
  _b.trys.push([1, 3, , 4]);
@@ -728,6 +728,7 @@ var Swap = /** @class */ (function () {
728
728
  case 5:
729
729
  if (this.wallet.key === "LedgerWallet") {
730
730
  swapParams.estimatedGas = estimatedGas;
731
+ console.log('sendEthTransaction swapParams', JSON.stringify(swapParams));
731
732
  this.signEthTransactionByLedger(swapParams);
732
733
  return [2 /*return*/];
733
734
  }
@@ -747,6 +748,7 @@ var Swap = /** @class */ (function () {
747
748
  this.errorCallback((e_7 && e_7.message) || e_7);
748
749
  return [3 /*break*/, 9];
749
750
  case 9:
751
+ console.log('sendEthTransaction swapParams', JSON.stringify(swapParams));
750
752
  this.wallet.sdk.eth
751
753
  .sendTransaction(swapParams)
752
754
  .on("error", function (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@ethersproject/bignumber": "^5.1.1",
51
51
  "@looksrare/sdk": "^0.12.1",
52
- "@openocean.finance/wallet": "^1.8.4",
52
+ "@openocean.finance/wallet": "^1.8.5",
53
53
  "@uniswap/v2-core": "^1.0.1",
54
54
  "@walletconnect/web3-provider": "^1.7.8",
55
55
  "aptos": "^1.3.17",