ETH Price: $3,415.16 (-1.19%)
Gas: 9 Gwei

Contract

0x6Bd0D8c8aD8D3F1f97810d5Cc57E9296db73DC45
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Withdraw190315682024-01-18 5:09:11166 days ago1705554551IN
PieDAO: Time Lock Proxy
0 ETH0.0038873621.75687101
Withdraw190130012024-01-15 14:53:23169 days ago1705330403IN
PieDAO: Time Lock Proxy
0 ETH0.0058094832.51461797
Withdraw190128512024-01-15 14:23:11169 days ago1705328591IN
PieDAO: Time Lock Proxy
0 ETH0.0052548329.40835907
Withdraw190128492024-01-15 14:22:47169 days ago1705328567IN
PieDAO: Time Lock Proxy
0 ETH0.0054544929.72719919
Withdraw190128452024-01-15 14:21:59169 days ago1705328519IN
PieDAO: Time Lock Proxy
0 ETH0.0053261729.02783768
Withdraw190128432024-01-15 14:21:35169 days ago1705328495IN
PieDAO: Time Lock Proxy
0 ETH0.0055085530.02182667
Withdraw190128312024-01-15 14:19:11169 days ago1705328351IN
PieDAO: Time Lock Proxy
0 ETH0.0051565128.10321612
Withdraw190128282024-01-15 14:18:35169 days ago1705328315IN
PieDAO: Time Lock Proxy
0 ETH0.0052623528.68004801
Withdraw189997992024-01-13 18:36:47171 days ago1705171007IN
PieDAO: Time Lock Proxy
0 ETH0.0009335725.65610935
Withdraw189997972024-01-13 18:36:23171 days ago1705170983IN
PieDAO: Time Lock Proxy
0 ETH0.0045769724.94631527
Withdraw189674512024-01-09 5:53:11175 days ago1704779591IN
PieDAO: Time Lock Proxy
0 ETH0.0005413414.87699864
Withdraw189674502024-01-09 5:52:59175 days ago1704779579IN
PieDAO: Time Lock Proxy
0 ETH0.0026587214.88037299
Withdraw188939952023-12-29 21:47:23185 days ago1703886443IN
PieDAO: Time Lock Proxy
0 ETH0.0034387219.24462148
Withdraw188939612023-12-29 21:40:35185 days ago1703886035IN
PieDAO: Time Lock Proxy
0 ETH0.0033044518.00938225
Withdraw188934012023-12-29 19:47:35186 days ago1703879255IN
PieDAO: Time Lock Proxy
0 ETH0.0033179918.08320427
Withdraw188933572023-12-29 19:38:47186 days ago1703878727IN
PieDAO: Time Lock Proxy
0 ETH0.0037602420.49348879
Withdraw188933492023-12-29 19:37:11186 days ago1703878631IN
PieDAO: Time Lock Proxy
0 ETH0.0034797618.96485582
Withdraw188933372023-12-29 19:34:47186 days ago1703878487IN
PieDAO: Time Lock Proxy
0 ETH0.0007048919.37168973
Withdraw188933352023-12-29 19:34:23186 days ago1703878463IN
PieDAO: Time Lock Proxy
0 ETH0.0036188219.72400185
Withdraw188916862023-12-29 13:58:23186 days ago1703858303IN
PieDAO: Time Lock Proxy
0 ETH0.0038771721.69982768
Withdraw188916662023-12-29 13:54:23186 days ago1703858063IN
PieDAO: Time Lock Proxy
0 ETH0.0040176221.89621905
Withdraw188653362023-12-25 21:12:47189 days ago1703538767IN
PieDAO: Time Lock Proxy
0 ETH0.0022309612.48628858
Withdraw188653272023-12-25 21:10:59189 days ago1703538659IN
PieDAO: Time Lock Proxy
0 ETH0.0005209514.31186997
Withdraw188653252023-12-25 21:10:35189 days ago1703538635IN
PieDAO: Time Lock Proxy
0 ETH0.0027827215.16594697
Withdraw187313842023-12-07 2:17:11208 days ago1701915431IN
PieDAO: Time Lock Proxy
0 ETH0.0063928635.77731059
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PProxy

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 2 : PProxy.sol
pragma solidity ^0.7.1;

