@xchainjs/xchain-aggregator 0.2.2 → 0.2.4
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 +4 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/lib/index.esm.js
CHANGED
|
@@ -25642,8 +25642,9 @@ class MayachainProtocol {
|
|
|
25642
25642
|
* @returns {TxSubmitted} Transaction hash and URL of the swap
|
|
25643
25643
|
*/
|
|
25644
25644
|
doSwap(params) {
|
|
25645
|
+
var _a, _b;
|
|
25645
25646
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25646
|
-
return this.mayachainAmm.doSwap(params);
|
|
25647
|
+
return this.mayachainAmm.doSwap(Object.assign(Object.assign({}, params), { affiliateBps: (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.affiliateBps, affiliateAddress: (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.affiliateAddress }));
|
|
25647
25648
|
});
|
|
25648
25649
|
}
|
|
25649
25650
|
/**
|
|
@@ -25727,8 +25728,9 @@ class ThorchainProtocol {
|
|
|
25727
25728
|
* @returns {TxSubmitted} Transaction hash and URL of the swap
|
|
25728
25729
|
*/
|
|
25729
25730
|
doSwap(params) {
|
|
25731
|
+
var _a, _b;
|
|
25730
25732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25731
|
-
return this.thorchainAmm.doSwap(params);
|
|
25733
|
+
return this.thorchainAmm.doSwap(Object.assign(Object.assign({}, params), { affiliateBps: (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.affiliateBps, affiliateAddress: (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.affiliateAddress }));
|
|
25732
25734
|
});
|
|
25733
25735
|
}
|
|
25734
25736
|
/**x
|