Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BNZ $payout_time :loop
- SET @min_amount #0000002e90edd000
- FUN @payout_time get_Creation_Timestamp
- SET @timestamp $payout_time
- init:
- SET @payout_balance #0000000000000000
- SET @tx_info #0000000000002760
- FUN @payout_time add_Minutes_to_Timestamp $payout_time $tx_info
- loop:
- FUN A_to_Tx_after_Timestamp $timestamp
- FUN @tx_info check_A_Is_Zero
- BNZ $tx_info :process_tx
- FIN
- process_tx:
- FUN @tx_time get_Timestamp_for_Tx_in_A
- BLT $tx_time $payout_time :get_info_amount
- JMP :payout
- get_info_amount:
- FUN @tx_amount get_Amount_for_Tx_in_A
- FUN B_to_Address_of_Tx_in_A
- FUN @tx_info get_B1
- FUN B_to_Address_of_Creator
- FUN @creator get_B1
- BEQ $creator $tx_info :bootstrap
- FUN @tx_info get_Type_for_Tx_in_A
- BNZ $tx_info :skip
- BEQ $tx_amount $min_amount :get_ticket
- JMP :refund
- get_ticket:
- FUN @tx_info get_Ticket_Id_for_Tx_in_A
- FIZ $tx_info
- FUN B_to_Address_of_Tx_in_A
- FUN set_A1 $tx_info
- FUN send_A_to_Address_in_B
- ADD @payout_balance $min_amount
- BLE $tx_info $best_ticket :skip
- SET @best_ticket $tx_info
- FUN @best_account get_B1
- skip:
- SET @timestamp $tx_time
- JMP :loop
- bootstrap:
- ADD @payout_balance $tx_amount
- JMP :skip
- payout:
- BZR $payout_balance :empty
- BZR $best_ticket :empty
- FUN set_B1 $best_account
- FUN @block_timestamp get_Block_Timestamp
- BEQ $block_timestamp $payout_time :pay_all_at_amount
- FUN send_to_Address_in_B $payout_balance
- JMP :finish_payout
- pay_all_at_amount:
- FUN send_All_to_Address_in_B
- JMP :finish_payout
- empty:
- SET @timestamp $tx_time
- JMP :init
- refund:
- FUN B_to_Address_of_Tx_in_A
- BLE $tx_amount $min_amount :refund_less
- SUB @tx_amount $min_amount
- FUN send_to_Address_in_B $tx_amount
- JMP :get_ticket
- refund_less:
- FUN send_to_Address_in_B $tx_amount
- JMP :skip
- finish_payout:
- SET @timestamp $payout_time
- SET @best_ticket #0000000000000000
- SET @best_account #0000000000000000
- JMP :init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement