rwadurian/backend/services/contribution-service/src/infrastructure
hailin 2a79c83715 feat(contribution): implement TEAM_BONUS backfill when unlock conditions met
When a user's direct referral count reaches 2 or 4, the system now automatically
backfills previously pending TEAM_BONUS (T2/T3) contributions that were allocated
to headquarters while waiting for unlock conditions.

- Add BonusClaimService for handling bonus backfill logic
- Add findPendingBonusByAccountSequence and claimBonusRecords to repository
- Integrate bonus claim into updateReferrerUnlockStatus flow
- Add BonusClaimed event consumer in mining-wallet-service
- Generate ledger records for backfilled contributions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:58:54 -08:00
..
kafka fix(contribution-service): reset consumer group offsets to earliest on startup 2026-01-13 22:14:51 -08:00
persistence feat(contribution): implement TEAM_BONUS backfill when unlock conditions met 2026-01-13 23:58:54 -08:00
redis feat(contribution-service): 添加算力管理微服务 2026-01-10 17:39:25 -08:00
infrastructure.module.ts feat(contribution-service): 添加算力管理微服务 2026-01-10 17:39:25 -08:00