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

Pi/special cap #4

Merged
merged 8 commits into from Oct 25, 2023
Merged

Pi/special cap #4

merged 8 commits into from Oct 25, 2023

Conversation

Quantumplation
Copy link
Member

@Quantumplation Quantumplation commented Oct 18, 2023

Implements controls to configure the scheme specified in this governance proposal:

https://governance.sundaeswap.finance/#/proposal#3073216b94547c3737246d5a6c2190e475cd71a00fafa8f7b753704898a942ec

In particular, this adds:

  • EligibleAssets, EligiblePairs, DisqualifiedAssets, and DisqualifiedPairs
    • These give more controls for flagging pools as eligible or disqualified, so that SUNDAE/ADA pools can be disqualified
    • Technically, only the last one is needed, but I added the others for symmetry and flexibility
  • FixedEmissions
    • This map defines which pools receive a fixed, constant amount of tokens, as opposed to the normal delegation based weight
    • This will be used to give pool 08 a fixed 30% of the daily emissions
  • EmissionCap
    • This property defines a fixed upper limit on how much any pool receiving delegation-based emissions can receive
    • For example, this will be set to 14% of the daily emissions, which would mean anything receiving more than that would have the surplus returned to the treasury

Ultimately, this exact implementation and the choice of settings will need to be ratified via another governance proposal, since the first one was underspecified, but I believe this fairly closely implements the behavior outlined in that proposal.

This will be used to count any delegation to any ADA/SUNDAE pair as an abstention
If a pool has a fixed emission rate, we deduct that from the daily emissions and distribute the remainder accordingly
calculation/calculation.go Show resolved Hide resolved
@Quantumplation Quantumplation merged commit d3f2691 into main Oct 25, 2023
2 checks passed
@Quantumplation Quantumplation deleted the pi/special-cap branch October 25, 2023 03:29
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.

None yet

3 participants