rwadurian/frontend/admin-web/src
hailin 036696878f feat(settlement): implement settle-to-balance with detailed source tracking
Add complete settlement-to-balance feature that transfers settleable
earnings directly to wallet USDT balance (no currency swap). Key changes:

Backend (wallet-service):
- Add SettleToBalanceCommand for settlement operations
- Add settleToBalance method to WalletAccountAggregate
- Add settleToBalance application service with ledger recording
- Add internal API endpoint POST /api/v1/wallets/settle-to-balance

Backend (reward-service):
- Add settleToBalance client method for wallet-service communication
- Add settleRewardsToBalance application service method
- Add user-facing API endpoint POST /rewards/settle-to-balance
- Build detailed settlement memo with source user tracking per reward

Frontend (mobile-app):
- Add SettleToBalanceResult model class
- Add settleToBalance() method to RewardService
- Update pending_actions_page to handle SETTLE_REWARDS action
- Add completion detection via settleableUsdt balance check

Settlement memo now includes detailed breakdown by right type with
source user accountSequence for each reward entry, e.g.:
  结算 1000.00 绿积分到钱包余额
  涉及 5 笔奖励
    - SHARE_RIGHT: 500.00 绿积分
        来自 D2512120001: 288.00 绿积分
        来自 D2512120002: 212.00 绿积分

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 04:29:38 -08:00
..
app feat(pending-actions): display accountSequence alongside userId 2026-01-02 21:33:03 -08:00
components feat(pending-actions): add user pending actions system 2026-01-02 18:22:51 -08:00
hooks fix(admin-web): handle undefined data in dashboard hooks 2026-01-02 19:05:54 -08:00
infrastructure feat(pending-actions): add user pending actions system 2026-01-02 18:22:51 -08:00
lib feat(admin-web): 添加 TSS WASM 集成,实现与 Service-Party-App 功能对等 2025-12-29 01:39:43 -08:00
services fix(admin-web): fix nested data access in pendingActionService 2026-01-02 19:18:54 -08:00
store fix(admin-web): 修复 authSlice 的 REHYDRATE 类型错误 2025-12-20 00:35:03 -08:00
styles fix(scss): 添加缺失的语义化颜色变量别名 2025-12-18 02:31:14 -08:00
types feat(settlement): implement settle-to-balance with detailed source tracking 2026-01-03 04:29:38 -08:00
utils feat(frontend): 前端时间显示统一转换为本地时间 2025-12-23 19:45:51 -08:00