This commit is contained in:
Thrilok kumar 2024-07-03 06:58:30 -04:00
parent 9973676c13
commit 4ae94849ad
2 changed files with 33 additions and 8 deletions

View File

@ -677,7 +677,7 @@ contract PayloadIGP30 {
user: address(vault_), user: address(vault_),
token: vaultConfig.borrowToken, token: vaultConfig.borrowToken,
mode: vaultConfig.borrowMode, mode: vaultConfig.borrowMode,
expandPercent: vaultConfig.supplyExpandPercent, expandPercent: vaultConfig.borrowExpandPercent,
expandDuration: vaultConfig.borrowExpandDuration, expandDuration: vaultConfig.borrowExpandDuration,
baseDebtCeiling: getRawAmount( baseDebtCeiling: getRawAmount(
vaultConfig.borrowToken, vaultConfig.borrowToken,
@ -715,9 +715,7 @@ contract PayloadIGP30 {
// Update rebalancer on vault. // Update rebalancer on vault.
{ {
IFluidVaultT1(vault_).updateRebalancer( IFluidVaultT1(vault_).updateRebalancer(address(FLUID_RESERVE));
0x264786EF916af64a1DB19F513F24a3681734ce92
);
} }
} }

View File

@ -333,6 +333,33 @@ interface IFluidVaultT1DeploymentLogic {
function vaultT1(address supplyToken_, address borrowToken_) external; function vaultT1(address supplyToken_, address borrowToken_) external;
} }
interface IFluidReserveContract {
function isRebalancer(address user) external returns (bool);
function rebalanceFToken(address protocol_) external;
function rebalanceVault(address protocol_) external;
function transferFunds(address token_) external;
function getProtocolTokens(address protocol_) external;
function updateAuth(address auth_, bool isAuth_) external;
function updateRebalancer(address rebalancer_, bool isRebalancer_) external;
function approve(
address[] memory protocols_,
address[] memory tokens_,
uint256[] memory amounts_
) external;
function revoke(
address[] memory protocols_,
address[] memory tokens_
) external;
}
contract PayloadIGP31 { contract PayloadIGP31 {
uint256 public constant PROPOSAL_ID = 31; uint256 public constant PROPOSAL_ID = 31;
@ -363,6 +390,8 @@ contract PayloadIGP31 {
IFluidVaultT1DeploymentLogic( IFluidVaultT1DeploymentLogic(
0x2Cc710218F2e3a82CcC77Cc4B3B93Ee6Ba9451CD 0x2Cc710218F2e3a82CcC77Cc4B3B93Ee6Ba9451CD
); );
IFluidReserveContract public constant FLUID_RESERVE =
IFluidReserveContract(0x264786EF916af64a1DB19F513F24a3681734ce92);
address public constant ETH_ADDRESS = address public constant ETH_ADDRESS =
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
@ -649,7 +678,7 @@ contract PayloadIGP31 {
user: address(vault_), user: address(vault_),
token: vaultConfig.borrowToken, token: vaultConfig.borrowToken,
mode: vaultConfig.borrowMode, mode: vaultConfig.borrowMode,
expandPercent: vaultConfig.supplyExpandPercent, expandPercent: vaultConfig.borrowExpandPercent,
expandDuration: vaultConfig.borrowExpandDuration, expandDuration: vaultConfig.borrowExpandDuration,
baseDebtCeiling: getRawAmount( baseDebtCeiling: getRawAmount(
vaultConfig.borrowToken, vaultConfig.borrowToken,
@ -687,9 +716,7 @@ contract PayloadIGP31 {
// Update rebalancer on vault. // Update rebalancer on vault.
{ {
IFluidVaultT1(vault_).updateRebalancer( IFluidVaultT1(vault_).updateRebalancer(address(FLUID_RESERVE));
0x264786EF916af64a1DB19F513F24a3681734ce92
);
} }
} }