Skip to content

Commit 3d0c33a

Browse files
committed
Delete community tax tag
1 parent 573d48b commit 3d0c33a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/distribution/keeper/allocation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (k Keeper) AllocateTokens(ctx sdk.Context, percentVotes sdk.Dec, proposer s
6969
tokenPrecision := sdk.NewIntWithDecimal(1, 18)
7070
communityTaxAmount, err := strconv.ParseFloat(feePool.CommunityPool.AmountOf(sdk.NativeTokenMinDenom).QuoInt(tokenPrecision).String(), 64)
7171
if err == nil {
72-
k.metrics.CommunityTax.With("height", strconv.Itoa(int(ctx.BlockHeight()))).Set(communityTaxAmount)
72+
k.metrics.CommunityTax.Set(communityTaxAmount)
7373
}
7474

7575
logger.Info("Allocate reward to community tax fund", "allocate_amount", communityFunding.ToString(), "total_community_tax", feePool.CommunityPool.ToString())
@@ -96,7 +96,7 @@ func (k Keeper) AllocateFeeTax(ctx sdk.Context, destAddr sdk.AccAddress, percent
9696
tokenPrecision := sdk.NewIntWithDecimal(1, 18)
9797
communityTaxAmount, err := strconv.ParseFloat(feePool.CommunityPool.AmountOf(sdk.NativeTokenMinDenom).QuoInt(tokenPrecision).String(), 64)
9898
if err == nil {
99-
k.metrics.CommunityTax.With("height", strconv.Itoa(int(ctx.BlockHeight()))).Set(communityTaxAmount)
99+
k.metrics.CommunityTax.Set(communityTaxAmount)
100100
}
101101

102102
k.SetFeePool(ctx, feePool)

modules/distribution/keeper/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func PrometheusMetrics(config *cfg.InstrumentationConfig) *Metrics {
2525
Subsystem: MetricsSubsystem,
2626
Name: "community_tax",
2727
Help: "community tax",
28-
}, []string{"height"}),
28+
}, []string{}),
2929
}
3030
}
3131

0 commit comments

Comments
 (0)