Skip to content

Commit

Permalink
fixed #64, Update change in deposit scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Mar 31, 2018
1 parent e658545 commit 0582a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casper/contracts/simple_casper.v.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def initialize_epoch(epoch: int128):
self.current_epoch = epoch

# Reward if finalized at least in the last two epochs
self.last_nonvoter_rescale = (1 + self.collective_reward() - self.reward_factor)
self.last_nonvoter_rescale = (1 + self.get_collective_reward()) /(1 + self.reward_factor)
self.last_voter_rescale = self.last_nonvoter_rescale * (1 + self.reward_factor)
self.deposit_scale_factor[epoch] = self.deposit_scale_factor[epoch - 1] * self.last_nonvoter_rescale

Expand Down

0 comments on commit 0582a20

Please sign in to comment.