rwadurian/backend/services/trading-service/src
hailin e306f346d3 fix(trading-service): 区块链充值 balanceBefore 从 trading_accounts 读取
修复 MarketMakerDepositConsumerService 读取 market_maker_configs.cash_balance
作为 balanceBefore 的 bug。该字段由中心化充值路径不维护,导致区块链充值
流水中 balanceBefore 始终为 0 或脱轨值。

改为与 deposit()/withdraw() 一致:
- balanceBefore 从 trading_accounts 读取(权威数据源)
- 删除对 market_maker_configs.cash_balance 的写操作

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 11:12:40 -07:00
..
api feat(trading+app): 预种卖出限制 — 前端 UI 禁用 + 后端查询端点 2026-03-04 05:51:56 -08:00
application fix(text): 预种合并份数从5份改为10份 2026-03-04 06:18:12 -08:00
domain feat(trading): 实现完整的CEX做市商双边深度系统 2026-01-17 21:11:23 -08:00
infrastructure fix(trading-service): 区块链充值 balanceBefore 从 trading_accounts 读取 2026-03-11 11:12:40 -07:00
shared feat(capability): 实现用户能力权限控制系统(Capability-based Permission) 2026-02-27 22:19:56 -08:00
app.module.ts feat(capability): 实现用户能力权限控制系统(Capability-based Permission) 2026-02-27 22:19:56 -08:00
main.ts fix(api-gateway): correct Kong routing for trading-service 2026-01-15 05:27:46 -08:00