-
Notifications
You must be signed in to change notification settings - Fork 93
Abstract strategy gas improvements (#1719) #1724
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
Conversation
* Refactor base strategy to use immutables * Fixed strategy deployments in 001_core and fixtures * Generated new strategy diagrams
| /** | ||
| * @param _stratConfig The platform and OToken vault addresses | ||
| */ | ||
| constructor(BaseStrategyConfig memory _stratConfig) |
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.
should all these constructor params be calldata instead of memory?
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.
only storage or memory is supported for struct param.
|
There look like ok changes to me on the other hand probably no need to rush it for the code freeze today? |
|
Ah so we are only scoping today and not doing the actual code freeze. There are some fork tests failing other than that LGTM |
sparrowDom
left a comment
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
|
The fork tests are failing as we have removed liquidity from the strategies. They should work again once we reenable the strategies. If not, I'll fix |
Contract changes:
platformAddressandvaultAddressin theInitializableAbstractStrategychanged to be immutables.InitializableAbstractStrategyto preserve the storage slots.constructoradded to each of the strategy contracts to take theBaseStrategyConfigstruct that containsplatformAddressandvaultAddress.initializefunction on the strategy contract changed to not include theplatformAddressandvaultAddressparams.Contract change checklist: