diff --git a/packages/react-app/src/contracts/hardhat_contracts.json b/packages/react-app/src/contracts/hardhat_contracts.json index 0ff81c4..3902209 100644 --- a/packages/react-app/src/contracts/hardhat_contracts.json +++ b/packages/react-app/src/contracts/hardhat_contracts.json @@ -1244,4 +1244,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/react-app/src/views/Home.jsx b/packages/react-app/src/views/Home.jsx index 47c0501..d414f27 100644 --- a/packages/react-app/src/views/Home.jsx +++ b/packages/react-app/src/views/Home.jsx @@ -19,7 +19,7 @@ import { Link } from "react-router-dom"; const streamsCache = {}; -async function resolveStreamSummary(streamAddress) { +async function resolveStreamSummary(streamAddress, mainnetProvider) { if (streamsCache[streamAddress]) { return streamsCache[streamAddress]; } @@ -75,7 +75,7 @@ export default function Home({ useEffect(async () => { // Get an instance for each Stream contract for (let b in streams) { - const summary = resolveStreamSummary(streams[b].stream); + const summary = resolveStreamSummary(streams[b].stream, mainnetProvider); copy[b].push(summary.cap); copy[b].percent = summary.percent; }