formula
if (!!$user_bytes or !!$user_cods)
bounce ($account_name||" for the address "||trigger.address||" already exist, use another address or another 'account_name' !");
// Amount received to be blocked to receive free coins
$received_bytes = trigger.output[[asset=base]].amount;
// free coin computation
$remaining_time = var["block_until"] - timestamp;
if ($remaining_time<0)
bounce ("Sorry, The free CODs offering is finished !");
$elapsed_time = $GIVEAWAY_PERIOD - $remaining_time;
$elapsed_days = round($elapsed_time/$DAY);
$remaining_days = round($remaining_time/$DAY);
$bonus = $MAX_BONUS_P100 - ($elapsed_days * $DAILY_BONUS_REDUCTION_P100);
$unfair_free_cods = $received_bytes * ($bonus / 100);
// robin hood effect, steal the riches and give to the ... interest pot.
$free_cods = round($unfair_free_cods * (1 - (0.04 * ln($received_bytes) - 0.31)));
$new_interest = $free_cods * (0.7 * ln($user_predicted_lock_time) + 1.5); // longer stake => bigger return
failed: not a decimal in *: -Infinity