@haven-fi/solauto-sdk 1.0.595 → 1.0.596
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.
@@ -165,7 +165,7 @@ class SolautoPositionEx {
|
|
165
165
|
(0, utils_1.toRoundedUsdValue)(newSupplyUsd);
|
166
166
|
this._data.state.supply.amountUsed.baseUnit = (0, utils_1.toBaseUnit)(newSupplyUsd / supplyPrice, this.supplyMintInfo().decimals);
|
167
167
|
this._data.state.netWorth.baseAmountUsdValue = (0, utils_1.toRoundedUsdValue)(newSupplyUsd - newDebtUsd);
|
168
|
-
this._data.state.netWorth.baseUnit = (0, utils_1.toBaseUnit)(newSupplyUsd - newDebtUsd / supplyPrice, this.supplyMintInfo().decimals);
|
168
|
+
this._data.state.netWorth.baseUnit = (0, utils_1.toBaseUnit)((newSupplyUsd - newDebtUsd) / supplyPrice, this.supplyMintInfo().decimals);
|
169
169
|
}
|
170
170
|
}
|
171
171
|
exports.SolautoPositionEx = SolautoPositionEx;
|
package/package.json
CHANGED
@@ -342,7 +342,7 @@ export abstract class SolautoPositionEx {
|
|
342
342
|
newSupplyUsd - newDebtUsd
|
343
343
|
);
|
344
344
|
this._data.state.netWorth.baseUnit = toBaseUnit(
|
345
|
-
newSupplyUsd - newDebtUsd / supplyPrice,
|
345
|
+
(newSupplyUsd - newDebtUsd) / supplyPrice,
|
346
346
|
this.supplyMintInfo().decimals
|
347
347
|
);
|
348
348
|
}
|