Unit ID
5BvPYOrCxEOX+YNC3IN25UiMxvsfIq+FbCWe/In9zQI=
Received
06.03.2024 12:46:21
Confirmation delay (full node)
4 minutes 51 seconds
Confirmation delay (light node)
7 minutes 9 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=']] AND trigger.data.issue AND trigger.data.asset}", "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 + 5}" } ] } }, { "app": "state", "state": "{ var['rate'] = $rate; }" } ] }, { "if": "{trigger.output[[asset='JHk+yzbuBHfefV7L5xw5tZOJ/9cjrmIKTimk209HMhI=']] AND trigger.data.issue AND trigger.data.asset}", "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 + 5}" } ] } }, { "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,563 bytes
(452 headers, 3111 payload)
Level:3420307
Witnessed level:3420299
Main chain index:3393760
Latest included mc index:3393759
Status:stable/confirmed/final