Skip to content

Commit

Permalink
fix: missing feed addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Dec 5, 2024
1 parent d7f4802 commit e54b5c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/RedstoneServiceV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export class RedstoneServiceV3 {
token: ticker.address,
dataFeedId: ticker.dataId,
reserve: ticker.reserve,
address: ticker.priceFeed,
},
];
}
Expand Down Expand Up @@ -392,7 +393,7 @@ export class RedstoneServiceV3 {

const result: PriceOnDemandExtras[] = [];
for (const t of updates) {
const { dataFeedId, originalToken, reserve, token } = t;
const { dataFeedId, originalToken, reserve, token, address } = t;
const signedDataPackages = packagesByDataFeedId[dataFeedId];
if (!signedDataPackages) {
throw new Error(`cannot find data packages for ${dataFeedId}`);
Expand All @@ -407,6 +408,7 @@ export class RedstoneServiceV3 {
wrapper.getUnsignedMetadata(),
);
result.push({
address,
dataFeedId,
originalToken,
token,
Expand Down Expand Up @@ -504,7 +506,7 @@ function printFeeds(feeds: RedstoneFeed[]): string {
return feeds
.map(
f =>
`${getTokenSymbolOrTicker(f.token)} ${f.reserve ? "reserve" : "main"} -> ${f.dataFeedId}`,
`${getTokenSymbolOrTicker(f.token)} ${f.reserve ? "reserve" : "main"} -> ${f.dataFeedId} (${f.address})`,
)
.join(", ");
}
Expand Down

0 comments on commit e54b5c5

Please sign in to comment.