Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Panoramix v4 Oct 2019
- # Decompiled source of goerli:0xD6230C9e2797069fF44B991F75B1d0eeb22cE434
- #
- # Let's make the world open source
- #
- def storage:
- owner is addr at storage 0
- customerAddress is addr at storage 1
- unknown925c6fadAddress is addr at storage 2
- cost is uint256 at storage 3
- isRunning is uint8 at storage 4
- stor4 is uint8 at storage 4 offset 8
- stor4 is uint256 at storage 4 offset 8
- def isRunning(): # not payable
- return bool(isRunning)
- def getCustomer(): # not payable
- return customerAddress
- def getOwner(): # not payable
- return owner
- def unknown925c6fad(): # not payable
- return unknown925c6fadAddress
- def getCost(): # not payable
- return cost
- #
- # Regular functions
- #
- def _fallback() payable: # default function
- revert
- def unknown513797e1() payable:
- require caller == customerAddress
- require not isRunning
- require bool(uint8(stor4.field_8)) == 1
- isRunning = 1
- def setExecutor(address _exec): # not payable
- require calldata.size - 4 >= 32
- require owner == caller
- require not isRunning
- require bool(uint8(stor4.field_8)) == 1
- unknown925c6fadAddress = _exec
- def unknown6a816548() payable:
- require owner == caller
- require bool(isRunning) == 1
- call customerAddress with:
- value cost wei
- gas 2300 * is_zero(value) wei
- if not ext_call.success:
- revert with ext_call.return_data[0 len return_data.size]
- def unknowndba29122() payable:
- require owner == caller
- require bool(isRunning) == 1
- call unknown925c6fadAddress with:
- value cost wei
- gas 2300 * is_zero(value) wei
- if not ext_call.success:
- revert with ext_call.return_data[0 len return_data.size]
- def unknowna00f198a() payable:
- require customerAddress == caller
- require not uint8(stor4.field_8)
- call owner with:
- value cost wei
- gas 2300 * is_zero(value) wei
- if not ext_call.success:
- revert with ext_call.return_data[0 len return_data.size]
- Mask(248, 0, stor4.field_8) = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement