-
Notifications
You must be signed in to change notification settings - Fork 569
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
feat: Add zero IR strategy #818
Conversation
|
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #818 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 45 46 +1
Lines 2300 2320 +20
Branches 421 421
=======================================
+ Hits 2292 2312 +20
Misses 8 8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
*/ | ||
contract ZeroReserveInterestRateStrategy is IDefaultInterestRateStrategy { | ||
/// @inheritdoc IDefaultInterestRateStrategy | ||
uint256 public immutable OPTIMAL_USAGE_RATIO = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why immutable
and just not constant
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed now
Generally, I don't see any major problem with the implementation from the perspective of the protocol having a ZERO rate strategy configured, just an small consideration.
|
Thanks for the analysis and review @eboadom . Regarding the side-effect on |
Yes, agree. Just something to take into account, because it feels weird that we allow repeated actions that make no change |
Closes #817