55BXIT2YPESHM5DDOWBYMOV7LNKDER22
[
"autonomous agent",
{
"init": "{
$willGoDown = trigger.data.willGoDown OTHERWISE 1;
if (!trigger.data.payAmount) bounce('payAmount parameter missing');
if (!is_valid_amount(trigger.data.payAmount)) bounce('payAmount is not valid amount');
if (!trigger.data.insuranceAmount) bounce('insuranceAmount parameter missing');
if (!is_valid_amount(trigger.data.insuranceAmount)) bounce('insuranceAmount is not valid amount');
if (!trigger.data.serviceProvider) bounce('serviceProvider parameter missing');
}",
"messages": {
"cases": [
{
"if": "{$willGoDown AND in_data_feed[[oracles='7DD44JLIHD3CIJ246VVXD6H364IACT3N', feed_name=trigger.data.serviceProvider, feed_value='issues']]}",
"messages": [
{
"app": "state",
"state": "{
response['serviceProvider'] = trigger.data.serviceProvider;
response['insuranceAmount'] = trigger.data.insuranceAmount;
response['payAmount'] = trigger.data.payAmount;
response['willGoDown'] = $willGoDown;
response['message'] = 'Offer taken.';
}"
}
]
},
{
"if": "{!$willGoDown AND !in_data_feed[[oracles='7DD44JLIHD3CIJ246VVXD6H364IACT3N', feed_name=trigger.data.serviceProvider, feed_value='issues']]}",
"messages": [
{
"app": "state",
"state": "{
response['serviceProvider'] = trigger.data.serviceProvider;
response['insuranceAmount'] = trigger.data.insuranceAmount;
response['payAmount'] = trigger.data.payAmount;
response['willGoDown'] = $willGoDown;
response['message'] = 'Offer made.';
}"
}
]
},
{
"if": "{!$willGoDown AND in_data_feed[[oracles='7DD44JLIHD3CIJ246VVXD6H364IACT3N', feed_name=trigger.data.serviceProvider, feed_value='issues']]}",
"messages": [
{
"app": "state",
"state": "{
response['serviceProvider'] = trigger.data.serviceProvider;
response['insuranceAmount'] = trigger.data.insuranceAmount;
response['payAmount'] = trigger.data.payAmount;
response['willGoDown'] = $willGoDown;
response['message'] = 'Offer taken.';
}"
}
]
},
{
"if": "{!$willGoDown AND !in_data_feed[[oracles='7DD44JLIHD3CIJ246VVXD6H364IACT3N', feed_name=trigger.data.serviceProvider, feed_value='issues']]}",
"messages": [
{
"app": "state",
"state": "{
response['serviceProvider'] = trigger.data.serviceProvider;
response['insuranceAmount'] = trigger.data.insuranceAmount;
response['payAmount'] = trigger.data.payAmount;
response['willGoDown'] = $willGoDown;
response['message'] = 'Offer made.';
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount