@shapeshiftoss/swapper 17.6.0 → 17.6.1

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OsmosisSwapper = void 0;
4
4
  const caip_1 = require("@shapeshiftoss/caip");
5
+ const chain_adapters_1 = require("@shapeshiftoss/chain-adapters");
5
6
  const api_1 = require("../../api");
6
7
  const bignumber_1 = require("../utils/bignumber");
7
8
  const constants_1 = require("./utils/constants");
@@ -246,7 +247,7 @@ class OsmosisSwapper {
246
247
  pubkey: cosmosAddress,
247
248
  pageSize: 1,
248
249
  });
249
- await (0, helpers_1.performIbcTransfer)(transfer, osmosisAdapter, wallet, this.deps.cosmosUrl, buyAssetDenom, constants_1.OSMO_COSMO_CHANNEL, '0', accountNumber, ibcAccountNumber, ibcSequence, gas, 'uosmo');
250
+ await (0, helpers_1.performIbcTransfer)(transfer, osmosisAdapter, wallet, this.deps.cosmosUrl, buyAssetDenom, constants_1.OSMO_COSMO_CHANNEL, chain_adapters_1.osmosis.MIN_FEE, accountNumber, ibcAccountNumber, ibcSequence, gas, 'uosmo');
250
251
  return { tradeId, previousCosmosTxid: (_a = cosmosTxHistory.transactions[0]) === null || _a === void 0 ? void 0 : _a.txid, cosmosAddress };
251
252
  }
252
253
  return { tradeId, previousCosmosTxid: cosmosIbcTradeId };
@@ -235,7 +235,7 @@ const buildTradeTx = async ({ osmoAddress, adapter, accountNumber, buyAssetDenom
235
235
  fee: {
236
236
  amount: [
237
237
  {
238
- amount: '0',
238
+ amount: chain_adapters_1.osmosis.MIN_FEE,
239
239
  denom: 'uosmo',
240
240
  },
241
241
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "17.6.0",
3
+ "version": "17.6.1",
4
4
  "description": "An interface and implementations to trade coins via various protocols",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",