Assessment reports>Orderly Network>Threat Model>setLedgerAddress

Function: setLedgerAddress(address _ledgerAddress)

This allows the owner of the contract to set the address of the ledgerAddress contract.

Inputs

  • _ledgerAddress

    • Control: onlyOwner of contract can call this function.

    • Constraints: The new address is not zero.

    • Impact: The address of the trusted Ledger contract. This address is used for the onlyLedger modifier for functions that should be called only by the trusted Ledger contract.

Branches and code coverage

Intended branches

  • New address was set successfully.

Negative behavior

  • Zero address.

  • The same address already set.

  • Caller is not an owner.

Zellic © 2024Back to top ↑