_poolVersion
not being used to track version for created poolshttps://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-quantamm/contracts/QuantAMMWeightedPoolFactory.sol#L100
https://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-quantamm/contracts/QuantAMMWeightedPoolFactory.sol#L145
QuantAMMWeightedPoolFactory
uses createWithoutArgs
and create
functions, which ignores _poolVersion
state variable. Instead, a string value "version" was used.
"version" string is used to initialize a new pool. This approach hinders version tracking and management, making it challenging for protocol teams to monitor or update pools efficiently.
Using a "version" string complicates version tracking and pool updates, reducing efficiency for protocol management.
Manual Review
Use _poolVersion
in place of "version" string, so that it tracks correct version of the pool.
Version is immutable as specified in Version.sol and can be what the developer wants. It is hardcoded and will be changed by the admin for every deployment. No real impact here.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.