From 31ad2548387c712d77b0dcbb35b53222546d7417 Mon Sep 17 00:00:00 2001 From: jeff <113397187+cyberhorsey@users.noreply.github.com> Date: Fri, 24 Mar 2023 09:55:38 -0700 Subject: [PATCH] fix(status-page): hide fee related statuses (#13450) --- .../status-page/src/pages/home/Home.svelte | 93 +++++++++---------- 1 file changed, 46 insertions(+), 47 deletions(-) diff --git a/packages/status-page/src/pages/home/Home.svelte b/packages/status-page/src/pages/home/Home.svelte index 8139939415..16aeb97532 100644 --- a/packages/status-page/src/pages/home/Home.svelte +++ b/packages/status-page/src/pages/home/Home.svelte @@ -164,33 +164,32 @@ onMount(async () => { try { - statusIndicators.push({ - statusFunc: getBlockFee, - watchStatusFunc: null, - provider: l1Provider, - contractAddress: l1TaikoAddress, - header: "Block Fee", - intervalInMs: 15000, - colorFunc: function (status: Status) { - return "green"; // todo: whats green, yellow, red? - }, - tooltip: - "The current fee to propose a block to the TaikoL1 smart contract.", - }); - - statusIndicators.push({ - statusFunc: getProofReward, - watchStatusFunc: null, - provider: l1Provider, - contractAddress: l1TaikoAddress, - header: "Proof Reward", - intervalInMs: 15000, - colorFunc: function (status: Status) { - return "green"; // todo: whats green, yellow, red? - }, - tooltip: - "The current reward for successfully submitting a proof for a proposed block on the TaikoL1 smart contract.", - }); + // statusIndicators.push({ + // statusFunc: getBlockFee, + // watchStatusFunc: null, + // provider: l1Provider, + // contractAddress: l1TaikoAddress, + // header: "Block Fee", + // intervalInMs: 15000, + // colorFunc: function (status: Status) { + // return "green"; // todo: whats green, yellow, red? + // }, + // tooltip: + // "The current fee to propose a block to the TaikoL1 smart contract.", + // }); + // statusIndicators.push({ + // statusFunc: getProofReward, + // watchStatusFunc: null, + // provider: l1Provider, + // contractAddress: l1TaikoAddress, + // header: "Proof Reward", + // intervalInMs: 15000, + // colorFunc: function (status: Status) { + // return "green"; // todo: whats green, yellow, red? + // }, + // tooltip: + // "The current reward for successfully submitting a proof for a proposed block on the TaikoL1 smart contract.", + // }); } catch (e) { console.error(e); } @@ -282,26 +281,26 @@ "The current average block time, updated when a block is successfully proposed.", }); - statusIndicators.push({ - provider: l1Provider, - contractAddress: l1TaikoAddress, - header: "Fee Base", - intervalInMs: 0, - statusFunc: async ( - provider: ethers.providers.JsonRpcProvider, - address: string - ) => { - const stateVars = await getStateVariables(provider, address); - return `${truncateString( - ethers.utils.formatEther(stateVars.feeBase), - 6 - )} ${feeTokenSymbol}`; - }, - colorFunc: function (status: Status) { - return "green"; // todo: whats green, yellow, red? - }, - tooltip: "The current fee base for proposing and rewarding", - }); + // statusIndicators.push({ + // provider: l1Provider, + // contractAddress: l1TaikoAddress, + // header: "Fee Base", + // intervalInMs: 0, + // statusFunc: async ( + // provider: ethers.providers.JsonRpcProvider, + // address: string + // ) => { + // const stateVars = await getStateVariables(provider, address); + // return `${truncateString( + // ethers.utils.formatEther(stateVars.feeBase), + // 6 + // )} ${feeTokenSymbol}`; + // }, + // colorFunc: function (status: Status) { + // return "green"; // todo: whats green, yellow, red? + // }, + // tooltip: "The current fee base for proposing and rewarding", + // }); } catch (e) { console.error(e); }