Assessment reports>Metavest>Threat Model>updateMetavestStopTimes

Function: updateMetavestStopTimes(address _grant, uint48 _shortStopTime)

This function is used to update the stop times of the allocation.

Inputs

  • _grant

    • Control: Arbitrary.

    • Constraints: Should be a valid allocation address.

    • Impact: Address of the allocation.

  • _shortStopTime

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Short stop time of the allocation.

Branches and code coverage

Intended branches

  • Delete the amendment from the functionToGranteeToAmendmentPending mapping.

  • Update the shortStopTime of the allocation.

Negative behavior

  • Revert if the caller is not the authority.

  • Revert if the condition check fails.

  • Revert if the consent check fails.

Function call analysis

  • BaseAllocation(_grant).updateStopTimes(_shortStopTime)

    • What is controllable? _grant and _shortStopTime.

    • If the return value is controllable, how is it used and how can it go wrong? N/A.

    • What happens if it reverts, reenters or does other unusual control flow? N/A.

Zellic © 2024Back to top ↑