Skip to content

Commit

Permalink
[fix-quadratic-penalty] fix quadratic_penalty_quotient
Browse files Browse the repository at this point in the history
  • Loading branch information
djrtwo committed Sep 25, 2018
1 parent 933d98f commit 8fac47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/casper_sharding_v2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Let `time_since_finality = block.slot_number - last_finalized_slot`, and let `B`

* `total_deposits = sum([v.balance for i, v in enumerate(validators) if i in get_active_validator_indices(validators, current_dynasty)])` and `total_deposits_in_ETH = total_deposits // 10**18`
* `reward_quotient = BASE_REWARD_QUOTIENT * int(sqrt(total_deposits_in_ETH))` (1/this is the per-slot max interest rate)
* `quadratic_penalty_quotient = int(sqrt(SQRT_E_DROP_TIME / SLOT_DURATION))` (after D slots, ~D<sup>2</sup>/2 divided by this is the portion lost by offline validators)
* `quadratic_penalty_quotient = (SQRT_E_DROP_TIME / SLOT_DURATION)**2` (after D slots, ~D<sup>2</sup>/2 divided by this is the portion lost by offline validators)

For each slot `S` in the range `last_state_recalc - CYCLE_LENGTH ... last_state_recalc - 1`:

Expand Down

0 comments on commit 8fac47e

Please sign in to comment.