-
Notifications
You must be signed in to change notification settings - Fork 303
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
staking: reverse causality of rate calculations #1481
Comments
The new piece of code could be called "distributions", along the lines of the Cosmos SDK's distributions module. |
Kicking back to Next, and unassigning @plaidfinch. Optimistically, @erwanor will pick this up for 64. |
erwanor
changed the title
Reverse causality of staking rate calculations
staking: reverse causality of rate calculations
Nov 15, 2023
10 tasks
github-project-automation
bot
moved this from Testnet 64: Titan
to Testnet 63: Rhea (Web Wallet)
in Testnets
Nov 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently, the staking rate calculations are derived from the code that was originally used just to build the exchange rate mechanism and test that it works. As a result, the flow of causality is roughly:
fixed base rate
→validator exchange rate
→ (implicitly) change to size of validators' delegation pool.However, this isn't what we actually want: we want to take the amount of new issuance for a delegation pool as the given input, then compute the validator exchange rate that prices in that change to the delegation pool. This way, we can split apart two responsibilities: (1) the overall tokenomics for staking, which determines the new issuance for each delegation pool [i.e., some new code] and (2) the mechanism that actually does the accounting to track changes to the pool size [i.e., the validator rate mechanism]
For instance, this allows us to implement #1450, because we can (a) compute the new staking issuance for each delegation pool and then (b) add in the fees collected by that validator before (c) computing a validator exchange rate that prices in a+b.
It will also allow us to implement variable staking rewards, or variable splits of newly issued tokens between stakers or other streams, since those just change the "top" of the pipe.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: