ETH Price: $3,320.77 (-1.16%)

Contract

0x49129912b35283DC64476641837DFE856B48Fa81
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040137202892021-12-01 9:36:081087 days ago1638351368IN
 Create: BottoLiquidityMiningV2
0 ETH0.22701977115

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BottoLiquidityMiningV2

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : BottoLiquidityMiningV2.sol
pragma solidity >=0.6.0 <0.8.0;

import "./BottoLiquidityMining.sol";

contract BottoLiquidityMiningV2 is BottoLiquidityMining {
    using SafeMath for uint256;
    using TransferHelper for address;

    uint256 internal totalDueRewards;

    function totalDepositRewards() public view virtual returns (uint256) {
        return totalRewards.add(totalDueRewards);
    }

    function updateEndTime(uint256 _endTime)
        public
        virtual
        update
        onlyOwner
        nonReentrant
    {
        require(
            block.timestamp < endTime,
            "LiquidityMining::updateEndTime: staking is over"
        );
        require(
            block.timestamp < _endTime,
            "LiquidityMining::updateEndTime: new end time must be in future"
        );

        if (firstStakeTime != 0) {
            uint256 perSecondReward = totalRewards.div(
                endTime.sub(firstStakeTime)
            );
            uint256 sinceFirstStakeTime = block.timestamp.sub(firstStakeTime);
            uint256 dueRewards = sinceFirstStakeTime.mul(perSecondReward);

            totalRewards = totalRewards.sub(dueRewards);
            totalDueRewards = totalDueRewards.add(dueRewards);
        }

        endTime = _endTime;
        if (totalStake() > 0) {
            firstStakeTime = block.timestamp;
        } else {
            firstStakeTime = 0;
        }
    }
}

File 2 of 10 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

File 3 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @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);
}

File 4 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 10 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/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 initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 10 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/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 GSN 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 initializer {
        __Context_init_unchained();
    }

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 7 of 10 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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://diligence.consensys.net/posts/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.5.11/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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 10 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

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 a proxied contract can't have 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.
 *
 * 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 {UpgradeableProxy-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.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 9 of 10 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/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 initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    uint256[49] private __gap;
}

File 10 of 10 : BottoLiquidityMining.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/lib/contracts/libraries/TransferHelper.sol";

