@gvnrdao/dh-sdk 0.0.213 → 0.0.214

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 CHANGED
@@ -43255,11 +43255,13 @@ Error data: ${errorData || "none"}`
43255
43255
  return {
43256
43256
  async getProtocolConfig() {
43257
43257
  const result = await contract["getProtocolConfig"]();
43258
+ const maxUcdWhole = ethers_exports.BigNumber.from(result[3]);
43258
43259
  return {
43259
43260
  liquidationThreshold: result[0].toString(),
43260
- minimumLoanValueUcd: result[1].toString(),
43261
+ minimumLoanValueUcd: ethers_exports.utils.formatUnits(result[2], 18),
43261
43262
  minimumLoanValueWei: result[2].toString(),
43262
- maxSingleLoanValueUcd: result[3].toString()
43263
+ maxSingleLoanValueUcd: maxUcdWhole.toString(),
43264
+ maxSingleLoanValueWei: maxUcdWhole.mul(ethers_exports.BigNumber.from(10).pow(18)).toString()
43263
43265
  };
43264
43266
  }
43265
43267
  };
package/dist/index.mjs CHANGED
@@ -43183,11 +43183,13 @@ Error data: ${errorData || "none"}`
43183
43183
  return {
43184
43184
  async getProtocolConfig() {
43185
43185
  const result = await contract["getProtocolConfig"]();
43186
+ const maxUcdWhole = ethers_exports.BigNumber.from(result[3]);
43186
43187
  return {
43187
43188
  liquidationThreshold: result[0].toString(),
43188
- minimumLoanValueUcd: result[1].toString(),
43189
+ minimumLoanValueUcd: ethers_exports.utils.formatUnits(result[2], 18),
43189
43190
  minimumLoanValueWei: result[2].toString(),
43190
- maxSingleLoanValueUcd: result[3].toString()
43191
+ maxSingleLoanValueUcd: maxUcdWhole.toString(),
43192
+ maxSingleLoanValueWei: maxUcdWhole.mul(ethers_exports.BigNumber.from(10).pow(18)).toString()
43191
43193
  };
43192
43194
  }
43193
43195
  };
@@ -639,9 +639,10 @@ export declare class DiamondHandsSDK {
639
639
  loanOps(): {
640
640
  getProtocolConfig(): Promise<{
641
641
  liquidationThreshold: any;
642
- minimumLoanValueUcd: any;
642
+ minimumLoanValueUcd: string;
643
643
  minimumLoanValueWei: any;
644
- maxSingleLoanValueUcd: any;
644
+ maxSingleLoanValueUcd: string;
645
+ maxSingleLoanValueWei: string;
645
646
  }>;
646
647
  };
647
648
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.213",
3
+ "version": "0.0.214",
4
4
  "description": "TypeScript SDK for Diamond Hands Protocol - Bitcoin-backed lending with LIT Protocol PKPs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/sdk/src/index.d.ts",