sherlock-audit / 2024-03-arrakis-judging

2 stars 2 forks source link

NoOne - Missing Initialization of Parent Contracts in `ValantisModule` #46

Closed sherlock-admin2 closed 3 months ago

sherlock-admin2 commented 3 months ago

NoOne

high

Missing Initialization of Parent Contracts in ValantisModule

Summary

The ValantisModule contract in ValantisHOTModule.sol inherits from several other contracts, including IArrakisLPModule, IValantisHOTModule, PausableUpgradeable, and ReentrancyGuardUpgradeable. During the security review, it was identified that the initialize function does not include calls to initialize the parent contracts PausableUpgradeable and ReentrancyGuardUpgradeable.

Vulnerability Detail

The initialize function does not call the initialization functions for the inherited PausableUpgradeable and ReentrancyGuardUpgradeable contracts. These functions are crucial for setting up internal state variables and ensuring the proper functionality of pausing mechanisms and reentrancy guards.

Impact

Manual Review

Recommendation

Add __ReentrancyGuard_init(); and __Pausable_init(); in initialize function.