ETH Price: $2,237.87 (-1.63%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim230303172025-07-30 7:00:59189 days ago1753858859IN
JPEGd: Liquidity Mining
0 ETH0.000161871.93344748
Claim225440892025-05-23 7:30:11257 days ago1747985411IN
JPEGd: Liquidity Mining
0 ETH0.000085161.21396589
Claim220020082025-03-08 11:57:47332 days ago1741435067IN
JPEGd: Liquidity Mining
0 ETH0.000229925.7
Claim220020052025-03-08 11:57:11332 days ago1741435031IN
JPEGd: Liquidity Mining
0 ETH0.000461056
Withdraw220019902025-03-08 11:54:11332 days ago1741434851IN
JPEGd: Liquidity Mining
0 ETH0.000580485.8
Withdraw215597622025-01-05 17:26:47394 days ago1736098007IN
JPEGd: Liquidity Mining
0 ETH0.001090310.89272672
Withdraw212375362024-11-21 17:16:11439 days ago1732209371IN
JPEGd: Liquidity Mining
0 ETH0.0016597816.58213613
Withdraw210748562024-10-30 0:23:35462 days ago1730247815IN
JPEGd: Liquidity Mining
0 ETH0.000675216.74496347
Claim210747852024-10-30 0:09:23462 days ago1730246963IN
JPEGd: Liquidity Mining
0 ETH0.00075389.46332223
Claim210511182024-10-26 16:54:23465 days ago1729961663IN
JPEGd: Liquidity Mining
0 ETH0.000668168.6952382
Claim210217922024-10-22 14:43:23469 days ago1729608203IN
JPEGd: Liquidity Mining
0 ETH0.0015767318.22349735
Claim204043402024-07-28 10:06:23556 days ago1722161183IN
JPEGd: Liquidity Mining
0 ETH0.000149131.78136545
Withdraw204043382024-07-28 10:05:59556 days ago1722161159IN
JPEGd: Liquidity Mining
0 ETH0.000192491.80367757
Claim200878532024-06-14 5:07:23600 days ago1718341643IN
JPEGd: Liquidity Mining
0 ETH0.000696178.31533024
Withdraw199965962024-06-01 11:13:35613 days ago1717240415IN
JPEGd: Liquidity Mining
0 ETH0.000360994.34955254
Withdraw198502432024-05-12 0:02:47633 days ago1715472167IN
JPEGd: Liquidity Mining
0 ETH0.000356543.56206883
Claim197894312024-05-03 11:56:35641 days ago1714737395IN
JPEGd: Liquidity Mining
0 ETH0.000509286.07487556
Claim197759992024-05-01 14:53:11643 days ago1714575191IN
JPEGd: Liquidity Mining
0 ETH0.0008732510.43045733
Withdraw197759982024-05-01 14:52:59643 days ago1714575179IN
JPEGd: Liquidity Mining
0 ETH0.0011990910.30633956
Withdraw196801672024-04-18 5:10:35657 days ago1713417035IN
JPEGd: Liquidity Mining
0 ETH0.001246912.45721727
Withdraw196057652024-04-07 19:01:59667 days ago1712516519IN
JPEGd: Liquidity Mining
0 ETH0.0012143316.19787042
Withdraw196013432024-04-07 4:09:11668 days ago1712462951IN
JPEGd: Liquidity Mining
0 ETH0.0012641212.62924629
Claim196003172024-04-07 0:40:59668 days ago1712450459IN
JPEGd: Liquidity Mining
0 ETH0.0006526710.92473693
Withdraw196003152024-04-07 0:40:35668 days ago1712450435IN
JPEGd: Liquidity Mining
0 ETH0.0011114311.10384547
Withdraw195779842024-04-03 21:39:35671 days ago1712180375IN
JPEGd: Liquidity Mining
0 ETH0.0025170830.32815748
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LPFarming

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 900 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "../utils/NoContract.sol";

/// @title JPEG'd LP Farming
/// @notice Users can stake their JPEG'd ecosystem LP tokens to get JPEG rewards
/// @dev This contract doesn't mint JPEG tokens, instead the owner (the JPEG'd DAO) allocates x amount of JPEG to be distributed as a reward for liquidity providers.
/// To ensure that enough tokens are allocated, an epoch system is implemented.
/// The owner is required to allocate enough tokens (`_rewardPerBlock * (_endBlock - _startBlock)`) when creating a new epoch.
/// When there no epoch is ongoing, the contract stops emitting rewards
contract LPFarming is ReentrancyGuard, NoContract {
    using SafeERC20 for IERC20;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event Claim(address indexed user, uint256 indexed pid, uint256 amount);
    event ClaimAll(address indexed user, uint256 amount);

    /// @dev Data relative to a user's staking position
    /// @param amount The amount of LP tokens the user has provided
    /// @param lastAccRewardPerShare The `accRewardPerShare` pool value at the time of the user's last claim
    struct UserInfo {
        uint256 amount;
        uint256 lastAccRewardPerShare;
    }

    /// @dev Data relative to an LP pool
    /// @param lpToken The LP token accepted by the pool
    /// @param allocPoint Allocation points assigned to the pool. Determines the share of `rewardPerBlock` allocated to this pool
    /// @param lastRewardBlock Last block number in which reward distribution occurred
    /// @param accRewardPerShare Accumulated rewards per share, times 1e36. The amount of rewards the pool has accumulated per unit of LP token deposited
    /// @param depositedAmount Total number of tokens deposited in the pool.
    struct PoolInfo {
        IERC20 lpToken;
        uint256 allocPoint;
        uint256 lastRewardBlock;
        uint256 accRewardPerShare;
        uint256 depositedAmount;
    }

    /// @dev Data relative to an epoch
    /// @param startBlock The epoch's starting block
    /// @param endBlock The epoch's starting block
    /// @param rewardPerBlock The amount of JPEG rewards distributed per block during this epoch
    struct EpochInfo {
        uint256 startBlock;
        uint256 endBlock;
        uint256 rewardPerBlock;
    }

    /// @notice The reward token, JPEG
    IERC20 public immutable jpeg;

    /// @notice The current epoch
    /// @dev We don't need to store data about previous epochs, to simplify logic we only store data about the current epoch
    EpochInfo public epoch;
    /// @notice All the LP pools, active and inactive
    PoolInfo[] public poolInfo;
    /// @notice User staking positions, divided by PID
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    /// @notice Sum of the allocation points for all the pools
    /// @dev Used to calculate the share of `rewardPerBlock` for each pool.
    uint256 public totalAllocPoint;

    /// @dev User's withdrawable rewards per pool
    mapping(address => mapping(uint256 => uint256)) private userRewards;

    /// @param _jpeg The reward token
    constructor(address _jpeg) {
        jpeg = IERC20(_jpeg);
    }

    /// @notice Allows the owner to start a new epoch. Can only be called when there's no ongoing epoch
    /// @param _startBlock The new epoch's start block. If 0, takes the value of `block.number`
    /// @param _endBlock The new epoch's end block. Has to be greater than `_startBlock`
    /// @param _rewardPerBlock The new epoch's amount of rewards to distribute per block. Must be greater than 0
    function newEpoch(
        uint256 _startBlock,
        uint256 _endBlock,
        uint256 _rewardPerBlock
    ) external onlyOwner {
        if (_startBlock == 0)
            _startBlock = block.number;
        else
            require(_startBlock >= block.number, "Invalid start block");
        require(_endBlock > _startBlock, "Invalid end block");
        require(_rewardPerBlock != 0, "Invalid reward per block");

        //update all pools to ensure that they have all been updated up to the last epoch's `endBlock`
        _massUpdatePools();

        uint256 remainingRewards = epoch.rewardPerBlock *
            (epoch.endBlock - _blockNumber());
        uint256 newRewards = _rewardPerBlock * (_endBlock - _startBlock);

        epoch.startBlock = _startBlock;
        epoch.endBlock = _endBlock;
        epoch.rewardPerBlock = _rewardPerBlock;

        if (remainingRewards > newRewards) {
            unchecked {
                jpeg.safeTransfer(msg.sender, remainingRewards - newRewards);
            }
        } else if (remainingRewards < newRewards) {
            unchecked {
                jpeg.safeTransferFrom(
                    msg.sender,
                    address(this),
                    newRewards - remainingRewards
                );
            }
        }
    }

    /// @notice Allows the owner to add a new pool
    /// @param _allocPoint Allocation points to assign to the new pool
    /// @param _lpToken The LP token accepted by the new pool
    function add(uint256 _allocPoint, IERC20 _lpToken) external onlyOwner {
        _massUpdatePools();

        uint256 lastRewardBlock = _blockNumber();
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accRewardPerShare: 0,
                depositedAmount: 0
            })
        );
    }

    /// @notice Allows the owner to change a pool's allocation points
    /// @param _pid The pool id of the pool to modify
    /// @param _allocPoint The new allocation points
    function set(uint256 _pid, uint256 _allocPoint) external onlyOwner {
        _massUpdatePools();

        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        if (prevAllocPoint != _allocPoint) {
            totalAllocPoint = totalAllocPoint - prevAllocPoint + _allocPoint;
        }
    }

    /// @notice Returns the number of pools available
    /// @return The length of the `poolInfo` array
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    /// @notice Frontend function used to calculate the amount of rewards `_user` can claim from the pool with id `_pid`
    /// @param _pid The pool id
    /// @param _user The address of the user
    /// @return The amount of rewards claimable from `_pid` by user `_user`
    function pendingReward(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 blockNumber = _blockNumber();
        //normalizing the pool's `lastRewardBlock` ensures that no rewards are distributed by staking outside of an epoch
        uint256 lastRewardBlock = _normalizeBlockNumber(pool.lastRewardBlock);
        uint256 lpSupply = pool.depositedAmount;
        //if blockNumber is greater than the pool's `lastRewardBlock` the pool's `accRewardPerShare` is outdated,
        //we need to calculate the up to date amount to return an accurate reward value
        if (blockNumber > lastRewardBlock && lpSupply != 0) {
            uint256 reward = ((blockNumber - lastRewardBlock) *
                epoch.rewardPerBlock *
                1e36 *
                pool.allocPoint) / totalAllocPoint;
            accRewardPerShare += reward / lpSupply;
        }
        return
            //rewards that the user had already accumulated but not claimed
            userRewards[_user][_pid] +
            //subtracting the user's `lastAccRewardPerShare` from the pool's `accRewardPerShare` results in the amount of rewards per share
            //the pool has accumulated since the user's last claim, multiplying it by the user's shares results in the amount of new rewards claimable
            //by the user
            (user.amount * (accRewardPerShare - user.lastAccRewardPerShare)) /
            1e36;
    }

    /// @notice Allows users to deposit `_amount` of LP tokens in the pool with id `_pid`. Non whitelisted contracts can't call this function
    /// @dev Emits a {Deposit} event
    /// @param _pid The id of the pool to deposit into
    /// @param _amount The amount of LP tokens to deposit
    function deposit(uint256 _pid, uint256 _amount) external noContract {
        require(_amount != 0, "invalid_amount");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        _updatePool(_pid);
        _withdrawReward(_pid);

        pool.depositedAmount += _amount;
        user.amount += _amount;
        pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);

        emit Deposit(msg.sender, _pid, _amount);
    }

    /// @notice Allows users to withdraw `_amount` of LP tokens from the pool with id `_pid`. Non whitelisted contracts can't call this function
    /// @dev Emits a {Withdraw} event
    /// @param _pid The id of the pool to withdraw from
    /// @param _amount The amount of LP tokens to withdraw
    function withdraw(uint256 _pid, uint256 _amount) external noContract {
        require(_amount != 0, "invalid_amount");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "insufficient_amount");

        _updatePool(_pid);
        _withdrawReward(_pid);

        pool.depositedAmount -= _amount;
        unchecked {
            user.amount -= _amount;
        }

        pool.lpToken.safeTransfer(address(msg.sender), _amount);

        emit Withdraw(msg.sender, _pid, _amount);
    }

    /// @dev Normalizes the current `block.number`. See {_normalizeBlockNumber} for more info
    /// @return Normalized `block.number`
    function _blockNumber() internal view returns (uint256) {
        return _normalizeBlockNumber(block.number);
    }

    /// @dev Normalizes `blockNumber` to fit within the bounds of an epoch.
    /// This is done to ensure that no rewards are distributed for staking outside of an epoch without modifying the reward logic.
    /// For example:
    /// `blockNumber` is 1100, the epoch's `endBlock` is 1000. In this case the function would return 1000. If this value were to be used
    /// in the {_updatePool} function, where the pool's `lastRewardBlock` is 990, only the rewards from block 990 to block 1000 would be distributed
    /// @return Normalized `blockNumber`
    function _normalizeBlockNumber(uint256 blockNumber)
        internal
        view
        returns (uint256)
    {
        if (blockNumber < epoch.startBlock) return epoch.startBlock;

        if (blockNumber > epoch.endBlock) return epoch.endBlock;

        return blockNumber;
    }

    /// @dev Calls {_updatePool} for every pool
    function _massUpdatePools() internal {
        uint256 length = poolInfo.length;
        for (uint256 pid; pid < length; ++pid) {
            _updatePool(pid);
        }
    }

    /// @dev Updates the state of the pool at index `_pid`
    /// @param _pid The pool to update
    function _updatePool(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.allocPoint == 0) {
            return;
        }

        uint256 blockNumber = _blockNumber();
        //normalizing the pool's `lastRewardBlock` ensures that no rewards are distributed by staking outside of an epoch
        uint256 lastRewardBlock = _normalizeBlockNumber(pool.lastRewardBlock);
        if (blockNumber <= lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.depositedAmount;
        if (lpSupply == 0) {
            pool.lastRewardBlock = blockNumber;
            return;
        }
        uint256 reward = ((blockNumber - lastRewardBlock) *
            epoch.rewardPerBlock *
            1e36 *
            pool.allocPoint) / totalAllocPoint;
        pool.accRewardPerShare = pool.accRewardPerShare + reward / lpSupply;
        pool.lastRewardBlock = blockNumber;
    }

    /// @dev Updates `msg.sender`'s claimable rewards by adding pending rewards from `_pid`
    /// @param _pid The pool to withdraw rewards from
    function _withdrawReward(uint256 _pid) internal returns (uint256) {
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 accRewardPerShare = poolInfo[_pid].accRewardPerShare;
        uint256 pending = (user.amount *
            (accRewardPerShare - user.lastAccRewardPerShare)) / 1e36;
        if (pending != 0) {
            userRewards[msg.sender][_pid] += pending;
        }

        user.lastAccRewardPerShare = accRewardPerShare;

        return pending;
    }

    /// @notice Allows users to claim rewards from the pool with id `_pid`. Non whitelisted contracts can't call this function
    /// @dev Emits a {Claim} event
    /// @param _pid The pool to claim rewards from
    function claim(uint256 _pid) external nonReentrant noContract {
        _updatePool(_pid);
        _withdrawReward(_pid);

        uint256 rewards = userRewards[msg.sender][_pid];
        require(rewards != 0, "no_reward");

        userRewards[msg.sender][_pid] = 0;
        jpeg.safeTransfer(msg.sender, rewards);

        emit Claim(msg.sender, _pid, rewards);
    }

    /// @notice Allows users to claim rewards from all pools. Non whitelisted contracts can't call this function
    /// @dev Emits a {ClaimAll} event
    function claimAll() external nonReentrant noContract {
        uint256 length = poolInfo.length;
        uint256 rewards;
        for (uint256 i; i < length; ++i) {
            _updatePool(i);
            _withdrawReward(i);
            rewards += userRewards[msg.sender][i];
            userRewards[msg.sender][i] = 0;
        }
        require(rewards != 0, "no_reward");

        jpeg.safeTransfer(msg.sender, rewards);

        emit ClaimAll(msg.sender, rewards);
    }

    /// @dev Prevent the owner from renouncing ownership. Having no owner would render this contract unusable due to the inability to create new epochs
    function renounceOwnership() public view override onlyOwner {
        revert("Cannot renounce ownership");
    }
}

