chore: update totalXpPerBlock

This commit is contained in:
jinhojang6 2024-11-03 21:37:06 +09:00
parent b95339cb83
commit a2c7707fd9
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8

View File

@ -16,8 +16,9 @@ const OperatorGrid: React.FC<OperatorGridProps> = ({
}: OperatorGridProps) => {
const stakedOperators = data?.filter((operator) => operator.isStaked)
// staked operators count * 50
const totalXpPerBlock = data?.reduce(
(acc, operator) => acc + (operator.stakingXPPerBlock ?? 0),
(acc, operator) => acc + (operator.isStaked ? 50 : 0),
0,
)