FTM Price: $0.411668 (+6.75%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw813878522024-05-22 6:39:48109 days ago1716359988IN
0xDbfeE091...a0cC94BDE
0 FTM0.0026891130
Deposit813878202024-05-22 6:38:52109 days ago1716359932IN
0xDbfeE091...a0cC94BDE
0 FTM0.0010884616.37088201
Deposit811944972024-05-18 23:42:26112 days ago1716075746IN
0xDbfeE091...a0cC94BDE
0 FTM0.00438075110
Withdraw802814742024-05-01 19:37:15129 days ago1714592235IN
0xDbfeE091...a0cC94BDE
0 FTM0.002526828.18929853
Deposit802812702024-05-01 19:33:37129 days ago1714592017IN
0xDbfeE091...a0cC94BDE
0 FTM0.0019015328.59965345
Withdraw777097662024-03-19 14:28:07172 days ago1710858487IN
0xDbfeE091...a0cC94BDE
0 FTM0.01603737163.56494885
Deposit766113532024-03-01 17:55:45190 days ago1709315745IN
0xDbfeE091...a0cC94BDE
0 FTM0.0020001650.22377424
Withdraw759629052024-02-19 18:30:56201 days ago1708367456IN
0xDbfeE091...a0cC94BDE
0 FTM0.0021363729.45706069
Deposit759628742024-02-19 18:30:18201 days ago1708367418IN
0xDbfeE091...a0cC94BDE
0 FTM0.0016286229.45706069
Deposit759628202024-02-19 18:29:21201 days ago1708367361IN
0xDbfeE091...a0cC94BDE
0 FTM0.0019585429.45706069
Deposit727230812023-12-18 9:44:50265 days ago1702892690IN
0xDbfeE091...a0cC94BDE
0 FTM0.001158529.08978347
Deposit726780952023-12-17 12:44:38265 days ago1702817078IN
0xDbfeE091...a0cC94BDE
0 FTM0.0012526831.45480776
Withdraw715808942023-11-27 0:25:18286 days ago1701044718IN
0xDbfeE091...a0cC94BDE
0 FTM0.03163555352.92960604
Deposit715808502023-11-27 0:24:47286 days ago1701044687IN
0xDbfeE091...a0cC94BDE
0 FTM0.02950344352.9626512
Deposit705296252023-11-12 16:39:53300 days ago1699807193IN
0xDbfeE091...a0cC94BDE
0 FTM0.0025285341.57949005
Deposit705296182023-11-12 16:39:39300 days ago1699807179IN
0xDbfeE091...a0cC94BDE
0 FTM0.001655941.57949005
Withdraw692677582023-10-13 2:22:18331 days ago1697163738IN
0xDbfeE091...a0cC94BDE
0 FTM0.0036384848.46469939
Deposit692677482023-10-13 2:21:48331 days ago1697163708IN
0xDbfeE091...a0cC94BDE
0 FTM0.0039202846.90010351
Deposit677794912023-09-03 11:48:28370 days ago1693741708IN
0xDbfeE091...a0cC94BDE
0 FTM0.0016270140.85421515
Withdraw666444312023-08-05 9:13:23400 days ago1691226803IN
0xDbfeE091...a0cC94BDE
0 FTM0.0095609297.5236778
Withdraw665569172023-08-02 19:55:21402 days ago1691006121IN
0xDbfeE091...a0cC94BDE
0 FTM0.01690259152.87747418
Withdraw665037552023-08-01 5:02:48404 days ago1690866168IN
0xDbfeE091...a0cC94BDE
0 FTM0.0136096123.10700987
Deposit664053432023-07-29 3:41:47407 days ago1690602107IN
0xDbfeE091...a0cC94BDE
0 FTM0.0053045687.38848693
Withdraw663558762023-07-27 14:53:24408 days ago1690469604IN
0xDbfeE091...a0cC94BDE
0 FTM0.09055964736
Withdraw661631992023-07-21 23:51:35414 days ago1689983495IN
0xDbfeE091...a0cC94BDE
0 FTM0.0060518659.23737831
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
410977572022-06-22 18:42:26808 days ago1655923346  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Farmv3

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 8 : StakingRewardsV3.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;

// this should work by rewards per second

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 "./Ownable.sol";

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 () internal {
        _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;
    }
}

