@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.
- package/dist/DripSdk.js +1 -1
- 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(
|
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);
|