From 4db98b23416234711665e25744bf01616282b038 Mon Sep 17 00:00:00 2001 From: 0xchin Date: Tue, 19 Nov 2024 15:38:52 -0300 Subject: [PATCH] chore: set grateful multisig as owner in deploy script --- script/Deploy.sol | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/script/Deploy.sol b/script/Deploy.sol index f9794b9..d590845 100644 --- a/script/Deploy.sol +++ b/script/Deploy.sol @@ -25,6 +25,8 @@ contract Deploy is Script { error UnsupportedChain(); + address public constant GRATEFUL_MULTISIG = 0xbC4d66e4FA462d4deeb77495E7Aa51Bb8034710b; + // Public variables to store deployed contracts Grateful public grateful; mapping(address => AaveV3Vault) public vaults; @@ -132,6 +134,7 @@ contract Deploy is Script { } // Deploy Grateful contract grateful = new Grateful(_params.tokens, _params.aavePool, _params.initialFee, _params.initialPerformanceFee); + grateful.transferOwnership(GRATEFUL_MULTISIG); // Deploy vaults and add them to Grateful uint256 vaultsLength = _params.vaults.length; @@ -154,12 +157,6 @@ contract Deploy is Script { vaults[vaultParams.token] = vault; } - // Deploy TestToken (if needed) - /* TestToken _testToken = new TestToken("Test Token", "TEST", 18); */ - - // Add TestToken to Grateful (if needed) - /* grateful.addToken(address(_testToken)); */ - if (!vm.envBool("TESTING")) { vm.stopBroadcast(); }