From 4ef218c9b272320931cee21ddbf3d85c1eb5c55b Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Thu, 23 May 2024 19:01:22 +0530 Subject: [PATCH] fix --- contracts/payloads/IGP24/PayloadIGP24.sol | 25 +++++++++++------------ 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/contracts/payloads/IGP24/PayloadIGP24.sol b/contracts/payloads/IGP24/PayloadIGP24.sol index 97b3590..54ce90a 100644 --- a/contracts/payloads/IGP24/PayloadIGP24.sol +++ b/contracts/payloads/IGP24/PayloadIGP24.sol @@ -406,9 +406,9 @@ contract PayloadIGP24 { /// @notice Action 1: Approve fUSDC and fUSDT protocols to spend the reserves tokens function action1() internal { - address[] memory protocols = new address[](2); - address[] memory tokens = new address[](2); - uint256[] memory amounts = new uint256[](2); + address[] memory protocols = new address[](3); + address[] memory tokens = new address[](3); + uint256[] memory amounts = new uint256[](3); // fUSDC protocols[0] = F_USDC; @@ -420,6 +420,12 @@ contract PayloadIGP24 { tokens[1] = USDT_ADDRESS; amounts[1] = 320_000 * 1e6; // 320k USDT + + // fWSTETH + protocols[2] = F_WSTETH; + tokens[2] = wstETH_ADDRESS; + amounts[2] = 0.03 * 1e18; // dust amount 0.03 wstETH + FLUID_RESERVE.approve(protocols, tokens, amounts); } @@ -469,9 +475,9 @@ contract PayloadIGP24 { /// @notice Action 3: Approve new protocols to spend the reserves dust tokens function action3() internal { - address[] memory protocols = new address[](11); - address[] memory tokens = new address[](11); - uint256[] memory amounts = new uint256[](11); + address[] memory protocols = new address[](10); + address[] memory tokens = new address[](10); + uint256[] memory amounts = new uint256[](10); address VAULT_weETH_wstETH = 0x40D9b8417E6E1DcD358f04E3328bCEd061018A82; address VAULT_sUSDe_USDC = 0x4045720a33193b4Fe66c94DFbc8D37B0b4D9B469; @@ -534,13 +540,6 @@ contract PayloadIGP24 { amounts[9] = 100 * 1e6; } - // F_WSTETH - { - protocols[10] = F_WSTETH; - tokens[10] = wstETH_ADDRESS; - amounts[10] = 0.03 * 1e18; - } - FLUID_RESERVE.approve(protocols, tokens, amounts); }