소스 검색

修复手续费扣除失败的问题

龚成明 2 년 전
부모
커밋
79b6967140
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/one-pro.js

+ 1 - 1
scripts/one-pro.js

@@ -92,7 +92,7 @@ const orderHandler = async function(context, task) {
         for (const fill of buyRst.fills) {
           executedQty += parseFloat(fill.qty)
           // 扣除支付的手续费
-          if (fill.commissionAsset === 'HOOK') {
+          if (fill.commissionAsset === token.exchange.symbol) {
             executedQty -= parseFloat(fill.commission)
           }
         }