5GOY5N5GCF7QZQD4CO4T64XE4PDY24I2
[
"autonomous agent",
{
"init": "{
if(trigger.output[[asset!=base]].asset != 'none'){
$asset = trigger.output[[asset!=base]].asset;
}
$curveAA = 'UH6SNZMZKHWMRM7IQZGFPD5PQULZZSBI';
$igb = '/H3aURJJslUMAADH2Pl0lAramRAxkNslUVus1Zm0x3s=';
$myaddr = 'QF3NOVWHY2ZBVZZ2QHCUW7IPYXKLGIGG';
if(trigger.initial_address != $myaddr)
bounce('');
}",
"messages": {
"cases": [
{
"if": "{exists(trigger.data.action) and trigger.data.action == 'withdraw'}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{trigger.data.asset otherwise 'base'}",
"outputs": [
{
"address": "{trigger.address}"
}
]
}
}
]
},
{
"if": "{trigger.address == $myaddr}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$curveAA}",
"amount": "{balance[base]-10000}"
}
]
}
},
{
"app": "data",
"payload": {
"tokens1": 506340426,
"tokens2": 404000000000
}
}
]
},
{
"if": "{trigger.address == $curveAA AND !var['sfass']}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{$igb}",
"outputs": [
{
"address": "{$curveAA}"
}
]
}
},
{
"app": "state",
"state": "{
var['sfass'] = $igb;
}"
}
]
},
{
"if": "{trigger.address == $curveAA}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$myaddr}"
}
]
}
},
{
"app": "state",
"state": "{
response['message'] = 'ou yes';
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount