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
Hdw71hbo8hCBe4dxtdeP+ZqyMxIU8a92A/vFIzUx9Ng=
Received
30.07.2019 18:49:39
Confirmation delay (full node)
9 minutes 44 seconds
Confirmation delay (light node)
12 minutes 28 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
9AgmInEjwhy1/ArPmGMuAt9FVwJkgjK7gLVmqmFSzg0=
Parents
VOSkEg3CWGZ6X3kp0wKPRI6nsOTrE2LOLT/gfe3pNWY=
Messages
Definition
Address:
IQGXC3L2455KHSBGEPWWRKQIZR24LRGF
Definition:
[ "autonomous agent", { "init": "{ $min = 2000; $addr = trigger.address; $inp = trigger.output[[asset=base]]; $time_btw_draw = 3600; }", "messages": { "cases": [ { "if": "{ var['Last draw'] AND var[$addr||var['Last draw']] AND timestamp > (var['Last draw']+$time_btw_draw) }", "messages": [ { "init": "{ $number = var['Number'] +1; if($number > 1){ $percent_for_trigger = 200/$number; $percent_for_winner = 100 - $percent_for_trigger; } else{ $percent_for_trigger = 100; $percent_for_winner = 0; } $num1 = data_feed[[oracles='F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N', feed_name='TOTAL_CAP']]; $num2 = data_feed[[oracles='F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N', feed_name='GBYTE_USD']]; $num3 = $num1 + $num2 + var['Last draw']; $last_lucky = number_from_seed($num3||mc_unit,var['Number']-1); $winner_addr = var[$last_lucky||var['Last draw']]; $winner_amount = (var['Total pot']*$percent_for_winner/100)-$min; $trigger_amount = (var['Total pot']*$percent_for_trigger/100)+$inp-$min; }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "if": "{$winner_amount > 0}", "address": "{$winner_addr}", "amount": "{$winner_amount}" }, { "if": "{$trigger_amount > 0}", "address": "{$addr}", "amount": "{$trigger_amount}" } ] } }, { "app": "state", "state": "{ var['Last draw'] = false; var['Total pot']= 0; var['Number'] = 0; response['message'] = 'you bought one participation, your number: '; }" } ] }, { "if": "{ $inp == 10000 AND (!var['Last draw'] OR timestamp < (var['Last draw']+$time_btw_draw)) }", "messages": [ { "app": "state", "state": "{ if(!var['Last draw']){ var['Number'] = 0; var['Last draw'] = timestamp; } $num = var['Number']; var[$num||var['Last draw']] = $addr; var[$addr||var['Last draw']] = true; var['Number'] += 1; var['Total pot'] += $inp; response['message'] = 'you bought one participation, your number: '|| $num ; }" } ] }, { "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$addr}", "amount": "{$inp-1000}" } ] } } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,390
bytes
(353 headers, 2037 payload)
Level:
976684
Witnessed level:
976677
Last ball unit:
Djfl6SjhVAeGjRT+m1GF3tEIJ8P2GA7gMkBfb7qA87c=
Main chain index:
975504
Latest included mc index:
975503
Status:
stable/confirmed/final