ETH Price: $3,833.75 (+5.44%)

Contract

0x409353a02Ba3CCf60F3c503A6fd842a7A9C20782
 
Transaction Hash
Method
Block
From
To
Claim186797082023-11-29 20:39:35378 days ago1701290375IN
0x409353a0...7A9C20782
0 ETH0.0085041438.66224593
Stake186795942023-11-29 20:16:47378 days ago1701289007IN
0x409353a0...7A9C20782
0 ETH0.0156190549.00203387
Claim186795682023-11-29 20:11:35378 days ago1701288695IN
0x409353a0...7A9C20782
0 ETH0.0093809842.64857498
Claim186770842023-11-29 11:50:47378 days ago1701258647IN
0x409353a0...7A9C20782
0 ETH0.0075555334.34958066
Claim186760952023-11-29 8:31:59378 days ago1701246719IN
0x409353a0...7A9C20782
0 ETH0.0073971733.62964914
Stake186711362023-11-28 15:53:23379 days ago1701186803IN
0x409353a0...7A9C20782
0 ETH0.0155607246.33003517
Claim186710462023-11-28 15:34:59379 days ago1701185699IN
0x409353a0...7A9C20782
0 ETH0.0100457345.67073603
Stake186705602023-11-28 13:56:35379 days ago1701179795IN
0x409353a0...7A9C20782
0 ETH0.0147082346.14276939
Claim186645752023-11-27 17:49:35380 days ago1701107375IN
0x409353a0...7A9C20782
0 ETH0.0082900137.68876074
Stake186596352023-11-27 1:12:47380 days ago1701047567IN
0x409353a0...7A9C20782
0 ETH0.0098275530.82990113
Claim186563192023-11-26 14:03:35381 days ago1701007415IN
0x409353a0...7A9C20782
0 ETH0.0076898234.96009404
Claim186508502023-11-25 19:40:11382 days ago1700941211IN
0x409353a0...7A9C20782
0 ETH0.005570225.32370343
Stake186495402023-11-25 15:15:47382 days ago1700925347IN
0x409353a0...7A9C20782
0 ETH0.0087531827.45950479
Claim186483862023-11-25 11:22:35382 days ago1700911355IN
0x409353a0...7A9C20782
0 ETH0.0058077326.40360687
Stake186481612023-11-25 10:37:35382 days ago1700908655IN
0x409353a0...7A9C20782
0 ETH0.007297722.89353682
Claim186477022023-11-25 9:05:11382 days ago1700903111IN
0x409353a0...7A9C20782
0 ETH0.0060925727.69854099
Claim186473122023-11-25 7:46:35382 days ago1700898395IN
0x409353a0...7A9C20782
0 ETH0.0050079222.76742745
Stake186463662023-11-25 4:35:59382 days ago1700886959IN
0x409353a0...7A9C20782
0 ETH0.0078263123.3018183
Claim186387762023-11-24 3:05:23383 days ago1700795123IN
0x409353a0...7A9C20782
0 ETH0.0068961731.35192765
Stake186304972023-11-22 23:16:11384 days ago1700694971IN
0x409353a0...7A9C20782
0 ETH0.019164863.52966356
Claim186304922023-11-22 23:15:11384 days ago1700694911IN
0x409353a0...7A9C20782
0 ETH0.0127634156.7868829
Claim186287542023-11-22 17:26:11385 days ago1700673971IN
0x409353a0...7A9C20782
0 ETH0.0132693560.32621147
Stake186285662023-11-22 16:48:23385 days ago1700671703IN
0x409353a0...7A9C20782
0 ETH0.0177987752.99542883
Stake186285532023-11-22 16:45:47385 days ago1700671547IN
0x409353a0...7A9C20782
0 ETH0.0161470950.65484754
Stake186262872023-11-22 9:08:23385 days ago1700644103IN
0x409353a0...7A9C20782
0 ETH0.0100590331.5572483
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
164099392023-01-15 4:52:11696 days ago1673758331
0x409353a0...7A9C20782
0.01498944 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OwnedUpgradeabilityProxy

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : OwnedUpgradeabilityProxy.sol
// SPDX-License-Identifier: UNLICENSED



pragma solidity ^0.8.0;

