ETH Price: $3,406.11 (-4.29%)
Gas: 9 Gwei

Contract

0xD54f502e184B6B739d7D27a6410a67dc462D69c8
 

Multichain Info

Transaction Hash
Method
Block
From
To
Value
0x33911b75969834d9b82fa22413d33f21f83861e108834812f079337971c13cb7 Register User(pending)2024-06-18 17:49:411 hr ago1718732981IN
dYdX: L2 Perpetual Smart Contract
0 ETH(Pending)(Pending)
0xb57b49e613a3ccb346ae4ddc01c1f0a0c4ab528eae7eb2d869cf57c14897fa43 Withdraw(pending)2024-06-16 1:37:382 days ago1718501858IN
dYdX: L2 Perpetual Smart Contract
0 ETH(Pending)(Pending)
Update State201199242024-06-18 16:47:112 hrs ago1718729231IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0054490711.81158935
Withdraw201186822024-06-18 12:36:356 hrs ago1718714195IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000831968.15155085
Update State201186502024-06-18 12:29:596 hrs ago1718713799IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.004095047.46707666
Withdraw201183252024-06-18 11:24:237 hrs ago1718709863IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000701616.87444794
Withdraw201183252024-06-18 11:24:237 hrs ago1718709863IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000725117.10466291
Withdraw201176212024-06-18 9:01:239 hrs ago1718701283IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000530446.24417335
Update State201176012024-06-18 8:57:119 hrs ago1718701031IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.003477146.02181725
Withdraw201172332024-06-18 7:42:3511 hrs ago1718696555IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000548596.45780261
Update State201172182024-06-18 7:39:3511 hrs ago1718696375IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.002482186.19157118
Update State201171872024-06-18 7:33:2311 hrs ago1718696003IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.002002365.42361474
Withdraw To201170172024-06-18 6:58:5911 hrs ago1718693939IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000723178.46182882
Update State201170022024-06-18 6:55:5911 hrs ago1718693759IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.004389669.34558121
Withdraw201167382024-06-18 6:03:1112 hrs ago1718690591IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000435095.12181042
Update State201167232024-06-18 6:00:1112 hrs ago1718690411IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.002166244.93037477
Withdraw201163272024-06-18 4:40:2314 hrs ago1718685623IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000624366.11752798
Withdraw201156962024-06-18 2:32:3516 hrs ago1718677955IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0018551418.17660165
Withdraw201156942024-06-18 2:32:1116 hrs ago1718677931IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0019295118.90532822
Update State201156062024-06-18 2:14:2316 hrs ago1718676863IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0113069922.62485375
Update State201145412024-06-17 22:39:3520 hrs ago1718663975IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.003468247.8408069
Withdraw201143212024-06-17 21:55:1120 hrs ago1718661311IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.000427824.19178684
Withdraw201138082024-06-17 20:12:1122 hrs ago1718655131IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.001020612.01418858
Update State201137892024-06-17 20:08:2322 hrs ago1718654903IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0074764614.93872927
Withdraw201127582024-06-17 16:40:1126 hrs ago1718642411IN
dYdX: L2 Perpetual Smart Contract
0 ETH0.0017652421.69618398
View all transactions

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
194839212024-03-21 15:27:1189 days ago1711034831
dYdX: L2 Perpetual Smart Contract
0.01057707 ETH
194838612024-03-21 15:15:1189 days ago1711034111
dYdX: L2 Perpetual Smart Contract
0.00931684 ETH
168714502023-03-20 21:06:11455 days ago1679346371
dYdX: L2 Perpetual Smart Contract
0.0028939 ETH
155310012022-09-14 4:39:16643 days ago1663130356
dYdX: L2 Perpetual Smart Contract
0.008 ETH
155309672022-09-14 4:33:14643 days ago1663129994
dYdX: L2 Perpetual Smart Contract
0.008 ETH
155308942022-09-14 4:11:00643 days ago1663128660
dYdX: L2 Perpetual Smart Contract
0.008 ETH
155307532022-09-14 3:36:55643 days ago1663126615
dYdX: L2 Perpetual Smart Contract
0.008 ETH
155307532022-09-14 3:36:55643 days ago1663126615
dYdX: L2 Perpetual Smart Contract
0.008 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Proxy

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

import "ProxyGovernance.sol";
import "ProxyStorage.sol";
import "StorageSlots.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, StorageSlots {

    // 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);

    using Addresses for address;

    constructor (uint256 upgradeActivationDelay)
        public
    {
        initGovernance();
        setUpgradeActivationDelay(upgradeActivationDelay);
    }

    function setUpgradeActivationDelay(uint256 delayInSeconds) private {
        bytes32 slot = UPGRADE_DELAY_SLOT;
        assembly {
            sstore(slot, delayInSeconds)
        }
    }

    function getUpgradeActivationDelay() public view returns (uint256 delay) {
        bytes32 slot = UPGRADE_DELAY_SLOT;
        assembly {
            delay := sload(slot)
        }
        return delay;
    }

    /*
      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 == address(0x0)) {
            return false;
        }

        // NOLINTNEXTLINE: 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(), "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.
    */
    fallback() external payable {
        address _implementation = implementation();
        require (_implementation != address(0x0), "MISSING_IMPLEMENTATION");

        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()) }
        }
    }

    /*
      Sets the implementation address of the proxy.
    */
    function setImplementation(address newImplementation) private {
        bytes32 slot = IMPLEMENTATION_SLOT;
        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;
        assembly {
            slotValue := sload(slot)
        }
        notFinal = (slotValue == 0);
    }

    /*
      Marks the current implementation as finalized.
    */
    function setFinalizedFlag() private {
        bytes32 slot = FINALIZED_STATE_SLOT;
        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;

        uint256 activation_time = block.timestamp + getUpgradeActivationDelay();

        // First implementation should not have time-lock.
        if (implementation() == address(0x0)) {
            activation_time = block.timestamp;
        }

        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 initializing vector (even if empty).
      Therefore, the implementation MUST must have such a method.

      Note - Initialization data is committed to in advance, therefore it must remain valid
      until the actual contract upgrade takes place.

      Care should be taken regarding initialization data and flow when planning the contract upgrade.

      When planning contract upgrade, special care is also needed with regard to governance
      (See comments in Governance.sol).
    */
    // NOLINTNEXTLINE: reentrancy-events timestamp.
    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");
        require(newImplementation.isContract(), "ADDRESS_NOT_CONTRACT");
        // NOLINTNEXTLINE: timestamp.
        require(activation_time <= block.timestamp, "UPGRADE_NOT_ENABLED_YET");

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

        // NOLINTNEXTLINE: low-level-calls controlled-delegatecall.
        (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.
        // NOLINTNEXTLINE: low-level-calls controlled-delegatecall.
        (success, returndata) = newImplementation.delegatecall(
            abi.encodeWithSignature("isFrozen()"));
        require(success, "CALL_TO_ISFROZEN_REVERTED");
        require(!abi.decode(returndata, (bool)), "NEW_IMPLEMENTATION_FROZEN");

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

        emit Upgraded(newImplementation);
    }
}

