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
$OWNER = "O7NYCFUL5XIJTYE3O4MKGMGMTN6ATQAJ"; // to adjust parameters
if (trigger.data.help) // trigger coming from an aa
{
$good_guys_count = var["good_guys_count"] otherwise 0;
$good_guy = var["good_guys_"||number_from_seed(timestamp,0,$good_guys_count)];
$helper = trigger.data.helper otherwise ($good_guy!=0)? $good_guy : bounce ("No 'helper' defined");
$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: max must be greater than min"
}