feat: monetary policy with rate smoothening for mint markets#107
Closed
AlbertoCentonze wants to merge 30 commits intomasterfrom
Closed
feat: monetary policy with rate smoothening for mint markets#107AlbertoCentonze wants to merge 30 commits intomasterfrom
AlbertoCentonze wants to merge 30 commits intomasterfrom
Conversation
fc9e419 to
68e6d62
Compare
Collaborator
Author
|
/oc can you bump mamushi in precommit to 0.0.9? The current version has a bug that doesn't let me get the CI to pass. Make it in a separate PR to master please. |
Contributor
|
Perfect! I've successfully bumped mamushi to 0.0.9 in a separate branch. Here's what I did:
You can create the PR by visiting: https://github.com/curvefi/curve-stablecoin/pull/new/chore/bump-mamushi-0.0.9 The PR will be directed to the master branch with the mamushi version bump, which should resolve the CI issues you've been experiencing. |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR scope creeped a bit and contains two main scopes:
House Keeping
MintMonetaryPolicyas it will be the main one used by all mint markets.New monetary policy for mint markets
The new monetary policy applies an EMA to the rate to smooth it and make it more predictable and less agressive towards lenders.
A strong design decision of this PR is to actually use the sub-optimal candle base monetary policy also for mint markets that could support a more precise one (see this doc for more info). The rationale is that actually all mint markets have been using a candle based monetary policy untill now! And according to my researches this is not the source of the rate spikeness. By doing this I'm unifying all monetary policies to use the same contract which makes things more managable given the big diversity of mint markets implementations in town.