Skip to content

Commit

Permalink
fix(status-page): hide fee related statuses (#13450)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Mar 24, 2023
1 parent 58f6430 commit 31ad254
Showing 1 changed file with 46 additions and 47 deletions.
93 changes: 46 additions & 47 deletions packages/status-page/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 31ad254

Please sign in to comment.