Skip to content

Commit db79ecc

Browse files
opimize send_score_current and triggers
1 parent 3f3d61d commit db79ecc

File tree

5 files changed

+610
-243
lines changed

5 files changed

+610
-243
lines changed

apps/distributor/src/distributorv2.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,12 @@ export class DistributorV2Worker {
285285
)
286286
}
287287

288-
return balances.filter(
289-
({ balance }) => BigInt(balance) >= BigInt(distribution.hodler_min_balance)
290-
)
288+
return balances
289+
.map((balance) => ({
290+
...balance,
291+
address: normalizeAddress(balance.address), // Normalize the address
292+
}))
293+
.filter(({ balance }) => BigInt(balance) >= BigInt(distribution.hodler_min_balance))
291294
})
292295

293296
log.info(

0 commit comments

Comments
 (0)