From 90581c92c0221d3ce63d0327f6f9b7d7bcd1e98b Mon Sep 17 00:00:00 2001 From: Maksim Strebkov <257byte@gmail.com> Date: Sun, 17 Mar 2024 16:26:10 +0300 Subject: [PATCH] Add frozen deposits and rollup bonds to the circulating supply --- Tzkt.Api/Repositories/StatisticsRepository.cs | 2 +- Tzkt.Api/Services/Home/HomeService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tzkt.Api/Repositories/StatisticsRepository.cs b/Tzkt.Api/Repositories/StatisticsRepository.cs index 8792b38f..f1f77cb0 100644 --- a/Tzkt.Api/Repositories/StatisticsRepository.cs +++ b/Tzkt.Api/Repositories/StatisticsRepository.cs @@ -67,7 +67,7 @@ public async Task> 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), }); } diff --git a/Tzkt.Api/Services/Home/HomeService.cs b/Tzkt.Api/Services/Home/HomeService.cs index 04db90af..02d39f7d 100644 --- a/Tzkt.Api/Services/Home/HomeService.cs +++ b/Tzkt.Api/Services/Home/HomeService.cs @@ -266,7 +266,7 @@ async Task 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, }; }