Missing gap in KatanaV3Pool #4
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
insufficient quality report
This report is not of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/ronin-chain/katana-v3-contracts/blob/03c80179e04f40d96f06c451ea494bb18f2a58fc/src/core/KatanaV3Pool.sol#L1-L795
Vulnerability details
Description
The
KatanaV3Pool
contract is intended to be an upgradeable smart contract, but do not have a__gap
variable.In upgradeable contracts, it's crucial to include a
_gap
to ensure that any additional storage variables added in future contract upgrades do not collide with existing storage variables. This is especially important when inheriting from multiple upgradeable contracts.Recommended Mitigation Steps
Include a
_gap
as the last storage variable to theKatanaV3Pool
contract to reserve space for future storage variables and prevent storage collisions when upgrading the contract in the future.Assessed type
Upgradable
The text was updated successfully, but these errors were encountered: