Function: setToken(address _token)

This function is used to set the new token address. It is only callable by the owner.

Inputs

  • _token

    • Control: Arbitrary address.

    • Constraints: Must not be zero.

    • Impact: New token address.

Branches and code coverage

Intended branches

  • Update the token.

  • Emit the TokenUpdated event.

Negative behavior

  • Revert if the caller is not the owner.

  • Revert if the new token address is zero.

Zellic © 2025Back to top ↑