/// @title Eleven-Yellow Uniswap LP mining service
/// @notice Stake BOTTO-ETH Uniswap LP tokens for BOTTO rewards
contract BottoLiquidityMining is
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable
{
    using SafeMath for uint256;
    using TransferHelper for address;

    address public bottoEth;
    address public botto;

    uint256 public totalStakers;
    uint256 public totalRewards;
    uint256 public totalClaimedRewards;
    uint256 public startTime;
    uint256 public firstStakeTime;
    uint256 public endTime;

    uint256 private _totalStakeBottoEth;
    uint256 private _totalWeight;
    uint256 private _mostRecentValueCalcTime;

    mapping(address => uint256) public userClaimedRewards;

    mapping(address => uint256) private _userStakedBottoEth;
    mapping(address => uint256) private _userWeighted;
    mapping(address => uint256) private _userAccumulated;

    event Deposit(uint256 totalRewards, uint256 startTime, uint256 endTime);
    event Stake(address indexed staker, uint256 bottoEthIn);
    event Payout(address indexed staker, uint256 reward);
    event Withdraw(address indexed staker, uint256 bottoEthOut);

    /// @dev Expects a BOTTO-ETH LP token address & the BOTTO reward token address
    function initialize(address _bottoEth, address _botto) public initializer {
        __Ownable_init();
        __ReentrancyGuard_init();
        bottoEth = _bottoEth;
        botto = _botto;
    }

    function deposit(
        uint256 _totalRewards,
        uint256 _startTime,
        uint256 _endTime
    ) public virtual onlyOwner {
        require(
            startTime == 0,
            "LiquidityMining::deposit: already received deposit"
        );

        require(
            _startTime >= block.timestamp,
            "LiquidityMining::deposit: start time must be in future"
        );

        require(
            _endTime > _startTime,
            "LiquidityMining::deposit: end time must after start time"
        );

        require(
            IERC20(botto).balanceOf(address(this)) == _totalRewards,
            "LiquidityMining::deposit: contract balance does not equal expected _totalRewards"
        );

        totalRewards = _totalRewards;
        startTime = _startTime;
        endTime = _endTime;

        emit Deposit(_totalRewards, _startTime, _endTime);
    }

    function totalStake() public view returns (uint256 total) {
        total = _totalStakeBottoEth;
    }

    function totalUserStake(address user) public view returns (uint256 total) {
        total = _userStakedBottoEth[user];
    }

    modifier update() {
        if (_mostRecentValueCalcTime == 0) {
            _mostRecentValueCalcTime = firstStakeTime;
        }

        uint256 totalCurrentStake = totalStake();

        if (totalCurrentStake > 0 && _mostRecentValueCalcTime < endTime) {
            uint256 value = 0;
            uint256 sinceLastCalc = block.timestamp.sub(
                _mostRecentValueCalcTime
            );
            uint256 perSecondReward = totalRewards.div(
                endTime.sub(firstStakeTime)
            );

            if (block.timestamp < endTime) {
                value = sinceLastCalc.mul(perSecondReward);
            } else {
                uint256 sinceEndTime = block.timestamp.sub(endTime);
                value = (sinceLastCalc.sub(sinceEndTime)).mul(perSecondReward);
            }

            _totalWeight = _totalWeight.add(
                value.mul(10**18).div(totalCurrentStake)
            );

            _mostRecentValueCalcTime = block.timestamp;
        }

        _;
    }

    function stake(uint256 bottoEthIn) public virtual update nonReentrant {
        require(bottoEthIn > 0, "LiquidityMining::stake: missing stake");
        require(
            block.timestamp >= startTime,
            "LiquidityMining::stake: staking isn't live yet"
        );
        require(
            IERC20(botto).balanceOf(address(this)) > 0,
            "LiquidityMining::stake: no BOTTO balance"
        );

        if (firstStakeTime == 0) {
            firstStakeTime = block.timestamp;
        } else {
            require(
                block.timestamp < endTime,
                "LiquidityMining::stake: staking is over"
            );
        }

        if (bottoEthIn > 0) {
            bottoEth.safeTransferFrom(msg.sender, address(this), bottoEthIn);
        }

        if (totalUserStake(msg.sender) == 0) {
            totalStakers = totalStakers.add(1);
        }

        _stake(bottoEthIn, msg.sender);

        emit Stake(msg.sender, bottoEthIn);
    }

    function withdraw()
        public
        virtual
        update
        nonReentrant
        returns (uint256 bottoEthOut, uint256 reward)
    {
        totalStakers = totalStakers.sub(1);

        (bottoEthOut, reward) = _applyReward(msg.sender);

        if (bottoEthOut > 0) {
            bottoEth.safeTransfer(msg.sender, bottoEthOut);
        }

        if (reward > 0) {
            botto.safeTransfer(msg.sender, reward);
            userClaimedRewards[msg.sender] = userClaimedRewards[msg.sender].add(
                reward
            );
            totalClaimedRewards = totalClaimedRewards.add(reward);

            emit Payout(msg.sender, reward);
        }

        emit Withdraw(msg.sender, bottoEthOut);
    }

    function payout()
        public
        virtual
        update
        nonReentrant
        returns (uint256 reward)
    {
        require(
            block.timestamp < endTime,
            "LiquidityMining::payout: withdraw instead"
        );

        (uint256 bottoEthOut, uint256 _reward) = _applyReward(msg.sender);

        reward = _reward;

        if (reward > 0) {
            botto.safeTransfer(msg.sender, reward);
            userClaimedRewards[msg.sender] = userClaimedRewards[msg.sender].add(
                reward
            );
            totalClaimedRewards = totalClaimedRewards.add(reward);
        }

        _stake(bottoEthOut, msg.sender);

        emit Payout(msg.sender, _reward);
    }

    function _stake(uint256 bottoEthIn, address account) private {
        uint256 addBackBottoEth;

        if (totalUserStake(account) > 0) {
            (uint256 bottoEthOut, uint256 reward) = _applyReward(account);
            addBackBottoEth = bottoEthOut;
            _userStakedBottoEth[account] = bottoEthOut;
            _userAccumulated[account] = reward;
        }

        _userStakedBottoEth[account] = _userStakedBottoEth[account].add(
            bottoEthIn
        );

        _userWeighted[account] = _totalWeight;

        _totalStakeBottoEth = _totalStakeBottoEth.add(bottoEthIn);

        if (addBackBottoEth > 0) {
            _totalStakeBottoEth = _totalStakeBottoEth.add(addBackBottoEth);
        }
    }

    function _applyReward(address account)
        private
        returns (uint256 bottoEthOut, uint256 reward)
    {
        uint256 _totalUserStake = totalUserStake(account);
        require(
            _totalUserStake > 0,
            "LiquidityMining::_applyReward: no coins staked"
        );

        bottoEthOut = _userStakedBottoEth[account];

        reward = _totalUserStake
            .mul(_totalWeight.sub(_userWeighted[account]))
            .div(10**18)
            .add(_userAccumulated[account]);

        _totalStakeBottoEth = _totalStakeBottoEth.sub(bottoEthOut);

        _userStakedBottoEth[account] = 0;

        _userAccumulated[account] = 0;
    }

    function rescueTokens(
        address tokenToRescue,
        address to,
        uint256 amount
    ) public virtual onlyOwner nonReentrant {
        if (tokenToRescue == bottoEth) {
            require(
                amount <=
                    IERC20(bottoEth).balanceOf(address(this)).sub(
                        _totalStakeBottoEth
                    ),
                "LiquidityMining::rescueTokens: that BottoEth belongs to stakers"
            );
        } else if (tokenToRescue == botto) {
            if (totalStakers > 0) {
                require(
                    amount <=
                        IERC20(botto).balanceOf(address(this)).sub(
                            totalRewards.sub(totalClaimedRewards)
                        ),
                    "LiquidityMining::rescueTokens: that BOTTO belongs to stakers"
                );
            }
        }

        tokenToRescue.safeTransfer(to, amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Payout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"bottoEthIn","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"bottoEthOut","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"botto","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bottoEth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalRewards","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bottoEth","type":"address"},{"internalType":"address","name":"_botto","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payout","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenToRescue","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bottoEthIn","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDepositRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStake","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"totalUserStake","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"updateEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"uint256","name":"bottoEthOut","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506122be806100206000396000f3fe608060405234801561001057600080fd5b50600436106101405760003560e01c806378e97925116100b8578063a97ed4861161007c578063a97ed4861461029d578063cad92a4b146102c3578063cea9d26f146102cb578063d578ceab14610301578063eb4b122614610309578063f2fde38b1461031157610140565b806378e9792514610244578063869890381461024c5780638b0e9f3f146102545780638da5cb5b1461025c578063a694fc3a1461028057610140565b80633ccfd60b1161010a5780633ccfd60b146101c0578063485cc955146101e157806363bd1d4a1461020f5780636ab3846b14610217578063715018a6146102345780637247b2b91461023c57610140565b8062aeef8a14610145578062f1197c146101705780630e15561a146101a85780633197cbb6146101b05780633bf760a1146101b8575b600080fd5b61016e6004803603606081101561015b57600080fd5b5080359060208101359060400135610337565b005b6101966004803603602081101561018657600080fd5b50356001600160a01b031661055b565b60408051918252519081900360200190f35b61019661056d565b610196610573565b610196610579565b6101c861057f565b6040805192835260208301919091528051918290030190f35b61016e600480360360408110156101f757600080fd5b506001600160a01b03813581169160200135166107cd565b6101966108b1565b61016e6004803603602081101561022d57600080fd5b5035610acc565b61016e610d6a565b610196610e16565b610196610e34565b610196610e3a565b610196610e40565b610264610e46565b604080516001600160a01b039092168252519081900360200190f35b61016e6004803603602081101561029657600080fd5b5035610e55565b610196600480360360208110156102b357600080fd5b50356001600160a01b031661117a565b610264611195565b61016e600480360360608110156102e157600080fd5b506001600160a01b038135811691602081013590911690604001356111a4565b61019661140b565b610264611411565b61016e6004803603602081101561032757600080fd5b50356001600160a01b0316611420565b61033f611523565b6001600160a01b0316610350610e46565b6001600160a01b031614610399576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b609c54156103d85760405162461bcd60e51b8152600401808060200182810382526032815260200180611fc46032913960400191505060405180910390fd5b428210156104175760405162461bcd60e51b8152600401808060200182810382526036815260200180611ea56036913960400191505060405180910390fd5b8181116104555760405162461bcd60e51b81526004018080602001828103825260388152602001806120276038913960400191505060405180910390fd5b609854604080516370a0823160e01b8152306004820152905185926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561049f57600080fd5b505afa1580156104b3573d6000803e3d6000fd5b505050506040513d60208110156104c957600080fd5b5051146105075760405162461bcd60e51b815260040180806020018281038252605081526020018061205f6050913960600191505060405180910390fd5b609a839055609c829055609e819055604080518481526020810184905280820183905290517f33da4f9b82b3e18a281ca2cabbe2f076925692abb593b7ea3f850009e8ec97709181900360600190a1505050565b60a26020526000908152604090205481565b609a5481565b609e5481565b609d5481565b60008060a1546000141561059457609d5460a1555b600061059e610e40565b90506000811180156105b35750609e5460a154105b15610678576000806105d060a1544261152790919063ffffffff16565b905060006105f76105ee609d54609e5461152790919063ffffffff16565b609a5490611589565b9050609e544210156106145761060d82826115f0565b9250610645565b600061062b609e544261152790919063ffffffff16565b90506106418261063b8584611527565b906115f0565b9350505b61066d6106648561065e86670de0b6b3a76400006115f0565b90611589565b60a05490611650565b60a05550504260a155505b600260655414156106be576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b60026065556099546106d1906001611527565b6099556106dd336116aa565b909350915082156106ff576097546106ff906001600160a01b03163385611796565b811561078d5760985461071c906001600160a01b03163384611796565b33600090815260a260205260409020546107369083611650565b33600090815260a26020526040902055609b546107539083611650565b609b5560408051838152905133917f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6919081900360200190a25b60408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25060016065559091565b600054610100900460ff16806107e657506107e66118e9565b806107f4575060005460ff16155b61082f5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff1615801561085a576000805460ff1961ff0019909116610100171660011790555b6108626118fa565b61086a6119ac565b609780546001600160a01b038086166001600160a01b031992831617909255609880549285169290911691909117905580156108ac576000805461ff00191690555b505050565b600060a154600014156108c557609d5460a1555b60006108cf610e40565b90506000811180156108e45750609e5460a154105b1561098b5760008061090160a1544261152790919063ffffffff16565b9050600061091f6105ee609d54609e5461152790919063ffffffff16565b9050609e5442101561093c5761093582826115f0565b9250610967565b6000610953609e544261152790919063ffffffff16565b90506109638261063b8584611527565b9350505b6109806106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b600260655414156109d1576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b6002606555609e544210610a165760405162461bcd60e51b8152600401808060200182810382526029815260200180611f396029913960400191505060405180910390fd5b600080610a22336116aa565b945091508390508015610a8157609854610a46906001600160a01b03163386611796565b33600090815260a26020526040902054610a609085611650565b33600090815260a26020526040902055609b54610a7d9085611650565b609b555b610a8b8233611a41565b60408051828152905133917f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6919081900360200190a2505060016065555090565b60a154610ada57609d5460a1555b6000610ae4610e40565b9050600081118015610af95750609e5460a154105b15610ba057600080610b1660a1544261152790919063ffffffff16565b90506000610b346105ee609d54609e5461152790919063ffffffff16565b9050609e54421015610b5157610b4a82826115f0565b9250610b7c565b6000610b68609e544261152790919063ffffffff16565b9050610b788261063b8584611527565b9350505b610b956106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b610ba8611523565b6001600160a01b0316610bb9610e46565b6001600160a01b031614610c02576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b60026065541415610c48576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b6002606555609e544210610c8d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806121ff602f913960400191505060405180910390fd5b814210610ccb5760405162461bcd60e51b815260040180806020018281038252603e815260200180611edb603e913960400191505060405180910390fd5b609d5415610d3d576000610cef6105ee609d54609e5461152790919063ffffffff16565b90506000610d08609d544261152790919063ffffffff16565b90506000610d1682846115f0565b609a54909150610d269082611527565b609a5560a654610d369082611650565b60a6555050505b609e8290556000610d4c610e40565b1115610d5b5742609d55610d61565b6000609d555b50506001606555565b610d72611523565b6001600160a01b0316610d83610e46565b6001600160a01b031614610dcc576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6000610e2f60a654609a5461165090919063ffffffff16565b905090565b609c5481565b60995481565b609f5490565b6033546001600160a01b031690565b60a154610e6357609d5460a1555b6000610e6d610e40565b9050600081118015610e825750609e5460a154105b15610f2957600080610e9f60a1544261152790919063ffffffff16565b90506000610ebd6105ee609d54609e5461152790919063ffffffff16565b9050609e54421015610eda57610ed382826115f0565b9250610f05565b6000610ef1609e544261152790919063ffffffff16565b9050610f018261063b8584611527565b9350505b610f1e6106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b60026065541415610f6f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b600260655581610fb05760405162461bcd60e51b815260040180806020018281038252602581526020018061210b6025913960400191505060405180910390fd5b609c54421015610ff15760405162461bcd60e51b815260040180806020018281038252602e81526020018061225b602e913960400191505060405180910390fd5b609854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561103c57600080fd5b505afa158015611050573d6000803e3d6000fd5b505050506040513d602081101561106657600080fd5b5051116110a45760405162461bcd60e51b81526004018080602001828103825260288152602001806121d76028913960400191505060405180910390fd5b609d546110b45742609d556110f4565b609e5442106110f45760405162461bcd60e51b81526004018080602001828103825260278152602001806121306027913960400191505060405180910390fd5b811561111257609754611112906001600160a01b0316333085611b03565b61111b3361117a565b6111315760995461112d906001611650565b6099555b61113b8233611a41565b60408051838152905133917febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a919081900360200190a250506001606555565b6001600160a01b0316600090815260a3602052604090205490565b6098546001600160a01b031681565b6111ac611523565b6001600160a01b03166111bd610e46565b6001600160a01b031614611206576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6002606554141561124c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b60026065556097546001600160a01b038481169116141561132c57609f54609754604080516370a0823160e01b815230600482015290516112e993926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112b757600080fd5b505afa1580156112cb573d6000803e3d6000fd5b505050506040513d60208110156112e157600080fd5b505190611527565b8111156113275760405162461bcd60e51b815260040180806020018281038252603f815260200180612198603f913960400191505060405180910390fd5b6113ed565b6098546001600160a01b03848116911614156113ed57609954156113ed576113af611364609b54609a5461152790919063ffffffff16565b609854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112b757600080fd5b8111156113ed5760405162461bcd60e51b815260040180806020018281038252603c815260200180611f88603c913960400191505060405180910390fd5b6114016001600160a01b0384168383611796565b5050600160655550565b609b5481565b6097546001600160a01b031681565b611428611523565b6001600160a01b0316611439610e46565b6001600160a01b031614611482576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6001600160a01b0381166114c75760405162461bcd60e51b8152600401808060200182810382526026815260200180611f626026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282111561157e576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008082116115df576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816115e857fe5b049392505050565b6000826115ff57506000611583565b8282028284828161160c57fe5b04146116495760405162461bcd60e51b81526004018080602001828103825260218152602001806121576021913960400191505060405180910390fd5b9392505050565b600082820183811015611649576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006116b88461117a565b9050600081116116f95760405162461bcd60e51b815260040180806020018281038252602e8152602001806120af602e913960400191505060405180910390fd5b6001600160a01b038416600090815260a3602090815260408083205460a583528184205460a490935292205460a0549295506117589261175291670de0b6b3a76400009161065e9161174b9190611527565b86906115f0565b90611650565b609f549092506117689084611527565b609f55506001600160a01b03909216600090815260a36020908152604080832083905560a590915281205591565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106118125780518252601f1990920191602091820191016117f3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611874576040519150601f19603f3d011682016040523d82523d6000602084013e611879565b606091505b50915091508180156118a75750805115806118a757508080602001905160208110156118a457600080fd5b50515b6118e25760405162461bcd60e51b815260040180806020018281038252602d81526020018061222e602d913960400191505060405180910390fd5b5050505050565b60006118f430611c5f565b15905090565b600054610100900460ff168061191357506119136118e9565b80611921575060005460ff16155b61195c5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611987576000805460ff1961ff0019909116610100171660011790555b61198f611c65565b611997611d05565b80156119a9576000805461ff00191690555b50565b600054610100900460ff16806119c557506119c56118e9565b806119d3575060005460ff16155b611a0e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611a39576000805460ff1961ff0019909116610100171660011790555b611997611dfe565b600080611a4d8361117a565b1115611a8a57600080611a5f846116aa565b6001600160a01b038616600090815260a36020908152604080832085905560a5909152902055925050505b6001600160a01b038216600090815260a36020526040902054611aad9084611650565b6001600160a01b038316600090815260a3602090815260408083209390935560a05460a490915291902055609f54611ae59084611650565b609f5580156108ac57609f54611afb9082611650565b609f55505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000948594938a169392918291908083835b60208310611b875780518252601f199092019160209182019101611b68565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611be9576040519150601f19603f3d011682016040523d82523d6000602084013e611bee565b606091505b5091509150818015611c1c575080511580611c1c5750808060200190516020811015611c1957600080fd5b50515b611c575760405162461bcd60e51b8152600401808060200182810382526031815260200180611ff66031913960400191505060405180910390fd5b505050505050565b3b151590565b600054610100900460ff1680611c7e5750611c7e6118e9565b80611c8c575060005460ff16155b611cc75760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611997576000805460ff1961ff00199091166101001716600117905580156119a9576000805461ff001916905550565b600054610100900460ff1680611d1e5750611d1e6118e9565b80611d2c575060005460ff16155b611d675760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611d92576000805460ff1961ff0019909116610100171660011790555b6000611d9c611523565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156119a9576000805461ff001916905550565b600054610100900460ff1680611e175750611e176118e9565b80611e25575060005460ff16155b611e605760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611e8b576000805460ff1961ff0019909116610100171660011790555b600160655580156119a9576000805461ff00191690555056fe4c69717569646974794d696e696e673a3a6465706f7369743a2073746172742074696d65206d75737420626520696e206675747572654c69717569646974794d696e696e673a3a757064617465456e6454696d653a206e657720656e642074696d65206d75737420626520696e206675747572655265656e7472616e637947756172643a207265656e7472616e742063616c6c004c69717569646974794d696e696e673a3a7061796f75743a20776974686472617720696e73746561644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734c69717569646974794d696e696e673a3a726573637565546f6b656e733a207468617420424f54544f2062656c6f6e677320746f207374616b6572734c69717569646974794d696e696e673a3a6465706f7369743a20616c7265616479207265636569766564206465706f7369745472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65644c69717569646974794d696e696e673a3a6465706f7369743a20656e642074696d65206d7573742061667465722073746172742074696d654c69717569646974794d696e696e673a3a6465706f7369743a20636f6e74726163742062616c616e636520646f6573206e6f7420657175616c206578706563746564205f746f74616c526577617264734c69717569646974794d696e696e673a3a5f6170706c795265776172643a206e6f20636f696e73207374616b6564496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644c69717569646974794d696e696e673a3a7374616b653a206d697373696e67207374616b654c69717569646974794d696e696e673a3a7374616b653a207374616b696e67206973206f766572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724c69717569646974794d696e696e673a3a726573637565546f6b656e733a207468617420426f74746f4574682062656c6f6e677320746f207374616b6572734c69717569646974794d696e696e673a3a7374616b653a206e6f20424f54544f2062616c616e63654c69717569646974794d696e696e673a3a757064617465456e6454696d653a207374616b696e67206973206f7665725472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c65644c69717569646974794d696e696e673a3a7374616b653a207374616b696e672069736e2774206c69766520796574a26469706673582212202c95c58333427b20e72c5e43db17cf0b11e19eceee2db54eb0af7d92fe427aac64736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101405760003560e01c806378e97925116100b8578063a97ed4861161007c578063a97ed4861461029d578063cad92a4b146102c3578063cea9d26f146102cb578063d578ceab14610301578063eb4b122614610309578063f2fde38b1461031157610140565b806378e9792514610244578063869890381461024c5780638b0e9f3f146102545780638da5cb5b1461025c578063a694fc3a1461028057610140565b80633ccfd60b1161010a5780633ccfd60b146101c0578063485cc955146101e157806363bd1d4a1461020f5780636ab3846b14610217578063715018a6146102345780637247b2b91461023c57610140565b8062aeef8a14610145578062f1197c146101705780630e15561a146101a85780633197cbb6146101b05780633bf760a1146101b8575b600080fd5b61016e6004803603606081101561015b57600080fd5b5080359060208101359060400135610337565b005b6101966004803603602081101561018657600080fd5b50356001600160a01b031661055b565b60408051918252519081900360200190f35b61019661056d565b610196610573565b610196610579565b6101c861057f565b6040805192835260208301919091528051918290030190f35b61016e600480360360408110156101f757600080fd5b506001600160a01b03813581169160200135166107cd565b6101966108b1565b61016e6004803603602081101561022d57600080fd5b5035610acc565b61016e610d6a565b610196610e16565b610196610e34565b610196610e3a565b610196610e40565b610264610e46565b604080516001600160a01b039092168252519081900360200190f35b61016e6004803603602081101561029657600080fd5b5035610e55565b610196600480360360208110156102b357600080fd5b50356001600160a01b031661117a565b610264611195565b61016e600480360360608110156102e157600080fd5b506001600160a01b038135811691602081013590911690604001356111a4565b61019661140b565b610264611411565b61016e6004803603602081101561032757600080fd5b50356001600160a01b0316611420565b61033f611523565b6001600160a01b0316610350610e46565b6001600160a01b031614610399576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b609c54156103d85760405162461bcd60e51b8152600401808060200182810382526032815260200180611fc46032913960400191505060405180910390fd5b428210156104175760405162461bcd60e51b8152600401808060200182810382526036815260200180611ea56036913960400191505060405180910390fd5b8181116104555760405162461bcd60e51b81526004018080602001828103825260388152602001806120276038913960400191505060405180910390fd5b609854604080516370a0823160e01b8152306004820152905185926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561049f57600080fd5b505afa1580156104b3573d6000803e3d6000fd5b505050506040513d60208110156104c957600080fd5b5051146105075760405162461bcd60e51b815260040180806020018281038252605081526020018061205f6050913960600191505060405180910390fd5b609a839055609c829055609e819055604080518481526020810184905280820183905290517f33da4f9b82b3e18a281ca2cabbe2f076925692abb593b7ea3f850009e8ec97709181900360600190a1505050565b60a26020526000908152604090205481565b609a5481565b609e5481565b609d5481565b60008060a1546000141561059457609d5460a1555b600061059e610e40565b90506000811180156105b35750609e5460a154105b15610678576000806105d060a1544261152790919063ffffffff16565b905060006105f76105ee609d54609e5461152790919063ffffffff16565b609a5490611589565b9050609e544210156106145761060d82826115f0565b9250610645565b600061062b609e544261152790919063ffffffff16565b90506106418261063b8584611527565b906115f0565b9350505b61066d6106648561065e86670de0b6b3a76400006115f0565b90611589565b60a05490611650565b60a05550504260a155505b600260655414156106be576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b60026065556099546106d1906001611527565b6099556106dd336116aa565b909350915082156106ff576097546106ff906001600160a01b03163385611796565b811561078d5760985461071c906001600160a01b03163384611796565b33600090815260a260205260409020546107369083611650565b33600090815260a26020526040902055609b546107539083611650565b609b5560408051838152905133917f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6919081900360200190a25b60408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25060016065559091565b600054610100900460ff16806107e657506107e66118e9565b806107f4575060005460ff16155b61082f5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff1615801561085a576000805460ff1961ff0019909116610100171660011790555b6108626118fa565b61086a6119ac565b609780546001600160a01b038086166001600160a01b031992831617909255609880549285169290911691909117905580156108ac576000805461ff00191690555b505050565b600060a154600014156108c557609d5460a1555b60006108cf610e40565b90506000811180156108e45750609e5460a154105b1561098b5760008061090160a1544261152790919063ffffffff16565b9050600061091f6105ee609d54609e5461152790919063ffffffff16565b9050609e5442101561093c5761093582826115f0565b9250610967565b6000610953609e544261152790919063ffffffff16565b90506109638261063b8584611527565b9350505b6109806106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b600260655414156109d1576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b6002606555609e544210610a165760405162461bcd60e51b8152600401808060200182810382526029815260200180611f396029913960400191505060405180910390fd5b600080610a22336116aa565b945091508390508015610a8157609854610a46906001600160a01b03163386611796565b33600090815260a26020526040902054610a609085611650565b33600090815260a26020526040902055609b54610a7d9085611650565b609b555b610a8b8233611a41565b60408051828152905133917f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6919081900360200190a2505060016065555090565b60a154610ada57609d5460a1555b6000610ae4610e40565b9050600081118015610af95750609e5460a154105b15610ba057600080610b1660a1544261152790919063ffffffff16565b90506000610b346105ee609d54609e5461152790919063ffffffff16565b9050609e54421015610b5157610b4a82826115f0565b9250610b7c565b6000610b68609e544261152790919063ffffffff16565b9050610b788261063b8584611527565b9350505b610b956106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b610ba8611523565b6001600160a01b0316610bb9610e46565b6001600160a01b031614610c02576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b60026065541415610c48576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b6002606555609e544210610c8d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806121ff602f913960400191505060405180910390fd5b814210610ccb5760405162461bcd60e51b815260040180806020018281038252603e815260200180611edb603e913960400191505060405180910390fd5b609d5415610d3d576000610cef6105ee609d54609e5461152790919063ffffffff16565b90506000610d08609d544261152790919063ffffffff16565b90506000610d1682846115f0565b609a54909150610d269082611527565b609a5560a654610d369082611650565b60a6555050505b609e8290556000610d4c610e40565b1115610d5b5742609d55610d61565b6000609d555b50506001606555565b610d72611523565b6001600160a01b0316610d83610e46565b6001600160a01b031614610dcc576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6000610e2f60a654609a5461165090919063ffffffff16565b905090565b609c5481565b60995481565b609f5490565b6033546001600160a01b031690565b60a154610e6357609d5460a1555b6000610e6d610e40565b9050600081118015610e825750609e5460a154105b15610f2957600080610e9f60a1544261152790919063ffffffff16565b90506000610ebd6105ee609d54609e5461152790919063ffffffff16565b9050609e54421015610eda57610ed382826115f0565b9250610f05565b6000610ef1609e544261152790919063ffffffff16565b9050610f018261063b8584611527565b9350505b610f1e6106648561065e86670de0b6b3a76400006115f0565b60a05550504260a155505b60026065541415610f6f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b600260655581610fb05760405162461bcd60e51b815260040180806020018281038252602581526020018061210b6025913960400191505060405180910390fd5b609c54421015610ff15760405162461bcd60e51b815260040180806020018281038252602e81526020018061225b602e913960400191505060405180910390fd5b609854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561103c57600080fd5b505afa158015611050573d6000803e3d6000fd5b505050506040513d602081101561106657600080fd5b5051116110a45760405162461bcd60e51b81526004018080602001828103825260288152602001806121d76028913960400191505060405180910390fd5b609d546110b45742609d556110f4565b609e5442106110f45760405162461bcd60e51b81526004018080602001828103825260278152602001806121306027913960400191505060405180910390fd5b811561111257609754611112906001600160a01b0316333085611b03565b61111b3361117a565b6111315760995461112d906001611650565b6099555b61113b8233611a41565b60408051838152905133917febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a919081900360200190a250506001606555565b6001600160a01b0316600090815260a3602052604090205490565b6098546001600160a01b031681565b6111ac611523565b6001600160a01b03166111bd610e46565b6001600160a01b031614611206576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6002606554141561124c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f19833981519152604482015290519081900360640190fd5b60026065556097546001600160a01b038481169116141561132c57609f54609754604080516370a0823160e01b815230600482015290516112e993926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112b757600080fd5b505afa1580156112cb573d6000803e3d6000fd5b505050506040513d60208110156112e157600080fd5b505190611527565b8111156113275760405162461bcd60e51b815260040180806020018281038252603f815260200180612198603f913960400191505060405180910390fd5b6113ed565b6098546001600160a01b03848116911614156113ed57609954156113ed576113af611364609b54609a5461152790919063ffffffff16565b609854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112b757600080fd5b8111156113ed5760405162461bcd60e51b815260040180806020018281038252603c815260200180611f88603c913960400191505060405180910390fd5b6114016001600160a01b0384168383611796565b5050600160655550565b609b5481565b6097546001600160a01b031681565b611428611523565b6001600160a01b0316611439610e46565b6001600160a01b031614611482576040805162461bcd60e51b81526020600482018190526024820152600080516020612178833981519152604482015290519081900360640190fd5b6001600160a01b0381166114c75760405162461bcd60e51b8152600401808060200182810382526026815260200180611f626026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282111561157e576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008082116115df576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816115e857fe5b049392505050565b6000826115ff57506000611583565b8282028284828161160c57fe5b04146116495760405162461bcd60e51b81526004018080602001828103825260218152602001806121576021913960400191505060405180910390fd5b9392505050565b600082820183811015611649576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006116b88461117a565b9050600081116116f95760405162461bcd60e51b815260040180806020018281038252602e8152602001806120af602e913960400191505060405180910390fd5b6001600160a01b038416600090815260a3602090815260408083205460a583528184205460a490935292205460a0549295506117589261175291670de0b6b3a76400009161065e9161174b9190611527565b86906115f0565b90611650565b609f549092506117689084611527565b609f55506001600160a01b03909216600090815260a36020908152604080832083905560a590915281205591565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106118125780518252601f1990920191602091820191016117f3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611874576040519150601f19603f3d011682016040523d82523d6000602084013e611879565b606091505b50915091508180156118a75750805115806118a757508080602001905160208110156118a457600080fd5b50515b6118e25760405162461bcd60e51b815260040180806020018281038252602d81526020018061222e602d913960400191505060405180910390fd5b5050505050565b60006118f430611c5f565b15905090565b600054610100900460ff168061191357506119136118e9565b80611921575060005460ff16155b61195c5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611987576000805460ff1961ff0019909116610100171660011790555b61198f611c65565b611997611d05565b80156119a9576000805461ff00191690555b50565b600054610100900460ff16806119c557506119c56118e9565b806119d3575060005460ff16155b611a0e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611a39576000805460ff1961ff0019909116610100171660011790555b611997611dfe565b600080611a4d8361117a565b1115611a8a57600080611a5f846116aa565b6001600160a01b038616600090815260a36020908152604080832085905560a5909152902055925050505b6001600160a01b038216600090815260a36020526040902054611aad9084611650565b6001600160a01b038316600090815260a3602090815260408083209390935560a05460a490915291902055609f54611ae59084611650565b609f5580156108ac57609f54611afb9082611650565b609f55505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000948594938a169392918291908083835b60208310611b875780518252601f199092019160209182019101611b68565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611be9576040519150601f19603f3d011682016040523d82523d6000602084013e611bee565b606091505b5091509150818015611c1c575080511580611c1c5750808060200190516020811015611c1957600080fd5b50515b611c575760405162461bcd60e51b8152600401808060200182810382526031815260200180611ff66031913960400191505060405180910390fd5b505050505050565b3b151590565b600054610100900460ff1680611c7e5750611c7e6118e9565b80611c8c575060005460ff16155b611cc75760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611997576000805460ff1961ff00199091166101001716600117905580156119a9576000805461ff001916905550565b600054610100900460ff1680611d1e5750611d1e6118e9565b80611d2c575060005460ff16155b611d675760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611d92576000805460ff1961ff0019909116610100171660011790555b6000611d9c611523565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156119a9576000805461ff001916905550565b600054610100900460ff1680611e175750611e176118e9565b80611e25575060005460ff16155b611e605760405162461bcd60e51b815260040180806020018281038252602e8152602001806120dd602e913960400191505060405180910390fd5b600054610100900460ff16158015611e8b576000805460ff1961ff0019909116610100171660011790555b600160655580156119a9576000805461ff00191690555056fe4c69717569646974794d696e696e673a3a6465706f7369743a2073746172742074696d65206d75737420626520696e206675747572654c69717569646974794d696e696e673a3a757064617465456e6454696d653a206e657720656e642074696d65206d75737420626520696e206675747572655265656e7472616e637947756172643a207265656e7472616e742063616c6c004c69717569646974794d696e696e673a3a7061796f75743a20776974686472617720696e73746561644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734c69717569646974794d696e696e673a3a726573637565546f6b656e733a207468617420424f54544f2062656c6f6e677320746f207374616b6572734c69717569646974794d696e696e673a3a6465706f7369743a20616c7265616479207265636569766564206465706f7369745472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c65644c69717569646974794d696e696e673a3a6465706f7369743a20656e642074696d65206d7573742061667465722073746172742074696d654c69717569646974794d696e696e673a3a6465706f7369743a20636f6e74726163742062616c616e636520646f6573206e6f7420657175616c206578706563746564205f746f74616c526577617264734c69717569646974794d696e696e673a3a5f6170706c795265776172643a206e6f20636f696e73207374616b6564496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644c69717569646974794d696e696e673a3a7374616b653a206d697373696e67207374616b654c69717569646974794d696e696e673a3a7374616b653a207374616b696e67206973206f766572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724c69717569646974794d696e696e673a3a726573637565546f6b656e733a207468617420426f74746f4574682062656c6f6e677320746f207374616b6572734c69717569646974794d696e696e673a3a7374616b653a206e6f20424f54544f2062616c616e63654c69717569646974794d696e696e673a3a757064617465456e6454696d653a207374616b696e67206973206f7665725472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c65644c69717569646974794d696e696e673a3a7374616b653a207374616b696e672069736e2774206c69766520796574a26469706673582212202c95c58333427b20e72c5e43db17cf0b11e19eceee2db54eb0af7d92fe427aac64736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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