Response: {
"error": "one of secondary AAs bounced with error: 7TMMJWW2P5T4G2KMSAJHMB4Q4GXI2ERP: QVVN2C5JAE4YXLQONX6XTDFQKPBSXGVP: formula
$_periodsToBuy = trigger.output[[asset=$currency]].amount / $PERIOD_PRICE;
$periodsToBuy = floor($_periodsToBuy, 0);
$maxTopup = $maxTopUpOf(trigger.initial_address);
$cut = round(trigger.output[[asset=$currency]].amount * ($REFERRAL_ADDRESS ? $REFERRAL_FEE : $SERVICE_FEE), 0);
if ($periodsToBuy == 0)
bounce("That's not enough to buy even a single license period");
if ($periodsToBuy > $maxTopup)
bounce("You can buy at most " || $maxTopup || " periods");
failed: bad asset false"
}