@haven-fi/solauto-sdk 1.0.169 → 1.0.170

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.
@@ -111,9 +111,9 @@ class SolautoMarginfiClient extends solautoClient_1.SolautoClient {
111
111
  }, {
112
112
  mint: this.debtMint,
113
113
  });
114
- this.maxLtvBps = maxLtv;
115
- this.liqThresholdBps = liqThreshold;
116
- return [maxLtv, liqThreshold];
114
+ this.maxLtvBps = (0, numberUtils_1.toBps)(maxLtv);
115
+ this.liqThresholdBps = (0, numberUtils_1.toBps)(liqThreshold);
116
+ return [this.maxLtvBps, this.liqThresholdBps];
117
117
  }
118
118
  }
119
119
  marginfiAccountInitialize() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.169",
3
+ "version": "1.0.170",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -227,9 +227,9 @@ export class SolautoMarginfiClient extends SolautoClient {
227
227
  mint: this.debtMint,
228
228
  }
229
229
  );
230
- this.maxLtvBps = maxLtv;
231
- this.liqThresholdBps = liqThreshold;
232
- return [maxLtv, liqThreshold];
230
+ this.maxLtvBps = toBps(maxLtv);
231
+ this.liqThresholdBps = toBps(liqThreshold);
232
+ return [this.maxLtvBps, this.liqThresholdBps];
233
233
  }
234
234
  }
235
235