Skip to content

Commit

Permalink
Merge pull request #154 from Gearbox-protocol/ezeth-optimism
Browse files Browse the repository at this point in the history
feat: added ezETH price feeds on optimism
  • Loading branch information
57Ark authored Jul 16, 2024
2 parents c36e17b + ac5638a commit 31503ec
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
32 changes: 32 additions & 0 deletions src/oracles/priceFeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,38 @@ export const priceFeedsByToken: Record<
},
},
},
Optimism: {
Main: {
type: PriceFeedType.COMPOSITE_ORACLE,
targetToBasePriceFeed: {
type: PriceFeedType.CHAINLINK_ORACLE,
address: "0xFAD40C0e2BeF93c6a822015863045CAAeAAde4d3",
stalenessPeriod: HOUR_24_BUFFERED_L2,
},
baseToUsdPriceFeed: {
type: PriceFeedType.CHAINLINK_ORACLE,
address: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
stalenessPeriod: HOUR_24_BUFFERED_L2,
},
trusted: false,
},

Reserve: {
type: PriceFeedType.COMPOSITE_ORACLE,
targetToBasePriceFeed: {
type: PriceFeedType.REDSTONE_ORACLE,
dataServiceId: "redstone-primary-prod",
dataId: "ezETH/ETH",
...REDSTONE_SIGNERS,
stalenessPeriod: FOUR_MINUTES,
},
baseToUsdPriceFeed: {
type: PriceFeedType.CHAINLINK_ORACLE,
address: "0x13e3Ee699D1909E989722E753853AE30b17e08c5",
stalenessPeriod: HOUR_24_BUFFERED_L2,
},
},
},
},

rswETH: {
Expand Down
11 changes: 9 additions & 2 deletions src/tokens/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export const tokenDataByNetwork: Record<
rETH: "0x9Bcef72be871e61ED4fBbc7630889beE758eb81D",
osETH: NOT_DEPLOYED,
weETH: NOT_DEPLOYED,
ezETH: NOT_DEPLOYED,
ezETH: "0x2416092f143378750bb29b79eD961ab195CcEea5",
rsETH: NOT_DEPLOYED,
PENDLE: "0xBC7B1Ff1c6989f006a1185318eD4E7b5796e66E1",
frxETH: "0x6806411765Af15Bddd26f8f544A34cC40cb9838B",
Expand Down Expand Up @@ -1299,7 +1299,14 @@ export const tickerInfoTokensByNetwork: Record<
priceFeed: "0xcB44ADd611f75F03191f8f1A2e2AF7a0113eadd1",
},
},
Optimism: {},
Optimism: {
ezETH: {
symbol: "ezETH/ETH",
dataId: "ezETH_FUNDAMENTAL",
address: "0x658f8e60c57ad62a9299ef6c7b1da9a0d1d1e681",
priceFeed: "0xF23C91b1E3B7FD9174c82F7Fb2BD270C3CfcC3CE",
},
},
Base: {},
};

Expand Down

0 comments on commit 31503ec

Please sign in to comment.