Browse Source

Use exact amount instead of satoshis for eth_withdraw.

patch-3
Artem Pikulin 7 years ago
parent
commit
6cceada65c
  1. 2
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_transaction.c

@ -1525,7 +1525,7 @@ char *LP_eth_withdraw(struct iguana_info *coin,cJSON *argjson)
bits256 privkey; bits256 privkey;
dest_addr = jstr(argjson, "to"); 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); privkey = LP_privkey(coin->symbol, coin->smartaddr, coin->taddr);
uint8arrayToHex(privkey_str, privkey.bytes, 32); uint8arrayToHex(privkey_str, privkey.bytes, 32);
satoshisToWei(amount_str, amount); satoshisToWei(amount_str, amount);

Loading…
Cancel
Save