Contract 0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e8

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe969bda4a86401f41e1ad5a20444c7ca73a7dad7b34ea8cc2730a8d9f8c478bdWithdraw109418512021-09-15 17:47:081 day 7 hrs ago0x412876fc522d28af0c52f6e2c8d606678ed3e4ca IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000501342
0x64d7c9253afa351993bc23af5f0fda008e3e4cd10ceb4dbf8a57efabf2cd635bDeposit109418442021-09-15 17:46:471 day 7 hrs ago0x412876fc522d28af0c52f6e2c8d606678ed3e4ca IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.0012195282
0xf05f1f0c09b76b50e0b1547823571ffd0bf68d3e11c027865d189a5f2f50c236Withdraw109380862021-09-15 14:38:521 day 10 hrs ago0x54e4e2e5141ec6b328746baafa7f83b8e4f043a1 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417785
0x4972ce809c27f2defcc20545922e0ac6ec8edf8661584873709077220b714c7dDeposit109380812021-09-15 14:38:371 day 10 hrs ago0x54e4e2e5141ec6b328746baafa7f83b8e4f043a1 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0x72b96db87aa468a15c25816e81652c8512ebe4d1db862406760579147e33978fWithdraw107820092021-09-10 3:49:486 days 21 hrs ago0x521ec4a336c3948afbab8eedc0da472c628be8ad IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.00116498
0xd2ca0804e09a9fc6a197995efa0f083406fa6101aa147b1ae77127cdb2e15b67Withdraw107702192021-09-09 17:54:467 days 7 hrs ago0x6887a42ec82369131d83c0978e9cce60dbd5b90a IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.00108998
0x04ffb44f55100460669a0e139854ca55dfd5b9573ed2a93b13edfa9fde4e8fbdWithdraw106575382021-09-05 18:54:1311 days 6 hrs ago0x577c137fdfe9c9e4f623550eb4990efcc1585a43 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417845
0x1a06c81da97fe26338c280c46517627c69bc975db8b38b8c49fbed26f67a7706Deposit106575212021-09-05 18:53:2211 days 6 hrs ago0x577c137fdfe9c9e4f623550eb4990efcc1585a43 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0xd30fd4d70415f339e266211099578bead248a42855e9b2cf5a7e6b0d26b02640Withdraw106510092021-09-05 13:26:5911 days 11 hrs ago0x2f48a32e162c656b2f5e39ac6a90aaba8e14abfd IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000117485
0xfb3675111e134fe181f6fa19493a3268cea7074797d11769188960bbe97bb534Withdraw106510082021-09-05 13:26:5611 days 11 hrs ago0x2f48a32e162c656b2f5e39ac6a90aaba8e14abfd IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417845
0xc4a35f96a155ed7002c9de8487bc380705d28e49c83cc8c8c10e6799dec4cd65Deposit106366782021-09-05 1:28:5511 days 23 hrs ago0x2f48a32e162c656b2f5e39ac6a90aaba8e14abfd IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0xa96885f792cd42ddcbbc5c13dcfc8d98cde4c53493a8c53e0ed6624a56df270cWithdraw105627182021-09-02 11:15:5614 days 13 hrs ago0x2e1eb77a7d02662d4552b5788d91a74f27888fc6 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.001398048
0xe49d24fb00385b7747d58c747cc0115ad790683667d8a4e0ae9a05a2b756722aWithdraw105575692021-09-02 6:57:2114 days 18 hrs ago0x6aa33d1f92f2b64db7be6d8190390091dc69c8ff IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417785
0x5a35773d5abf7915fbd494104ee7435145bdfe028867a73b40b603023b32a649Deposit105575602021-09-02 6:56:5414 days 18 hrs ago0x6aa33d1f92f2b64db7be6d8190390091dc69c8ff IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0x3046f39a580dedc1aca4156e873c388acee128b54829a832a54d4e206c4ecabbWithdraw105196432021-08-31 22:53:1116 days 2 hrs ago0x935c0b157d89f2d627bac87d0f5688339784b269 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.00109004
0x31a7005947959a88f3a6d6cab16a90f184384330aaa88f664c75821f85c8718bWithdraw104963592021-08-31 3:10:4516 days 21 hrs ago0x56fef30f1f815aefd9ba67dbd50660fa133a8326 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417785
0xc4167ed196c745b2b1efd7d892b7e1c0f7209798e0dc7b2fc7ad39e47b9cceeaDeposit104963562021-08-31 3:10:3616 days 21 hrs ago0x56fef30f1f815aefd9ba67dbd50660fa133a8326 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000998885
0x0397656efabfe086e5c5f6bcb945861d952352187040f86c581b9ca906c34483Withdraw104584442021-08-29 19:06:5818 days 5 hrs ago0xe9fad991791a632813293f04dc0457c41ce7ba53 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417785
0x02be138630049ba5ac2d0da8491834ba2b8351851ed34b1422ff64a84b52ebb0Withdraw104430972021-08-29 6:17:0018 days 18 hrs ago0xdf66ecfeed603237ee2e8c01f32a463db9ac2641 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.00108998
0x2e7e2a3b51903f6c43401b73fe09df94dd09c6b8c2f3769721860eaec087f1fdDeposit104241862021-08-28 14:22:2719 days 10 hrs ago0xe9fad991791a632813293f04dc0457c41ce7ba53 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0xf701e47b69c48ae14054a31b3c77fbe809567db746596f2231e51569f68b15d2Withdraw103696422021-08-26 15:49:4921 days 9 hrs ago0x33fc93fd6bc12ff128c4735649732d5b67080dcd IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417785
0x33b2bd949dbdfa4f6a48effe72a3c0cf44ce7ae1e49ae26d2da20826e1b996f4Deposit103696352021-08-26 15:49:2821 days 9 hrs ago0x33fc93fd6bc12ff128c4735649732d5b67080dcd IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0x64a22ad9de56fe2db881abf4ac841247fa2f2247d76865ed78569c1381e823c7Withdraw103397262021-08-25 14:47:3322 days 10 hrs ago0x38585dad6ad3affebe7f50db85156eec8b556876 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417845
0xfabc63e19c249b236aa8b4209e2c8d9d6811f6a5c89b6ac5175b24e2fef2523cDeposit103397212021-08-25 14:47:1822 days 10 hrs ago0x38585dad6ad3affebe7f50db85156eec8b556876 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000923885
0x9a97c1898fea23d795696b3d4591654a0aacfbe2563d793afcc5f0d316f08412Withdraw103167352021-08-24 19:34:5523 days 5 hrs ago0x53e5b021385fe8572346273c6cb5dbe086d4e4d2 IN  0xfd9c606d3ff6ac1b044c4f5c0a9fa934634bd2e80 BNB0.000417845
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x1697B103A72299D5Db4E39ef28a32991C347bE23

