@pioneer-platform/thorchain-client 0.0.32 → 0.0.33
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.
- package/lib/index.js +4 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -197,6 +197,7 @@ var get_quote = function (quote) {
|
|
197
197
|
quoteFromNode = _a.sent();
|
198
198
|
if (quoteFromNode.error)
|
199
199
|
throw new Error(quoteFromNode.error);
|
200
|
+
log.info(tag, "quoteFromNode: ", quoteFromNode);
|
200
201
|
amountOutMin = quoteFromNode.amount_out_min;
|
201
202
|
amountOutEstimated = (parseInt(quoteFromNode.expected_amount_out) / BASE_UNIT).toFixed(DECIMALS);
|
202
203
|
output.amountOut = amountOutEstimated;
|
@@ -208,7 +209,8 @@ var get_quote = function (quote) {
|
|
208
209
|
};
|
209
210
|
memo = createMemo(memoInput);
|
210
211
|
log.info(tag, "memo: ", memo);
|
211
|
-
txType = sellAssetChain === "
|
212
|
+
txType = sellAssetChain === "THOR" ? 'deposit' : 'transfer';
|
213
|
+
output.id = uuid();
|
212
214
|
output.txs = [
|
213
215
|
{
|
214
216
|
type: txType,
|
@@ -228,7 +230,7 @@ var get_quote = function (quote) {
|
|
228
230
|
output.steps = 1;
|
229
231
|
output.complete = true;
|
230
232
|
output.source = 'thorchain';
|
231
|
-
output.
|
233
|
+
output.raw = quoteFromNode;
|
232
234
|
return [2 /*return*/, output];
|
233
235
|
case 4:
|
234
236
|
e_2 = _a.sent();
|