Assessment reports>Metavest>Threat Model>updatePrice

Function: updatePrice(uint256 _newPrice)

This function is used to update the price of the option.

Inputs

  • _newPrice

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: New price of the option.

Branches and code coverage

Intended branches

  • Update the exercise price.

Negative behavior

  • Revert if the caller is not the controller.

  • Revert if the allocation is already terminated.

Zellic © 2024Back to top ↑