ETH Price: $2,688.44 (-0.93%)
Gas: 0.76 Gwei

Contract

0x3EED641562aC83526D7941e4326559E7B607556B
 
Transaction Hash
Method
Block
From
To
Claim All218746772025-02-18 17:13:239 hrs ago1739898803IN
JPEGd: LP Farming
0 ETH0.000560175.57334268
Claim All218095402025-02-09 14:25:239 days ago1739111123IN
JPEGd: LP Farming
0 ETH0.000130881.30222475
Withdraw218095372025-02-09 14:24:479 days ago1739111087IN
JPEGd: LP Farming
0 ETH0.000138041.33367853
Withdraw217393612025-01-30 19:11:5919 days ago1738264319IN
JPEGd: LP Farming
0 ETH0.000462685.04766777
Withdraw215183692024-12-30 22:46:4750 days ago1735598807IN
JPEGd: LP Farming
0 ETH0.000987769.54290012
Withdraw215078462024-12-29 11:31:5951 days ago1735471919IN
JPEGd: LP Farming
0 ETH0.000487454.48080133
Claim All214874132024-12-26 15:03:5954 days ago1735225439IN
JPEGd: LP Farming
0 ETH0.00093849.33646549
Withdraw213946032024-12-13 15:51:5967 days ago1734105119IN
JPEGd: LP Farming
0 ETH0.0033263430.57639019
Withdraw213578642024-12-08 12:46:5972 days ago1733662019IN
JPEGd: LP Farming
0 ETH0.0011162910.26123216
Claim All212375432024-11-21 17:17:3589 days ago1732209455IN
JPEGd: LP Farming
0 ETH0.0015337715.25994047
Withdraw210710152024-10-29 11:32:47112 days ago1730201567IN
JPEGd: LP Farming
0 ETH0.000563726.73791409
Withdraw210673282024-10-28 23:11:23113 days ago1730157083IN
JPEGd: LP Farming
0 ETH0.0007896611.86328891
Claim All210673142024-10-28 23:08:35113 days ago1730156915IN
JPEGd: LP Farming
0 ETH0.001557812.68092535
Withdraw210648712024-10-28 14:57:11113 days ago1730127431IN
JPEGd: LP Farming
0 ETH0.0008894713.3651864
Claim All210648682024-10-28 14:56:35113 days ago1730127395IN
JPEGd: LP Farming
0 ETH0.0016914213.76866203
Withdraw210317892024-10-24 0:11:11118 days ago1729728671IN
JPEGd: LP Farming
0 ETH0.000339715.10456131
Claim All210317812024-10-24 0:09:35118 days ago1729728575IN
JPEGd: LP Farming
0 ETH0.000693425.64464712
Withdraw208433572024-09-27 17:08:59144 days ago1727456939IN
JPEGd: LP Farming
0 ETH0.0016129124.23109816
Claim All208433532024-09-27 17:08:11144 days ago1727456891IN
JPEGd: LP Farming
0 ETH0.0035069325.05922243
Withdraw208406852024-09-27 8:12:11144 days ago1727424731IN
JPEGd: LP Farming
0 ETH0.0013874812.75265022
Claim All208223742024-09-24 18:53:47147 days ago1727204027IN
JPEGd: LP Farming
0 ETH0.0035766935.5854547
Withdraw208223692024-09-24 18:52:47147 days ago1727203967IN
JPEGd: LP Farming
0 ETH0.0045954336.50762215
Claim All207464712024-09-14 4:29:35157 days ago1726288175IN
JPEGd: LP Farming
0 ETH0.000198591.68860947
Withdraw207464692024-09-14 4:29:11157 days ago1726288151IN
JPEGd: LP Farming
0 ETH0.000156971.5165641
Claim All207224542024-09-10 19:59:59161 days ago1725998399IN
JPEGd: LP Farming
0 ETH0.000605616.02541649
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
218746772025-02-18 17:13:239 hrs ago1739898803
0x3EED6415...7B607556B
0 ETH
218095402025-02-09 14:25:239 days ago1739111123
0x3EED6415...7B607556B
0 ETH
218095372025-02-09 14:24:479 days ago1739111087
0x3EED6415...7B607556B
0 ETH
217393612025-01-30 19:11:5919 days ago1738264319
0x3EED6415...7B607556B
0 ETH
215183692024-12-30 22:46:4750 days ago1735598807
0x3EED6415...7B607556B
0 ETH
215078462024-12-29 11:31:5951 days ago1735471919
0x3EED6415...7B607556B
0 ETH
214874132024-12-26 15:03:5954 days ago1735225439
0x3EED6415...7B607556B
0 ETH
213946032024-12-13 15:51:5967 days ago1734105119
0x3EED6415...7B607556B
0 ETH
213578642024-12-08 12:46:5972 days ago1733662019
0x3EED6415...7B607556B
0 ETH
212375432024-11-21 17:17:3589 days ago1732209455
0x3EED6415...7B607556B
0 ETH
210710152024-10-29 11:32:47112 days ago1730201567
0x3EED6415...7B607556B
0 ETH
210673282024-10-28 23:11:23113 days ago1730157083
0x3EED6415...7B607556B
0 ETH
210673142024-10-28 23:08:35113 days ago1730156915
0x3EED6415...7B607556B
0 ETH
210648712024-10-28 14:57:11113 days ago1730127431
0x3EED6415...7B607556B
0 ETH
210648682024-10-28 14:56:35113 days ago1730127395
0x3EED6415...7B607556B
0 ETH
210317892024-10-24 0:11:11118 days ago1729728671
0x3EED6415...7B607556B
0 ETH
210317812024-10-24 0:09:35118 days ago1729728575
0x3EED6415...7B607556B
0 ETH
208433572024-09-27 17:08:59144 days ago1727456939
0x3EED6415...7B607556B
0 ETH
208433532024-09-27 17:08:11144 days ago1727456891
0x3EED6415...7B607556B
0 ETH
208406852024-09-27 8:12:11144 days ago1727424731
0x3EED6415...7B607556B
0 ETH
208223742024-09-24 18:53:47147 days ago1727204027
0x3EED6415...7B607556B
0 ETH
208223692024-09-24 18:52:47147 days ago1727203967
0x3EED6415...7B607556B
0 ETH
207464712024-09-14 4:29:35157 days ago1726288175
0x3EED6415...7B607556B
0 ETH
207464692024-09-14 4:29:11157 days ago1726288151
0x3EED6415...7B607556B
0 ETH
207224542024-09-10 19:59:59161 days ago1725998399
0x3EED6415...7B607556B
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LPFarming

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 7 : LPFarming.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.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 Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;

    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
    struct PoolInfo {
        IERC20 lpToken;
        uint256 allocPoint;
        uint256 lastRewardBlock;
        uint256 accRewardPerShare;
    }

    /// @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 (total) withdrawable rewards
    mapping(address => uint256) private userRewards;
    /// @notice Contracts that are allowed to interact with the LP farm
    /// @dev See the {noContract} modifier for more info
    mapping(address => bool) public whitelistedContracts;

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

    /// @dev Modifier that ensures that non-whitelisted contracts can't interact with the LP farm.
    /// Prevents non-whitelisted 3rd party contracts (e.g. autocompounders) from diluting liquidity providers
    /// @param _account Address to check
    modifier noContract(address _account) {
        require(
            !_account.isContract() || whitelistedContracts[_account],
            "Contracts aren't allowed to farm"
        );
        _;
    }

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

    /// @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. Has to be greater than the previous epoch's `endBlock`
    /// @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 {
        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) {
            jpeg.safeTransfer(msg.sender, remainingRewards - newRewards);
        } else if (remainingRewards < newRewards) {
            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
            })
        );
    }

    /// @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.lpToken.balanceOf(address(this));
        //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] +
            //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(msg.sender)
    {
        require(_amount > 0, "invalid_amount");

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

        pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);
        user.amount = user.amount + _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(msg.sender)
    {
        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);

        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 = 0; 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.lpToken.balanceOf(address(this));
        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 pending = (user.amount *
            (poolInfo[_pid].accRewardPerShare - user.lastAccRewardPerShare)) /
            1e36;
        if (pending > 0) {
            userRewards[msg.sender] += pending;
        }

        user.lastAccRewardPerShare = poolInfo[_pid].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(msg.sender) {
        _updatePool(_pid);
        _withdrawReward(_pid);

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

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

        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(msg.sender) {
        for (uint256 i = 0; i < poolInfo.length; i++) {
            _updatePool(i);
            _withdrawReward(i);
        }

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

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

        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 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

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

File 3 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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

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

        _;

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

File 4 of 7 : 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 5 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 6 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"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":"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"}],"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":"_contract","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"}]

