Assessment reports>DexFi Factory>Discussion>Whitelist removal is irreversible

Whitelist removal is irreversible

Once a beacon is removed from the farms or profitToken whitelist, the owner cannot add the same beacon back. The addFarmsWhitelist and addProfitTokensWhitelist functions can only create new UpgradeableBeacons and add them to the whitelist, resulting in a new address instead of the original beacon address. Consider allowing the direct addition of a beacon address to the whitelist in addFarmsWhitelist and addProfitTokensWhitelist.

DexFi provided the following response to this issue:

After removing ProfitToken or Farm, it can be added as a new profit token with the same initializeData.

Zellic © 2025Back to top ↑