Unit ID
kj2TNhK+Bv6MKIf52J2oboCWL+OJjVHRMYJ4mHzzaiU=
Received
05.03.2024 22:38:17
Confirmation delay (full node)
4 minutes 15 seconds
Messages
Definition
Definition: [ "autonomous agent", { "bounce_fees": { "base": 11000 }, "init": "{ $oracle = "F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N"; $feed_name = "BBD"; $decimals = 8; $rate = data_feed[[oracles=$oracle, feed_name=$feed_name, ifnone=0.49486499]]; }", "messages": { "cases": [ { "if": "{trigger.data.define}", "messages": [ { "app": "asset", "payload": { "cap": "{trigger.data.cap otherwise ''}", "is_private": false, "is_transferrable": true, "auto_destroy": "{!!trigger.data.auto_destroy}", "fixed_denominations": false, "issued_by_definer_only": "{!!trigger.data.issued_by_definer_only}", "cosigned_by_definer": false, "spender_attested": "{!!trigger.data.attestor1}", "attestors": [ "{trigger.data.attestor1 otherwise ''}", "{trigger.data.attestor2 otherwise ''}", "{trigger.data.attestor3 otherwise ''}" ] } }, { "app": "state", "state": "{ var[response_unit] = trigger.address; var['rate'] = $rate; }" } ] }, { "if": "{trigger.output[[asset='CPPYMBzFzI4+eMk7tLMTGjLF4E60t5MUfo2Gq7Y6Cn4=']] >= 0.1 AND trigger.data.issue AND trigger.data.asset AND var[trigger.data.asset] == trigger.address}", "init": "{ $asset_amount = trigger.output[[asset='CPPYMBzFzI4+eMk7tLMTGjLF4E60t5MUfo2Gq7Y6Cn4=']] / $rate; $fees = floor($asset_amount * 0.009999, 6) <= 0.01 ? $asset_amount * 0.009999 : floor($asset_amount * 0.009999, 6) ; response['message'] = 'exchanged '|| trigger.output[[asset='CPPYMBzFzI4+eMk7tLMTGjLF4E60t5MUfo2Gq7Y6Cn4=']].amount || trigger.output[[asset='CPPYMBzFzI4+eMk7tLMTGjLF4E60t5MUfo2Gq7Y6Cn4=']].asset || ' for '|| $asset_amount|| ' asset.'; }", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.address}", "amount": "{round($asset_amount * 0.99, 6)}" }, { "address": "{this_address}", "amount": "{$fees}" } ] } }, { "app": "state", "state": "{ var['rate'] = $rate; }" } ] }, { "if": "{trigger.output[[asset='JHk+yzbuBHfefV7L5xw5tZOJ/9cjrmIKTimk209HMhI=']] >= 0.1 AND trigger.data.issue AND trigger.data.asset AND var[trigger.data.asset] == trigger.address}", "init": "{ $asset_amount = trigger.output[[asset='JHk+yzbuBHfefV7L5xw5tZOJ/9cjrmIKTimk209HMhI=']] / $rate ; $fees = floor($asset_amount * 0.009999, 6) <= 0.01 ? $asset_amount * 0.009999 : floor($asset_amount * 0.009999, 6) ; response['message'] = 'exchanged '|| trigger.output[[asset='JHk+yzbuBHfefV7L5xw5tZOJ/9cjrmIKTimk209HMhI=']].amount || trigger.output[[asset='JHk+yzbuBHfefV7L5xw5tZOJ/9cjrmIKTimk209HMhI=']].asset || ' for '|| $asset_amount|| ' asset.'; }", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.address}", "amount": "{round($asset_amount * 0.99, 6)}" }, { "address": "{this_address}", "amount": "{$fees}" } ] } }, { "app": "state", "state": "{ var['rate'] = $rate; }" } ] }, { "if": "{var[trigger.data.asset] == trigger.address AND trigger.output[[asset=base]] >= 1000000}", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.output[[asset=base]]}" } ] } }, { "app": "payment", "payload": { "asset": "{var[trigger.data.asset]}", "outputs": [ { "address": "{trigger.address}" } ] } } ] } ] } } ]
Technical information
Fees:
3,663 bytes
(452 headers, 3211 payload)
Level:3419609
Witnessed level:3419602
Main chain index:3393062
Latest included mc index:3393061
Status:stable/confirmed/final