Skip to content

Commit 155a22f

Browse files
authored
Merge pull request #58 from permaweb/chore/update-cu
chore: update tag response values from oracles
2 parents 5d0a29c + 587a207 commit 155a22f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/providers/EthereumProvider.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,14 @@ export function EthereumProvider(props: EthereumProviderProps) {
537537
}),
538538
]);
539539

540-
const daiPrice = Number(daiResp?.LastPrice) / 10000;
541-
const daiYield = Number(daiResp?.LastYield) / 10000;
540+
const daiPrice = Number(daiResp?.['Last-Price']) / 10000;
541+
const daiYield = Number(daiResp?.['Last-Yield']) / 10000;
542542

543-
const stEthPrice = Number(stEthResp?.LastPrice) / 10000;
544-
const stEthYield = Number(stEthResp?.LastYield) / 10000;
543+
const stEthPrice = Number(stEthResp?.['Last-Price']) / 10000;
544+
const stEthYield = Number(stEthResp?.['Last-Yield']) / 10000;
545545

546-
const usdsPrice = Number(usdsResp?.LastPrice) / 10000;
547-
const usdsYield = Number(usdsResp?.LastYield) / 10000;
546+
const usdsPrice = Number(usdsResp?.['Last-Price']) / 10000;
547+
const usdsYield = Number(usdsResp?.['Last-Yield']) / 10000;
548548

549549
const totalDepositedSteth = Number(totalDeposited?.stEth?.value ?? BigInt(0));
550550
const totalDepositedDai = Number(totalDeposited?.dai?.value ?? BigInt(0));

0 commit comments

Comments
 (0)