From d3e5e86d06d8099ed2793372109aa847f62afe31 Mon Sep 17 00:00:00 2001 From: RonTuretzky <74178515+RonTuretzky@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:22:47 +0300 Subject: [PATCH] fix: adding the bread multisig as the owner of the yield distributor (#62) * fix: adding the bread multisig as the owner of the yield distributor * fix: fixing var type --- script/deploy/DeployYieldDistributor.s.sol | 3 ++- script/deploy/config/deploy.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/script/deploy/DeployYieldDistributor.s.sol b/script/deploy/DeployYieldDistributor.s.sol index 8502085..7f85986 100644 --- a/script/deploy/DeployYieldDistributor.s.sol +++ b/script/deploy/DeployYieldDistributor.s.sol @@ -18,6 +18,7 @@ contract DeployYieldDistributor is Script { uint256 _maxPoints = stdJson.readUint(config_data, "._maxPoints"); uint256 _precision = stdJson.readUint(config_data, "._precision"); uint256 _lastClaimedBlockNumber = stdJson.readUint(config_data, "._lastClaimedBlockNumber"); + address _owner = stdJson.readAddress(config_data, "._owner"); bytes projectsRaw = stdJson.parseRaw(config_data, "._projects"); address[] projects = abi.decode(projectsRaw, (address[])); bytes initData = abi.encodeWithSelector( @@ -35,7 +36,7 @@ contract DeployYieldDistributor is Script { vm.startBroadcast(); YieldDistributor yieldDistributorImplementation = new YieldDistributor(); YieldDistributor yieldDistributor = YieldDistributor( - address(new TransparentUpgradeableProxy(address(yieldDistributorImplementation), address(this), initData)) + address(new TransparentUpgradeableProxy(address(yieldDistributorImplementation), _owner, initData)) ); console2.log("Deployed YieldDistributor at address: {}", address(yieldDistributor)); vm.stopBroadcast(); diff --git a/script/deploy/config/deploy.json b/script/deploy/config/deploy.json index f2f7cb3..d298aa4 100644 --- a/script/deploy/config/deploy.json +++ b/script/deploy/config/deploy.json @@ -1,5 +1,6 @@ { "_bread": "0xa555d5344f6FB6c65da19e403Cb4c1eC4a1a5Ee3", + "_owner": "0x918dEf5d593F46735f74F9E2B280Fe51AF3A99ad", "_projectNames": [ "laborDao", "Dandelion",