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

Update FIP0056 based on implementation #682

Closed
wants to merge 1 commit into from
Closed

Conversation

Stebalien
Copy link
Member

  • The minimum duration is 540 days, not 1.5 years. It's a small difference, but important.
  • The implementation recalculates SDM from the current epoch on replica update (see Revisiting a Sector Duration Multiplier (FIP-0056) #554 (comment)).
  • The sdm pseudo code lead to a maximum multiplier of 1e6, which was clearly a mistake.
  • This now documents the update to replaced day rewards, etc.
  • This now documents the correct termination penalty calculation (still under discussion, but the old version was broken).

- The minimum duration is 540 days, not 1.5 years. It's a small
difference, but important.
- The implementation recalculates SDM from the current epoch on replica
update (see #554 (comment)).
- The `sdm` pseudo code lead to a maximum multiplier of 1e6, which was
clearly a mistake.
- This now documents the update to replaced day rewards, etc.
- This now documents the correct termination penalty calculation (still
under discussion, but the old version was broken).

```
fn sdm(duration_commitment: float) -> float {
if duration_commitment <= (3/2 * EPOCHS_IN_YEAR) {
fn sdm_scale(base_power: int, duration_commitment: int) -> int {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be -> float

@anorth
Copy link
Member

anorth commented Apr 6, 2023

Thanks!

Copy link
Collaborator

@kaitlin-beegle kaitlin-beegle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approving changes. Even if the FIP is rejected, we should be sure to codify the most accurate implementation guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants