Contract 0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad 2

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xcb76823bb60442e3f74a867d4c9fe48aaac0e01d2b9460e10198ea5c91cf1a23173734522021-07-28 23:59:1938 secs ago0xbddf5e7db45e0200b7dbf52ce58383be29d5eb7e IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000199625775
0xe44ac91a2b1b347ca6bdc5ad29f2c8754cb1d9e19d0a1cc1cb6d424d5fe6f525173734472021-07-28 23:59:0948 secs ago0x9a2485730db9beb76ef40060643f1934f337d8c7 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.00020958149
0x61798b8438aafe082e06d3066e3a5da354e696a99976968d6a1c6ed3b8e62ea3173734462021-07-28 23:59:0750 secs ago0x3134baa1ea3f9ad811ea4fe88951b777ed1ef0a5 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000818150999
0x8631943d4c98ef6585460e40496e75784711feb918d23e7f93df7a94aa73b3b2173734332021-07-28 23:58:371 min ago0xa4d509dc1101f059837720cd0775f087f1650c6a IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000209604443
0x0e48fe6487e3b19e9ba107ec5c314e351dabd8fd293790f908efaeb739e1ae89173733992021-07-28 23:57:292 mins ago0x29e8e0c7a0cfd97198cd4c56ec7e3c9da0194743 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000599063055
0xe5dd6925cd68269409ab5eaf0a47bcfafa6ebe5f69be7b452fe0bfa27ced33bc173733982021-07-28 23:57:272 mins ago0x74e915b2856b34c029e3a1eb765a70ac88d02525 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000209604307
0xc2729af0f985e954bc3aeb20e62ea5524fbb1b287b0f7ac87261d3b3d518e616173733792021-07-28 23:56:493 mins ago0x29de8dcc58b5b2a265781dcdf6cd2e9e41bae2c9 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000232162481
0xa148c709f913a0960b88d75d196620485cb1262299f3141f4d8c0a0a0ac0dca8173733762021-07-28 23:56:433 mins ago0x704c8c855765b4c053cc2dc02b3f318caf2ab732 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.00127337
0x445e14dcb691a0d8ca19322e58f1496f3a7d2404ae62a40939dc2b1f14c911f7173733672021-07-28 23:56:213 mins ago0x49f6aeec65edeb2e767ccfdf099b1bf2f90596ec IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000284871109
0x44282b6d0bee08c57609704d8ca75aaecea75528619f980b127e7b5a21c04f93173733562021-07-28 23:55:593 mins ago0x5a42c9dde8b182ff69209b43c0aed1750782a579 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000135008697
0xc05a22005e5572c09a1d415c7d03433c640482ba60029c27606fdc5166ecffba173733452021-07-28 23:55:374 mins ago0x1e22088b8cca1e16d74b797f2c8942c852653704 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.00013499919
0xf9fead3aa48743bd95cd8301967c7f36170fc40d45d4af5bca66a5914917dd11173733372021-07-28 23:55:214 mins ago0x6ff739ce382d240e7d0c2b71cf281ca25c401d7f IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000107824424
0xada2768bd9367dc80d442fbff39e07a11f1448683938f503e8a8cad7d0911204173733342021-07-28 23:55:154 mins ago0x52694c13f5b08ab0eeca38fd82445a1e508b87f7 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000242118196
0xb29cd69ca9ee4c0e5fd0c9fa944bbeff118ba579d91ca1c3b83e14c3af9d1206173733302021-07-28 23:55:074 mins ago0xc07a94f93629e2dddee1ec3e7d6f4a24aa6210b5 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000199922393
0x8934653328ff6b4ce77f47e723b938c79aea7e24a130dc7e7a61ee63b10abb8c173733052021-07-28 23:54:135 mins ago0x720651e4834b9a98b5f32fc851538f9b3a7a60cc IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000635905
0xce809ef889401de3fe58bdfeb1cf22d6e7139663851d8adc59603429990ff852173732952021-07-28 23:53:536 mins ago0x4f141d06438ace4c16df3c61e295bba2f4e4eea9 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000135022007
0xb6fbaa754dc571aac62e41495a263a8f445b94716a647641d97115efd5a0a86b173732942021-07-28 23:53:516 mins ago0x1e22088b8cca1e16d74b797f2c8942c852653704 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000241821578
0xb3eb1353535f159d140701c1977df7aaf7202cabc76fb295052d7b12d7877ecd173732892021-07-28 23:53:416 mins ago0xfcee9fff52093a2059bc53fed9e37c2c7b17cfc2 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000381441
0xe2523e018a6645a33a5c235edb65e287053ef6a7a50f91c3dd426ae12b30dd58173732872021-07-28 23:53:376 mins ago0x6ff739ce382d240e7d0c2b71cf281ca25c401d7f IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000392589055
0xdfdfc62c812c3d8d8bd5a2bb2eb17fa7e19c9b64a0be062a63261caef7c1bc91173732862021-07-28 23:53:356 mins ago0x95eff9a25e2e8b8c26de7cb5da72a0b05a490719 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000209243041
0x10c3785c00d1bfbf1b646d052d96bfd8815a03fe5a70d4a5c09eef1610dfca5c173732702021-07-28 23:53:036 mins ago0x5a42c9dde8b182ff69209b43c0aed1750782a579 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000232097834
0xdf274983086db657284f1415d4ba1ec44e169c3b63f3f45a81bf082d8c19111d173732582021-07-28 23:52:397 mins ago0x9eebb4fd2bd81d40a326922119d291eea8f134a9 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.003856587056
0x79917ca477d64dcd511d28cd91bcb94e0e0cb71da4325bfe8fe593ac5bd5f25d173732572021-07-28 23:52:377 mins ago0x5a6f97c60745fa3bafb00ab45dd4055d7b8fdb1b IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000256144802
0x2d235512ee212295b54d8178b7cf2cdc002b5699b243db7a343be9f723cbdc2e173732472021-07-28 23:52:137 mins ago0xab744ca5908405f093cdb18a5061bb1f13b217a7 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000232436282
0x0c021f2b0b62ad87ba43593b411ac30dd327d0f7da60789b5428615c10cc215d173732302021-07-28 23:51:398 mins ago0xf9ca2ce9c4fbbc2ef779c8bdac2eeb57762c05f2 IN  0x1fd1259fa8cdc60c6e8c86cfa592ca1b8403dfad0 MATIC0.000232097834
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IronChef

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : 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 () {
        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;
    }
}

File 2 of 8 : 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 8 : 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'
        // solhint-disable-next-line max-line-length
        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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 8 : 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;
        // 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);
    }

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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 5 of 8 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 8 : IronChef.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.4;

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

/*  IronChef is a fork from Sushi's MiniChef v2 with slightly modification.
    1.  Rewards will be transferred from a seperated contract so that it will be more flexible to switch between:
        [mint reward token directly] OR [transfer them instead]
    2.  Add a Harvest all function to quickly harvest rewards from all the deposited pools
*/
contract IronChef is Ownable {
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount;
        int256 rewardDebt;
    }

    struct PoolInfo {
        uint256 accRewardPerShare;
        uint256 lastRewardTime;
        uint256 allocPoint;
    }

    IERC20 public reward;
    IFundDistributor public fund;

    /// @notice Info of each MCV2 pool.
    PoolInfo[] public poolInfo;
    /// @notice Address of the LP token for each MCV2 pool.
    IERC20[] public lpToken;
    /// @notice Address of each `IRewarder` contract in MCV2.
    IRewarder[] public rewarder;

    /// @notice Info of each user that stakes LP tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    /// @dev Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    uint256 public rewardPerSecond;
    uint256 private constant ACC_REWARD_PRECISION = 1e12;

    constructor(IERC20 _reward, IFundDistributor _fund) {
        reward = _reward;
        fund = _fund;
    }

    /* ========== PUBLIC FUNCTIONS ========== */


    /// @notice Returns the number of MCV2 pools.
    function poolLength() public view returns (uint256 pools) {
        pools = poolInfo.length;
    }

    /// @notice View function to see pending reward on frontend.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _user Address of user.
    /// @return pending reward for a given user.
    function pendingReward(uint256 _pid, address _user) external view returns (uint256 pending) {
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = lpToken[_pid].balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && lpSupply != 0) {
            uint256 time = block.timestamp - pool.lastRewardTime;
            uint256 rewardAmount = time * rewardPerSecond * pool.allocPoint / totalAllocPoint;
            accRewardPerShare += (rewardAmount * ACC_REWARD_PRECISION) / lpSupply;
        }
        pending = uint256(int256(user.amount * accRewardPerShare / ACC_REWARD_PRECISION) - user.rewardDebt);
    }

    /// @notice Update reward variables of the given pool.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @return pool Returns the pool that was updated.
    function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
        pool = poolInfo[pid];
        if (block.timestamp > pool.lastRewardTime) {
            uint256 lpSupply = lpToken[pid].balanceOf(address(this));
            if (lpSupply > 0) {
                uint256 time = block.timestamp - pool.lastRewardTime;
                uint256 rewardAmount = time * rewardPerSecond * pool.allocPoint / totalAllocPoint;
                pool.accRewardPerShare += rewardAmount * ACC_REWARD_PRECISION / lpSupply;
            }
            pool.lastRewardTime = block.timestamp;
            poolInfo[pid] = pool;
            emit LogUpdatePool(pid, pool.lastRewardTime, lpSupply, pool.accRewardPerShare);
        }
    }

    /// @notice Update reward variables for all pools. Be careful of gas spending!
    /// @param pids Pool IDs of all to be updated. Make sure to update all active pools.
    function massUpdatePools(uint256[] calldata pids) external {
        uint256 len = pids.length;
        for (uint256 i = 0; i < len; ++i) {
            updatePool(pids[i]);
        }
    }

    /// @notice Deposit LP tokens to MCV2 for reward allocation.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to deposit.
    /// @param to The receiver of `amount` deposit benefit.
    function deposit(uint256 pid, uint256 amount, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][to];

        // Effects
        user.amount += amount;
        user.rewardDebt += int256(amount * pool.accRewardPerShare / ACC_REWARD_PRECISION);

        // Interactions
        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onReward(pid, to, to, 0, user.amount);
        }

        lpToken[pid].safeTransferFrom(msg.sender, address(this), amount);

        emit Deposit(msg.sender, pid, amount, to);
    }

    /// @notice Withdraw LP tokens from MCV2.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    /// @param to Receiver of the LP tokens.
    function withdraw(uint256 pid, uint256 amount, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];

        // Effects
        user.rewardDebt -= int256(amount * pool.accRewardPerShare / ACC_REWARD_PRECISION);
        user.amount -= amount;
        // Interactions
        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onReward(pid, msg.sender, to, 0, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);

        emit Withdraw(msg.sender, pid, amount, to);
    }

    /// @notice Harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param to Receiver of rewards.
    function harvest(uint256 pid, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedReward = int256(user.amount * pool.accRewardPerShare / ACC_REWARD_PRECISION);
        uint256 _pendingReward = uint256(accumulatedReward - user.rewardDebt);

        // Effects
        user.rewardDebt = accumulatedReward;

        // Interactions
        fund.distributeTo(to, _pendingReward);

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onReward( pid, msg.sender, to, _pendingReward, user.amount);
        }

        emit Harvest(msg.sender, pid, _pendingReward);
    }

    /// @notice Withdraw LP tokens from MCV2 and harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    /// @param to Receiver of the LP tokens and rewards.
    function withdrawAndHarvest(uint256 pid, uint256 amount, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedReward = int256(user.amount * pool.accRewardPerShare / ACC_REWARD_PRECISION);
        uint256 _pendingReward = uint256(accumulatedReward - user.rewardDebt);

        // Effects
        user.rewardDebt = accumulatedReward - int256(amount * pool.accRewardPerShare / ACC_REWARD_PRECISION);
        user.amount -= amount;

        // Interactions
        fund.distributeTo(to, _pendingReward);

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onReward(pid, msg.sender, to, _pendingReward, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);

        emit Withdraw(msg.sender, pid, amount, to);
        emit Harvest(msg.sender, pid, _pendingReward);
    }

    /// @notice Withdraw without caring about rewards. EMERGENCY ONLY.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param to Receiver of the LP tokens.
    function emergencyWithdraw(uint256 pid, address to) public {
        UserInfo storage user = userInfo[pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onReward(pid, msg.sender, to, 0, 0);
        }

        // Note: transfer can fail or succeed if `amount` is zero.
        lpToken[pid].safeTransfer(to, amount);
        emit EmergencyWithdraw(msg.sender, pid, amount, to);
    }

    function harvestAllRewards(address to) external {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            if (userInfo[pid][msg.sender].amount > 0) {
                harvest(pid, to);
            }
        }
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function checkPoolDuplicate(IERC20 _lpToken) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(lpToken[pid] != _lpToken, "add: existing pool?");
        }
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    /// @notice Add a new LP to the pool. Can only be called by the owner.
    /// DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    /// @param allocPoint AP of the new pool.
    /// @param _lpToken Address of the LP ERC-20 token.
    /// @param _rewarder Address of the rewarder delegate.
    function add(uint256 allocPoint, IERC20 _lpToken, IRewarder _rewarder) public onlyOwner {
        checkPoolDuplicate(_lpToken);

        totalAllocPoint += allocPoint;
        lpToken.push(_lpToken);
        rewarder.push(_rewarder);

        poolInfo.push(PoolInfo({
            allocPoint: allocPoint,
            lastRewardTime: block.timestamp,
            accRewardPerShare: 0
            }));
        emit LogPoolAddition(lpToken.length - 1, allocPoint, _lpToken, _rewarder);
    }

    /// @notice Update the given pool's reward allocation point and `IRewarder` contract. Can only be called by the owner.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _allocPoint New AP of the pool.
    /// @param _rewarder Address of the rewarder delegate.
    /// @param overwrite True if _rewarder should be `set`. Otherwise `_rewarder` is ignored.
    function set(uint256 _pid, uint256 _allocPoint, IRewarder _rewarder, bool overwrite) public onlyOwner {
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        if (overwrite) { rewarder[_pid] = _rewarder; }
        emit LogSetPool(_pid, _allocPoint, overwrite ? _rewarder : rewarder[_pid], overwrite);
    }

    /// @notice Sets the reward per second to be distributed. Can only be called by the owner.
    /// @param _rewardPerSecond The amount of reward to be distributed per second.
    function setRewardPerSecond(uint256 _rewardPerSecond) public onlyOwner {
        rewardPerSecond = _rewardPerSecond;
        emit LogRewardPerSecond(_rewardPerSecond);
    }

    /// @notice Set the new fund contract.
    /// @param _fund The address of new fund contract.
    function setFund(IFundDistributor _fund) public onlyOwner {
        fund = _fund;
        emit PoolFundChanged(address(_fund));
    }

    /* =============== EVENTS ==================== */

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
    event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken, IRewarder indexed rewarder);
    event LogSetPool(uint256 indexed pid, uint256 allocPoint, IRewarder indexed rewarder, bool overwrite);
    event LogUpdatePool(uint256 indexed pid, uint256 lastRewardTime, uint256 lpSupply, uint256 accRewardPerShare);
    event LogRewardPerSecond(uint256 rewardPerSecond);
    event PoolFundChanged(address indexed fund);
}

