From fedf515b7a4787b1074756cac720a17fd24e3100 Mon Sep 17 00:00:00 2001 From: Rajath Alex Date: Mon, 8 Apr 2024 20:11:18 -0400 Subject: [PATCH] cleanup --- .../LlamaRewardsClaimTestSetup.sol | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/rewards-claimer/LlamaRewardsClaimTestSetup.sol b/test/rewards-claimer/LlamaRewardsClaimTestSetup.sol index 2b46739..865ad14 100644 --- a/test/rewards-claimer/LlamaRewardsClaimTestSetup.sol +++ b/test/rewards-claimer/LlamaRewardsClaimTestSetup.sol @@ -14,7 +14,6 @@ import {DeployLlamaRewardsClaimer} from "script/DeployLlamaRewardsClaimer.s.sol" import {ILlamaAccount} from "src/interfaces/ILlamaAccount.sol"; import {ILlamaPolicy} from "src/interfaces/ILlamaPolicy.sol"; -import {ActionInfo} from "src/lib/Structs.sol"; import {LlamaRewardsClaimAccountExtension} from "src/rewards-claimer/LlamaRewardsClaimAccountExtension.sol"; import {LlamaRewardsClaimStorage} from "src/rewards-claimer/LlamaRewardsClaimStorage.sol"; @@ -146,18 +145,4 @@ contract LlamaRewardsClaimTestSetup is LlamaPeripheryTestSetup, DeployLlamaRewar address(rewardsContract5), 0, abi.encodeCall(MockRewardsContract.withdrawERC20, (USDC)) ); } - - function _createActionClaimRewards() public returns (ActionInfo memory actionInfo) { - LlamaRewardsClaimAccountExtension.TargetData[] memory targetData = _setupClaimRewardsData(); - bytes memory accountExtensionData = abi.encodeCall(LlamaRewardsClaimAccountExtension.claimRewards, (targetData)); - bytes memory data = - abi.encodeCall(ILlamaAccount.execute, (address(rewardsClaimAccountExtension), true, 0, accountExtensionData)); - - vm.prank(coreTeam1); - uint256 actionId = CORE.createAction(CORE_TEAM_ROLE, STRATEGY, address(ACCOUNT), 0, data, ""); - actionInfo = ActionInfo(actionId, coreTeam1, CORE_TEAM_ROLE, STRATEGY, address(ACCOUNT), 0, data); - - vm.prank(coreTeam1); - CORE.castApproval(CORE_TEAM_ROLE, actionInfo, ""); - } }