Goerli Testnet

Contract

0x2C86d657ced8e2c21eD4195837C5b2B36244493a

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
0x60806040100021912023-11-07 13:33:24164 days ago1699364004IN
 Create: StakingPool_V1
0 ETH0.001694021.00000001

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
102424652023-12-20 12:46:12121 days ago1703076372
0x2C86d657...36244493a
0.001 ETH
102424082023-12-20 12:31:00121 days ago1703075460
0x2C86d657...36244493a
0 ETH
102424012023-12-20 12:29:00121 days ago1703075340
0x2C86d657...36244493a
0 ETH
102423952023-12-20 12:27:24121 days ago1703075244
0x2C86d657...36244493a
0 ETH
102423902023-12-20 12:26:12121 days ago1703075172
0x2C86d657...36244493a
0.01 ETH
102423842023-12-20 12:23:48121 days ago1703075028
0x2C86d657...36244493a
0.001 ETH
102423762023-12-20 12:21:12121 days ago1703074872
0x2C86d657...36244493a
0.1 ETH
102421202023-12-20 11:11:48121 days ago1703070708
0x2C86d657...36244493a
0 ETH
102417342023-12-20 9:25:48121 days ago1703064348
0x2C86d657...36244493a
0.02 ETH
102411992023-12-20 6:54:24121 days ago1703055264
0x2C86d657...36244493a
0.001 ETH
102411842023-12-20 6:49:36121 days ago1703054976
0x2C86d657...36244493a
570 ETH
102410822023-12-20 6:24:12121 days ago1703053452
0x2C86d657...36244493a
0 ETH
102410802023-12-20 6:23:36121 days ago1703053416
0x2C86d657...36244493a
0.0001 ETH
102409532023-12-20 5:49:36121 days ago1703051376
0x2C86d657...36244493a
0.3 ETH
102409492023-12-20 5:48:48121 days ago1703051328
0x2C86d657...36244493a
0 ETH
102407922023-12-20 5:09:36121 days ago1703048976
0x2C86d657...36244493a
1 ETH
102406722023-12-20 4:32:36121 days ago1703046756
0x2C86d657...36244493a
0.11 ETH
102405702023-12-20 4:04:12121 days ago1703045052
0x2C86d657...36244493a
0 ETH
102405532023-12-20 3:59:36121 days ago1703044776
0x2C86d657...36244493a
0.0001 ETH
102405082023-12-20 3:44:48121 days ago1703043888
0x2C86d657...36244493a
0.0001 ETH
102404292023-12-20 3:24:36121 days ago1703042676
0x2C86d657...36244493a
0 ETH
102404272023-12-20 3:24:12121 days ago1703042652
0x2C86d657...36244493a
0.001 ETH
102404252023-12-20 3:23:00121 days ago1703042580
0x2C86d657...36244493a
0.0001 ETH
102404192023-12-20 3:21:24121 days ago1703042484
0x2C86d657...36244493a
0.0001 ETH
102402022023-12-20 2:20:48121 days ago1703038848
0x2C86d657...36244493a
0.03 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingPool_V1

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : StakingPool_V1.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";

import "../interfaces/ICertificateToken.sol";
import "../interfaces/IStakingConfig.sol";
import "../interfaces/IStakingPool.sol";
import "../interfaces/IEigenPodManager.sol";

contract StakingPool_V1 is
IStakingPool,
Initializable,
ReentrancyGuardUpgradeable
{
    /**
     * @dev external contracts
     */
    IStakingConfig internal _stakingConfig;

    uint256 internal _DISTRIBUTE_GAS_LIMIT;

    uint256 internal _pendingGap;

    uint256 internal _pendingTotalUnstakes;
    address[] internal _pendingClaimers;
    mapping(address => uint256) internal _pendingClaimerUnstakes;

    uint256[] internal _pendingRequests;

    // reserve some gap for the future upgrades
    uint256[50 - 5] private __reserved;

    event RewardsDistributed(address[] claimers, uint256[] amounts);

    modifier onlyGovernance() virtual {
        require(
            msg.sender == _stakingConfig.getGovernanceAddress(),
            "StakingPool: only governance allowed"
        );
        _;
    }

    modifier onlyOperator() {
        require(
            msg.sender == _stakingConfig.getOperatorAddress(),
            "StakingPool: only consensus allowed"
        );
        _;
    }

    function initialize(IStakingConfig stakingConfig, uint256 distributeGasLimit) external initializer {
        _stakingConfig = stakingConfig;
        IEigenPodManager(stakingConfig.getEigenPodManagerAddress()).createPod();
        __QueuePool_init(distributeGasLimit);
    }


    function __QueuePool_init(
        uint256 distributeGasLimit
    ) internal {
        _DISTRIBUTE_GAS_LIMIT = distributeGasLimit;
        emit DistributeGasLimitChanged(0, distributeGasLimit);
    }

    function stakeCerts() external payable override nonReentrant {
        uint256 amount = msg.value;
        require(
            amount >= _stakingConfig.getMinStake(),
            "StakingPool: value must be greater than min amount"
        );
        ICertificateToken certificateToken = ICertificateToken(_stakingConfig.getCertTokenAddress());
        uint256 shares = certificateToken.bondsToShares(amount);
        certificateToken.mint(msg.sender, shares);
        emit Staked(msg.sender, amount, shares);
    }

    function pushToBeaconMulti(bytes[] calldata pubkeys, bytes[] calldata signatures, bytes32[] calldata deposit_data_roots) public onlyOperator {
        uint256 pubkeysLen = pubkeys.length;
        require(pubkeysLen == signatures.length && signatures.length == deposit_data_roots.length, "StakingPool: length are not equal");
        require(address(this).balance >= 32 ether * pubkeysLen, "pending ethers not enough");
        IEigenPodManager eigenPodManager = IEigenPodManager(_stakingConfig.getEigenPodManagerAddress());
        for (uint i = 0; i < pubkeysLen; i++) {
            eigenPodManager.stake(pubkeys[i], signatures[i], deposit_data_roots[i]);
            emit PoolOnGoing(pubkeys[i]);
        }
    }


    function pushToBeacon(bytes calldata pubkey, bytes calldata signature, bytes32 deposit_data_root) public onlyOperator {
        require(address(this).balance >= 32 ether, "pending ethers not enough");
        IEigenPodManager(_stakingConfig.getEigenPodManagerAddress()).stake(pubkey, signature, deposit_data_root);
        emit PoolOnGoing(pubkey);
    }

    function getFreeBalance() public view virtual returns (uint256) {
        return address(this).balance;
    }

    /**
    * @notice Burns amount of certificate from msg.sender
     * @notice Returns native token immediately or via queue
     * @param receiverAddress address for receiving unstaked funds
     * @param shares amount of certificate token to unstake
     */
    function unstakeCerts(
        address receiverAddress,
        uint256 shares
    ) external {
        address ownerAddress = msg.sender;
        ICertificateToken certificateToken = ICertificateToken(_stakingConfig.getCertTokenAddress());

        uint256 amount = certificateToken.sharesToBonds(shares);
        require(
            amount >= _stakingConfig.getMinUnstake(),
            "StakingPool: value must be greater than min amount"
        );

        require(
            certificateToken.balanceOf(ownerAddress) >= shares,
            "StakingPool: cannot unstake more than have on address"
        );
        certificateToken.burn(ownerAddress, shares);
        _addIntoQueue(ownerAddress, receiverAddress, shares, amount);
    }

    /**
     * @return Certificate token address
     */
    function getCert() external view virtual returns (address) {
        return _stakingConfig.getCertTokenAddress();
    }

    function getEigenPodManager() external view virtual returns (address){
        return _stakingConfig.getEigenPodManagerAddress();
    }

    function getMinStake() external view virtual returns (uint256){
        return _stakingConfig.getMinStake();
    }

    function getMinUnstake() public view virtual override returns (uint256) {
        return _stakingConfig.getMinUnstake();
    }

    function setDistributeGasLimit(uint256 newValue) external onlyGovernance {
        uint256 prevValue = _DISTRIBUTE_GAS_LIMIT;
        _DISTRIBUTE_GAS_LIMIT = newValue;

        emit DistributeGasLimitChanged(prevValue, newValue);
    }

    function getDistributeGasLimit() public view returns (uint256) {
        return _DISTRIBUTE_GAS_LIMIT;
    }

    function _addIntoQueue(
        address owner,
        address claimer,
        uint256 shares,
        uint256 amount
    ) internal {
        require(
            amount != 0 && claimer != address(0),
            "LiquidTokenStakingPool: zero input values"
        );
        // each new request is placed at the end of the queue
        _pendingTotalUnstakes += amount;
        _pendingClaimers.push(claimer);
        _pendingRequests.push(amount);
        _pendingClaimerUnstakes[claimer] += amount;
        emit PendingUnstake(owner, claimer, amount, shares);
    }

    function getTotalPendingUnstakes() public view returns (uint256) {
        return _pendingTotalUnstakes;
    }

    function getPendingRequestsOf(
        address claimer
    ) public view returns (uint256[] memory) {
        uint256 j;
        uint256[] memory unstakes = new uint256[](
            _pendingClaimers.length - _pendingGap
        );
        for (uint256 i = _pendingGap; i < _pendingClaimers.length; i++) {
            if (_pendingClaimers[i] == claimer) {
                unstakes[j] = _pendingRequests[i];
                ++j;
            }
        }
        uint256 removeCells = unstakes.length - j;
        if (removeCells > 0) {
            assembly {
                mstore(unstakes, j)
            }
        }
        return unstakes;
    }

    function getPendingUnstakesOf(
        address claimer
    ) public view returns (uint256) {
        return _pendingClaimerUnstakes[claimer];
    }

    function distributePendingRewards() external {
        require(
            _DISTRIBUTE_GAS_LIMIT > 0,
            "StakingPool: DISTRIBUTE_GAS_LIMIT is not set"
        );
        uint256 poolBalance = getFreeBalance();
        address[] memory claimers = new address[](
            _pendingClaimers.length - _pendingGap
        );
        uint256[] memory amounts = new uint256[](
            _pendingClaimers.length - _pendingGap
        );
        uint256 j = 0;
        uint256 i = _pendingGap;

        while (
            i < _pendingClaimers.length &&
            poolBalance > 0 &&
            gasleft() > _DISTRIBUTE_GAS_LIMIT
        ) {
            address claimer = _pendingClaimers[i];
            uint256 toDistribute = _pendingRequests[i];
            if (claimer == address(0) || toDistribute == 0) {
                ++i;
                continue;
            }

            if (poolBalance < toDistribute) {
                break;
            }

            _pendingClaimerUnstakes[claimer] -= toDistribute;
            _pendingTotalUnstakes -= toDistribute;
            poolBalance -= toDistribute;
            delete _pendingClaimers[i];
            delete _pendingRequests[i];
            ++i;

            bool success = _unsafeTransfer(claimer, toDistribute, true);
            if (!success) {
                continue;
            }
            claimers[j] = claimer;
            amounts[j] = toDistribute;
            ++j;
        }
        _pendingGap = i;
        /* decrease arrays */
        uint256 removeCells = claimers.length - j;
        if (removeCells > 0) {
            assembly {
                mstore(claimers, j)
            }
            assembly {
                mstore(amounts, j)
            }
        }

        emit RewardsDistributed(claimers, amounts);
    }

    /**
 * @dev Unsafe transfer with gas limit if necessary
     * @notice The solution was received from eth bounty program
     */
    function _unsafeTransfer(
        address receiverAddress,
        uint256 amount,
        bool limit
    ) internal virtual returns (bool) {
        address payable wallet = payable(receiverAddress);
        bool success;
        if (limit) {
            assembly {
                success := call(10000, wallet, amount, 0, 0, 0, 0)
            }
            return success;
        }
        (success,) = wallet.call{value : amount}("");
        return success;
    }
}

File 2 of 12 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 12 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 4 of 12 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 5 of 12 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 6 of 12 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 12 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 12 : ICertificateToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";

interface ICertificateToken is IERC20Upgradeable {

    function sharesToBonds(uint256 amount) external view returns (uint256);

    function bondsToShares(uint256 amount) external view returns (uint256);

    function ratio() external view returns (uint256);

    function isRebasing() external pure returns (bool);

    function mint(address account, uint256 amount) external;

    function burn(address account, uint256 amount) external;
}

File 9 of 12 : IEigenPodManager.sol
interface IEigenPodManager {
    /**
     * @notice Creates an EigenPod for the sender.
     * @dev Function will revert if the `msg.sender` already has an EigenPod.
     */
    function createPod() external;

    /**
     * @notice Stakes for a new beacon chain validator on the sender's EigenPod. 
     * Also creates an EigenPod for the sender if they don't have one already.
     * @param pubkey The 48 bytes public key of the beacon chain validator.
     * @param signature The validator's signature of the deposit data.
     * @param depositDataRoot The root/hash of the deposit data for the validator's deposit.
     */
    function stake(bytes calldata pubkey, bytes calldata signature, bytes32 depositDataRoot) external payable;
}

File 10 of 12 : IGovernable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IGovernable {
    event GovernanceAddressChanged(address prevValue, address newValue);

    function getGovernanceAddress() external view returns (address);
    function setGovernanceAddress(address newValue) external;
}

File 11 of 12 : IStakingConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./IGovernable.sol";

interface IStakingConfig is IGovernable {
    event OperatorAddressChanged(address prevValue, address newValue);
    event TreasuryAddressChanged(address prevValue, address newValue);
    event RatioFeedAddressChanged(address prevValue, address newValue);
    event CertTokenAddressChanged(address prevValue, address newValue);
    event StakingPoolAddressChanged(address prevValue, address newValue);
    event EigenManagerAddressChanged(address prevValue, address newValue);
    event MinUnstakeChanged(uint256 prevValue, uint256 newValue);
    event MinStakeChanged(uint256 prevValue, uint256 newValue);

    function getOperatorAddress() external view returns (address);

    function getRatioFeedAddress() external view returns (address);

    function getStakingPoolAddress() external view returns (address);

    function getTreasuryAddress() external view returns (address);

    function getEigenPodManagerAddress() external view returns (address);

    function getCertTokenAddress() external view returns (address);

    function getMinStake() external view returns (uint256);

    function getMinUnstake() external view returns (uint256);

    function setStakingPoolAddress(address newValue) external;

    function setOperatorAddress(address newValue) external;

    function setRatioFeedAddress(address newValue) external;

    function setTreasuryAddress(address newValue) external;

    function setCertTokenAddress(address newValue) external;

    function setMinStake(uint256 newValue) external;

    function setMinUnstake(uint256 newValue) external;
}

