diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 20fae0156..c3cb6e89f 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -1525,7 +1525,7 @@ char *LP_eth_withdraw(struct iguana_info *coin,cJSON *argjson) bits256 privkey; dest_addr = jstr(argjson, "to"); - amount = get_cJSON_int(argjson, "amount"); + amount = jdouble(argjson, "amount") * 100000000; privkey = LP_privkey(coin->symbol, coin->smartaddr, coin->taddr); uint8arrayToHex(privkey_str, privkey.bytes, 32); satoshisToWei(amount_str, amount);