Skip to content

Commit

Permalink
Merge pull request #68 from ChihChengLiang/master
Browse files Browse the repository at this point in the history
fixed #64, Update change in deposit scale factor
  • Loading branch information
ChihChengLiang authored Apr 5, 2018
2 parents dda4802 + f50949e commit 50cf738
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 @@ -263,7 +263,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.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 50cf738

Please sign in to comment.