7FQH3TYCJENJCCB2UPAZGMWILGLBXV6L
[
"autonomous agent",
{
"init": "{
$approvalThresholdPercent = 50;
$senderVest = var['vested_' || trigger.address];
$propsAmountMin = 10000;
}",
"bounce_fees": {
"base": 10000
},
"messages": {
"cases": [
{
"if": "{trigger.data.vest}",
"messages": [
{
"app": "state",
"state": "{
var['vested_' || trigger.address] = $senderVest + trigger.output[[asset=base]];
var['vested_total'] = var['vested_total'] + trigger.output[[asset=base]];
}"
}
]
},
{
"if": "{trigger.data.props_name AND trigger.data.props_amount > $propsAmountMin}",
"messages": [
{
"app": "state",
"state": "{
var['props_' || trigger.unit] = true;
var['props_' || trigger.unit || '_author'] = trigger.address;
var['props_' || trigger.unit || '_amount'] = trigger.data.props_amount;
var['props_' || trigger.unit || '_vested'] = 0;
}"
}
]
},
{
"if": "{
trigger.data.upvote
AND trigger.data.props_id
AND var['props_' || trigger.data.props_id]
AND !var['props_' || trigger.data.props_id || '_vote_' || trigger.address]
}",
"messages": [
{
"app": "state",
"state": "{
var['props_' || trigger.data.props_id || '_vote_' || trigger.address] = true;
var['props_' || trigger.data.props_id || '_vest'] =
var['props_' || trigger.data.props_id || '_vest'] + $senderVest;
}"
}
]
},
{
"if": "{
trigger.data.downvote
AND trigger.data.props_id
AND var['props_' || trigger.data.props_id]
AND !var['props_' || trigger.data.props_id || '_vote_' || trigger.address]
}",
"messages": [
{
"app": "state",
"state": "{
var['props_' || trigger.data.props_id || '_vote_' || trigger.address] = true;
var['props_' || trigger.data.props_id || '_vest'] =
var['props_' || trigger.data.props_id || '_vest'] - $senderVest;
}"
}
]
},
{
"if": "{
trigger.data.claim
AND trigger.data.props_id
AND var['props_' || trigger.data.props_id || '_author'] == trigger.address
AND var['props_' || trigger.data.props_id || '_vest'] >= var['vested_total'] / 100 * $approvalThreshold
AND !var['props_' || trigger.data.props_id || '_paid']
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{var['props_' || trigger.data.props_id || '_amount']}"
}
]
}
},
{
"app": "state",
"state": "{
var['props_' || trigger.data.props_id || '_paid'] = true;
}"
}
]
}
]
}
}
]
- MCI: 977798
- Not bounced
- Response: {
"error": "no messages after filtering"
}
- MCI: 977778
- Not bounced
- Response: {
"error": "no messages after filtering"
}
- MCI: 977767
- Not bounced
- Response: {
"error": "no messages after filtering"
}
- MCI: 977733
- Not bounced
- Response: {
"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
01.08.2019 15:17:54
in
7FQH3TYCJENJCCB2UPAZGMWILGLBXV6L
01.08.2019 15:11:07
in
7FQH3TYCJENJCCB2UPAZGMWILGLBXV6L
01.08.2019 15:08:11
in
7FQH3TYCJENJCCB2UPAZGMWILGLBXV6L
01.08.2019 15:00:02
in
7FQH3TYCJENJCCB2UPAZGMWILGLBXV6L