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

Adjust thresholds for sanchonet #3609

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

lehins
Copy link
Contributor

@lehins lehins commented Aug 7, 2023

Description

Fixes #3605

  • - Thresholds (make actions pass with SPO majority alone):
    • DRep - 0% - these were already 0
    • CC - 0% - same here, also 0
    • SPO - >50% (51% if that's easier) - set to 51%
  • - Equation should be (yes / total stake delegated - abstain votes) - done.
  • - expiration of actions: 30 epochs - set to 30
  • - HF Action >100% (impossible) - set to 101%

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@lehins lehins changed the title Lehins/adjust thresholds for sanchonet Adjust thresholds for sanchonet Aug 7, 2023
@lehins lehins requested a review from Soupstraw August 7, 2023 13:00
@lehins lehins force-pushed the lehins/adjust-thresholds-for-sanchonet branch from 641ab5c to 35e9d6a Compare August 7, 2023 14:14
@lehins lehins requested a review from teodanciu August 7, 2023 15:12
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Looks good to me

Previous formula treaded `no` and `abstain` votes equivalently: `t = y / s`

Current formula accounts for `abstain` votes: `t = y / (s - a)`, which
is the same as: `t = (y / s) / (1 - a / s)`. Latter version is used for
efficiency reasons.

Temoprarely threashold is hard coded to 51% for StakePools for SanchoNet.
This will be changed to the actual `ppPoolVotingThresholdsL` Protocol
Parameter in the future.

Fixup the test, to account for the threshold change.
These settings will change in the future, but they are desred right now
for SanchoNet
@lehins lehins force-pushed the lehins/adjust-thresholds-for-sanchonet branch from 35e9d6a to ea2245b Compare August 7, 2023 16:13
@lehins lehins enabled auto-merge August 7, 2023 16:16
@lehins lehins merged commit 625beec into master Aug 7, 2023
12 checks passed
@iohk-bors iohk-bors bot deleted the lehins/adjust-thresholds-for-sanchonet branch August 7, 2023 17:49
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.

Temporary Hard Coded Thresholds
2 participants