mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-03-11 10:57:21 +08:00
Fix calc_apy script.
This commit is contained in:
parent
ed4281d117
commit
136dd3fd8e
@ -49,7 +49,7 @@ total_factors = {
|
||||
for f in list(block.data.active_ids["challenge"]) + ["weighted_deposit"]
|
||||
}
|
||||
reward_shares = {
|
||||
benchmarker: int(opow_data[benchmarker].block_data.reward_share) / (int(opow_data[benchmarker].block_data.reward) + 1e-12)
|
||||
benchmarker: opow_data[benchmarker].block_data.reward_share.to_float() / (opow_data[benchmarker].block_data.reward.to_float() + 1e-12)
|
||||
for benchmarker in opow_data
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user