/**
 * @title OwnedUpgradeabilityProxy
 * @dev This contract combines an upgradeability proxy with basic authorization control functionalities
 */
contract OwnedUpgradeabilityProxy {
    /**
     * @dev Event to show ownership has been transferred
     * @param previousOwner representing the address of the previous owner
     * @param newOwner representing the address of the new owner
     */
    event ProxyOwnershipTransferred(address previousOwner, address newOwner);

    /**
     * @dev This event will be emitted every time the implementation gets upgraded
     * @param implementation representing the address of the upgraded implementation
     */
    event Upgraded(address indexed implementation);

    // Storage position of the address of the maintenance boolean
    bytes32 private constant maintenancePosition = keccak256("com.lithium.proxy.maintenance");
    // Storage position of the address of the current implementation
    bytes32 private constant implementationPosition = keccak256("com.lithium.proxy.implementation");
    // Storage position of the owner of the contract
    bytes32 private constant proxyOwnerPosition = keccak256("com.lithium.proxy.owner");

    /**
     * @dev the constructor sets the original owner of the contract to the sender account.
     */
    constructor() {
        setUpgradeabilityOwner(msg.sender);
    }

    /**
     * @dev Tells if contract is on maintenance
     * @return _maintenance if contract is on maintenance
     */
    function maintenance() public view returns (bool _maintenance) {
        bytes32 position = maintenancePosition;
        assembly {
            _maintenance := sload(position)
        }
    }

    /**
     * @dev Sets if contract is on maintenance
     */
    function setMaintenance(bool _maintenance) external onlyProxyOwner {
        bytes32 position = maintenancePosition;
        assembly {
            sstore(position, _maintenance)
        }
    }

    /**
     * @dev Tells the address of the owner
     * @return owner the address of the owner
     */
    function proxyOwner() public view returns (address owner) {
        bytes32 position = proxyOwnerPosition;
        assembly {
            owner := sload(position)
        }
    }

    /**
     * @dev Sets the address of the owner
     */
    function setUpgradeabilityOwner(address newProxyOwner) internal {
        bytes32 position = proxyOwnerPosition;
        assembly {
            sstore(position, newProxyOwner)
        }
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferProxyOwnership(address newOwner) public onlyProxyOwner {
        require(newOwner != address(0), "OwnedUpgradeabilityProxy: INVALID");
        emit ProxyOwnershipTransferred(proxyOwner(), newOwner);
        setUpgradeabilityOwner(newOwner);
    }

    /*
     * @dev Allows the proxy owner to upgrade the current version of the proxy.
     * @param implementation representing the address of the new implementation to be set.
     */
    function upgradeTo(address newImplementation) public onlyProxyOwner {
        _upgradeTo(newImplementation);
    }

    /*
     * @dev Allows the proxy owner to upgrade the current version of the proxy and call the new implementation
     * to initialize whatever is needed through a low level call.
     * @param implementation representing the address of the new implementation to be set.
     * @param data represents the msg.data to bet sent in the low level call. This parameter may include the function
     * signature of the implementation to be called with the needed payload
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) payable public onlyProxyOwner {
        upgradeTo(newImplementation);
        (bool success, ) = address(this).call{ value: msg.value }(data);
        require(success, "OwnedUpgradeabilityProxy: INVALID");
    }

    /**
     * @dev Fallback function allowing to perform a delegatecall to the given implementation.
     * This function will return whatever the implementation call returns
     */
    fallback() external payable {
        _fallback();
    }

    receive () external payable {
        _fallback();
    }

    /**
     * @dev Tells the address of the current implementation
     * @return impl address of the current implementation
     */
    function implementation() public view returns (address impl) {
        bytes32 position = implementationPosition;
        assembly {
            impl := sload(position)
        }
    }

    /**
     * @dev Sets the address of the current implementation
     * @param newImplementation address representing the new implementation to be set
     */
    function setImplementation(address newImplementation) internal {
        bytes32 position = implementationPosition;
        assembly {
            sstore(position, newImplementation)
        }
    }

    /**
     * @dev Upgrades the implementation address
     * @param newImplementation representing the address of the new implementation to be set
     */
    function _upgradeTo(address newImplementation) internal {
        address currentImplementation = implementation();
        require(currentImplementation != newImplementation, "OwnedUpgradeabilityProxy: INVALID");
        setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    function _fallback() internal {
        if (maintenance()) {
            require(msg.sender == proxyOwner(), "OwnedUpgradeabilityProxy: FORBIDDEN");
        }
        address _impl = implementation();
        require(_impl != address(0), "OwnedUpgradeabilityProxy: INVALID");
        assembly {
            let ptr := mload(0x40)
            calldatacopy(ptr, 0, calldatasize())
            let result := delegatecall(gas(), _impl, ptr, calldatasize(), 0, 0)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyProxyOwner() {
        require(msg.sender == proxyOwner(), "OwnedUpgradeabilityProxy: FORBIDDEN");
        _;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"ProxyOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maintenance","outputs":[{"internalType":"bool","name":"_maintenance","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyOwner","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_maintenance","type":"bool"}],"name":"setMaintenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50610039337fa840eb9e2aea75d352f044fb50af0661d0f0786ee056d03f5b1c91e7291fec9555565b6107c7806100486000396000f3fe6080604052600436106100745760003560e01c80635c60da1b1161004e5780635c60da1b146100f9578063612f2f371461011b5780636c376cc51461013b578063f1739cae1461017a57610083565b8063025313a21461008b5780633659cfe6146100c65780634f1ef286146100e657610083565b366100835761008161019a565b005b61008161019a565b34801561009757600080fd5b50600080516020610772833981519152545b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d257600080fd5b506100816100e1366004610576565b61026f565b6100816100f4366004610598565b6102bb565b34801561010557600080fd5b50600080516020610752833981519152546100a9565b34801561012757600080fd5b5061008161013636600461065a565b610387565b34801561014757600080fd5b507fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f815460405190151581526020016100bd565b34801561018657600080fd5b50610081610195366004610576565b6103eb565b7fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f81541561020a57600080516020610772833981519152546001600160a01b0316336001600160a01b03161461020a5760405162461bcd60e51b8152600401610201906106f8565b60405180910390fd5b60006102226000805160206107528339815191525490565b90506001600160a01b03811661024a5760405162461bcd60e51b8152600401610201906106b7565b60405136600082376000803683855af43d806000843e81801561026b578184f35b8184fd5b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146102af5760405162461bcd60e51b8152600401610201906106f8565b6102b8816104c0565b50565b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146102fb5760405162461bcd60e51b8152600401610201906106f8565b6103048261026f565b6000306001600160a01b0316348360405161031f919061067c565b60006040518083038185875af1925050503d806000811461035c576040519150601f19603f3d011682016040523d82523d6000602084013e610361565b606091505b50509050806103825760405162461bcd60e51b8152600401610201906106b7565b505050565b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146103c75760405162461bcd60e51b8152600401610201906106f8565b7fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f8155565b600080516020610772833981519152546001600160a01b0316336001600160a01b03161461042b5760405162461bcd60e51b8152600401610201906106f8565b6001600160a01b0381166104515760405162461bcd60e51b8152600401610201906106b7565b7f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd96104886000805160206107728339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16102b88160008051602061077283398151915255565b60006104d86000805160206107528339815191525490565b9050816001600160a01b0316816001600160a01b0316141561050c5760405162461bcd60e51b8152600401610201906106b7565b6105228260008051602061075283398151915255565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b80356001600160a01b038116811461057157600080fd5b919050565b60006020828403121561058857600080fd5b6105918261055a565b9392505050565b600080604083850312156105ab57600080fd5b6105b48361055a565b9150602083013567ffffffffffffffff808211156105d157600080fd5b818501915085601f8301126105e557600080fd5b8135818111156105f7576105f761073b565b604051601f8201601f19908116603f0116810190838211818310171561061f5761061f61073b565b8160405282815288602084870101111561063857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561066c57600080fd5b8135801515811461059157600080fd5b6000825160005b8181101561069d5760208186018101518583015201610683565b818111156106ac576000828501525b509190910192915050565b60208082526021908201527f4f776e6564557067726164656162696c69747950726f78793a20494e56414c496040820152601160fa1b606082015260800190565b60208082526023908201527f4f776e6564557067726164656162696c69747950726f78793a20464f524249446040820152622222a760e91b606082015260800190565b634e487b7160e01b600052604160045260246000fdfe025beaa34bebd480d4e804fc571f1ecd9f6ac6bb44fd53bd8d562fc09c3b11c7a840eb9e2aea75d352f044fb50af0661d0f0786ee056d03f5b1c91e7291fec95a26469706673582212205b92fc0a79696ae70d4b1e9b214f40b7487cbad2ed324df88ebff898f87c25f564736f6c63430008070033

Deployed Bytecode

0x6080604052600436106100745760003560e01c80635c60da1b1161004e5780635c60da1b146100f9578063612f2f371461011b5780636c376cc51461013b578063f1739cae1461017a57610083565b8063025313a21461008b5780633659cfe6146100c65780634f1ef286146100e657610083565b366100835761008161019a565b005b61008161019a565b34801561009757600080fd5b50600080516020610772833981519152545b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d257600080fd5b506100816100e1366004610576565b61026f565b6100816100f4366004610598565b6102bb565b34801561010557600080fd5b50600080516020610752833981519152546100a9565b34801561012757600080fd5b5061008161013636600461065a565b610387565b34801561014757600080fd5b507fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f815460405190151581526020016100bd565b34801561018657600080fd5b50610081610195366004610576565b6103eb565b7fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f81541561020a57600080516020610772833981519152546001600160a01b0316336001600160a01b03161461020a5760405162461bcd60e51b8152600401610201906106f8565b60405180910390fd5b60006102226000805160206107528339815191525490565b90506001600160a01b03811661024a5760405162461bcd60e51b8152600401610201906106b7565b60405136600082376000803683855af43d806000843e81801561026b578184f35b8184fd5b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146102af5760405162461bcd60e51b8152600401610201906106f8565b6102b8816104c0565b50565b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146102fb5760405162461bcd60e51b8152600401610201906106f8565b6103048261026f565b6000306001600160a01b0316348360405161031f919061067c565b60006040518083038185875af1925050503d806000811461035c576040519150601f19603f3d011682016040523d82523d6000602084013e610361565b606091505b50509050806103825760405162461bcd60e51b8152600401610201906106b7565b505050565b600080516020610772833981519152546001600160a01b0316336001600160a01b0316146103c75760405162461bcd60e51b8152600401610201906106f8565b7fb1c4bee93542b24b1b443bd7eb1f26034cc7331cdcfc4a7ffc786ae1b6928f8155565b600080516020610772833981519152546001600160a01b0316336001600160a01b03161461042b5760405162461bcd60e51b8152600401610201906106f8565b6001600160a01b0381166104515760405162461bcd60e51b8152600401610201906106b7565b7f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd96104886000805160206107728339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16102b88160008051602061077283398151915255565b60006104d86000805160206107528339815191525490565b9050816001600160a01b0316816001600160a01b0316141561050c5760405162461bcd60e51b8152600401610201906106b7565b6105228260008051602061075283398151915255565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b80356001600160a01b038116811461057157600080fd5b919050565b60006020828403121561058857600080fd5b6105918261055a565b9392505050565b600080604083850312156105ab57600080fd5b6105b48361055a565b9150602083013567ffffffffffffffff808211156105d157600080fd5b818501915085601f8301126105e557600080fd5b8135818111156105f7576105f761073b565b604051601f8201601f19908116603f0116810190838211818310171561061f5761061f61073b565b8160405282815288602084870101111561063857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561066c57600080fd5b8135801515811461059157600080fd5b6000825160005b8181101561069d5760208186018101518583015201610683565b818111156106ac576000828501525b509190910192915050565b60208082526021908201527f4f776e6564557067726164656162696c69747950726f78793a20494e56414c496040820152601160fa1b606082015260800190565b60208082526023908201527f4f776e6564557067726164656162696c69747950726f78793a20464f524249446040820152622222a760e91b606082015260800190565b634e487b7160e01b600052604160045260246000fdfe025beaa34bebd480d4e804fc571f1ecd9f6ac6bb44fd53bd8d562fc09c3b11c7a840eb9e2aea75d352f044fb50af0661d0f0786ee056d03f5b1c91e7291fec95a26469706673582212205b92fc0a79696ae70d4b1e9b214f40b7487cbad2ed324df88ebff898f87c25f564736f6c63430008070033

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  ]
[ 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.