Assessment reports>Beefy UniswapV3>Threat Model>addStrategy

Function: addStrategy(string _strategyName, address _implementation)

Allows adding a new strategy to the factory.

Inputs

  • _strategyName

    • Control: Fully controlled by the caller.

    • Constraints: Check if the strategy name already exists.

    • Impact: The name of the strategy to add.

  • _implementation

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The implementation address.

Branches and code coverage

Intended branches

  • Ensure that the _implementation is a valid contract address.

  • Creates a new upgradable beacon instance for the given strategy name.

Negative behavior

  • Should not allow overwriting an existing strategy.

  • Should not be callable by anyone other than the manager.

Zellic © 2024Back to top ↑