QBQCYG232VZ4CAMYYWGWYLPKE3X3IFVD
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"messages": {
"cases": [
{
"if": "{
trigger.data.type AND trigger.data.type == 'make_order'
AND trigger.output[[asset=base]].amount > 10000
AND trigger.data.price
AND trigger.data.oracle
}",
"messages": [
{
"app": "state",
"state": "{
$id = var['last_id'] otherwise 0;
var[$id || '_type'] = 'sell';
var[$id || '_amount'] = trigger.output[[asset=base]].amount;
var[$id || '_price_for_eth'] = trigger.data.price;
var[$id || '_oracle'] = trigger.data.oracle;
var['last_id'] = $id + 1;
response['status'] = 'ok';
}"
}
]
},
{
"if": "{
$thisId = trigger.data.id;
trigger.data.type AND trigger.data.type == 'withdraw'
AND var[$thisId || '_oracle'] == trigger.address
AND trigger.data.to
}",
"messages": [
{
"app": "payment",
"payload": {
"outputs": [
{
"address": "{trigger.data.to}",
"amount": "{var[$thisId || '_amount']}"
}
]
}
},
{
"app": "state",
"state": "{
var[$thisId || '_type'] = '';
var[$thisId || '_amount'] = '';
var[$thisId || '_price_for_eth'] = '';
var[$thisId || '_oracle'] = '';
response['status'] = 'ok';
}"
}
]
}
]
}
}
]
- MCI: 1125006
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"status": "ok"
}
}
- MCI: 1124903
- Not bounced
- Response: {
"responseVars": {
"status": "ok"
},
"error": "no messages after filtering"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
28.10.2019 15:03:24
QBQCYG232VZ4CAMYYWGWYLPKE3X3IFVD
out
28.10.2019 15:03:24
in
QBQCYG232VZ4CAMYYWGWYLPKE3X3IFVD
28.10.2019 14:29:23
in
QBQCYG232VZ4CAMYYWGWYLPKE3X3IFVD