# Scoring and Rewarding Miners

The last step in the program is to score and pay the miners from B. From Phase 2 you now have x\*\* and *C\** and *x\*\** are the weights that tell you how much of each miner’s eligible contribution counts this epoch. For each miner *i*, define their raw score as:\
\
![](https://3638569340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F285cQB8JvZvGTLxQWiRv%2Fuploads%2F1wzvJq7tSET80anikE22%2Fimage.png?alt=media\&token=7df0965b-d42e-468f-9471-e72ea53b5855)\
\
This is the qualified, cost-adjusted payout weight for miner *i*. It incorporates their volume, ROI, eligibility, diversity, and ramp effects. Since we have a fixed budget of alpha tokens, *B*, Distribute them proportionally:\
\
![](https://3638569340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F285cQB8JvZvGTLxQWiRv%2Fuploads%2FXmH2owM4qG5ujaCwL5dF%2Fimage.png?alt=media\&token=3d6488dc-db2b-4e6a-b04c-5e19befff027)\
\
where *j* is just an index that runs from 1 to *n.* Each miner gets rewarded in alpha according to their share of the cost-efficient allocation outcome. The network now emits (or transfers) *P*<sub>*i*</sub> alpha tokens to each miner *i* and the process moves along to the next epoch with updated initial conditions.
