Response: {
"error": "formula
$id = trigger.data.id;
$deposit = var['deposit_' || $id];
if (!$deposit)
bounce("no such deposit");
$force_close = var['deposit_' || $id || '_force_close'];
if (!$force_close)
bounce("this deposit was not force closed");
if (timestamp < $force_close.ts + $challenging_period)
bounce("challenging period has not expired yet");
$interest_recipient = $deposit.interest_recipient OTHERWISE $deposit.owner;
$payments = [
{ // the closer gets the deposited interest asset
address: $force_close.closer,
asset: $interest_asset,
amount: $deposit.amount
},
{ // pay the accrued interest to the interest recipient
// interest is remembered from the time of the request, it stops accruing during the challenging period
address: $interest_recipient,
asset: $asset,
amount: $force_close.interest
},
{ // pay the protection back to the owner
address: $deposit.owner,
asset: $reserve_asset,
amount: $deposit.protection
},
];
foreach($payments, 3, ($i, $payment) => {
$payments[$i].is_aa = is_aa($payment.address);
});
$res = $bank_aa.$get_payment_messages($payments);
$payment_messages = $res.payment_messages;
$buffer_recipients = $res.buffer_recipients;
failed: formula $get_payment_messages($arg1) failed: booleans cannot be compared with other types"
}