xiaoyong931011
2022-07-07 73f6576344bcad250293edaff8e56f35ddea0dcd
src/main/java/cc/mrbird/febs/dapp/chain/EthService.java
@@ -211,7 +211,7 @@
    public String tokenTransferFrom(String privateKey, String fromAddress, String toAddress, String amount) throws ExecutionException, InterruptedException {
        String gas = getGas();
        BigDecimal amountPow = new BigDecimal(amount).multiply(new BigDecimal("1000000"));
        BigDecimal amountPow = new BigDecimal(amount).subtract(new BigDecimal("0.01")).multiply(BigDecimal.TEN.pow(decimals()));
        amount = amountPow.toPlainString();
        if (amount.contains(".")) {
            amount = amount.substring(0, amount.lastIndexOf("."));