KatanaV3Pool.sol cannot initializeImmutables #49
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
duplicate-26
edited-by-warden
🤖_04_group
AI based duplicate group recommendation
sufficient quality report
This report is 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#L122
Vulnerability details
There is an issue of conflict in KatanaV3Pool.sol where factory is set as address(1) but the require statement requires it to be address 0.
The constructor sets factory to address(1), so the initializeImmutables function will always revert.
This makes it impossible to initialize the immutables as intended.
Recommended Mitigation Steps
Just change initializeImmutables to address(1)
Assessed type
Error
The text was updated successfully, but these errors were encountered: