Skip to content

Commit

Permalink
Merge pull request #259 from PeggyJV/collin/more-permissions
Browse files Browse the repository at this point in the history
Turbo stETH and RY ETH permissions
  • Loading branch information
cbrit committed Mar 15, 2024
2 parents 444dec4 + 770a45c commit 3ba15c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
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

0 comments on commit 3ba15c3

Please sign in to comment.