The attacker can collect all accumulated protocol fees by exploiting the isTokenLive flag.
The gauge-based fee distribution system becomes non-functional, affecting users and LPs who are supposed to receive a share of the fees.
https://github.com/code-423n4/2024-10-ramses-exchange/blob/4a40eba36bc47eba8179d4f6203a4b84561a4415/contracts/CL/gauge/FeeCollector.sol#L89-L95
The setIsLive function allows the treasury to control the isTokenLive status, which determines whether fees are distributed via the fee distributor or sent directly to the treasury. If the treasury address is compromised or controlled by a malicious actor, they could:
Instead of distributing fees properly, all protocol fees are collected directly by the compromised treasury.
Introduce an Admin Role. Implement the onlyOwner modifier to control important changes.
