Skip to content

Commit

Permalink
Revert "fix: optimism hotfix"
Browse files Browse the repository at this point in the history
This reverts commit e870fa9.
  • Loading branch information
doomsower committed Aug 10, 2024
1 parent e870fa9 commit 0630e8a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/services/RedstoneServiceV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,10 @@ export class RedstoneServiceV3 {
{ ticker },
`will update redstone ticker ${ticker.symbol} for ${symb}`,
);
// TODO:
// this is hotfix
// Previous assumption was that tickers are always added as main feed
// this is not true, and for "ezETH/ETH" this is reserve
//
// need to unwrap composite price feeds and determine reserve status
// or wait for price feed compressor
let reserve = false;
if (
ticker.symbol === "ezETH/ETH" &&
this.config.network === "Optimism"
) {
reserve = true;
}

redstoneUpdates.push({
dataFeedId: ticker.dataId,
token: ticker.address,
reserve,
reserve: false, // tickers are always added as main feed
});
} else {
logger.debug(
Expand Down

0 comments on commit 0630e8a

Please sign in to comment.