-
Notifications
You must be signed in to change notification settings - Fork 998
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
adjust hysteresis to avoid initial over-deposit incentive #1627
Conversation
From chat earlier, we need to consider that if we do not offset the actual effective balance, we:
I think the system is closer to original intention if we change it to:
|
What is the rationale behind x+0.75 rather than x+0.25? A +/-0.25 would retain the current gap of requiring 0.5 Ether in rewards (or additional deposit) prior to an uptick in effective balance, and solves the issue of newly on-boarded deposits not suffering an immediate decrease in effective balance if they miss their first attestation. |
Yeah, it should be -0.25 and +1.25, not +1.75.
The error here is that as implemeneted the "downwards hysteresis width" (wrong term arguably) is actually negative 0.25, and not 0.25. So preserving the 1.5 width would require an upwards threshold of 1.25. |
Yeah the term could have been better. I care more about the hysteresis numbers than the names though, the leap needed to get back to 32 is affected significantly. |
modded to be 0.25/1.25 Ready for review and merge @protolambda |
With experimentation and review these numbers may change again, I am thinking we could just make it configurable, and avoid further spec changes. |
okay, now configurable @protolambda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# 1 (minus 0.25) | ||
HYSTERESIS_DOWNWARD_MULTIPLIER: 1 | ||
# 5 (plus 1.25) | ||
HYSTERESIS_UPWARD_MULTIPLIER: 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So previous behavior is, for context:
HYSTERESIS_QUOTIENT: 2
HYSTERESIS_DOWNWARD_MULTIPLIER: 0
HYSTERESIS_UPWARD_MULTIPLIER: 3
Address #1609
Make hysteresis calculations configurable.
Change default increment/decrement thresholds to x-0.25 and x+1.25