ETH Price: $3,442.65 (-0.20%)
Gas: 7 Gwei

Contract

0x9dF8467a11737506bff5C9B1B7cda377ee9038Cb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw170511952023-04-15 8:20:35465 days ago1681546835IN
0x9dF8467a...7ee9038Cb
0 ETH0.0021509827.71275199
Withdraw134887352021-10-25 20:26:031001 days ago1635193563IN
0x9dF8467a...7ee9038Cb
0 ETH0.01834014156.11955633
Withdraw134887092021-10-25 20:19:501001 days ago1635193190IN
0x9dF8467a...7ee9038Cb
0 ETH0.01431411121.84815346
Withdraw133933202021-10-10 21:30:141016 days ago1633901414IN
0x9dF8467a...7ee9038Cb
0 ETH0.006899988.88307079
Deposit133933162021-10-10 21:29:111016 days ago1633901351IN
0x9dF8467a...7ee9038Cb
0 ETH0.0078748674.10176135
Withdraw131741162021-09-06 19:36:371050 days ago1630956997IN
0x9dF8467a...7ee9038Cb
0 ETH0.01208597122.85620538
Withdraw131663882021-09-05 14:58:081052 days ago1630853888IN
0x9dF8467a...7ee9038Cb
0 ETH0.0088010289.46408327
Withdraw131653062021-09-05 11:01:401052 days ago1630839700IN
0x9dF8467a...7ee9038Cb
0 ETH0.0084631872.04246368
Withdraw131620252021-09-04 22:53:331052 days ago1630796013IN
0x9dF8467a...7ee9038Cb
0 ETH0.0049168281.21473303
Deposit131620142021-09-04 22:51:421052 days ago1630795902IN
0x9dF8467a...7ee9038Cb
0 ETH0.01244826100.90103163
Withdraw131002922021-08-26 10:00:581062 days ago1629972058IN
0x9dF8467a...7ee9038Cb
0 ETH0.0059551676.70135563
Deposit130740972021-08-22 8:52:271066 days ago1629622347IN
0x9dF8467a...7ee9038Cb
0 ETH0.0036205329.34675842
Withdraw130601622021-08-20 5:04:541068 days ago1629435894IN
0x9dF8467a...7ee9038Cb
0 ETH0.0036720931.25213462
Withdraw130427542021-08-17 12:39:261071 days ago1629203966IN
0x9dF8467a...7ee9038Cb
0 ETH0.0022977737.96152538
Deposit130427502021-08-17 12:39:081071 days ago1629203948IN
0x9dF8467a...7ee9038Cb
0 ETH0.001866638.46678628
Deposit130426852021-08-17 12:23:051071 days ago1629202985IN
0x9dF8467a...7ee9038Cb
0 ETH0.0037083341.58675385
Withdraw130071082021-08-12 0:27:311076 days ago1628728051IN
0x9dF8467a...7ee9038Cb
0 ETH0.003176840.92297875
Deposit130071082021-08-12 0:27:311076 days ago1628728051IN
0x9dF8467a...7ee9038Cb
0 ETH0.0047132138.20355732
Withdraw129101482021-07-27 20:17:501091 days ago1627417070IN
0x9dF8467a...7ee9038Cb
0 ETH0.0020591726.39999999
Withdraw128266732021-07-14 18:16:311104 days ago1626286591IN
0x9dF8467a...7ee9038Cb
0 ETH0.002807136
Withdraw127542942021-07-03 11:23:181116 days ago1625311398IN
0x9dF8467a...7ee9038Cb
0 ETH0.0012437510
Deposit127359792021-06-30 14:45:351119 days ago1625064335IN
0x9dF8467a...7ee9038Cb
0 ETH0.0130607122.9
Deposit127121392021-06-26 21:52:001122 days ago1624744320IN
0x9dF8467a...7ee9038Cb
0 ETH0.000637626
Withdraw126944122021-06-24 3:08:411125 days ago1624504121IN
0x9dF8467a...7ee9038Cb
0 ETH0.000560935
Withdraw126937282021-06-24 0:42:101125 days ago1624495330IN
0x9dF8467a...7ee9038Cb
0 ETH0.0006297811
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
120179062021-03-11 14:45:441230 days ago1615473944
0x9dF8467a...7ee9038Cb
 Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xa19C3750...96a900827
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
LaunchPoolStakingWithGuild

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 9 : LaunchPoolStakingWithGuild.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

import { Guild } from "./Guild.sol";