File 2 of 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

/*
  Common Utility librarries.
  I. Addresses (extending address).
*/
library Addresses {
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function performEthTransfer(address recipient, uint256 amount) internal {
        (bool success, ) = recipient.call{value: amount}(""); // NOLINT: low-level-calls.
        require(success, "ETH_TRANSFER_FAILED");
    }

    /*
      Safe wrapper around ERC20/ERC721 calls.
      This is required because many deployed ERC20 contracts don't return a value.
      See https://github.com/ethereum/solidity/issues/4116.
    */
    function safeTokenContractCall(address tokenAddress, bytes memory callData) internal {
        require(isContract(tokenAddress), "BAD_TOKEN_ADDRESS");
        // NOLINTNEXTLINE: low-level-calls.
        (bool success, bytes memory returndata) = tokenAddress.call(callData);
        require(success, string(returndata));

        if (returndata.length > 0) {
            require(abi.decode(returndata, (bool)), "TOKEN_OPERATION_FAILED");
        }
    }

    /*
      Similar to safeTokenContractCall, but always ignores the return value.

      Assumes some other method is used to detect the failures
      (e.g. balance is checked before and after the call).
    */
    function uncheckedTokenContractCall(address tokenAddress, bytes memory callData) internal {
        // NOLINTNEXTLINE: low-level-calls.
        (bool success, bytes memory returndata) = tokenAddress.call(callData);
        require(success, string(returndata));
    }

}

library UintArray {
    function hashSubArray(uint256[] memory array, uint256 subArrayStart, uint256 subArraySize)
        internal pure
        returns(bytes32 subArrayHash)
    {
        require(array.length >= subArrayStart + subArraySize, "ILLEGAL_SUBARRAY_DIMENSIONS");
        uint256 startOffsetBytes = 0x20 * (1 + subArrayStart);
        uint256 dataSizeBytes = 0x20 * subArraySize;
        assembly {
            subArrayHash := keccak256(add(array, startOffsetBytes), dataSizeBytes)
        }
    }

    /*
      Returns the address of a cell in offset within a uint256[] array.
      This allows assigning new variable of dynamic unit256[] pointing to a sub_array
      with a layout of serialied uint256[] (i.e. length+content).
    */
    function extractSerializedUintArray(uint256[] memory programOutput, uint256 offset)
        internal pure
        returns (uint256[] memory addr)
    {
        uint256 memOffset = 0x20 * (offset + 1);
        assembly {
            addr := add(programOutput, memOffset)
        }
    }

}

/*
  II. StarkExTypes - Common data types.
*/
library StarkExTypes {

    // Structure representing a list of verifiers (validity/availability).
    // A statement is valid only if all the verifiers in the list agree on it.
    // Adding a verifier to the list is immediate - this is used for fast resolution of
    // any soundness issues.
    // Removing from the list is time-locked, to ensure that any user of the system
    // not content with the announced removal has ample time to leave the system before it is
    // removed.
    struct ApprovalChainData {
        address[] list;
        // Represents the time after which the verifier with the given address can be removed.
        // Removal of the verifier with address A is allowed only in the case the value
        // of unlockedForRemovalTime[A] != 0 and unlockedForRemovalTime[A] < (current time).
        mapping (address => uint256) unlockedForRemovalTime;
    }
}

