Assessment reports>Orderly Network>Threat Model>upgradeTo

Function: upgradeTo(address newImplementation)

This allows the owner to upgrade the contract to a new implementation.

Inputs

  • newImplementation

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: The address of the upgrade implementation.

Branches and code coverage

Intended branches

  • Should specify the calldata for upgradeToAndCallUUPS. Currently it is empty.

Negative behavior

  • Upgrade should not overwrite storage. Additional assurance needed off chain.

  • Should not be callable by anyone other than the owner or proxy.

Zellic © 2024Back to top ↑