/// @title Staking contract for farming generic rewards in return for staking a whitelisted token(s)
/// @author BlockRocket.tech
/// @notice Fork of MasterChef.sol from SushiSwap
/// @dev Only the owner can add new pools
contract LaunchPoolStakingWithGuild is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /// @dev Details about each user in a pool
    struct UserInfo {
        uint256 amount;     // How many tokens the user has provided to a pool
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of reward tokens
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws ERC20 tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    /// @dev Info of each pool.
    struct PoolInfo {
        IERC20 erc20Token; // Address of token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool; this is a weighting for rewards.
        uint256 lastRewardBlock; // Last block number that reward token distribution has occurred up to endBlock.
        uint256 accRewardPerShare; // Per LP token staked, how much reward token earned in pool that users will get
        uint256 maxStakingAmountPerUser; // Max. amount of tokens that can be staked per account/user
    }

    /// @notice Container for holding all rewards
    Guild public rewardGuildBank;

    /// @notice Number of reward tokens distributed per block, across all pools.
    uint256 public rewardPerBlock;

    /// @notice The total amount of reward token available for farming across all pools between start and end block.
    uint256 public maxRewardTokenAvailableForFarming;

    /// @notice List of pools that users can stake into
    PoolInfo[] public poolInfo;

    /// @notice Per pool, info of each user that stakes ERC20 tokens.
    /// @notice Pool ID => User Address => User Info
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    /// @notice Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;

    /// @notice The block number when rewards starts across all pools.
    uint256 public startBlock;

    /// @notice The block number when rewards ends.
    uint256 public endBlock;

    /// @notice Tracks ERC20 tokens added by owner
    mapping(address => bool) isErc20TokenWhitelisted;

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

    /// @param _rewardToken Address of the reward token
    /// @param _maxRewardTokenAvailableForFarming Maximum number of reward token that will be distributed between the start and end of farming
    /// @param _startBlock Block number when farming will begin for all pools
    /// @param _endBlock Block number when farming will end for all pools
    constructor(
        IERC20 _rewardToken,
        uint256 _maxRewardTokenAvailableForFarming,
        uint256 _startBlock,
        uint256 _endBlock
    ) public {
        require(address(_rewardToken) != address(0), "constructor: _rewardToken must not be zero address");
        require(_maxRewardTokenAvailableForFarming > 0, "constructor: _maxRewardTokenAvailableForFarming must be greater than zero");

        maxRewardTokenAvailableForFarming = _maxRewardTokenAvailableForFarming;
        startBlock = _startBlock;
        endBlock = _endBlock;

        uint256 numberOfBlocksForFarming = endBlock.sub(startBlock);
        rewardPerBlock = maxRewardTokenAvailableForFarming.div(numberOfBlocksForFarming);

        rewardGuildBank = new Guild(IERC20(address(_rewardToken)), address(this));
    }

    /// @notice Returns the number of pools that have been added by the owner
    /// @return Number of pools
    function numberOfPools() external view returns (uint256) {
        return poolInfo.length;
    }

    /// @notice Create a new reward pool by whitelisting a new ERC20 token.
    /// @dev Can only be called by the contract owner
    /// @param _allocPoint Governs what percentage of the total rewards this pool and other pools will get
    /// @param _erc20Token Address of the staking token being whitelisted
    /// @param _maxStakingAmountPerUser For this pool, maximum amount per user that can be staked
    /// @param _withUpdate Set to true for updating all pools before adding this one
    function add(uint256 _allocPoint, IERC20 _erc20Token, uint256 _maxStakingAmountPerUser, bool _withUpdate) public onlyOwner {
        require(block.number < endBlock, "add: must be before end");
        address erc20TokenAddress = address(_erc20Token);
        require(erc20TokenAddress != address(0), "add: _erc20Token must not be zero address");
        require(isErc20TokenWhitelisted[erc20TokenAddress] == false, "add: already whitelisted");
        require(_maxStakingAmountPerUser > 0, "add: _maxStakingAmountPerUser must be greater than zero");

        if (_withUpdate) {
            massUpdatePools();
        }

        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            erc20Token : _erc20Token,
            allocPoint : _allocPoint,
            lastRewardBlock : lastRewardBlock,
            accRewardPerShare : 0,
            maxStakingAmountPerUser: _maxStakingAmountPerUser
        }));

        isErc20TokenWhitelisted[erc20TokenAddress] = true;
    }

    /// @notice Update a pool's allocation point to increase or decrease its share of contract-level rewards
    /// @notice Can also update the max amount that can be staked per user
    /// @dev Can only be called by the owner
    /// @param _pid ID of the pool being updated
    /// @param _allocPoint New allocation point
    /// @param _maxStakingAmountPerUser Maximum amount that a user can deposit into the far
    /// @param _withUpdate Set to true if you want to update all pools before making this change - it will checkpoint those rewards
    function set(uint256 _pid, uint256 _allocPoint, uint256 _maxStakingAmountPerUser, bool _withUpdate) public onlyOwner {
        require(block.number < endBlock, "set: must be before end");
        require(_pid < poolInfo.length, "set: invalid _pid");
        require(_maxStakingAmountPerUser > 0, "set: _maxStakingAmountPerUser must be greater than zero");

        if (_withUpdate) {
            massUpdatePools();
        }

        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);

        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].maxStakingAmountPerUser = _maxStakingAmountPerUser;
    }

    /// @notice View function to see pending and unclaimed reward tokens for a given user
    /// @param _pid ID of the pool where a user has a stake
    /// @param _user Account being queried
    /// @return Amount of reward tokens due to a user
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256) {
        require(_pid < poolInfo.length, "pendingRewards: invalid _pid");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = pool.erc20Token.balanceOf(address(this));

        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 maxEndBlock = block.number <= endBlock ? block.number : endBlock;
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, maxEndBlock);
            uint256 reward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRewardPerShare = accRewardPerShare.add(reward.mul(1e18).div(lpSupply));
        }

        return user.amount.mul(accRewardPerShare).div(1e18).sub(user.rewardDebt);
    }

    /// @notice Cycles through the pools to update all of the rewards accrued
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    /// @notice Updates a specific pool to track all of the rewards accrued up to the TX block
    /// @param _pid ID of the pool
    function updatePool(uint256 _pid) public {
        require(_pid < poolInfo.length, "updatePool: invalid _pid");

        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }

        uint256 erc20Supply = pool.erc20Token.balanceOf(address(this));
        if (erc20Supply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }

        uint256 maxEndBlock = block.number <= endBlock ? block.number : endBlock;
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, maxEndBlock);

        // No point in doing any more logic as the rewards have ended
        if (multiplier == 0) {
            return;
        }

        uint256 reward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);

        pool.accRewardPerShare = pool.accRewardPerShare.add(reward.mul(1e18).div(erc20Supply));
        pool.lastRewardBlock = maxEndBlock;
    }

    /// @notice Where any user can stake their ERC20 tokens into a pool in order to farm rewards
    /// @param _pid ID of the pool
    /// @param _amount Amount of ERC20 being staked
    function deposit(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount.add(_amount) <= pool.maxStakingAmountPerUser, "deposit: can not exceed max staking amount per user");

        updatePool(_pid);

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
            if (pending > 0) {
                safeRewardTransfer(msg.sender, pending);
            }
        }

        if (_amount > 0) {
            pool.erc20Token.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }

        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);
        emit Deposit(msg.sender, _pid, _amount);
    }

    /// @notice Allows a user to withdraw any ERC20 tokens staked in a pool
    /// @dev Partial withdrawals permitted
    /// @param _pid Pool ID
    /// @param _amount Being withdrawn
    function withdraw(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: _amount not good");

        updatePool(_pid);

        uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
        if (pending > 0) {
            safeRewardTransfer(msg.sender, pending);
        }

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.erc20Token.safeTransfer(address(msg.sender), _amount);
        }

        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    /// @notice Emergency only. Should the rewards issuance mechanism fail, people can still withdraw their stake
    /// @param _pid Pool ID
    function emergencyWithdraw(uint256 _pid) external {
        require(_pid < poolInfo.length, "updatePool: invalid _pid");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        pool.erc20Token.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    ////////////
    // Private /
    ////////////

    /// @dev Safe reward transfer function, just in case if rounding error causes pool to not have enough rewards.
    /// @param _to Whom to send reward into
    /// @param _amount of reward to send
    function safeRewardTransfer(address _to, uint256 _amount) private {
        uint256 bal = rewardGuildBank.tokenBalance();
        if (_amount > bal) {
            rewardGuildBank.withdrawTo(_to, bal);
        } else {
            rewardGuildBank.withdrawTo(_to, _amount);
        }
    }

    /// @notice Return reward multiplier over the given _from to _to block.
    /// @param _from Block number
    /// @param _to Block number
    /// @return Number of blocks that have passed
    function getMultiplier(uint256 _from, uint256 _to) private view returns (uint256) {
        return _to.sub(_from);
    }
}

