rwadurian/backend/services/contribution-service/src
hailin 141db46356 fix(contribution-service): use real contributionPerTree from rate service
Previously, adoptions were synced with hardcoded contributionPerTree=1,
resulting in contribution values like 0.7 instead of the expected 15831.9.

Now the handler fetches the actual contribution rate from ContributionRateService
based on the adoption date, storing values like:
- Personal (70%): 22617 × 70% = 15831.9
- Team Level (0.5%): 22617 × 0.5% = 113.085
- Team Bonus (2.5%): 22617 × 2.5% = 565.425

Note: Historical data may need migration to apply the correct multiplier.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 18:01:30 -08:00
..
api feat(contribution): add CDC sync status API and fix deploy script timing 2026-01-13 21:34:58 -08:00
application fix(contribution-service): use real contributionPerTree from rate service 2026-01-14 18:01:30 -08:00
domain fix(contribution): ensure 100% reliable CDC sync to mining-admin-service 2026-01-13 19:27:50 -08:00
infrastructure feat(contribution): implement TEAM_BONUS backfill when unlock conditions met 2026-01-13 23:58:54 -08:00
shared fix(contribution-service): 修复JWT验证与auth-service不兼容 2026-01-11 18:18:21 -08:00
app.module.ts feat(contribution-service): 添加算力管理微服务 2026-01-10 17:39:25 -08:00
main.ts fix(contribution-service): 统一使用api/v2前缀 2026-01-11 09:05:42 -08:00