| | |
| | | if (trxBalance == null) { |
| | | return false; |
| | | } |
| | | if (trxBalance.compareTo(new BigDecimal(1)) >= 0) { |
| | | if (trxBalance.compareTo(new BigDecimal(10)) >= 0) { |
| | | // 转 |
| | | BigDecimal trc20Balance = Trc20Service.getTrc20Balance(address); |
| | | if (trc20Balance == null) { |
| | |
| | | } |
| | | return true; |
| | | } else { |
| | | Trc20Service.sendTrx(Trc20Service.TRX_PRIVATE_KEY, address, new BigDecimal(1)); |
| | | Trc20Service.sendTrx(Trc20Service.TRX_PRIVATE_KEY, address, new BigDecimal(10)); |
| | | // 将这个地址记录,后续同步 |
| | | Object trc20_pool = redisUtils.get("TRC20_POOL"); |
| | | List<String> poolList = new ArrayList<>(); |
| | |
| | | if("TRC20".equals(tag)){ |
| | | TrxUsdtUpdateService.addressList.add(address); |
| | | // 此时还需要给这个地址转账用于激活及后续手续费 |
| | | Trc20Service.sendTrx(Trc20Service.TRX_PRIVATE_KEY,address,new BigDecimal(1)); |
| | | Trc20Service.sendTrx(Trc20Service.TRX_PRIVATE_KEY,address,new BigDecimal(10)); |
| | | } |
| | | |
| | | } |