ETH Price: $3,711.02 (+3.26%)

Contract

0x218023631d37715Adf7C2f6CA3C40360E266ABdD
 
Transaction Hash
Method
Block
From
To
Unstake138594802021-12-23 5:08:001073 days ago1640236080IN
0x21802363...0E266ABdD
0 ETH0.0059681775.10725112
Withdraw138585162021-12-23 1:28:511073 days ago1640222931IN
0x21802363...0E266ABdD
0 ETH0.0117874399.60064269
Unstake138129932021-12-16 0:29:471080 days ago1639614587IN
0x21802363...0E266ABdD
0 ETH0.005788559.94598997
Claim137761792021-12-10 8:07:181086 days ago1639123638IN
0x21802363...0E266ABdD
0 ETH0.0045518559.01607668
Claim137761782021-12-10 8:06:451086 days ago1639123605IN
0x21802363...0E266ABdD
0 ETH0.0064482252.62612267
Unstake137463192021-12-05 13:26:261091 days ago1638710786IN
0x21802363...0E266ABdD
0 ETH0.0088130991.26882096
Withdraw137462492021-12-05 13:06:321091 days ago1638709592IN
0x21802363...0E266ABdD
0 ETH0.0090826376.7457908
Unstake137147802021-11-30 12:31:471096 days ago1638275507IN
0x21802363...0E266ABdD
0 ETH0.0086796189.8864565
Unstake136880632021-11-26 6:02:241100 days ago1637906544IN
0x21802363...0E266ABdD
0 ETH0.0075384778.06875178
Withdraw136856912021-11-25 20:53:411101 days ago1637873621IN
0x21802363...0E266ABdD
0 ETH0.0100910785.26686083
Withdraw136422662021-11-18 23:27:301107 days ago1637278050IN
0x21802363...0E266ABdD
0 ETH0.01376055116.27295085
Unstake135879452021-11-10 10:21:011116 days ago1636539661IN
0x21802363...0E266ABdD
0 ETH0.01220751126.42147159
Unstake135749262021-11-08 9:17:281118 days ago1636363048IN
0x21802363...0E266ABdD
0 ETH0.0065499482.42870014
Unstake135045132021-10-28 8:03:451129 days ago1635408225IN
0x21802363...0E266ABdD
0 ETH0.0139293144.25249083
Withdraw135043482021-10-28 7:28:201129 days ago1635406100IN
0x21802363...0E266ABdD
0 ETH0.01397557118.08979753
Unstake134541362021-10-20 10:39:181137 days ago1634726358IN
0x21802363...0E266ABdD
0 ETH0.0044184455.60448878
Unstake134527602021-10-20 5:26:591137 days ago1634707619IN
0x21802363...0E266ABdD
0 ETH0.0041600143.08125061
Unstake134483412021-10-19 13:02:471138 days ago1634648567IN
0x21802363...0E266ABdD
0 ETH0.0037901247.69728377
Withdraw134482652021-10-19 12:47:181138 days ago1634647638IN
0x21802363...0E266ABdD
0 ETH0.0063524753.67666413
Unstake134412262021-10-18 10:17:391139 days ago1634552259IN
0x21802363...0E266ABdD
0 ETH0.005003451.81542722
Withdraw134328342021-10-17 2:40:341140 days ago1634438434IN
0x21802363...0E266ABdD
0 ETH0.0054726746.24258996
Withdraw134325062021-10-17 1:20:421140 days ago1634433642IN
0x21802363...0E266ABdD
0 ETH0.0083822382.78991864
Unstake134190622021-10-14 22:45:521142 days ago1634251552IN
0x21802363...0E266ABdD
0 ETH0.01035257107.21165648
Unstake134029272021-10-12 9:53:451145 days ago1634032425IN
0x21802363...0E266ABdD
0 ETH0.0071755274.31002103
Withdraw134028482021-10-12 9:34:431145 days ago1634031283IN
0x21802363...0E266ABdD
0 ETH0.0079425367.11228845
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
Farm

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : Farm.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./interfaces/IBurnable.sol";
import "./interfaces/IFarmManager.sol";