File 2 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

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 5 of 8 : NoContract.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract NoContract is Ownable {

    event ContractWhitelistChanged(address indexed addr, bool isWhitelisted);

    /// @notice Contracts that are allowed to interact with functions executing the {noContract} modifier.
    /// @dev See the {noContract} modifier for more info
    mapping(address => bool) public whitelistedContracts;

    /// @dev Modifier that ensures that non-whitelisted contracts can't interact with functions executing it.
    modifier noContract() {
        require(
            msg.sender == tx.origin || whitelistedContracts[msg.sender],
            "NO_CONTRACTS"
        );
        _;
    }

    /// @notice Allows the owner to whitelist/blacklist contracts
    /// @param addr The contract address to whitelist/blacklist
    /// @param isWhitelisted Whereter to whitelist or blacklist `_contract`
    function setContractWhitelisted(address addr, bool isWhitelisted)
        external
        onlyOwner
    {
        whitelistedContracts[addr] = isWhitelisted;

        emit ContractWhitelistChanged(addr, isWhitelisted);
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://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);
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(address(0));
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_jpeg","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"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"ContractWhitelistChanged","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":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jpeg","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"newEpoch","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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"depositedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"setContractWhitelisted","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":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lastAccRewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b5060405162001c6138038062001c61833981016040819052610031916100a6565b600160005561003f33610054565b60601b6001600160601b0319166080526100d4565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156100b7578081fd5b81516001600160a01b03811681146100cd578182fd5b9392505050565b60805160601c611b526200010f600039600081816103360152818161084a01528181610cd101528181610d14015261101d0152611b526000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c8063715018a6116100cd57806398969e8211610081578063e2bbb15811610066578063e2bbb1581461031e578063eb88d91a14610331578063f2fde38b1461035857600080fd5b806398969e8214610303578063d1058e591461031657600080fd5b80638da5cb5b116100b25780638da5cb5b1461026a578063900cf0cf1461028f57806393f1a40b146102bc57600080fd5b8063715018a61461024f57806383afab561461025757600080fd5b80631ab06ee511610124578063379607f511610109578063379607f5146101f6578063391feebb14610209578063441a3e701461023c57600080fd5b80631ab06ee5146101d05780632b8bbbe8146101e357600080fd5b8063081e3eda14610156578063118f81691461016d5780631526fe271461018257806317caf6f1146101c7575b600080fd5b6006545b6040519081526020015b60405180910390f35b61018061017b366004611903565b61036b565b005b610195610190366004611957565b610429565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610164565b61015a60085481565b6101806101de366004611993565b610474565b6101806101f136600461196f565b61056d565b610180610204366004611957565b610712565b61022c6102173660046118e7565b60026020526000908152604090205460ff1681565b6040519015158152602001610164565b61018061024a366004611993565b6108b9565b610180610a72565b6101806102653660046119b4565b610b14565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610164565b6003546004546005546102a192919083565b60408051938452602084019290925290820152606001610164565b6102ee6102ca36600461196f565b60076020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610164565b61015a61031136600461196f565b610d45565b610180610eb2565b61018061032c366004611993565b611082565b6102777f000000000000000000000000000000000000000000000000000000000000000081565b6101806103663660046118e7565b6111f3565b6001546001600160a01b031633146103ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600081815260026020908152604091829020805460ff191685151590811790915591519182527f5f4d080f2a2d4cbddbc3ae19a7cc2ef681d2d3f2a7d7271b95b7d051be541239910160405180910390a25050565b6006818154811061043957600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b6001546001600160a01b031633146104ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6104d66112d5565b6000600683815481106104f957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101549050816006848154811061052f57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016001018190555081811461056857818160085461055a9190611a85565b6105649190611a2e565b6008555b505050565b6001546001600160a01b031633146105c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6105cf6112d5565b60006105d9611300565b9050826008546105e99190611a2e565b6008556040805160a0810182526001600160a01b039384168152602081019485529081019182526000606082018181526080830182815260068054600181018255935292517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f6005909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4085015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4184015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4390910155565b600260005414156107655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c1565b60026000553332148061078757503360009081526002602052604090205460ff165b6107c25760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b6107cb81611310565b6107d481611410565b50336000908152600960209081526040808320848452909152902054806108295760405162461bcd60e51b81526020600482015260096024820152681b9bd7dc995dd85c9960ba1b60448201526064016103c1565b336000818152600960209081526040808320868452909152812055610879907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690836114de565b604051818152829033907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060200160405180910390a350506001600055565b333214806108d657503360009081526002602052604090205460ff165b6109115760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b8061094f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5917d85b5bdd5b9d60921b60448201526064016103c1565b60006006838154811061097257634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292208054600590920290920192508311156109eb5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e745f616d6f756e740000000000000000000000000060448201526064016103c1565b6109f484611310565b6109fd84611410565b5082826004016000828254610a129190611a85565b9091555050805483900381558154610a34906001600160a01b031633856114de565b604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a350505050565b6001546001600160a01b03163314610acc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b60405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742072656e6f756e6365206f776e6572736869700000000000000060448201526064016103c1565b6001546001600160a01b03163314610b6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b82610b7b57439250610bcb565b43831015610bcb5760405162461bcd60e51b815260206004820152601360248201527f496e76616c696420737461727420626c6f636b0000000000000000000000000060448201526064016103c1565b828211610c1a5760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420656e6420626c6f636b00000000000000000000000000000060448201526064016103c1565b80610c675760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207265776172642070657220626c6f636b000000000000000060448201526064016103c1565b610c6f6112d5565b6000610c79611300565b600454610c869190611a85565b600554610c939190611a66565b90506000610ca18585611a85565b610cab9084611a66565b600386905560048590556005849055905080821115610cff57610cfa6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338385036114de565b610d3e565b80821015610d3e57610d3e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330858503611587565b5050505050565b60008060068481548110610d6957634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526007825260408085206001600160a01b03891686529092529083206005929092020160038101549093509091610daa611300565b90506000610dbb85600201546115de565b60048601549091508183118015610dd157508015155b15610e415760085460018701546005546000929190610df08688611a85565b610dfa9190611a66565b610e13906ec097ce7bc90715b34b9f1000000000611a66565b610e1d9190611a66565b610e279190611a46565b9050610e338282611a46565b610e3d9086611a2e565b9450505b6ec097ce7bc90715b34b9f1000000000856001015485610e619190611a85565b8654610e6d9190611a66565b610e779190611a46565b6001600160a01b03891660009081526009602090815260408083208d8452909152902054610ea59190611a2e565b9998505050505050505050565b60026000541415610f055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c1565b600260005533321480610f2757503360009081526002602052604090205460ff165b610f625760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b6006546000805b82811015610fd657610f7a81611310565b610f8381611410565b50336000908152600960209081526040808320848452909152902054610fa99083611a2e565b3360009081526009602090815260408083208584529091528120559150610fcf81611ac8565b9050610f69565b50806110105760405162461bcd60e51b81526020600482015260096024820152681b9bd7dc995dd85c9960ba1b60448201526064016103c1565b6110446001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836114de565b60405181815233907f87c8f5d0edc1925e2c5f0557944a55a97424c9ded0e2ac25a5515137603c9ad39060200160405180910390a250506001600055565b3332148061109f57503360009081526002602052604090205460ff165b6110da5760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b806111185760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5917d85b5bdd5b9d60921b60448201526064016103c1565b60006006838154811061113b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292206005909102909101915061116c84611310565b61117584611410565b508282600401600082825461118a9190611a2e565b90915550508054839082906000906111a3908490611a2e565b909155505081546111bf906001600160a01b0316333086611587565b604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610a64565b6001546001600160a01b0316331461124d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6001600160a01b0381166112c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c1565b6112d281611609565b50565b60065460005b818110156112fc576112ec81611310565b6112f581611ac8565b90506112db565b5050565b600061130b436115de565b905090565b60006006828154811061133357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806001015460001415611354575050565b600061135e611300565b9050600061136f83600201546115de565b905080821161137e5750505050565b60048301548061139357505060029091015550565b600854600185015460055460009291906113ad8688611a85565b6113b79190611a66565b6113d0906ec097ce7bc90715b34b9f1000000000611a66565b6113da9190611a66565b6113e49190611a46565b90506113f08282611a46565b85600301546113ff9190611a2e565b600386015550505060029091015550565b60008181526007602090815260408083203384529091528120600680548391908590811061144e57634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020160030154905060006ec097ce7bc90715b34b9f10000000008360010154836114849190611a85565b84546114909190611a66565b61149a9190611a46565b905080156114d257336000908152600960209081526040808320888452909152812080548392906114cc908490611a2e565b90915550505b60019092015592915050565b6040516001600160a01b0383166024820152604481018290526105689084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611668565b6040516001600160a01b03808516602483015283166044820152606481018290526115d89085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611523565b50505050565b6003546000908210156115f357505060035490565b60045482111561160557505060045490565b5090565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006116bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661174d9092919063ffffffff16565b80519091501561056857808060200190518101906116db919061193b565b6105685760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103c1565b606061175c8484600085611766565b90505b9392505050565b6060824710156117de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103c1565b6001600160a01b0385163b6118355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c1565b600080866001600160a01b0316858760405161185191906119df565b60006040518083038185875af1925050503d806000811461188e576040519150601f19603f3d011682016040523d82523d6000602084013e611893565b606091505b50915091506118a38282866118ae565b979650505050505050565b606083156118bd57508161175f565b8251156118cd5782518084602001fd5b8160405162461bcd60e51b81526004016103c191906119fb565b6000602082840312156118f8578081fd5b813561175f81611af9565b60008060408385031215611915578081fd5b823561192081611af9565b9150602083013561193081611b0e565b809150509250929050565b60006020828403121561194c578081fd5b815161175f81611b0e565b600060208284031215611968578081fd5b5035919050565b60008060408385031215611981578182fd5b82359150602083013561193081611af9565b600080604083850312156119a5578182fd5b50508035926020909101359150565b6000806000606084860312156119c8578081fd5b505081359360208301359350604090920135919050565b600082516119f1818460208701611a9c565b9190910192915050565b6020815260008251806020840152611a1a816040850160208701611a9c565b601f01601f19169190910160400192915050565b60008219821115611a4157611a41611ae3565b500190565b600082611a6157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611a8057611a80611ae3565b500290565b600082821015611a9757611a97611ae3565b500390565b60005b83811015611ab7578181015183820152602001611a9f565b838111156115d85750506000910152565b6000600019821415611adc57611adc611ae3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146112d257600080fd5b80151581146112d257600080fdfea264697066735822122024b3b62e26a32e0e81feb8252e63324095ae8c75058afe3f4696e41ff8cae24b64736f6c63430008040033000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101515760003560e01c8063715018a6116100cd57806398969e8211610081578063e2bbb15811610066578063e2bbb1581461031e578063eb88d91a14610331578063f2fde38b1461035857600080fd5b806398969e8214610303578063d1058e591461031657600080fd5b80638da5cb5b116100b25780638da5cb5b1461026a578063900cf0cf1461028f57806393f1a40b146102bc57600080fd5b8063715018a61461024f57806383afab561461025757600080fd5b80631ab06ee511610124578063379607f511610109578063379607f5146101f6578063391feebb14610209578063441a3e701461023c57600080fd5b80631ab06ee5146101d05780632b8bbbe8146101e357600080fd5b8063081e3eda14610156578063118f81691461016d5780631526fe271461018257806317caf6f1146101c7575b600080fd5b6006545b6040519081526020015b60405180910390f35b61018061017b366004611903565b61036b565b005b610195610190366004611957565b610429565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610164565b61015a60085481565b6101806101de366004611993565b610474565b6101806101f136600461196f565b61056d565b610180610204366004611957565b610712565b61022c6102173660046118e7565b60026020526000908152604090205460ff1681565b6040519015158152602001610164565b61018061024a366004611993565b6108b9565b610180610a72565b6101806102653660046119b4565b610b14565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610164565b6003546004546005546102a192919083565b60408051938452602084019290925290820152606001610164565b6102ee6102ca36600461196f565b60076020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610164565b61015a61031136600461196f565b610d45565b610180610eb2565b61018061032c366004611993565b611082565b6102777f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a381565b6101806103663660046118e7565b6111f3565b6001546001600160a01b031633146103ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600081815260026020908152604091829020805460ff191685151590811790915591519182527f5f4d080f2a2d4cbddbc3ae19a7cc2ef681d2d3f2a7d7271b95b7d051be541239910160405180910390a25050565b6006818154811061043957600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b6001546001600160a01b031633146104ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6104d66112d5565b6000600683815481106104f957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060050201600101549050816006848154811061052f57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502016001018190555081811461056857818160085461055a9190611a85565b6105649190611a2e565b6008555b505050565b6001546001600160a01b031633146105c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6105cf6112d5565b60006105d9611300565b9050826008546105e99190611a2e565b6008556040805160a0810182526001600160a01b039384168152602081019485529081019182526000606082018181526080830182815260068054600181018255935292517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f6005909302928301805473ffffffffffffffffffffffffffffffffffffffff1916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4085015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4184015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4390910155565b600260005414156107655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c1565b60026000553332148061078757503360009081526002602052604090205460ff165b6107c25760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b6107cb81611310565b6107d481611410565b50336000908152600960209081526040808320848452909152902054806108295760405162461bcd60e51b81526020600482015260096024820152681b9bd7dc995dd85c9960ba1b60448201526064016103c1565b336000818152600960209081526040808320868452909152812055610879907f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a36001600160a01b031690836114de565b604051818152829033907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060200160405180910390a350506001600055565b333214806108d657503360009081526002602052604090205460ff165b6109115760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b8061094f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5917d85b5bdd5b9d60921b60448201526064016103c1565b60006006838154811061097257634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292208054600590920290920192508311156109eb5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e745f616d6f756e740000000000000000000000000060448201526064016103c1565b6109f484611310565b6109fd84611410565b5082826004016000828254610a129190611a85565b9091555050805483900381558154610a34906001600160a01b031633856114de565b604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a350505050565b6001546001600160a01b03163314610acc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b60405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742072656e6f756e6365206f776e6572736869700000000000000060448201526064016103c1565b6001546001600160a01b03163314610b6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b82610b7b57439250610bcb565b43831015610bcb5760405162461bcd60e51b815260206004820152601360248201527f496e76616c696420737461727420626c6f636b0000000000000000000000000060448201526064016103c1565b828211610c1a5760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420656e6420626c6f636b00000000000000000000000000000060448201526064016103c1565b80610c675760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207265776172642070657220626c6f636b000000000000000060448201526064016103c1565b610c6f6112d5565b6000610c79611300565b600454610c869190611a85565b600554610c939190611a66565b90506000610ca18585611a85565b610cab9084611a66565b600386905560048590556005849055905080821115610cff57610cfa6001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a316338385036114de565b610d3e565b80821015610d3e57610d3e6001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a3163330858503611587565b5050505050565b60008060068481548110610d6957634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526007825260408085206001600160a01b03891686529092529083206005929092020160038101549093509091610daa611300565b90506000610dbb85600201546115de565b60048601549091508183118015610dd157508015155b15610e415760085460018701546005546000929190610df08688611a85565b610dfa9190611a66565b610e13906ec097ce7bc90715b34b9f1000000000611a66565b610e1d9190611a66565b610e279190611a46565b9050610e338282611a46565b610e3d9086611a2e565b9450505b6ec097ce7bc90715b34b9f1000000000856001015485610e619190611a85565b8654610e6d9190611a66565b610e779190611a46565b6001600160a01b03891660009081526009602090815260408083208d8452909152902054610ea59190611a2e565b9998505050505050505050565b60026000541415610f055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c1565b600260005533321480610f2757503360009081526002602052604090205460ff165b610f625760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b6006546000805b82811015610fd657610f7a81611310565b610f8381611410565b50336000908152600960209081526040808320848452909152902054610fa99083611a2e565b3360009081526009602090815260408083208584529091528120559150610fcf81611ac8565b9050610f69565b50806110105760405162461bcd60e51b81526020600482015260096024820152681b9bd7dc995dd85c9960ba1b60448201526064016103c1565b6110446001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a31633836114de565b60405181815233907f87c8f5d0edc1925e2c5f0557944a55a97424c9ded0e2ac25a5515137603c9ad39060200160405180910390a250506001600055565b3332148061109f57503360009081526002602052604090205460ff165b6110da5760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f434f4e54524143545360a01b60448201526064016103c1565b806111185760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5917d85b5bdd5b9d60921b60448201526064016103c1565b60006006838154811061113b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292206005909102909101915061116c84611310565b61117584611410565b508282600401600082825461118a9190611a2e565b90915550508054839082906000906111a3908490611a2e565b909155505081546111bf906001600160a01b0316333086611587565b604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610a64565b6001546001600160a01b0316331461124d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c1565b6001600160a01b0381166112c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c1565b6112d281611609565b50565b60065460005b818110156112fc576112ec81611310565b6112f581611ac8565b90506112db565b5050565b600061130b436115de565b905090565b60006006828154811061133357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806001015460001415611354575050565b600061135e611300565b9050600061136f83600201546115de565b905080821161137e5750505050565b60048301548061139357505060029091015550565b600854600185015460055460009291906113ad8688611a85565b6113b79190611a66565b6113d0906ec097ce7bc90715b34b9f1000000000611a66565b6113da9190611a66565b6113e49190611a46565b90506113f08282611a46565b85600301546113ff9190611a2e565b600386015550505060029091015550565b60008181526007602090815260408083203384529091528120600680548391908590811061144e57634e487b7160e01b600052603260045260246000fd5b906000526020600020906005020160030154905060006ec097ce7bc90715b34b9f10000000008360010154836114849190611a85565b84546114909190611a66565b61149a9190611a46565b905080156114d257336000908152600960209081526040808320888452909152812080548392906114cc908490611a2e565b90915550505b60019092015592915050565b6040516001600160a01b0383166024820152604481018290526105689084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611668565b6040516001600160a01b03808516602483015283166044820152606481018290526115d89085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611523565b50505050565b6003546000908210156115f357505060035490565b60045482111561160557505060045490565b5090565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006116bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661174d9092919063ffffffff16565b80519091501561056857808060200190518101906116db919061193b565b6105685760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103c1565b606061175c8484600085611766565b90505b9392505050565b6060824710156117de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103c1565b6001600160a01b0385163b6118355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c1565b600080866001600160a01b0316858760405161185191906119df565b60006040518083038185875af1925050503d806000811461188e576040519150601f19603f3d011682016040523d82523d6000602084013e611893565b606091505b50915091506118a38282866118ae565b979650505050505050565b606083156118bd57508161175f565b8251156118cd5782518084602001fd5b8160405162461bcd60e51b81526004016103c191906119fb565b6000602082840312156118f8578081fd5b813561175f81611af9565b60008060408385031215611915578081fd5b823561192081611af9565b9150602083013561193081611b0e565b809150509250929050565b60006020828403121561194c578081fd5b815161175f81611b0e565b600060208284031215611968578081fd5b5035919050565b60008060408385031215611981578182fd5b82359150602083013561193081611af9565b600080604083850312156119a5578182fd5b50508035926020909101359150565b6000806000606084860312156119c8578081fd5b505081359360208301359350604090920135919050565b600082516119f1818460208701611a9c565b9190910192915050565b6020815260008251806020840152611a1a816040850160208701611a9c565b601f01601f19169190910160400192915050565b60008219821115611a4157611a41611ae3565b500190565b600082611a6157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611a8057611a80611ae3565b500290565b600082821015611a9757611a97611ae3565b500390565b60005b83811015611ab7578181015183820152602001611a9f565b838111156115d85750506000910152565b6000600019821415611adc57611adc611ae3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146112d257600080fd5b80151581146112d257600080fdfea264697066735822122024b3b62e26a32e0e81feb8252e63324095ae8c75058afe3f4696e41ff8cae24b64736f6c63430008040033

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

000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a3

-----Decoded View---------------
Arg [0] : _jpeg (address): 0xE80C0cd204D654CEbe8dd64A4857cAb6Be8345a3

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


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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