Contract 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e

Contract Overview

Balance:
0 BNB

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xeec705900278029159c6b7d2140b8c614ee7918e27cb45ed2511a5c07d7170ffWithdraw124014072021-09-16 0:04:4479 days 7 hrs ago0x793f2ab674c5ee62f51a68c2cd26ed8be811dfaa IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00282936
0xbf464aa8b9ce6bd9881ae92f51d620e49c2999de15665c480d63cef5f22599eeWithdraw124005172021-09-15 23:20:1079 days 8 hrs ago0xaad70b58c4f3fb64e788bb4593f6416cdc5b2b45 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00284426
0x1836692ef8dcf7943d4f266785e4e630997ec0c29f8e63115b3de3267e99321cWithdraw124005042021-09-15 23:19:3179 days 8 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00903178
0xfece422f7265f06ca12baa27322c63405ca2a03afad861ec39a7f653e26c1a9dEmergency Reward...124003812021-09-15 23:13:2279 days 8 hrs ago0xaad70b58c4f3fb64e788bb4593f6416cdc5b2b45 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00245374
0x6fdcb0c040f35931beca06583cbbf75148d063d8361d3bb359b235e4cc826e2cDeposit123990632021-09-15 22:07:2879 days 9 hrs ago0x793f2ab674c5ee62f51a68c2cd26ed8be811dfaa IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0xe7447e70970287b1f084ea319ddbc76e97f78398930f0b0fe127b14d64780676Deposit123989642021-09-15 22:02:3179 days 9 hrs ago0x793f2ab674c5ee62f51a68c2cd26ed8be811dfaa IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0xd92abfe7ba7fd72a116d7947f1a63685b98a7b21303196fdc5cb97026e0df83cDeposit123974512021-09-15 20:46:5279 days 10 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0xa1275d393c9f349a6a342b7905399d0897bac0b8b9aa3d1437fe896a1bed7949Deposit123974372021-09-15 20:46:1079 days 10 hrs ago0x793f2ab674c5ee62f51a68c2cd26ed8be811dfaa IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0x0193b18d40515ccd8354be048c2d1bb75491f03b6ee5a661742cfa581ed1aa39Deposit123974052021-09-15 20:44:3479 days 10 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0x1454be93de9c467011e0985e74f718ad740849efed30faadba2582ea255b33a6Deposit123973252021-09-15 20:40:3479 days 10 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00275121
0x61a7022ea50bf6f13809337d1b4b792ed11e95134a5ccef5671389f52bd77ac0Deposit123971952021-09-15 20:34:0479 days 11 hrs ago0x793f2ab674c5ee62f51a68c2cd26ed8be811dfaa IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.0010139
0x54c6338a728e9a066eff789bb7cf0e6a0ea0b3fc14231e72a4458aab49d6f070Deposit123971132021-09-15 20:29:5879 days 11 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00305121
0x135fe7567fe20241617b69b082b979081b354c7c95d6af0f52d6fccf72de281eDeposit123958962021-09-15 19:29:0779 days 12 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00063172
0x236f48f33e810b72a1890528ebcdaae6ab114d26a8db93a158e3d8da36b4c9feDeposit123958452021-09-15 19:26:3479 days 12 hrs ago0xaad70b58c4f3fb64e788bb4593f6416cdc5b2b45 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00108148
0x00286b60b7d2bfb93e93740e946ec5b24666fd0cd1abe52e0f836e2ae01b6871Transfer Ownersh...123955152021-09-15 19:10:0479 days 12 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e0 BNB0.00030101
0x5029dcb70779c55113750ac61c7a412ccf48d5b884a0c640bc6dd10f8b5715d60x61010060123955072021-09-15 19:09:4079 days 12 hrs ago0xc275bd59b05e631f4db177f7a906b4c54dfb21f3 IN  Contract Creation0 BNB0.01499509
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xeec705900278029159c6b7d2140b8c614ee7918e27cb45ed2511a5c07d7170ff124014072021-09-16 0:04:4479 days 7 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0xf2400d9e66bfbf715c09739d56db48d4cf9237790 BNB
0xeec705900278029159c6b7d2140b8c614ee7918e27cb45ed2511a5c07d7170ff124014072021-09-16 0:04:4479 days 7 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xeec705900278029159c6b7d2140b8c614ee7918e27cb45ed2511a5c07d7170ff124014072021-09-16 0:04:4479 days 7 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xbf464aa8b9ce6bd9881ae92f51d620e49c2999de15665c480d63cef5f22599ee124005172021-09-15 23:20:1079 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0xf2400d9e66bfbf715c09739d56db48d4cf9237790 BNB
0xbf464aa8b9ce6bd9881ae92f51d620e49c2999de15665c480d63cef5f22599ee124005172021-09-15 23:20:1079 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xbf464aa8b9ce6bd9881ae92f51d620e49c2999de15665c480d63cef5f22599ee124005172021-09-15 23:20:1079 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x1836692ef8dcf7943d4f266785e4e630997ec0c29f8e63115b3de3267e99321c124005042021-09-15 23:19:3179 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0xf2400d9e66bfbf715c09739d56db48d4cf9237790 BNB
0x1836692ef8dcf7943d4f266785e4e630997ec0c29f8e63115b3de3267e99321c124005042021-09-15 23:19:3179 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x1836692ef8dcf7943d4f266785e4e630997ec0c29f8e63115b3de3267e99321c124005042021-09-15 23:19:3179 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xfece422f7265f06ca12baa27322c63405ca2a03afad861ec39a7f653e26c1a9d124003812021-09-15 23:13:2279 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xfece422f7265f06ca12baa27322c63405ca2a03afad861ec39a7f653e26c1a9d124003812021-09-15 23:13:2279 days 8 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x6fdcb0c040f35931beca06583cbbf75148d063d8361d3bb359b235e4cc826e2c123990632021-09-15 22:07:2879 days 9 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x6fdcb0c040f35931beca06583cbbf75148d063d8361d3bb359b235e4cc826e2c123990632021-09-15 22:07:2879 days 9 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xe7447e70970287b1f084ea319ddbc76e97f78398930f0b0fe127b14d64780676123989642021-09-15 22:02:3179 days 9 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xe7447e70970287b1f084ea319ddbc76e97f78398930f0b0fe127b14d64780676123989642021-09-15 22:02:3179 days 9 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xd92abfe7ba7fd72a116d7947f1a63685b98a7b21303196fdc5cb97026e0df83c123974512021-09-15 20:46:5279 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xd92abfe7ba7fd72a116d7947f1a63685b98a7b21303196fdc5cb97026e0df83c123974512021-09-15 20:46:5279 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xa1275d393c9f349a6a342b7905399d0897bac0b8b9aa3d1437fe896a1bed7949123974372021-09-15 20:46:1079 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0xa1275d393c9f349a6a342b7905399d0897bac0b8b9aa3d1437fe896a1bed7949123974372021-09-15 20:46:1079 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x0193b18d40515ccd8354be048c2d1bb75491f03b6ee5a661742cfa581ed1aa39123974052021-09-15 20:44:3479 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x0193b18d40515ccd8354be048c2d1bb75491f03b6ee5a661742cfa581ed1aa39123974052021-09-15 20:44:3479 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x1454be93de9c467011e0985e74f718ad740849efed30faadba2582ea255b33a6123973252021-09-15 20:40:3479 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x1454be93de9c467011e0985e74f718ad740849efed30faadba2582ea255b33a6123973252021-09-15 20:40:3479 days 10 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0x0fa14999b58b390a22524d5d8f286422f7fad5620 BNB
0x61a7022ea50bf6f13809337d1b4b792ed11e95134a5ccef5671389f52bd77ac0123971952021-09-15 20:34:0479 days 11 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0xf2400d9e66bfbf715c09739d56db48d4cf9237790 BNB
0x61a7022ea50bf6f13809337d1b4b792ed11e95134a5ccef5671389f52bd77ac0123971952021-09-15 20:34:0479 days 11 hrs ago 0xd7c9e2b9a03ef7d9a17343ce2ae006700482706e 0xf2400d9e66bfbf715c09739d56db48d4cf9237790 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HalvingPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.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 Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 3 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 6 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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;
        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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 6 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 6 of 6 : HalvingPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/*
 * MoonBird
 * Halving Pool Implementation
 * App:             https://moonbird.finance/
 * Medium:          https://medium.com/@moonbird.finance
 * Twitter:         https://twitter.com/MBirdFinance
 * Telegram:        https://t.me/MBirdFinance
 * Announcements:   https://t.me/MBirdFinanceAnn
 * GitHub:          https://github.com/moonbird-finance
 */

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract HalvingPool is Ownable {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        uint256 allocPoint;       // How many allocation points assigned to this pool. Rewards to distribute per block.
        uint256 lastRewardBlock;  // Last block number that Rewards distribution occurs.
        uint256 accRewardTokenPerShare; // Accumulated Rewards per share, times 1e30. See below.
    }

    // The stake token
    IERC20 immutable public STAKE_TOKEN;
    // The reward token
    IERC20 immutable public REWARD_TOKEN;

    // Blocks to halving.
    uint256 immutable public BLOCKS_TO_HALVING;

    uint8 immutable public TOTAL_HALVINGS;

    // Reward tokens created per block.
    uint256 public rewardPerBlock;

    uint256 public currentHalving = 1;

    // Keep track of number of tokens staked in case the contract earns reflect fees
    uint256 public totalStaked = 0;

    // Info of each pool.
    PoolInfo public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (address => UserInfo) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 private totalAllocPoint = 0;
    // The block number when Reward mining starts.
    uint256 public startBlock;

    event Deposit(address indexed user, uint256 amount);
    event DepositRewards(uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event EmergencyRewardWithdraw(address indexed user, uint256 amount);
    event SkimStakeTokenFees(address indexed user, uint256 amount);

    constructor(
        IERC20 _stakeToken,
        IERC20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _blocksToHalving,
        uint8 _totalHavlings
    ) {
        STAKE_TOKEN = _stakeToken;
        REWARD_TOKEN = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        BLOCKS_TO_HALVING = _blocksToHalving;
        TOTAL_HALVINGS = _totalHavlings;

        // staking pool
        poolInfo = PoolInfo({
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accRewardTokenPerShare: 0
        });

        totalAllocPoint = 1000;

    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to - _from;
    }

    // Return reward multiplier over the given _from to _to block.
    function calculatedHalving() public view returns (uint256 totalHalving) {
        totalHalving = 1;
        if (startBlock < block.number) {
            uint256 halving = (block.number - startBlock) / BLOCKS_TO_HALVING;
            totalHalving = totalHalving + halving;
        }
    }

    function updateHalving() public {
        if (currentHalving != calculatedHalving() && currentHalving < TOTAL_HALVINGS) {
            currentHalving ++;
            rewardPerBlock = rewardPerBlock / 2;
        }
    }

    // View function to see pending Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        uint256 accRewardTokenPerShare = poolInfo.accRewardTokenPerShare;
        if (block.number > poolInfo.lastRewardBlock && totalStaked != 0) {
            uint256 multiplier = getMultiplier(poolInfo.lastRewardBlock, block.number);
            uint256 tokenReward = multiplier * rewardPerBlock * poolInfo.allocPoint / totalAllocPoint;
            accRewardTokenPerShare = accRewardTokenPerShare + (tokenReward * 1e30  / totalStaked);
        }
        return user.amount * accRewardTokenPerShare / 1e30 - user.rewardDebt;
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool() public {
        if (block.number <= poolInfo.lastRewardBlock) {
            return;
        }
        if (totalStaked == 0) {
            poolInfo.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(poolInfo.lastRewardBlock, block.number);
        uint256 tokenReward = multiplier * rewardPerBlock * poolInfo.allocPoint / totalAllocPoint;
        poolInfo.accRewardTokenPerShare = poolInfo.accRewardTokenPerShare + (tokenReward * 1e30 / totalStaked);
        poolInfo.lastRewardBlock = block.number;
        updateHalving();
    }


    /// Deposit staking token into the contract to earn rewards.
    /// @dev Since this contract needs to be supplied with rewards we are
    ///  sending the balance of the contract if the pending rewards are higher
    /// @param _amount The amount of staking tokens to deposit
    function deposit(uint256 _amount) public {
        UserInfo storage user = userInfo[msg.sender];
        uint256 finalDepositAmount = 0;
        updatePool();
        if (user.amount > 0) {
            uint256 pending = user.amount * poolInfo.accRewardTokenPerShare / 1e30 - user.rewardDebt;
            if(pending > 0) {
                uint256 currentRewardBalance = rewardBalance();
                if(currentRewardBalance > 0) {
                    if(pending > currentRewardBalance) {
                        safeTransferReward(address(msg.sender), currentRewardBalance);
                    } else {
                        safeTransferReward(address(msg.sender), pending);
                    }
                }
            }
        }
        if (_amount > 0) {
            uint256 preStakeBalance = STAKE_TOKEN.balanceOf(address(this));
            STAKE_TOKEN.safeTransferFrom(address(msg.sender), address(this), _amount);
            finalDepositAmount = STAKE_TOKEN.balanceOf(address(this)) - preStakeBalance;
            user.amount = user.amount + finalDepositAmount;
            totalStaked = totalStaked + finalDepositAmount;
        }
        user.rewardDebt = user.amount * poolInfo.accRewardTokenPerShare / 1e30;

        emit Deposit(msg.sender, finalDepositAmount);
    }

    /// Withdraw rewards and/or staked tokens. Pass a 0 amount to withdraw only rewards
    /// @param _amount The amount of staking tokens to withdraw
    function withdraw(uint256 _amount) public {
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool();
        uint256 pending = user.amount * poolInfo.accRewardTokenPerShare / 1e30 - user.rewardDebt;
        if(pending > 0) {
            uint256 currentRewardBalance = rewardBalance();
            if(currentRewardBalance > 0) {
                if(pending > currentRewardBalance) {
                    safeTransferReward(address(msg.sender), currentRewardBalance);
                } else {
                    safeTransferReward(address(msg.sender), pending);
                }
            }
        }
        if(_amount > 0) {
            user.amount = user.amount - _amount;
            STAKE_TOKEN.safeTransfer(address(msg.sender), _amount);
            totalStaked = totalStaked - _amount;
        }

        user.rewardDebt = user.amount * poolInfo.accRewardTokenPerShare / 1e30;

        emit Withdraw(msg.sender, _amount);
    }

    /// Obtain the reward balance of this contract
    /// @return wei balace of conract
    function rewardBalance() public view returns (uint256) {
        uint256 balance = REWARD_TOKEN.balanceOf(address(this));
        if (STAKE_TOKEN == REWARD_TOKEN)
            return balance - totalStaked;
        return balance;
    }

    // Deposit Rewards into contract
    function depositRewards(uint256 _amount) external {
        require(_amount > 0, 'Deposit value must be greater than 0.');
        REWARD_TOKEN.safeTransferFrom(address(msg.sender), address(this), _amount);
        emit DepositRewards(_amount);
    }

    /// @param _to address to send reward token to
    /// @param _amount value of reward token to transfer
    function safeTransferReward(address _to, uint256 _amount) internal {
        REWARD_TOKEN.safeTransfer(_to, _amount);
    }

    /// @dev Obtain the stake balance of this contract
    function totalStakeTokenBalance() public view returns (uint256) {
        if (STAKE_TOKEN == REWARD_TOKEN)
            return totalStaked;
        return STAKE_TOKEN.balanceOf(address(this));
    }

    /* Admin Functions */

    /// @param _rewardPerBlock The amount of reward tokens to be given per block
    function setRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner {
        rewardPerBlock = _rewardPerBlock;
    }

    /// @param _startBlock The block to start mining
    /// @notice can only be changed if mining has not started already
    function setStartBlock(uint256 _startBlock) external onlyOwner {
        require(startBlock > block.number, "Pool already started");
        poolInfo.lastRewardBlock = _startBlock;
        startBlock = _startBlock;
    }

    /* Emergency Functions */

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw() external {
        UserInfo storage user = userInfo[msg.sender];
        STAKE_TOKEN.safeTransfer(address(msg.sender), user.amount);
        totalStaked = totalStaked - user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        emit EmergencyWithdraw(msg.sender, user.amount);
    }

    // Withdraw reward. EMERGENCY ONLY.
    function emergencyRewardWithdraw(uint256 _amount) external onlyOwner {
        require(_amount <= rewardBalance(), 'not enough rewards');
        // Withdraw rewards
        safeTransferReward(address(msg.sender), _amount);
        emit EmergencyRewardWithdraw(msg.sender, _amount);
    }

    /// @notice A public function to sweep accidental BEP20 transfers to this contract.
    ///   Tokens are sent to owner
    /// @param token The address of the BEP20 token to sweep
    function sweepToken(IERC20 token) external onlyOwner {
        require(address(token) != address(STAKE_TOKEN) && address(token) != address(REWARD_TOKEN), "can not sweep stake or reward token");
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }

}

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

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_stakeToken","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_blocksToHalving","type":"uint256"},{"internalType":"uint8","name":"_totalHavlings","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyRewardWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SkimStakeTokenFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLOCKS_TO_HALVING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKE_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_HALVINGS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculatedHalving","outputs":[{"internalType":"uint256","name":"totalHalving","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentHalving","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardTokenPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakeTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateHalving","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040526001600255600060035560006008553480156200002157600080fd5b50604051620019ee380380620019ee83398101604081905262000044916200014e565b6200004f33620000e1565b606095861b6001600160601b031990811660805294861b90941660a052600192909255600981905560c09190915260f89190911b7fff000000000000000000000000000000000000000000000000000000000000001660e0526040805192830181526103e8808452602084018390526000939091018390526004819055600591909155600691909155600855620001bb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200014957600080fd5b919050565b60008060008060008060c0878903121562000167578182fd5b620001728762000131565b9550620001826020880162000131565b945060408701519350606087015192506080870151915060a087015160ff81168114620001ad578182fd5b809150509295509295509295565b60805160601c60a05160601c60c05160e05160f81c61177962000275600039600081816103cb01526109af0152600081816102890152610ee201526000818161034d015281816104aa0152818161092801528181610a0801528181610b2501528181610ba301526112610152600081816102240152818161046d0152818161072f01528181610a3201528181610a7c01528181610bcd01528181610cc901528181610d5a01528181610d990152610f4101526117796000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80639415962d116100f9578063db2e21bc11610097578063f18f83fa11610071578063f18f83fa146103c6578063f2fde38b146103ff578063f35e4a6e14610412578063f40f0f521461042557600080fd5b8063db2e21bc146103ad578063e3161ddd146103b5578063e6fd42ee146103bd57600080fd5b8063aa5c3ab4116100d3578063aa5c3ab414610377578063b6b55f251461037f578063bb872b4a14610392578063cef4c3a0146103a557600080fd5b80639415962d1461034057806399248ea714610348578063a49ceb191461036f57600080fd5b80635a2f3d09116101665780638ae39cac116101405780638ae39cac146103005780638bdf67f2146103095780638da5cb5b1461031c5780638dbb1e3a1461032d57600080fd5b80635a2f3d09146102c2578063715018a6146102ef578063817b1cd2146102f757600080fd5b80632e1a7d4d116101a25780632e1a7d4d1461025e5780633279beab14610271578063428cf8321461028457806348cd4cb1146102b957600080fd5b80631959a002146101c95780631be195601461020a5780631c39b6721461021f575b600080fd5b6101f06101d7366004611552565b6007602052600090815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61021d610218366004611552565b610438565b005b6102467f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610201565b61021d61026c36600461158e565b610639565b61021d61027f36600461158e565b6107ce565b6102ab7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610201565b6102ab60095481565b6004546005546006546102d492919083565b60408051938452602084019290925290820152606001610201565b61021d610887565b6102ab60035481565b6102ab60015481565b61021d61031736600461158e565b6108bd565b6000546001600160a01b0316610246565b6102ab61033b3660046115be565b610986565b61021d610999565b6102467f000000000000000000000000000000000000000000000000000000000000000081565b6102ab610a04565b6102ab610b03565b61021d61038d36600461158e565b610c13565b61021d6103a036600461158e565b610ea7565b6102ab610ed1565b61021d610f28565b61021d610fc0565b6102ab60025481565b6103ed7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610201565b61021d61040d366004611552565b61105c565b61021d61042036600461158e565b6110f7565b6102ab610433366004611552565b611173565b6000546001600160a01b0316331461046b5760405162461bcd60e51b81526004016104629061162e565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141580156104df57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614155b6105375760405162461bcd60e51b815260206004820152602360248201527f63616e206e6f74207377656570207374616b65206f722072657761726420746f60448201526235b2b760e91b6064820152608401610462565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561057957600080fd5b505afa15801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b191906115a6565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156105fc57600080fd5b505af1158015610610573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610634919061156e565b505050565b336000908152600760205260409020805482111561068e5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b6044820152606401610462565b610696610fc0565b600181015460065482546000929168327cb2734119d3b7a9601e1b916106bc919061169b565b6106c6919061167b565b6106d091906116ba565b9050801561070d5760006106e2610b03565b9050801561070b5780821115610701576106fc3382611254565b61070b565b61070b3383611254565b505b82156107685781546107209084906116ba565b82556107566001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163385611284565b8260035461076491906116ba565b6003555b600654825468327cb2734119d3b7a9601e1b916107849161169b565b61078e919061167b565b600183015560405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a2505050565b6000546001600160a01b031633146107f85760405162461bcd60e51b81526004016104629061162e565b610800610b03565b8111156108445760405162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f756768207265776172647360701b6044820152606401610462565b61084e3382611254565b60405181815233907f2d4434bb59801e733e9ce3df40b0c5518861a5fcdeec1906e83e03c755872b42906020015b60405180910390a250565b6000546001600160a01b031633146108b15760405162461bcd60e51b81526004016104629061162e565b6108bb60006112e7565b565b6000811161091b5760405162461bcd60e51b815260206004820152602560248201527f4465706f7369742076616c7565206d757374206265206772656174657220746860448201526430b710181760d91b6064820152608401610462565b6109506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611337565b6040518181527f754fe3a3c69256b66ca56365fda4bbf3299d7c94038c105ffd43fb4b37f56db69060200160405180910390a150565b600061099283836116ba565b9392505050565b6109a1610ed1565b600254141580156109d657507f000000000000000000000000000000000000000000000000000000000000000060ff16600254105b156108bb57600280549060006109eb836116fd565b919050555060026001546109ff919061167b565b600155565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415610a67575060035490565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610ac657600080fd5b505afa158015610ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afe91906115a6565b905090565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610b6757600080fd5b505afa158015610b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9f91906115a6565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415610c0e57600354610c0890826116ba565b91505090565b919050565b33600090815260076020526040812090610c2b610fc0565b815415610cab57600182015460065483546000929168327cb2734119d3b7a9601e1b91610c58919061169b565b610c62919061167b565b610c6c91906116ba565b90508015610ca9576000610c7e610b03565b90508015610ca75780821115610c9d57610c983382611254565b610ca7565b610ca73383611254565b505b505b8215610e4a576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610d1357600080fd5b505afa158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b91906115a6565b9050610d826001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333087611337565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610de357600080fd5b505afa158015610df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1b91906115a6565b610e2591906116ba565b8354909250610e35908390611663565b8355600354610e45908390611663565b600355505b600654825468327cb2734119d3b7a9601e1b91610e669161169b565b610e70919061167b565b600183015560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020016107c1565b6000546001600160a01b031633146109ff5760405162461bcd60e51b81526004016104629061162e565b600954600190431115610f255760007f000000000000000000000000000000000000000000000000000000000000000060095443610f0f91906116ba565b610f19919061167b565b9050610c088183611663565b90565b33600081815260076020526040902080549091610f70917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169190611284565b8054600354610f7f91906116ba565b60035560008082556001820181905560405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200161087c565b6005544311610fcb57565b600354610fd85743600555565b6000610fe960046001015443610986565b600854600454600154929350600092611002908561169b565b61100c919061169b565b611016919061167b565b6003549091506110328268327cb2734119d3b7a9601e1b61169b565b61103c919061167b565b6006546110499190611663565b60065543600555611058610999565b5050565b6000546001600160a01b031633146110865760405162461bcd60e51b81526004016104629061162e565b6001600160a01b0381166110eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610462565b6110f4816112e7565b50565b6000546001600160a01b031633146111215760405162461bcd60e51b81526004016104629061162e565b43600954116111695760405162461bcd60e51b8152602060048201526014602482015273141bdbdb08185b1c9958591e481cdd185c9d195960621b6044820152606401610462565b6005819055600955565b6001600160a01b0381166000908152600760205260408120600654600554431180156111a0575060035415155b156112185760006111b660046001015443610986565b6008546004546001549293506000926111cf908561169b565b6111d9919061169b565b6111e3919061167b565b6003549091506111ff8268327cb2734119d3b7a9601e1b61169b565b611209919061167b565b6112139084611663565b925050505b6001820154825468327cb2734119d3b7a9601e1b9061123890849061169b565b611242919061167b565b61124c91906116ba565b949350505050565b6110586001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683835b6040516001600160a01b03831660248201526044810182905261063490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611375565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261136f9085906323b872dd60e01b906084016112b0565b50505050565b60006113ca826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114479092919063ffffffff16565b80519091501561063457808060200190518101906113e8919061156e565b6106345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610462565b606061124c848460008585843b6114a05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610462565b600080866001600160a01b031685876040516114bc91906115df565b60006040518083038185875af1925050503d80600081146114f9576040519150601f19603f3d011682016040523d82523d6000602084013e6114fe565b606091505b509150915061150e828286611519565b979650505050505050565b60608315611528575081610992565b8251156115385782518084602001fd5b8160405162461bcd60e51b815260040161046291906115fb565b600060208284031215611563578081fd5b81356109928161172e565b60006020828403121561157f578081fd5b81518015158114610992578182fd5b60006020828403121561159f578081fd5b5035919050565b6000602082840312156115b7578081fd5b5051919050565b600080604083850312156115d0578081fd5b50508035926020909101359150565b600082516115f18184602087016116d1565b9190910192915050565b602081526000825180602084015261161a8160408501602087016116d1565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561167657611676611718565b500190565b60008261169657634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156116b5576116b5611718565b500290565b6000828210156116cc576116cc611718565b500390565b60005b838110156116ec5781810151838201526020016116d4565b8381111561136f5750506000910152565b600060001982141561171157611711611718565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146110f457600080fdfea2646970667358221220763399fb8deef7a7fa5df2e595eb697b94795016807a08efd0acd3c81d362ef564736f6c63430008040033000000000000000000000000f2400d9e66bfbf715c09739d56db48d4cf9237790000000000000000000000000fa14999b58b390a22524d5d8f286422f7fad562000000000000000000000000000000000000000000000001a055690d9db800000000000000000000000000000000000000000000000000000000000000bd27200000000000000000000000000000000000000000000000000000000000008ca00000000000000000000000000000000000000000000000000000000000000009

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

000000000000000000000000f2400d9e66bfbf715c09739d56db48d4cf9237790000000000000000000000000fa14999b58b390a22524d5d8f286422f7fad562000000000000000000000000000000000000000000000001a055690d9db800000000000000000000000000000000000000000000000000000000000000bd27200000000000000000000000000000000000000000000000000000000000008ca00000000000000000000000000000000000000000000000000000000000000009
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000f2400d9e66bfbf715c09739d56db48d4cf923779
Arg [1] : 0000000000000000000000000fa14999b58b390a22524d5d8f286422f7fad562
Arg [2] : 000000000000000000000000000000000000000000000001a055690d9db80000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000bd2720
Arg [4] : 0000000000000000000000000000000000000000000000000000000000008ca0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading