We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abaebdd commit 982f542Copy full SHA for 982f542
src/redstone/api.ts
@@ -527,10 +527,25 @@ export class RedstoneApi {
527
},
528
{},
529
);
530
+
531
+ const allMain_Root = st1_MainFeedsUnsafe.reduce<Record<Address, Address>>(
532
+ (acc, p, index) => {
533
+ const token = allTokens[index][1];
534
535
+ if (!p.error && typeof p.result === "object" && p.result[4] === false) {
536
+ const [priceFeed] = p.result;
537
+ acc[token] = priceFeed;
538
+ }
539
+ return acc;
540
+ },
541
+ {},
542
+ );
543
544
return {
545
main: mainPFData,
546
reserve: reservePFData,
547
allReserve,
548
+ allMain_Root,
549
};
550
551
0 commit comments