52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
[
"autonomous agent",
{
"messages": {
"cases": [
{
"if": "{
$key = 'balance_'||trigger.address||'_'||trigger.data.asset;
$base_key = 'balance_'||trigger.address||'_'||'base';
$fee = 1000;
$required_amount = trigger.data.amount + ((trigger.data.asset == 'base') ? $fee : 0);
trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND $required_amount <= var[$key] AND $fee <= var[$base_key]
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{trigger.data.asset}",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.data.amount}"
}
]
}
},
{
"app": "state",
"state": "{
var[$key] = var[$key] - trigger.data.amount;
var[$base_key] = var[$base_key] - $fee;
}"
}
]
},
{
"if": "{!trigger.data.withdraw}",
"messages": [
{
"app": "state",
"state": "{
$asset = trigger.output[[asset!=base]].asset;
if ($asset == 'ambiguous')
bounce('ambiguous asset');
if (trigger.output[[asset=base]] > 10000){
$base_key = 'balance_'||trigger.address||'_'||'base';
var[$base_key] = var[$base_key] + trigger.output[[asset=base]];
$response_base = trigger.output[[asset=base]] || ' bytes\
';
}
if ($asset != 'none'){
$asset_key = 'balance_'||trigger.address||'_'||$asset;
var[$asset_key] = var[$asset_key] + trigger.output[[asset=$asset]];
$response_asset = trigger.output[[asset=$asset]] || ' of ' || $asset || '\
';
}
response['message'] = 'accepted coins:\
' || ($response_base otherwise '') || ($response_asset otherwise '');
}"
}
]
}
]
}
}
]
- MCI: 1235378
- Bounced
- Response: {
"error": "formula {
$key = 'balance_'||trigger.address||'_'||trigger.data.asset;
$base_key = 'balance_'||trigger.address||'_'||'base';
$fee = 1000;
$required_amount = trigger.data.amount + ((trigger.data.asset == 'base') ? $fee : 0);
trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND $required_amount <= var[$key] AND $fee <= var[$base_key]
} failed: booleans cannot be compared with other types"
}
- MCI: 1182341
- Not bounced
- Response: {
"responseVars": {
"message": "accepted coins:\
7 of U135uzLs2PDLUkZKBiJDuNS9I/1eR9WbbCHwMzrml/Y=\
"
},
"info": "no messages after filtering"
}
- MCI: 1053928
- Not bounced
- Response unit:
- Response: {}
- MCI: 1053866
- Not bounced
- Response: {
"responseVars": {
"message": "accepted coins:\
70000 bytes\
"
},
"error": "no messages after filtering"
}
- MCI: 991573
- Bounced
- Response unit:
- Response: {
"error": "formula {
$key = 'balance_'||trigger.address||'_'||trigger.data.asset;
$base_key = 'balance_'||trigger.address||'_'||'base';
$fee = 1000;
$required_amount = trigger.data.amount + ((trigger.data.asset == 'base') ? $fee : 0);
trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND $required_amount <= var[$key] AND $fee <= var[$base_key]
} failed: booleans cannot be compared with other types"
}
- MCI: 976650
- Not bounced
- Response: {
"responseVars": {
"message": "accepted coins:\
1000000 bytes\
"
},
"error": "no messages after filtering"
}
- MCI: 976569
- Bounced
- Response unit:
- Response: {
"error": "formula {
$key = 'balance_'||trigger.address||'_'||trigger.data.asset;
$base_key = 'balance_'||trigger.address||'_'||'base';
$fee = 1000;
$required_amount = trigger.data.amount + ((trigger.data.asset == 'base') ? $fee : 0);
trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND $required_amount <= var[$key] AND $fee <= var[$base_key]
} failed: booleans cannot be compared with other types"
}
- MCI: 970186
- Bounced
- Response unit:
- Response: {
"error": "formula {
$key = 'balance_'||trigger.address||'_'||trigger.data.asset;
$base_key = 'balance_'||trigger.address||'_'||'base';
$fee = 1000;
$required_amount = trigger.data.amount + ((trigger.data.asset == 'base') ? $fee : 0);
trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND $required_amount <= var[$key] AND $fee <= var[$base_key]
} failed: booleans cannot be compared with other types"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
14.02.2020 10:43:26
in
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
12.01.2020 01:08:26
in
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
12.01.2020 01:08:26
in
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
11.09.2019 09:32:47
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
out
11.09.2019 09:32:47
in
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI
11.09.2019 09:10:46
in
52UFZD3MAJTI4K3JAGDLHWIGVRRFDSCI