File 12 of 12 : IStakingPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IStakingPool {
    event Staked(
        address indexed staker,
        uint256 amount,
        uint256 shares
    );

    event PoolOnGoing(
        bytes pubkey
    );

    event DistributeGasLimitChanged(uint256 prevValue, uint256 newValue);

    event PendingUnstake(
        address indexed ownerAddress,
        address indexed receiverAddress,
        uint256 amount,
        uint256 shares
    );

    event Received(address indexed from, uint256 value);

    function stakeCerts() external payable;

    function getFreeBalance() external view returns (uint256);

    function getMinStake() external view returns (uint256);

    function getMinUnstake() external view returns (uint256);

    function pushToBeaconMulti(bytes[] calldata pubkeys, bytes[] calldata signatures, bytes32[] calldata deposit_data_roots) external;
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"DistributeGasLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"ownerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"receiverAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PendingUnstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"PoolOnGoing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"claimers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"RewardsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Staked","type":"event"},{"inputs":[],"name":"distributePendingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCert","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDistributeGasLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEigenPodManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFreeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinUnstake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"}],"name":"getPendingRequestsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"}],"name":"getPendingUnstakesOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPendingUnstakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStakingConfig","name":"stakingConfig","type":"address"},{"internalType":"uint256","name":"distributeGasLimit","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"pubkey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"deposit_data_root","type":"bytes32"}],"name":"pushToBeacon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"pubkeys","type":"bytes[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"bytes32[]","name":"deposit_data_roots","type":"bytes32[]"}],"name":"pushToBeaconMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"setDistributeGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeCerts","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiverAddress","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"unstakeCerts","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50611dad806100206000396000f3fe6080604052600436106100f35760003560e01c80636d186d7b1161008a578063c664d38b11610059578063c664d38b1461027d578063cd6dc68714610292578063d0652e42146102b2578063e93c4f15146102c757600080fd5b80636d186d7b14610220578063ac76d45014610235578063afbcc4481461023d578063be9631e81461025d57600080fd5b8063183cdf24116100c6578063183cdf2414610188578063409cb613146101b557806346faa33c146101d557806356a3b5fa1461020b57600080fd5b806301ff923c146100f8578063034c44541461012e578063042fc3a614610151578063126d5df614610173575b600080fd5b34801561010457600080fd5b5061011861011336600461189c565b6102da565b60405161012591906118f4565b60405180910390f35b34801561013a57600080fd5b506101436103f8565b604051908152602001610125565b34801561015d57600080fd5b5061017161016c366004611907565b61046a565b005b34801561017f57600080fd5b50603654610143565b34801561019457600080fd5b5061019d610597565b6040516001600160a01b039091168152602001610125565b3480156101c157600080fd5b506101716101d0366004611920565b610605565b3480156101e157600080fd5b506101436101f036600461189c565b6001600160a01b031660009081526038602052604090205490565b34801561021757600080fd5b506101436108cd565b34801561022c57600080fd5b50610171610917565b610171610c73565b34801561024957600080fd5b50610171610258366004611998565b610e90565b34801561026957600080fd5b50610171610278366004611a74565b6111af565b34801561028957600080fd5b5061019d6113c7565b34801561029e57600080fd5b506101716102ad366004611920565b611411565b3480156102be57600080fd5b50603454610143565b3480156102d357600080fd5b5047610143565b60355460375460609160009182916102f191611afe565b67ffffffffffffffff81111561030957610309611b17565b604051908082528060200260200182016040528015610332578160200160208202803683370190505b506035549091505b6037548110156103d457846001600160a01b03166037828154811061036157610361611b2d565b6000918252602090912001546001600160a01b0316036103c2576039818154811061038e5761038e611b2d565b90600052602060002001548284815181106103ab576103ab611b2d565b60209081029190910101526103bf83611b43565b92505b806103cc81611b43565b91505061033a565b5060008282516103e49190611afe565b905080156103f0578282525b509392505050565b6033546040805162d3111560e21b815290516000926001600160a01b03169163034c44549160048083019260209291908290030181865afa158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611b5c565b905090565b603360009054906101000a90046001600160a01b03166001600160a01b031663732524946040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e19190611b75565b6001600160a01b0316336001600160a01b0316146105525760405162461bcd60e51b8152602060048201526024808201527f5374616b696e67506f6f6c3a206f6e6c7920676f7665726e616e636520616c6c6044820152631bddd95960e21b60648201526084015b60405180910390fd5b603480549082905560408051828152602081018490527f3bb2da990d30b0bc98e39d632b60814d66b3bae55947927dec7a75719de577de910160405180910390a15050565b60335460408051635eaad42760e11b815290516000926001600160a01b03169163bd55a84e9160048083019260209291908290030181865afa1580156105e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611b75565b60335460408051635eaad42760e11b8152905133926000926001600160a01b039091169163bd55a84e916004808201926020929091908290030181865afa158015610654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106789190611b75565b604051636c58d43d60e01b8152600481018590529091506000906001600160a01b03831690636c58d43d90602401602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e79190611b5c565b9050603360009054906101000a90046001600160a01b03166001600160a01b031663034c44546040518163ffffffff1660e01b8152600401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107609190611b5c565b81101561077f5760405162461bcd60e51b815260040161054990611b92565b6040516370a0823160e01b81526001600160a01b0384811660048301528591908416906370a0823190602401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec9190611b5c565b10156108585760405162461bcd60e51b815260206004820152603560248201527f5374616b696e67506f6f6c3a2063616e6e6f7420756e7374616b65206d6f7265604482015274207468616e2068617665206f6e206164647265737360581b6064820152608401610549565b604051632770a7eb60e21b81526001600160a01b03848116600483015260248201869052831690639dc29fac90604401600060405180830381600087803b1580156108a257600080fd5b505af11580156108b6573d6000803e3d6000fd5b505050506108c6838686846115f4565b5050505050565b60335460408051632b51dafd60e11b815290516000926001600160a01b0316916356a3b5fa9160048083019260209291908290030181865afa158015610441573d6000803e3d6000fd5b60006034541161097e5760405162461bcd60e51b815260206004820152602c60248201527f5374616b696e67506f6f6c3a20444953545249425554455f4741535f4c494d4960448201526b15081a5cc81b9bdd081cd95d60a21b6064820152608401610549565b60355460375447916000916109939190611afe565b67ffffffffffffffff8111156109ab576109ab611b17565b6040519080825280602002602001820160405280156109d4578160200160208202803683370190505b506035546037549192506000916109eb9190611afe565b67ffffffffffffffff811115610a0357610a03611b17565b604051908082528060200260200182016040528015610a2c578160200160208202803683370190505b506035549091506000905b60375481108015610a485750600085115b8015610a5557506034545a115b15610c0e57600060378281548110610a6f57610a6f611b2d565b6000918252602082200154603980546001600160a01b0390921693509084908110610a9c57610a9c611b2d565b60009182526020909120015490506001600160a01b0382161580610abe575080155b15610ad557610acc83611b43565b92505050610a37565b80871015610ae4575050610c0e565b6001600160a01b03821660009081526038602052604081208054839290610b0c908490611afe565b925050819055508060366000828254610b259190611afe565b90915550610b3590508188611afe565b965060378381548110610b4a57610b4a611b2d565b600091825260209091200180546001600160a01b03191690556039805484908110610b7757610b77611b2d565b6000918252602082200155610b8b83611b43565b92506000610b9b8383600161176c565b905080610baa57505050610a37565b82878681518110610bbd57610bbd611b2d565b60200260200101906001600160a01b031690816001600160a01b03168152505081868681518110610bf057610bf0611b2d565b6020908102919091010152610c0485611b43565b9450505050610a37565b60358190558351600090610c23908490611afe565b90508015610c32578285528284525b7fe69d325558610ba73c441901deb46d7f251108348dc5dc9447e8866774c12edc8585604051610c63929190611be4565b60405180910390a1505050505050565b610c7b6117e9565b60335460408051632b51dafd60e11b8152905134926001600160a01b0316916356a3b5fa9160048083019260209291908290030181865afa158015610cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce89190611b5c565b811015610d075760405162461bcd60e51b815260040161054990611b92565b60335460408051635eaad42760e11b815290516000926001600160a01b03169163bd55a84e9160048083019260209291908290030181865afa158015610d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d759190611b75565b604051635361637360e01b8152600481018490529091506000906001600160a01b03831690635361637390602401602060405180830381865afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190611b5c565b6040516340c10f1960e01b8152336004820152602481018290529091506001600160a01b038316906340c10f1990604401600060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b505060408051868152602081018590523393507f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee9092500160405180910390a2505050610e8e60018055565b565b603360009054906101000a90046001600160a01b03166001600160a01b0316632ec338ba6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ee3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f079190611b75565b6001600160a01b0316336001600160a01b031614610f375760405162461bcd60e51b815260040161054990611c44565b848381148015610f4657508382145b610f9c5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e67506f6f6c3a206c656e67746820617265206e6f7420657175616044820152601b60fa1b6064820152608401610549565b610faf816801bc16d674ec800000611c87565b471015610ffa5760405162461bcd60e51b81526020600482015260196024820152780e0cadcc8d2dcce40cae8d0cae4e640dcdee840cadcdeeaced603b1b6044820152606401610549565b6033546040805163476c397360e11b815290516000926001600160a01b031691638ed872e69160048083019260209291908290030181865afa158015611044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110689190611b75565b905060005b828110156111a457816001600160a01b0316639b4e46348a8a8481811061109657611096611b2d565b90506020028101906110a89190611c9e565b8a8a868181106110ba576110ba611b2d565b90506020028101906110cc9190611c9e565b8a8a888181106110de576110de611b2d565b905060200201356040518663ffffffff1660e01b8152600401611105959493929190611d0e565b600060405180830381600087803b15801561111f57600080fd5b505af1158015611133573d6000803e3d6000fd5b505050507f09bfa94ea4cf30558b9b9914b0029f04369c211b0e1f965f9fa7a29536b300df89898381811061116a5761116a611b2d565b905060200281019061117c9190611c9e565b60405161118a929190611d48565b60405180910390a18061119c81611b43565b91505061106d565b505050505050505050565b603360009054906101000a90046001600160a01b03166001600160a01b0316632ec338ba6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611202573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112269190611b75565b6001600160a01b0316336001600160a01b0316146112565760405162461bcd60e51b815260040161054990611c44565b6801bc16d674ec8000004710156112ab5760405162461bcd60e51b81526020600482015260196024820152780e0cadcc8d2dcce40cae8d0cae4e640dcdee840cadcdeeaced603b1b6044820152606401610549565b603360009054906101000a90046001600160a01b03166001600160a01b0316638ed872e66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113229190611b75565b6001600160a01b0316639b4e463486868686866040518663ffffffff1660e01b8152600401611355959493929190611d0e565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b505050507f09bfa94ea4cf30558b9b9914b0029f04369c211b0e1f965f9fa7a29536b300df85856040516113b8929190611d48565b60405180910390a15050505050565b6033546040805163476c397360e11b815290516000926001600160a01b031691638ed872e69160048083019260209291908290030181865afa1580156105e1573d6000803e3d6000fd5b600054610100900460ff16158080156114315750600054600160ff909116105b8061144b5750303b15801561144b575060005460ff166001145b6114ae5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610549565b6000805460ff1916600117905580156114d1576000805461ff0019166101001790555b603380546001600160a01b0319166001600160a01b0385169081179091556040805163476c397360e11b81529051638ed872e6916004808201926020929091908290030181865afa15801561152a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154e9190611b75565b6001600160a01b03166384d810626040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561158857600080fd5b505af115801561159c573d6000803e3d6000fd5b505050506115a982611842565b80156115ef576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b801580159061160b57506001600160a01b03831615155b6116695760405162461bcd60e51b815260206004820152602960248201527f4c6971756964546f6b656e5374616b696e67506f6f6c3a207a65726f20696e7060448201526875742076616c75657360b81b6064820152608401610549565b806036600082825461167b9190611d64565b90915550506037805460018082019092557f42a7b7dd785cd69714a189dffb3fd7d7174edc9ece837694ce50f7078f7c31ae0180546001600160a01b0319166001600160a01b0386169081179091556039805492830190557fdc16fef70f8d5ddbc01ee3d903d1e69c18a3c7be080eb86a81e0578814ee58d390910182905560009081526038602052604081208054839290611718908490611d64565b909155505060408051828152602081018490526001600160a01b0380861692908716917fe8f73d529f5ced08581a2c18456a6530dbd0dddf94d8c98e0ab8f9883e2f4482910160405180910390a350505050565b60008381831561178c576000806000808886612710f192506117e2915050565b6040516001600160a01b038316908690600081818185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b509093505050505b9392505050565b60026001540361183b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610549565b6002600155565b60348190556040805160008152602081018390527f3bb2da990d30b0bc98e39d632b60814d66b3bae55947927dec7a75719de577de910160405180910390a150565b6001600160a01b038116811461189957600080fd5b50565b6000602082840312156118ae57600080fd5b81356117e281611884565b600081518084526020808501945080840160005b838110156118e9578151875295820195908201906001016118cd565b509495945050505050565b6020815260006117e260208301846118b9565b60006020828403121561191957600080fd5b5035919050565b6000806040838503121561193357600080fd5b823561193e81611884565b946020939093013593505050565b60008083601f84011261195e57600080fd5b50813567ffffffffffffffff81111561197657600080fd5b6020830191508360208260051b850101111561199157600080fd5b9250929050565b600080600080600080606087890312156119b157600080fd5b863567ffffffffffffffff808211156119c957600080fd5b6119d58a838b0161194c565b909850965060208901359150808211156119ee57600080fd5b6119fa8a838b0161194c565b90965094506040890135915080821115611a1357600080fd5b50611a2089828a0161194c565b979a9699509497509295939492505050565b60008083601f840112611a4457600080fd5b50813567ffffffffffffffff811115611a5c57600080fd5b60208301915083602082850101111561199157600080fd5b600080600080600060608688031215611a8c57600080fd5b853567ffffffffffffffff80821115611aa457600080fd5b611ab089838a01611a32565b90975095506020880135915080821115611ac957600080fd5b50611ad688828901611a32565b96999598509660400135949350505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b1157611b11611ae8565b92915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201611b5557611b55611ae8565b5060010190565b600060208284031215611b6e57600080fd5b5051919050565b600060208284031215611b8757600080fd5b81516117e281611884565b60208082526032908201527f5374616b696e67506f6f6c3a2076616c7565206d757374206265206772656174604082015271195c881d1a185b881b5a5b88185b5bdd5b9d60721b606082015260800190565b604080825283519082018190526000906020906060840190828701845b82811015611c265781516001600160a01b031684529284019290840190600101611c01565b50505083810382850152611c3a81866118b9565b9695505050505050565b60208082526023908201527f5374616b696e67506f6f6c3a206f6e6c7920636f6e73656e73757320616c6c6f6040820152621dd95960ea1b606082015260800190565b8082028115828204841417611b1157611b11611ae8565b6000808335601e19843603018112611cb557600080fd5b83018035915067ffffffffffffffff821115611cd057600080fd5b60200191503681900382131561199157600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b606081526000611d22606083018789611ce5565b8281036020840152611d35818688611ce5565b9150508260408301529695505050505050565b602081526000611d5c602083018486611ce5565b949350505050565b80820180821115611b1157611b11611ae856fea264697066735822122080faefe32e7f3f5863772de3eb219c6df9851f7000af95569e3f514b72082cc964736f6c63430008130033

Deployed Bytecode

0x6080604052600436106100f35760003560e01c80636d186d7b1161008a578063c664d38b11610059578063c664d38b1461027d578063cd6dc68714610292578063d0652e42146102b2578063e93c4f15146102c757600080fd5b80636d186d7b14610220578063ac76d45014610235578063afbcc4481461023d578063be9631e81461025d57600080fd5b8063183cdf24116100c6578063183cdf2414610188578063409cb613146101b557806346faa33c146101d557806356a3b5fa1461020b57600080fd5b806301ff923c146100f8578063034c44541461012e578063042fc3a614610151578063126d5df614610173575b600080fd5b34801561010457600080fd5b5061011861011336600461189c565b6102da565b60405161012591906118f4565b60405180910390f35b34801561013a57600080fd5b506101436103f8565b604051908152602001610125565b34801561015d57600080fd5b5061017161016c366004611907565b61046a565b005b34801561017f57600080fd5b50603654610143565b34801561019457600080fd5b5061019d610597565b6040516001600160a01b039091168152602001610125565b3480156101c157600080fd5b506101716101d0366004611920565b610605565b3480156101e157600080fd5b506101436101f036600461189c565b6001600160a01b031660009081526038602052604090205490565b34801561021757600080fd5b506101436108cd565b34801561022c57600080fd5b50610171610917565b610171610c73565b34801561024957600080fd5b50610171610258366004611998565b610e90565b34801561026957600080fd5b50610171610278366004611a74565b6111af565b34801561028957600080fd5b5061019d6113c7565b34801561029e57600080fd5b506101716102ad366004611920565b611411565b3480156102be57600080fd5b50603454610143565b3480156102d357600080fd5b5047610143565b60355460375460609160009182916102f191611afe565b67ffffffffffffffff81111561030957610309611b17565b604051908082528060200260200182016040528015610332578160200160208202803683370190505b506035549091505b6037548110156103d457846001600160a01b03166037828154811061036157610361611b2d565b6000918252602090912001546001600160a01b0316036103c2576039818154811061038e5761038e611b2d565b90600052602060002001548284815181106103ab576103ab611b2d565b60209081029190910101526103bf83611b43565b92505b806103cc81611b43565b91505061033a565b5060008282516103e49190611afe565b905080156103f0578282525b509392505050565b6033546040805162d3111560e21b815290516000926001600160a01b03169163034c44549160048083019260209291908290030181865afa158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611b5c565b905090565b603360009054906101000a90046001600160a01b03166001600160a01b031663732524946040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e19190611b75565b6001600160a01b0316336001600160a01b0316146105525760405162461bcd60e51b8152602060048201526024808201527f5374616b696e67506f6f6c3a206f6e6c7920676f7665726e616e636520616c6c6044820152631bddd95960e21b60648201526084015b60405180910390fd5b603480549082905560408051828152602081018490527f3bb2da990d30b0bc98e39d632b60814d66b3bae55947927dec7a75719de577de910160405180910390a15050565b60335460408051635eaad42760e11b815290516000926001600160a01b03169163bd55a84e9160048083019260209291908290030181865afa1580156105e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190611b75565b60335460408051635eaad42760e11b8152905133926000926001600160a01b039091169163bd55a84e916004808201926020929091908290030181865afa158015610654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106789190611b75565b604051636c58d43d60e01b8152600481018590529091506000906001600160a01b03831690636c58d43d90602401602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e79190611b5c565b9050603360009054906101000a90046001600160a01b03166001600160a01b031663034c44546040518163ffffffff1660e01b8152600401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107609190611b5c565b81101561077f5760405162461bcd60e51b815260040161054990611b92565b6040516370a0823160e01b81526001600160a01b0384811660048301528591908416906370a0823190602401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec9190611b5c565b10156108585760405162461bcd60e51b815260206004820152603560248201527f5374616b696e67506f6f6c3a2063616e6e6f7420756e7374616b65206d6f7265604482015274207468616e2068617665206f6e206164647265737360581b6064820152608401610549565b604051632770a7eb60e21b81526001600160a01b03848116600483015260248201869052831690639dc29fac90604401600060405180830381600087803b1580156108a257600080fd5b505af11580156108b6573d6000803e3d6000fd5b505050506108c6838686846115f4565b5050505050565b60335460408051632b51dafd60e11b815290516000926001600160a01b0316916356a3b5fa9160048083019260209291908290030181865afa158015610441573d6000803e3d6000fd5b60006034541161097e5760405162461bcd60e51b815260206004820152602c60248201527f5374616b696e67506f6f6c3a20444953545249425554455f4741535f4c494d4960448201526b15081a5cc81b9bdd081cd95d60a21b6064820152608401610549565b60355460375447916000916109939190611afe565b67ffffffffffffffff8111156109ab576109ab611b17565b6040519080825280602002602001820160405280156109d4578160200160208202803683370190505b506035546037549192506000916109eb9190611afe565b67ffffffffffffffff811115610a0357610a03611b17565b604051908082528060200260200182016040528015610a2c578160200160208202803683370190505b506035549091506000905b60375481108015610a485750600085115b8015610a5557506034545a115b15610c0e57600060378281548110610a6f57610a6f611b2d565b6000918252602082200154603980546001600160a01b0390921693509084908110610a9c57610a9c611b2d565b60009182526020909120015490506001600160a01b0382161580610abe575080155b15610ad557610acc83611b43565b92505050610a37565b80871015610ae4575050610c0e565b6001600160a01b03821660009081526038602052604081208054839290610b0c908490611afe565b925050819055508060366000828254610b259190611afe565b90915550610b3590508188611afe565b965060378381548110610b4a57610b4a611b2d565b600091825260209091200180546001600160a01b03191690556039805484908110610b7757610b77611b2d565b6000918252602082200155610b8b83611b43565b92506000610b9b8383600161176c565b905080610baa57505050610a37565b82878681518110610bbd57610bbd611b2d565b60200260200101906001600160a01b031690816001600160a01b03168152505081868681518110610bf057610bf0611b2d565b6020908102919091010152610c0485611b43565b9450505050610a37565b60358190558351600090610c23908490611afe565b90508015610c32578285528284525b7fe69d325558610ba73c441901deb46d7f251108348dc5dc9447e8866774c12edc8585604051610c63929190611be4565b60405180910390a1505050505050565b610c7b6117e9565b60335460408051632b51dafd60e11b8152905134926001600160a01b0316916356a3b5fa9160048083019260209291908290030181865afa158015610cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce89190611b5c565b811015610d075760405162461bcd60e51b815260040161054990611b92565b60335460408051635eaad42760e11b815290516000926001600160a01b03169163bd55a84e9160048083019260209291908290030181865afa158015610d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d759190611b75565b604051635361637360e01b8152600481018490529091506000906001600160a01b03831690635361637390602401602060405180830381865afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190611b5c565b6040516340c10f1960e01b8152336004820152602481018290529091506001600160a01b038316906340c10f1990604401600060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b505060408051868152602081018590523393507f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee9092500160405180910390a2505050610e8e60018055565b565b603360009054906101000a90046001600160a01b03166001600160a01b0316632ec338ba6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ee3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f079190611b75565b6001600160a01b0316336001600160a01b031614610f375760405162461bcd60e51b815260040161054990611c44565b848381148015610f4657508382145b610f9c5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e67506f6f6c3a206c656e67746820617265206e6f7420657175616044820152601b60fa1b6064820152608401610549565b610faf816801bc16d674ec800000611c87565b471015610ffa5760405162461bcd60e51b81526020600482015260196024820152780e0cadcc8d2dcce40cae8d0cae4e640dcdee840cadcdeeaced603b1b6044820152606401610549565b6033546040805163476c397360e11b815290516000926001600160a01b031691638ed872e69160048083019260209291908290030181865afa158015611044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110689190611b75565b905060005b828110156111a457816001600160a01b0316639b4e46348a8a8481811061109657611096611b2d565b90506020028101906110a89190611c9e565b8a8a868181106110ba576110ba611b2d565b90506020028101906110cc9190611c9e565b8a8a888181106110de576110de611b2d565b905060200201356040518663ffffffff1660e01b8152600401611105959493929190611d0e565b600060405180830381600087803b15801561111f57600080fd5b505af1158015611133573d6000803e3d6000fd5b505050507f09bfa94ea4cf30558b9b9914b0029f04369c211b0e1f965f9fa7a29536b300df89898381811061116a5761116a611b2d565b905060200281019061117c9190611c9e565b60405161118a929190611d48565b60405180910390a18061119c81611b43565b91505061106d565b505050505050505050565b603360009054906101000a90046001600160a01b03166001600160a01b0316632ec338ba6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611202573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112269190611b75565b6001600160a01b0316336001600160a01b0316146112565760405162461bcd60e51b815260040161054990611c44565b6801bc16d674ec8000004710156112ab5760405162461bcd60e51b81526020600482015260196024820152780e0cadcc8d2dcce40cae8d0cae4e640dcdee840cadcdeeaced603b1b6044820152606401610549565b603360009054906101000a90046001600160a01b03166001600160a01b0316638ed872e66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113229190611b75565b6001600160a01b0316639b4e463486868686866040518663ffffffff1660e01b8152600401611355959493929190611d0e565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b505050507f09bfa94ea4cf30558b9b9914b0029f04369c211b0e1f965f9fa7a29536b300df85856040516113b8929190611d48565b60405180910390a15050505050565b6033546040805163476c397360e11b815290516000926001600160a01b031691638ed872e69160048083019260209291908290030181865afa1580156105e1573d6000803e3d6000fd5b600054610100900460ff16158080156114315750600054600160ff909116105b8061144b5750303b15801561144b575060005460ff166001145b6114ae5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610549565b6000805460ff1916600117905580156114d1576000805461ff0019166101001790555b603380546001600160a01b0319166001600160a01b0385169081179091556040805163476c397360e11b81529051638ed872e6916004808201926020929091908290030181865afa15801561152a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154e9190611b75565b6001600160a01b03166384d810626040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561158857600080fd5b505af115801561159c573d6000803e3d6000fd5b505050506115a982611842565b80156115ef576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b801580159061160b57506001600160a01b03831615155b6116695760405162461bcd60e51b815260206004820152602960248201527f4c6971756964546f6b656e5374616b696e67506f6f6c3a207a65726f20696e7060448201526875742076616c75657360b81b6064820152608401610549565b806036600082825461167b9190611d64565b90915550506037805460018082019092557f42a7b7dd785cd69714a189dffb3fd7d7174edc9ece837694ce50f7078f7c31ae0180546001600160a01b0319166001600160a01b0386169081179091556039805492830190557fdc16fef70f8d5ddbc01ee3d903d1e69c18a3c7be080eb86a81e0578814ee58d390910182905560009081526038602052604081208054839290611718908490611d64565b909155505060408051828152602081018490526001600160a01b0380861692908716917fe8f73d529f5ced08581a2c18456a6530dbd0dddf94d8c98e0ab8f9883e2f4482910160405180910390a350505050565b60008381831561178c576000806000808886612710f192506117e2915050565b6040516001600160a01b038316908690600081818185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b509093505050505b9392505050565b60026001540361183b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610549565b6002600155565b60348190556040805160008152602081018390527f3bb2da990d30b0bc98e39d632b60814d66b3bae55947927dec7a75719de577de910160405180910390a150565b6001600160a01b038116811461189957600080fd5b50565b6000602082840312156118ae57600080fd5b81356117e281611884565b600081518084526020808501945080840160005b838110156118e9578151875295820195908201906001016118cd565b509495945050505050565b6020815260006117e260208301846118b9565b60006020828403121561191957600080fd5b5035919050565b6000806040838503121561193357600080fd5b823561193e81611884565b946020939093013593505050565b60008083601f84011261195e57600080fd5b50813567ffffffffffffffff81111561197657600080fd5b6020830191508360208260051b850101111561199157600080fd5b9250929050565b600080600080600080606087890312156119b157600080fd5b863567ffffffffffffffff808211156119c957600080fd5b6119d58a838b0161194c565b909850965060208901359150808211156119ee57600080fd5b6119fa8a838b0161194c565b90965094506040890135915080821115611a1357600080fd5b50611a2089828a0161194c565b979a9699509497509295939492505050565b60008083601f840112611a4457600080fd5b50813567ffffffffffffffff811115611a5c57600080fd5b60208301915083602082850101111561199157600080fd5b600080600080600060608688031215611a8c57600080fd5b853567ffffffffffffffff80821115611aa457600080fd5b611ab089838a01611a32565b90975095506020880135915080821115611ac957600080fd5b50611ad688828901611a32565b96999598509660400135949350505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b1157611b11611ae8565b92915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201611b5557611b55611ae8565b5060010190565b600060208284031215611b6e57600080fd5b5051919050565b600060208284031215611b8757600080fd5b81516117e281611884565b60208082526032908201527f5374616b696e67506f6f6c3a2076616c7565206d757374206265206772656174604082015271195c881d1a185b881b5a5b88185b5bdd5b9d60721b606082015260800190565b604080825283519082018190526000906020906060840190828701845b82811015611c265781516001600160a01b031684529284019290840190600101611c01565b50505083810382850152611c3a81866118b9565b9695505050505050565b60208082526023908201527f5374616b696e67506f6f6c3a206f6e6c7920636f6e73656e73757320616c6c6f6040820152621dd95960ea1b606082015260800190565b8082028115828204841417611b1157611b11611ae8565b6000808335601e19843603018112611cb557600080fd5b83018035915067ffffffffffffffff821115611cd057600080fd5b60200191503681900382131561199157600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b606081526000611d22606083018789611ce5565b8281036020840152611d35818688611ce5565b9150508260408301529695505050505050565b602081526000611d5c602083018486611ce5565b949350505050565b80820180821115611b1157611b11611ae856fea264697066735822122080faefe32e7f3f5863772de3eb219c6df9851f7000af95569e3f514b72082cc964736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.