Closed code423n4 closed 3 years ago
We are using our own custom library to handle ownership and managership of our contracts. Owner can be transferred through a two steps process to avoid a failure scenario where we would have set a wrong address by mistake.
The process is the following:
owner
calls {transferOwnership} to set a pendingOwner
pendingOwner
calls {claimOwnership} to accept the ownership transferFinding is wrong, sponsor thoughtfully wrote code to transferOwnership
as well as renounceOwnership
Handle
pants
Vulnerability details
You don't have an owner transfer method. If you want in the future to change the owner you need to redeploy the whole contract.