60a06040523480156200001157600080fd5b5060405162002049380380620020498339810160408190526200003491620000c9565b620000486200004262000062565b62000066565b6001805560601b6001600160601b0319166080526200011e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620000c38162000104565b92915050565b600060208284031215620000dc57600080fd5b6000620000ea8484620000b6565b949350505050565b60006001600160a01b038216620000c3565b6200010f81620000f2565b81146200011b57600080fd5b50565b60805160601c611ef0620001596000396000818161069b015281816109f801528181610a4501528181610d750152610f120152611ef06000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c8063715018a6116100cd57806398969e8211610081578063e2bbb15811610066578063e2bbb158146102a3578063eb88d91a146102b6578063f2fde38b146102cb57610151565b806398969e8214610288578063d1058e591461029b57610151565b80638da5cb5b116100b25780638da5cb5b1461023b578063900cf0cf1461025057806393f1a40b1461026757610151565b8063715018a61461022057806383afab561461022857610151565b80631ab06ee511610124578063379607f511610109578063379607f5146101da578063391feebb146101ed578063441a3e701461020d57610151565b80631ab06ee5146101b45780632b8bbbe8146101c757610151565b8063081e3eda14610156578063118f8169146101745780631526fe271461018957806317caf6f1146101ac575b600080fd5b61015e6102de565b60405161016b9190611cdb565b60405180910390f35b6101876101823660046115a1565b6102e4565b005b61019c6101973660046115f9565b610357565b60405161016b9493929190611bac565b61015e61039b565b6101876101c2366004611695565b6103a1565b6101876101d5366004611665565b61047f565b6101876101e83660046115f9565b6105dc565b6102006101fb366004611583565b610718565b60405161016b9190611b90565b61018761021b366004611695565b61072d565b61018761088e565b6101876102363660046116c5565b6108e5565b610243610a74565b60405161016b9190611b3f565b610258610a83565b60405161016b93929190611cf7565b61027a610275366004611635565b610a8f565b60405161016b929190611ce9565b61015e610296366004611635565b610ab3565b610187610c96565b6101876102b1366004611695565b610dee565b6102be610f10565b60405161016b9190611b9e565b6101876102d9366004611583565b610f34565b60055490565b6102ec610fa5565b6001600160a01b03166102fd610a74565b6001600160a01b03161461032c5760405162461bcd60e51b815260040161032390611c4b565b60405180910390fd5b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005818154811061036757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60075481565b6103a9610fa5565b6001600160a01b03166103ba610a74565b6001600160a01b0316146103e05760405162461bcd60e51b815260040161032390611c4b565b6103e8610fa9565b60006005838154811061040b57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101549050816005848154811061044157634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001018190555081811461047a57818160075461046c9190611dac565b6104769190611d1f565b6007555b505050565b610487610fa5565b6001600160a01b0316610498610a74565b6001600160a01b0316146104be5760405162461bcd60e51b815260040161032390611c4b565b6104c6610fa9565b60006104d0610fd4565b9050826007546104e09190611d1f565b600755604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06004909202918201805473ffffffffffffffffffffffffffffffffffffffff1916919095161790935592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db390910155565b600260015414156105ff5760405162461bcd60e51b815260040161032390611cab565b60026001553361060e81610fe4565b158061063257506001600160a01b03811660009081526009602052604090205460ff165b61064e5760405162461bcd60e51b815260040161032390611c8b565b61065782610fee565b61066082611171565b50336000908152600860205260409020548061068e5760405162461bcd60e51b815260040161032390611ccb565b6106c26001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361126a565b3360008181526008602052604080822091909155518491907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf790610707908590611cdb565b60405180910390a350506001805550565b60096020526000908152604090205460ff1681565b3361073781610fe4565b158061075b57506001600160a01b03811660009081526009602052604090205460ff165b6107775760405162461bcd60e51b815260040161032390611c8b565b600082116107975760405162461bcd60e51b815260040161032390611c0b565b6000600584815481106107ba57634e487b7160e01b600052603260045260246000fd5b6000918252602080832087845260068252604080852033865290925292208054600490920290920192508411156108035760405162461bcd60e51b815260040161032390611c5b565b61080c85610fee565b61081585611171565b508381600001600082825461082a9190611dac565b90915550508154610845906001600160a01b0316338661126a565b84336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161087f9190611cdb565b60405180910390a35050505050565b610896610fa5565b6001600160a01b03166108a7610a74565b6001600160a01b0316146108cd5760405162461bcd60e51b815260040161032390611c4b565b60405162461bcd60e51b815260040161032390611cbb565b6108ed610fa5565b6001600160a01b03166108fe610a74565b6001600160a01b0316146109245760405162461bcd60e51b815260040161032390611c4b565b438310156109445760405162461bcd60e51b815260040161032390611c3b565b8282116109635760405162461bcd60e51b815260040161032390611bfb565b600081116109835760405162461bcd60e51b815260040161032390611c7b565b61098b610fa9565b6000610995610fd4565b6003546109a29190611dac565b6004546109af9190611d77565b905060006109bd8585611dac565b6109c79084611d77565b600286905560038590556004849055905080821115610a2457610a1f336109ee8385611dac565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061126a565b610a6d565b80821015610a6d57610a6d3330610a3b8585611dac565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169291906112ed565b5050505050565b6000546001600160a01b031690565b60025460035460045483565b60066020908152600092835260408084209091529082529020805460019091015482565b60008060058481548110610ad757634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526006825260408085206001600160a01b03891686529092529083206004929092020160038101549093509091610b18610fd4565b90506000610b298560020154611314565b85546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610b5e903090600401611b3f565b60206040518083038186803b158015610b7657600080fd5b505afa158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190611617565b90508183118015610bbe57508015155b15610c2e5760075460018701546004546000929190610bdd8688611dac565b610be79190611d77565b610c00906ec097ce7bc90715b34b9f1000000000611d77565b610c0a9190611d77565b610c149190611d4d565b9050610c208282611d4d565b610c2a9086611d1f565b9450505b6ec097ce7bc90715b34b9f1000000000856001015485610c4e9190611dac565b8654610c5a9190611d77565b610c649190611d4d565b6001600160a01b038916600090815260086020526040902054610c879190611d1f565b96505050505050505b92915050565b60026001541415610cb95760405162461bcd60e51b815260040161032390611cab565b600260015533610cc881610fe4565b1580610cec57506001600160a01b03811660009081526009602052604090205460ff165b610d085760405162461bcd60e51b815260040161032390611c8b565b60005b600554811015610d3a57610d1e81610fee565b610d2781611171565b5080610d3281611e2f565b915050610d0b565b503360009081526008602052604090205480610d685760405162461bcd60e51b815260040161032390611ccb565b610d9c6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361126a565b3360008181526008602052604080822091909155517f87c8f5d0edc1925e2c5f0557944a55a97424c9ded0e2ac25a5515137603c9ad390610dde908490611cdb565b60405180910390a2505060018055565b33610df881610fe4565b1580610e1c57506001600160a01b03811660009081526009602052604090205460ff165b610e385760405162461bcd60e51b815260040161032390611c8b565b60008211610e585760405162461bcd60e51b815260040161032390611c0b565b600060058481548110610e7b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600682526040808520338652909252922060049091029091019150610eac85610fee565b610eb585611171565b508154610ecd906001600160a01b03163330876112ed565b8054610eda908590611d1f565b8155604051859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159061087f908890611cdb565b7f000000000000000000000000000000000000000000000000000000000000000081565b610f3c610fa5565b6001600160a01b0316610f4d610a74565b6001600160a01b031614610f735760405162461bcd60e51b815260040161032390611c4b565b6001600160a01b038116610f995760405162461bcd60e51b815260040161032390611c1b565b610fa281611341565b50565b3390565b60055460005b81811015610fd057610fc081610fee565b610fc981611e2f565b9050610faf565b5050565b6000610fdf43611314565b905090565b803b15155b919050565b60006005828154811061101157634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020190508060010154600014156110345750610fa2565b600061103e610fd4565b9050600061104f8360020154611314565b905080821161106057505050610fa2565b82546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611090903090600401611b3f565b60206040518083038186803b1580156110a857600080fd5b505afa1580156110bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e09190611617565b9050806110f4575050600290910155610fa2565b6007546001850154600454600092919061110e8688611dac565b6111189190611d77565b611131906ec097ce7bc90715b34b9f1000000000611d77565b61113b9190611d77565b6111459190611d4d565b90506111518282611d4d565b85600301546111609190611d1f565b600386015550505060029091015550565b6000818152600660209081526040808320338452909152812060018101546005805484926ec097ce7bc90715b34b9f1000000000929091879081106111c657634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301546111e29190611dac565b83546111ee9190611d77565b6111f89190611d4d565b9050801561122557336000908152600860205260408120805483929061121f908490611d1f565b90915550505b6005848154811061124657634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016003015482600101819055508092505050919050565b61047a8363a9059cbb60e01b8484604051602401611289929190611b75565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261139e565b61130e846323b872dd60e01b85858560405160240161128993929190611b4d565b50505050565b60025460009082101561132a5750600254610fe9565b60035482111561133d5750600354610fe9565b5090565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006113f3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661142d9092919063ffffffff16565b80519091501561047a578080602001905181019061141191906115db565b61047a5760405162461bcd60e51b815260040161032390611c9b565b606061143c8484600085611446565b90505b9392505050565b6060824710156114685760405162461bcd60e51b815260040161032390611c2b565b61147185610fe4565b61148d5760405162461bcd60e51b815260040161032390611c6b565b600080866001600160a01b031685876040516114a99190611b33565b60006040518083038185875af1925050503d80600081146114e6576040519150601f19603f3d011682016040523d82523d6000602084013e6114eb565b606091505b50915091506114fb828286611508565b925050505b949350505050565b6060831561151757508161143f565b8251156115275782518084602001fd5b8160405162461bcd60e51b81526004016103239190611bea565b8035610c9081611e8b565b8035610c9081611e9f565b8051610c9081611e9f565b8035610c9081611ea8565b8035610c9081611eb1565b8051610c9081611eb1565b60006020828403121561159557600080fd5b60006115008484611541565b600080604083850312156115b457600080fd5b60006115c08585611541565b92505060206115d18582860161154c565b9150509250929050565b6000602082840312156115ed57600080fd5b60006115008484611557565b60006020828403121561160b57600080fd5b6000611500848461156d565b60006020828403121561162957600080fd5b60006115008484611578565b6000806040838503121561164857600080fd5b6000611654858561156d565b92505060206115d185828601611541565b6000806040838503121561167857600080fd5b6000611684858561156d565b92505060206115d185828601611562565b600080604083850312156116a857600080fd5b60006116b4858561156d565b92505060206115d18582860161156d565b6000806000606084860312156116da57600080fd5b60006116e6868661156d565b93505060206116f78682870161156d565b92505060406117088682870161156d565b9150509250925092565b61171b81611dd9565b82525050565b61171b81611de4565b600061173582611d12565b61173f8185610fe9565b935061174f818560208601611e03565b9290920192915050565b61171b81611de9565b600061176d82611d12565b6117778185611d16565b9350611787818560208601611e03565b61179081611e81565b9093019392505050565b60006117a7601183611d16565b7f496e76616c696420656e6420626c6f636b000000000000000000000000000000815260200192915050565b60006117e0600e83611d16565b7f696e76616c69645f616d6f756e74000000000000000000000000000000000000815260200192915050565b6000611819602683611d16565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b6000611878602683611d16565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c0000000000000000000000000000000000000000000000000000602082015260400192915050565b60006118d7601383611d16565b7f496e76616c696420737461727420626c6f636b00000000000000000000000000815260200192915050565b6000611910602083611d16565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000611949601383611d16565b7f696e73756666696369656e745f616d6f756e7400000000000000000000000000815260200192915050565b6000611982601d83611d16565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815260200192915050565b60006119bb601883611d16565b7f496e76616c6964207265776172642070657220626c6f636b0000000000000000815260200192915050565b60006119f4602083611d16565b7f436f6e747261637473206172656e277420616c6c6f77656420746f206661726d815260200192915050565b6000611a2d602a83611d16565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f74207375636365656400000000000000000000000000000000000000000000602082015260400192915050565b6000611a8c601f83611d16565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b6000611ac5601983611d16565b7f43616e6e6f742072656e6f756e6365206f776e65727368697000000000000000815260200192915050565b6000611afe600983611d16565b7f6e6f5f7265776172640000000000000000000000000000000000000000000000815260200192915050565b61171b81611e00565b600061143f828461172a565b60208101610c908284611712565b60608101611b5b8286611712565b611b686020830185611712565b6115006040830184611b2a565b60408101611b838285611712565b61143f6020830184611b2a565b60208101610c908284611721565b60208101610c908284611759565b60808101611bba8287611759565b611bc76020830186611b2a565b611bd46040830185611b2a565b611be16060830184611b2a565b95945050505050565b6020808252810161143f8184611762565b60208082528101610c908161179a565b60208082528101610c90816117d3565b60208082528101610c908161180c565b60208082528101610c908161186b565b60208082528101610c90816118ca565b60208082528101610c9081611903565b60208082528101610c908161193c565b60208082528101610c9081611975565b60208082528101610c90816119ae565b60208082528101610c90816119e7565b60208082528101610c9081611a20565b60208082528101610c9081611a7f565b60208082528101610c9081611ab8565b60208082528101610c9081611af1565b60208101610c908284611b2a565b60408101611b838285611b2a565b60608101611d058286611b2a565b611b686020830185611b2a565b5190565b90815260200190565b6000611d2a82611e00565b9150611d3583611e00565b92508219821115611d4857611d48611e55565b500190565b6000611d5882611e00565b9150611d6383611e00565b925082611d7257611d72611e6b565b500490565b6000611d8282611e00565b9150611d8d83611e00565b9250816000190483118215151615611da757611da7611e55565b500290565b6000611db782611e00565b9150611dc283611e00565b925082821015611dd457611dd4611e55565b500390565b6000610c9082611df4565b151590565b6000610c9082611dd9565b6001600160a01b031690565b90565b60005b83811015611e1e578181015183820152602001611e06565b8381111561130e5750506000910152565b6000611e3a82611e00565b9150600019821415611e4e57611e4e611e55565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b601f01601f191690565b611e9481611dd9565b8114610fa257600080fd5b611e9481611de4565b611e9481611de9565b611e9481611e0056fea2646970667358221220a805c2a57b6779de3edb4ada2a5d17c9fc37d230b1c2ebd193165dc7715bca4564736f6c63430008000033000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101515760003560e01c8063715018a6116100cd57806398969e8211610081578063e2bbb15811610066578063e2bbb158146102a3578063eb88d91a146102b6578063f2fde38b146102cb57610151565b806398969e8214610288578063d1058e591461029b57610151565b80638da5cb5b116100b25780638da5cb5b1461023b578063900cf0cf1461025057806393f1a40b1461026757610151565b8063715018a61461022057806383afab561461022857610151565b80631ab06ee511610124578063379607f511610109578063379607f5146101da578063391feebb146101ed578063441a3e701461020d57610151565b80631ab06ee5146101b45780632b8bbbe8146101c757610151565b8063081e3eda14610156578063118f8169146101745780631526fe271461018957806317caf6f1146101ac575b600080fd5b61015e6102de565b60405161016b9190611cdb565b60405180910390f35b6101876101823660046115a1565b6102e4565b005b61019c6101973660046115f9565b610357565b60405161016b9493929190611bac565b61015e61039b565b6101876101c2366004611695565b6103a1565b6101876101d5366004611665565b61047f565b6101876101e83660046115f9565b6105dc565b6102006101fb366004611583565b610718565b60405161016b9190611b90565b61018761021b366004611695565b61072d565b61018761088e565b6101876102363660046116c5565b6108e5565b610243610a74565b60405161016b9190611b3f565b610258610a83565b60405161016b93929190611cf7565b61027a610275366004611635565b610a8f565b60405161016b929190611ce9565b61015e610296366004611635565b610ab3565b610187610c96565b6101876102b1366004611695565b610dee565b6102be610f10565b60405161016b9190611b9e565b6101876102d9366004611583565b610f34565b60055490565b6102ec610fa5565b6001600160a01b03166102fd610a74565b6001600160a01b03161461032c5760405162461bcd60e51b815260040161032390611c4b565b60405180910390fd5b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005818154811061036757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60075481565b6103a9610fa5565b6001600160a01b03166103ba610a74565b6001600160a01b0316146103e05760405162461bcd60e51b815260040161032390611c4b565b6103e8610fa9565b60006005838154811061040b57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101549050816005848154811061044157634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001018190555081811461047a57818160075461046c9190611dac565b6104769190611d1f565b6007555b505050565b610487610fa5565b6001600160a01b0316610498610a74565b6001600160a01b0316146104be5760405162461bcd60e51b815260040161032390611c4b565b6104c6610fa9565b60006104d0610fd4565b9050826007546104e09190611d1f565b600755604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06004909202918201805473ffffffffffffffffffffffffffffffffffffffff1916919095161790935592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db390910155565b600260015414156105ff5760405162461bcd60e51b815260040161032390611cab565b60026001553361060e81610fe4565b158061063257506001600160a01b03811660009081526009602052604090205460ff165b61064e5760405162461bcd60e51b815260040161032390611c8b565b61065782610fee565b61066082611171565b50336000908152600860205260409020548061068e5760405162461bcd60e51b815260040161032390611ccb565b6106c26001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a316338361126a565b3360008181526008602052604080822091909155518491907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf790610707908590611cdb565b60405180910390a350506001805550565b60096020526000908152604090205460ff1681565b3361073781610fe4565b158061075b57506001600160a01b03811660009081526009602052604090205460ff165b6107775760405162461bcd60e51b815260040161032390611c8b565b600082116107975760405162461bcd60e51b815260040161032390611c0b565b6000600584815481106107ba57634e487b7160e01b600052603260045260246000fd5b6000918252602080832087845260068252604080852033865290925292208054600490920290920192508411156108035760405162461bcd60e51b815260040161032390611c5b565b61080c85610fee565b61081585611171565b508381600001600082825461082a9190611dac565b90915550508154610845906001600160a01b0316338661126a565b84336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161087f9190611cdb565b60405180910390a35050505050565b610896610fa5565b6001600160a01b03166108a7610a74565b6001600160a01b0316146108cd5760405162461bcd60e51b815260040161032390611c4b565b60405162461bcd60e51b815260040161032390611cbb565b6108ed610fa5565b6001600160a01b03166108fe610a74565b6001600160a01b0316146109245760405162461bcd60e51b815260040161032390611c4b565b438310156109445760405162461bcd60e51b815260040161032390611c3b565b8282116109635760405162461bcd60e51b815260040161032390611bfb565b600081116109835760405162461bcd60e51b815260040161032390611c7b565b61098b610fa9565b6000610995610fd4565b6003546109a29190611dac565b6004546109af9190611d77565b905060006109bd8585611dac565b6109c79084611d77565b600286905560038590556004849055905080821115610a2457610a1f336109ee8385611dac565b6001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a316919061126a565b610a6d565b80821015610a6d57610a6d3330610a3b8585611dac565b6001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a3169291906112ed565b5050505050565b6000546001600160a01b031690565b60025460035460045483565b60066020908152600092835260408084209091529082529020805460019091015482565b60008060058481548110610ad757634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526006825260408085206001600160a01b03891686529092529083206004929092020160038101549093509091610b18610fd4565b90506000610b298560020154611314565b85546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610b5e903090600401611b3f565b60206040518083038186803b158015610b7657600080fd5b505afa158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190611617565b90508183118015610bbe57508015155b15610c2e5760075460018701546004546000929190610bdd8688611dac565b610be79190611d77565b610c00906ec097ce7bc90715b34b9f1000000000611d77565b610c0a9190611d77565b610c149190611d4d565b9050610c208282611d4d565b610c2a9086611d1f565b9450505b6ec097ce7bc90715b34b9f1000000000856001015485610c4e9190611dac565b8654610c5a9190611d77565b610c649190611d4d565b6001600160a01b038916600090815260086020526040902054610c879190611d1f565b96505050505050505b92915050565b60026001541415610cb95760405162461bcd60e51b815260040161032390611cab565b600260015533610cc881610fe4565b1580610cec57506001600160a01b03811660009081526009602052604090205460ff165b610d085760405162461bcd60e51b815260040161032390611c8b565b60005b600554811015610d3a57610d1e81610fee565b610d2781611171565b5080610d3281611e2f565b915050610d0b565b503360009081526008602052604090205480610d685760405162461bcd60e51b815260040161032390611ccb565b610d9c6001600160a01b037f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a316338361126a565b3360008181526008602052604080822091909155517f87c8f5d0edc1925e2c5f0557944a55a97424c9ded0e2ac25a5515137603c9ad390610dde908490611cdb565b60405180910390a2505060018055565b33610df881610fe4565b1580610e1c57506001600160a01b03811660009081526009602052604090205460ff165b610e385760405162461bcd60e51b815260040161032390611c8b565b60008211610e585760405162461bcd60e51b815260040161032390611c0b565b600060058481548110610e7b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600682526040808520338652909252922060049091029091019150610eac85610fee565b610eb585611171565b508154610ecd906001600160a01b03163330876112ed565b8054610eda908590611d1f565b8155604051859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159061087f908890611cdb565b7f000000000000000000000000e80c0cd204d654cebe8dd64a4857cab6be8345a381565b610f3c610fa5565b6001600160a01b0316610f4d610a74565b6001600160a01b031614610f735760405162461bcd60e51b815260040161032390611c4b565b6001600160a01b038116610f995760405162461bcd60e51b815260040161032390611c1b565b610fa281611341565b50565b3390565b60055460005b81811015610fd057610fc081610fee565b610fc981611e2f565b9050610faf565b5050565b6000610fdf43611314565b905090565b803b15155b919050565b60006005828154811061101157634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020190508060010154600014156110345750610fa2565b600061103e610fd4565b9050600061104f8360020154611314565b905080821161106057505050610fa2565b82546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611090903090600401611b3f565b60206040518083038186803b1580156110a857600080fd5b505afa1580156110bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e09190611617565b9050806110f4575050600290910155610fa2565b6007546001850154600454600092919061110e8688611dac565b6111189190611d77565b611131906ec097ce7bc90715b34b9f1000000000611d77565b61113b9190611d77565b6111459190611d4d565b90506111518282611d4d565b85600301546111609190611d1f565b600386015550505060029091015550565b6000818152600660209081526040808320338452909152812060018101546005805484926ec097ce7bc90715b34b9f1000000000929091879081106111c657634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301546111e29190611dac565b83546111ee9190611d77565b6111f89190611d4d565b9050801561122557336000908152600860205260408120805483929061121f908490611d1f565b90915550505b6005848154811061124657634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016003015482600101819055508092505050919050565b61047a8363a9059cbb60e01b8484604051602401611289929190611b75565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261139e565b61130e846323b872dd60e01b85858560405160240161128993929190611b4d565b50505050565b60025460009082101561132a5750600254610fe9565b60035482111561133d5750600354610fe9565b5090565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006113f3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661142d9092919063ffffffff16565b80519091501561047a578080602001905181019061141191906115db565b61047a5760405162461bcd60e51b815260040161032390611c9b565b606061143c8484600085611446565b90505b9392505050565b6060824710156114685760405162461bcd60e51b815260040161032390611c2b565b61147185610fe4565b61148d5760405162461bcd60e51b815260040161032390611c6b565b600080866001600160a01b031685876040516114a99190611b33565b60006040518083038185875af1925050503d80600081146114e6576040519150601f19603f3d011682016040523d82523d6000602084013e6114eb565b606091505b50915091506114fb828286611508565b925050505b949350505050565b6060831561151757508161143f565b8251156115275782518084602001fd5b8160405162461bcd60e51b81526004016103239190611bea565b8035610c9081611e8b565b8035610c9081611e9f565b8051610c9081611e9f565b8035610c9081611ea8565b8035610c9081611eb1565b8051610c9081611eb1565b60006020828403121561159557600080fd5b60006115008484611541565b600080604083850312156115b457600080fd5b60006115c08585611541565b92505060206115d18582860161154c565b9150509250929050565b6000602082840312156115ed57600080fd5b60006115008484611557565b60006020828403121561160b57600080fd5b6000611500848461156d565b60006020828403121561162957600080fd5b60006115008484611578565b6000806040838503121561164857600080fd5b6000611654858561156d565b92505060206115d185828601611541565b6000806040838503121561167857600080fd5b6000611684858561156d565b92505060206115d185828601611562565b600080604083850312156116a857600080fd5b60006116b4858561156d565b92505060206115d18582860161156d565b6000806000606084860312156116da57600080fd5b60006116e6868661156d565b93505060206116f78682870161156d565b92505060406117088682870161156d565b9150509250925092565b61171b81611dd9565b82525050565b61171b81611de4565b600061173582611d12565b61173f8185610fe9565b935061174f818560208601611e03565b9290920192915050565b61171b81611de9565b600061176d82611d12565b6117778185611d16565b9350611787818560208601611e03565b61179081611e81565b9093019392505050565b60006117a7601183611d16565b7f496e76616c696420656e6420626c6f636b000000000000000000000000000000815260200192915050565b60006117e0600e83611d16565b7f696e76616c69645f616d6f756e74000000000000000000000000000000000000815260200192915050565b6000611819602683611d16565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b6000611878602683611d16565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c0000000000000000000000000000000000000000000000000000602082015260400192915050565b60006118d7601383611d16565b7f496e76616c696420737461727420626c6f636b00000000000000000000000000815260200192915050565b6000611910602083611d16565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000611949601383611d16565b7f696e73756666696369656e745f616d6f756e7400000000000000000000000000815260200192915050565b6000611982601d83611d16565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815260200192915050565b60006119bb601883611d16565b7f496e76616c6964207265776172642070657220626c6f636b0000000000000000815260200192915050565b60006119f4602083611d16565b7f436f6e747261637473206172656e277420616c6c6f77656420746f206661726d815260200192915050565b6000611a2d602a83611d16565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f74207375636365656400000000000000000000000000000000000000000000602082015260400192915050565b6000611a8c601f83611d16565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b6000611ac5601983611d16565b7f43616e6e6f742072656e6f756e6365206f776e65727368697000000000000000815260200192915050565b6000611afe600983611d16565b7f6e6f5f7265776172640000000000000000000000000000000000000000000000815260200192915050565b61171b81611e00565b600061143f828461172a565b60208101610c908284611712565b60608101611b5b8286611712565b611b686020830185611712565b6115006040830184611b2a565b60408101611b838285611712565b61143f6020830184611b2a565b60208101610c908284611721565b60208101610c908284611759565b60808101611bba8287611759565b611bc76020830186611b2a565b611bd46040830185611b2a565b611be16060830184611b2a565b95945050505050565b6020808252810161143f8184611762565b60208082528101610c908161179a565b60208082528101610c90816117d3565b60208082528101610c908161180c565b60208082528101610c908161186b565b60208082528101610c90816118ca565b60208082528101610c9081611903565b60208082528101610c908161193c565b60208082528101610c9081611975565b60208082528101610c90816119ae565b60208082528101610c90816119e7565b60208082528101610c9081611a20565b60208082528101610c9081611a7f565b60208082528101610c9081611ab8565b60208082528101610c9081611af1565b60208101610c908284611b2a565b60408101611b838285611b2a565b60608101611d058286611b2a565b611b686020830185611b2a565b5190565b90815260200190565b6000611d2a82611e00565b9150611d3583611e00565b92508219821115611d4857611d48611e55565b500190565b6000611d5882611e00565b9150611d6383611e00565b925082611d7257611d72611e6b565b500490565b6000611d8282611e00565b9150611d8d83611e00565b9250816000190483118215151615611da757611da7611e55565b500290565b6000611db782611e00565b9150611dc283611e00565b925082821015611dd457611dd4611e55565b500390565b6000610c9082611df4565b151590565b6000610c9082611dd9565b6001600160a01b031690565b90565b60005b83811015611e1e578181015183820152602001611e06565b8381111561130e5750506000910152565b6000611e3a82611e00565b9150600019821415611e4e57611e4e611e55565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b601f01601f191690565b611e9481611dd9565b8114610fa257600080fd5b611e9481611de4565b611e9481611de9565b611e9481611e0056fea2646970667358221220a805c2a57b6779de3edb4ada2a5d17c9fc37d230b1c2ebd193165dc7715bca4564736f6c63430008000033

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 Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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