// Farm distributes the ERC20 rewards based on staked LP to each user.
contract Farm {
    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.
        uint256 lastClaimTime;
        uint256 withdrawTime;
        
        // 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 `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.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 stakingToken;         // Address of staking token contract.
        uint256 allocPoint;         // How many allocation points assigned to this pool. ERC20s to distribute per block.
        uint256 lastRewardBlock;    // Last block number that ERC20s distribution occurs.
        uint256 accERC20PerShare;   // Accumulated ERC20s per share, times 1e36.
        uint256 supply;             // changes with unstakes.
        bool    isLP;               // if the staking token is an LP token.
        bool    isBurnable;         // if the staking token is burnable
    }

    // Address of the ERC20 Token contract.
    IERC20 public erc20;
    // The total amount of ERC20 that's paid out as reward.
    uint256 public paidOut;
    // ERC20 tokens rewarded per block.
    uint256 public rewardPerBlock;
    // Manager interface to get globals for all farms.
    IFarmManager public manager;
    // 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;
    // The block number when farming starts.
    uint256 public startBlock;
    // Seconds per epoch (1 day)
    uint256 public constant SECS_EPOCH = 86400;

    // events
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid);
    event Claim(address indexed user, uint256 indexed pid);
    event Unstake(address indexed user, uint256 indexed pid);
    event Initialize(IERC20 erc20, uint256 rewardPerBlock, uint256 startBlock, address manager);

    constructor(IERC20 _erc20, uint256 _rewardPerBlock, uint256 _startBlock, address _manager) public {
        erc20 = _erc20;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        manager = IFarmManager(_manager);
        emit Initialize(_erc20, _rewardPerBlock, _startBlock, _manager);
    }

    // Fund the farm, increase the end block.
    function fund(address _funder, uint256 _amount) external {
        require(msg.sender == address(manager), "fund: sender is not manager");
        erc20.safeTransferFrom(_funder, address(this), _amount);
    }

    // Update the given pool's ERC20 allocation point. Can only be called by the manager.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) external {
        require(msg.sender == address(manager), "set: sender is not manager");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Add a new staking token to the pool. Can only be called by the manager.
    function add(uint256 _allocPoint, IERC20 _stakingToken, bool _isLP, bool _isBurnable, bool _withUpdate) external {
        require(msg.sender == address(manager), "fund: sender is not manager");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            stakingToken: _stakingToken,
            supply: 0,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accERC20PerShare: 0,
            isLP: _isLP,
            isBurnable: _isBurnable
        }));
    }

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        uint256 lastBlock = block.number;

        if (lastBlock <= pool.lastRewardBlock) {
            return;
        }
        if (pool.supply == 0) {
            pool.lastRewardBlock = lastBlock;
            return;
        }

        uint256 nrOfBlocks = lastBlock.sub(pool.lastRewardBlock);
        uint256 erc20Reward = nrOfBlocks.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);

        pool.accERC20PerShare = pool.accERC20PerShare.add(erc20Reward.mul(1e36).div(pool.supply));
        pool.lastRewardBlock = block.number;
    }

    // move LP tokens from one farm to another. only callable by Manager.
    function move(uint256 _pid, address _mover) external {
        require(msg.sender == address(manager), "move: sender is not manager");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_mover];
        updatePool(_pid);
        uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e36).sub(user.rewardDebt);
        erc20Transfer(_mover, pendingAmount);
        pool.supply = pool.supply.sub(user.amount);
        pool.stakingToken.safeTransfer(address(manager), user.amount);
        user.amount = 0;
        user.rewardDebt = user.amount.mul(pool.accERC20PerShare).div(1e36);
        emit Withdraw(msg.sender, _pid);
    }

    // Deposit LP tokens to Farm for ERC20 allocation.
    // can come from manager or user address directly.
    // In the case the call is coming from the manager, msg.sender is the manager.
    function deposit(uint256 _pid, address _depositor, uint256 _amount) external {
        require(manager.getPaused()==false, "deposit: farm paused");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_depositor];
        require(user.withdrawTime == 0, "deposit: user is unstaking");

        // If we're not called by the farm manager, then we must ensure that the caller is the depositor.
        // This way we avoid the case where someone else commits the deposit, after the depositor
        // granted allowance to the farm.
        if(msg.sender != address(manager)) {
            require(msg.sender == _depositor, "deposit: the caller must be the depositor");
        }

        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e36).sub(user.rewardDebt);
            erc20Transfer(_depositor, pendingAmount);
        }

        // We tranfer from the msg.sender, because in the case when we're called by the farm manager (change pool scenario)
        // it's the FM who owns the tokens, not the depositor (who in this case is the user who changes pools).
        pool.stakingToken.safeTransferFrom(msg.sender, address(this), _amount);

        pool.supply = pool.supply.add(_amount);
        user.amount = user.amount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accERC20PerShare).div(1e36);
        emit Deposit(_depositor, _pid, _amount);
    }

    // Distribute rewards and start unstake period.
    function withdraw(uint256 _pid) external {
        require(manager.getPaused()==false, "withdraw: farm paused");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount > 0, "withdraw: amount must be greater than 0");
        require(user.withdrawTime == 0, "withdraw: user is unstaking");
        updatePool(_pid);

        // transfer any rewards due
        uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e36).sub(user.rewardDebt);
        erc20Transfer(msg.sender, pendingAmount);
        pool.supply = pool.supply.sub(user.amount);
        user.rewardDebt = 0;
        user.withdrawTime = block.timestamp;
        emit Withdraw(msg.sender, _pid);
    }

    // unstake LP tokens from Farm. if done within "unstakeEpochs" days, apply burn.
    function unstake(uint256 _pid) external {
        require(manager.getPaused()==false, "unstake: farm paused");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.withdrawTime > 0, "unstake: user is not unstaking");
        updatePool(_pid);
        //apply burn fee if unstaking before unstake epochs.
        uint256 unstakeEpochs = manager.getUnstakeEpochs();
        uint256 burnRate = manager.getBurnRate();
        address redistributor = manager.getRedistributor();
        if((user.withdrawTime.add(SECS_EPOCH.mul(unstakeEpochs)) > block.timestamp) && burnRate > 0){
            uint penalty = user.amount.mul(burnRate).div(1000);
            user.amount = user.amount.sub(penalty);
            // if the staking address is an LP, send 50% of penalty to redistributor, and 50% to lp lock address.
            if(pool.isLP){
                uint256 redistributorPenalty = penalty.div(2);
                pool.stakingToken.safeTransfer(redistributor, redistributorPenalty);
                pool.stakingToken.safeTransfer(manager.getLpLock(), penalty.sub(redistributorPenalty));
            }else {
                // for normal ERC20 tokens, a portion (50% by default) of the penalty is sent to the redistributor address
                uint256 burnRatio = manager.getBurnRatio();
                uint256 burnAmount = penalty.mul(burnRatio).div(1000);
                pool.stakingToken.safeTransfer(redistributor, penalty.sub(burnAmount));
                if(pool.isBurnable){
                    //if the staking token is burnable, the second portion (50% by default) is burned
                    IBurnable(address(pool.stakingToken)).burn(burnAmount);
                }else{
                    //if the staking token is not burnable, the second portion (50% by default) is sent to burn valley
                    pool.stakingToken.safeTransfer(manager.getBurnValley(), burnAmount);
                }
            }
        }
        uint userAmount = user.amount;
        // allows user to stake again.
        user.withdrawTime = 0;
        user.amount = 0;
        pool.stakingToken.safeTransfer(address(msg.sender), userAmount);
        emit Unstake(msg.sender, _pid);
    }

    // claim LP tokens from Farm.
    function claim(uint256 _pid) external {
        require(manager.getPaused() == false, "claim: farm paused");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount > 0, "claim: amount is equal to 0");
        require(user.withdrawTime == 0, "claim: user is unstaking");
        updatePool(_pid);
        uint256 pendingAmount = user.amount.mul(pool.accERC20PerShare).div(1e36).sub(user.rewardDebt);
        erc20Transfer(msg.sender, pendingAmount);
        user.rewardDebt = user.amount.mul(pool.accERC20PerShare).div(1e36);
        user.lastClaimTime = block.timestamp;
        emit Claim(msg.sender, _pid);
    }

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

    // emergency withdraw rewards. only owner. EMERGENCY ONLY.
    function emergencyWithdrawRewards(address _receiver) external {
        require(msg.sender == address(manager), "emergencyWithdrawRewards: sender is not manager");
        uint balance = erc20.balanceOf(address(this));
        erc20.safeTransfer(_receiver, balance);
    }
}