// Farm distributes the ERC20 rewards based on staked LP to each user.
// v2 includes an update-able deposit fee. with a max value bc we care <3
// v3 adds block.timestamp instead of block.number so we can ez track rewards per second.
// Cloned from https://github.com/SashimiProject/sashimiswap/blob/master/contracts/MasterChef.sol
// Modified by Mai Finance to work for non-mintable ERC20.
contract Farmv3 is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of ERC20s
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accERC20PerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accERC20PerShare` (and `lastRewardTimestamp`) 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.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;             // Address of LP token contract.
        uint256 allocPoint;         // How many allocation points assigned to this pool. ERC20s to distribute per second.
        uint256 lastRewardTimestamp;    // Last block number that ERC20s distribution occurs.
        uint256 accERC20PerShare;   // Accumulated ERC20s per share, times 1e12.
        uint16 depositFeeBP;        // Deposit fee in basis points
    }

    // Address of the ERC20 Token contract.
    IERC20 public erc20;
    // The total amount of ERC20 that's paid out as reward.
    uint256 public paidOut = 0;
    // ERC20 tokens rewarded per second.
    uint256 public rewardPerSecond;

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

    // The block number when farming starts.
    uint256 public startTimestamp;
    // The block number when farming ends.
    uint256 public endTimestamp;
    
    // Deposit Fee address
    address public feeAddress;

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

    constructor(IERC20 _erc20, uint256 _rewardPerSecond, uint256 _startTimestamp, address _feeAddress) public {
        erc20 = _erc20;
        rewardPerSecond = _rewardPerSecond;
        startTimestamp = _startTimestamp;
        endTimestamp = _startTimestamp;
        feeAddress = _feeAddress;
    }
    
    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
    }

    // Number of LP pools
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Fund the farm, increase the end block
    function fund(uint256 _amount) public onlyOwner {
        require(block.timestamp < endTimestamp, "fund: too late, the farm is closed");

        erc20.safeTransferFrom(address(msg.sender), address(this), _amount);
        endTimestamp += _amount.div(rewardPerSecond);
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate, uint16 _depositFeeBP) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardTimestamp = block.timestamp > startTimestamp ? block.timestamp : startTimestamp;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardTimestamp: lastRewardTimestamp,
            accERC20PerShare: 0,
            depositFeeBP : _depositFeeBP
        }));
    }

    // Update the given pool's ERC20 allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // View function to see deposited LP for a user.
    function deposited(uint256 _pid, address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_pid][_user];
        return user.amount;
    }

    // View function to see pending ERC20s for a user.
    function pending(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accERC20PerShare = pool.accERC20PerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));

        if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) {
            uint256 lastTime = block.timestamp < endTimestamp ? block.timestamp : endTimestamp;
            uint256 nrOfSeconds = lastTime.sub(pool.lastRewardTimestamp);
            uint256 erc20Reward = nrOfSeconds.mul(rewardPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
            accERC20PerShare = accERC20PerShare.add(erc20Reward.mul(1e12).div(lpSupply));
        }

        return user.amount.mul(accERC20PerShare).div(1e12).sub(user.rewardDebt);
    }

    // View function for total reward the farm has yet to pay out.
    function totalPending() external view returns (uint256) {
        if (block.timestamp <= startTimestamp) {
            return 0;
        }

        uint256 lastTime = block.timestamp < endTimestamp ? block.timestamp : endTimestamp;
        return rewardPerSecond.mul(lastTime - startTimestamp).sub(paidOut);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    function updatePoolDepositFee(uint256 _pid, uint16 _depositFeeBP) public onlyOwner() {
        require(_depositFeeBP<=100, "updatePoolDepositFee: fee must be under 1%");
        PoolInfo storage pool = poolInfo[_pid];
        pool.depositFeeBP = _depositFeeBP;
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        uint256 lastTime = block.timestamp < endTimestamp ? block.timestamp : endTimestamp;

        if (lastTime <= pool.lastRewardTimestamp) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardTimestamp = lastTime;
            return;
        }

        uint256 nrOfSeconds = lastTime.sub(pool.lastRewardTimestamp);
        uint256 erc20Reward = nrOfSeconds.mul(rewardPerSecond).mul(pool.allocPoint).div(totalAllocPoint);

        pool.accERC20PerShare = pool.accERC20PerShare.add(erc20Reward.mul(1e12).div(lpSupply));
        pool.lastRewardTimestamp = block.timestamp;
    }

    // Deposit LP tokens to Farm for ERC20 allocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e12).sub(user.rewardDebt);
            erc20Transfer(msg.sender, pendingAmount);
        }
        
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accERC20PerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from Farm.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: can't withdraw more than deposit");
        updatePool(_pid);
        uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e12).sub(user.rewardDebt);
        erc20Transfer(msg.sender, pendingAmount);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accERC20PerShare).div(1e12);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    // Transfer ERC20 and update the required ERC20 to payout all rewards
    function erc20Transfer(address _to, uint256 _amount) internal {
        erc20.transfer(_to, _amount);
        paidOut += _amount;
    }
}

File 2 of 8 : IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 3 of 8 : SafeERC20.sol
pragma solidity ^0.5.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 ERC20;` 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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 8 : EnumerableSet.sol
pragma solidity ^0.5.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.
 *
 * As of v2.5.0, only `address` sets are supported.
 *
 * Include with `using EnumerableSet for EnumerableSet.AddressSet;`.
 *
 * _Available since v2.5.0._
 *
 * @author Alberto Cuesta Cañada
 */
