Skip to content

Commit

Permalink
fix: distribution endpoint to return only positive balances
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Dec 23, 2024
1 parent ba3f67d commit b35cfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/[version]/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineCachedEventHandler(async () => {
sql`${tables.activity.epochNumber} = (
SELECT MAX(epoch_number)
FROM activity a2
WHERE a2.validator_id = ${tables.activity.validatorId}
WHERE a2.validator_id = ${tables.activity.validatorId} AND a2.balance != -1
)`,
),
)
Expand Down

0 comments on commit b35cfc0

Please sign in to comment.