| | |
| | | int subCnt = 0;
|
| | | BigDecimal openPrice = BigDecimal.ZERO;
|
| | | int type = 1;
|
| | | BigDecimal feeAmount = BigDecimal.ZERO;
|
| | | BigDecimal bondAmount = BigDecimal.ZERO;
|
| | | BigDecimal sku = BigDecimal.ZERO;
|
| | |
|
| | | Long id = 0L;
|
| | |
| | | subCnt = maxCnt - holdOrderEntity.getSymbolCntSale();
|
| | | }
|
| | |
|
| | | feeAmount = feeAmount.add(holdOrderEntity.getOpeningFeeAmount());
|
| | | bondAmount = bondAmount.add(holdOrderEntity.getBondAmount().subtract(holdOrderEntity.getOpeningFeeAmount()));
|
| | | sku = holdOrderEntity.getSymbolSku();
|
| | | }
|
| | | BigDecimal forceSetPrice = BigDecimal.ZERO;
|
| | | if (subCnt != 0) {
|
| | | forceSetPrice = getForceSetPrice(walletContract.getTotalBalance().subtract(feeAmount), openPrice, subCnt, sku, type, memberEntity);
|
| | | forceSetPrice = getForceSetPrice(walletContract.getAvailableBalance().add(bondAmount), openPrice, subCnt, sku, type, memberEntity);
|
| | | }
|
| | |
|
| | | log.info("强平价:{}", forceSetPrice);
|