rwadurian/backend/services/mining-wallet-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 feat(contribution): implement TEAM_BONUS backfill when unlock conditions met 2026-01-13 23:58:54 -08:00
persistence refactor(mining-wallet-service): remove KAVA blockchain integration 2026-01-12 06:31:30 -08:00
redis feat(mining-wallet-service): 添加独立钱包管理微服务 2026-01-10 22:21:08 -08:00
infrastructure.module.ts refactor(mining-wallet-service): remove KAVA blockchain integration 2026-01-12 06:31:30 -08:00