@haven-fi/solauto-sdk 1.0.534 → 1.0.535
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.
@@ -116,7 +116,7 @@ class SolautoMarginfiClient extends solautoClient_1.SolautoClient {
|
|
116
116
|
}
|
117
117
|
async maxLtvAndLiqThresholdBps() {
|
118
118
|
const result = await super.maxLtvAndLiqThresholdBps();
|
119
|
-
if (result) {
|
119
|
+
if (result[0] && result[1]) {
|
120
120
|
return result;
|
121
121
|
}
|
122
122
|
else if (this.supplyMint.equals(web3_js_1.PublicKey.default) ||
|
package/package.json
CHANGED
@@ -252,7 +252,7 @@ export class SolautoMarginfiClient extends SolautoClient {
|
|
252
252
|
|
253
253
|
async maxLtvAndLiqThresholdBps(): Promise<[number, number]> {
|
254
254
|
const result = await super.maxLtvAndLiqThresholdBps();
|
255
|
-
if (result) {
|
255
|
+
if (result[0] && result[1]) {
|
256
256
|
return result;
|
257
257
|
} else if (
|
258
258
|
this.supplyMint.equals(PublicKey.default) ||
|