mirror of
https://github.com/acid-info/logos-ordinals-dashboard.git
synced 2025-01-12 06:34:14 +00:00
chore: update totalXpPerBlock
This commit is contained in:
parent
b95339cb83
commit
a2c7707fd9
@ -16,8 +16,9 @@ const OperatorGrid: React.FC<OperatorGridProps> = ({
|
|||||||
}: OperatorGridProps) => {
|
}: OperatorGridProps) => {
|
||||||
const stakedOperators = data?.filter((operator) => operator.isStaked)
|
const stakedOperators = data?.filter((operator) => operator.isStaked)
|
||||||
|
|
||||||
|
// staked operators count * 50
|
||||||
const totalXpPerBlock = data?.reduce(
|
const totalXpPerBlock = data?.reduce(
|
||||||
(acc, operator) => acc + (operator.stakingXPPerBlock ?? 0),
|
(acc, operator) => acc + (operator.isStaked ? 50 : 0),
|
||||||
0,
|
0,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user