File 2 of 7 : 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 3 of 7 : 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 4 of 7 : 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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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 7 : IBurnable.sol
//SPDX-License-Identifier: Unlicense
pragma solidity 0.7.6;

interface IBurnable {
  function burn(uint256 amount) external;
  function balanceOf(address account) external view returns (uint256);
}

File 6 of 7 : IFarmManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

interface IFarmManager {
    function getPaused() external view returns(bool);
    function getBurnRate() external view returns(uint256);
    function getBurnRatio() external view returns(uint256);
    function getUnstakeEpochs() external view returns(uint256);
    function getRedistributor() external view returns(address);
    function getLpLock() external view returns(address);
    function getBurnValley() external view returns(address);
}

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"erc20","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"address","name":"manager","type":"address"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"SECS_EPOCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"bool","name":"_isLP","type":"bool"},{"internalType":"bool","name":"_isBurnable","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_depositor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"emergencyWithdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_funder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"contract IFarmManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_mover","type":"address"}],"name":"move","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paidOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"stakingToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accERC20PerShare","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bool","name":"isLP","type":"bool"},{"internalType":"bool","name":"isBurnable","type":"bool"}],"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":"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":"uint256","name":"_pid","type":"uint256"}],"name":"unstake","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"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"},{"internalType":"uint256","name":"withdrawTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635c76ca2d116100ad5780638ae39cac116100715780638ae39cac146102445780638b01295d1461024c57806393f1a40b14610254578063bc157ac114610277578063d8a8e03a1461028a5761012c565b80635c76ca2d14610206578063630b5ba11461020e57806364482f7914610216578063785e9e86146102295780637b1837de146102315761012c565b8063481c6a75116100f4578063481c6a75146101b057806348569696146101c557806348cd4cb1146101d857806351eb05a6146101e0578063567ac8b0146101f35761012c565b80631526fe271461013157806317caf6f1146101605780632e17de78146101755780632e1a7d4d1461018a578063379607f51461019d575b600080fd5b61014461013f366004611b04565b61029d565b6040516101579796959493929190611c66565b60405180910390f35b6101686102f9565b6040516101579190611ff3565b610188610183366004611b04565b6102ff565b005b610188610198366004611b04565b6108e7565b6101886101ab366004611b04565b610aa8565b6101b8610c70565b6040516101579190611c39565b6101886101d3366004611b9a565b610c7f565b610168610e5b565b6101886101ee366004611b04565b610e61565b610188610201366004611a85565b610f40565b610168611009565b61018861100f565b610188610224366004611c01565b61102e565b6101b86110d1565b61018861023f366004611abd565b6110e0565b610168611122565b610168611128565b610267610262366004611b34565b61112f565b6040516101579493929190611ffc565b610188610285366004611b63565b611161565b610188610298366004611b34565b6113a3565b600481815481106102ad57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff8082169161010090041687565b60065481565b600360009054906101000a90046001600160a01b03166001600160a01b0316636805b84b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561034d57600080fd5b505afa158015610361573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103859190611ae8565b156103ab5760405162461bcd60e51b81526004016103a290611e06565b60405180910390fd5b6000600482815481106103ba57fe5b6000918252602080832085845260058252604080852033865290925292206003810154600690920290920192506104035760405162461bcd60e51b81526004016103a290611d6c565b61040c83610e61565b600354604080516352dc6bf960e11b815290516000926001600160a01b03169163a5b8d7f2916004808301926020929190829003018186803b15801561045157600080fd5b505afa158015610465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104899190611b1c565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663482cd6c56040518163ffffffff1660e01b815260040160206040518083038186803b1580156104db57600080fd5b505afa1580156104ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105139190611b1c565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316630ee09a106040518163ffffffff1660e01b815260040160206040518083038186803b15801561056557600080fd5b505afa158015610579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059d9190611aa1565b9050426105bb6105b062015180866114ee565b600387015490611550565b1180156105c85750600082115b1561088e5783546000906105ea906103e8906105e490866114ee565b906115aa565b85549091506105f99082611611565b8555600586015460ff16156106ce5760006106158260026115aa565b875490915061062e906001600160a01b0316848361166e565b6003546040805163b495373560e01b815290516106c8926001600160a01b03169163b4953735916004808301926020929190829003018186803b15801561067457600080fd5b505afa158015610688573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ac9190611aa1565b6106b68484611611565b89546001600160a01b0316919061166e565b5061088c565b60035460408051630af1f72760e21b815290516000926001600160a01b031691632bc7dc9c916004808301926020929190829003018186803b15801561071357600080fd5b505afa158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190611b1c565b9050600061075f6103e86105e485856114ee565b90506107818461076f8584611611565b8a546001600160a01b0316919061166e565b6005880154610100900460ff16156107f9578754604051630852cd8d60e31b81526001600160a01b03909116906342966c68906107c2908490600401611ff3565b600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b50505050610889565b600354604080516394ad10d560e01b81529051610889926001600160a01b0316916394ad10d5916004808301926020929190829003018186803b15801561083f57600080fd5b505afa158015610853573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108779190611aa1565b89546001600160a01b0316908361166e565b50505b505b8354600060038601819055855585546108b1906001600160a01b0316338361166e565b604051879033907f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd90600090a350505050505050565b600360009054906101000a90046001600160a01b03166001600160a01b0316636805b84b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561093557600080fd5b505afa158015610949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096d9190611ae8565b1561098a5760405162461bcd60e51b81526004016103a290611ea2565b60006004828154811061099957fe5b6000918252602080832085845260058252604080852033865290925292208054600690920290920192506109df5760405162461bcd60e51b81526004016103a290611ca5565b600381015415610a015760405162461bcd60e51b81526004016103a290611cec565b610a0a83610e61565b6000610a478260010154610a416a0c097ce7bc90715b34b9f160241b6105e4876003015487600001546114ee90919063ffffffff16565b90611611565b9050610a5333826116c5565b81546004840154610a6391611611565b6004840155600060018301819055426003840155604051859133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649190a350505050565b600360009054906101000a90046001600160a01b03166001600160a01b0316636805b84b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610af657600080fd5b505afa158015610b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2e9190611ae8565b15610b4b5760405162461bcd60e51b81526004016103a290611dda565b600060048281548110610b5a57fe5b600091825260208083208584526005825260408085203386529092529220805460069092029092019250610ba05760405162461bcd60e51b81526004016103a290611e34565b600381015415610bc25760405162461bcd60e51b81526004016103a290611da3565b610bcb83610e61565b6000610c028260010154610a416a0c097ce7bc90715b34b9f160241b6105e4876003015487600001546114ee90919063ffffffff16565b9050610c0e33826116c5565b60038301548254610c32916a0c097ce7bc90715b34b9f160241b916105e4916114ee565b6001830155426002830155604051849033907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490600090a350505050565b6003546001600160a01b031681565b6003546001600160a01b03163314610ca95760405162461bcd60e51b81526004016103a290611e6b565b8015610cb757610cb761100f565b60006007544311610cca57600754610ccc565b435b600654909150610cdc9087611550565b60069081556040805160e0810182526001600160a01b039788168152602081019889529081019283526000606082018181526080830182815297151560a0840190815296151560c084019081526004805460018101825593529251919093027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b81018054929099166001600160a01b03199092169190911790975596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c87015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d860155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e8501555090517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a09091018054925115156101000261ff001992151560ff199094169390931791909116919091179055565b60075481565b600060048281548110610e7057fe5b90600052602060002090600602019050600043905081600201548111610e97575050610f3d565b6004820154610eab57600290910155610f3d565b6000610ec483600201548361161190919063ffffffff16565b90506000610ef16006546105e48660010154610eeb600254876114ee90919063ffffffff16565b906114ee565b9050610f2a610f1f85600401546105e46a0c097ce7bc90715b34b9f160241b856114ee90919063ffffffff16565b600386015490611550565b6003850155505043600290920191909155505b50565b6003546001600160a01b03163314610f6a5760405162461bcd60e51b81526004016103a290611f36565b600080546040516370a0823160e01b81526001600160a01b03909116906370a0823190610f9b903090600401611c39565b60206040518083038186803b158015610fb357600080fd5b505afa158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb9190611b1c565b600054909150611005906001600160a01b0316838361166e565b5050565b60015481565b60045460005b818110156110055761102681610e61565b600101611015565b6003546001600160a01b031633146110585760405162461bcd60e51b81526004016103a290611fbc565b80156110665761106661100f565b6110a38261109d6004868154811061107a57fe5b90600052602060002090600602016001015460065461161190919063ffffffff16565b90611550565b60068190555081600484815481106110b757fe5b906000526020600020906006020160010181905550505050565b6000546001600160a01b031681565b6003546001600160a01b0316331461110a5760405162461bcd60e51b81526004016103a290611e6b565b600054611005906001600160a01b0316833084611756565b60025481565b6201518081565b600560209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b600360009054906101000a90046001600160a01b03166001600160a01b0316636805b84b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111af57600080fd5b505afa1580156111c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e79190611ae8565b156112045760405162461bcd60e51b81526004016103a290611ed1565b60006004848154811061121357fe5b600091825260208083208784526005825260408085206001600160a01b03891686529092529220600381015460069092029092019250156112665760405162461bcd60e51b81526004016103a290611eff565b6003546001600160a01b031633146112a057336001600160a01b038516146112a05760405162461bcd60e51b81526004016103a290611d23565b6112a985610e61565b8054156112f55760006112e78260010154610a416a0c097ce7bc90715b34b9f160241b6105e4876003015487600001546114ee90919063ffffffff16565b90506112f385826116c5565b505b815461130c906001600160a01b0316333086611756565b600482015461131b9084611550565b6004830155805461132c9084611550565b8082556003830154611352916a0c097ce7bc90715b34b9f160241b916105e491906114ee565b816001018190555084846001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040516113949190611ff3565b60405180910390a35050505050565b6003546001600160a01b031633146113cd5760405162461bcd60e51b81526004016103a290611f85565b6000600483815481106113dc57fe5b600091825260208083208684526005825260408085206001600160a01b038816865290925292206006909102909101915061141684610e61565b600061144d8260010154610a416a0c097ce7bc90715b34b9f160241b6105e4876003015487600001546114ee90919063ffffffff16565b905061145984826116c5565b8154600484015461146991611611565b60048401556003548254845461148d926001600160a01b039182169291169061166e565b600080835560038401546114b5916a0c097ce7bc90715b34b9f160241b916105e491906114ee565b6001830155604051859033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a35050505050565b6000826114fd5750600061154a565b8282028284828161150a57fe5b04146115475760405162461bcd60e51b81526004018080602001828103825260218152602001806120616021913960400191505060405180910390fd5b90505b92915050565b600082820183811015611547576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611600576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161160957fe5b049392505050565b600082821115611668576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526116c09084906117b6565b505050565b60005460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906116f79085908590600401611c4d565b602060405180830381600087803b15801561171157600080fd5b505af1158015611725573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117499190611ae8565b5060018054909101905550565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526117b09085906117b6565b50505050565b600061180b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118679092919063ffffffff16565b8051909150156116c05780806020019051602081101561182a57600080fd5b50516116c05760405162461bcd60e51b815260040180806020018281038252602a815260200180612082602a913960400191505060405180910390fd5b60606118768484600085611880565b90505b9392505050565b6060824710156118c15760405162461bcd60e51b815260040180806020018281038252602681526020018061203b6026913960400191505060405180910390fd5b6118ca856119db565b61191b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106119595780518252601f19909201916020918201910161193a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146119bb576040519150601f19603f3d011682016040523d82523d6000602084013e6119c0565b606091505b50915091506119d08282866119e1565b979650505050505050565b3b151590565b606083156119f0575081611879565b825115611a005782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a4a578181015183820152602001611a32565b50505050905090810190601f168015611a775780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b600060208284031215611a96578081fd5b813561154781612017565b600060208284031215611ab2578081fd5b815161154781612017565b60008060408385031215611acf578081fd5b8235611ada81612017565b946020939093013593505050565b600060208284031215611af9578081fd5b81516115478161202c565b600060208284031215611b15578081fd5b5035919050565b600060208284031215611b2d578081fd5b5051919050565b60008060408385031215611b46578182fd5b823591506020830135611b5881612017565b809150509250929050565b600080600060608486031215611b77578081fd5b833592506020840135611b8981612017565b929592945050506040919091013590565b600080600080600060a08688031215611bb1578081fd5b853594506020860135611bc381612017565b93506040860135611bd38161202c565b92506060860135611be38161202c565b91506080860135611bf38161202c565b809150509295509295909350565b600080600060608486031215611c15578283fd5b83359250602084013591506040840135611c2e8161202c565b809150509250925092565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039790971687526020870195909552604086019390935260608501919091526080840152151560a0830152151560c082015260e00190565b60208082526027908201527f77697468647261773a20616d6f756e74206d75737420626520677265617465726040820152660207468616e20360cc1b606082015260800190565b6020808252601b908201527f77697468647261773a207573657220697320756e7374616b696e670000000000604082015260600190565b60208082526029908201527f6465706f7369743a207468652063616c6c6572206d75737420626520746865206040820152683232b837b9b4ba37b960b91b606082015260800190565b6020808252601e908201527f756e7374616b653a2075736572206973206e6f7420756e7374616b696e670000604082015260600190565b60208082526018908201527f636c61696d3a207573657220697320756e7374616b696e670000000000000000604082015260600190565b60208082526012908201527118db185a5b4e8819985c9b481c185d5cd95960721b604082015260600190565b6020808252601490820152731d5b9cdd185ad94e8819985c9b481c185d5cd95960621b604082015260600190565b6020808252601b908201527f636c61696d3a20616d6f756e7420697320657175616c20746f20300000000000604082015260600190565b6020808252601b908201527f66756e643a2073656e646572206973206e6f74206d616e616765720000000000604082015260600190565b6020808252601590820152741dda5d1a191c985dce8819985c9b481c185d5cd959605a1b604082015260600190565b60208082526014908201527319195c1bdcda5d0e8819985c9b481c185d5cd95960621b604082015260600190565b6020808252601a908201527f6465706f7369743a207573657220697320756e7374616b696e67000000000000604082015260600190565b6020808252602f908201527f656d657267656e63795769746864726177526577617264733a2073656e64657260408201526e1034b9903737ba1036b0b730b3b2b960891b606082015260800190565b6020808252601b908201527f6d6f76653a2073656e646572206973206e6f74206d616e616765720000000000604082015260600190565b6020808252601a908201527f7365743a2073656e646572206973206e6f74206d616e61676572000000000000604082015260600190565b90815260200190565b93845260208401929092526040830152606082015260800190565b6001600160a01b0381168114610f3d57600080fd5b8015158114610f3d57600080fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220677cd31318d342708acc4b30df6d2c840c9471bafe64ed3692612a08b130af0c64736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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