|
|
@ -33,10 +33,14 @@ |
|
|
|
|
|
|
|
uint64_t LP_value_extract(cJSON *obj,int32_t addinterest) |
|
|
|
{ |
|
|
|
double val = 0.; uint64_t value = 0; |
|
|
|
if ( (val= jdouble(obj,"amount")) < SMALLVAL ) |
|
|
|
val = jdouble(obj,"value"); |
|
|
|
value = (val + 0.0000000049) * SATOSHIDEN; |
|
|
|
double val = 0.; uint64_t value = 0; int32_t electrumflag; |
|
|
|
electrumflag = (jobj(obj,"tx_hash") != 0); |
|
|
|
if ( electrumflag == 0 ) |
|
|
|
{ |
|
|
|
if ( (val= jdouble(obj,"amount")) < SMALLVAL ) |
|
|
|
val = jdouble(obj,"value"); |
|
|
|
value = (val + 0.0000000049) * SATOSHIDEN; |
|
|
|
} else value = j64bits(obj,"value"); |
|
|
|
if ( value != 0 ) |
|
|
|
{ |
|
|
|
if ( addinterest != 0 && jobj(obj,"interest") != 0 ) |
|
|
|