@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,
|
|
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 };
|
package/package.json
CHANGED