Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbo stETH and RY ETH permissions #259

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default-members = [
resolver = "2"

[workspace.package]
version = "4.2.0"
version = "4.2.1"
edition = "2021"

[workspace.dependencies]
Expand Down
18 changes: 13 additions & 5 deletions src/cellars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ lazy_static! {
// permissions

pub const ALLOWED_V2_0_SETUP_ADAPTORS: [(&str, &str); 0] = [];
pub const ALLOWED_V2_2_CATALOGUE_ADAPTORS: [(&str, &str); 0] = [];
pub const ALLOWED_V2_5_CATALOGUE_ADAPTORS: [(&str, &str); 1] =
[(CELLAR_TURBO_EETH_DEPLOYMENT_1, ADAPTOR_ERC4626_V1)];
pub const ALLOWED_V2_2_CATALOGUE_ADAPTORS: [(&str, &str); 1] =
[(CELLAR_RYETH, ADAPTOR_LIDO_STAKING_V1)];
pub const ALLOWED_V2_5_CATALOGUE_ADAPTORS: [(&str, &str); 3] = [
(CELLAR_TURBO_EETH_DEPLOYMENT_1, ADAPTOR_ERC4626_V1),
(CELLAR_TURBO_STETH, ADAPTOR_LIDO_STAKING_V1),
(CELLAR_TURBO_STETH, ADAPTOR_VESTING_SIMPLE_V1_1_DEPLOYMENT2),
];

// due to position size limits in v2.0, positions must be added and removed from the limited list
// and thus approved positions need to be allowed to be re-added, hence this large list
Expand All @@ -113,15 +117,18 @@ pub const ALLOWED_V2_0_POSITIONS: [(&str, u32); 20] = [
(CELLAR_RYUSD, 28),
(CELLAR_RYUSD, 29),
];
pub const ALLOWED_V2_2_CATALOGUE_POSITIONS: [(&str, u32); 0] = [];
pub const ALLOWED_V2_5_CATALOGUE_POSITIONS: [(&str, u32); 7] = [
pub const ALLOWED_V2_2_CATALOGUE_POSITIONS: [(&str, u32); 2] =
[(CELLAR_RYETH, 200), (CELLAR_RYETH, 201)];
pub const ALLOWED_V2_5_CATALOGUE_POSITIONS: [(&str, u32); 9] = [
(CELLAR_MORPHO_ETH_MAXIMIZER, 110000007),
(CELLAR_MORPHO_ETH_MAXIMIZER, 110000008),
(CELLAR_MORPHO_ETH_MAXIMIZER, 110000009),
(CELLAR_MORPHO_ETH_MAXIMIZER, 110000010),
(CELLAR_MORPHO_ETH_MAXIMIZER, 11500004),
(CELLAR_MORPHO_ETH_MAXIMIZER, 11500005),
(CELLAR_TURBO_EETH_DEPLOYMENT_1, 10000004),
(CELLAR_TURBO_STETH, 69000002),
(CELLAR_TURBO_STETH, 100000008),
];

pub const BLOCKED_ADAPTORS: [&str; 3] = [
Expand Down Expand Up @@ -192,6 +199,7 @@ pub const ADAPTOR_CURVE_ADAPTOR_V1: &str = "94e28529f73dad189cd0bf9d83a06572d4bf
pub const ADAPTOR_DEBT_F_TOKEN_V1: &str = "50d8f70a5da95021dab86579db4751a863c1b87c";
pub const ADAPTOR_ERC4626_V1: &str = "411a4e55a4867610279ef35cba4da91a7753a93e";
pub const ADAPTOR_LEGACY_CELLAR_V1: &str = "1e22adf9e63ef8f2a3626841ddddd19683e31068";
pub const ADAPTOR_LIDO_STAKING_V1: &str = "0a64c091d428c7430fe1f47d53f7c8edb1285bce";
pub const ADAPTOR_MORPHO_AAVE_V2_A_TOKEN_V1: &str = "1a4cb53edb8c65c3df6aa9d88c1ab4cf35312b73";
pub const ADAPTOR_MORPHO_AAVE_V2_DEBT_TOKEN_V1: &str = "407d5489f201013ee6a6ca20fccb05047c548138";
pub const ADAPTOR_MORPHO_AAVE_V3_A_TOKEN_COLLATERAL_V1: &str =
Expand Down
Loading