@kasufinance/kasu-sdk 2.4.1 → 2.4.2

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.
@@ -15936,6 +15936,7 @@ class DataService {
15936
15936
  : baseApy;
15937
15937
  return {
15938
15938
  id: tranche.id,
15939
+ balance: tranche.balance,
15939
15940
  apy: baseApy.toString(),
15940
15941
  minApy: minApy.toString(),
15941
15942
  maxApy: maxApy.toString(),
@@ -15991,6 +15992,7 @@ class DataService {
15991
15992
  loanStructure: (_o = lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.loanStructure) !== null && _o !== void 0 ? _o : '',
15992
15993
  poolName: (_p = lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.poolName) !== null && _p !== void 0 ? _p : lendingPoolSubgraph.name,
15993
15994
  subheading: lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.subheading,
15995
+ operatingSince: lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.operatingSince,
15994
15996
  totalValueLocked: {
15995
15997
  total: (parseFloat(lendingPoolSubgraph.balance) +
15996
15998
  parseFloat(offChainTvl)).toString(),
@@ -15934,6 +15934,7 @@ class DataService {
15934
15934
  : baseApy;
15935
15935
  return {
15936
15936
  id: tranche.id,
15937
+ balance: tranche.balance,
15937
15938
  apy: baseApy.toString(),
15938
15939
  minApy: minApy.toString(),
15939
15940
  maxApy: maxApy.toString(),
@@ -15989,6 +15990,7 @@ class DataService {
15989
15990
  loanStructure: (_o = lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.loanStructure) !== null && _o !== void 0 ? _o : '',
15990
15991
  poolName: (_p = lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.poolName) !== null && _p !== void 0 ? _p : lendingPoolSubgraph.name,
15991
15992
  subheading: lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.subheading,
15993
+ operatingSince: lendingPoolDirectus === null || lendingPoolDirectus === void 0 ? void 0 : lendingPoolDirectus.operatingSince,
15992
15994
  totalValueLocked: {
15993
15995
  total: (parseFloat(lendingPoolSubgraph.balance) +
15994
15996
  parseFloat(offChainTvl)).toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kasufinance/kasu-sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",
@@ -9,7 +9,7 @@
9
9
  "test": "jest --config=jest-config.ts",
10
10
  "build-tc": "typechain --target ethers-v5 --out-dir src/contracts './abis/*.json'",
11
11
  "build": "eslint . && tsc --build --force tsconfig.json",
12
- "prepublishOnly": "npm run build",
12
+ "prepublishOnly": "npm run build && npm run rollup-build",
13
13
  "build:watch": "npx tsc -b --force --watch",
14
14
  "rollup-build": "rollup -c",
15
15
  "lint": "eslint . --fix"