Skip to content

Commit

Permalink
op holding tvl .
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zklink committed Oct 9, 2024
1 parent 8b21a8b commit a6b3383
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/tvl/tvl.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ export class TvlService {
tvl,
}));
const holdingTvlUsd = await this.cacheRepository.getValue(HOLDING_TVL_USD);
if (holdingTvlUsd) {
categoryTvl.push({
name: "holding",
tvl: new BigNumber(holdingTvlUsd),
});
}
categoryTvl.push({
name: "holding",
tvl: holdingTvlUsd ? new BigNumber(holdingTvlUsd) : new BigNumber(0),
});
return categoryTvl;
}

Expand Down

0 comments on commit a6b3383

Please sign in to comment.