Response: {
"error": "one of secondary AAs bounced with error: formula {
// THAANKS, ask a user to trigger an AA for reward, can be also overtaken by a bot
// to use it please provide: data.data.help = true and optional data.helper and data.seconds
$OWNER = "O7NYCFUL5XIJTYE3O4MKGMGMTN6ATQAJ"; // to adjust parameters
if (trigger.data.help) // trigger coming from an aa
{
$good_guy = var["good_guys_"||number_from_seed(timestamp,1,$number_of_good_guys)];
$helper = trigger.data.helper otherwise $good_guy;
$aa = trigger.address;
$reward = trigger.output[[asset!=base]].amount otherwise trigger.output[[asset=base]].amount otherwise 0;
$reward_asset = trigger.output[[asset!=base]].asset otherwise "base";
$delay = trigger.data.seconds otherwise 0;
}
else
{
$helper = trigger.address;
$aa = trigger.data.aa otherwise var[$helper] otherwise bounce ("Don't know which aa to help!");
$reward = var[$aa||"_reward"];
$reward_asset = var[$aa||"_asset"];
$delay = var[$aa||"_delay"];
}
// test if a bot overtook the user?
} failed: min and max must be numbers"
}