Skip to content

Commit

Permalink
feat: more on batch poster rewards/due
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Sep 13, 2024
1 parent 1aef5e4 commit e7b5308
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arbos/l1pricing/l1PricingOldVersions.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ func (ps *L1PricingState) _preVersion2_UpdateForBatchPosterSpending(
if err != nil {
return err
}
l1PricerRewards, _ := paymentForRewards.Float64()
l1PricerFundsPoolRewardsCounter.Inc(1)
l1PricerFundsPoolRewardsDistribution.Update(l1PricerRewards)
availableFunds = am.BigSub(availableFunds, paymentForRewards)

// settle up our batch poster payments owed, as much as possible
Expand Down Expand Up @@ -347,6 +350,9 @@ func (ps *L1PricingState) _preVersion2_UpdateForBatchPosterSpending(
if err != nil {
return err
}
l1PricerDue, _ := balanceToTransfer.Float64()
l1PricerFundsPoolDueCounter.Inc(1)
l1PricerFundsPoolDueDistribution.Update(l1PricerDue)
availableFunds = am.BigSub(availableFunds, balanceToTransfer)
balanceDueToPoster = am.BigSub(balanceDueToPoster, balanceToTransfer)
err = poster.SetFundsDue(balanceDueToPoster)
Expand Down

0 comments on commit e7b5308

Please sign in to comment.