Assessment reports>WOOFI Stake>Threat Model>proposeStrat

Function: proposeStrat(address _implementation)

This allows the admin to propose a strategy for upgrade.

Inputs

  • _implementation

    • Control: Fully controlled by caller.

    • Constraints: Ensure that it matches the desired parameters (i.e., want token).

    • Impact: The new implementation.

Branches and code coverage

Intended branches

  • Ensure that enough time has passed based on the approvalDelay.

  • Ensure that the _implementation's vault matches the current vault.

  • Ensure that the _implementation's want token matches the current want token.

Negative behavior

  • Should not allow anyone other than the admin to call this function.

Zellic © 2024Back to top ↑