ETH Price: $2,916.46 (-7.93%)
Gas: 8 Gwei

Contract

0x5d22045DAcEAB03B158031eCB7D9d06Fad24609b
 

Overview

ETH Balance

9,343.77989924 ETH

Eth Value

$27,250,724.74 (@ $2,916.46/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Value
0x97bd44a77d7044160b4d9874a7d164171fca23e06f24a84c0201490c0e4d39de Deposit(pending)2024-07-04 21:02:2913 hrs ago1720126949IN
Rhino.fi: Bridge
0.002 ETH(Pending)(Pending)
0x8007a451d2635c82046e7be0b6c3f7ff1b1b9ce958e116bcf1c94079ead2e1b5 Deposit(pending)2024-07-01 17:59:523 days ago1719856792IN
Rhino.fi: Bridge
0.005 ETH(Pending)(Pending)
0x8ada32947b646e668158ee52545017190eadf3907073d28328a8b58ccead386b Deposit(pending)2024-07-01 17:59:523 days ago1719856792IN
Rhino.fi: Bridge
0.005 ETH(Pending)(Pending)
0xbdede62ea3710ab500b142c4d6b018a50f25d96cbf1ce754526a5317d938cbf7 Withdraw(pending)2024-07-01 16:52:223 days ago1719852742IN
Rhino.fi: Bridge
0 ETH(Pending)(Pending)
0xa531efb12db6304803aa87f8fc8fc5196e5f317c0519466100b1aad1ff1f22d3 Deposit(pending)2024-06-30 14:26:064 days ago1719757566IN
Rhino.fi: Bridge
0.005 ETH(Pending)(Pending)
0x41c3548d553c2fc5deadca484f13628a987c9214cc97477ba8de2080ca1e6824 Deposit(pending)2024-06-30 11:11:024 days ago1719745862IN
Rhino.fi: Bridge
0.0019482 ETH(Pending)(Pending)
0x9af18d151e237a4a656d0d74ebed38cabe8e738af3a445b62fa65dca2eb358aa Deposit(pending)2024-06-30 10:53:414 days ago1719744821IN
Rhino.fi: Bridge
0.0007477 ETH(Pending)(Pending)
0x47705e07f28953231e6ba6f835253112c9285fb937946194ae8a73e0e5e52e02 Withdraw(pending)2024-06-30 8:21:065 days ago1719735666IN
Rhino.fi: Bridge
0 ETH(Pending)(Pending)
0x7c4516a71e7e93a449482f9f5039dcffc60ff939cf1e654edaf422d0a5362179 Deposit(pending)2024-06-30 8:10:325 days ago1719735032IN
Rhino.fi: Bridge
0.006 ETH(Pending)(Pending)
0x56dc4b12b5303f0a70a5bfbab1a6c1bc5cdb24124e42c68673056a12982235d1 Deposit(pending)2024-06-30 6:21:105 days ago1719728470IN
Rhino.fi: Bridge
0.00998275 ETH(Pending)(Pending)
0xa2685046185aec965b84242d95316cc156b612d8bff8eb6bc001078255926db9 Deposit(pending)2024-06-30 6:17:415 days ago1719728261IN
Rhino.fi: Bridge
0.00113503 ETH(Pending)(Pending)
0xfc394b686f6b6ef534e199fb75a2310f647d07bec8983ebb0e10876d0897a4a9 Deposit(pending)2024-06-30 3:36:245 days ago1719718584IN
Rhino.fi: Bridge
0.00585988 ETH(Pending)(Pending)
0x4b59d039eb58f4613a2445f1bbb8c323dc5b0daff686fb4ee2dc5c6ee010c9dd Deposit(pending)2024-06-30 2:07:355 days ago1719713255IN
Rhino.fi: Bridge
0.0006 ETH(Pending)(Pending)
0xa6a0bf5afe48cd475dd6299cc1d34d467b57245b0a36add557e2beb840e4f440 Deposit(pending)2024-06-30 2:00:265 days ago1719712826IN
Rhino.fi: Bridge
0.00272521 ETH(Pending)(Pending)
0x2c58cf25282d8c133a36483115e9263d03f0e6b33e2bd87e0759b535dc52c673 Deposit(pending)2024-06-30 1:58:085 days ago1719712688IN
Rhino.fi: Bridge
0.002 ETH(Pending)(Pending)
0x44bf53d8192e7ac88712d83416d2fec75f3eb35deef8b2b2a045149eda0d016b Deposit(pending)2024-06-30 1:21:525 days ago1719710512IN
Rhino.fi: Bridge
0.001 ETH(Pending)(Pending)
0x7c7b82a70104f1404c42b12dc526917c5139a9c50ee52439025f89ffe2341468 Deposit(pending)2024-06-30 1:16:055 days ago1719710165IN
Rhino.fi: Bridge
0.011 ETH(Pending)(Pending)
0x600398424dc7e8575fa97f00420c94486819d7ac38d2cf656367574ecebb3bb6 Deposit(pending)2024-06-30 1:03:405 days ago1719709420IN
Rhino.fi: Bridge
0.002 ETH(Pending)(Pending)
0xe999cbf7e0d631bf91add7d4d56d58fb059113081615ef40ce82d154bcadb4ed Deposit(pending)2024-06-30 1:02:375 days ago1719709357IN
Rhino.fi: Bridge
0.00817364 ETH(Pending)(Pending)
0x949d88322b26e20a4098191e123b1fcfa60e1c8aac8382fe8b51b19243ace00f Deposit(pending)2024-06-30 1:01:145 days ago1719709274IN
Rhino.fi: Bridge
0.00172706 ETH(Pending)(Pending)
0xb6224011771d833fb3ffd8bb4e3d0ea6536f839b0834a22cd601bf6919505b3e Deposit(pending)2024-06-30 0:57:345 days ago1719709054IN
Rhino.fi: Bridge
0.00125773 ETH(Pending)(Pending)
0xe331cb4d06546f2810e9d108f48b97b9b1aa5fca87dfb99383303e4ed71be08f Deposit(pending)2024-06-30 0:56:595 days ago1719709019IN
Rhino.fi: Bridge
0.00147012 ETH(Pending)(Pending)
0xe6d7e41d4966c5383be5c76798b6a345b2689a7bf4cb85c68a9493c3f061267b Deposit(pending)2024-06-30 0:56:555 days ago1719709015IN
Rhino.fi: Bridge
0.002 ETH(Pending)(Pending)
0x93749048f270420126bf821733d83e4b380c6920bb32d7a81a4e6a9558aa7e2c Deposit(pending)2024-06-30 0:56:555 days ago1719709015IN
Rhino.fi: Bridge
0.001 ETH(Pending)(Pending)
0xc5841424a5c78e3dfe9d34efb3ebaf5c1a3b20bde383e9499d1e9bf58c3b3640 Deposit(pending)2024-06-30 0:56:555 days ago1719709015IN
Rhino.fi: Bridge
0.00848841 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
202397152024-07-05 10:29:475 mins ago1720175387
0x5d22045D...Fad24609b
0.00405853 ETH
202397152024-07-05 10:29:475 mins ago1720175387
0x5d22045D...Fad24609b
0.00405853 ETH
202396832024-07-05 10:23:2311 mins ago1720175003
0x5d22045D...Fad24609b
0 ETH
202396832024-07-05 10:23:2311 mins ago1720175003
0x5d22045D...Fad24609b
0 ETH
202396832024-07-05 10:23:2311 mins ago1720175003
0x5d22045D...Fad24609b
0 ETH
202396832024-07-05 10:23:2311 mins ago1720175003
0x5d22045D...Fad24609b
0 ETH
202396832024-07-05 10:23:2311 mins ago1720175003
0x5d22045D...Fad24609b
0 ETH
202396652024-07-05 10:19:4715 mins ago1720174787
0x5d22045D...Fad24609b
0.01 ETH
202396652024-07-05 10:19:4715 mins ago1720174787
0x5d22045D...Fad24609b
0.01 ETH
202396582024-07-05 10:18:2316 mins ago1720174703
0x5d22045D...Fad24609b
0.00564242 ETH
202396582024-07-05 10:18:2316 mins ago1720174703
0x5d22045D...Fad24609b
0.00564242 ETH
202396542024-07-05 10:17:3517 mins ago1720174655
0x5d22045D...Fad24609b
1.1 ETH
202396542024-07-05 10:17:3517 mins ago1720174655
0x5d22045D...Fad24609b
1.1 ETH
202396492024-07-05 10:16:3518 mins ago1720174595
0x5d22045D...Fad24609b
0.00328028 ETH
202396492024-07-05 10:16:3518 mins ago1720174595
0x5d22045D...Fad24609b
0.00328028 ETH
202396392024-07-05 10:14:3520 mins ago1720174475
0x5d22045D...Fad24609b
0.88 ETH
202396392024-07-05 10:14:3520 mins ago1720174475
0x5d22045D...Fad24609b
0.88 ETH
202395902024-07-05 10:04:4730 mins ago1720173887
0x5d22045D...Fad24609b
0.2 ETH
202395902024-07-05 10:04:4730 mins ago1720173887
0x5d22045D...Fad24609b
0.2 ETH
202395522024-07-05 9:57:1137 mins ago1720173431
0x5d22045D...Fad24609b
0.00352 ETH
202395522024-07-05 9:57:1137 mins ago1720173431
0x5d22045D...Fad24609b
0.00352 ETH
202395462024-07-05 9:55:5939 mins ago1720173359
0x5d22045D...Fad24609b
0.00245 ETH
202395462024-07-05 9:55:5939 mins ago1720173359
0x5d22045D...Fad24609b
0.00245 ETH
202395462024-07-05 9:55:5939 mins ago1720173359
0x5d22045D...Fad24609b
0 ETH
202395462024-07-05 9:55:5939 mins ago1720173359
0x5d22045D...Fad24609b
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 7: Proxy.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

import "ProxyGovernance.sol";
import "ProxyStorage.sol";
import "Common.sol";

/**
  The Proxy contract implements delegation of calls to other contracts (`implementations`), with
  proper forwarding of return values and revert reasons. This pattern allows retaining the contract
  storage while replacing implementation code.

  The following operations are supported by the proxy contract:

  - :sol:func:`addImplementation`: Defines a new implementation, the data with which it should be initialized and whether this will be the last version of implementation.
  - :sol:func:`upgradeTo`: Once an implementation is added, the governor may upgrade to that implementation only after a safety time period has passed (time lock), the current implementation is not the last version and the implementation is not frozen (see :sol:mod:`FullWithdrawals`).
  - :sol:func:`removeImplementation`: Any announced implementation may be removed. Removing an implementation is especially important once it has been used for an upgrade in order to avoid an additional unwanted revert to an older version.

  The only entity allowed to perform the above operations is the proxy governor
  (see :sol:mod:`ProxyGovernance`).

  Every implementation is required to have an `initialize` function that replaces the constructor
  of a normal contract. Furthermore, the only parameter of this function is an array of bytes
  (`data`) which may be decoded arbitrarily by the `initialize` function. It is up to the
  implementation to ensure that this function cannot be run more than once if so desired.

  When an implementation is added (:sol:func:`addImplementation`) the initialization `data` is also
  announced, allowing users of the contract to analyze the full effect of an upgrade to the new
  implementation. During an :sol:func:`upgradeTo`, the `data` is provided again and only if it is
  identical to the announced `data` is the upgrade performed by pointing the proxy to the new
  implementation and calling its `initialize` function with this `data`.

  It is the responsibility of the implementation not to overwrite any storage belonging to the
  proxy (`ProxyStorage`). In addition, upon upgrade, the new implementation is assumed to be
  backward compatible with previous implementations with respect to the storage used until that
  point.
*/
contract Proxy is ProxyStorage, ProxyGovernance {

    // Emitted when the active implementation is replaced.
    event Upgraded(address indexed implementation);

    // Emitted when an implementation is submitted as an upgrade candidate and a time lock
    // is activated.
    event ImplementationAdded(address indexed implementation, bytes initializer, bool finalize);

    // Emitted when an implementation is removed from the list of upgrade candidates.
    event ImplementationRemoved(address indexed implementation);

    // Emitted when the implementation is finalized.
    event FinalizedImplementation(address indexed implementation);

    // Storage slot with the address of the current implementation.
    // The address of the slot is keccak256("StarkWare2019.implemntation-slot").
    // We need to keep this variable stored outside of the commonly used space,
    // so that it's not overrun by the logical implementaiton (the proxied contract).
    bytes32 internal constant IMPLEMENTATION_SLOT =
    0x177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b24;

    // This storage slot stores the finalization flag.
    // Once the value stored in this slot is set to non-zero
    // the proxy blocks implementation upgrades.
    // The current implementation is then referred to as Finalized.
    // Web3.solidityKeccak(['string'], ["StarkWare2019.finalization-flag-slot"]).
    bytes32 internal constant FINALIZED_STATE_SLOT =
    0x7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2;
    uint256 public constant UPGRADE_ACTIVATION_DELAY = 28 days;

    using Addresses for address;

    constructor ( )
        public
    {
        initGovernance();
    }

    /*
      Returns true if the implementation is frozen.
      If the implementation was not assigned yet, returns false.
    */
    function implementationIsFrozen() private returns (bool) {
        address _implementation = implementation();

        // We can't call low level implementation before it's assigned. (i.e. ZERO).
        if (_implementation == ZERO_ADDRESS) {
            return false;
        }
        // solium-disable-next-line security/no-low-level-calls
        (bool success, bytes memory returndata) = _implementation.delegatecall(
            abi.encodeWithSignature("isFrozen()"));
        require(success, string(returndata));
        return abi.decode(returndata, (bool));
    }

    /*
      This method blocks delegation to initialize().
      Only upgradeTo should be able to delegate call to initialize().
    */
    function initialize(bytes calldata /*data*/)
        external pure
    {
        revert("CANNOT_CALL_INITIALIZE");
    }

    modifier notFinalized()
    {
        require(isNotFinalized(), "IMPLEMENTATION_FINALIZED");
        _;
    }

    /*
      Forbids calling the function if the implementation is frozen.
      This modifier relies on the lower level (logical contract) implementation of isFrozen().
    */
    modifier notFrozen()
    {
        require(implementationIsFrozen() == false, "STATE_IS_FROZEN");
        _;
    }

    /*
      Contract's default function. Delegates execution to the implementation contract.
      It returns back to the external caller whatever the implementation delegated code returns.
    */
    function () external payable {
        address _implementation = implementation();
        require (_implementation != ZERO_ADDRESS, "MISSING_IMPLEMENTATION");

        // solium-disable-next-line security/no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize)

            // Call the implementation.
            // out and outsize are 0 for now, as we don't know the out size yet.
            let result := delegatecall(gas, _implementation, 0, calldatasize, 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize)

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize) }
            default { return(0, returndatasize) }
        }
    }

    /*
      Returns the address of the current implementation.
    */
    function implementation() public view returns (address _implementation) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            _implementation := sload(slot)
        }
    }

    /*
      Sets the implementation address of the proxy.
    */
    function setImplementation(address newImplementation) private {
        bytes32 slot = IMPLEMENTATION_SLOT;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }

    /*
      Returns true if the contract is not in the finalized state.
    */
    function isNotFinalized() public view returns (bool notFinal) {
        bytes32 slot = FINALIZED_STATE_SLOT;
        uint256 slotValue;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            slotValue := sload(slot)
        }
        notFinal = (slotValue == 0);
    }

    /*
      Marks the current implementation as finalized.
    */
    function setFinalizedFlag() private {
        bytes32 slot = FINALIZED_STATE_SLOT;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            sstore(slot, 0x1)
        }
    }

    /*
      Introduce an implementation and its initialization vector,
      and start the time-lock before it can be upgraded to.
      addImplementation is not blocked when frozen or finalized.
      (upgradeTo API is blocked when finalized or frozen).
    */
    function addImplementation(address newImplementation, bytes calldata data, bool finalize)
        external onlyGovernance {
        require(newImplementation.isContract(), "ADDRESS_NOT_CONTRACT");

        bytes32 init_hash = keccak256(abi.encode(data, finalize));
        initializationHash[newImplementation] = init_hash;

        // solium-disable-next-line security/no-block-members
        uint256 activation_time = now + UPGRADE_ACTIVATION_DELAY;

        // First implementation should not have time-lock.
        if (implementation() == ZERO_ADDRESS) {
            // solium-disable-next-line security/no-block-members
            activation_time = now;
        }

        enabledTime[newImplementation] = activation_time;
        emit ImplementationAdded(newImplementation, data, finalize);
    }

    /*
      Removes a candidate implementation.
      Note that it is possible to remove the current implementation. Doing so doesn't affect the
      current implementation, but rather revokes it as a future candidate.
    */
    function removeImplementation(address newImplementation)
        external onlyGovernance {

        // If we have initializer, we set the hash of it.
        uint256 activation_time = enabledTime[newImplementation];

        require(activation_time > 0, "ADDRESS_NOT_UPGRADE_CANDIDATE");

        enabledTime[newImplementation] = 0;

        initializationHash[newImplementation] = 0;
        emit ImplementationRemoved(newImplementation);
    }

    /*
      Upgrades the proxy to a new implementation, with its initialization.
      to upgrade successfully, implementation must have been added time-lock agreeably
      before, and the init vector must be identical ot the one submitted before.

      Upon assignment of new implementation address,
      its initialize will be called with the inititalizing vector (even if empty).
      Therefore, the implementatin MUST must have such a method.
    */
    function upgradeTo(address newImplementation, bytes calldata data, bool finalize)
        external payable onlyGovernance notFinalized notFrozen {
        uint256 activation_time = enabledTime[newImplementation];

        require(activation_time > 0, "ADDRESS_NOT_UPGRADE_CANDIDATE");
        // solium-disable-next-line security/no-block-members
        require(activation_time <= now, "UPGRADE_NOT_ENABLED_YET");

        bytes32 init_vector_hash = initializationHash[newImplementation];
        require(init_vector_hash == keccak256(abi.encode(data, finalize)), "CHANGED_INITIALIZER");
        setImplementation(newImplementation);

        // solium-disable-next-line security/no-low-level-calls
        (bool success, bytes memory returndata) = newImplementation.delegatecall(
            abi.encodeWithSelector(this.initialize.selector, data));
        require(success, string(returndata));

        // Verify that the new implementation is not frozen post initialization.
        (success, returndata) = newImplementation.delegatecall(
            abi.encodeWithSignature("isFrozen()"));
        require(success, "CALL_TO_ISFROZEN_REVERTED");
        require(abi.decode(returndata, (bool)) == false, "NEW_IMPLEMENTATION_FROZEN");

        if (finalize == true) {
            setFinalizedFlag();
            emit FinalizedImplementation(newImplementation);
        }

        emit Upgraded(newImplementation);
    }
}

File 2 of 7: Common.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

/*
  Common Utility libraries.
  1. Addresses (extending address).
*/
library Addresses {
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 3 of 7: Governance.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

import "GovernanceStorage.sol";
import "MGovernance.sol";

/*
  Implements Generic Governance, applicable for both proxy and main contract, and possibly others.
  Notes:
  1. This class is virtual (getGovernanceTag is not implemented).
  2. The use of the same function names by both the Proxy and a delegated implementation
     is not possible since calling the implementation functions is done via the default function
     of the Proxy. For this reason, for example, the implementation of MainContract (MainGovernance)
     exposes mainIsGovernor, which calls the internal isGovernor method.
*/
contract Governance is GovernanceStorage, MGovernance {
    event LogNominatedGovernor(address nominatedGovernor);
    event LogNewGovernorAccepted(address acceptedGovernor);
    event LogRemovedGovernor(address removedGovernor);
    event LogNominationCancelled();

    address internal constant ZERO_ADDRESS = address(0x0);

    /*
      Returns a string which uniquely identifies the type of the governance mechanism.
    */
    function getGovernanceTag()
        internal
        view
        returns (string memory);

    /*
      Returns the GovernanceInfoStruct associated with the governance tag.
    */
    function contractGovernanceInfo()
        internal
        view
        returns (GovernanceInfoStruct storage) {
        string memory tag = getGovernanceTag();
        GovernanceInfoStruct storage gub = governanceInfo[tag];
        require(gub.initialized == true, "NOT_INITIALIZED");
        return gub;
    }

    function initGovernance()
        internal
    {
        string memory tag = getGovernanceTag();
        GovernanceInfoStruct storage gub = governanceInfo[tag];
        require(gub.initialized == false, "ALREADY_INITIALIZED");
        gub.initialized = true;  // to ensure addGovernor() won't fail.
        // Add the initial governer.
        addGovernor(msg.sender);
    }

    modifier onlyGovernance()
    {
        require(isGovernor(msg.sender), "ONLY_GOVERNANCE");
        _;
    }

    function isGovernor(address testGovernor)
        internal view
        returns (bool addressIsGovernor){
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        addressIsGovernor = gub.effectiveGovernors[testGovernor];
    }

    /*
      Cancels the nomination of a governor condidate.
    */
    function cancelNomination() internal onlyGovernance() {
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        gub.candidateGovernor = ZERO_ADDRESS;
        emit LogNominationCancelled();
    }

    function nominateNewGovernor(address newGovernor) internal onlyGovernance() {
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        require(isGovernor(newGovernor) == false, "ALREADY_GOVERNOR");
        gub.candidateGovernor = newGovernor;
        emit LogNominatedGovernor(newGovernor);
    }

    /*
      The addGovernor is called in two cases:
      1. by acceptGovernance when a new governor accepts its role.
      2. by initGovernance to add the initial governor.
      The difference is that the init path skips the nominate step
      that would fail because of the onlyGovernance modifier.
    */
    function addGovernor(address newGovernor) private {
        require(isGovernor(newGovernor) == false, "ALREADY_GOVERNOR");
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        gub.effectiveGovernors[newGovernor] = true;
    }

    function acceptGovernance()
        internal
    {
        // The new governor was proposed as a candidate by the current governor.
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        require(msg.sender == gub.candidateGovernor, "ONLY_CANDIDATE_GOVERNOR");

        // Update state.
        addGovernor(gub.candidateGovernor);
        gub.candidateGovernor = ZERO_ADDRESS;

        // Send a notification about the change of governor.
        emit LogNewGovernorAccepted(msg.sender);
    }

    /*
      Remove a governor from office.
    */
    function removeGovernor(address governorForRemoval) internal onlyGovernance() {
        require(msg.sender != governorForRemoval, "GOVERNOR_SELF_REMOVE");
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        require (isGovernor(governorForRemoval), "NOT_GOVERNOR");
        gub.effectiveGovernors[governorForRemoval] = false;
        emit LogRemovedGovernor(governorForRemoval);
    }
}

File 4 of 7: GovernanceStorage.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

/*
  Holds the governance slots for ALL entities, including proxy and the main contract.
*/
contract GovernanceStorage {

    struct GovernanceInfoStruct {
        mapping (address => bool) effectiveGovernors;
        address candidateGovernor;
        bool initialized;
    }

    // A map from a Governor tag to its own GovernanceInfoStruct.
    mapping (string => GovernanceInfoStruct) internal governanceInfo;
}

File 5 of 7: MGovernance.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

contract MGovernance {
    /*
      Allows calling the function only by a Governor.
    */
    modifier onlyGovernance()
    {
        // Pure modifier declarations are not supported. Instead we provide
        // a dummy definition.
        revert("UNIMPLEMENTED");
        _;
    }
}

File 6 of 7: ProxyGovernance.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

import "Governance.sol";

/**
  The Proxy contract is governed by one or more Governors of which the initial one is the
  deployer of the contract.

  A governor has the sole authority to perform the following operations:

  1. Nominate additional governors (:sol:func:`proxyNominateNewGovernor`)
  2. Remove other governors (:sol:func:`proxyRemoveGovernor`)
  3. Add new `implementations` (proxied contracts)
  4. Remove (new or old) `implementations`
  5. Update `implementations` after a timelock allows it

  Adding governors is performed in a two step procedure:

  1. First, an existing governor nominates a new governor (:sol:func:`proxyNominateNewGovernor`)
  2. Then, the new governor must accept governance to become a governor (:sol:func:`proxyAcceptGovernance`)

  This two step procedure ensures that a governor public key cannot be nominated unless there is an
  entity that has the corresponding private key. This is intended to prevent errors in the addition
  process.

  The governor private key should typically be held in a secure cold wallet or managed via a
  multi-sig contract.
*/
/*
  Implements Governance for the proxy contract.
  It is a thin wrapper to the Governance contract,
  which is needed so that it can have non-colliding function names,
  and a specific tag (key) to allow unique state storage.
*/
contract ProxyGovernance is Governance {

    // The tag is the string key that is used in the Governance storage mapping.
    string public constant PROXY_GOVERNANCE_TAG = "StarkEx.Proxy.2019.GovernorsInformation";

    function getGovernanceTag()
        internal
        view
        returns (string memory tag) {
        tag = PROXY_GOVERNANCE_TAG;
    }

    function proxyIsGovernor(address testGovernor) external view returns (bool) {
        return isGovernor(testGovernor);
    }

    function proxyNominateNewGovernor(address newGovernor) external {
        nominateNewGovernor(newGovernor);
    }

    function proxyRemoveGovernor(address governorForRemoval) external {
        removeGovernor(governorForRemoval);
    }

    function proxyAcceptGovernance()
        external
    {
        acceptGovernance();
    }

    function proxyCancelNomination() external {
        cancelNomination();
    }
}

File 7 of 7: ProxyStorage.sol
/*
  Copyright 2019,2020 StarkWare Industries Ltd.

  Licensed under the Apache License, Version 2.0 (the "License").
  You may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  https://www.starkware.co/open-source-license/

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions
  and limitations under the License.
*/
pragma solidity ^0.5.2;

import "GovernanceStorage.sol";

/*
  Holds the Proxy-specific state variables.
  This contract is inherited by the GovernanceStorage (and indirectly by MainStorage)
  to prevent collision hazard.
*/
contract ProxyStorage is GovernanceStorage {

    // Stores the hash of the initialization vector of the added implementation.
    // Upon upgradeTo the implementation, the initialization vector is verified
    // to be identical to the one submitted when adding the implementaion.
    mapping (address => bytes32) internal initializationHash;

    // The time after which we can switch to the implementation.
    mapping (address => uint256) internal enabledTime;

    // A central storage of the flags whether implementation has been initialized.
    // Note - it can be used flexibly enough to accomodate multiple level of initialization
    // (i.e. using different key salting schemes for different initialization levels).
    mapping (bytes32 => bool) internal initialized;
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"FinalizedImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"},{"indexed":false,"internalType":"bytes","name":"initializer","type":"bytes"},{"indexed":false,"internalType":"bool","name":"finalize","type":"bool"}],"name":"ImplementationAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"ImplementationRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"acceptedGovernor","type":"address"}],"name":"LogNewGovernorAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nominatedGovernor","type":"address"}],"name":"LogNominatedGovernor","type":"event"},{"anonymous":false,"inputs":[],"name":"LogNominationCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"removedGovernor","type":"address"}],"name":"LogRemovedGovernor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"PROXY_GOVERNANCE_TAG","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADE_ACTIVATION_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"addImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"_implementation","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"isNotFinalized","outputs":[{"internalType":"bool","name":"notFinal","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"proxyAcceptGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"proxyCancelNomination","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"testGovernor","type":"address"}],"name":"proxyIsGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newGovernor","type":"address"}],"name":"proxyNominateNewGovernor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"governorForRemoval","type":"address"}],"name":"proxyRemoveGovernor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"removeImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"upgradeTo","outputs":[],"payable":true,"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b50620000256001600160e01b036200002b16565b62000307565b6060620000406001600160e01b036200013816565b9050600080826040518082805190602001908083835b60208310620000775780518252601f19909201916020918201910162000056565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092206001810154909350600160a01b900460ff161591506200010b9050576040805162461bcd60e51b815260206004820152601360248201527f414c52454144595f494e495449414c495a454400000000000000000000000000604482015290519081900360640190fd5b60018101805460ff60a01b1916600160a01b17905562000134336001600160e01b036200015916565b5050565b60606040518060600160405280602781526020016200190f60279139905090565b6200016d816001600160e01b03620001f016565b15620001b3576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6000620001c86001600160e01b036200022916565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b600080620002066001600160e01b036200022916565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b60006060620002406001600160e01b036200013816565b9050600080826040518082805190602001908083835b60208310620002775780518252601f19909201916020918201910162000256565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220600180820154919450600160a01b90910460ff161515149150620003019050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b6115f880620003176000396000f3fe6080604052600436106100b25760003560e01c80636684b1d61161006f5780636684b1d6146103615780637147855d146103765780638757653f146103f6578063b449ea5d14610429578063e907fa3c14610470578063f7b456d014610485578063f9bcdde4146104ac576100b2565b806312f16e6d1461013657806322175a321461016b578063439fab911461019e57806356f36dbf146102195780635c60da1b146102a35780635e3a97e7146102d4575b60006100bc6104c1565b90506001600160a01b038116610112576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e808015610131573d6000f35b3d6000fd5b34801561014257600080fd5b506101696004803603602081101561015957600080fd5b50356001600160a01b03166104e6565b005b34801561017757600080fd5b506101696004803603602081101561018e57600080fd5b50356001600160a01b03166104f2565b3480156101aa57600080fd5b50610169600480360360208110156101c157600080fd5b810190602081018135600160201b8111156101db57600080fd5b8201836020820111156101ed57600080fd5b803590602001918460018302840111600160201b8311171561020e57600080fd5b5090925090506105fb565b34801561022557600080fd5b5061022e610641565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610268578181015183820152602001610250565b50505050905090810190601f1680156102955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102af57600080fd5b506102b86104c1565b604080516001600160a01b039092168252519081900360200190f35b3480156102e057600080fd5b50610169600480360360608110156102f757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561032157600080fd5b82018360208201111561033357600080fd5b803590602001918460018302840111600160201b8311171561035457600080fd5b919350915035151561065d565b34801561036d57600080fd5b50610169610832565b6101696004803603606081101561038c57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156103b657600080fd5b8201836020820111156103c857600080fd5b803590602001918460018302840111600160201b831117156103e957600080fd5b919350915035151561083c565b34801561040257600080fd5b506101696004803603602081101561041957600080fd5b50356001600160a01b0316610e53565b34801561043557600080fd5b5061045c6004803603602081101561044c57600080fd5b50356001600160a01b0316610e5c565b604080519115158252519081900360200190f35b34801561047c57600080fd5b5061045c610e6d565b34801561049157600080fd5b5061049a610e93565b60408051918252519081900360200190f35b3480156104b857600080fd5b50610169610e9a565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b6104ef81610ea2565b50565b6104fb33610fef565b61053e576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6001600160a01b038116600090815260026020526040902054806105a9576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b6001600160a01b03821660008181526002602090815260408083208390556001909152808220829055517faf23121e2402485071dadf421078b368d7b67e54cabcc81540563c5d6bf1a4c39190a25050565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b60405180606001604052806027815260200161159d6027913981565b61066633610fef565b6106a9576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6106bb846001600160a01b031661101d565b610703576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008383836040516020018080602001831515151581526020018281038252858582818152602001925080828437600083820181905260408051601f909301601f19908116909501838103909501835293845281516020928301206001600160a01b038f1682526001909252928320819055975050426224ea00019550935061078f92506104c1915050565b6001600160a01b031614156107a15750425b6001600160a01b0386166000818152600260209081526040918290208490558151861515918101919091528181529081018690527f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b908790879087908060608101858580828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b61083a611023565b565b61084533610fef565b610888576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610890610e6d565b6108dc576040805162461bcd60e51b815260206004820152601860248201527712535413115351539510551253d397d1925390531256915160421b604482015290519081900360640190fd5b6108e46110ea565b15610928576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b6001600160a01b03841660009081526002602052604090205480610993576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b428111156109e2576040805162461bcd60e51b8152602060048201526017602482015276155411d490511157d393d517d153905093115117d65155604a1b604482015290519081900360640190fd5b6001600160a01b0385166000908152600160209081526040918290205482518515158185015291820192835260608201869052918691869186918190608001858580828437600081840152601f19601f820116905080830192505050945050505050604051602081830303815290604052805190602001208114610aa3576040805162461bcd60e51b815260206004820152601360248201527221a420a723a2a22fa4a724aa24a0a624ad22a960691b604482015290519081900360640190fd5b610aac8661124e565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610b5d5780518252601f199092019160209182019101610b3e565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610bbd576040519150601f19603f3d011682016040523d82523d6000602084013e610bc2565b606091505b5091509150818190610c525760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c17578181015183820152602001610bff565b50505050905090810190601f168015610c445780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610caf5780518252601f199092019160209182019101610c90565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b50909250905081610d68576040805162461bcd60e51b815260206004820152601960248201527810d0531317d513d7d254d19493d6915397d491559154951151603a1b604482015290519081900360640190fd5b808060200190516020811015610d7d57600080fd5b505115610dcd576040805162461bcd60e51b81526020600482015260196024820152782722abafa4a6a82622a6a2a72a20aa24a7a72fa32927ad22a760391b604482015290519081900360640190fd5b60018515151415610e1557610de0611272565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b6040516001600160a01b038916907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050505050505050565b6104ef81611298565b6000610e6782610fef565b92915050565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b6224ea0081565b61083a611395565b610eab33610fef565b610eee576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b0382161415610f43576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b6000610f4d61142c565b9050610f5882610fef565b610f98576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b600080610ffa61142c565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b3b151590565b600061102d61142c565b60018101549091506001600160a01b0316331461108b576040805162461bcd60e51b815260206004820152601760248201527627a7262cafa1a0a72224a220aa22afa3a7ab22a92727a960491b604482015290519081900360640190fd5b60018101546110a2906001600160a01b03166114fc565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806110f56104c1565b90506001600160a01b03811661110f57600091505061124b565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106111755780518252601f199092019160209182019101611156565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146111d5576040519150601f19603f3d011682016040523d82523d6000602084013e6111da565b606091505b509150915081819061122d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c17578181015183820152602001610bff565b5080806020019051602081101561124357600080fd5b505193505050505b90565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b6112a133610fef565b6112e4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006112ee61142c565b90506112f982610fef565b1561133e576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b61139e33610fef565b6113e1576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006113eb61142c565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000606061143861157c565b9050600080826040518082805190602001908083835b6020831061146d5780518252601f19909201916020918201910161144e565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220600180820154919450600160a01b90910460ff1615151491506114f69050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b61150581610fef565b1561154a576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b600061155461142c565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b606060405180606001604052806027815260200161159d6027913990509056fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea265627a7a723158208b1d55c2ed53dac498876abf4d45681898c9ff1fbd88f8103d56de2194a879ab64736f6c634300050f0032537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6e

