@dripfi/drip-sdk 1.2.18 → 1.2.19

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.
Files changed (2) hide show
  1. package/dist/DripSdk.js +1 -1
  2. package/package.json +1 -1
package/dist/DripSdk.js CHANGED
@@ -750,7 +750,7 @@ class DripSdk {
750
750
  }
751
751
  const currentBlockNumber = wnft.blockNumber - 1;
752
752
  const assetsPerSvtAtBlock = yield this.dripApi.fetchAssetPerSvtAtBlock(vaultAddress.toLowerCase(), currentBlockNumber, token);
753
- const estimatedValueOfNFT = ethers_1.BigNumber.from(parseInt(ethers_1.ethers.utils.formatUnits(ethers_1.BigNumber.from(wnft.svtWithdrawn).mul(assetsPerSvtAtBlock), 36)).toString());
753
+ const estimatedValueOfNFT = ethers_1.BigNumber.from(ethers_1.ethers.utils.formatUnits(ethers_1.BigNumber.from(wnft.svtWithdrawn).mul(assetsPerSvtAtBlock), 36).split('.')[0].toString());
754
754
  if (wnft.isDHWFinished) {
755
755
  // Processed and Withdrawable
756
756
  estimatedWithdrawableBalance = estimatedWithdrawableBalance.add(estimatedValueOfNFT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",