Contract Name:
BEP20RewardApeV2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : BEP20RewardApeV2.sol
pragma solidity 0.6.12;

/*
 * ApeSwapFinance
 * App:             https://apeswap.finance
 * Medium:          https://ape-swap.medium.com
 * Twitter:         https://twitter.com/ape_swap
 * Telegram:        https://t.me/ape_swap
 * Announcements:   https://t.me/ape_swap_news
 * GitHub:          https://github.com/ApeSwapFinance
 */

import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol';
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol';
import '@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol';


contract BEP20RewardApeV2 is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. Rewards to distribute per block.
        uint256 lastRewardBlock;  // Last block number that Rewards distribution occurs.
        uint256 accRewardTokenPerShare; // Accumulated Rewards per share, times 1e30. See below.
    }

    // The stake token
    IBEP20 public stakeToken;
    // The reward token
    IBEP20 public rewardToken;

    // Reward tokens created per block.
    uint256 public rewardPerBlock;

    // Keep track of number of tokens staked in case the contract earns reflect fees
    uint256 public totalStaked = 0;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (address => UserInfo) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 private totalAllocPoint = 0;
    // The block number when Reward mining starts.
    uint256 public startBlock;
	// The block number when mining ends.
    uint256 public bonusEndBlock;

    event Deposit(address indexed user, uint256 amount);
    event DepositRewards(uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event EmergencyRewardWithdraw(address indexed user, uint256 amount);
    event SkimStakeTokenFees(address indexed user, uint256 amount);

    constructor(
        IBEP20 _stakeToken,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock
    ) public {
        stakeToken = _stakeToken;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _stakeToken,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accRewardTokenPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (_to <= bonusEndBlock) {
            return _to.sub(_from);
        } else if (_from >= bonusEndBlock) {
            return 0;
        } else {
            return bonusEndBlock.sub(_from);
        }
    }

    // View function to see pending Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[_user];
        uint256 accRewardTokenPerShare = pool.accRewardTokenPerShare;
        if (block.number > pool.lastRewardBlock && totalStaked != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 tokenReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRewardTokenPerShare = accRewardTokenPerShare.add(tokenReward.mul(1e30).div(totalStaked));
        }
        return user.amount.mul(accRewardTokenPerShare).div(1e30).sub(user.rewardDebt);
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        if (totalStaked == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 tokenReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accRewardTokenPerShare = pool.accRewardTokenPerShare.add(tokenReward.mul(1e30).div(totalStaked));
        pool.lastRewardBlock = block.number;
    }

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


    /// Deposit staking token into the contract to earn rewards.
    /// @dev Since this contract needs to be supplied with rewards we are
    ///  sending the balance of the contract if the pending rewards are higher
    /// @param _amount The amount of staking tokens to deposit
    function deposit(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        uint256 finalDepositAmount = 0;
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accRewardTokenPerShare).div(1e30).sub(user.rewardDebt);
            if(pending > 0) {
                uint256 currentRewardBalance = rewardBalance();
                if(currentRewardBalance > 0) {
                    if(pending > currentRewardBalance) {
                        safeTransferReward(address(msg.sender), currentRewardBalance);
                    } else {
                        safeTransferReward(address(msg.sender), pending);
                    }
                }
            }
        }
        if (_amount > 0) {
            uint256 preStakeBalance = totalStakeTokenBalance();
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            finalDepositAmount = totalStakeTokenBalance().sub(preStakeBalance);
            user.amount = user.amount.add(finalDepositAmount);
            totalStaked = totalStaked.add(finalDepositAmount);
        }
        user.rewardDebt = user.amount.mul(pool.accRewardTokenPerShare).div(1e30);

        emit Deposit(msg.sender, finalDepositAmount);
    }

    /// Withdraw rewards and/or staked tokens. Pass a 0 amount to withdraw only rewards
    /// @param _amount The amount of staking tokens to withdraw
    function withdraw(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accRewardTokenPerShare).div(1e30).sub(user.rewardDebt);
        if(pending > 0) {
            uint256 currentRewardBalance = rewardBalance();
            if(currentRewardBalance > 0) {
                if(pending > currentRewardBalance) {
                    safeTransferReward(address(msg.sender), currentRewardBalance);
                } else {
                    safeTransferReward(address(msg.sender), pending);
                }
            }
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            totalStaked = totalStaked.sub(_amount);
        }

        user.rewardDebt = user.amount.mul(pool.accRewardTokenPerShare).div(1e30);

        emit Withdraw(msg.sender, _amount);
    }

    /// Obtain the reward balance of this contract
    /// @return wei balace of conract
    function rewardBalance() public view returns (uint256) {
        return rewardToken.balanceOf(address(this));
    }

    // Deposit Rewards into contract
    function depositRewards(uint256 _amount) external {
        require(_amount > 0, 'Deposit value must be greater than 0.');
        rewardToken.safeTransferFrom(address(msg.sender), address(this), _amount);
        emit DepositRewards(_amount);
    }

    /// @param _to address to send reward token to
    /// @param _amount value of reward token to transfer
    function safeTransferReward(address _to, uint256 _amount) internal {
        rewardToken.safeTransfer(_to, _amount);
    }

    /* Admin Functions */

    /// @param _rewardPerBlock The amount of reward tokens to be given per block
    function setRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner {
        rewardPerBlock = _rewardPerBlock;
    }

    /// @param  _bonusEndBlock The block when rewards will end
    function setBonusEndBlock(uint256 _bonusEndBlock) external onlyOwner {
        require(_bonusEndBlock > bonusEndBlock, 'new bonus end block must be greater than current');
        bonusEndBlock = _bonusEndBlock;
    }

    /// @dev Obtain the stake token fees (if any) earned by reflect token
    function getStakeTokenFeeBalance() public view returns (uint256) {
        return totalStakeTokenBalance().sub(totalStaked);
    }

    /// @dev Obtain the stake balance of this contract
    /// @return wei balace of contract
    function totalStakeTokenBalance() public view returns (uint256) {
        // Return BEO20 balance
        return stakeToken.balanceOf(address(this));
    }

    /// @dev Remove excess stake tokens earned by reflect fees
    function skimStakeTokenFees() external onlyOwner {
        uint256 stakeTokenFeeBalance = getStakeTokenFeeBalance();
        stakeToken.safeTransfer(msg.sender, stakeTokenFeeBalance);
        emit SkimStakeTokenFees(msg.sender, stakeTokenFeeBalance);
    }

    /* Emergency Functions */

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

    // Withdraw reward. EMERGENCY ONLY.
    function emergencyRewardWithdraw(uint256 _amount) external onlyOwner {
        require(_amount <= rewardBalance(), 'not enough rewards');
        // Withdraw rewards
        safeTransferReward(address(msg.sender), _amount);
        emit EmergencyRewardWithdraw(msg.sender, _amount);
    }

}