Deployed Bytecode

0x6080604052600436106100b25760003560e01c80636684b1d61161006f5780636684b1d6146103615780637147855d146103765780638757653f146103f6578063b449ea5d14610429578063e907fa3c14610470578063f7b456d014610485578063f9bcdde4146104ac576100b2565b806312f16e6d1461013657806322175a321461016b578063439fab911461019e57806356f36dbf146102195780635c60da1b146102a35780635e3a97e7146102d4575b60006100bc6104c1565b90506001600160a01b038116610112576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e808015610131573d6000f35b3d6000fd5b34801561014257600080fd5b506101696004803603602081101561015957600080fd5b50356001600160a01b03166104e6565b005b34801561017757600080fd5b506101696004803603602081101561018e57600080fd5b50356001600160a01b03166104f2565b3480156101aa57600080fd5b50610169600480360360208110156101c157600080fd5b810190602081018135600160201b8111156101db57600080fd5b8201836020820111156101ed57600080fd5b803590602001918460018302840111600160201b8311171561020e57600080fd5b5090925090506105fb565b34801561022557600080fd5b5061022e610641565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610268578181015183820152602001610250565b50505050905090810190601f1680156102955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102af57600080fd5b506102b86104c1565b604080516001600160a01b039092168252519081900360200190f35b3480156102e057600080fd5b50610169600480360360608110156102f757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561032157600080fd5b82018360208201111561033357600080fd5b803590602001918460018302840111600160201b8311171561035457600080fd5b919350915035151561065d565b34801561036d57600080fd5b50610169610832565b6101696004803603606081101561038c57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156103b657600080fd5b8201836020820111156103c857600080fd5b803590602001918460018302840111600160201b831117156103e957600080fd5b919350915035151561083c565b34801561040257600080fd5b506101696004803603602081101561041957600080fd5b50356001600160a01b0316610e53565b34801561043557600080fd5b5061045c6004803603602081101561044c57600080fd5b50356001600160a01b0316610e5c565b604080519115158252519081900360200190f35b34801561047c57600080fd5b5061045c610e6d565b34801561049157600080fd5b5061049a610e93565b60408051918252519081900360200190f35b3480156104b857600080fd5b50610169610e9a565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b6104ef81610ea2565b50565b6104fb33610fef565b61053e576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6001600160a01b038116600090815260026020526040902054806105a9576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b6001600160a01b03821660008181526002602090815260408083208390556001909152808220829055517faf23121e2402485071dadf421078b368d7b67e54cabcc81540563c5d6bf1a4c39190a25050565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b60405180606001604052806027815260200161159d6027913981565b61066633610fef565b6106a9576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6106bb846001600160a01b031661101d565b610703576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008383836040516020018080602001831515151581526020018281038252858582818152602001925080828437600083820181905260408051601f909301601f19908116909501838103909501835293845281516020928301206001600160a01b038f1682526001909252928320819055975050426224ea00019550935061078f92506104c1915050565b6001600160a01b031614156107a15750425b6001600160a01b0386166000818152600260209081526040918290208490558151861515918101919091528181529081018690527f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b908790879087908060608101858580828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b61083a611023565b565b61084533610fef565b610888576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610890610e6d565b6108dc576040805162461bcd60e51b815260206004820152601860248201527712535413115351539510551253d397d1925390531256915160421b604482015290519081900360640190fd5b6108e46110ea565b15610928576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b6001600160a01b03841660009081526002602052604090205480610993576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b428111156109e2576040805162461bcd60e51b8152602060048201526017602482015276155411d490511157d393d517d153905093115117d65155604a1b604482015290519081900360640190fd5b6001600160a01b0385166000908152600160209081526040918290205482518515158185015291820192835260608201869052918691869186918190608001858580828437600081840152601f19601f820116905080830192505050945050505050604051602081830303815290604052805190602001208114610aa3576040805162461bcd60e51b815260206004820152601360248201527221a420a723a2a22fa4a724aa24a0a624ad22a960691b604482015290519081900360640190fd5b610aac8661124e565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610b5d5780518252601f199092019160209182019101610b3e565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610bbd576040519150601f19603f3d011682016040523d82523d6000602084013e610bc2565b606091505b5091509150818190610c525760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c17578181015183820152602001610bff565b50505050905090810190601f168015610c445780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610caf5780518252601f199092019160209182019101610c90565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b50909250905081610d68576040805162461bcd60e51b815260206004820152601960248201527810d0531317d513d7d254d19493d6915397d491559154951151603a1b604482015290519081900360640190fd5b808060200190516020811015610d7d57600080fd5b505115610dcd576040805162461bcd60e51b81526020600482015260196024820152782722abafa4a6a82622a6a2a72a20aa24a7a72fa32927ad22a760391b604482015290519081900360640190fd5b60018515151415610e1557610de0611272565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b6040516001600160a01b038916907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050505050505050565b6104ef81611298565b6000610e6782610fef565b92915050565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b6224ea0081565b61083a611395565b610eab33610fef565b610eee576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b0382161415610f43576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b6000610f4d61142c565b9050610f5882610fef565b610f98576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b600080610ffa61142c565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b3b151590565b600061102d61142c565b60018101549091506001600160a01b0316331461108b576040805162461bcd60e51b815260206004820152601760248201527627a7262cafa1a0a72224a220aa22afa3a7ab22a92727a960491b604482015290519081900360640190fd5b60018101546110a2906001600160a01b03166114fc565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806110f56104c1565b90506001600160a01b03811661110f57600091505061124b565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106111755780518252601f199092019160209182019101611156565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146111d5576040519150601f19603f3d011682016040523d82523d6000602084013e6111da565b606091505b509150915081819061122d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c17578181015183820152602001610bff565b5080806020019051602081101561124357600080fd5b505193505050505b90565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b6112a133610fef565b6112e4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006112ee61142c565b90506112f982610fef565b1561133e576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b61139e33610fef565b6113e1576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006113eb61142c565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000606061143861157c565b9050600080826040518082805190602001908083835b6020831061146d5780518252601f19909201916020918201910161144e565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220600180820154919450600160a01b90910460ff1615151491506114f69050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b61150581610fef565b1561154a576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b600061155461142c565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b606060405180606001604052806027815260200161159d6027913990509056fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea265627a7a723158208b1d55c2ed53dac498876abf4d45681898c9ff1fbd88f8103d56de2194a879ab64736f6c634300050f0032

