@xchainjs/xchain-thorchain-query 0.7.5 → 0.7.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.
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/thornode.d.ts +1 -1
- package/package.json +3 -3
package/lib/index.esm.js
CHANGED
|
@@ -735,11 +735,11 @@ class Thornode {
|
|
|
735
735
|
* @param height - block height
|
|
736
736
|
* @returns quotes swap object response
|
|
737
737
|
*/
|
|
738
|
-
getSwapQuote(fromAsset, toAsset, amount, destinationAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, height) {
|
|
738
|
+
getSwapQuote(fromAsset, toAsset, amount, destinationAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, height, refundAddress) {
|
|
739
739
|
return __awaiter(this, void 0, void 0, function* () {
|
|
740
740
|
for (const api of this.quoteApi) {
|
|
741
741
|
try {
|
|
742
|
-
const resp = (yield api.quoteswap(height, fromAsset, toAsset, amount, destinationAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate)).data;
|
|
742
|
+
const resp = (yield api.quoteswap(height, fromAsset, toAsset, amount, destinationAddress, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate)).data;
|
|
743
743
|
return resp;
|
|
744
744
|
}
|
|
745
745
|
catch (e) {
|