Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #64, Update change in deposit scale factor #68

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.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