Assessment reports>Metavest>Threat Model>updatePrice

Function: updatePrice(uint256 _newPrice)

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

Inputs

  • _newPrice

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: New price of repurchasePrice.

Branches and code coverage

Intended branches

  • Update the price of the token.

Negative behavior

  • Revert if the caller is not the controller.

  • Revert if the allocation is terminated.

Zellic © 2024Back to top ↑