From b476851f0ad8a8c94347e18366ead1af3c68111d Mon Sep 17 00:00:00 2001 From: woodenfurniture <125113430+woodenfurniture@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:23:41 +1000 Subject: [PATCH] chore: cleanup --- .../calculateRewards/calculateRewards.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rewards-distribution/calculateRewards/calculateRewards.ts b/scripts/rewards-distribution/calculateRewards/calculateRewards.ts index 991a26a..27d17b7 100644 --- a/scripts/rewards-distribution/calculateRewards/calculateRewards.ts +++ b/scripts/rewards-distribution/calculateRewards/calculateRewards.ts @@ -250,14 +250,14 @@ export const calculateRewards = ( ); } - const epochMetadataByAccount: Record = {}; + const earnedRewardsByAccount: Record = {}; for (const [account, epochEndReward] of Object.entries( epochEndRewardsByAccount, )) { - epochMetadataByAccount[account as Address] = + earnedRewardsByAccount[account as Address] = epochEndReward - (epochStartRewardsByAccount[account as Address] ?? 0n); } - return epochMetadataByAccount; + return earnedRewardsByAccount; };