Skip to content

Commit

Permalink
Price read (#21)
Browse files Browse the repository at this point in the history
* add systemCoinOracle

* update postSetup script

* math err

* access control factories

* fix compilation error

* update naming convention

* rm enumerable sets

* add initPrice test

* add price read checks

* add token order check
  • Loading branch information
daopunk authored Jan 2, 2024
1 parent 4410e68 commit 55a6640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/postdeployment/SetupPostEnvironment.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 55a6640

Please sign in to comment.