Advertisement
Nik_Perepelov

YoungPro

Aug 6th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. #
  2. # Panoramix v4 Oct 2019
  3. # Decompiled source of goerli:0xD6230C9e2797069fF44B991F75B1d0eeb22cE434
  4. #
  5. # Let's make the world open source
  6. #
  7.  
  8. def storage:
  9. owner is addr at storage 0
  10. customerAddress is addr at storage 1
  11. unknown925c6fadAddress is addr at storage 2
  12. cost is uint256 at storage 3
  13. isRunning is uint8 at storage 4
  14. stor4 is uint8 at storage 4 offset 8
  15. stor4 is uint256 at storage 4 offset 8
  16.  
  17. def isRunning(): # not payable
  18. return bool(isRunning)
  19.  
  20. def getCustomer(): # not payable
  21. return customerAddress
  22.  
  23. def getOwner(): # not payable
  24. return owner
  25.  
  26. def unknown925c6fad(): # not payable
  27. return unknown925c6fadAddress
  28.  
  29. def getCost(): # not payable
  30. return cost
  31.  
  32. #
  33. # Regular functions
  34. #
  35.  
  36. def _fallback() payable: # default function
  37. revert
  38.  
  39. def unknown513797e1() payable:
  40. require caller == customerAddress
  41. require not isRunning
  42. require bool(uint8(stor4.field_8)) == 1
  43. isRunning = 1
  44.  
  45. def setExecutor(address _exec): # not payable
  46. require calldata.size - 4 >= 32
  47. require owner == caller
  48. require not isRunning
  49. require bool(uint8(stor4.field_8)) == 1
  50. unknown925c6fadAddress = _exec
  51.  
  52. def unknown6a816548() payable:
  53. require owner == caller
  54. require bool(isRunning) == 1
  55. call customerAddress with:
  56. value cost wei
  57. gas 2300 * is_zero(value) wei
  58. if not ext_call.success:
  59. revert with ext_call.return_data[0 len return_data.size]
  60.  
  61. def unknowndba29122() payable:
  62. require owner == caller
  63. require bool(isRunning) == 1
  64. call unknown925c6fadAddress with:
  65. value cost wei
  66. gas 2300 * is_zero(value) wei
  67. if not ext_call.success:
  68. revert with ext_call.return_data[0 len return_data.size]
  69.  
  70. def unknowna00f198a() payable:
  71. require customerAddress == caller
  72. require not uint8(stor4.field_8)
  73. call owner with:
  74. value cost wei
  75. gas 2300 * is_zero(value) wei
  76. if not ext_call.success:
  77. revert with ext_call.return_data[0 len return_data.size]
  78. Mask(248, 0, stor4.field_8) = 1
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement