mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
wip
This commit is contained in:
parent
30582b5b01
commit
c7c1a3a8b1
|
@ -384,7 +384,7 @@ contract PayloadIGP16 {
|
||||||
// Action 2: Update ETH market rate curve and set fee as 0%.
|
// Action 2: Update ETH market rate curve and set fee as 0%.
|
||||||
action2();
|
action2();
|
||||||
|
|
||||||
// Action 3: Make weETH/wstETH Vault borrow limit as dynamic
|
// Action 3: Add config handler on liquidity layer for weETH/wstETH vault to make borrow limit dynamic.
|
||||||
action3();
|
action3();
|
||||||
|
|
||||||
// Action 4: Update supply rate magnifier wstETH/USDC and wstETH/USDT vault.
|
// Action 4: Update supply rate magnifier wstETH/USDC and wstETH/USDT vault.
|
||||||
|
@ -470,22 +470,19 @@ contract PayloadIGP16 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Action 3: Make weETH/wstETH Vault borrow limit as dynamic
|
/// @notice Action 3: Add config handler on liquidity layer for weETH/wstETH vault to make borrow limit dynamic
|
||||||
function action3() internal {
|
function action3() internal {
|
||||||
AdminModuleStructs.UserBorrowConfig[]
|
address VAULT_weETH_wstETH_CONFIG_HANDLER = address(0);
|
||||||
memory configs_ = new AdminModuleStructs.UserBorrowConfig[](1);
|
|
||||||
|
|
||||||
configs_[0] = AdminModuleStructs.UserBorrowConfig({
|
AdminModuleStructs.AddressBool[]
|
||||||
user: address(VAULT_weETH_wstETH),
|
memory configs_ = new AdminModuleStructs.AddressBool[](1);
|
||||||
token: wstETH_ADDRESS,
|
|
||||||
mode: 1,
|
configs_[0] = AdminModuleStructs.AddressBool({
|
||||||
expandPercent: 25 * 1e2, // 25%
|
addr: address(VAULT_weETH_wstETH_CONFIG_HANDLER),
|
||||||
expandDuration: 12 hours, // 12 hours
|
value: true
|
||||||
baseDebtCeiling: 4000 * 1e18, // 4000 wstETH
|
|
||||||
maxDebtCeiling: 15000 * 1e18 // 15_000 wstETH
|
|
||||||
});
|
});
|
||||||
|
|
||||||
LIQUIDITY.updateUserBorrowConfigs(configs_);
|
LIQUIDITY.updateAuths(configs_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Action 4: Update supply rate magnifier wstETH/USDC and wstETH/USDT vault.
|
/// @notice Action 4: Update supply rate magnifier wstETH/USDC and wstETH/USDT vault.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user