Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Jun 4, 2024
1 parent 8700373 commit b476851
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ export const calculateRewards = (
);
}

const epochMetadataByAccount: Record<Address, bigint> = {};
const earnedRewardsByAccount: Record<Address, bigint> = {};

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;
};

0 comments on commit b476851

Please sign in to comment.