This commit is contained in:
Thrilok kumar 2024-05-13 19:57:13 +05:30
parent af755757db
commit d5725bdfaa

View File

@ -269,6 +269,8 @@ contract PayloadIGP22 {
address public constant wstETH_ADDRESS = address public constant wstETH_ADDRESS =
0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0; 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;
address public constant ETH_ADDRESS =
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
constructor() { constructor() {
ADDRESS_THIS = address(this); ADDRESS_THIS = address(this);
@ -315,7 +317,7 @@ contract PayloadIGP22 {
// Action 2: Update AdminModule from Liquidity infiniteProxy. // Action 2: Update AdminModule from Liquidity infiniteProxy.
action2(); action2();
// Action 3: Update wstETH market rate curve. // Action 3: Update wstETH & ETH market rate curve.
action3(); action3();
} }
@ -355,10 +357,10 @@ contract PayloadIGP22 {
); );
} }
/// @notice Action 3: Update wstETH market rate curve. /// @notice Action 3: Update wstETH & ETH market rate curve.
function action3() internal { function action3() internal {
AdminModuleStructs.RateDataV2Params[] AdminModuleStructs.RateDataV2Params[]
memory params_ = new AdminModuleStructs.RateDataV2Params[](1); memory params_ = new AdminModuleStructs.RateDataV2Params[](2);
params_[0] = AdminModuleStructs.RateDataV2Params({ params_[0] = AdminModuleStructs.RateDataV2Params({
token: wstETH_ADDRESS, // wstETH token: wstETH_ADDRESS, // wstETH
@ -370,6 +372,16 @@ contract PayloadIGP22 {
rateAtUtilizationMax: 100 * 1e2 // 100% rateAtUtilizationMax: 100 * 1e2 // 100%
}); });
params_[1] = AdminModuleStructs.RateDataV2Params({
token: ETH_ADDRESS, // ETH
kink1: 50 * 1e2, // 50%
kink2: 90 * 1e2, // 90%
rateAtUtilizationZero: 0, // 0%
rateAtUtilizationKink1: 10 * 1e2, // 10%
rateAtUtilizationKink2: 14 * 1e2, // 14%
rateAtUtilizationMax: 100 * 1e2 // 100%
});
LIQUIDITY.updateRateDataV2s(params_); LIQUIDITY.updateRateDataV2s(params_);
} }
} }