Assessment reports>Wasabi>Discussion>AbstractWasabiPool should use upgradable variants of OpenZeppelin contracts

AbstractWasabiPool should use upgradable variants of OpenZeppelin contracts

The use of OpenZeppelin's Ownable and ReentrancyGuard in AbstractWasabiPool ensures access control and prevents reentrancy. However, since pools are deployed with OpenZeppelin's Clones library, the AbstractWasabiPool contract (and the concrete ERC20 and native ETH implementations) effectively function as logic contracts, making it more appropriate to use the upgradable variants in OpenZeppelin's contracts-upgradable: OwnableUpgradable and ReentrancyGuardUpgradeable.

Zellic © 2024Back to top ↑