Skip to content

Commit

Permalink
chore: add symb lbtc
Browse files Browse the repository at this point in the history
  • Loading branch information
jparklev committed Oct 9, 2024
1 parent 32bef06 commit de111ac
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions script/RumpelConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ library RumpelConfig {
address public constant MAINNET_YT_RSTETH_26DEC2024 = 0x11CCff2F748a0100dBd457FF7170A54e12064Aba;
address public constant MAINNET_YT_AMPHRETH_26DEC2024 = 0x5dB8a2391a72F1114BbaE30eFc9CD89f4a29F988;
address public constant MAINNET_AMPHRETH = 0x5fD13359Ba15A84B76f7F87568309040176167cd;
address public constant MAINNET_SYMBIOTIC_LBTC = 0x9C0823D3A1172F9DdF672d438dec79c39a64f448;

function updateGuardAllowlist(RumpelGuard rumpelGuard, string memory tag) internal {
setupGuardProtocols(rumpelGuard, tag);
Expand Down Expand Up @@ -110,7 +111,7 @@ library RumpelConfig {
return getInitialGuardProtocolConfigs();
} else if (tagHash == keccak256(bytes("mellow-re7"))) {
return getMellowRe7GuardProtocolConfigs();
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-08oct24"))) {
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-09oct24"))) {
// No initial YT protocol Guard updates, only token transfers
return new ProtocolGuardConfig[](0);
}
Expand All @@ -125,7 +126,7 @@ library RumpelConfig {
return getInitialGuardTokenConfigs();
} else if (tagHash == keccak256(bytes("mellow-re7"))) {
return getMellowRe7GuardTokenConfigs();
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-08oct24"))) {
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-09oct24"))) {
return getInitialYTsAndAmphrETHGuardTokenConfigs();
}

Expand All @@ -137,7 +138,7 @@ library RumpelConfig {

if (tagHash == keccak256(bytes("mellow-re7"))) {
return getMellowRe7ModuleTokenConfigs();
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-08oct24"))) {
} else if (tagHash == keccak256(bytes("initial-yts-and-amphrETH-09oct24"))) {
// No blocklist for the initial YT add
return new TokenModuleConfig[](0);
}
Expand Down Expand Up @@ -324,7 +325,7 @@ library RumpelConfig {
}

function getInitialYTsAndAmphrETHGuardTokenConfigs() internal pure returns (TokenGuardConfig[] memory) {
TokenGuardConfig[] memory configs = new TokenGuardConfig[](10);
TokenGuardConfig[] memory configs = new TokenGuardConfig[](11);

configs[0] = TokenGuardConfig({
token: MAINNET_YTEBTC_26DEC2024,
Expand Down Expand Up @@ -386,6 +387,12 @@ library RumpelConfig {
approveAllowState: RumpelGuard.AllowListState.ON
});

configs[10] = TokenGuardConfig({
token: MAINNET_SYMBIOTIC_LBTC,
transferAllowState: RumpelGuard.AllowListState.ON,
approveAllowState: RumpelGuard.AllowListState.OFF
});

return configs;
}
}
Expand Down

0 comments on commit de111ac

Please sign in to comment.