diff --git a/script/postdeployment/SetupPostEnvironment.s.sol b/script/postdeployment/SetupPostEnvironment.s.sol index 39f4b26..92b6817 100644 --- a/script/postdeployment/SetupPostEnvironment.s.sol +++ b/script/postdeployment/SetupPostEnvironment.s.sol @@ -25,10 +25,12 @@ contract SetupPostEnvironment is Common { address _pool = algebraFactory.poolByPair(SEPOLIA_SYSTEM_COIN, SEPOLIA_WETH); uint160 _sqrtPriceX96 = initialPrice(INIT_OD_AMOUNT, INIT_WETH_AMOUNT, _pool); + IAlgebraPool(_pool).initialize(uint160(_sqrtPriceX96)); + // Todo: change to WETH for next deployment IBaseOracle _odWethOracle = camelotRelayerFactory.deployAlgebraRelayer( - SEPOLIA_ALGEBRA_FACTORY, SEPOLIA_SYSTEM_COIN, SEPOLIA_WETH, uint32(ORACLE_INTERVAL_TEST) + SEPOLIA_ALGEBRA_FACTORY, SEPOLIA_SYSTEM_COIN, address(mockWeth), uint32(ORACLE_INTERVAL_TEST) ); IBaseOracle chainlinkEthUSDPriceFeed =