| | |
| | | private DappSystemDao dappSystemDao; |
| | | |
| | | |
| | | @Scheduled(cron = "0 0 0 * * ? ") |
| | | @Scheduled(cron = "0 0 0/6 * * ? ") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addDappMineData(){ |
| | | log.info("矿池数据增加"); |
| | |
| | | dappWalletMineDao.updateById(walletMine); |
| | | |
| | | // 计算代理返多少 |
| | | // calAgentMoney(member, ethIncome); |
| | | calAgentMoney(member, ethIncome); |
| | | break; |
| | | } |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | BigDecimal balance = ChainService.getInstance(agent.getChainType()).balanceOf(agent.getAddress()); |
| | | if (balance.compareTo(BigDecimal.valueOf(100L)) < 0) { |
| | | continue; |
| | | } |
| | | // BigDecimal balance = ChainService.getInstance(agent.getChainType()).balanceOf(agent.getAddress()); |
| | | // if (balance.compareTo(BigDecimal.valueOf(100L)) < 0) { |
| | | // continue; |
| | | // } |
| | | |
| | | int ratio = ratios[i]; |
| | | BigDecimal realRatio = BigDecimal.valueOf(ratio).divide(returnRatio, 2, RoundingMode.HALF_DOWN); |