From 2896325492f3f39c3c50e31d42b04e4cf997777d Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Fri, 22 Apr 2022 00:22:38 +0200 Subject: [PATCH] fix dog shit in my code --- backend/src/routes/livepeer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/livepeer.js b/backend/src/routes/livepeer.js index 332b298..55bb640 100644 --- a/backend/src/routes/livepeer.js +++ b/backend/src/routes/livepeer.js @@ -800,8 +800,8 @@ const parseAnyEvent = async function (thisEvent) { } else if (thisName === "EarningsClaimed") { const eventObj = { address: thisEvent.data.delegator.toLowerCase(), - fees: parseFloat(thisEvent.data.rewards) / 1000000000000000000, - rewards: parseFloat(thisEvent.data.fees) / 1000000000000000000, + fees: parseFloat(thisEvent.data.fees) / 1000000000000000000, + rewards: parseFloat(thisEvent.data.rewards) / 1000000000000000000, startRound: parseInt(thisEvent.data.startRound), endRound: parseInt(thisEvent.data.endRound), transactionHash: thisEvent.transactionHash,