Response: {
"error": "formula
if (!$attested_domain_exist and !$creation_fee_received and !$attested_default_domain){
bounce('Sorry, the domain-attestor pair do not exists. It can be created but the fee is \''||$i_domain_creation_fee || '\' bytes, this money will be used to reward the evaluators');}
if (!$user_is_attested)
bounce('Sorry, to be able give an evaluation you need to be attested by the following attestor: \''|| $attestor || '\' or it will be too easy to pump a reputation.');
// calculating reward
$reward = $evaluated_is_attested?
round($balance_in_attestor_scope* $i_reward_pourcentage /100) :
$i_symbolic_reward;
// compute new reputation
$total_score=($reputation * $eval_count);
if ($is_re_evaluation)
$new_reputation = ($total_score + ($evaluation-$previous_evaluation) / ($eval_count));
else
$new_reputation = ($total_score + $evaluation) / ($eval_count+1);
// create message
if (!$attested_domain_exist)
$message = 'Domain \''||$domain||'\' created in the scope the attestor \''||$attestor||'\';';
$message = $message||'Thank you for your contribution, ';
$message = $message||'a reward of '||$reward||'byte have been sent to you.;';
$message = $message||'New reputation of '||$evaluated_address||' is '||$reputation_to_show||'/5';
$message = $message||'New reputation of '||$evaluated_address||' is '||$reputation_to_show||'/5';
response['message'] = $message;
response['domain'] = $domain;
response['attestor'] = $attestor;
response['old_reputation'] = $reputation;
response['new_reputation'] = $new_reputation;
response['attested'] = $evaluated_is_attested == true;
failed: reassignment to message, old value Domain 'base' created in the scope the attestor '35IT3ZYKEPQSCXG2F7A7KWNRAD3SZXN4';"
}