Closed code423n4 closed 2 years ago
cmichel
The TimeswapFactory.acceptOwner function does not reset pendingOwner to zero.
TimeswapFactory.acceptOwner
pendingOwner
The pending owner can repeatedly accept the governance, emitting an AcceptOwner event each time, bloating listeners for this event with unnecessary data.
AcceptOwner
Reset pendingOwner to zero in acceptOwner.
acceptOwner
Similar issue reported over here #83 ; hence closing this
Handle
cmichel
Vulnerability details
The
TimeswapFactory.acceptOwner
function does not resetpendingOwner
to zero.Impact
The pending owner can repeatedly accept the governance, emitting an
AcceptOwner
event each time, bloating listeners for this event with unnecessary data.Recommended Mitigation Steps
Reset
pendingOwner
to zero inacceptOwner
.