Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
lsFJT31igX6ybhS3q2dltdRhsOcTGIs4awVtKHlW31w=
Received
05.05.2020 14:28:33
Confirmation delay (full node)
28 minutes 31 seconds
Confirmation delay (light node)
36 minutes 45 seconds
Authors
TTERXIO5HNT7T6XQQLCVI4MCP2ZVXLHE
Children
+vzU3IB5yfb2Evt1GpKpj5G6yiJvC9mhDm49kSAssjo=
Parents
jSrELh9syloj2q0IlubyhlkGfI4VVelQPb805xlc+h0=
Messages
Definition
Address:
KRG3SGUUWIKCWEEGUMUPABV7UEQXXKAK
Definition:
[ "autonomous agent", { "doc_url": "https://testnet.oswap.io/factory.json", "init": "{ $base = 'JEV77YSUAHTZO6WRQY5254QJDN6UZOH6'; $address = trigger.data.address; $asset0 = trigger.data.asset0; $asset1 = trigger.data.asset1; $swapFee = trigger.data.swap_fee; $swapFeeMin = 1e5; $swapFeeMax = 1e10; }", "messages": { "cases": [ { "if": "{trigger.data.create AND $asset0 AND $asset1 AND $swapFee AND trigger.output[[asset=base]] == 1e4}", "init": "{ if (!is_integer($swapFee) OR $swapFee > $swapFeeMax OR $swapFee < $swapFeeMin) bounce('swap fee must between ' || $swapFeeMin || ' and ' || $swapFeeMax); if ($asset0 == $asset1) bounce('identical asset'); if (number_from_seed($asset1) >= number_from_seed($asset0)) bounce('wrong asset order'); if (var['all_pools.' || $asset0 || '_' || $asset1]) bounce('pool exists'); if ( !asset[$asset0].exists OR asset[$asset0].is_private OR !asset[$asset0].is_transferrable OR asset[$asset0].fixed_denominations OR !asset[$asset1].exists OR asset[$asset1].is_private OR !asset[$asset1].is_transferrable OR asset[$asset1].fixed_denominations ) bounce('invalid asset'); }", "messages": [ { "app": "definition", "payload": { "definition": [ "autonomous agent", { "base_aa": "{$base}", "params": { "factory": "{this_address}", "asset0": "{$asset0}", "asset1": "{$asset1}", "swap_fee": "{$swapFee}" } } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$address}", "amount": "{5e3}" } ] } }, { "app": "data", "payload": { "initialize": "1" } }, { "app": "state", "state": "{ if ($address != unit[response_unit].messages[[.app='definition']].payload.address) bounce('wrong address'); var['all_pools.' || $asset0 || '_' || $asset1] = $address; var['all_pools.' || $asset1 || '_' || $asset0] = $address; var['get_pool.' || $address] = $asset0 || '_' || $asset1; var['pool_count'] += 1; response['type'] = 'create'; }" } ] }, { "if": "{trigger.data.finalize AND var['get_pool.' || trigger.address]}", "messages": [ { "app": "state", "state": "{ var['get_asset.' || trigger.address] = trigger.unit; response['type'] = 'finalize'; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,424
bytes
(353 headers, 2071 payload)
Level:
1325439
Witnessed level:
1325431
Last ball unit:
FPt3Oct8GvK4IN40aEm0h9sva66GpdlQFLYk05ZXKio=
Main chain index:
1320047
Latest included mc index:
1320046
Status:
stable/confirmed/final