-
Notifications
You must be signed in to change notification settings - Fork 83
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
Balancer Strategy Code Simplification #1851
Balancer Strategy Code Simplification #1851
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.
Awesome stuff thank you for this
@@ -537,22 +536,30 @@ abstract contract BaseBalancerStrategy is InitializableAbstractStrategy { | |||
virtual | |||
returns (uint256) | |||
{ | |||
IRateProvider rateProvider = poolRateProvidersCache[ |
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.
this function is really nicely simplified!
/** | ||
* @notice Caches Pool Assets and their index. These will never change | ||
* in a strategy. It's `public` because we already have one strategy | ||
* initialized without this, would make it easier when upgrading it |
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.
thanks for thinking this through 🙏
If you made a contract change, make sure to complete the checklist below before merging it in master.
Refer to our documentation for more details about contract security best practices.
Contract change checklist: