https://github.com/code-423n4/2025-05-upside/blob/9b733293823beebe0cc6813dcfb7bbbb2454d60a/contracts/UpsideProtocol.sol#L337-L353
In the protocol, the tokenizeFeeDestinationAddress is a configurable parameter that determines where tokenization fees are sent when the fee system is enabled. This address is set by the owner of the contract using a function setFeeInfo.
However, when ownership of the contract is transferred using the standard Ownable pattern (e.g., via transferOwnership()), the tokenizeFeeDestinationAddress does not automatically update to reflect the new owner. As a result, all tokenization fees continue being sent to the previous owner, even though they no longer control the contract. This creates a temporal vulnerability between the point of ownership transfer and the point at which the new owner explicitly updates the fee configuration. If the new owner delays or forgets to call setFeeInfo, then fees are still sent to the previous owner.
Override the transferOwnership() from Ownable to check that if the current fee recipient is the owner trying to exit, then it should revert.
