Metacenter

How data is cross-checked

Every distribution is recomputed independently from contract state.

The indexer never uses the deprecated contract-events endpoint. For each distribution it takes three steps:

Find the block

The calculation height of distribution k is fixed: first burn height + (k + 1) × 1,050 − 1. The indexer binary-searches Stacks blocks for the first one whose state has last-reward-compute-height ≥ that height, reading historical state with Hiro's call-read ?tip=.

Read the event

It takes the calculate-rewards transaction in that block and reads the exact figures from its calculate-rewards and bond-distribution print events.

Recompute from state

It reads pox-5 state just before and just after that block:

  • the reserve delta, which must equal the deposit exactly
  • rewards-per-token × shares, for STX-only stakers and each bond

Results so far

DistributionCycleGross poolPaid to bondsReserve depositDifferences vs eventMatch
282141162,018,760 sats0 sats24,302,814 satsgross -1, reserve 0, stx -1, bonds 0yes
283141188,232,684 sats0 sats28,234,902 satsgross -1, reserve 0, stx -1, bonds 0yes
284142217,098,316 sats0 sats32,564,747 satsgross -1, reserve 0, stx -1, bonds 0yes
285142233,931,905 sats0 sats35,089,785 satsgross -1, reserve 0, stx -1, bonds 0yes
286143230,327,835 sats13,810,222 sats32,477,641 satsgross -2, reserve 0, stx -1, bonds -1yes
287143262,934,641 sats13,810,222 sats37,368,662 satsgross -2, reserve 0, stx -1, bonds -1yes
288144351,979,584 sats13,810,186 sats50,725,409 satsgross -2, reserve 0, stx -1, bonds -1yes
289144429,249,034 sats13,808,686 sats62,316,052 satsgross -2, reserve 0, stx -1, bonds -1yes
290145491,629,217 sats44,097,979 sats67,129,685 satsgross -2, reserve 0, stx -1, bonds -1yes
291145516,048,386 sats44,097,727 sats70,792,598 satsgross -2, reserve 0, stx -1, bonds -1yes
292146461,519,047 sats44,097,727 sats62,613,198 satsgross -2, reserve 0, stx -1, bonds -1yes
293146427,542,312 sats44,097,565 sats57,516,712 satsgross -3, reserve 0, stx -1, bonds -2yes
294147430,445,092 sats104,116,159 sats48,949,339 satsgross -3, reserve 0, stx -1, bonds -2yes

The differences come from integer truncation in rewards-per-token: at most 1 sat per product.

Edit on GitHub

On this page