File 2 of 7 : Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

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

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

import '../GSN/Context.sol';

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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 {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity >=0.4.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 5 of 7 : IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 6 of 7 : SafeBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './IBEP20.sol';
import '../../math/SafeMath.sol';
import '../../utils/Address.sol';

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: 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(IBEP20 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, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}

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

pragma solidity ^0.6.2;

/**
 * @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 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');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        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
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_stakeToken","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyRewardWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SkimStakeTokenFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeTokenFeeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardTokenPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"setBonusEndBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skimStakeTokenFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakeTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600455600060075534801561001a57600080fd5b5060405161189a38038061189a833981810160405260a081101561003d57600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100666101d6565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b039788169081178355600280548316978916979097179096556003949094556008839055600991909155604080516080810182529485526103e86020860181815291860193845260006060870181815260058054958601815590915295517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db06004909402938401805490961697169690961790935591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db282015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3909101556007556101da565b3390565b6116b1806101e96000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638bdf67f2116100de578063aa5c3ab411610097578063db2e21bc11610071578063db2e21bc1461039d578063f2fde38b146103a5578063f40f0f52146103cb578063f7c618c1146103f15761018e565b8063aa5c3ab41461035b578063b6b55f2514610363578063bb872b4a146103805761018e565b80638bdf67f2146102e65780638da5cb5b146103035780638dbb1e3a1461030b578063970db7fa1461032e5780639e0af23414610336578063a49ceb19146103535761018e565b806351eb05a61161014b578063715018a611610125578063715018a6146102c6578063812bc708146102ce578063817b1cd2146102d65780638ae39cac146102de5761018e565b806351eb05a61461027d57806351ed6a301461029a578063630b5ba1146102be5761018e565b80631526fe27146101935780631959a002146101e05780631aed65531461021f5780632e1a7d4d146102395780633279beab1461025857806348cd4cb114610275575b600080fd5b6101b0600480360360208110156101a957600080fd5b50356103f9565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b610206600480360360208110156101f657600080fd5b50356001600160a01b031661043a565b6040805192835260208301919091528051918290030190f35b610227610453565b60408051918252519081900360200190f35b6102566004803603602081101561024f57600080fd5b5035610459565b005b6102566004803603602081101561026e57600080fd5b50356105fb565b6102276106e7565b6102566004803603602081101561029357600080fd5b50356106ed565b6102a26107b4565b604080516001600160a01b039092168252519081900360200190f35b6102566107c3565b6102566107e6565b610227610888565b61022761089d565b6102276108a3565b610256600480360360208110156102fc57600080fd5b50356108a9565b6102a2610936565b6102276004803603604081101561032157600080fd5b5080359060200135610945565b610256610985565b6102566004803603602081101561034c57600080fd5b5035610a3a565b610227610ad7565b610227610b53565b6102566004803603602081101561037957600080fd5b5035610b9e565b6102566004803603602081101561039657600080fd5b5035610d0d565b610256610d6a565b610256600480360360208110156103bb57600080fd5b50356001600160a01b0316610e0e565b610227600480360360208110156103e157600080fd5b50356001600160a01b0316610e6f565b6102a2610f70565b6005818154811061040657fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b6006602052600090815260409020805460019091015482565b60095481565b6000600560008154811061046957fe5b60009182526020808320338452600690915260409092208054600490920290920192508311156104d5576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6104df60006106ed565b6000610520826001015461051a68327cb2734119d3b7a9601e1b61051487600301548760000154610f7f90919063ffffffff16565b90610fdf565b90611021565b9050801561055d576000610532610b53565b9050801561055b57808211156105515761054c3382611063565b61055b565b61055b3383611063565b505b831561059857815461056f9085611021565b82558254610587906001600160a01b03163386611076565b6004546105949085611021565b6004555b600383015482546105ba9168327cb2734119d3b7a9601e1b9161051491610f7f565b600183015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b6106036110cd565b6000546001600160a01b03908116911614610653576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b61065b610b53565b8111156106a4576040805162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f756768207265776172647360701b604482015290519081900360640190fd5b6106ae3382611063565b60408051828152905133917f2d4434bb59801e733e9ce3df40b0c5518861a5fcdeec1906e83e03c755872b42919081900360200190a250565b60085481565b6000600582815481106106fc57fe5b906000526020600020906004020190508060020154431161071d57506107b1565b60045461073057436002909101556107b1565b6000610740826002015443610945565b9050600061076d600754610514856001015461076760035487610f7f90919063ffffffff16565b90610f7f565b90506107a261079760045461051468327cb2734119d3b7a9601e1b85610f7f90919063ffffffff16565b6003850154906110d1565b60038401555050436002909101555b50565b6001546001600160a01b031681565b60055460005b818110156107e2576107da816106ed565b6001016107c9565b5050565b6107ee6110cd565b6000546001600160a01b0390811691161461083e576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061089860045461051a610ad7565b905090565b60045481565b60035481565b600081116108e85760405162461bcd60e51b81526004018080602001828103825260258152602001806116276025913960400191505060405180910390fd5b600254610900906001600160a01b031633308461112b565b6040805182815290517f754fe3a3c69256b66ca56365fda4bbf3299d7c94038c105ffd43fb4b37f56db69181900360200190a150565b6000546001600160a01b031690565b600060095482116109615761095a8284611021565b905061097f565b60095483106109725750600061097f565b60095461095a9084611021565b92915050565b61098d6110cd565b6000546001600160a01b039081169116146109dd576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b60006109e7610888565b600154909150610a01906001600160a01b03163383611076565b60408051828152905133917feb4e6a6a8d3c8edbd6ef48316a3670cfa0e6374eebe3f555e620399f866d2f32919081900360200190a250565b610a426110cd565b6000546001600160a01b03908116911614610a92576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b6009548111610ad25760405162461bcd60e51b815260040180806020018281038252603081526020018061164c6030913960400191505060405180910390fd5b600955565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b2257600080fd5b505afa158015610b36573d6000803e3d6000fd5b505050506040513d6020811015610b4c57600080fd5b5051905090565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b2257600080fd5b60006005600081548110610bae57fe5b60009182526020808320338452600690915260408320600490920201925090610bd6816106ed565b815415610c51576000610c12836001015461051a68327cb2734119d3b7a9601e1b61051488600301548860000154610f7f90919063ffffffff16565b90508015610c4f576000610c24610b53565b90508015610c4d5780821115610c4357610c3e3382611063565b610c4d565b610c4d3383611063565b505b505b8315610caa576000610c61610ad7565b8454909150610c7b906001600160a01b031633308861112b565b610c878161051a610ad7565b8354909250610c9690836110d1565b8355600454610ca590836110d1565b600455505b60038301548254610ccc9168327cb2734119d3b7a9601e1b9161051491610f7f565b600183015560408051828152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a250505050565b610d156110cd565b6000546001600160a01b03908116911614610d65576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b600355565b60006005600081548110610d7a57fe5b600091825260208083203380855260069092526040909320805460049093029093018054909450610db8926001600160a01b03919091169190611076565b8054600454610dc691611021565b600455600080825560018201819055604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b610e166110cd565b6000546001600160a01b03908116911614610e66576040805162461bcd60e51b81526020600482018190526024820152600080516020611607833981519152604482015290519081900360640190fd5b6107b18161118b565b6000806005600081548110610e8057fe5b600091825260208083206001600160a01b038716845260069091526040909220600360049092029092019081015460028201549193509043118015610ec6575060045415155b15610f38576000610edb846002015443610945565b90506000610f02600754610514876001015461076760035487610f7f90919063ffffffff16565b9050610f33610f2c60045461051468327cb2734119d3b7a9601e1b85610f7f90919063ffffffff16565b84906110d1565b925050505b610f67826001015461051a68327cb2734119d3b7a9601e1b610514858760000154610f7f90919063ffffffff16565b95945050505050565b6002546001600160a01b031681565b600082610f8e5750600061097f565b82820282848281610f9b57fe5b0414610fd85760405162461bcd60e51b81526004018080602001828103825260218152602001806115e66021913960400191505060405180910390fd5b9392505050565b6000610fd883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061122b565b6000610fd883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506112cd565b6002546107e2906001600160a01b031683835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110c8908490611327565b505050565b3390565b600082820183811015610fd8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611185908590611327565b50505050565b6001600160a01b0381166111d05760405162461bcd60e51b81526004018080602001828103825260268152602001806115c06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081836112b75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561127c578181015183820152602001611264565b50505050905090810190601f1680156112a95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816112c357fe5b0495945050505050565b6000818484111561131f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561127c578181015183820152602001611264565b505050900390565b606061137c826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113d89092919063ffffffff16565b8051909150156110c85780806020019051602081101561139b57600080fd5b50516110c85760405162461bcd60e51b815260040180806020018281038252602a815260200180611596602a913960400191505060405180910390fd5b60606113e784846000856113ef565b949350505050565b60606113fa8561155c565b61144b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061148a5780518252601f19909201916020918201910161146b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146114ec576040519150601f19603f3d011682016040523d82523d6000602084013e6114f1565b606091505b509150915081156115055791506113e79050565b8051156115155780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561127c578181015183820152602001611264565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e757505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724465706f7369742076616c7565206d7573742062652067726561746572207468616e20302e6e657720626f6e757320656e6420626c6f636b206d7573742062652067726561746572207468616e2063757272656e74a264697066735822122098740397d32256487218e06780133d1c9982b023ff08c988b82efd260d4704f164736f6c634300060c0033000000000000000000000000ddb3bd8645775f59496c821e4f55a7ea6a6dc299000000000000000000000000da20c8a5c3b1ab48e31ba6e43f0f2830e50218d80000000000000000000000000000000000000000000000000000034466411a2600000000000000000000000000000000000000000000000000000000006c7e7d0000000000000000000000000000000000000000000000000000000000940b7d

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.