Skip to content

Commit

Permalink
fix treasury indicators querier
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo authored and hanjukim committed Jan 26, 2021
1 parent 9885acf commit 50b22b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/treasury/internal/keeper/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func queryIndicators(ctx sdk.Context, keeper Keeper) ([]byte, error) {
taxRewards := sdk.NewDecCoinsFromCoins(keeper.PeekEpochTaxProceeds(ctx)...)
TR := keeper.alignCoins(ctx, taxRewards, core.MicroSDRDenom)

// Subtract remnant blocks of past chain
ctx = ctx.WithBlockHeight(ctx.BlockHeight() - (keeper.GetCumulatedHeight(ctx) % core.BlocksPerWeek))

epoch := keeper.GetEpoch(ctx)
var res types.IndicatorQueryResonse
if epoch == 0 {
Expand Down

0 comments on commit 50b22b3

Please sign in to comment.