| | |
| | | BigDecimal multiply = coinPrice.multiply(amount).multiply(new BigDecimal("0.97")).setScale(8,BigDecimal.ROUND_DOWN); |
| | | //更新这个时间段的滑点数量 |
| | | redisUtils.set(DataDicEnum.GFA_HUA_DIAN_WALLET_USDT_AMOUNT.getValue(), multiply, 0); |
| | | |
| | | log.info("滑点奖励:"+amount); |
| | | //生成一条记录 |
| | | DappHdRecord dappHdRecordAdd = new DappHdRecord(); |
| | | dappHdRecordAdd.setPrice(coinPrice); |
| | |
| | | dappHdRecordAdd.setCoinAmount(BigDecimal.ZERO); |
| | | dappHdRecordAdd.setTransactionHash(transactionHash); |
| | | dappHdRecordMapper.insert(dappHdRecordAdd); |
| | | dappSystemService.tradeProfitDistribute(1L); |
| | | chainProducer.sendDitribProfit(1L); |
| | | |
| | | // dappSystemService.tradeProfitDistribute(1L); |
| | | } |
| | | } |