Deployed Bytecode Sourcemap

2960:9263:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6286:23;6312:16;:14;:16::i;:::-;6286:42;-1:-1:-1;;;;;;6347:31:4;;6338:67;;;;;-1:-1:-1;;;6338:67:4;;;;;;;;;;;;-1:-1:-1;;;6338:67:4;;;;;;;;;;;;;;;6748:12;6745:1;6742;6729:32;6965:1;6962;6948:12;6945:1;6928:15;6923:3;6910:57;7041:14;7038:1;7035;7020:36;7077:6;7144:36;;;;7213:14;7210:1;7203:25;7144:36;7163:14;7160:1;7153:25;2570:117:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2570:117:5;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2570:117:5;-1:-1:-1;;;;;2570:117:5;;:::i;:::-;;9890:445:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9890:445:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9890:445:4;-1:-1:-1;;;;;9890:445:4;;:::i;5511:120::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5511:120:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5511:120:4;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;5511:120:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;5511:120:4;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;5511:120:4;;-1:-1:-1;5511:120:4;-1:-1:-1;5511:120:4;:::i;2084:87:5:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2084:87:5;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2084:87:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7323:259:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7323:259:4;;;:::i;:::-;;;;-1:-1:-1;;;;;7323:259:4;;;;;;;;;;;;;;8851:805;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8851:805:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;8851:805:4;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;8851:805:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;8851:805:4;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;8851:805:4;;-1:-1:-1;8851:805:4;-1:-1:-1;8851:805:4;;;;:::i;2693:89:5:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2693:89:5;;;:::i;10800:1421:4:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;10800:1421:4;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;10800:1421:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;10800:1421:4;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;10800:1421:4;;-1:-1:-1;10800:1421:4;-1:-1:-1;10800:1421:4;;;;:::i;2451:113:5:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2451:113:5;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2451:113:5;-1:-1:-1;;;;;2451:113:5;;:::i;2321:124::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2321:124:5;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2321:124:5;-1:-1:-1;;;;;2321:124:5;;:::i;:::-;;;;;;;;;;;;;;;;;;7990:308:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7990:308:4;;;:::i;4490:58::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4490:58:4;;;:::i;:::-;;;;;;;;;;;;;;;;2788:77:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2788:77:5;;;:::i;7323:259:4:-;3977:66;7555:11;;7522:54::o;2570:117:5:-;2646:34;2661:18;2646:14;:34::i;:::-;2570:117;:::o;9890:445:4:-;2582:22:1;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;-1:-1:-1;;;;;10074:30:4;;10048:23;10074:30;;;:11;:30;;;;;;10123:19;10115:61;;;;;-1:-1:-1;;;10115:61:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10187:30:4;;10220:1;10187:30;;;:11;:30;;;;;;;;:34;;;10232:18;:37;;;;;;:41;;;10288:40;;;10220:1;10288:40;2634:1:1;9890:445:4;:::o;5511:120::-;5592:32;;;-1:-1:-1;;;5592:32:4;;;;;;;;;;;;-1:-1:-1;;;5592:32:4;;;;;;;;;;;;;;2084:87:5;;;;;;;;;;;;;;;;;;;:::o;8851:805:4:-;2582:22:1;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;8991:30:4;:17;-1:-1:-1;;;;;8991:28:4;;:30::i;:::-;8983:63;;;;;-1:-1:-1;;;8983:63:4;;;;;;;;;;;;-1:-1:-1;;;8983:63:4;;;;;;;;;;;;;;;9057:17;9098:4;;9104:8;9087:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;;;9087:26:4;;;137:4:-1;117:14;;;-1:-1;;113:30;;;157:16;;;26:21;;;22:32;;;6:49;;9087:26:4;;;9077:37;;49:4:-1;9077:37:4;;;;-1:-1:-1;;;;;9124:37:4;;;;:18;:37;;;;;;:49;;;9077:37;-1:-1:-1;;9272:3:4;4541:7;9272:30;;-1:-1:-1;99:1;-1:-1;9376:16:4;;-1:-1:-1;9376:14:4;;-1:-1:-1;;9376:16:4:i;:::-;-1:-1:-1;;;;;9376:32:4;;9372:150;;;-1:-1:-1;9508:3:4;9372:150;-1:-1:-1;;;;;9532:30:4;;;;;;:11;:30;;;;;;;;;:48;;;9595:54;;;;;;;;;;;;;;;;;;;;;;;9634:4;;;;9640:8;;9595:54;;;;9634:4;;;;9595:54;1:33:-1;99:1;81:16;;;74:27;9595:54:4;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;9595:54:4;;;;-1:-1:-1;9595:54:4;;-1:-1:-1;;;;;9595:54:4;2634:1:1;;8851:805:4;;;;:::o;2693:89:5:-;2757:18;:16;:18::i;:::-;2693:89::o;10800:1421:4:-;2582:22:1;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;5683:16:4;:14;:16::i;:::-;5675:53;;;;;-1:-1:-1;;;5675:53:4;;;;;;;;;;;;-1:-1:-1;;;5675:53:4;;;;;;;;;;;;;;;5972:24;:22;:24::i;:::-;:33;5964:61;;;;;-1:-1:-1;;;5964:61:4;;;;;;;;;;;;-1:-1:-1;;;5964:61:4;;;;;;;;;;;;;;;-1:-1:-1;;;;;10981:30:4;;10955:23;10981:30;;;:11;:30;;;;;;11030:19;11022:61;;;;;-1:-1:-1;;;11022:61:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;11182:3;11163:15;:22;;11155:58;;;;;-1:-1:-1;;;11155:58:4;;;;;;;;;;;;-1:-1:-1;;;11155:58:4;;;;;;;;;;;;;;;-1:-1:-1;;;;;11251:37:4;;11224:24;11251:37;;;:18;:37;;;;;;;;;;11336:26;;;;;;;;;;;;;;;;;;;;;11251:37;11347:4;;;;11353:8;;11336:26;;;;11347:4;;;;11336:26;1:33:-1;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;11336::4;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;11336:26:4;;;11326:37;;;;;;11306:16;:57;11298:89;;;;;-1:-1:-1;;;11298:89:4;;;;;;;;;;;;-1:-1:-1;;;11298:89:4;;;;;;;;;;;;;;;11397:36;11415:17;11397;:36::i;:::-;11509:12;11523:23;11550:17;-1:-1:-1;;;;;11550:30:4;11617:24;;;11643:4;;11594:54;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;11594:54:4;;;137:4:-1;117:14;;;-1:-1;;113:30;;;157:16;;;26:21;;;22:32;;;6:49;;11594:54:4;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;11594:54:4;;;179:29:-1;;;;160:49;;11550:99:4;;;;11594:54;;11550:99;;-1:-1:-1;11550:99:4;;-1:-1:-1;25:18;-1:-1;11550:99:4;;-1:-1:-1;11550:99:4;;-1:-1:-1;11550:99:4;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;11550:99:4;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;11508:141:4;;;;11667:7;11683:10;11659:36;;;;;-1:-1:-1;;;11659:36:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;11659:36:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11855:37:4;;;22:32:-1;6:49;;11855:37:4;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;11811:82:4;;;;-1:-1:-1;;;;;11811:30:4;;;:82;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;11811:82:4;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;11787:106:4;;-1:-1:-1;11787:106:4;-1:-1:-1;11787:106:4;11903:45;;;;;-1:-1:-1;;;11903:45:4;;;;;;;;;;;;-1:-1:-1;;;11903:45:4;;;;;;;;;;;;;;;11977:10;11966:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11966:30:4;:39;11958:77;;;;;-1:-1:-1;;;11958:77:4;;;;;;;;;;;;-1:-1:-1;;;11958:77:4;;;;;;;;;;;;;;;12062:4;12050:16;;;;12046:126;;;12082:18;:16;:18::i;:::-;12119:42;;-1:-1:-1;;;;;12119:42:4;;;;;;;;12046:126;12187:27;;-1:-1:-1;;;;;12187:27:4;;;;;;;;6035:1;;;;10800:1421;;;;:::o;2451:113:5:-;2525:32;2545:11;2525:19;:32::i;2321:124::-;2391:4;2414:24;2425:12;2414:10;:24::i;:::-;2407:31;2321:124;-1:-1:-1;;2321:124:5:o;7990:308:4:-;4418:66;8234:11;8276:14;;7990:308::o;4490:58::-;4541:7;4490:58;:::o;2788:77:5:-;2840:18;:16;:18::i;4649:408:1:-;2582:22;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;4745:10;-1:-1:-1;;;;;4745:32:1;;;;4737:65;;;;;-1:-1:-1;;;4737:65:1;;;;;;;;;;;;-1:-1:-1;;;4737:65:1;;;;;;;;;;;;;;;4812:32;4847:24;:22;:24::i;:::-;4812:59;;4890:30;4901:18;4890:10;:30::i;:::-;4881:56;;;;;-1:-1:-1;;;4881:56:1;;;;;;;;;;;;-1:-1:-1;;;4881:56:1;;;;;;;;;;;;;;;-1:-1:-1;;;;;4947:42:1;;4992:5;4947:42;;;;;;;;;;;;:50;;-1:-1:-1;;4947:50:1;;;5012:38;;;;;;;;;;;;;;;;;2634:1;4649:408;:::o;2648:246::-;2729:22;2762:32;2797:24;:22;:24::i;:::-;-1:-1:-1;;;;;2851:36:1;;;:22;:36;;;;;;;;-1:-1:-1;;2851:36:1;;;;;;;2648:246::o;715:254:0:-;908:20;954:8;;;715:254::o;4078:514:1:-;4218:32;4253:24;:22;:24::i;:::-;4309:21;;;;;;-1:-1:-1;;;;;;4309:21:1;4295:10;:35;4287:71;;;;;-1:-1:-1;;;4287:71:1;;;;;;;;;;;;-1:-1:-1;;;4287:71:1;;;;;;;;;;;;;;;4406:21;;;;4394:34;;-1:-1:-1;;;;;4406:21:1;4394:11;:34::i;:::-;4438:21;;;:36;;-1:-1:-1;;;;;;4438:36:1;;;4551:34;;;4574:10;4551:34;;;;;;;;;;;;;4078:514;:::o;4794:574:4:-;4845:4;4861:23;4887:16;:14;:16::i;:::-;4861:42;-1:-1:-1;;;;;;5003:31:4;;4999:74;;5057:5;5050:12;;;;;4999:74;5230:37;;;22:32:-1;6:49;;5230:37:4;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;5188:80:4;;;;5147:12;;5161:23;;-1:-1:-1;;;;;5188:28:4;;;5230:37;;5188:80;;;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;5188:80:4;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;5146:122:4;;;;5286:7;5302:10;5278:36;;;;;-1:-1:-1;;;5278:36:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;5278:36:4;;5342:10;5331:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5331:30:4;;-1:-1:-1;;;;4794:574:4;;:::o;7654:250::-;3977:66;7857:31;7843:55::o;8371:211::-;8562:3;4418:66;8549:17;8535:41::o;3189:316:1:-;2582:22;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;3275:32;3310:24;:22;:24::i;:::-;3275:59;;3352:23;3363:11;3352:10;:23::i;:::-;:32;3344:61;;;;;-1:-1:-1;;;3344:61:1;;;;;;;;;;;;-1:-1:-1;;;3344:61:1;;;;;;;;;;;;;;;3415:21;;;:35;;-1:-1:-1;;;;;3415:35:1;;-1:-1:-1;;;;;;3415:35:1;;;;;;;;3465:33;;;;;;;;;;;;;;;;2634:1;3189:316;:::o;2968:215::-;2582:22;2593:10;2582;:22::i;:::-;2574:50;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;-1:-1:-1;;;2574:50:1;;;;;;;;;;;;;;;3032:32;3067:24;:22;:24::i;:::-;3101:21;;;:36;;-1:-1:-1;;;;;;3101:36:1;;;3152:24;;3032:59;;-1:-1:-1;3152:24:1;;1540:3;;3152:24;2634:1;2968:215::o;1837:311::-;1918:28;1958:17;1978:18;:16;:18::i;:::-;1958:38;;2006:32;2041:14;2056:3;2041:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;2041:19:1;;;;;-1:-1:-1;2041:19:1;;;;;;;;;;274:1:-1;2078:15:1;;;;2041:19;;-1:-1:-1;;;;2078:15:1;;;;;:23;;;;-1:-1:-1;2070:51:1;;-1:-1:-1;2070:51:1;;;;-1:-1:-1;;;2070:51:1;;;;;;;;;;;;-1:-1:-1;;;2070:51:1;;;;;;;;;;;;;;;2138:3;-1:-1:-1;;1837:311:1;:::o;3823:249::-;3891:23;3902:11;3891:10;:23::i;:::-;:32;3883:61;;;;;-1:-1:-1;;;3883:61:1;;;;;;;;;;;;-1:-1:-1;;;3883:61:1;;;;;;;;;;;;;;;3954:32;3989:24;:22;:24::i;:::-;-1:-1:-1;;;;;4023:35:1;;;:22;:35;;;;;;;;-1:-1:-1;4023:35:1;;;:42;;-1:-1:-1;;4023:42:1;4061:4;4023:42;;;3823:249::o;2178:137:5:-;2253:17;2288:20;;;;;;;;;;;;;;;;;2282:26;;2178:137;:::o

