Skip to content

Commit

Permalink
Address some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed Jun 18, 2024
1 parent 9f1fe5a commit d5ba508
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions script/Mainnet/production/switchETHXPriceFeed.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ import "forge-std/Script.sol";

/**
* @dev Run
* `source .env && forge script script/Mainnet/production/Gnosis8.s.sol:Gnosis8Script --rpc-url $MAINNET_RPC_URL --sender $MULTI_SIG --with-gas-price 25000000000`
* `source .env && forge script script/Mainnet/production/switchETHXPriceFeed.s.sol:swithEthXPriceFeed --rpc-url $MAINNET_RPC_URL --sender $MULTI_SIG --with-gas-price 25000000000`
*/
contract swithEthXPriceFeed is Script, MainnetAddresses {

address public sommDev = 0x552acA1343A6383aF32ce1B7c7B1b47959F7ad90;

Deployer public deployer = Deployer(deployerAddress);

Registry public registry = Registry(0xEED68C267E9313a6ED6ee08de08c9F68dee44476);
PriceRouter public priceRouter = PriceRouter(0xA1A0bc3D59e4ee5840c9530e49Bdc2d1f88AaF92);
Expand All @@ -34,14 +31,17 @@ contract swithEthXPriceFeed is Script, MainnetAddresses {

function run() external {

uint256 price = uint256(IChainlinkAggregator(WETH_USD_FEED).latestAnswer());
//Start EDIT asset

settings = PriceRouter.AssetSettings(CHAINLINK_DERIVATIVE, ETHX_USD_FEED);
PriceRouter.ChainlinkDerivativeStorage memory stor;
stor.inETH = true;

vm.startBroadcast();

priceRouter.startEditAsset(ETHX, settings, abi.encode(stor));

vm.stopBroadcast();}
vm.stopBroadcast();
}

}

0 comments on commit d5ba508

Please sign in to comment.