@haven-fi/solauto-sdk 1.0.34 → 1.0.35
Sign up to get free protection for your applications and to get access to all the features.
@@ -110,9 +110,9 @@ class SolautoMarginfiClient extends solautoClient_1.SolautoClient {
|
|
110
110
|
: undefined,
|
111
111
|
solautoPosition: (0, umi_1.publicKey)(this.solautoPosition),
|
112
112
|
marginfiGroup: (0, umi_1.publicKey)(this.marginfiGroup),
|
113
|
-
marginfiAccount: this.
|
114
|
-
?
|
115
|
-
: this.marginfiAccount,
|
113
|
+
marginfiAccount: "publicKey" in this.marginfiAccount
|
114
|
+
? this.marginfiAccount
|
115
|
+
: (0, umi_1.publicKey)(this.marginfiAccount),
|
116
116
|
supplyMint: (0, umi_1.publicKey)(this.supplyMint),
|
117
117
|
supplyBank: (0, umi_1.publicKey)(this.marginfiSupplyBankAccounts.bank),
|
118
118
|
positionSupplyTa: (0, umi_1.publicKey)(this.positionSupplyTa),
|
@@ -125,7 +125,7 @@ class SolautoMarginfiClient extends solautoClient_1.SolautoClient {
|
|
125
125
|
settingParams: settingParams ?? null,
|
126
126
|
dca: dca ?? null,
|
127
127
|
},
|
128
|
-
marginfiAccountSeedIdx: this.marginfiAccountSeedIdx
|
128
|
+
marginfiAccountSeedIdx: !this.selfManaged ? this.marginfiAccountSeedIdx : null,
|
129
129
|
});
|
130
130
|
}
|
131
131
|
refresh() {
|
package/package.json
CHANGED
@@ -215,9 +215,9 @@ export class SolautoMarginfiClient extends SolautoClient {
|
|
215
215
|
solautoPosition: publicKey(this.solautoPosition),
|
216
216
|
marginfiGroup: publicKey(this.marginfiGroup),
|
217
217
|
marginfiAccount:
|
218
|
-
this.
|
219
|
-
?
|
220
|
-
: (this.marginfiAccount
|
218
|
+
"publicKey" in this.marginfiAccount
|
219
|
+
? this.marginfiAccount as Signer
|
220
|
+
: publicKey(this.marginfiAccount),
|
221
221
|
supplyMint: publicKey(this.supplyMint),
|
222
222
|
supplyBank: publicKey(this.marginfiSupplyBankAccounts.bank),
|
223
223
|
positionSupplyTa: publicKey(this.positionSupplyTa),
|
@@ -230,7 +230,7 @@ export class SolautoMarginfiClient extends SolautoClient {
|
|
230
230
|
settingParams: settingParams ?? null,
|
231
231
|
dca: dca ?? null,
|
232
232
|
},
|
233
|
-
marginfiAccountSeedIdx: this.marginfiAccountSeedIdx
|
233
|
+
marginfiAccountSeedIdx: !this.selfManaged ? this.marginfiAccountSeedIdx : null,
|
234
234
|
});
|
235
235
|
}
|
236
236
|
|