Assessment reports>Alkimiya>Threat Model>setTreasuryAddress

Function: setTreasuryAddress(address newTreasury)

This function is used to set the treasury address.

Inputs

  • newTreasury

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the new treasury.

Branches and code coverage

Intended branches

  • Updates sAlkimiyaTreasury with newTreasury.

Negative behavior

  • Reverts if the caller is not the owner.

  • Reverts if newTreasury is the zero address.

Zellic © 2024Back to top ↑