@cetusprotocol/aggregator-sdk 0.3.2 → 0.3.3
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/transaction/cetus.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -5266,7 +5266,7 @@ var Turbos = class {
|
|
|
5266
5266
|
var Cetus = class {
|
|
5267
5267
|
constructor(env, partner) {
|
|
5268
5268
|
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "0x6f4149091a5aea0e818e7243a13adcfb403842d670b9a2089de058512620687a";
|
|
5269
|
-
this.partner =
|
|
5269
|
+
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "0x8e0b7668a79592f70fbfb1ae0aebaf9e2019a7049783b9a4b6fe7c6ae038b528";
|
|
5270
5270
|
}
|
|
5271
5271
|
flash_swap(client, txb, path, by_amount_in) {
|
|
5272
5272
|
const { direction, from, target } = path;
|
package/dist/index.mjs
CHANGED
|
@@ -5264,7 +5264,7 @@ var Turbos = class {
|
|
|
5264
5264
|
var Cetus = class {
|
|
5265
5265
|
constructor(env, partner) {
|
|
5266
5266
|
this.globalConfig = env === 0 /* Mainnet */ ? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f" : "0x6f4149091a5aea0e818e7243a13adcfb403842d670b9a2089de058512620687a";
|
|
5267
|
-
this.partner =
|
|
5267
|
+
this.partner = partner != null ? partner : env === 0 /* Mainnet */ ? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b" : "0x8e0b7668a79592f70fbfb1ae0aebaf9e2019a7049783b9a4b6fe7c6ae038b528";
|
|
5268
5268
|
}
|
|
5269
5269
|
flash_swap(client, txb, path, by_amount_in) {
|
|
5270
5270
|
const { direction, from, target } = path;
|
package/package.json
CHANGED
package/src/transaction/cetus.ts
CHANGED
|
@@ -22,9 +22,10 @@ export class Cetus implements Dex {
|
|
|
22
22
|
: "0x6f4149091a5aea0e818e7243a13adcfb403842d670b9a2089de058512620687a"
|
|
23
23
|
|
|
24
24
|
this.partner =
|
|
25
|
-
partner ??
|
|
25
|
+
partner ??
|
|
26
|
+
(env === Env.Mainnet
|
|
26
27
|
? "0x639b5e433da31739e800cd085f356e64cae222966d0f1b11bd9dc76b322ff58b"
|
|
27
|
-
: "0x8e0b7668a79592f70fbfb1ae0aebaf9e2019a7049783b9a4b6fe7c6ae038b528"
|
|
28
|
+
: "0x8e0b7668a79592f70fbfb1ae0aebaf9e2019a7049783b9a4b6fe7c6ae038b528")
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
flash_swap(
|