GPT-5 finding
Duplicate/conflicting imports of BalanceDelta and PoolKey in MiniV4Manager lead to identifier collisions
highbuild-releasehigh
- src/base/MiniV4Manager.sol
BalanceDelta and PoolKey are imported from two different modules, creating duplicate identifiers and compile-time conflicts. The contract also uses BalanceDeltaLibrary tied to the types/BalanceDelta.sol version, so the interface import should not re-import BalanceDelta or PoolKey.
Recommendation
Import IPoolManager alone from the interface, and import BalanceDelta and PoolKey from their types modules only. For example: import { IPoolManager } from "@v4-core/interfaces/IPoolManager.sol"; import { BalanceDelta, BalanceDeltaLibrary } from "@v4-core/types/BalanceDelta.sol"; import { PoolKey } from "@v4-core/types/PoolKey.sol";