From 6cceada65c6dce4417b8644206292c1fb1995177 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 14 Mar 2018 22:33:06 +0700 Subject: [PATCH] Use exact amount instead of satoshis for eth_withdraw. --- iguana/exchanges/LP_transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);