UGB7SSWTBECKCRJZZ3GG66UMFGZLME54
[
"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": 547567411,
"tokens2": 440000000000
}
}
]
},
{
"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