Assessment reports>Beefy UniswapV3>Threat Model>createStrategy

Function: createStrategy(string _strategyName)

Allows creating a new Beefy Strategy as a proxy of the template instance.

Inputs

  • _strategyName

    • Control: Fully controlled by the caller.

    • Constraints: None. Should ensure that strategyName exists in the instances mapping.

    • Impact: The name of the strategy to copy.

Branches and code coverage

Intended branches

  • Should call the initializer function on the new strategy. Currently not performed.

  • Create a new BeaconProxy instance.

  • Push the new strategy to the strategies array.

Negative behavior

  • Should not allow creating a new strategy if the strategy name does not exist in the instances mapping. Currently not checked.

Zellic © 2024Back to top ↑