diff --git a/src/app/stats/components/HntInfo.tsx b/src/app/stats/components/HntInfo.tsx index 0bb5eb2..2d63ab2 100644 --- a/src/app/stats/components/HntInfo.tsx +++ b/src/app/stats/components/HntInfo.tsx @@ -23,8 +23,8 @@ import { fetchHntGovernanceStats } from "../utils/fetchGovernanceMetrics" import { fetchMint } from "../utils/fetchMint" import { getNextHalvening } from "../utils/getNextHalvening" import { - getRemainingEmissions, MAX_DAILY_NET_EMISSIONS, + getRemainingEmissions, } from "../utils/remainingEmissions" import { Countdown } from "./Countdown" diff --git a/src/knex/maxSupply.ts b/src/knex/maxSupply.ts index 72d3385..e60b302 100644 --- a/src/knex/maxSupply.ts +++ b/src/knex/maxSupply.ts @@ -56,9 +56,14 @@ export class MaxSupply { record.hnt_burned > (latestBurn?.hnt_burned || BigInt(0)) if ( - (!latest && !latestBurn) || // first time app is run - (!isSameDay && (latestBurn?.supply || 0) < record.supply) || // when new UTC day + supply has been disbursed - (isSameDay && hasBurnIncrease) // true when different hnt burn result and guards against dune query failure + // first time app is run + (!latest && !latestBurn) || + // when new UTC day + supply has been disbursed + (!isSameDay && (latestBurn?.supply || 0) < record.supply) || + // true when different hnt burn result and guards against dune query failure + (isSameDay && hasBurnIncrease) || + // true when first recording of the day happens between treasury and HST emissions + (isSameDay && (latest?.supply || 0) < record.supply) ) { await this.addRecord(record) if (record.hnt_burned === BigInt(0)) return record