Swarm Source

bzzr://8b1d55c2ed53dac498876abf4d45681898c9ff1fbd88f8103d56de2194a879ab

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
Chain Token Portfolio % Price Amount Value
ETH
Ether (ETH)
71.83%$2,916.469,343.7799$27,250,724.74
ETH9.01%$0.9986083,421,675.8322$3,416,912.86
ETH6.79%$0.4824735,335,966.3185$2,574,457.88
ETH4.73%$54,76332.782$1,795,242.04
ETH3.61%$0.9996791,368,940.0558$1,368,500.63
ETH1.98%$3,360.59223.2931$750,396.65
ETH0.43%$3,227.3550.1196$161,753.45
ETH0.25%$0.446383216,673.9393$96,719.56
ETH0.23%$475.38184.3144$87,619.4
ETH0.22%$0.510982162,299.5622$82,932.15
ETH0.18%$0.99752568,427.8153$68,258.46
ETH0.14%$1.5934,591.0224$54,999.73
ETH0.13%$3.9612,762.5045$50,539.52
ETH0.11%$7.165,715.123$40,920.28
ETH0.04%$3,680.664.2317$15,575.44
ETH0.03%$0.21649960,294.6287$13,053.73
ETH0.03%$0.36050734,931.9403$12,593.21
ETH0.03%$2,057.265.8248$11,983.05
ETH0.03%$11.581,016.119$11,766.66
ETH0.03%$0.023583446,200.591$10,522.91
ETH0.03%$76.75134.0034$10,285.33
ETH0.02%$0.15000362,864.685$9,429.89
ETH0.02%$2.921,969.4153$5,750.69
ETH0.01%$2,363.711.8922$4,472.67
ETH0.01%$0.005726663,164.5702$3,797.36
ETH<0.01%$10.36296.3846$3,070.54
ETH<0.01%$0.023674109,293.1212$2,587.41
ETH<0.01%$43.655.511$2,420.28
ETH<0.01%$0.6141663,920.1454$2,407.62
ETH<0.01%$19.15117.8016$2,255.9
ETH<0.01%$18.04112.3872$2,027.46
ETH<0.01%$5,557.110.3606$2,004.03
ETH<0.01%$2.25825.3253$1,856.98
ETH<0.01%$7.38242.8981$1,792.59
ETH<0.01%$0.000013115,627,630.4759$1,559.82
ETH<0.01%$0.1359649,434.7427$1,282.79
ETH<0.01%$0.2772563,344.2014$927.2
ETH<0.01%$0.1580483,665.2028$579.28
ETH<0.01%$0.2286732,408.4621$550.75
ETH<0.01%$78.57.0075$550.12
ETH<0.01%$0.4847461,066.3998$516.93
ETH<0.01%$1.49288.6716$430.12
ETH<0.01%$0.3312191,165.1232$385.91
ETH<0.01%$0.269336840.979$226.51
ETH<0.01%$0.000546330,889.2827$180.67
ETH<0.01%$0.0273936,198.3309$169.79
ETH<0.01%$0.257242650.5443$167.35
ETH<0.01%$0.00250665,741.4089$164.77
ETH<0.01%$53.422.1824$116.58
ETH<0.01%$0.00072499,219$71.8
ETH<0.01%$0.0153874,109.5686$63.23
ETH<0.01%$0.162576264.3045$42.97
ETH<0.01%$0.68886941.3713$28.5
ETH<0.01%$0.64737229.9825$19.41
ETH<0.01%$2.295.5516$12.71
ETH<0.01%$2.062.9259$6.03
ETH<0.01%$0.0009431,000$0.9433
ETH<0.01%$0.002942301$0.8855
ETH<0.01%$0.0004651,899.4575$0.8841
ETH<0.01%$0.02823710$0.2823
ETH<0.01%$0.0031545$0.1417
ARB<0.01%$2,915.40.3206$934.56
LINEA<0.01%$2,916.460.0144$42.02
BSC<0.01%$475.620.0745$35.44
OP<0.01%$2,915.40.00990403$28.87
OPBNB<0.01%$475.620.03$14.27
MATIC<0.01%$0.44846922.1377$9.93
SCROLL<0.01%$2,916.460.003$8.75
TAIKO<0.01%$2,916.460.00058$1.69
AVAX<0.01%$23.610.0355$0.837317
GNO<0.01%$10.00000001<$0.000001
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.