-
Notifications
You must be signed in to change notification settings - Fork 971
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
Rename currency settler util contract #799
base: main
Are you sure you want to change the base?
Conversation
Forge code coverage:
|
@@ -9,7 +9,9 @@ import {IPoolManager} from "../../src/interfaces/IPoolManager.sol"; | |||
/// To settle a positive delta (a credit to the user), a user may take or mint. | |||
/// To settle a negative delta (a debt on the user), a user make transfer or burn to pay off a debt. | |||
/// @dev Note that sync() is called before any erc-20 transfer in `settle`. | |||
library CurrencySettler { | |||
/// @dev THIS CONTRACT IS NOT SECURE, IT IS FOR TESTING PURPOSES, DO NOT USE IT IN PROD |
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.
I feel like this warning is a bit overkill? It just doesn't use safe transfer from and we don't do this in a lot of our test contracts which should never be used in prod
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.
I think just renaming it and putting it in the test/utils file is sufficient
Related Issue
Which issue does this pull request resolve?
This contract is not secure and is just a test util. Lets name it as such, and put a better version in periphery for real contracts.