import "./PProxyStorage.sol";

contract PProxy is PProxyStorage {

    bytes32 constant IMPLEMENTATION_SLOT = keccak256(abi.encodePacked("IMPLEMENTATION_SLOT"));
    bytes32 constant OWNER_SLOT = keccak256(abi.encodePacked("OWNER_SLOT"));

    modifier onlyProxyOwner() {
        require(msg.sender == readAddress(OWNER_SLOT), "PProxy.onlyProxyOwner: msg sender not owner");
        _;
    }

    constructor () public {
        setAddress(OWNER_SLOT, msg.sender);
    }

    function getProxyOwner() public view returns (address) {
       return readAddress(OWNER_SLOT);
    }

    function setProxyOwner(address _newOwner) onlyProxyOwner public {
        setAddress(OWNER_SLOT, _newOwner);
    }

    function getImplementation() public view returns (address) {
        return readAddress(IMPLEMENTATION_SLOT);
    }

    function setImplementation(address _newImplementation) onlyProxyOwner public {
        setAddress(IMPLEMENTATION_SLOT, _newImplementation);
    }


    fallback () external payable {
       return internalFallback();
    }

    function internalFallback() internal virtual {
        address contractAddr = readAddress(IMPLEMENTATION_SLOT);
        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())
            let result := delegatecall(gas(), contractAddr, ptr, calldatasize(), 0, 0)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)

            switch result
            case 0 { revert(ptr, size) }
            default { return(ptr, size) }
        }
    }

}

File 2 of 2 : PProxyStorage.sol
pragma solidity ^0.7.1;

