Closed djrtwo closed 5 years ago
Waiting on some clarity on the second part of the rewards calculations (crosslink rewards).
@hwwhww You can review the rest and we can merge unless V comes back with notes soon.
Just updated ValidatorRecord.balance
to int128
and made the default deposit be in WEI
@hwwhww Addressed all the things. Can you take another look?
I'm still waiting on clarity from V but added a calculate_crosslink_rewards
function as a stub
fixing lint now
Addresses #83
Done:
apply_rewards_and_penalties
function which is called duringcalculate_new_cycle
Chain
object that constructs a chain from a set of blocks and a head. this is kept around inActiveState
to aid in state recalculations.to do: