limit to 25 so that we can still send it in discord

This commit is contained in:
Marco van Dijk 2022-05-26 20:08:11 +02:00
parent eceb53af5d
commit e654f47c65

View File

@ -108,10 +108,10 @@ const Stats = (obj) => {
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 += "Winning tickets sent out this month:\r\n"; summary += "Top 25 earning orchestrators for this month are: \r\n";
// Find highest earner // Find highest earner
const maxPrint = 100; const maxPrint = 25;
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;