Skip to content

Commit

Permalink
feat: perm allow susde yts
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvaleri committed Jan 28, 2025
1 parent bc6b42b commit 83c1ff1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions script/RumpelConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ library RumpelConfig {
return new ProtocolGuardConfig[](0);
} else if (tagHash == keccak256(bytes("remove-lrt2-claiming"))) {
return getRemoveLRT2ProtocolGuardConfigs();
} else if (tagHash == keccak256(bytes("perm-allow-march-may-2025-susde-yts"))) {
return new ProtocolGuardConfig[](0);
}

revert("Unsupported tag");
Expand Down Expand Up @@ -273,6 +275,8 @@ library RumpelConfig {
return getAddKsusdeTransferTokenGuardConfigs();
} else if (tagHash == keccak256(bytes("remove-lrt2-claiming"))) {
return getRemoveLRT2AssetTokenGuardConfigs();
} else if (tagHash == keccak256(bytes("perm-allow-march-may-2025-susde-yts"))) {
return getPermAllowMarchAndMay2025SusdeYTsTokenGuardConfigs();
}

revert("Unsupported tag");
Expand Down Expand Up @@ -320,6 +324,8 @@ library RumpelConfig {
return new TokenModuleConfig[](0);
} else if (tagHash == keccak256(bytes("remove-lrt2-claiming"))) {
return new TokenModuleConfig[](0);
} else if (tagHash == keccak256(bytes("perm-allow-march-may-2025-susde-yts"))) {
return getMarchAndMay20252025SusdeYTsTokenModuleConfigs();
}

revert("Unsupported tag");
Expand Down Expand Up @@ -364,6 +370,8 @@ library RumpelConfig {
return new ProtocolModuleConfig[](0);
} else if (tagHash == keccak256(bytes("remove-lrt2-claiming"))) {
return new ProtocolModuleConfig[](0);
} else if (tagHash == keccak256(bytes("perm-allow-march-may-2025-susde-yts"))) {
return new ProtocolModuleConfig[](0);
}

revert("Unsupported tag");
Expand Down Expand Up @@ -1164,6 +1172,33 @@ library RumpelConfig {

return configs;
}

function getPermAllowMarchAndMay2025SusdeYTsTokenGuardConfigs() internal pure returns (TokenGuardConfig[] memory) {
TokenGuardConfig[] memory configs = new TokenGuardConfig[](2);

configs[0] = TokenGuardConfig({
token: MAINNET_YT_SUSDE_27MAR2025,
transferAllowState: RumpelGuard.AllowListState.PERMANENTLY_ON,
approveAllowState: RumpelGuard.AllowListState.PERMANENTLY_ON
});

configs[1] = TokenGuardConfig({
token: MAINNET_YT_SUSDE_29MAY2025,
transferAllowState: RumpelGuard.AllowListState.PERMANENTLY_ON,
approveAllowState: RumpelGuard.AllowListState.PERMANENTLY_ON
});

return configs;
}

function getMarchAndMay20252025SusdeYTsTokenModuleConfigs() internal pure returns (TokenModuleConfig[] memory) {
TokenModuleConfig[] memory configs = new TokenModuleConfig[](3);

configs[0] = TokenModuleConfig({token: MAINNET_YT_SUSDE_27MAR2025, blockTransfer: true, blockApprove: true});
configs[1] = TokenModuleConfig({token: MAINNET_YT_SUSDE_29MAY2025, blockTransfer: true, blockApprove: true});

return configs;
}
}

interface IMorphoBundler {
Expand Down

0 comments on commit 83c1ff1

Please sign in to comment.