From cdd0363308b1ca9c38d2177471a9313617f551ce Mon Sep 17 00:00:00 2001 From: gs8nrv <55771972+GuillaumeNervoXS@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:20:13 +0200 Subject: [PATCH] feat: activate EUR base transmuter --- lib/openzeppelin-contracts | 2 +- .../TransmuterCrosschainActivation.s.sol | 38 +------------------ 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/lib/openzeppelin-contracts b/lib/openzeppelin-contracts index ecd2ca2..0a25c19 160000 --- a/lib/openzeppelin-contracts +++ b/lib/openzeppelin-contracts @@ -1 +1 @@ -Subproject commit ecd2ca2cd7cac116f7a37d0e474bbb3d7d5e1c4d +Subproject commit 0a25c1940ca220686588c4af3ec526f725fe2582 diff --git a/scripts/foundry/transmuter/TransmuterCrosschainActivation.s.sol b/scripts/foundry/transmuter/TransmuterCrosschainActivation.s.sol index 60dda49..ab53dcc 100644 --- a/scripts/foundry/transmuter/TransmuterCrosschainActivation.s.sol +++ b/scripts/foundry/transmuter/TransmuterCrosschainActivation.s.sol @@ -29,9 +29,7 @@ contract TransmuterCrosschainActivation is Utils { uint256 chainId = vm.envUint("CHAIN_ID"); // TODO - StablecoinType fiat = StablecoinType.USD; - uint256 newCap = 2_000_000 ether; - userProtection = uint128(5 * BPS); + StablecoinType fiat = StablecoinType.EUR; // TODO END transmuter = _getTransmuter(chainId, fiat); @@ -45,7 +43,7 @@ contract TransmuterCrosschainActivation is Utils { address to; uint256 value = 0; - if (chainId != CHAIN_ARBITRUM) { + { to = address(treasury); bytes memory data = abi.encodeWithSelector(IAddMinter.addMinter.selector, address(transmuter)); uint256 dataLength = data.length; @@ -53,38 +51,6 @@ contract TransmuterCrosschainActivation is Utils { transactions = abi.encodePacked(transactions, internalTx); } - { - to = address(transmuter); - bytes memory data = abi.encodeWithSelector( - ISetStablecoin.setStablecoinCap.selector, - collateralList[0], - newCap - ); - uint256 dataLength = data.length; - bytes memory internalTx = abi.encodePacked(isDelegateCall, to, value, dataLength, data); - transactions = abi.encodePacked(transactions, internalTx); - } - - { - ( - Storage.OracleReadType oracleType, - Storage.OracleReadType targetType, - bytes memory oracleData, - bytes memory targetData, - - ) = transmuter.getOracle(collateralList[0]); - - to = address(transmuter); - bytes memory data = abi.encodeWithSelector( - ISettersGovernor.setOracle.selector, - collateralList[0], - abi.encode(oracleType, targetType, oracleData, targetData, abi.encode(userProtection, uint128(0))) - ); - uint256 dataLength = data.length; - bytes memory internalTx = abi.encodePacked(isDelegateCall, to, value, dataLength, data); - transactions = abi.encodePacked(transactions, internalTx); - } - // // TODO only on BASE // // No minter role // if (chainId == CHAIN_BASE) {