Just print all earners in the summary

This commit is contained in:
Marco van Dijk 2022-05-26 20:02:48 +02:00
parent 8a70d2a4b4
commit eceb53af5d

View File

@ -107,11 +107,11 @@ const Stats = (obj) => {
if (data.winningTicketsReceived.length && data.winningTicketsReceivedSum) { if (data.winningTicketsReceived.length && data.winningTicketsReceivedSum) {
summary += data.winningTicketsReceived.length + " orchestrators earned " + data.winningTicketsReceivedSum.toFixed(3) + " Eth in transcoding fees \r\n"; summary += data.winningTicketsReceived.length + " orchestrators earned " + data.winningTicketsReceivedSum.toFixed(3) + " Eth in transcoding fees \r\n";
} }
summary += luckyCount + " of them received more than 0.2 Eth \r\n"; summary += luckyCount + " of them received more than 0.2 Eth\r\n";
summary += "Top 25 earners for this month are: \r\n"; summary += "Winning tickets sent out this month:\r\n";
// Find highest earner // Find highest earner
const maxPrint = 25; const maxPrint = 100;
let currentPrinted = 0; let currentPrinted = 0;
while (currentPrinted < maxPrint && winnerList.length) { while (currentPrinted < maxPrint && winnerList.length) {
let ticketIdx2 = winnerList.length - 1; let ticketIdx2 = winnerList.length - 1;