Assessment reports>TruFin Injective Staker>Threat Model>Message: ExecuteMsg::SetTreasury

Message: ExecuteMsg::SetTreasury

This allows the admin to set the treasury address.

Inputs

  • info.sender

    • Validation: The set_treasury function verifies that the info.sender is the owner.

    • Impact: N/A.

  • new_treasury

    • Validation: The provided new_treasury address is validated to ensure it is a proper address format.

    • Impact: The treasury address is set to this value.

Branches and code coverage (including function calls)

Intended branches

  • If the new_treasury address is valid, it is updated in the state.

Negative behavior

  • Fail if new_treasury is not a valid address.

Zellic © 2025Back to top ↑