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

feat(shed): check command for FIP-0081 pledge calculation #12713

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Nov 21, 2024

lotus-shed audits fip0081-pledge
Calculating at epoch 4462564
 Sector Size | Verified % | Duration  | Actual                   | Pre-FIP-0081             | Difference
---------------------------------------------------------------------------------------------------------
 2KiB        |  100%      | 1 year(s) | 0.000000082694866747 FIL | 0.000000082694866747 FIL | 0
 2KiB        |   50%      | 1 year(s) | 0.000000045482176711 FIL | 0.000000045482176711 FIL | 0
 2KiB        |    0%      | 1 year(s) | 0.000000008269486673 FIL | 0.000000008269486673 FIL | 0
 2KiB        |  100%      | 3 year(s) | 0.000000082694866747 FIL | 0.000000082694866747 FIL | 0
 2KiB        |   50%      | 3 year(s) | 0.000000045482176711 FIL | 0.000000045482176711 FIL | 0
 2KiB        |    0%      | 3 year(s) | 0.000000008269486673 FIL | 0.000000008269486673 FIL | 0
 32GiB       |  100%      | 1 year(s) | 1.387389641535528066 FIL | 1.387389641535528066 FIL | 0
 32GiB       |   50%      | 1 year(s) | 0.763064302844540436 FIL | 0.763064302844540436 FIL | 0
 32GiB       |    0%      | 1 year(s) | 0.138738964153552805 FIL | 0.138738964153552805 FIL | 0
 32GiB       |  100%      | 3 year(s) | 1.387389641535528066 FIL | 1.387389641535528066 FIL | 0
 32GiB       |   50%      | 3 year(s) | 0.763064302844540436 FIL | 0.763064302844540436 FIL | 0
 32GiB       |    0%      | 3 year(s) | 0.138738964153552805 FIL | 0.138738964153552805 FIL | 0
 64GiB       |  100%      | 1 year(s) | 2.774779283071056134 FIL | 2.774779283071056134 FIL | 0
 64GiB       |   50%      | 1 year(s) | 1.526128605689080873 FIL | 1.526128605689080873 FIL | 0
 64GiB       |    0%      | 1 year(s) | 0.277477928307105612 FIL | 0.277477928307105612 FIL | 0
 64GiB       |  100%      | 3 year(s) | 2.774779283071056134 FIL | 2.774779283071056134 FIL | 0
 64GiB       |   50%      | 3 year(s) | 1.526128605689080873 FIL | 1.526128605689080873 FIL | 0
 64GiB       |    0%      | 3 year(s) | 0.277477928307105612 FIL | 0.277477928307105612 FIL | 0
---------------------------------------------------------------------------------------------------------

Currently not a measurable difference. Will keep on checking and if there remains no difference then I'll do more digging. The ramp time is a year so it should be very gradual.

Also .. TIL pledge is the same for different durations even though the functions take a duration value for spacetime calculation?

@rvagg rvagg marked this pull request as ready for review November 22, 2024 04:28
@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label Nov 22, 2024
@rvagg
Copy link
Member Author

rvagg commented Nov 22, 2024

Latest incarnation of this thing:

Screenshot 2024-11-22 at 3 22 03 pm

(See filecoin-project/FIPs#847 (comment) for details).

@ZenGround0 would you mind casting an eye over this? I figure it might be worth checking in just to serve as another example of how to achieve something like this.

@rvagg
Copy link
Member Author

rvagg commented Nov 22, 2024

Also Slack thread discussing this where I figure out that the calculation ramps stepwise, in 300 increments over the year: https://filecoinproject.slack.com/archives/C05P37R9KQD/p1732182449213629

@rvagg rvagg enabled auto-merge (rebase) November 26, 2024 01:55
@rvagg rvagg merged commit 5791b4a into master Nov 26, 2024
84 of 86 checks passed
@rvagg rvagg deleted the rvagg/fip-0081-checkshed branch November 26, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does not require CHANGELOG.md update
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

2 participants