Skip to content

Commit

Permalink
Add frozen deposits and rollup bonds to the circulating supply
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Mar 17, 2024
1 parent 3c03f63 commit 90581c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tzkt.Api/Repositories/StatisticsRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task<IEnumerable<Statistics>> Get(
TotalSupply = row.TotalBootstrapped + row.TotalCommitments + row.TotalCreated
- row.TotalBurned - row.TotalBanished,
CirculatingSupply = row.TotalBootstrapped + row.TotalActivated + row.TotalCreated
- row.TotalBurned - row.TotalBanished - row.TotalFrozen - row.TotalRollupBonds - row.TotalSmartRollupBonds,
- row.TotalBurned - row.TotalBanished - row.TotalLost,
Quote = Quotes.Get(quote, row.Level),
});
}
Expand Down
2 changes: 1 addition & 1 deletion Tzkt.Api/Services/Home/HomeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async Task<Statistics> GetStatistics(IDbConnection db)
TotalSupply = row.TotalBootstrapped + row.TotalCommitments + row.TotalCreated
- row.TotalBurned - row.TotalBanished,
CirculatingSupply = row.TotalBootstrapped + row.TotalActivated + row.TotalCreated
- row.TotalBurned - row.TotalBanished - row.TotalFrozen - row.TotalRollupBonds - row.TotalSmartRollupBonds,
- row.TotalBurned - row.TotalBanished - row.TotalLost,
};
}

Expand Down

0 comments on commit 90581c9

Please sign in to comment.