fix: Use Optimizer (base) in deploy scripts — Push3 lacks initialize/getLiquidityParams

OptimizerV3Push3 is an equivalence-proof contract with only isBullMarket().
It cannot serve as an ERC1967Proxy implementation because it has no initialize()
or getLiquidityParams(). The CI bootstrap was failing because the proxy
deployment reverted when calling initialize() on the Push3 implementation.

Switch deploy scripts to Optimizer.sol (the base UUPS contract) which has the
full interface required by ERC1967Proxy and LiquidityManager.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-26 14:33:20 +00:00
parent e925538309
commit 99d9c563d6
4 changed files with 23 additions and 20 deletions

View file

@ -17,7 +17,7 @@ contract DeployBaseMainnet is DeployBase {
weth = 0x4200000000000000000000000000000000000006; // WETH on Base
v3Factory = 0x33128a8fC17869897dcE68Ed026d694621f6FDfD; // Uniswap V3 Factory on Base
// Deploy fresh OptimizerV3Push3 (UUPS proxy)
// Deploy fresh Optimizer (UUPS proxy)
optimizer = address(0);
}
}