diff --git a/src/components/WinnerMonth.js b/src/components/WinnerMonth.js index ba1f8bc..1594d99 100644 --- a/src/components/WinnerMonth.js +++ b/src/components/WinnerMonth.js @@ -5,6 +5,18 @@ import Winner from '../components/WinnerStat'; import { getOrchestratorScores } from "../actions/livepeer"; +import Ticket from "../components/TicketViewer"; + +const claimColour = "rgba(25, 158, 29, 0.4)"; +const stakeColour = "rgba(25, 158, 147, 0.4)"; +const ticketRedeemColour = "rgba(25, 98, 158, 0.4)"; +const rewardColour = "rgba(25, 27, 158, 0.4)"; +const unbondColour = "rgba(105, 25, 158, 0.4)"; +const updateColour = "rgba(158, 25, 52, 0.4)"; +const withdrawStakeColour = "rgba(158, 98, 25, 0.4)"; +const activationColour = "rgba(154, 158, 25, 0.4)"; +const ticketTransferColour = "rgba(88, 91, 42, 0.3)"; +const greyColour = "rgba(122, 128, 127, 0.4)"; const WinnerMonth = (obj) => { const livepeer = useSelector((state) => state.livepeerstate); @@ -380,60 +392,114 @@ const WinnerMonth = (obj) => { return (
{obj.data.reactivationCount ? -
-

🔌 {obj.data.reactivationCount} Orchestrators reactivated

+
+
+ +
: null } +
{obj.data.activationCount ? -
-

🔧 {obj.data.activationCount} Orchestrator joined with an initial stake of {obj.data.activationInitialSum.toFixed(2)} LPT

-
: null - } - {obj.data.unbondCount ? -
-

📉 {obj.data.unbondCount} delegators unbonded {obj.data.unbondStakeSum.toFixed(2)} LPT

-
: null - } - {obj.data.rewardCount ? -
-

⌛ {obj.data.rewardCount} reward calls were made worth {obj.data.rewardAmountSum.toFixed(2)} LPT

-
: null - } - {obj.data.claimCount ? -
-

💸 {obj.data.claimRewardSum.toFixed(2)} LPT and {obj.data.claimFeeSum.toFixed(2)} ETH rewards were claimed by {obj.data.claimCount} delegators

-
: null - } - {obj.data.withdrawStakeCount ? -
-

🏦 {obj.data.withdrawStakeAmountSum.toFixed(2)} LPT worth of staking rewards were withdrawn by {obj.data.withdrawStakeCount} delegators

-
: null - } - {obj.data.withdrawFeesCount ? -
-

🏦 {obj.data.withdrawFeesAmountSum.toFixed(2)} ETH worth of transcoding fees were withdrawn by {obj.data.withdrawFeesCount} delegators

+
+
+ +
: null } +
{obj.data.bondCount ? -
-

📈 {obj.data.bondCount} accounts delegated for the first time for a total of {obj.data.bondStakeSum.toFixed(2)} LPT

+
+
+ +
: null } +
+ {obj.data.unbondCount ? +
+
+ +
+
: null + } +
+ {obj.data.rewardCount ? +
+
+ +
+
: null + } +
+ {obj.data.claimCount ? +
+
+ +
+
: null + } +
+ {obj.data.withdrawStakeCount ? +
+
+ +
+
: null + } +
+ {obj.data.withdrawFeesCount ? +
+
+ +
+
: null + } +
{obj.data.moveStakeCount ? -
-

🔄 {obj.data.moveStakeSum.toFixed(2)} LPT stake got moved around in {obj.data.moveStakeCount} transactions

+
+
+ +
: null } +
{obj.data.winningTicketsReceivedCount ? -
-

🎫 {obj.data.winningTicketsReceivedCount} winning tickets were sent out by {obj.data.winningTicketsSent.length} broadcasters

+
+
+ +
: null } +
{obj.data.winningTicketsRedeemedCount ? -
-

🎟️ {obj.data.winningTicketsRedeemedCount} winning tickets were redeemed worth {obj.data.winningTicketsRedeemedSum.toFixed(2)} ETH

+
+
+ +
: null - } + }
{stakeObj} {earningsObj}