https://github.com/code-423n4/2024-04-dyad/blob/4a987e536576139793a1c04690336d06c93fca90/script/deploy/Deploy.V2.s.sol#L69-L70
However, the protocol uses Solmates Owned.sol and inheriting from solmates Owned contract means you are using a single-step ownership transfer pattern. If an admin provides an incorrect address for the new owner this will result in none of the onlyOwner marked methods being callable again. The better way to do this is to use a two-step ownership transfer approach, where the new owner should first claim its new rights before they are transferred.
Here is the implementation of Solmates Owned.sol:
Admin role could be permanently lost.
Use OpenZeppelins Ownable2Step instead of Ownable.
