From 1e11b9712919fc82ffabbe37a7702ec87689388d Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Tue, 14 May 2024 22:01:47 +0530 Subject: [PATCH] fix --- contracts/payloads/IGP23/PayloadIGP23.sol | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/contracts/payloads/IGP23/PayloadIGP23.sol b/contracts/payloads/IGP23/PayloadIGP23.sol index cb25475..eecacff 100644 --- a/contracts/payloads/IGP23/PayloadIGP23.sol +++ b/contracts/payloads/IGP23/PayloadIGP23.sol @@ -369,7 +369,7 @@ contract PayloadIGP23 { |__________________________________*/ /// @notice Action 1: call cast() - transfer rewards to Team Multisig from treasury. - function action1() public view returns(address target, uint256 value, string memory signature, bytes memory calldatas) { + function action1() internal { string[] memory targets = new string[](2); bytes[] memory encodedSpells = new bytes[](2); @@ -391,10 +391,7 @@ contract PayloadIGP23 { encodedSpells[1] = abi.encodeWithSignature(withdrawSignature, INST_ADDRESS, INST_AMOUNT, TEAM_MULTISIG, 0, 0); } - target = address(TREASURY); - value = 0; - signature = "cast(string[],bytes[],address)"; - calldatas = abi.encode(targets, encodedSpells, address(this)); + IDSAV2(TREASURY).cast(targets, encodedSpells, address(this)); } /// @notice Action 2: Update rewards for fUSDC & fUSDT.