File 3 of 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

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.
*/
abstract contract Governance is GovernanceStorage, MGovernance {
    event LogNominatedGovernor(address nominatedGovernor);
    event LogNewGovernorAccepted(address acceptedGovernor);
    event LogRemovedGovernor(address removedGovernor);
    event LogNominationCancelled();

    /*
      Returns a string which uniquely identifies the type of the governance mechanism.
    */
    function getGovernanceTag()
        virtual
        internal
        pure
        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, "NOT_INITIALIZED");
        return gub;
    }

    /*
      Current code intentionally prevents governance re-initialization.
      This may be a problem in an upgrade situation, in a case that the upgrade-to implementation
      performs an initialization (for real) and within that calls initGovernance().

      Possible workarounds:
      1. Clearing the governance info altogether by changing the MAIN_GOVERNANCE_INFO_TAG.
         This will remove existing main governance information.
      2. Modify the require part in this function, so that it will exit quietly
         when trying to re-initialize (uncomment the lines below).
    */
    function initGovernance()
        internal
    {
        string memory tag = getGovernanceTag();
        GovernanceInfoStruct storage gub = governanceInfo[tag];
        require(!gub.initialized, "ALREADY_INITIALIZED");
        gub.initialized = true;  // to ensure addGovernor() won't fail.
        // Add the initial governer.
        addGovernor(msg.sender);
    }

    modifier onlyGovernance () override
    {
        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 candidate.
    */
    function cancelNomination() internal onlyGovernance() {
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        gub.candidateGovernor = address(0x0);
        emit LogNominationCancelled();
    }

    function nominateNewGovernor(address newGovernor) internal onlyGovernance() {
        GovernanceInfoStruct storage gub = contractGovernanceInfo();
        require(!isGovernor(newGovernor), "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), "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 = address(0x0);

        // 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 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

/*
  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 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

abstract contract MGovernance {
    /*
      Allows calling the function only by a Governor.
    */
    modifier onlyGovernance () virtual; // NOLINT incorrect-modifier.
}

File 6 of 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

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
        pure
        override
        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 8: 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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

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 implementation.
    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 accommodate multiple levels of initialization
    // (i.e. using different key salting schemes for different initialization levels).
    mapping (bytes32 => bool) internal initialized;
}

File 8 of 8: StorageSlots.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.
*/
// SPDX-License-Identifier: Apache-2.0.
pragma solidity ^0.6.11;

/**
  StorageSlots holds the arbitrary storage slots used throughout the Proxy pattern.
  Storage address slots are a mechanism to define an arbitrary location, that will not be
  overlapped by the logical contracts.
*/
contract StorageSlots {
    /*
      Returns the address of the current implementation.
    */
    // NOLINTNEXTLINE external-function.
    function implementation() public view returns(address _implementation) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            _implementation := sload(slot)
        }
    }

    // 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 implementation (the proxied contract).
    bytes32 internal constant IMPLEMENTATION_SLOT =
    0x177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b24;

    // Storage slot with the address of the call-proxy current implementation.
    // The address of the slot is keccak256("'StarkWare2020.CallProxy.Implemntation.Slot'").
    // We need to keep this variable stored outside of the commonly used space.
    // so that it's not overrun by the logical implementation (the proxied contract).
    bytes32 internal constant CALL_PROXY_IMPL_SLOT =
    0x7184681641399eb4ad2fdb92114857ee6ff239f94ad635a1779978947b8843be;

    // 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;

    // Storage slot to hold the upgrade delay (time-lock).
    // The intention of this slot is to allow modification using an EIC.
    // Web3.solidityKeccak(['string'], ['StarkWare.Upgradibility.Delay.Slot']).
    bytes32 public constant UPGRADE_DELAY_SLOT =
    0xc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f;

    // Storage slot to hold the MainDispatcher init safeguard.
    // Web3.solidityKeccak(['string'], ['StarkWare.MainDispatcher.Init.Safeguard.Slot']).
    bytes32 public constant MAIN_DISPATCHER_SAFEGUARD_SLOT =
    0xf3afa5472f846c7817e22b15110d7b184f2d3d6417baee645a1e963b8fac7e24;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"upgradeActivationDelay","type":"uint256"}],"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAIN_DISPATCHER_SAFEGUARD_SLOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROXY_GOVERNANCE_TAG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_DELAY_SLOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"addImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUpgradeActivationDelay","outputs":[{"internalType":"uint256","name":"delay","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isNotFinalized","outputs":[{"internalType":"bool","name":"notFinal","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyAcceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxyCancelNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"testGovernor","type":"address"}],"name":"proxyIsGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newGovernor","type":"address"}],"name":"proxyNominateNewGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"governorForRemoval","type":"address"}],"name":"proxyRemoveGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"removeImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"finalize","type":"bool"}],"name":"upgradeTo","outputs":[],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001a9038038062001a90833981810160405260208110156200003757600080fd5b50516200004c6001600160e01b036200006716565b62000060816001600160e01b036200017416565b5062000362565b60606200007c6001600160e01b036200019816565b9050600080826040518082805190602001908083835b60208310620000b35780518252601f19909201916020918201910162000092565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092206001810154909350600160a01b900460ff16159150620001479050576040805162461bcd60e51b815260206004820152601360248201527f414c52454144595f494e495449414c495a454400000000000000000000000000604482015290519081900360640190fd5b60018101805460ff60a01b1916600160a01b17905562000170336001600160e01b03620001b916565b5050565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f55565b606060405180606001604052806027815260200162001a6960279139905090565b620001cd816001600160e01b036200025016565b1562000213576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6000620002286001600160e01b036200028916565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b600080620002666001600160e01b036200028916565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b60006060620002a06001600160e01b036200019816565b9050600080826040518082805190602001908083835b60208310620002d75780518252601f199092019160209182019101620002b6565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092206001810154909350600160a01b900460ff1691506200035c9050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b6116f780620003726000396000f3fe6080604052600436106100c85760003560e01c80635e3a97e71161007a5780635e3a97e7146103265780636684b1d6146103b35780637147855d146103c857806372a44f07146104485780638757653f1461045d578063b449ea5d14610490578063e907fa3c146104d7578063f9bcdde4146104ec576100c8565b806312f16e6d1461014c57806314778a831461018157806320cea94d146101a857806322175a32146101bd578063439fab91146101f057806356f36dbf1461026b5780635c60da1b146102f5575b60006100d2610501565b90506001600160a01b038116610128576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e808015610147573d6000f35b3d6000fd5b34801561015857600080fd5b5061017f6004803603602081101561016f57600080fd5b50356001600160a01b0316610526565b005b34801561018d57600080fd5b50610196610532565b60408051918252519081900360200190f35b3480156101b457600080fd5b50610196610556565b3480156101c957600080fd5b5061017f600480360360208110156101e057600080fd5b50356001600160a01b031661057a565b3480156101fc57600080fd5b5061017f6004803603602081101561021357600080fd5b810190602081018135600160201b81111561022d57600080fd5b82018360208201111561023f57600080fd5b803590602001918460018302840111600160201b8311171561026057600080fd5b509092509050610683565b34801561027757600080fd5b506102806106c9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ba5781810151838201526020016102a2565b50505050905090810190601f1680156102e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030157600080fd5b5061030a610501565b604080516001600160a01b039092168252519081900360200190f35b34801561033257600080fd5b5061017f6004803603606081101561034957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561037357600080fd5b82018360208201111561038557600080fd5b803590602001918460018302840111600160201b831117156103a657600080fd5b91935091503515156106e5565b3480156103bf57600080fd5b5061017f6108c2565b61017f600480360360608110156103de57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460018302840111600160201b8311171561043b57600080fd5b91935091503515156108cc565b34801561045457600080fd5b50610196610f38565b34801561046957600080fd5b5061017f6004803603602081101561048057600080fd5b50356001600160a01b0316610f5e565b34801561049c57600080fd5b506104c3600480360360208110156104b357600080fd5b50356001600160a01b0316610f67565b604080519115158252519081900360200190f35b3480156104e357600080fd5b506104c3610f78565b3480156104f857600080fd5b5061017f610f9e565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b61052f81610fa6565b50565b7ff3afa5472f846c7817e22b15110d7b184f2d3d6417baee645a1e963b8fac7e2481565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f81565b610583336110f3565b6105c6576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6001600160a01b03811660009081526002602052604090205480610631576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b6001600160a01b03821660008181526002602090815260408083208390556001909152808220829055517faf23121e2402485071dadf421078b368d7b67e54cabcc81540563c5d6bf1a4c39190a25050565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b60405180606001604052806027815260200161169b6027913981565b6106ee336110f3565b610731576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610743846001600160a01b0316611121565b61078b576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008383836040516020018080602001831515151581526020018281038252858582818152602001925080828437600083820181905260408051601f909301601f19908116909501838103909501835293845281516020928301206001600160a01b038f168252600190925292832081905597509095506108119450610f389350505050565b42019050600061081f610501565b6001600160a01b031614156108315750425b6001600160a01b0386166000818152600260209081526040918290208490558151861515918101919091528181529081018690527f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b908790879087908060608101858580828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b6108ca611127565b565b6108d5336110f3565b610918576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610920610f78565b61096c576040805162461bcd60e51b815260206004820152601860248201527712535413115351539510551253d397d1925390531256915160421b604482015290519081900360640190fd5b6109746111ee565b156109b8576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b6001600160a01b03841660009081526002602052604090205480610a23576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b610a35856001600160a01b0316611121565b610a7d576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b42811115610acc576040805162461bcd60e51b8152602060048201526017602482015276155411d490511157d393d517d153905093115117d65155604a1b604482015290519081900360640190fd5b6001600160a01b0385166000908152600160209081526040918290205482518515158185015291820192835260608201869052918691869186918190608001858580828437600081840152601f19601f820116905080830192505050945050505050604051602081830303815290604052805190602001208114610b8d576040805162461bcd60e51b815260206004820152601360248201527221a420a723a2a22fa4a724aa24a0a624ad22a960691b604482015290519081900360640190fd5b610b9686611351565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610c475780518252601f199092019160209182019101610c28565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610ca7576040519150601f19603f3d011682016040523d82523d6000602084013e610cac565b606091505b5091509150818190610d3c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d01578181015183820152602001610ce9565b50505050905090810190601f168015610d2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610d995780518252601f199092019160209182019101610d7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610df9576040519150601f19603f3d011682016040523d82523d6000602084013e610dfe565b606091505b50909250905081610e52576040805162461bcd60e51b815260206004820152601960248201527810d0531317d513d7d254d19493d6915397d491559154951151603a1b604482015290519081900360640190fd5b808060200190516020811015610e6757600080fd5b505115610eb7576040805162461bcd60e51b81526020600482015260196024820152782722abafa4a6a82622a6a2a72a20aa24a7a72fa32927ad22a760391b604482015290519081900360640190fd5b8415610efa57610ec5611375565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b6040516001600160a01b038916907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050505050505050565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f545b90565b61052f8161139b565b6000610f72826110f3565b92915050565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b6108ca611498565b610faf336110f3565b610ff2576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b0382161415611047576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b600061105161152f565b905061105c826110f3565b61109c576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b6000806110fe61152f565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b3b151590565b600061113161152f565b60018101549091506001600160a01b0316331461118f576040805162461bcd60e51b815260206004820152601760248201527627a7262cafa1a0a72224a220aa22afa3a7ab22a92727a960491b604482015290519081900360640190fd5b60018101546111a6906001600160a01b03166115fa565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806111f9610501565b90506001600160a01b038116611213576000915050610f5b565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106112795780518252601f19909201916020918201910161125a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146112d9576040519150601f19603f3d011682016040523d82523d6000602084013e6112de565b606091505b50915091508181906113315760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610d01578181015183820152602001610ce9565b5080806020019051602081101561134757600080fd5b5051935050505090565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b6113a4336110f3565b6113e7576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006113f161152f565b90506113fc826110f3565b15611441576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b6114a1336110f3565b6114e4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006114ee61152f565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000606061153b61167a565b9050600080826040518082805190602001908083835b602083106115705780518252601f199092019160209182019101611551565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092206001810154909350600160a01b900460ff1691506115f49050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b611603816110f3565b15611648576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b600061165261152f565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b606060405180606001604052806027815260200161169b6027913990509056fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea264697066735822122038c13fd5686ed193adffa296e5b7596dacfbc0a6159ddb8e0e115c144ee0b0e564736f6c634300060b0033537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6e0000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100c85760003560e01c80635e3a97e71161007a5780635e3a97e7146103265780636684b1d6146103b35780637147855d146103c857806372a44f07146104485780638757653f1461045d578063b449ea5d14610490578063e907fa3c146104d7578063f9bcdde4146104ec576100c8565b806312f16e6d1461014c57806314778a831461018157806320cea94d146101a857806322175a32146101bd578063439fab91146101f057806356f36dbf1461026b5780635c60da1b146102f5575b60006100d2610501565b90506001600160a01b038116610128576040805162461bcd60e51b815260206004820152601660248201527526a4a9a9a4a723afa4a6a82622a6a2a72a20aa24a7a760511b604482015290519081900360640190fd5b3660008037600080366000845af43d6000803e808015610147573d6000f35b3d6000fd5b34801561015857600080fd5b5061017f6004803603602081101561016f57600080fd5b50356001600160a01b0316610526565b005b34801561018d57600080fd5b50610196610532565b60408051918252519081900360200190f35b3480156101b457600080fd5b50610196610556565b3480156101c957600080fd5b5061017f600480360360208110156101e057600080fd5b50356001600160a01b031661057a565b3480156101fc57600080fd5b5061017f6004803603602081101561021357600080fd5b810190602081018135600160201b81111561022d57600080fd5b82018360208201111561023f57600080fd5b803590602001918460018302840111600160201b8311171561026057600080fd5b509092509050610683565b34801561027757600080fd5b506102806106c9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ba5781810151838201526020016102a2565b50505050905090810190601f1680156102e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030157600080fd5b5061030a610501565b604080516001600160a01b039092168252519081900360200190f35b34801561033257600080fd5b5061017f6004803603606081101561034957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561037357600080fd5b82018360208201111561038557600080fd5b803590602001918460018302840111600160201b831117156103a657600080fd5b91935091503515156106e5565b3480156103bf57600080fd5b5061017f6108c2565b61017f600480360360608110156103de57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460018302840111600160201b8311171561043b57600080fd5b91935091503515156108cc565b34801561045457600080fd5b50610196610f38565b34801561046957600080fd5b5061017f6004803603602081101561048057600080fd5b50356001600160a01b0316610f5e565b34801561049c57600080fd5b506104c3600480360360208110156104b357600080fd5b50356001600160a01b0316610f67565b604080519115158252519081900360200190f35b3480156104e357600080fd5b506104c3610f78565b3480156104f857600080fd5b5061017f610f9e565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b245490565b61052f81610fa6565b50565b7ff3afa5472f846c7817e22b15110d7b184f2d3d6417baee645a1e963b8fac7e2481565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f81565b610583336110f3565b6105c6576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b6001600160a01b03811660009081526002602052604090205480610631576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b6001600160a01b03821660008181526002602090815260408083208390556001909152808220829055517faf23121e2402485071dadf421078b368d7b67e54cabcc81540563c5d6bf1a4c39190a25050565b6040805162461bcd60e51b815260206004820152601660248201527543414e4e4f545f43414c4c5f494e495449414c495a4560501b604482015290519081900360640190fd5b60405180606001604052806027815260200161169b6027913981565b6106ee336110f3565b610731576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610743846001600160a01b0316611121565b61078b576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b60008383836040516020018080602001831515151581526020018281038252858582818152602001925080828437600083820181905260408051601f909301601f19908116909501838103909501835293845281516020928301206001600160a01b038f168252600190925292832081905597509095506108119450610f389350505050565b42019050600061081f610501565b6001600160a01b031614156108315750425b6001600160a01b0386166000818152600260209081526040918290208490558151861515918101919091528181529081018690527f723a7080d63c133cf338e44e00705cc1b7b2bde7e88d6218a8d62710a329ce1b908790879087908060608101858580828437600083820152604051601f909101601f1916909201829003965090945050505050a2505050505050565b6108ca611127565b565b6108d5336110f3565b610918576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b610920610f78565b61096c576040805162461bcd60e51b815260206004820152601860248201527712535413115351539510551253d397d1925390531256915160421b604482015290519081900360640190fd5b6109746111ee565b156109b8576040805162461bcd60e51b815260206004820152600f60248201526e29aa20aa22afa4a9afa32927ad22a760891b604482015290519081900360640190fd5b6001600160a01b03841660009081526002602052604090205480610a23576040805162461bcd60e51b815260206004820152601d60248201527f414444524553535f4e4f545f555047524144455f43414e444944415445000000604482015290519081900360640190fd5b610a35856001600160a01b0316611121565b610a7d576040805162461bcd60e51b8152602060048201526014602482015273105111149154d4d7d393d517d0d3d395149050d560621b604482015290519081900360640190fd5b42811115610acc576040805162461bcd60e51b8152602060048201526017602482015276155411d490511157d393d517d153905093115117d65155604a1b604482015290519081900360640190fd5b6001600160a01b0385166000908152600160209081526040918290205482518515158185015291820192835260608201869052918691869186918190608001858580828437600081840152601f19601f820116905080830192505050945050505050604051602081830303815290604052805190602001208114610b8d576040805162461bcd60e51b815260206004820152601360248201527221a420a723a2a22fa4a724aa24a0a624ad22a960691b604482015290519081900360640190fd5b610b9686611351565b60006060876001600160a01b031663439fab9160e01b88886040516024018080602001828103825284848281815260200192508082843760008382015260408051601f909201601f1990811690940182810390940182529283526020810180516001600160e01b03166001600160e01b0319909916989098178852915182519297909650869550935090915081905083835b60208310610c475780518252601f199092019160209182019101610c28565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610ca7576040519150601f19603f3d011682016040523d82523d6000602084013e610cac565b606091505b5091509150818190610d3c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d01578181015183820152602001610ce9565b50505050905090810190601f168015610d2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516001600160a01b038c169382918083835b60208310610d995780518252601f199092019160209182019101610d7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610df9576040519150601f19603f3d011682016040523d82523d6000602084013e610dfe565b606091505b50909250905081610e52576040805162461bcd60e51b815260206004820152601960248201527810d0531317d513d7d254d19493d6915397d491559154951151603a1b604482015290519081900360640190fd5b808060200190516020811015610e6757600080fd5b505115610eb7576040805162461bcd60e51b81526020600482015260196024820152782722abafa4a6a82622a6a2a72a20aa24a7a72fa32927ad22a760391b604482015290519081900360640190fd5b8415610efa57610ec5611375565b6040516001600160a01b038916907fc13b75a5f14b69ebdc2431a5d475b3bff371abe251b5064144306fbd9c4de35c90600090a25b6040516001600160a01b038916907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050505050505050565b7fc21dbb3089fcb2c4f4c6a67854ab4db2b0f233ea4b21b21f912d52d18fc5db1f545b90565b61052f8161139b565b6000610f72826110f3565b92915050565b7f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d2541590565b6108ca611498565b610faf336110f3565b610ff2576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b336001600160a01b0382161415611047576040805162461bcd60e51b8152602060048201526014602482015273474f5645524e4f525f53454c465f52454d4f564560601b604482015290519081900360640190fd5b600061105161152f565b905061105c826110f3565b61109c576040805162461bcd60e51b815260206004820152600c60248201526b2727aa2fa3a7ab22a92727a960a11b604482015290519081900360640190fd5b6001600160a01b03821660008181526020838152604091829020805460ff19169055815192835290517fd75f94825e770b8b512be8e74759e252ad00e102e38f50cce2f7c6f868a295999281900390910190a15050565b6000806110fe61152f565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b3b151590565b600061113161152f565b60018101549091506001600160a01b0316331461118f576040805162461bcd60e51b815260206004820152601760248201527627a7262cafa1a0a72224a220aa22afa3a7ab22a92727a960491b604482015290519081900360640190fd5b60018101546111a6906001600160a01b03166115fa565b6001810180546001600160a01b03191690556040805133815290517fcfb473e6c03f9a29ddaf990e736fa3de5188a0bd85d684f5b6e164ebfbfff5d29181900360200190a150565b6000806111f9610501565b90506001600160a01b038116611213576000915050610f5b565b60408051600481526024810182526020810180516001600160e01b03166333eeb14760e01b178152915181516000936060936001600160a01b038716939092909182918083835b602083106112795780518252601f19909201916020918201910161125a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146112d9576040519150601f19603f3d011682016040523d82523d6000602084013e6112de565b606091505b50915091508181906113315760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610d01578181015183820152602001610ce9565b5080806020019051602081101561134757600080fd5b5051935050505090565b7f177667240aeeea7e35eabe3a35e18306f336219e1386f7710a6bf8783f761b2455565b60017f7d433c6f837e8f93009937c466c82efbb5ba621fae36886d0cac433c5d0aa7d255565b6113a4336110f3565b6113e7576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006113f161152f565b90506113fc826110f3565b15611441576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b6001810180546001600160a01b0384166001600160a01b0319909116811790915560408051918252517f6166272c8d3f5f579082f2827532732f97195007983bb5b83ac12c56700b01a69181900360200190a15050565b6114a1336110f3565b6114e4576040805162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b604482015290519081900360640190fd5b60006114ee61152f565b6001810180546001600160a01b03191690556040519091507f7a8dc7dd7fffb43c4807438fa62729225156941e641fd877938f4edade3429f590600090a150565b6000606061153b61167a565b9050600080826040518082805190602001908083835b602083106115705780518252601f199092019160209182019101611551565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092206001810154909350600160a01b900460ff1691506115f49050576040805162461bcd60e51b815260206004820152600f60248201526e1393d517d253925512505312569151608a1b604482015290519081900360640190fd5b91505090565b611603816110f3565b15611648576040805162461bcd60e51b815260206004820152601060248201526f20a62922a0a22cafa3a7ab22a92727a960811b604482015290519081900360640190fd5b600061165261152f565b6001600160a01b0390921660009081526020929092525060409020805460ff19166001179055565b606060405180606001604052806027815260200161169b6027913990509056fe537461726b45782e50726f78792e323031392e476f7665726e6f7273496e666f726d6174696f6ea264697066735822122038c13fd5686ed193adffa296e5b7596dacfbc0a6159ddb8e0e115c144ee0b0e564736f6c634300060b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : upgradeActivationDelay (uint256): 0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

