Skip to content

Commit

Permalink
feat: add wstETH pool
Browse files Browse the repository at this point in the history
  • Loading branch information
57Ark committed Jan 14, 2025
1 parent e49ffe2 commit f64b681
Show file tree
Hide file tree
Showing 14 changed files with 524 additions and 198 deletions.
6 changes: 6 additions & 0 deletions contracts/AdapterData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ contract AdapterData {
simpleAdapters.push(
SimpleAdapter({targetContract: Contracts.MELLOW_RENZO_VAULT, adapterType: AdapterType.MELLOW_LRT_VAULT})
);
simpleAdapters.push(
SimpleAdapter({
targetContract: Contracts.MELLOW_DECENTALIZED_VALIDATOR_VAULT,
adapterType: AdapterType.MELLOW_LRT_VAULT
})
);
simpleAdapters.push(
SimpleAdapter({targetContract: Contracts.DAI_USDS, adapterType: AdapterType.DAI_USDS_EXCHANGE})
);
Expand Down
1 change: 1 addition & 0 deletions contracts/ContractType.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ enum Contracts {
MELLOW_AMPHOR_VAULT,
MELLOW_RESTAKING_VAULT,
MELLOW_RENZO_VAULT,
MELLOW_DECENTALIZED_VALIDATOR_VAULT,
SKY_STAKING_REWARDS,
DAI_USDS
}
60 changes: 60 additions & 0 deletions contracts/PriceFeedDataLive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5994,6 +5994,20 @@ contract PriceFeedDataLive {
SingeTokenPriceFeedData({token: TOKEN_trenSTETH, trusted: false, reserve: false})
);

// ------------------------ DVstETH_wstETH_BPT ------------------------
zeroPriceFeedsByNetwork[1].push(
SingeTokenPriceFeedData({token: TOKEN_DVstETH_wstETH_BPT, trusted: false, reserve: false})
);
zeroPriceFeedsByNetwork[42161].push(
SingeTokenPriceFeedData({token: TOKEN_DVstETH_wstETH_BPT, trusted: false, reserve: false})
);
zeroPriceFeedsByNetwork[10].push(
SingeTokenPriceFeedData({token: TOKEN_DVstETH_wstETH_BPT, trusted: false, reserve: false})
);
zeroPriceFeedsByNetwork[8453].push(
SingeTokenPriceFeedData({token: TOKEN_DVstETH_wstETH_BPT, trusted: false, reserve: false})
);

// ------------------------ weETH_ezETH_rswETH ------------------------
zeroPriceFeedsByNetwork[1].push(
SingeTokenPriceFeedData({token: TOKEN_weETH_ezETH_rswETH, trusted: false, reserve: false})
Expand Down Expand Up @@ -8112,6 +8126,52 @@ contract PriceFeedDataLive {
})
);

// ------------------------ DVstETH ------------------------
mellowLRTPriceFeedsByNetwork[1].push(
GenericLPPriceFeedData({lpToken: TOKEN_DVstETH, underlying: TOKEN_WETH, trusted: false, reserve: false})
);
theSamePriceFeedsByNetwork[1].push(
TheSamePriceFeedData({
token: TOKEN_DVstETH,
tokenHasSamePriceFeed: TOKEN_wstETH,
trusted: false,
reserve: true
})
);
mellowLRTPriceFeedsByNetwork[42161].push(
GenericLPPriceFeedData({lpToken: TOKEN_DVstETH, underlying: TOKEN_WETH, trusted: false, reserve: false})
);
theSamePriceFeedsByNetwork[42161].push(
TheSamePriceFeedData({
token: TOKEN_DVstETH,
tokenHasSamePriceFeed: TOKEN_wstETH,
trusted: false,
reserve: true
})
);
mellowLRTPriceFeedsByNetwork[10].push(
GenericLPPriceFeedData({lpToken: TOKEN_DVstETH, underlying: TOKEN_WETH, trusted: false, reserve: false})
);
theSamePriceFeedsByNetwork[10].push(
TheSamePriceFeedData({
token: TOKEN_DVstETH,
tokenHasSamePriceFeed: TOKEN_wstETH,
trusted: false,
reserve: true
})
);
mellowLRTPriceFeedsByNetwork[8453].push(
GenericLPPriceFeedData({lpToken: TOKEN_DVstETH, underlying: TOKEN_WETH, trusted: false, reserve: false})
);
theSamePriceFeedsByNetwork[8453].push(
TheSamePriceFeedData({
token: TOKEN_DVstETH,
tokenHasSamePriceFeed: TOKEN_wstETH,
trusted: false,
reserve: true
})
);

// ------------------------ PT_rsETH_26SEP2024 ------------------------
pendlePriceFeedsByNetwork[1].push(
PendlePriceFeedData({
Expand Down
7 changes: 7 additions & 0 deletions contracts/SupportedContracts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,13 @@ contract SupportedContracts is Test, ISupportedContracts {
name: "MELLOW_RENZO_VAULT"
})
);
contractDataByNetwork[1].push(
ContractData({
id: Contracts.MELLOW_DECENTALIZED_VALIDATOR_VAULT,
addr: 0x5E362eb2c0706Bd1d134689eC75176018385430B,
name: "MELLOW_DECENTALIZED_VALIDATOR_VAULT"
})
);
contractDataByNetwork[1].push(
ContractData({
id: Contracts.SKY_STAKING_REWARDS,
Expand Down
Loading

0 comments on commit f64b681

Please sign in to comment.