library EnumerableSet {

    struct AddressSet {
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (address => uint256) index;
        address[] values;
    }

    /**
     * @dev Add a value to a set. O(1).
     * Returns false if the value was already in the set.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        if (!contains(set, value)){
            set.index[value] = set.values.push(value);
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     * Returns false if the value was not present in the set.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        if (contains(set, value)){
            uint256 toDeleteIndex = set.index[value] - 1;
            uint256 lastIndex = set.values.length - 1;

            // If the element we're deleting is the last one, we can just remove it without doing a swap
            if (lastIndex != toDeleteIndex) {
                address lastValue = set.values[lastIndex];

                // Move the last value to the index where the deleted value is
                set.values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set.index[lastValue] = toDeleteIndex + 1; // All indexes are 1-based
            }

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

            // Delete the old entry for the moved value
            set.values.pop();

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return set.index[value] != 0;
    }

    /**
     * @dev Returns an array with all values in the set. O(N).
     * 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.

     * WARNING: This function may run out of gas on large sets: use {length} and
     * {get} instead in these cases.
     */
    function enumerate(AddressSet storage set)
        internal
        view
        returns (address[] memory)
    {
        address[] memory output = new address[](set.values.length);
        for (uint256 i; i < set.values.length; i++){
            output[i] = set.values[i];
        }
        return output;
    }

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

   /** @dev Returns the element 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 get(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return set.values[index];
    }
}

File 5 of 8 : SafeMath.sol
pragma solidity ^0.5.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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity ^0.5.17;

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.
 */
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 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 onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 7 of 8 : Address.sol
pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

pragma solidity ^0.5.17;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_erc20","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"address","name":"_feeAddress","type":"address"}],"payable":false,"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"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"}],"name":"add","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"deposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"endTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"erc20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"fund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"massUpdatePools","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paidOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"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":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"accERC20PerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"}],"name":"updatePoolDepositFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"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"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000600355600060075534801561001a57600080fd5b50604051611d96380380611d968339818101604052608081101561003d57600080fd5b508051602082015160408301516060909301519192909160006100676001600160e01b036100f716565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b039586166001600160a01b0319918216179091556004939093556008829055600991909155600a80549190931691161790556100fb565b3390565b611c8c8061010a6000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c8063785e9e86116100ee578063a85adeab11610097578063e4c75c2711610071578063e4c75c271461042e578063e6fd48bc1461045a578063f2fde38b14610462578063f579ecb914610488576101ae565b8063a85adeab146103e6578063ca1d209d146103ee578063e2bbb1581461040b576101ae565b80638f10369a116100c85780638f10369a1461036d57806393f1a40b14610375578063a2383106146103ba576101ae565b8063785e9e86146103375780638705fcd41461033f5780638da5cb5b14610365576101ae565b806347a55b7c1161015b5780635c76ca2d116101355780635c76ca2d146102f4578063630b5ba1146102fc57806364482f7914610304578063715018a61461032f576101ae565b806347a55b7c1461027c57806351eb05a6146102ba5780635312ea8e146102d7576101ae565b80633f90916a1161018c5780633f90916a1461022b5780634127535814610233578063441a3e7014610257576101ae565b8063081e3eda146101b35780631526fe27146101cd57806317caf6f114610223575b600080fd5b6101bb6104af565b60408051918252519081900360200190f35b6101ea600480360360208110156101e357600080fd5b50356104b6565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b6101bb610502565b6101bb610508565b61023b610563565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026d57600080fd5b5080359060200135610572565b005b61027a6004803603608081101561029257600080fd5b5080359060208101356001600160a01b03169060408101351515906060013561ffff16610730565b61027a600480360360208110156102d057600080fd5b503561095d565b61027a600480360360208110156102ed57600080fd5b5035610ad9565b6101bb610bdc565b61027a610be2565b61027a6004803603606081101561031a57600080fd5b50803590602081013590604001351515610c05565b61027a610cee565b61023b610daf565b61027a6004803603602081101561035557600080fd5b50356001600160a01b0316610dbe565b61023b610e4c565b6101bb610e5b565b6103a16004803603604081101561038b57600080fd5b50803590602001356001600160a01b0316610e61565b6040805192835260208301919091528051918290030190f35b6101bb600480360360408110156103d057600080fd5b50803590602001356001600160a01b0316610e85565b6101bb610eaf565b61027a6004803603602081101561040457600080fd5b5035610eb5565b61027a6004803603604081101561042157600080fd5b5080359060200135610f9d565b6101bb6004803603604081101561044457600080fd5b50803590602001356001600160a01b0316611197565b6101bb61133b565b61027a6004803603602081101561047857600080fd5b50356001600160a01b0316611341565b61027a6004803603604081101561049e57600080fd5b508035906020013561ffff16611458565b6005545b90565b600581815481106104c357fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60075481565b6000600854421161051b575060006104b3565b6000600954421061052e57600954610530565b425b905061055d600354610551600854840360045461154190919063ffffffff16565b9063ffffffff6115a116565b91505090565b600a546001600160a01b031681565b600260015414156105ca576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600583815481106105e157fe5b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156106495760405162461bcd60e51b815260040180806020018281038252602a815260200180611bda602a913960400191505060405180910390fd5b6106528461095d565b600061068c826001015461055164e8d4a510006106808760030154876000015461154190919063ffffffff16565b9063ffffffff6115e316565b90506106983382611625565b81546106aa908563ffffffff6115a116565b80835560038401546106cd9164e8d4a5100091610680919063ffffffff61154116565b600183015582546106ee906001600160a01b0316338663ffffffff6116cc16565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505060018055505050565b610738611751565b6000546001600160a01b0390811691161461079a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108161ffff1611156107df5760405162461bcd60e51b8152600401808060200182810382526025815260200180611b4c6025913960400191505060405180910390fd5b81156107ed576107ed610be2565b6000600854421161080057600854610802565b425b600754909150610818908663ffffffff61175516565b6007556040805160a0810182526001600160a01b0395861681526020810196875290810191825260006060820181815261ffff94851660808401908152600580546001810182559381905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db093909402928301805473ffffffffffffffffffffffffffffffffffffffff1916949098169390931790965595517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db385015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909301805461ffff19169390921692909217905550565b60006005828154811061096c57fe5b906000526020600020906005020190506000600954421061098f57600954610991565b425b9050816002015481116109a5575050610ad6565b8154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a0857600080fd5b505afa158015610a1c573d6000803e3d6000fd5b505050506040513d6020811015610a3257600080fd5b5051905080610a475750600290910155610ad6565b6000610a608460020154846115a190919063ffffffff16565b90506000610a936007546106808760010154610a876004548761154190919063ffffffff16565b9063ffffffff61154116565b9050610ac2610ab1846106808464e8d4a5100063ffffffff61154116565b60038701549063ffffffff61175516565b600386015550504260029093019290925550505b50565b60026001541415610b31576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058281548110610b4857fe5b60009182526020808320858452600682526040808520338087529352909320805460059093029093018054909450610b93926001600160a01b0391909116919063ffffffff6116cc16565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560019182015580555050565b60035481565b60055460005b81811015610c0157610bf98161095d565b600101610be8565b5050565b610c0d611751565b6000546001600160a01b03908116911614610c6f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8015610c7d57610c7d610be2565b610cc082610cb460058681548110610c9157fe5b9060005260206000209060050201600101546007546115a190919063ffffffff16565b9063ffffffff61175516565b6007819055508160058481548110610cd457fe5b906000526020600020906005020160010181905550505050565b610cf6611751565b6000546001600160a01b03908116911614610d58576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6002546001600160a01b031681565b600a546001600160a01b03163314610e1d576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b60045481565b60066020908152600092835260408084209091529082529020805460019091015482565b60008281526006602090815260408083206001600160a01b03851684529091529020545b92915050565b60095481565b610ebd611751565b6000546001600160a01b03908116911614610f1f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6009544210610f5f5760405162461bcd60e51b8152600401808060200182810382526022815260200180611bb86022913960400191505060405180910390fd5b600254610f7d906001600160a01b031633308463ffffffff6117af16565b600454610f9190829063ffffffff6115e316565b60098054909101905550565b60026001541415610ff5576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555060006005838154811061100c57fe5b6000918252602080832086845260068252604080852033865290925292206005909102909101915061103d8461095d565b805415611080576000611072826001015461055164e8d4a510006106808760030154876000015461154190919063ffffffff16565b905061107e3382611625565b505b82156111305781546110a3906001600160a01b031633308663ffffffff6117af16565b600482015461ffff161561111b5760048201546000906110d6906127109061068090879061ffff1663ffffffff61154116565b600a5484549192506110fb916001600160a01b0390811691168363ffffffff6116cc16565b8154611113908290610551908763ffffffff61175516565b825550611130565b805461112d908463ffffffff61175516565b81555b600382015481546111519164e8d4a51000916106809163ffffffff61154116565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b600080600584815481106111a757fe5b600091825260208083208784526006825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b15801561123a57600080fd5b505afa15801561124e573d6000803e3d6000fd5b505050506040513d602081101561126457600080fd5b505160028501549091504211801561127b57508015155b15611308576000600954421061129357600954611295565b425b905060006112b08660020154836115a190919063ffffffff16565b905060006112d76007546106808960010154610a876004548761154190919063ffffffff16565b90506113026112f5856106808464e8d4a5100063ffffffff61154116565b869063ffffffff61175516565b94505050505b611330836001015461055164e8d4a5100061068086886000015461154190919063ffffffff16565b979650505050505050565b60085481565b611349611751565b6000546001600160a01b039081169116146113ab576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166113f05760405162461bcd60e51b8152600401808060200182810382526026815260200180611b716026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611460611751565b6000546001600160a01b039081169116146114c2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60648161ffff1611156115065760405162461bcd60e51b815260040180806020018281038252602a815260200180611c04602a913960400191505060405180910390fd5b60006005838154811061151557fe5b60009182526020909120600590910201600401805461ffff191661ffff93909316929092179091555050565b60008261155057506000610ea9565b8282028284828161155d57fe5b041461159a5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b976021913960400191505060405180910390fd5b9392505050565b600061159a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061183d565b600061159a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506118d4565b600254604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561169457600080fd5b505af11580156116a8573d6000803e3d6000fd5b505050506040513d60208110156116be57600080fd5b505060038054909101905550565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261174c908490611939565b505050565b3390565b60008282018381101561159a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611837908590611939565b50505050565b600081848411156118cc5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611891578181015183820152602001611879565b50505050905090810190601f1680156118be5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836119235760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611891578181015183820152602001611879565b50600083858161192f57fe5b0495945050505050565b61194b826001600160a01b0316611b0f565b61199c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106119f857805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016119bb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a5a576040519150601f19603f3d011682016040523d82523d6000602084013e611a5f565b606091505b509150915081611ab6576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561183757808060200190516020811015611ad257600080fd5b50516118375760405162461bcd60e51b815260040180806020018281038252602a815260200180611c2e602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611b4357508115155b94935050505056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7766756e643a20746f6f206c6174652c20746865206661726d20697320636c6f73656477697468647261773a2063616e2774207769746864726177206d6f7265207468616e206465706f736974757064617465506f6f6c4465706f7369744665653a20666565206d75737420626520756e6465722031255361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820606c160dc351e1326181ec20d8337d992359e11f50fecddd086d4f764a87268564736f6c6343000511003200000000000000000000000068aa691a8819b07988b18923f712f3f4c8d363460000000000000000000000000000000000000000000000000125b5b51dec54a70000000000000000000000000000000000000000000000000000000062b3dc6e000000000000000000000000679016b3f8e98673f85c6f72567f22b58aa15a54

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c8063785e9e86116100ee578063a85adeab11610097578063e4c75c2711610071578063e4c75c271461042e578063e6fd48bc1461045a578063f2fde38b14610462578063f579ecb914610488576101ae565b8063a85adeab146103e6578063ca1d209d146103ee578063e2bbb1581461040b576101ae565b80638f10369a116100c85780638f10369a1461036d57806393f1a40b14610375578063a2383106146103ba576101ae565b8063785e9e86146103375780638705fcd41461033f5780638da5cb5b14610365576101ae565b806347a55b7c1161015b5780635c76ca2d116101355780635c76ca2d146102f4578063630b5ba1146102fc57806364482f7914610304578063715018a61461032f576101ae565b806347a55b7c1461027c57806351eb05a6146102ba5780635312ea8e146102d7576101ae565b80633f90916a1161018c5780633f90916a1461022b5780634127535814610233578063441a3e7014610257576101ae565b8063081e3eda146101b35780631526fe27146101cd57806317caf6f114610223575b600080fd5b6101bb6104af565b60408051918252519081900360200190f35b6101ea600480360360208110156101e357600080fd5b50356104b6565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b6101bb610502565b6101bb610508565b61023b610563565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026d57600080fd5b5080359060200135610572565b005b61027a6004803603608081101561029257600080fd5b5080359060208101356001600160a01b03169060408101351515906060013561ffff16610730565b61027a600480360360208110156102d057600080fd5b503561095d565b61027a600480360360208110156102ed57600080fd5b5035610ad9565b6101bb610bdc565b61027a610be2565b61027a6004803603606081101561031a57600080fd5b50803590602081013590604001351515610c05565b61027a610cee565b61023b610daf565b61027a6004803603602081101561035557600080fd5b50356001600160a01b0316610dbe565b61023b610e4c565b6101bb610e5b565b6103a16004803603604081101561038b57600080fd5b50803590602001356001600160a01b0316610e61565b6040805192835260208301919091528051918290030190f35b6101bb600480360360408110156103d057600080fd5b50803590602001356001600160a01b0316610e85565b6101bb610eaf565b61027a6004803603602081101561040457600080fd5b5035610eb5565b61027a6004803603604081101561042157600080fd5b5080359060200135610f9d565b6101bb6004803603604081101561044457600080fd5b50803590602001356001600160a01b0316611197565b6101bb61133b565b61027a6004803603602081101561047857600080fd5b50356001600160a01b0316611341565b61027a6004803603604081101561049e57600080fd5b508035906020013561ffff16611458565b6005545b90565b600581815481106104c357fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60075481565b6000600854421161051b575060006104b3565b6000600954421061052e57600954610530565b425b905061055d600354610551600854840360045461154190919063ffffffff16565b9063ffffffff6115a116565b91505090565b600a546001600160a01b031681565b600260015414156105ca576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600583815481106105e157fe5b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156106495760405162461bcd60e51b815260040180806020018281038252602a815260200180611bda602a913960400191505060405180910390fd5b6106528461095d565b600061068c826001015461055164e8d4a510006106808760030154876000015461154190919063ffffffff16565b9063ffffffff6115e316565b90506106983382611625565b81546106aa908563ffffffff6115a116565b80835560038401546106cd9164e8d4a5100091610680919063ffffffff61154116565b600183015582546106ee906001600160a01b0316338663ffffffff6116cc16565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505060018055505050565b610738611751565b6000546001600160a01b0390811691161461079a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108161ffff1611156107df5760405162461bcd60e51b8152600401808060200182810382526025815260200180611b4c6025913960400191505060405180910390fd5b81156107ed576107ed610be2565b6000600854421161080057600854610802565b425b600754909150610818908663ffffffff61175516565b6007556040805160a0810182526001600160a01b0395861681526020810196875290810191825260006060820181815261ffff94851660808401908152600580546001810182559381905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db093909402928301805473ffffffffffffffffffffffffffffffffffffffff1916949098169390931790965595517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db385015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4909301805461ffff19169390921692909217905550565b60006005828154811061096c57fe5b906000526020600020906005020190506000600954421061098f57600954610991565b425b9050816002015481116109a5575050610ad6565b8154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a0857600080fd5b505afa158015610a1c573d6000803e3d6000fd5b505050506040513d6020811015610a3257600080fd5b5051905080610a475750600290910155610ad6565b6000610a608460020154846115a190919063ffffffff16565b90506000610a936007546106808760010154610a876004548761154190919063ffffffff16565b9063ffffffff61154116565b9050610ac2610ab1846106808464e8d4a5100063ffffffff61154116565b60038701549063ffffffff61175516565b600386015550504260029093019290925550505b50565b60026001541415610b31576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058281548110610b4857fe5b60009182526020808320858452600682526040808520338087529352909320805460059093029093018054909450610b93926001600160a01b0391909116919063ffffffff6116cc16565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560019182015580555050565b60035481565b60055460005b81811015610c0157610bf98161095d565b600101610be8565b5050565b610c0d611751565b6000546001600160a01b03908116911614610c6f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8015610c7d57610c7d610be2565b610cc082610cb460058681548110610c9157fe5b9060005260206000209060050201600101546007546115a190919063ffffffff16565b9063ffffffff61175516565b6007819055508160058481548110610cd457fe5b906000526020600020906005020160010181905550505050565b610cf6611751565b6000546001600160a01b03908116911614610d58576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6002546001600160a01b031681565b600a546001600160a01b03163314610e1d576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b60045481565b60066020908152600092835260408084209091529082529020805460019091015482565b60008281526006602090815260408083206001600160a01b03851684529091529020545b92915050565b60095481565b610ebd611751565b6000546001600160a01b03908116911614610f1f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6009544210610f5f5760405162461bcd60e51b8152600401808060200182810382526022815260200180611bb86022913960400191505060405180910390fd5b600254610f7d906001600160a01b031633308463ffffffff6117af16565b600454610f9190829063ffffffff6115e316565b60098054909101905550565b60026001541415610ff5576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555060006005838154811061100c57fe5b6000918252602080832086845260068252604080852033865290925292206005909102909101915061103d8461095d565b805415611080576000611072826001015461055164e8d4a510006106808760030154876000015461154190919063ffffffff16565b905061107e3382611625565b505b82156111305781546110a3906001600160a01b031633308663ffffffff6117af16565b600482015461ffff161561111b5760048201546000906110d6906127109061068090879061ffff1663ffffffff61154116565b600a5484549192506110fb916001600160a01b0390811691168363ffffffff6116cc16565b8154611113908290610551908763ffffffff61175516565b825550611130565b805461112d908463ffffffff61175516565b81555b600382015481546111519164e8d4a51000916106809163ffffffff61154116565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b600080600584815481106111a757fe5b600091825260208083208784526006825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b15801561123a57600080fd5b505afa15801561124e573d6000803e3d6000fd5b505050506040513d602081101561126457600080fd5b505160028501549091504211801561127b57508015155b15611308576000600954421061129357600954611295565b425b905060006112b08660020154836115a190919063ffffffff16565b905060006112d76007546106808960010154610a876004548761154190919063ffffffff16565b90506113026112f5856106808464e8d4a5100063ffffffff61154116565b869063ffffffff61175516565b94505050505b611330836001015461055164e8d4a5100061068086886000015461154190919063ffffffff16565b979650505050505050565b60085481565b611349611751565b6000546001600160a01b039081169116146113ab576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166113f05760405162461bcd60e51b8152600401808060200182810382526026815260200180611b716026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611460611751565b6000546001600160a01b039081169116146114c2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60648161ffff1611156115065760405162461bcd60e51b815260040180806020018281038252602a815260200180611c04602a913960400191505060405180910390fd5b60006005838154811061151557fe5b60009182526020909120600590910201600401805461ffff191661ffff93909316929092179091555050565b60008261155057506000610ea9565b8282028284828161155d57fe5b041461159a5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b976021913960400191505060405180910390fd5b9392505050565b600061159a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061183d565b600061159a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506118d4565b600254604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561169457600080fd5b505af11580156116a8573d6000803e3d6000fd5b505050506040513d60208110156116be57600080fd5b505060038054909101905550565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261174c908490611939565b505050565b3390565b60008282018381101561159a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611837908590611939565b50505050565b600081848411156118cc5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611891578181015183820152602001611879565b50505050905090810190601f1680156118be5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836119235760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611891578181015183820152602001611879565b50600083858161192f57fe5b0495945050505050565b61194b826001600160a01b0316611b0f565b61199c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106119f857805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016119bb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a5a576040519150601f19603f3d011682016040523d82523d6000602084013e611a5f565b606091505b509150915081611ab6576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561183757808060200190516020811015611ad257600080fd5b50516118375760405162461bcd60e51b815260040180806020018281038252602a815260200180611c2e602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611b4357508115155b94935050505056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7766756e643a20746f6f206c6174652c20746865206661726d20697320636c6f73656477697468647261773a2063616e2774207769746864726177206d6f7265207468616e206465706f736974757064617465506f6f6c4465706f7369744665653a20666565206d75737420626520756e6465722031255361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820606c160dc351e1326181ec20d8337d992359e11f50fecddd086d4f764a87268564736f6c63430005110032

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

00000000000000000000000068aa691a8819b07988b18923f712f3f4c8d363460000000000000000000000000000000000000000000000000125b5b51dec54a70000000000000000000000000000000000000000000000000000000062b3dc6e000000000000000000000000679016b3f8e98673f85c6f72567f22b58aa15a54

-----Decoded View---------------
Arg [0] : _erc20 (address): 0x68Aa691a8819B07988B18923F712F3f4C8d36346
Arg [1] : _rewardPerSecond (uint256): 82671957671957671
Arg [2] : _startTimestamp (uint256): 1655954542
Arg [3] : _feeAddress (address): 0x679016B3F8E98673f85c6F72567f22b58Aa15A54

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000068aa691a8819b07988b18923f712f3f4c8d36346
Arg [1] : 0000000000000000000000000000000000000000000000000125b5b51dec54a7
Arg [2] : 0000000000000000000000000000000000000000000000000000000062b3dc6e
Arg [3] : 000000000000000000000000679016b3f8e98673f85c6f72567f22b58aa15a54


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.