3028:8667:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5889:23;5915:16;:14;:16::i;:::-;5889:42;-1:-1:-1;;;;;;5950:31:4;;5941:67;;;;;-1:-1:-1;;;5941:67:4;;;;;;;;;;;;-1:-1:-1;;;5941:67:4;;;;;;;;;;;;;;;6287:14;6284:1;6281;6268:34;6510:1;6507;6491:14;6488:1;6471:15;6464:5;6451:61;6586:16;6583:1;6580;6565:38;6624:6;6691:38;;;;6762:16;6759:1;6752:27;6691:38;6710:16;6707:1;6700:27;2628:117:5;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2628:117:5;-1:-1:-1;;;;;2628:117:5;;:::i;:::-;;3054:127:7;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2779:115;;;;;;;;;;;;;:::i;8812:445:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8812:445:4;-1:-1:-1;;;;;8812:445:4;;:::i;5123:120::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5123:120:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5123:120:4;;;;;;;;;;-1:-1:-1;5123:120:4;;-1:-1:-1;5123:120:4;-1:-1:-1;5123:120:4;:::i;2125:87:5:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1022:194:7;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;1022:194:7;;;;;;;;;;;;;;7874:704:4;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7874:704:4;;;;;;;;;;;;;;;-1:-1:-1;;;7874:704:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7874:704:4;;;;;;;;;;;;-1:-1:-1;7874:704:4;-1:-1:-1;7874:704:4;;;;:::i;2751:89:5:-;;;;;;;;;;;;;:::i;10156:1537:4:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10156:1537:4;;;;;;;;;;;;;;;-1:-1:-1;;;10156:1537:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10156:1537:4;;;;;;;;;;;;-1:-1:-1;10156:1537:4;-1:-1:-1;10156:1537:4;;;;:::i;4081:207::-;;;;;;;;;;;;;:::i;2509:113:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2509:113:5;-1:-1:-1;;;;;2509:113:5;;:::i;2379:124::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2379:124:5;-1:-1:-1;;;;;2379:124:5;;:::i;:::-;;;;;;;;;;;;;;;;;;7141:244:4;;;;;;;;;;;;;:::i;2846:77:5:-;;;;;;;;;;;;;:::i;1022:194:7:-;1589:66;1189:11;;1156:54::o;2628:117:5:-;2704:34;2719:18;2704:14;:34::i;:::-;2628:117;:::o;3054:127:7:-;3115:66;3054:127;:::o;2779:115::-;2828:66;2779:115;:::o;8812:445:4:-;3181:22:1;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;-1:-1:-1;;;;;8996:30:4;::::1;8970:23;8996:30:::0;;;:11:::1;:30;::::0;;;;;9045:19;9037:61:::1;;;::::0;;-1:-1:-1;;;9037:61:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;9109:30:4;::::1;9142:1;9109:30:::0;;;:11:::1;:30;::::0;;;;;;;:34;;;9154:18:::1;:37:::0;;;;;;:41;;;9210:40;::::1;::::0;9142:1;9210:40:::1;3233:1:1;8812:445:4::0;:::o;5123:120::-;5204:32;;;-1:-1:-1;;;5204:32:4;;;;;;;;;;;;-1:-1:-1;;;5204:32:4;;;;;;;;;;;;;;2125:87:5;;;;;;;;;;;;;;;;;;;:::o;7874:704:4:-;3181:22:1;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;8014:30:4::1;:17;-1:-1:-1::0;;;;;8014:28:4::1;;:30::i;:::-;8006:63;;;::::0;;-1:-1:-1;;;8006:63:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;8006:63:4;;;;;;;;;;;;;::::1;;8080:17;8121:4;;8127:8;8110:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;-1:-1:-1::0;;8110:26:4;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;8100:37;;8110:26:::1;8100:37:::0;;::::1;::::0;-1:-1:-1;;;;;8147:37:4;::::1;::::0;;:18:::1;:37:::0;;;;;;:49;;;8100:37;-1:-1:-1;8110:26:4;;-1:-1:-1;8251:27:4::1;::::0;-1:-1:-1;8251:25:4::1;::::0;-1:-1:-1;;;;8251:27:4:i:1;:::-;8233:15;:45;::::0;-1:-1:-1;8380:3:4::1;8352:16;:14;:16::i;:::-;-1:-1:-1::0;;;;;8352:32:4::1;;8348:96;;;-1:-1:-1::0;8418:15:4::1;8348:96;-1:-1:-1::0;;;;;8454:30:4;::::1;;::::0;;;:11:::1;:30;::::0;;;;;;;;:48;;;8517:54;;;::::1;;::::0;;::::1;::::0;;;;;;;;;;;;;::::1;::::0;8556:4;;;;8562:8;;8517:54;;;;8556:4;;;;8517:54;::::1;;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;8517:54:4::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;8517:54:4;;-1:-1:-1;;;;;8517:54:4::1;3233:1:1;;7874:704:4::0;;;;:::o;2751:89:5:-;2815:18;:16;:18::i;:::-;2751:89::o;10156:1537:4:-;3181:22:1;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;5295:16:4::1;:14;:16::i;:::-;5287:53;;;::::0;;-1:-1:-1;;;5287:53:4;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;5287:53:4;;;;;;;;;;;;;::::1;;5585:24:::2;:22;:24::i;:::-;5584:25;5576:53;;;::::0;;-1:-1:-1;;;5576:53:4;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;5576:53:4;;;;;;;;;;;;;::::2;;-1:-1:-1::0;;;;;10337:30:4;::::3;10311:23;10337:30:::0;;;:11:::3;:30;::::0;;;;;10385:19;10377:61:::3;;;::::0;;-1:-1:-1;;;10377:61:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;10456:30;:17;-1:-1:-1::0;;;;;10456:28:4::3;;:30::i;:::-;10448:63;;;::::0;;-1:-1:-1;;;10448:63:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;10448:63:4;;;;;;;;;;;;;::::3;;10586:15;10567;:34;;10559:70;;;::::0;;-1:-1:-1;;;10559:70:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;10559:70:4;;;;;;;;;;;;;::::3;;-1:-1:-1::0;;;;;10667:37:4;::::3;10640:24;10667:37:::0;;;:18:::3;:37;::::0;;;;;;;;;10752:26;;;::::3;;::::0;;;;;;::::3;::::0;;;;;;;;;10667:37;10763:4;;;;10769:8;;10752:26;;;;10763:4;;;;10752:26;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10742:37;;;;;;10722:16;:57;10714:89;;;::::0;;-1:-1:-1;;;10714:89:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;10714:89:4;;;;;;;;;;;;;::::3;;10813:36;10831:17;10813;:36::i;:::-;10929:12;10943:23;10970:17;-1:-1:-1::0;;;;;10970:30:4::3;11037:24;;;11063:4;;11014:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::3;::::0;::::3;::::0;;::::3;::::0;;::::3;-1:-1:-1::0;;11014:54:4;;::::3;::::0;;::::3;::::0;;::::3;::::0;;;;;;;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;11014:54:4::3;-1:-1:-1::0;;;;;;11014:54:4;;::::3;::::0;;;::::3;::::0;;10970:99;;;;11014:54;;10970:99;;-1:-1:-1;10970:99:4;;-1:-1:-1;11014:54:4;-1:-1:-1;10970:99:4;;-1:-1:-1;10970:99:4;;-1:-1:-1;10970:99:4;11014:54;10970:99:::3;;;;;;::::0;;;;-1:-1:-1;;10970:99:4;;;;::::3;::::0;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10928:141;;;;11087:7;11103:10;11079:36;;;;;-1:-1:-1::0;;;11079:36:4::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::3;::::0;;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;11343:37:4::3;::::0;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;11343:37:4::3;-1:-1:-1::0;;;11343:37:4::3;::::0;;11299:82;;;;-1:-1:-1;;;;;11299:30:4;::::3;::::0;:82;;;;11343:37;11299:82:::3;;;;;;::::0;;;;-1:-1:-1;;11299:82:4;;;;::::3;::::0;;::::3;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;11275:106:4;;-1:-1:-1;11275:106:4;-1:-1:-1;11275:106:4;11391:45:::3;;;::::0;;-1:-1:-1;;;11391:45:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;11391:45:4;;;;;;;;;;;;;::::3;;11466:10;11455:30;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;11455:30:4;11454:31:::3;11446:69;;;::::0;;-1:-1:-1;;;11446:69:4;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;11446:69:4;;;;;;;;;;;;;::::3;;11530:8;11526:118;;;11554:18;:16;:18::i;:::-;11591:42;::::0;-1:-1:-1;;;;;11591:42:4;::::3;::::0;::::3;::::0;;;::::3;11526:118;11659:27;::::0;-1:-1:-1;;;;;11659:27:4;::::3;::::0;::::3;::::0;;;::::3;5639:1;;;;10156:1537:::0;;;;:::o;4081:207::-;2828:66:7;4239:11:4;4081:207;;:::o;2509:113:5:-;2583:32;2603:11;2583:19;:32::i;2379:124::-;2449:4;2472:24;2483:12;2472:10;:24::i;:::-;2465:31;2379:124;-1:-1:-1;;2379:124:5:o;7141:244:4:-;2494:66:7;7321:11:4;7363:14;;7141:244::o;2846:77:5:-;2898:18;:16;:18::i;5232:408:1:-;3181:22;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;5328:10:::1;-1:-1:-1::0;;;;;5328:32:1;::::1;;;5320:65;;;::::0;;-1:-1:-1;;;5320:65:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;5320:65:1;;;;;;;;;;;;;::::1;;5395:32;5430:24;:22;:24::i;:::-;5395:59;;5473:30;5484:18;5473:10;:30::i;:::-;5464:56;;;::::0;;-1:-1:-1;;;5464:56:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;5464:56:1;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;5530:42:1;::::1;5575:5;5530:42:::0;;;::::1;::::0;;;;;;;;:50;;-1:-1:-1;;5530:50:1::1;::::0;;5595:38;;;;;;;::::1;::::0;;;;;;;;::::1;3233:1;5232:408:::0;:::o;3247:246::-;3328:22;3361:32;3396:24;:22;:24::i;:::-;-1:-1:-1;;;;;3450:36:1;;;:22;:36;;;;;;;;-1:-1:-1;;3450:36:1;;;;;;;3247:246::o;757:190:0:-;886:20;932:8;;;757:190::o;4661:514:1:-;4801:32;4836:24;:22;:24::i;:::-;4892:21;;;;;;-1:-1:-1;;;;;;4892:21:1;4878:10;:35;4870:71;;;;;-1:-1:-1;;;4870:71:1;;;;;;;;;;;;-1:-1:-1;;;4870:71:1;;;;;;;;;;;;;;;4989:21;;;;4977:34;;-1:-1:-1;;;;;4989:21:1;4977:11;:34::i;:::-;5021:21;;;:36;;-1:-1:-1;;;;;;5021:36:1;;;5134:34;;;5157:10;5134:34;;;;;;;;;;;;;4661:514;:::o;4425:555:4:-;4476:4;4492:23;4518:16;:14;:16::i;:::-;4492:42;-1:-1:-1;;;;;;4634:31:4;;4630:74;;4688:5;4681:12;;;;;4630:74;4842:37;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4842:37:4;-1:-1:-1;;;4842:37:4;;;4800:80;;;;4759:12;;4773:23;;-1:-1:-1;;;;;4800:28:4;;;4842:37;;4800:80;;;;;;4842:37;4800:80;;;;;;;;;;-1:-1:-1;;4800:80:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4758:122;;;;4898:7;4914:10;4890:36;;;;;-1:-1:-1;;;4890:36:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4954:10;4943:30;;;;;;;;;;;;;;;-1:-1:-1;4943:30:4;;-1:-1:-1;;;;4425:555:4;:::o;6869:186::-;1589:66:7;7008:31:4;6994:55::o;7458:147::-;7585:3;2494:66:7;7572:17:4;7558:41::o;3788:308:1:-;3181:22;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;3874:32:::1;3909:24;:22;:24::i;:::-;3874:59;;3952:23;3963:11;3952:10;:23::i;:::-;3951:24;3943:53;;;::::0;;-1:-1:-1;;;3943:53:1;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;3943:53:1;;;;;;;;;;;;;::::1;;4006:21;::::0;::::1;:35:::0;;-1:-1:-1;;;;;4006:35:1;::::1;-1:-1:-1::0;;;;;;4006:35:1;;::::1;::::0;::::1;::::0;;;4056:33:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;3233:1;3788:308:::0;:::o;3567:215::-;3181:22;3192:10;3181;:22::i;:::-;3173:50;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;-1:-1:-1;;;3173:50:1;;;;;;;;;;;;;;;3631:32:::1;3666:24;:22;:24::i;:::-;3700:21;::::0;::::1;:36:::0;;-1:-1:-1;;;;;;3700:36:1::1;::::0;;3751:24:::1;::::0;3631:59;;-1:-1:-1;3751:24:1::1;::::0;3732:3:::1;::::0;3751:24:::1;3233:1;3567:215::o:0;1843:303::-;1924:28;1964:17;1984:18;:16;:18::i;:::-;1964:38;;2012:32;2047:14;2062:3;2047:19;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2047:19:1;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2047:19:1;;;;;;;;;;;;;;;;-1:-1:-1;2047:19:1;;;;;;;;;;;2084:15;;;2047:19;;-1:-1:-1;;;;2084:15:1;;;;;-1:-1:-1;2076:43:1;;-1:-1:-1;2076:43:1;;;;-1:-1:-1;;;2076:43:1;;;;;;;;;;;;-1:-1:-1;;;2076:43:1;;;;;;;;;;;;;;;2136:3;-1:-1:-1;;1843:303:1;:::o;4414:241::-;4483:23;4494:11;4483:10;:23::i;:::-;4482:24;4474:53;;;;;-1:-1:-1;;;4474:53:1;;;;;;;;;;;;-1:-1:-1;;;4474:53:1;;;;;;;;;;;;;;;4537:32;4572:24;:22;:24::i;:::-;-1:-1:-1;;;;;4606:35:1;;;:22;:35;;;;;;;;-1:-1:-1;4606:35:1;;;:42;;-1:-1:-1;;4606:42:1;4644:4;4606:42;;;4414:241::o;2219:154:5:-;2311:17;2346:20;;;;;;;;;;;;;;;;;2340:26;;2219:154;:::o

Swarm Source

ipfs://38c13fd5686ed193adffa296e5b7596dacfbc0a6159ddb8e0e115c144ee0b0e5

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.