Skip to content

Commit

Permalink
fix: adding the bread multisig as the owner of the yield distributor (#…
Browse files Browse the repository at this point in the history
…62)

* fix: adding the bread multisig as the owner of the yield distributor

* fix: fixing var type
  • Loading branch information
RonTuretzky authored Jun 28, 2024
1 parent ed9d3d3 commit d3e5e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/deploy/DeployYieldDistributor.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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();
Expand Down
1 change: 1 addition & 0 deletions script/deploy/config/deploy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"_bread": "0xa555d5344f6FB6c65da19e403Cb4c1eC4a1a5Ee3",
"_owner": "0x918dEf5d593F46735f74F9E2B280Fe51AF3A99ad",
"_projectNames": [
"laborDao",
"Dandelion",
Expand Down

0 comments on commit d3e5e86

Please sign in to comment.