-
Notifications
You must be signed in to change notification settings - Fork 16
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
Soft cap for outstanding kits #35
Comments
Interesting! |
To be sure, I'm not 100% sure this works. It seems on the face of it that it might break an invariant that if no one is getting richer out of this restriction no one should be getting poorer, so where does the disincentive come from? But it's not clear if that invariant is real or not. |
Agree, requires a little thought. |
Do you feel that we will need a soft cap for initial release? |
Need is a strong word, but if the analysis holds up, it's definitely worth having that extra line of code. My current thinking is that the mechanism essentially forces an increase in the collateralisation ratio which is costly for everyone involved. |
Yeah, that does make sense. |
Robocoins often ship with a hardcoded limit for their supply, which is progressively relaxed as stakeholders grow increasingly comfortable with the security and stability of the system. Unfortunately, if and when they hit this limit, there is no mechanism to prevent the robocoin from shooting past is peg as the supply cannot increase.
It turns out Checker can handle a soft-cap very gracefully. The solution is to replace the outstanding supply in the imbalance calculation with the max of the outstanding supply and some soft-cap.
If and when the outstanding supply goes over this limit, the imbalance fee will increase, which will in turn have the effect of pushing the drift lower, making it increasingly unattractive to hold kit as the supply grows larger.
It's also a single line of code change :-)
Although given this use case,
The text was updated successfully, but these errors were encountered: