Assessment reports>Orderly Network>Threat Model>setSrcChainId

Function: setSrcChainId(uint256 chainId)

This allows the owner to set the current chain ID.

Inputs

  • chainId

    • Control: Fully controlled by the owner.

    • Constraints: None.

    • Impact: The new chain ID.

Branches and code coverage

Intended branches

  • Sets the _currentChainId to chainId.

Negative behavior

  • Assumes the _currentChainId is identical to block.chainid.

  • Should not allow anyone other than the owner to call this function.

Zellic © 2024Back to top ↑