fix
Helius
2022-08-28 cf071e52c934b26fe2ea0e860cbd5584de4301a0
src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
@@ -759,10 +759,17 @@
     */
    @Override
    public void sdmWithdrawFee(String data) {
        BigDecimal totalFee = new BigDecimal(data);
        JSONObject jsonObject = JSONObject.parseObject(data);
        String address = jsonObject.getString("address");
        if (!ChainEnum.BSC_TFC_FEE.getAddress().equals(address)) {
            return;
        }
        BigDecimal totalFee = new BigDecimal(jsonObject.getString("fee"));
        String batchNo = RandomUtil.randomString(16);
        BigDecimal cardProfit = totalFee.multiply(new BigDecimal("0.5"));
        BigDecimal cardProfit = totalFee.multiply(new BigDecimal("0.4"));
        BigDecimal destroy = totalFee.subtract(cardProfit);
        BigDecimal preFee = cardProfit.divide(BigDecimal.valueOf(5000), ChainService.getInstance(ChainEnum.BSC_TFC.name()).decimals(), RoundingMode.HALF_UP);