diff --git a/src/pages/Liquidated.tsx b/src/pages/Liquidated.tsx
index 0259b75..830cdfc 100644
--- a/src/pages/Liquidated.tsx
+++ b/src/pages/Liquidated.tsx
@@ -65,8 +65,8 @@ export function Liquidated() {
const graphDataList = populateMissingDays(graphDataMap, GRAPH_DAYS);
const summedGraphDataList = graphDataList.map((item) => {
- const totalActive = item.active ? sum(Object.values(item.active)) : NaN;
- const totalLiquidated = item.liquidated ? sum(Object.values(item.liquidated)) : NaN;
+ const totalActive = item.active ? sum(Object.values(item.active)) : 0;
+ const totalLiquidated = item.liquidated ? sum(Object.values(item.liquidated)) : 0;
return {
...item,
@@ -82,7 +82,7 @@ export function Liquidated() {
-
+ {/* */}
diff --git a/src/widgets/LiquidatedVaults.tsx b/src/widgets/LiquidatedVaults.tsx
index ae69347..b22291f 100644
--- a/src/widgets/LiquidatedVaults.tsx
+++ b/src/widgets/LiquidatedVaults.tsx
@@ -41,10 +41,9 @@ export function LiquidatedVaults({ title = 'Liquidated Vaults', data, boardAuxes
const vaultStateSuffix = vaultData?.currentState?.state === VAULT_STATES.CLOSED ? ' (Closed)' : '';
const vaultState = vaultData.state[0].toUpperCase() + vaultData.state.slice(1) + vaultStateSuffix;
- console.log("YYYYYYYYYYYY", vaultData)
const liquidationRatio =
- parseBigInt(vaultData.vaultManagerGovernance?.liquidationMarginNumerator || '') /
- parseBigInt(vaultData.vaultManagerGovernance?.liquidationMarginDenominator || '');
+ parseBigInt(vaultData.vaultManagerGovernance?.liquidationMarginNumerator) /
+ parseBigInt(vaultData.vaultManagerGovernance?.liquidationMarginDenominator);
const istDivisor = getTokenDivisor(boardAuxes, 'IST');
const tokenDivisor = getTokenDivisor(boardAuxes, vaultData.denom);
@@ -53,8 +52,6 @@ export function LiquidatedVaults({ title = 'Liquidated Vaults', data, boardAuxes
const collateralAmount = vaultData.liquidatingState.balance / tokenDivisor;
const liquidationPrice = (istDebtAmount * liquidationRatio) / collateralAmount;
const collateralAmountReturned = (vaultData.liquidatingState.balance - vaultData.balance) / tokenDivisor;
- console.log("YYYYYYYYYYYY 5555")
-
const oraclePriceRatio =
parseBigInt(vaultData.oraclePrice?.typeOutAmount) / parseBigInt(vaultData.oraclePrice?.typeInAmount);
const collateralAmountReturnedUsd = collateralAmountReturned * oraclePriceRatio;