WS6RIZSDIVKEFI6SVQGW4CNS2LLBMBZH
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$OWNER_ADDRESS = var["OWNER"] OTHERWISE "
HMFR76BEZXV5T7X4QVWXFKADT73DKS2G";
$OSWAP_POOL_ADDRESS = "";
if (trigger.address != $OWNER_ADDRESS AND trigger.output[[asset=base]] < var["original_balance"])
bounce("Not profitable");
}",
"messages": [
{
"if": "{trigger.address == $OWNER_ADDRESS}",
"app": "data",
"payload": {
"delta_xn": 989999941
}
},
{
"if": "{trigger.address == $OWNER_ADDRESS}",
"app": "payment",
"payload": {
"outputs": [
{
"address": "{$OSWAP_POOL_ADDRESS}",
"amount": "{trigger.output[[asset=base]] - 1000}"
}
]
}
},
{
"if": "{trigger.address != $OWNER_ADDRESS}",
"app": "payment",
"payload": {
"outputs": [
{
"address": "{$OWNER_ADDRESS}"
}
]
}
},
{
"app": "state",
"state": "{
var["balance"] = trigger.address == $OWNER_ADDRESS ? trigger.output[[asset=base]] : 0;
}"
}
]
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount