We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 085767b commit 4f9aca8Copy full SHA for 4f9aca8
apps/indexer/src/app/routes/_chain/routes.ts
@@ -416,7 +416,10 @@ export default async function (fastify: ZodFastifyInstance) {
416
positions: userPositions,
417
summary: {
418
netApy: netApy.toFixed(USD_DECIMALS),
419
- healthFactor: healthFactor.toFixed(USD_DECIMALS),
+ healthFactor:
420
+ borrowBalance.eq(0) && supplyBalance.eq(0)
421
+ ? '0'
422
+ : healthFactor.toFixed(USD_DECIMALS),
423
collateralRatio: collateralRatio.toFixed(USD_DECIMALS),
424
borrowPower: borrowPower.toFixed(USD_DECIMALS),
425
borrowPowerUsed: borrowPowerUsed.toFixed(USD_DECIMALS),
0 commit comments