-
Notifications
You must be signed in to change notification settings - Fork 2
Support Delayed Token Update #40
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
riccardo-ssvlabs
commented
Apr 17, 2025
- Support storage of strategy owners
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.
Pull Request Overview
This PR updates the README documentation to provide instructions on updating module contracts and upgrading the implementation contract. Key changes include:
- Adding a new section to update module contracts on-chain via the proxy contract.
- Introducing a dedicated section for upgrading the implementation contract, including reference to an automation script.
- Retaining existing Public Testnet information for Holesky.
Files not reviewed (19)
- package.json: Language not supported
- scripts/DeployProxy.s.sol: Language not supported
- src/core/SSVBasedApps.sol: Language not supported
- src/core/interfaces/IBasedAppManager.sol: Language not supported
- src/core/interfaces/ICore.sol: Language not supported
- src/core/interfaces/IProtocolManager.sol: Language not supported
- src/core/libraries/CoreStorageLib.sol: Language not supported
- src/core/libraries/ProtocolStorageLib.sol: Language not supported
- src/core/modules/BasedAppsManager.sol: Language not supported
- src/core/modules/ProtocolManager.sol: Language not supported
- src/core/modules/StrategyManager.sol: Language not supported
- src/middleware/interfaces/IBasedApp.sol: Language not supported
- src/middleware/modules/core/BasedAppCore.sol: Language not supported
- test/SSVBasedApps.t.sol: Language not supported
- test/helpers/Setup.t.sol: Language not supported
- test/helpers/Utils.t.sol: Language not supported
- test/modules/BasedAppsManager.t.sol: Language not supported
- test/modules/ProtocolManager.t.sol: Language not supported
- test/modules/StrategyManager.t.sol: Language not supported
Comments suppressed due to low confidence (1)
README.md:155
- [nitpick] The inclusion of the symbol '❍' within the function call may be confusing if not part of the actual identifier. Consider clarifying its purpose or removing it to avoid ambiguity in documentation.
__`❍ updateModules`__: specifying the correct module id and the new module address.
| if (requestTime > tokenData.effectTime) { | ||
| tokenData.currentValue = tokenData.pendingValue; | ||
| } |
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.
the thing is if you update beta suddenly upwards, lots of over obligations may stop making sense... Because of OBLIGATION_TIMELOCK_PERIOD it will be hard to fix on time.
However the bApp will probably not want to wreck itself so might be fine.
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.
We just need to set warnings in docs
|
@riccardo-ssvlabs good work!
|
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.
Looks good.
src/core/SSVBasedApps.sol
Outdated
| return (s.strategies[strategyId].owner, s.strategies[strategyId].fee); | ||
| } | ||
|
|
||
| function strategyOwners( |
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.
better to change name to strategiesByOwner, ownerStrategies or similar
| address bApp, | ||
| address token, | ||
| uint256 amount, | ||
| uint32 percentage, |
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.
Maybe you should consider working with wads instead of percentage
* Support Delayed Token Update (#40) * Feature deactivation on demand (#42) * feat: update adjust percentage formula and optimizations * Updated deployment scripts (#45) * Release/v0.1.0 (#46) * Fix: Propose Obligation Update (#73) * fix(obligationRequests): set correct storage location * chore: add v0.1.1 fix deployment metadata