diff --git a/server/api/[version]/distribution.ts b/server/api/[version]/distribution.ts index 6e19473..af34dd3 100644 --- a/server/api/[version]/distribution.ts +++ b/server/api/[version]/distribution.ts @@ -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 )`, ), )