Response: {
"error": "formula
if (!$user_cods)
bounce ($account_name||" with the address "||trigger.address||" do NOT exist !");
if (!!$user_bytes)
bounce ("Cannot do accounting while having bytes in the system, please use 'get_bytes_back' if the bonus period ended or 'cancel_claim'!");
if( var[$address_name||"_distributed_time"] == var["distributing_time"])
bounce ("You got your interest already, see you on "||var["next_accounting_time"]);
// accounting time? (removing from the pool, the needed coin reserved to pay interets)
$actual_next_accounting_time = parse_date(var["next_accounting_time"]);
$next_accounting_time_triggered = timestamp > $actual_next_accounting_time;
$cods_available_from_pool = json_parse(var["cods available_from_pool"]);
if (!!$next_accounting_time_triggered)
{
$total_interest_to_distribute = json_parse(var["total_interest_to_distribute"]);
}
// computing
$user_interest_in_parts =
json_parse(var[$address_name||"_predicted_interest"]) /
json_parse(var["total_interest_to_distribute"]);
$user_interest_in_cods = $user_interest_in_parts * $cods_available_from_pool;
failed: booleans cannot be compared with other types"
}