Assessment reports>Metavest>Threat Model>transferRights

Function: transferRights(address _newOwner)

This function is used to transfer the rights of the allocation to a new owner.

Inputs

  • _newOwner

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the new owner to transfer the rights of the allocation contract.

Branches and code coverage

Intended branches

  • Add the previous owner to prevOwners.

  • Update the grantee of the allocation contract.

Negative behavior

  • Revert if the caller is not the grantee.

  • Revert if the _newOwner is the zero address.

  • Revert if the transferable is false.

Zellic © 2024Back to top ↑