@@ -258,7 +258,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
258258 returns (CollateralDebtData memory collateralDebtData ) {
259259 result.accruedInterest = collateralDebtData.accruedInterest;
260260 result.accruedFees = collateralDebtData.accruedFees;
261- result.healthFactor = collateralDebtData.twvUSD * PERCENTAGE_FACTOR / collateralDebtData.debt ;
261+ result.healthFactor = collateralDebtData.twvUSD * PERCENTAGE_FACTOR / collateralDebtData.totalDebtUSD ;
262262 result.totalValue = collateralDebtData.totalValue;
263263 result.isSuccessful = true ;
264264 } catch {
@@ -344,7 +344,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
344344 ICreditFacadeV3 creditFacade = _getCreditFacade (address (creditManager));
345345
346346 result.addr = _cm;
347- result.description = _getName (_cm);
347+ result.name = _getName (_cm);
348348 result.cfVersion = _getVersion (address (creditFacade));
349349
350350 result.underlying = creditManager.underlying ();
@@ -707,17 +707,17 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
707707
708708 (uint96 votesLpSide , uint96 votesCaSide ) = IGaugeV3 (gauge).userTokenVotes (staker, token);
709709
710- if (votesLpSide > 0 || votesCaSide > 0 ) {
711- if (op == QUERY) {
712- gaugeVotes[index] = GaugeVote ({
713- gauge: gauge,
714- token: token,
715- totalVotesLpSide: votesLpSide,
716- totalVotesCaSide: votesCaSide
717- });
718- }
719- ++ index;
710+ if (op == QUERY) {
711+ gaugeVotes[index] = GaugeVote ({
712+ gauge: gauge,
713+ token: token,
714+ currentEpoch: IGaugeV3 (gauge).epochLastUpdate (),
715+ epochFrozen: IGaugeV3 (gauge).epochFrozen (),
716+ totalVotesLpSide: votesLpSide,
717+ totalVotesCaSide: votesCaSide
718+ });
720719 }
720+ ++ index;
721721 }
722722 }
723723 }
0 commit comments