Advertisement
Guest User

CrowdfundAT

a guest
Feb 8th, 2015
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FUN @block_height get_Block_Timestamp
  2. SLP $decision
  3. FUN @amount get_Current_Balance
  4. BGE $amount $target_amount :funded
  5. FUN @timestamp get_Creation_Timestamp
  6. refund_loop:
  7. FUN A_to_Tx_after_Timestamp $timestamp
  8. FUN @tx_info check_A_Is_Zero
  9. BZR $tx_info :end_loop
  10. FUN @tx_amount get_Amount_for_Tx_in_A
  11. FUN @timestamp get_Timestamp_for_Tx_in_A
  12. FUN B_to_Address_of_Tx_in_A
  13. SET @funded #0000000000000002
  14. FUN send_to_Address_in_B $tx_amount
  15. JMP :refund_loop
  16. funded:
  17. SET @funded #0000000000000001
  18. FUN B_to_Address_of_Creator
  19. FUN send_All_to_Address_in_B
  20. FUN @timestamp get_Last_Block_Timestamp
  21. end_loop:
  22. FUN A_to_Tx_after_Timestamp $timestamp
  23. FUN @tx_info check_A_Is_Zero
  24. BZR $tx_info :end_loop
  25. FUN @timestamp get_Timestamp_for_Tx_in_A
  26. FUN B_to_Address_of_Creator
  27. FUN send_All_to_Address_in_B
  28. JMP :end_loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement