Skip to content

Conversation

@riccardo-ssvlabs
Copy link
Contributor

  • Support storage of strategy owners

Copy link

Copilot AI left a 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.

Comment on lines +67 to +69
if (requestTime > tokenData.effectTime) {
tokenData.currentValue = tokenData.pendingValue;
}

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.

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

Base automatically changed from feat/slashing to main April 22, 2025 10:49
@mtabasco
Copy link
Contributor

@riccardo-ssvlabs good work!
I made these changes:

  • SSVBasedApps.strategies -> SSVBasedApps.strategyById
  • SSVBasedApps.ownerStrategies -> SSVBasedApps.strategiesByOwner
  • Reorder ProtocolStorageLib.Data variables
  • Removed a duplicated import in BasedAppsManager

Copy link
Contributor Author

@riccardo-ssvlabs riccardo-ssvlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

return (s.strategies[strategyId].owner, s.strategies[strategyId].fee);
}

function strategyOwners(
Copy link
Contributor

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,

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

@mtabasco mtabasco changed the base branch from main to develop April 23, 2025 11:24
@mtabasco mtabasco merged commit 2659fdf into develop Apr 23, 2025
3 checks passed
@mtabasco mtabasco deleted the feat/othentic branch April 23, 2025 11:26
mtabasco added a commit that referenced this pull request Jun 18, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants