Helius
2020-07-10 e4fee1574b0305fba189c50fa5becd042118bf00
src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderDetailVo.java
@@ -108,4 +108,12 @@
    public String getHoldAmount() {
        return holdAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString();
    }
    public void setClosingFeeAmount(BigDecimal closingFeeAmount, BigDecimal feeSpread) {
        this.closingFeeAmount = closingFeeAmount == null ? closingFeeAmount : closingFeeAmount.multiply(feeSpread).setScale(8, BigDecimal.ROUND_DOWN);
    }
    public void setOpeningFeeAmount(BigDecimal openingFeeAmount, BigDecimal feeSpread) {
        this.openingFeeAmount = openingFeeAmount == null ? openingFeeAmount : openingFeeAmount.multiply(feeSpread).setScale(8, BigDecimal.ROUND_DOWN);
    }
}