Response: {
"error": "formula
$buy_last_ticket = trigger.output[[asset=$asset]] >= $TICKET_PRICE;
if ($buy_last_ticket)
$reimbursement = trigger.output[[asset=$asset]] - $TICKET_PRICE;
else
$reimbursement = trigger.output[[asset=$asset]] - 1000;
// delay before we draw with seed based only on time variable data
$draw_time = timestamp + $DRAWING_TIME_DELAY;
// pick a helper from the players, but someone else or a bot will be able to trigger for the reward
$old_nop = var[$key||"_number_of_players"] otherwise 0;
$nop = $old_nop+1;
if ($nop>1) // si un seul jouer pas tirage au sort
$helper = var[$key||"_player_"||number_from_seed(var[$key||"_seed"], 1, $nop )];
else
$helper = var[$key||"_player_1"];
// calcul reward
$temp = round (var[$key||"_balance"] * $PERCENTAGE_FOR_HELPER / 100);
$reward = ($temp > 10000) ? $temp : 10000;
if (!!trigger.data.debug)
{
bounce ($helper);
}
failed: [object Object]"
}