rwadurian/backend/services/trading-service
hailin 096d87e2a8 fix(trading): 区分买方支付和卖方收款金额
问题:executeBuy使用含销毁倍数的tradeAmount,但买方冻结的是原始金额
原因:买方支付=原始数量×价格,卖方收款=有效数量×价格(含销毁)
修复:
- buyerPayAmount = tradeQuantity × price(买方实际支付)
- sellerReceiveAmount = effectiveQuantity × price(卖方实际收款)
- executeBuy 使用 buyerPayAmount
- executeSell 使用 sellerReceiveAmount

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 08:08:58 -08:00
..
prisma fix(trading): 修复 migration 执行顺序问题 2026-01-17 21:59:06 -08:00
src fix(trading): 区分买方支付和卖方收款金额 2026-01-18 08:08:58 -08: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 refactor(api): 升级 trading-service API 前缀至 v2 2026-01-11 22:37:17 -08:00
nest-cli.json feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
package-lock.json fix(trading-service): 更新 package-lock.json 2026-01-11 21:35:33 -08:00
package.json feat(trading-service): sync trading account creation with wallet service 2026-01-15 04:27:14 -08:00
tsconfig.json fix(trading-service): exclude prisma from tsconfig to fix build output path 2026-01-15 04:46:01 -08:00