import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins"; import FormattedBalance from "../components/FormattedBalance"; import { TransactionData } from "../types"; import PercentageGauge from "../components/PercentageGauge"; type RewardSplitProps = { txData: TransactionData; }; const RewardSplit: React.FC = ({ txData }) => { const paidFees = txData.gasPrice.mul(txData.gasUsed); const burntFees = txData.blockBaseFeePerGas!.mul(txData.gasUsed); const minerReward = paidFees.sub(burntFees); const burntPerc = Math.round(burntFees.mul(10000).div(paidFees).toNumber()) / 100; const minerPerc = Math.round((100 - burntPerc) * 100) / 100; return (
{" "} Ether
Ether
); }; export default React.memo(RewardSplit);