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
Reserve spend limits should not apply to CP-DOTO #3172
Conversation
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.
can you add details in the description?
I'm not sure what CP-DOTO stands for, but the transferExchangeGold method looks like it can only be accessed by registered contracts and the _transferGold internally, so seems to be a safe change that allows only specified contracts to bypass a daily spending limit
LGTM
Codecov Report
@@ Coverage Diff @@
## master #3172 +/- ##
==========================================
- Coverage 75.64% 75.62% -0.02%
==========================================
Files 610 609 -1
Lines 15302 15275 -27
Branches 1901 1899 -2
==========================================
- Hits 11575 11552 -23
+ Misses 3391 3387 -4
Partials 336 336
Continue to review full report at Codecov.
|
CP-DOTO is the Exchange.sol, mainly around exchange(). |
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.
LGTM!
Yes, is removing the daily spend limit from transferExchangeGold() that is called by CP-DOTO. Daily spend limit only checked for Custody transferGold() to otherAddresses. |
Description
This PR removes the restriction on reserve spending from transfers initiated on behalf of the stability protocol.
Tested
Unit tests.
Other changes
None
Related issues
None
Backwards compatibility
Yes