Function: setTreasury(address newTreasury)
This function is used to set the new treasury address. It is only callable by the owner.
Inputs
newTreasuryControl: Arbitrary address.
Constraints: Must not be zero.
Impact: New treasury address.
Branches and code coverage
Intended branches
Emit the
TreasuryUpdatedevent.Update treasury.
Negative behavior
Revert if the caller is not the owner.
Revert if the new treasury is zero.