Skip to content

Commit

Permalink
chore: rename to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Sep 13, 2024
1 parent 51ed1aa commit 450d142
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arbos/l1pricing/l1PricingOldVersions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
)

var (
l1PricerFundsPoolRewardsCounter = metrics.NewRegisteredCounter("arbos/l1price_funds_pool/rewards_counter", nil)
l1PricerFundsPoolRewardsDistribution = metrics.NewRegisteredGaugeFloat64("arbos/l1price_funds_pool/rewards_distribution", nil)
l1PricerFundsPoolDueCounter = metrics.NewRegisteredCounter("arbos/l1price_funds_pool/due_counter", nil)
l1PricerFundsPoolDueDistribution = metrics.NewRegisteredGaugeFloat64("arbos/l1price_funds_pool/due_distribution", nil)
l1RewardsCounter = metrics.NewRegisteredCounter("arbos/batchposter_fee_collector/rewards_counter", nil)
l1RewardsDistribution = metrics.NewRegisteredGaugeFloat64("arbos/batchposter_fee_collector/rewards_distribution", nil)
l1BaseFeeDueCounter = metrics.NewRegisteredCounter("arbos/batchposter_fee_collector/due_counter", nil)
l1BaseFeeDistribution = metrics.NewRegisteredGaugeFloat64("arbos/batchposter_fee_collector/due_distribution", nil)
)

func (ps *L1PricingState) _preversion10_UpdateForBatchPosterSpending(
Expand Down Expand Up @@ -132,8 +132,8 @@ func (ps *L1PricingState) _preversion10_UpdateForBatchPosterSpending(
return err
}
l1PricerRewards, _ := paymentForRewards.Float64()
l1PricerFundsPoolRewardsCounter.Inc(1)
l1PricerFundsPoolRewardsDistribution.Update(l1PricerRewards)
l1RewardsCounter.Inc(1)
l1RewardsDistribution.Update(l1PricerRewards)
availableFunds = statedb.GetBalance(L1PricerFundsPoolAddress)

// settle up payments owed to the batch poster, as much as possible
Expand All @@ -157,8 +157,8 @@ func (ps *L1PricingState) _preversion10_UpdateForBatchPosterSpending(
return err
}
l1PricerDue, _ := balanceToTransfer.Float64()
l1PricerFundsPoolDueCounter.Inc(1)
l1PricerFundsPoolDueDistribution.Update(l1PricerDue)
l1BaseFeeDueCounter.Inc(1)
l1BaseFeeDistribution.Update(l1PricerDue)
balanceDueToPoster = am.BigSub(balanceDueToPoster, balanceToTransfer)
err = posterState.SetFundsDue(balanceDueToPoster)
if err != nil {
Expand Down

0 comments on commit 450d142

Please sign in to comment.