From cf50e65c59ca3d026997256f4a931e76eabf77a4 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:58:22 +0400 Subject: [PATCH 1/2] minor fix --- contracts/payloads/IGP18/PayloadIGP18.sol | 24 +++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/contracts/payloads/IGP18/PayloadIGP18.sol b/contracts/payloads/IGP18/PayloadIGP18.sol index 13dd5a7..7008f1a 100644 --- a/contracts/payloads/IGP18/PayloadIGP18.sol +++ b/contracts/payloads/IGP18/PayloadIGP18.sol @@ -121,7 +121,10 @@ interface IProxy { function setDummyImplementation(address newDummyImplementation_) external; - function addImplementation(address implementation_, bytes4[] calldata sigs_) external; + function addImplementation( + address implementation_, + bytes4[] calldata sigs_ + ) external; function removeImplementation(address implementation_) external; @@ -129,11 +132,15 @@ interface IProxy { function getDummyImplementation() external view returns (address); - function getImplementationSigs(address impl_) external view returns (bytes4[] memory); + function getImplementationSigs( + address impl_ + ) external view returns (bytes4[] memory); function getSigsImplementation(bytes4 sig_) external view returns (address); - function readFromStorage(bytes32 slot_) external view returns (uint256 result_); + function readFromStorage( + bytes32 slot_ + ) external view returns (uint256 result_); } interface IFluidLiquidityAdmin { @@ -296,8 +303,9 @@ contract PayloadIGP18 { IFluidLiquidityAdmin public constant LIQUIDITY = IFluidLiquidityAdmin(0x52Aa899454998Be5b000Ad077a46Bbe360F4e497); - - address public constant VAULT_weETH_wstETH = address(0x40D9b8417E6E1DcD358f04E3328bCEd061018A82); + + address public constant VAULT_weETH_wstETH = + address(0x40D9b8417E6E1DcD358f04E3328bCEd061018A82); constructor() { ADDRESS_THIS = address(this); @@ -352,10 +360,10 @@ contract PayloadIGP18 { // Update collateral factor from 90.5% to 93%. IFluidVaultT1(VAULT_weETH_wstETH).updateCollateralFactor(93 * 1e2); // 93% or 93 * 1e2 - // Update collateral factor from 93% to 95%. - IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationThreshold(53 * 1e2); // 95% or 95 * 1e2 + // Update liquidation threshold from 93% to 95%. + IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationThreshold(95 * 1e2); // 95% or 95 * 1e2 - // Update collateral factor from 95% to 96%. + // Update max liquidation limit from 95% to 96%. IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationMaxLimit(96 * 1e2); // 96% or 96 * 1e2 } } From da0b54056e2f396235ae5e3c993e886b19fb82af Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Fri, 19 Apr 2024 23:57:00 +0400 Subject: [PATCH 2/2] fix --- contracts/payloads/IGP18/PayloadIGP18.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/payloads/IGP18/PayloadIGP18.sol b/contracts/payloads/IGP18/PayloadIGP18.sol index 7008f1a..2089c94 100644 --- a/contracts/payloads/IGP18/PayloadIGP18.sol +++ b/contracts/payloads/IGP18/PayloadIGP18.sol @@ -357,13 +357,13 @@ contract PayloadIGP18 { /// @notice Action 1: Update weETH/wstETH vault parameters. function action1() internal { - // Update collateral factor from 90.5% to 93%. - IFluidVaultT1(VAULT_weETH_wstETH).updateCollateralFactor(93 * 1e2); // 93% or 93 * 1e2 + // Update max liquidation limit from 95% to 96%. + IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationMaxLimit(96 * 1e2); // 96% or 96 * 1e2 // Update liquidation threshold from 93% to 95%. IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationThreshold(95 * 1e2); // 95% or 95 * 1e2 - // Update max liquidation limit from 95% to 96%. - IFluidVaultT1(VAULT_weETH_wstETH).updateLiquidationMaxLimit(96 * 1e2); // 96% or 96 * 1e2 + // Update collateral factor from 90.5% to 93%. + IFluidVaultT1(VAULT_weETH_wstETH).updateCollateralFactor(93 * 1e2); // 93% or 93 * 1e2 } }