rwadurian/backend/services/trading-service
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
..
prisma feat(trade-password): 实现卖出交易的支付密码验证功能 2026-02-05 18:12:39 -08:00
src fix(trading-service): 区块链充值 balanceBefore 从 trading_accounts 读取 2026-03-11 11:12:40 -07:00
.env.example feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
DEVELOPMENT_GUIDE.md feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
Dockerfile fix(c2c-bot): 安装中文字体解决水单图片乱码问题 2026-02-02 18:56:55 -08:00
nest-cli.json feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
package-lock.json feat(c2c-bot): 顺序处理订单 + 自动生成付款水单图片 2026-02-02 18:32:52 -08:00
package.json feat(c2c-bot): 顺序处理订单 + 自动生成付款水单图片 2026-02-02 18:32:52 -08:00
tsconfig.json fix(trading-service): exclude prisma from tsconfig to fix build output path 2026-01-15 04:46:01 -08:00