rwadurian/backend/services/mining-wallet-service
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
..
prisma feat(mining-wallet): add seed and auto-create province/city accounts 2026-01-13 23:36:31 -08:00
src feat(contribution): implement TEAM_BONUS backfill when unlock conditions met 2026-01-13 23:58:54 -08:00
.env.example feat(mining-wallet-service): 添加独立钱包管理微服务 2026-01-10 22:21:08 -08:00
Dockerfile refactor(api): 升级 mining-service 和 mining-wallet-service API 前缀至 v2 2026-01-11 22:31:06 -08:00
nest-cli.json feat(mining-wallet-service): 添加独立钱包管理微服务 2026-01-10 22:21:08 -08:00
package-lock.json feat(mining-wallet-service): 添加独立钱包管理微服务 2026-01-10 22:21:08 -08:00
package.json feat(mining-wallet): add seed and auto-create province/city accounts 2026-01-13 23:36:31 -08:00
tsconfig.json feat(mining-wallet-service): 添加独立钱包管理微服务 2026-01-10 22:21:08 -08:00