contract PProxyStorage {

    function readBool(bytes32 _key) public view returns(bool) {
        return storageRead(_key) == bytes32(uint256(1));
    }

    function setBool(bytes32 _key, bool _value) internal {
        if(_value) {
            storageSet(_key, bytes32(uint256(1)));
        } else {
            storageSet(_key, bytes32(uint256(0)));
        }
    }

    function readAddress(bytes32 _key) public view returns(address) {
        return bytes32ToAddress(storageRead(_key));
    }

    function setAddress(bytes32 _key, address _value) internal {
        storageSet(_key, addressToBytes32(_value));
    }

    function storageRead(bytes32 _key) public view returns(bytes32) {
        bytes32 value;
        //solium-disable-next-line security/no-inline-assembly
        assembly {
            value := sload(_key)
        }
        return value;
    }

    function storageSet(bytes32 _key, bytes32 _value) internal {
        // targetAddress = _address;  // No!
        bytes32 implAddressStorageKey = _key;
        //solium-disable-next-line security/no-inline-assembly
        assembly {
            sstore(implAddressStorageKey, _value)
        }
    }

    function bytes32ToAddress(bytes32 _value) public pure returns(address) {
        return address(uint160(uint256(_value)));
    }

    function addressToBytes32(address _value) public pure returns(bytes32) {
        return bytes32(uint256(_value));
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"addressToBytes32","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"bytes32ToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProxyOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"readAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"readBool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newImplementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setProxyOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"storageRead","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061005460405160200180806913d5d3915497d4d313d560b21b815250600a019050604051602081830303815290604052805190602001203361005960201b60201c565b61007f565b61006b826100668361006f565b61007b565b5050565b6001600160a01b031690565b9055565b61056f8061008e6000396000f3fe6080604052600436106100965760003560e01c80639d84ae6911610069578063bb15ac8e1161004e578063bb15ac8e146101a9578063caaee91c146101e7578063d784d4261461021a57610096565b80639d84ae691461016a578063aaf10f421461019457610096565b80631ab7710d146100a057806337a440e6146100d15780635ced058e1461010d57806382c947b714610137575b61009e61024d565b005b3480156100ac57600080fd5b506100b56102bb565b604080516001600160a01b039092168252519081900360200190f35b3480156100dd57600080fd5b506100fb600480360360208110156100f457600080fd5b50356102fe565b60408051918252519081900360200190f35b34801561011957600080fd5b506100b56004803603602081101561013057600080fd5b5035610302565b34801561014357600080fd5b506100fb6004803603602081101561015a57600080fd5b50356001600160a01b0316610305565b34801561017657600080fd5b506100b56004803603602081101561018d57600080fd5b5035610311565b3480156101a057600080fd5b506100b561032a565b3480156101b557600080fd5b506101d3600480360360208110156101cc57600080fd5b5035610371565b604080519115158252519081900360200190f35b3480156101f357600080fd5b5061009e6004803603602081101561020a57600080fd5b50356001600160a01b0316610385565b34801561022657600080fd5b5061009e6004803603602081101561023d57600080fd5b50356001600160a01b0316610450565b600061029460405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120610311565b905060405136600082376000803683855af43d806000843e8180156102b7578184f35b8184fd5b60006102f960405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b905090565b5490565b90565b6001600160a01b031690565b600061032461031f836102fe565b610302565b92915050565b60006102f960405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120610311565b6000600161037e836102fe565b1492915050565b6103c160405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b6001600160a01b0316336001600160a01b0316146104105760405162461bcd60e51b815260040180806020018281038252602b815260200180610538602b913960400191505060405180910390fd5b61044d60405160200180806913d5d3915497d4d313d560b21b815250600a019050604051602081830303815290604052805190602001208261051d565b50565b61048c60405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b6001600160a01b0316336001600160a01b0316146104db5760405162461bcd60e51b815260040180806020018281038252602b815260200180610538602b913960400191505060405180910390fd5b61044d60405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120825b61052f8261052a83610305565b610533565b5050565b905556fe5050726f78792e6f6e6c7950726f78794f776e65723a206d73672073656e646572206e6f74206f776e6572a164736f6c6343000706000a

Deployed Bytecode

0x6080604052600436106100965760003560e01c80639d84ae6911610069578063bb15ac8e1161004e578063bb15ac8e146101a9578063caaee91c146101e7578063d784d4261461021a57610096565b80639d84ae691461016a578063aaf10f421461019457610096565b80631ab7710d146100a057806337a440e6146100d15780635ced058e1461010d57806382c947b714610137575b61009e61024d565b005b3480156100ac57600080fd5b506100b56102bb565b604080516001600160a01b039092168252519081900360200190f35b3480156100dd57600080fd5b506100fb600480360360208110156100f457600080fd5b50356102fe565b60408051918252519081900360200190f35b34801561011957600080fd5b506100b56004803603602081101561013057600080fd5b5035610302565b34801561014357600080fd5b506100fb6004803603602081101561015a57600080fd5b50356001600160a01b0316610305565b34801561017657600080fd5b506100b56004803603602081101561018d57600080fd5b5035610311565b3480156101a057600080fd5b506100b561032a565b3480156101b557600080fd5b506101d3600480360360208110156101cc57600080fd5b5035610371565b604080519115158252519081900360200190f35b3480156101f357600080fd5b5061009e6004803603602081101561020a57600080fd5b50356001600160a01b0316610385565b34801561022657600080fd5b5061009e6004803603602081101561023d57600080fd5b50356001600160a01b0316610450565b600061029460405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120610311565b905060405136600082376000803683855af43d806000843e8180156102b7578184f35b8184fd5b60006102f960405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b905090565b5490565b90565b6001600160a01b031690565b600061032461031f836102fe565b610302565b92915050565b60006102f960405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120610311565b6000600161037e836102fe565b1492915050565b6103c160405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b6001600160a01b0316336001600160a01b0316146104105760405162461bcd60e51b815260040180806020018281038252602b815260200180610538602b913960400191505060405180910390fd5b61044d60405160200180806913d5d3915497d4d313d560b21b815250600a019050604051602081830303815290604052805190602001208261051d565b50565b61048c60405160200180806913d5d3915497d4d313d560b21b815250600a01905060405160208183030381529060405280519060200120610311565b6001600160a01b0316336001600160a01b0316146104db5760405162461bcd60e51b815260040180806020018281038252602b815260200180610538602b913960400191505060405180910390fd5b61044d60405160200180807212535413115351539510551253d397d4d313d5606a1b815250601301905060405160208183030381529060405280519060200120825b61052f8261052a83610305565b610533565b5050565b905556fe5050726f78792e6f6e6c7950726f78794f776e65723a206d73672073656e646572206e6f74206f776e6572a164736f6c6343000706000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.