GetBakersRewardPeriod gives incorrect data
td202 opened this issue · 1 comments
td202 commented
Bug Description
The GetBakersRewardPeriod gives incorrect data concerning the pool commission rates, baker equity capital and delegated capital. The values presented are based on the active staking, whereas they should be based on the staking that applies to the current epoch (i.e. the snapshot of the active values that was taken one epoch before the last payday).
Steps to Reproduce
Compare the results from GetBakersRewardPeriod
(aka GetValidatorsRewardPeriod
in the client) and GetPoolInfo
.
Expected Result
equityCapital
should matchcurrentPaydayStatus/bakerEquityCapital
commissionRates
should matchcurrentPaydayStatus/commissionRates
delegatedCapital
should matchcurrentPaydayStatus/delegatedCapital
Actual Result
equityCapital
matchesbakerEquityCapital
commissionRates
matchespoolInfo/commissionRates
delegatedCapital
matchesdelegatedCapital
Versions
- Software Version: 6.*
- OS: All