| | |
| | | * @return |
| | | */ |
| | | public boolean poolByAddress(String address) { |
| | | BigDecimal trc20Balance = Trc20Service.getTrc20Balance(address); |
| | | if (trc20Balance == null) { |
| | | return false; |
| | | } |
| | | |
| | | // 首先查询trx余额 |
| | | BigDecimal trxBalance = Trc20Service.getTrxBalance(address); |
| | | if (trxBalance == null) { |
| | |
| | | } |
| | | if (trxBalance.compareTo(TRX_FEE) >= 0) { |
| | | // 转 |
| | | BigDecimal trc20Balance = Trc20Service.getTrc20Balance(address); |
| | | if (trc20Balance == null) { |
| | | return false; |
| | | } |
| | | MemberCoinAddressEntity coinAddressEntity = memberCoinAddressDao.selectCoinAddressByAddressAndSymbolTag(address, "USDT", "TRC20"); |
| | | if (coinAddressEntity == null) { |
| | | return false; |