Helius
2020-08-29 5677479567a47c14ee091770170e4c7e01bbf31c
src/main/java/com/xcong/excoin/utils/CalculateUtil.java
@@ -118,13 +118,11 @@
                    subCnt = maxCnt - holdOrderEntity.getSymbolCntSale();
                }
                log.info("--{}, {}, {}, {}", maxCnt, subCnt, openPrice, type);
                feeAmount = feeAmount.add(holdOrderEntity.getOpeningFeeAmount());
                sku = holdOrderEntity.getSymbolSku();
            }
            BigDecimal forceSetPrice = BigDecimal.ZERO;
            if (subCnt != 0) {
                log.info("--->{}, {}, {}, {}, {}", openPrice, subCnt, sku, type, maxCnt);
                forceSetPrice = getForceSetPrice(walletContract.getTotalBalance().subtract(feeAmount), openPrice, subCnt, sku, type, memberEntity);
            }
@@ -138,6 +136,7 @@
            if (forceSetPrice.compareTo(BigDecimal.ZERO) > 0) {
                log.info("id:{}, type:{}, forceSetPrice:{}, symbol:{}, operateNo:{}", id, type, forceSetPrice, symbol, operateNo);
                sendOrderBombMsg(id, type, forceSetPrice, symbol, operateNo);
            }
        }