File 7 of 8 : IFundDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

interface IFundDistributor {
    function distributeTo(
        address _receiver,
        uint256 _amount
    ) external;
}

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

pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IRewarder {

    function onReward(uint256 pid, address user, address recipient, uint256 rewardAmount, uint256 newLpAmount) external;
    function pendingTokens(uint256 pid, address user, uint256 rewardAmount) external view returns (IERC20[] memory, uint256[] memory);
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_reward","type":"address"},{"internalType":"contract IFundDistributor","name":"_fund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"name":"LogRewardPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"name":"LogUpdatePool","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":"fund","type":"address"}],"name":"PoolFundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fund","outputs":[{"internalType":"contract IFundDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"harvestAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reward","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewarder","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFundDistributor","name":"_fund","type":"address"}],"name":"setFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","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":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"updatePool","outputs":[{"components":[{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"internalType":"struct IronChef.PoolInfo","name":"pool","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006007553480156200001657600080fd5b5060405162001ff738038062001ff78339810160408190526200003991620000ac565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039384166001600160a01b0319918216179091556002805492909316911617905562000103565b60008060408385031215620000bf578182fd5b8251620000cc81620000ea565b6020840151909250620000df81620000ea565b809150509250929050565b6001600160a01b03811681146200010057600080fd5b50565b611ee480620001136000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806378ed5d1f116100de57806398969e8211610097578063c346253d11610071578063c346253d14610375578063d1abb90714610388578063f2fde38b1461039b578063fbe6cf6a146103ae57600080fd5b806398969e821461033c578063ab7de0981461034f578063b60d42881461036257600080fd5b806378ed5d1f146102a257806388bba42f146102b55780638da5cb5b146102c85780638dbdbe6d146102d95780638f10369a146102ec57806393f1a40b146102f557600080fd5b8063228cb73311610130578063228cb733146102015780632f940c701461022c57806351eb05a61461023f57806357a5b58c1461027457806366da581514610287578063715018a61461029a57600080fd5b8063081e3eda146101785780630ad58d2f1461018f5780630e21750f146101a45780631526fe27146101b757806317caf6f1146101e557806318fccc76146101ee575b600080fd5b6003545b6040519081526020015b60405180910390f35b6101a261019d366004611c14565b6103c1565b005b6101a26101b2366004611acc565b61057a565b6101ca6101c5366004611b74565b6105f7565b60408051938452602084019290925290820152606001610186565b61017c60075481565b6101a26101fc366004611ba4565b61062a565b600154610214906001600160a01b031681565b6040516001600160a01b039091168152602001610186565b6101a261023a366004611ba4565b6107dc565b61025261024d366004611b74565b610927565b6040805182518152602080840151908201529181015190820152606001610186565b6101a2610282366004611ae8565b610b6b565b6101a2610295366004611b74565b610bbd565b6101a2610c22565b6102146102b0366004611b74565b610c96565b6101a26102c3366004611c41565b610cc0565b6000546001600160a01b0316610214565b6101a26102e7366004611c14565b610e5f565b61017c60085481565b610327610303366004611ba4565b60066020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610186565b61017c61034a366004611ba4565b611010565b6101a261035d366004611bd3565b6111ee565b600254610214906001600160a01b031681565b610214610383366004611b74565b6113a7565b6101a2610396366004611c14565b6113b7565b6101a26103a9366004611acc565b61161d565b6101a26103bc366004611acc565b611707565b60006103cc84610927565b6000858152600660209081526040808320338452909152902081519192509064e8d4a51000906103fc9086611db6565b6104069190611d96565b8160010160008282546104199190611dd5565b9091555050805484908290600090610432908490611e14565b9250508190555060006005868154811061045c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316905080156104e25781546040516344af0fa760e01b81526001600160a01b038316916344af0fa7916104af918a9133918a9160009190600401611d0e565b600060405180830381600087803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b505050505b61052484866004898154811061050857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169190611753565b836001600160a01b031686336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328860405161056a91815260200190565b60405180910390a4505050505050565b6000546001600160a01b031633146105ad5760405162461bcd60e51b81526004016105a490611cd9565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f1bbced6cc5125dba763681b1a276a950f551621431f63fdb5b2b180da1aa2ae390600090a250565b6003818154811061060757600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b600061063583610927565b6000848152600660209081526040808320338452909152812082518154939450909264e8d4a510009161066791611db6565b6106719190611d96565b905060008260010154826106859190611dd5565b6001840183905560025460405163d66e57cd60e01b81526001600160a01b0388811660048301526024820184905292935091169063d66e57cd90604401600060405180830381600087803b1580156106dc57600080fd5b505af11580156106f0573d6000803e3d6000fd5b5050505060006005878154811061071757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169050801561079c5783546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610769918b9133918c91899190600401611d0e565b600060405180830381600087803b15801561078357600080fd5b505af1158015610797573d6000803e3d6000fd5b505050505b604051828152879033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a350505050505050565b6000828152600660209081526040808320338452909152812080548282556001820183905560058054929391928690811061082757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316905080156108ac576040516344af0fa760e01b81526001600160a01b038216906344af0fa790610879908890339089906000908190600401611d0e565b600060405180830381600087803b15801561089357600080fd5b505af11580156108a7573d6000803e3d6000fd5b505050505b6108d284836004888154811061050857634e487b7160e01b600052603260045260246000fd5b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b8560405161091891815260200190565b60405180910390a45050505050565b61094b60405180606001604052806000815260200160008152602001600081525090565b6003828154811061096c57634e487b7160e01b600052603260045260246000fd5b600091825260209182902060408051606081018252600390930290910180548352600181015493830184905260020154908201529150421115610b66576000600483815481106109cc57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610a1857600080fd5b505afa158015610a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a509190611b8c565b90508015610ac9576000826020015142610a6a9190611e14565b90506000600754846040015160085484610a849190611db6565b610a8e9190611db6565b610a989190611d96565b905082610aaa64e8d4a5100083611db6565b610ab49190611d96565b84518590610ac3908390611d7e565b90525050505b4260208301526003805483919085908110610af457634e487b7160e01b600052603260045260246000fd5b600091825260209182902083516003929092020190815582820151600182015560409283015160029091015583810151845183519182529181018490529182015283907fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d29060600160405180910390a2505b919050565b8060005b81811015610bb757610ba6848483818110610b9a57634e487b7160e01b600052603260045260246000fd5b90506020020135610927565b50610bb081611e57565b9050610b6f565b50505050565b6000546001600160a01b03163314610be75760405162461bcd60e51b81526004016105a490611cd9565b60088190556040518181527fde89cb17ac7f58f94792b3e91e086ed85403819c24ceea882491f960ccb1a2789060200160405180910390a150565b6000546001600160a01b03163314610c4c5760405162461bcd60e51b81526004016105a490611cd9565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60048181548110610ca657600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610cea5760405162461bcd60e51b81526004016105a490611cd9565b8260038581548110610d0c57634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160020154600754610d2b9190611e14565b610d359190611d7e565b6007819055508260038581548110610d5d57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201819055508015610dc9578160058581548110610d9a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610e095760058481548110610def57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610e0b565b815b6001600160a01b0316847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e18658584604051610e519291909182521515602082015260400190565b60405180910390a350505050565b6000610e6a84610927565b60008581526006602090815260408083206001600160a01b0387168452909152812080549293509185918391610ea1908490611d7e565b9091555050815164e8d4a5100090610eb99086611db6565b610ec39190611d96565b816001016000828254610ed69190611d3d565b92505081905550600060058681548110610f0057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031690508015610f865781546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610f53918a918991829160009190600401611d0e565b600060405180830381600087803b158015610f6d57600080fd5b505af1158015610f81573d6000803e3d6000fd5b505050505b610fca33308760048a81548110610fad57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169291906117b6565b836001600160a01b031686336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b478860405161056a91815260200190565b6000806003848154811061103457634e487b7160e01b600052603260045260246000fd5b60009182526020808320604080516060810182526003909402909101805484526001810154848401526002015483820152878452600682528084206001600160a01b0388168552909152822081516004805493955091939092909190889081106110ae57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156110fa57600080fd5b505afa15801561110e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111329190611b8c565b905083602001514211801561114657508015155b156111b657600084602001514261115d9190611e14565b905060006007548660400151600854846111779190611db6565b6111819190611db6565b61118b9190611d96565b90508261119d64e8d4a5100083611db6565b6111a79190611d96565b6111b19085611d7e565b935050505b6001830154835464e8d4a51000906111cf908590611db6565b6111d99190611d96565b6111e39190611dd5565b979650505050505050565b6000546001600160a01b031633146112185760405162461bcd60e51b81526004016105a490611cd9565b611221826117ee565b82600760008282546112339190611d7e565b909155505060048054600181810183557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b038087166001600160a01b03199283168117909355600580548086019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001805491871691909216811790915560408051606081018252600080825242602083019081529282018a8152600380548089018255928190529251919092027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81019190915591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d909101559254909161136f91611e14565b6040518681527f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e59060200160405180910390a4505050565b60058181548110610ca657600080fd5b60006113c284610927565b6000858152600660209081526040808320338452909152812082518154939450909264e8d4a51000916113f491611db6565b6113fe9190611d96565b905060008260010154826114129190611dd5565b845190915064e8d4a51000906114289088611db6565b6114329190611d96565b61143c9083611dd5565b6001840155825486908490600090611455908490611e14565b909155505060025460405163d66e57cd60e01b81526001600160a01b038781166004830152602482018490529091169063d66e57cd90604401600060405180830381600087803b1580156114a857600080fd5b505af11580156114bc573d6000803e3d6000fd5b505050506000600588815481106114e357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316905080156115685783546040516344af0fa760e01b81526001600160a01b038316916344af0fa791611535918c9133918c91899190600401611d0e565b600060405180830381600087803b15801561154f57600080fd5b505af1158015611563573d6000803e3d6000fd5b505050505b61158e868860048b8154811061050857634e487b7160e01b600052603260045260246000fd5b856001600160a01b031688336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a6040516115d491815260200190565b60405180910390a4604051828152889033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a35050505050505050565b6000546001600160a01b031633146116475760405162461bcd60e51b81526004016105a490611cd9565b6001600160a01b0381166116ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a4565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60035460005b8181101561174e5760008181526006602090815260408083203384529091529020541561173e5761173e818461062a565b61174781611e57565b905061170d565b505050565b6040516001600160a01b03831660248201526044810182905261174e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611890565b6040516001600160a01b0380851660248301528316604482015260648101829052610bb79085906323b872dd60e01b9060840161177f565b60035460005b8181101561174e57826001600160a01b03166004828154811061182757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156118805760405162461bcd60e51b81526020600482015260136024820152726164643a206578697374696e6720706f6f6c3f60681b60448201526064016105a4565b61188981611e57565b90506117f4565b60006118e5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119629092919063ffffffff16565b80519091501561174e57808060200190518101906119039190611b58565b61174e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105a4565b6060611971848460008561197b565b90505b9392505050565b6060824710156119dc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105a4565b843b611a2a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105a4565b600080866001600160a01b03168587604051611a469190611c8a565b60006040518083038185875af1925050503d8060008114611a83576040519150601f19603f3d011682016040523d82523d6000602084013e611a88565b606091505b50915091506111e382828660608315611aa2575081611974565b825115611ab25782518084602001fd5b8160405162461bcd60e51b81526004016105a49190611ca6565b600060208284031215611add578081fd5b813561197481611e88565b60008060208385031215611afa578081fd5b823567ffffffffffffffff80821115611b11578283fd5b818501915085601f830112611b24578283fd5b813581811115611b32578384fd5b8660208260051b8501011115611b46578384fd5b60209290920196919550909350505050565b600060208284031215611b69578081fd5b815161197481611ea0565b600060208284031215611b85578081fd5b5035919050565b600060208284031215611b9d578081fd5b5051919050565b60008060408385031215611bb6578182fd5b823591506020830135611bc881611e88565b809150509250929050565b600080600060608486031215611be7578081fd5b833592506020840135611bf981611e88565b91506040840135611c0981611e88565b809150509250925092565b600080600060608486031215611c28578283fd5b83359250602084013591506040840135611c0981611e88565b60008060008060808587031215611c56578081fd5b84359350602085013592506040850135611c6f81611e88565b91506060850135611c7f81611ea0565b939692955090935050565b60008251611c9c818460208701611e2b565b9190910192915050565b6020815260008251806020840152611cc5816040850160208701611e2b565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b9485526001600160a01b0393841660208601529190921660408401526060830191909152608082015260a00190565b600080821280156001600160ff1b0384900385131615611d5f57611d5f611e72565b600160ff1b8390038412811615611d7857611d78611e72565b50500190565b60008219821115611d9157611d91611e72565b500190565b600082611db157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611dd057611dd0611e72565b500290565b60008083128015600160ff1b850184121615611df357611df3611e72565b6001600160ff1b0384018313811615611e0e57611e0e611e72565b50500390565b600082821015611e2657611e26611e72565b500390565b60005b83811015611e46578181015183820152602001611e2e565b83811115610bb75750506000910152565b6000600019821415611e6b57611e6b611e72565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114611e9d57600080fd5b50565b8015158114611e9d57600080fdfea2646970667358221220dfac5c735fe6e3d95897d21498e1d3105896c54fae2145b5c23901dbc9ec6f1364736f6c634300080400330000000000000000000000004a81f8796e0c6ad4877a51c86693b0de8093f2ef000000000000000000000000b627dc38bcbc9d2b71564ec2db93ff8cc267420e

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

0000000000000000000000004a81f8796e0c6ad4877a51c86693b0de8093f2ef000000000000000000000000b627dc38bcbc9d2b71564ec2db93ff8cc267420e

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004a81f8796e0c6ad4877a51c86693b0de8093f2ef
Arg [1] : 000000000000000000000000b627dc38bcbc9d2b71564ec2db93ff8cc267420e


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.