File 2 of 9 : Guild.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

contract Guild {
    IERC20 public token;

    address public stakingContract;

    constructor(IERC20 _token, address _stakingContract) public {
        token = _token;
        stakingContract = _stakingContract;
    }

    function withdrawTo(address _recipient, uint256 _amount) external {
        require(msg.sender == stakingContract, "Guild.withdrawTo: Only staking contract");
        token.transfer(_recipient, _amount);
    }

    function tokenBalance() external returns (uint256) {
        return token.balanceOf(address(this));
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

File 5 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

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

pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

Settings
{
  "metadata": {
    "useLiteralContent": false
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_maxRewardTokenAvailableForFarming","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"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":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":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":"_erc20Token","type":"address"},{"internalType":"uint256","name":"_maxStakingAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","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":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxRewardTokenAvailableForFarming","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"maxStakingAmountPerUser","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardGuildBank","outputs":[{"internalType":"contract Guild","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_maxStakingAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"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":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80637c57c31e116100ad578063988d7a6011610071578063988d7a60146102ce578063ce99ad4214610308578063d18df53c14610310578063e2bbb1581461033c578063f2fde38b1461035f5761012c565b80637c57c31e146102245780638862445a1461022c5780638ae39cac1461025d5780638da5cb5b1461026557806393f1a40b146102895761012c565b806351eb05a6116100f457806351eb05a6146101d25780635312ea8e146101ef578063630b5ba11461020c5780636f682a5314610214578063715018a61461021c5761012c565b8063083c6323146101315780631526fe271461014b57806317caf6f11461019d578063441a3e70146101a557806348cd4cb1146101ca575b600080fd5b610139610385565b60408051918252519081900360200190f35b6101686004803603602081101561016157600080fd5b503561038b565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b6101396103d3565b6101c8600480360360408110156101bb57600080fd5b50803590602001356103d9565b005b61013961054b565b6101c8600480360360208110156101e857600080fd5b5035610551565b6101c86004803603602081101561020557600080fd5b50356106fa565b6101c86107e4565b610139610807565b6101c861080d565b6101396108af565b6101c86004803603608081101561024257600080fd5b508035906020810135906040810135906060013515156108b5565b610139610a89565b61026d610a8f565b604080516001600160a01b039092168252519081900360200190f35b6102b56004803603604081101561029f57600080fd5b50803590602001356001600160a01b0316610a9e565b6040805192835260208301919091528051918290030190f35b6101c8600480360360808110156102e457600080fd5b508035906001600160a01b0360208201351690604081013590606001351515610ac2565b61026d610dd0565b6101396004803603604081101561032657600080fd5b50803590602001356001600160a01b0316610ddf565b6101c86004803603604081101561035257600080fd5b5080359060200135610fb5565b6101c86004803603602081101561037557600080fd5b50356001600160a01b031661111d565b60085481565b6004818154811061039857fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60065481565b6000600483815481106103e857fe5b6000918252602080832086845260058083526040808620338752909352919093208054929091029092019250831115610468576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a205f616d6f756e74206e6f7420676f6f64000000000000604482015290519081900360640190fd5b61047184610551565b60006104ae82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9061125e565b90611215565b905080156104c0576104c033826112f9565b83156104ea5781546104d29085611215565b825582546104ea906001600160a01b0316338661145a565b6003830154825461050891670de0b6b3a7640000916104a2916112a0565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60075481565b60045481106105a2576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b6000600482815481106105b157fe5b90600052602060002090600502019050806002015443116105d257506106f7565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561061c57600080fd5b505afa158015610630573d6000803e3d6000fd5b505050506040513d602081101561064657600080fd5b505190508061065c5750436002909101556106f7565b600060085443111561067057600854610672565b435b905060006106848460020154836114ac565b90508061069457505050506106f7565b60006106bf6006546104a287600101546106b9600254876112a090919063ffffffff16565b906112a0565b90506106e56106da856104a284670de0b6b3a76400006112a0565b6003870154906114b8565b60038601555050600290920191909155505b50565b600454811061074b576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b60006004828154811061075a57fe5b600091825260208083208584526005808352604080862033808852945285208054868255600182019690965593020180549094509192916107a7916001600160a01b03909116908361145a565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60045460005b81811015610803576107fb81610551565b6001016107ea565b5050565b60045490565b610815611512565b6000546001600160a01b03908116911614610865576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035481565b6108bd611512565b6000546001600160a01b0390811691161461090d576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610963576040805162461bcd60e51b815260206004820152601760248201527f7365743a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b60045484106109ad576040805162461bcd60e51b81526020600482015260116024820152701cd95d0e881a5b9d985b1a590817dc1a59607a1b604482015290519081900360640190fd5b600082116109ec5760405162461bcd60e51b815260040180806020018281038252603781526020018061194f6037913960400191505060405180910390fd5b80156109fa576109fa6107e4565b610a3783610a3160048781548110610a0e57fe5b90600052602060002090600502016001015460065461121590919063ffffffff16565b906114b8565b6006819055508260048581548110610a4b57fe5b9060005260206000209060050201600101819055508160048581548110610a6e57fe5b90600052602060002090600502016004018190555050505050565b60025481565b6000546001600160a01b031690565b60056020908152600092835260408084209091529082529020805460019091015482565b610aca611512565b6000546001600160a01b03908116911614610b1a576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610b70576040805162461bcd60e51b815260206004820152601760248201527f6164643a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b826001600160a01b038116610bb65760405162461bcd60e51b8152600401808060200182810382526029815260200180611a5b6029913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090205460ff1615610c24576040805162461bcd60e51b815260206004820152601860248201527f6164643a20616c72656164792077686974656c69737465640000000000000000604482015290519081900360640190fd5b60008311610c635760405162461bcd60e51b81526004018080602001828103825260378152602001806119fa6037913960400191505060405180910390fd5b8115610c7157610c716107e4565b60006007544311610c8457600754610c86565b435b600654909150610c9690876114b8565b6006556040805160a0810182526001600160a01b039687168152602080820198895281830193845260006060830181815260808401988952600480546001808201835591845294517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590960295860180546001600160a01b031916918d169190911790559a517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d84015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e83015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909101559190941684526009909252509020805460ff19169091179055565b6001546001600160a01b031681565b6004546000908310610e38576040805162461bcd60e51b815260206004820152601c60248201527f70656e64696e67526577617264733a20696e76616c6964205f70696400000000604482015290519081900360640190fd5b600060048481548110610e4757fe5b60009182526020808320878452600580835260408086206001600160a01b03808b16885290855281872060039390960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d6020811015610eea57600080fd5b5051600285015490915043118015610f0157508015155b15610f7d576000600854431115610f1a57600854610f1c565b435b90506000610f2e8660020154836114ac565b90506000610f556006546104a289600101546106b9600254876112a090919063ffffffff16565b9050610f77610f70856104a284670de0b6b3a76400006112a0565b86906114b8565b94505050505b610fa883600101546104a8670de0b6b3a76400006104a28688600001546112a090919063ffffffff16565b9450505050505b92915050565b600060048381548110610fc457fe5b60009182526020808320868452600580835260408086203387529093529190932091029091016004810154825491935090610fff90856114b8565b111561103c5760405162461bcd60e51b81526004018080602001828103825260338152602001806119a76033913960400191505060405180910390fd5b61104584610551565b80541561109157600061107d82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9050801561108f5761108f33826112f9565b505b82156110bd5781546110ae906001600160a01b0316333086611516565b80546110ba90846114b8565b81555b600382015481546110db91670de0b6b3a7640000916104a2916112a0565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611125611512565b6000546001600160a01b03908116911614611175576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6001600160a01b0381166111ba5760405162461bcd60e51b81526004018080602001828103825260268152602001806119036026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061125783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611576565b9392505050565b600061125783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061160d565b6000826112af57506000610faf565b828202828482816112bc57fe5b04146112575760405162461bcd60e51b81526004018080602001828103825260218152602001806119866021913960400191505060405180910390fd5b60015460408051639e1a4d1960e01b815290516000926001600160a01b031691639e1a4d1991600480830192602092919082900301818787803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b505050506040513d602081101561136957600080fd5b50519050808211156113e7576001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018590529151919092169163205c287891604480830192600092919082900301818387803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b50505050611455565b6001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018690529151919092169163205c287891604480830192600092919082900301818387803b15801561143c57600080fd5b505af1158015611450573d6000803e3d6000fd5b505050505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611455908490611672565b60006112578284611215565b600082820183811015611257576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611570908590611672565b50505050565b600081848411156116055760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ca5781810151838201526020016115b2565b50505050905090810190601f1680156115f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361165c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115ca5781810151838201526020016115b2565b50600083858161166857fe5b0495945050505050565b60606116c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117239092919063ffffffff16565b805190915015611455578080602001905160208110156116e657600080fd5b50516114555760405162461bcd60e51b815260040180806020018281038252602a815260200180611a31602a913960400191505060405180910390fd5b6060611732848460008561173a565b949350505050565b60608247101561177b5760405162461bcd60e51b81526004018080602001828103825260268152602001806119296026913960400191505060405180910390fd5b61178485611896565b6117d5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118145780518252601f1990920191602091820191016117f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611876576040519150601f19603f3d011682016040523d82523d6000602084013e61187b565b606091505b509150915061188b82828661189c565b979650505050505050565b3b151590565b606083156118ab575081611257565b8251156118bb5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156115ca5781810151838201526020016115b256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c7365743a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776465706f7369743a2063616e206e6f7420657863656564206d6178207374616b696e6720616d6f756e742070657220757365724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726164643a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646164643a205f6572633230546f6b656e206d757374206e6f74206265207a65726f2061646472657373a26469706673582212205fd006dcee343cf5494928f0df5a265570bec98e93b54ea5cbc8f7af83f06ab264736f6c634300060c0033

Deployed Bytecode Sourcemap

599:13050:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3081:23;;;:::i;:::-;;;;;;;;;;;;;;;;2566:26;;;;;;;;;;;;;;;;-1:-1:-1;2566:26:8;;:::i;:::-;;;;-1:-1:-1;;;;;2566:26:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2889:30;;;:::i;11431:751::-;;;;;;;;;;;;;;;;-1:-1:-1;11431:751:8;;;;;;;:::i;:::-;;2997:25;;;:::i;9198:967::-;;;;;;;;;;;;;;;;-1:-1:-1;9198:967:8;;:::i;12330:454::-;;;;;;;;;;;;;;;;-1:-1:-1;12330:454:8;;:::i;8887:175::-;;;:::i;4730:96::-;;;:::i;1706:145:1:-;;;:::i;2455:48:8:-;;;:::i;6983:647::-;;;;;;;;;;;;;;;;-1:-1:-1;6983:647:8;;;;;;;;;;;;;;;;;;;:::i;2302:29::-;;;:::i;1083:77:1:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1083:77:1;;;;;;;;;;;;;;2722:64:8;;;;;;;;;;;;;;;;-1:-1:-1;2722:64:8;;;;;;-1:-1:-1;;;;;2722:64:8;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5326:1101;;;;;;;;;;;;;;;;-1:-1:-1;5326:1101:8;;;-1:-1:-1;;;;;5326:1101:8;;;;;;;;;;;;;;;;;:::i;2186:28::-;;;:::i;7883:920::-;;;;;;;;;;;;;;;;-1:-1:-1;7883:920:8;;;;;;-1:-1:-1;;;;;7883:920:8;;:::i;10355:884::-;;;;;;;;;;;;;;;;-1:-1:-1;10355:884:8;;;;;;;:::i;2000:240:1:-;;;;;;;;;;;;;;;;-1:-1:-1;2000:240:1;-1:-1:-1;;;;;2000:240:1;;:::i;3081:23:8:-;;;;:::o;2566:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2566:26:8;;;;-1:-1:-1;2566:26:8;;;;;:::o;2889:30::-;;;;:::o;11431:751::-;11499:21;11523:8;11532:4;11523:14;;;;;;;;;;;;;;;;11571;;;11523;11571;;;;;;;11586:10;11571:26;;;;;;;;;11616:11;;11523:14;;;;;;;;-1:-1:-1;;;11616:22:8;11608:61;;;;;-1:-1:-1;;;11608:61:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;11680:16;11691:4;11680:10;:16::i;:::-;11707:15;11725:70;11779:4;:15;;;11725:49;11769:4;11725:39;11741:4;:22;;;11725:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;11707:88;-1:-1:-1;11809:11:8;;11805:81;;11836:39;11855:10;11867:7;11836:18;:39::i;:::-;11900:11;;11896:152;;11941:11;;:24;;11957:7;11941:15;:24::i;:::-;11927:38;;11979:15;;:58;;-1:-1:-1;;;;;11979:15:8;12016:10;12029:7;11979:28;:58::i;:::-;12092:22;;;;12076:11;;:49;;12120:4;;12076:39;;:15;:39::i;:49::-;12058:15;;;:67;12140:35;;;;;;;;12161:4;;12149:10;;12140:35;;;;;;;;;11431:751;;;;;:::o;2997:25::-;;;;:::o;9198:967::-;9264:8;:15;9257:22;;9249:59;;;;;-1:-1:-1;;;9249:59:8;;;;;;;;;;;;-1:-1:-1;;;9249:59:8;;;;;;;;;;;;;;;9319:21;9343:8;9352:4;9343:14;;;;;;;;;;;;;;;;;;9319:38;;9387:4;:20;;;9371:12;:36;9367:73;;9423:7;;;9367:73;9472:15;;:40;;;-1:-1:-1;;;9472:40:8;;9506:4;9472:40;;;;;;9450:19;;-1:-1:-1;;;;;9472:15:8;;:25;;:40;;;;;;;;;;;;;;:15;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9472:40:8;;-1:-1:-1;9526:16:8;9522:102;;-1:-1:-1;9581:12:8;9558:20;;;;:35;9607:7;;9522:102;9634:19;9672:8;;9656:12;:24;;:50;;9698:8;;9656:50;;;9683:12;9656:50;9634:72;;9716:18;9737:48;9751:4;:20;;;9773:11;9737:13;:48::i;:::-;9716:69;-1:-1:-1;9870:15:8;9866:52;;9901:7;;;;;;9866:52;9928:14;9945:72;10001:15;;9945:51;9980:4;:15;;;9945:30;9960:14;;9945:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;9928:89;-1:-1:-1;10053:61:8;10080:33;10101:11;10080:16;9928:89;10091:4;10080:10;:16::i;:33::-;10053:22;;;;;:26;:61::i;:::-;10028:22;;;:86;-1:-1:-1;;10124:20:8;;;;:34;;;;-1:-1:-1;9198:967:8;;:::o;12330:454::-;12405:8;:15;12398:22;;12390:59;;;;;-1:-1:-1;;;12390:59:8;;;;;;;;;;;;-1:-1:-1;;;12390:59:8;;;;;;;;;;;;;;;12460:21;12484:8;12493:4;12484:14;;;;;;;;;;;;;;;;12532;;;12484;12532;;;;;;;12547:10;12532:26;;;;;;;12586:11;;12607:15;;;-1:-1:-1;12632:15:8;;:19;;;;12484:14;;;12662:15;;12484:14;;-1:-1:-1;12532:26:8;;12586:11;12662:57;;-1:-1:-1;;;;;12662:15:8;;;;12586:11;12662:28;:57::i;:::-;12734:43;;;;;;;;12764:4;;12752:10;;12734:43;;;;;;;;;12330:454;;;;:::o;8887:175::-;8948:8;:15;8931:14;8973:83;9001:6;8995:3;:12;8973:83;;;9030:15;9041:3;9030:10;:15::i;:::-;9009:5;;8973:83;;;;8887:175;:::o;4730:96::-;4804:8;:15;4730:96;:::o;1706:145:1:-;1297:12;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;1812:1:::1;1796:6:::0;;1775:40:::1;::::0;-1:-1:-1;;;;;1796:6:1;;::::1;::::0;1775:40:::1;::::0;1812:1;;1775:40:::1;1842:1;1825:19:::0;;-1:-1:-1;;;;;;1825:19:1::1;::::0;;1706:145::o;2455:48:8:-;;;;:::o;6983:647::-;1297:12:1;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;7133:8:8::1;;7118:12;:23;7110:59;;;::::0;;-1:-1:-1;;;7110:59:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;7194:8;:15:::0;7187:22;::::1;7179:52;;;::::0;;-1:-1:-1;;;7179:52:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;7179:52:8;;;;;;;;;;;;;::::1;;7276:1;7249:24;:28;7241:96;;;;-1:-1:-1::0;;;7241:96:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7352:11;7348:59;;;7379:17;:15;:17::i;:::-;7435:63;7486:11;7435:46;7455:8;7464:4;7455:14;;;;;;;;;;;;;;;;;;:25;;;7435:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;7417:15;:81;;;;7537:11;7509:8;7518:4;7509:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;7599:24;7558:8;7567:4;7558:14;;;;;;;;;;;;;;;;;;:38;;:65;;;;6983:647:::0;;;;:::o;2302:29::-;;;;:::o;1083:77:1:-;1121:7;1147:6;-1:-1:-1;;;;;1147:6:1;1083:77;:::o;2722:64:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5326:1101::-;1297:12:1;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;5482:8:8::1;;5467:12;:23;5459:59;;;::::0;;-1:-1:-1;;;5459:59:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;5564:11:::0;-1:-1:-1;;;;;5594:31:8;::::1;5586:85;;;;-1:-1:-1::0;;;5586:85:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;5689:42:8;::::1;;::::0;;;:23:::1;:42;::::0;;;;;::::1;;:51;5681:88;;;::::0;;-1:-1:-1;;;5681:88:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;5814:1;5787:24;:28;5779:96;;;;-1:-1:-1::0;;;5779:96:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5890:11;5886:59;;;5917:17;:15;:17::i;:::-;5955:23;5996:10;;5981:12;:25;:53;;6024:10;;5981:53;;;6009:12;5981:53;6062:15;::::0;5955:79;;-1:-1:-1;6062:32:8::1;::::0;6082:11;6062:19:::1;:32::i;:::-;6044:15;:50:::0;6118:241:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;6118:241:8;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;6118:241:8;;;;;;;;;;;;6104:8:::1;:256:::0;;::::1;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;6104:256:8::1;::::0;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;6371:42;;;::::1;::::0;;:23:::1;:42:::0;;;-1:-1:-1;6371:42:8;;:49;;-1:-1:-1;;6371:49:8::1;::::0;;::::1;::::0;;5326:1101::o;2186:28::-;;;-1:-1:-1;;;;;2186:28:8;;:::o;7883:920::-;7993:8;:15;7959:7;;7986:22;;7978:63;;;;;-1:-1:-1;;;7978:63:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;8052:21;8076:8;8085:4;8076:14;;;;;;;;;;;;;;;;8124;;;8076;8124;;;;;;;-1:-1:-1;;;;;8124:21:8;;;;;;;;;;;8184:22;8076:14;;;;;;;8184:22;;;;8235:15;;:40;;-1:-1:-1;;;8235:40:8;;8269:4;8235:40;;;;;;8076:14;;-1:-1:-1;8124:21:8;;8184:22;;8076:14;;8235:15;;;:25;;:40;;;;;;;;;;:15;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8235:40:8;8305:20;;;;8235:40;;-1:-1:-1;8290:12:8;:35;:52;;;;-1:-1:-1;8329:13:8;;;8290:52;8286:428;;;8358:19;8396:8;;8380:12;:24;;:50;;8422:8;;8380:50;;;8407:12;8380:50;8358:72;;8444:18;8465:48;8479:4;:20;;;8501:11;8465:13;:48::i;:::-;8444:69;;8527:14;8544:72;8600:15;;8544:51;8579:4;:15;;;8544:30;8559:14;;8544:10;:14;;:30;;;;:::i;:72::-;8527:89;-1:-1:-1;8650:53:8;8672:30;8693:8;8672:16;8527:89;8683:4;8672:10;:16::i;:30::-;8650:17;;:21;:53::i;:::-;8630:73;;8286:428;;;;8731:65;8780:4;:15;;;8731:44;8770:4;8731:34;8747:17;8731:4;:11;;;:15;;:34;;;;:::i;:65::-;8724:72;;;;;;7883:920;;;;;:::o;10355:884::-;10422:21;10446:8;10455:4;10446:14;;;;;;;;;;;;;;;;10494;;;10446;10494;;;;;;;10509:10;10494:26;;;;;;;;;10446:14;;;;;10567:28;;;;10539:11;;10446:14;;-1:-1:-1;10567:28:8;10539:24;;10555:7;10539:15;:24::i;:::-;:56;;10531:120;;;;-1:-1:-1;;;10531:120:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10662:16;10673:4;10662:10;:16::i;:::-;10693:11;;:15;10689:236;;10724:15;10742:70;10796:4;:15;;;10742:49;10786:4;10742:39;10758:4;:22;;;10742:4;:11;;;:15;;:39;;;;:::i;:70::-;10724:88;-1:-1:-1;10830:11:8;;10826:89;;10861:39;10880:10;10892:7;10861:18;:39::i;:::-;10689:236;;10939:11;;10935:171;;10966:15;;:77;;-1:-1:-1;;;;;10966:15:8;11007:10;11028:4;11035:7;10966:32;:77::i;:::-;11071:11;;:24;;11087:7;11071:15;:24::i;:::-;11057:38;;10935:171;11150:22;;;;11134:11;;:49;;11178:4;;11134:39;;:15;:39::i;:49::-;11116:15;;;:67;11198:34;;;;;;;;11218:4;;11206:10;;11198:34;;;;;;;;;10355:884;;;;:::o;2000:240:1:-;1297:12;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;-1:-1:-1;;;;;2088:22:1;::::1;2080:73;;;;-1:-1:-1::0;;;2080:73:1::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2189:6;::::0;;2168:38:::1;::::0;-1:-1:-1;;;;;2168:38:1;;::::1;::::0;2189:6;::::1;::::0;2168:38:::1;::::0;::::1;2216:6;:17:::0;;-1:-1:-1;;;;;;2216:17:1::1;-1:-1:-1::0;;;;;2216:17:1;;;::::1;::::0;;;::::1;::::0;;2000:240::o;1329:134:2:-;1387:7;1413:43;1417:1;1420;1413:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1406:50;1329:134;-1:-1:-1;;;1329:134:2:o;3109:130::-;3167:7;3193:39;3197:1;3200;3193:39;;;;;;;;;;;;;;;;;:3;:39::i;2188:459::-;2246:7;2487:6;2483:45;;-1:-1:-1;2516:1:2;2509:8;;2483:45;2550:5;;;2554:1;2550;:5;:1;2573:5;;;;;:10;2565:56;;;;-1:-1:-1;;;2565:56:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13042:287:8;13132:15;;:30;;;-1:-1:-1;;;13132:30:8;;;;13118:11;;-1:-1:-1;;;;;13132:15:8;;:28;;:30;;;;;;;;;;;;;;13118:11;13132:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13132:30:8;;-1:-1:-1;13176:13:8;;;13172:151;;;13205:15;;:36;;;-1:-1:-1;;;13205:36:8;;-1:-1:-1;;;;;13205:36:8;;;;;;;;;;;;;;;:15;;;;;:26;;:36;;;;;:15;;:36;;;;;;;:15;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13172:151;;;13272:15;;:40;;;-1:-1:-1;;;13272:40:8;;-1:-1:-1;;;;;13272:40:8;;;;;;;;;;;;;;;:15;;;;;:26;;:40;;;;;:15;;:40;;;;;;;:15;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13172:151;13042:287;;;:::o;704:175:4:-;813:58;;;-1:-1:-1;;;;;813:58:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;813:58:4;-1:-1:-1;;;813:58:4;;;786:86;;806:5;;786:19;:86::i;13527:120:8:-;13600:7;13626:14;:3;13634:5;13626:7;:14::i;882:176:2:-;940:7;971:5;;;994:6;;;;986:46;;;;;-1:-1:-1;;;986:46:2;;;;;;;;;;;;;;;;;;;;;;;;;;;598:104:0;685:10;598:104;:::o;885:203:4:-;1012:68;;;-1:-1:-1;;;;;1012:68:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1012:68:4;-1:-1:-1;;;1012:68:4;;;985:96;;1005:5;;985:19;:96::i;:::-;885:203;;;;:::o;1754:187:2:-;1840:7;1875:12;1867:6;;;;1859:29;;;;-1:-1:-1;;;1859:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1910:5:2;;;1754:187::o;3721:272::-;3807:7;3841:12;3834:5;3826:28;;;;-1:-1:-1;;;3826:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3864:9;3880:1;3876;:5;;;;;;;3721:272;-1:-1:-1;;;;;3721:272:2:o;2967:751:4:-;3386:23;3412:69;3440:4;3412:69;;;;;;;;;;;;;;;;;3420:5;-1:-1:-1;;;;;3412:27:4;;;:69;;;;;:::i;:::-;3495:17;;3386:95;;-1:-1:-1;3495:21:4;3491:221;;3635:10;3624:30;;;;;;;;;;;;;;;-1:-1:-1;3624:30:4;3616:85;;;;-1:-1:-1;;;3616:85:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3581:193:5;3684:12;3715:52;3737:6;3745:4;3751:1;3754:12;3715:21;:52::i;:::-;3708:59;3581:193;-1:-1:-1;;;;3581:193:5:o;4608:523::-;4735:12;4792:5;4767:21;:30;;4759:81;;;;-1:-1:-1;;;4759:81:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:18;4869:6;4858:10;:18::i;:::-;4850:60;;;;;-1:-1:-1;;;4850:60:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:12;4995:23;5022:6;-1:-1:-1;;;;;5022:11:5;5042:5;5050:4;5022:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5022:33:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4980:75;;;;5072:52;5090:7;5099:10;5111:12;5072:17;:52::i;:::-;5065:59;4608:523;-1:-1:-1;;;;;;;4608:523:5:o;726:413::-;1086:20;1124:8;;;726:413::o;6111:725::-;6226:12;6254:7;6250:580;;;-1:-1:-1;6284:10:5;6277:17;;6250:580;6395:17;;:21;6391:429;;6653:10;6647:17;6713:15;6700:10;6696:2;6692:19;6685:44;6602:145;6785:20;;-1:-1:-1;;;6785:20:5;;;;;;;;;;;;;;;;;6792:12;;6785:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://e5e76c6b6c1eae42695da706efda884d84b0d8d8ca88c955c93ae7fee6311380

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  ]
[ 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.