Contract 0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb

 
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x31ea905d7ee30d5177763f157e4a18f33be82f36b86fcf6846d5b8d976f7416794938002021-07-26 12:32:162 days 13 hrs ago0x19323dff9e686c75ee3dcbe18dd13db6b6ef0e2c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
0x54faba61eef1fc701fee420890bfe3056e1438b13d0ee9a9b9c05de53fe1592094761032021-07-25 21:30:543 days 4 hrs ago0xc8507ba9c013fc5611a69cbd13eaa95ead0feb7c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
0x01e66efe9ccac13dc2c786b934b59a750b79936e2c7863714929c0f632d8984794760272021-07-25 21:27:063 days 4 hrs ago0xc8507ba9c013fc5611a69cbd13eaa95ead0feb7c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000271295
0xd2a37db57b209cc784473bbde1cdc5988b2956c7db5aae52f2ddf2d3ce87507394759992021-07-25 21:25:423 days 4 hrs ago0xc8507ba9c013fc5611a69cbd13eaa95ead0feb7c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000271295
0xcbd0f6027141d17f6075ddbd39115dcd2b395ea7cbd5cb696982e185b087359494757022021-07-25 21:10:273 days 4 hrs ago0xc8507ba9c013fc5611a69cbd13eaa95ead0feb7c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0x2647e2774c6d57552b4a4cb164dfc315f3b0cbcbd8aa60446906363e24b1eb1894677252021-07-25 14:22:223 days 11 hrs ago0x32a06c68608e0060da565c9bbfcdc9c0179efaae IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499275
0x5bc75f853daa25bec40b8a4b6c642bcda2c775443e6d5da9b49875433eb0fd0b94583732021-07-25 6:30:373 days 19 hrs ago0x22d15e7ff2d6d5910388191791d6e6ec19c19792 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
0x5fee2c5935735c69351b8f4623493caf55ab1d912fb0fb70fb9469938713d77c94533642021-07-25 2:19:293 days 23 hrs ago0x19323dff9e686c75ee3dcbe18dd13db6b6ef0e2c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0xc7969722873f56a014fffbf549eaf5ca4cb857d6490f26a5ea7c8cc82ac4b1b194527612021-07-25 1:49:143 days 23 hrs ago0x19323dff9e686c75ee3dcbe18dd13db6b6ef0e2c IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000272115
0x071962c82530e3d112c18706e20f54c3b1c6568696abd1cb0a462b7b5fecf15b94519832021-07-25 1:10:204 days 24 mins ago0x22d15e7ff2d6d5910388191791d6e6ec19c19792 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0x938977ad1e014ba3f5a0ebe838682648739edb27f780ee20874f4954a00df6f394519282021-07-25 1:07:354 days 27 mins ago0x22d15e7ff2d6d5910388191791d6e6ec19c19792 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000272115
0xf43dda9c46dc9fe051a257ddae602ba697f8ad3a6d4b6869ebeb37317b1b3c3b94420712021-07-24 16:53:134 days 8 hrs ago0xa93e1401f3ebabcff60140f5e853ddc3618d0d26 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.00011886
0x650fb21d0448cfaed29b064578dda54813dfde5f75604decbfcfaebe4cedc68a94420702021-07-24 16:53:104 days 8 hrs ago0xa93e1401f3ebabcff60140f5e853ddc3618d0d26 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
0xf4e5a30aeac0030bec45e0aec7883e476abc802f9013d9aef6c0d57171bf940094418662021-07-24 16:42:224 days 8 hrs ago0xa93e1401f3ebabcff60140f5e853ddc3618d0d26 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0x3a36378df3feee4c4aebdfb5426f8fd984a9a7e71126546708172c3afa99ce9894244012021-07-24 1:58:574 days 23 hrs ago0xc9bd4a795d421da3e3e9973161cac3fd12ff0d53 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.00046779
0x22776b6c5ada453f0293eec43f8410d2edcdc65f0e52a3ec20df8d508798762b94172612021-07-23 20:01:485 days 5 hrs ago0x60e2e2afe3e13b8f4f741ddb2d90d0c0a1e8fdc4 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.00046242
0x28bda1a8f744c8e7ceb6701c211120779c0d46da1208d4367ca5d81e5595fd1293867662021-07-22 18:29:236 days 7 hrs ago0x097ca1d29fd274ab97bb75481fa3c2f89c15e1f1 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207255
0x24f3c1502f00af9da59374615b374fef66f668a2e2bb74fd1b8a0e7daedc766193860752021-07-22 17:54:506 days 7 hrs ago0x097ca1d29fd274ab97bb75481fa3c2f89c15e1f1 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499275
0x89d5331c7b41832c5cb922cd14ace803deff3ab73153d1fb7b7faf734aa5b1e093800032021-07-22 12:51:116 days 12 hrs ago0x298a775dd09f9b617acb58e53916ee91e408ed11 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
0x57b8dbdd5df34dc8a7a24ed8e81c482e2951051ca30d7a3090c3f784b96780e593662012021-07-22 1:21:017 days 13 mins ago0x298a775dd09f9b617acb58e53916ee91e408ed11 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0x1d3316157936361d2a2bfea5d272be0d533bd112f19628567bee64c099ef35ec93574092021-07-21 18:01:087 days 7 hrs ago0x1208371f6e57b125d373f2c052d94b6d311d4e64 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000391655
0x2a58336a407b56236ab649dcd5bd45bfa3507044fe123a8a60553b99a7c3acf193404582021-07-21 3:53:137 days 21 hrs ago0x8e8d5c1ad7983f9967b49accb7cbdacd08150d57 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.00020641
0xa395998127c6479c9aee6d3df010df1bda081f0721726d1cd027bbd32846735c93386532021-07-21 2:22:587 days 23 hrs ago0x8e8d5c1ad7983f9967b49accb7cbdacd08150d57 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000499335
0x247500b754c68ca9416ce7cf9f70f4536fc0ddb04528aca79c4a1dfb6e14869b93117932021-07-20 3:59:188 days 21 hrs ago0xddcc6a7c9f53a437f4d6515bdf058b029e8e1169 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.00046785
0xab8b32ac6f6a52530be812351ea809a4dcb48266a48b3fa52dd5b5117f326d5e92127242021-07-16 17:22:1312 days 8 hrs ago0xdee5543214ea7c521eff6725efa69de904c434f2 IN  0x2dc2d579e0e0ea9ab2ef5cca4e813ca7769148cb0 BNB0.000207315
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Distributor

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : Distributor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.6;

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

// Note that this pool has no minter key of BITI
// Instead, rewards will be sent to this pool at the beginning.
contract Distributor {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

    // 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 {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. BITI to distribute per block.
        uint256 lastRewardBlock; // Last block number that BITI distribution occurs.
        uint256 accBitiPerShare; // Accumulated BITI per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public immutable biti;

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

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

    // The block number when BITI mining starts.
    uint256 public startBlock;
    uint256 public endBlock;
    uint256 public runningBlocks = 10596200; // 367 days (reduced by 1 day)
    uint256 public constant TOTAL_REWARDS = 39890 ether; // (reduced by 1 day)
    uint256 public bitiPerBlock = TOTAL_REWARDS / 10596200; // (reduced by 1 day)

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

    constructor(
        address _biti,
        uint256 _startBlock
    ) {
        require(block.number < _startBlock, "late");
        biti = IERC20(_biti);
        startBlock = _startBlock;
        endBlock = startBlock + runningBlocks;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "Distributor: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _lpToken) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].lpToken != _lpToken, "Distributor: existing pool?");
        }
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        bool _withUpdate,
        uint256 _lastRewardBlock
    ) public onlyOperator {
        checkPoolDuplicate(_lpToken);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.number < startBlock) {
            // chef is sleeping
            if (_lastRewardBlock == 0) {
                _lastRewardBlock = startBlock;
            } else {
                if (_lastRewardBlock < startBlock) {
                    _lastRewardBlock = startBlock;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardBlock == 0 || _lastRewardBlock < block.number) {
                _lastRewardBlock = block.number;
            }
        }
        bool _isStarted =
        (_lastRewardBlock <= startBlock) ||
        (_lastRewardBlock <= block.number);
        poolInfo.push(PoolInfo({
            lpToken : _lpToken,
            allocPoint : _allocPoint,
            lastRewardBlock : _lastRewardBlock,
            accBitiPerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

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

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _from, uint256 _to) public view returns (uint256) {
        if (_from >= _to) return 0;
        if (_to >= endBlock) {
            if (_from >= endBlock) return 0;
            if (_from <= startBlock) return endBlock.sub(startBlock).mul(bitiPerBlock);
            return endBlock.sub(_from).mul(bitiPerBlock);
        } else {
            if (_to <= startBlock) return 0;
            if (_from <= startBlock) return _to.sub(startBlock).mul(bitiPerBlock);
            return _to.sub(_from).mul(bitiPerBlock);
        }
    }

    // View function to see pending BITI on frontend.
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBitiPerShare = pool.accBitiPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
            uint256 _bitiReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accBitiPerShare = accBitiPerShare.add(_bitiReward.mul(1e18).div(lpSupply));
        }
        return user.amount.mul(accBitiPerShare).div(1e18).sub(user.rewardDebt);
    }
    // View function to see user balance on frontend.
    function balanceOf(uint256 _pid, address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_pid][_user];
        return user.amount;
    }

    // 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];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
            uint256 _bitiReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accBitiPerShare = pool.accBitiPerShare.add(_bitiReward.mul(1e18).div(lpSupply));
        }
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accBitiPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeBitiTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
                pool.lpToken.safeTransferFrom(_sender, address(this), _amount);
                user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBitiPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accBitiPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeBitiTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(_sender, _amount);
        } else {
            // withdraws all
            _amount = user.amount;
            user.amount = 0;
            pool.lpToken.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBitiPerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

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

    // Safe biti transfer function, just in case if rounding error causes pool to not have enough BITI.
    function safeBitiTransfer(address _to, uint256 _amount) internal {
        uint256 _bitiBal = biti.balanceOf(address(this));
        if (_bitiBal > 0) {
            if (_amount > _bitiBal) {
                biti.safeTransfer(_to, _bitiBal);
            } else {
                biti.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }
}

File 2 of 5 : 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 5 : 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 5 : 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 5 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_biti","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"biti","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bitiPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBitiPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","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":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060035562a1af6860065562a1af6869087270f4a5b8dc0800008161002657fe5b0460075534801561003657600080fd5b506040516123d73803806123d78339818101604052604081101561005957600080fd5b8101908080519060200190929190805190602001909291905050508043106100e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f6c6174650000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060048190555060065460045401600581905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505060805160601c6122356101a26000398061133652806119fc5280611ad65280611b2652506122356000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80635312ea8e116100b857806393f1a40b1161007c57806393f1a40b1461041e57806396805e5414610487578063b3ab15fb146104eb578063ca4993721461052f578063d18df53c14610563578063e2bbb158146105c557610137565b80635312ea8e14610376578063570ca735146103a4578063630b5ba1146103d8578063860d484c146103e25780638d9d08191461040057610137565b8063231f0c6a116100ff578063231f0c6a146102445780633656eec214610290578063441a3e70146102f257806348cd4cb11461032a57806351eb05a61461034857610137565b8063083c63231461013c57806309cf60911461015a5780631526fe271461017857806317caf6f1146101ee5780631ab06ee51461020c575b600080fd5b6101446105fd565b6040518082815260200191505060405180910390f35b610162610603565b6040518082815260200191505060405180910390f35b6101a46004803603602081101561018e57600080fd5b8101908080359060200190929190505050610611565b604051808673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200183815260200182151581526020019550505050505060405180910390f35b6101f6610684565b6040518082815260200191505060405180910390f35b6102426004803603604081101561022257600080fd5b81019080803590602001909291908035906020019092919050505061068a565b005b61027a6004803603604081101561025a57600080fd5b8101908080359060200190929190803590602001909291905050506107ac565b6040518082815260200191505060405180910390f35b6102dc600480360360408110156102a657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108bf565b6040518082815260200191505060405180910390f35b6103286004803603604081101561030857600080fd5b810190808035906020019092919080359060200190929190505050610922565b005b610332610c3f565b6040518082815260200191505060405180910390f35b6103746004803603602081101561035e57600080fd5b8101908080359060200190929190505050610c45565b005b6103a26004803603602081101561038c57600080fd5b8101908080359060200190929190505050610e54565b005b6103ac610f88565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103e0610fac565b005b6103ea610fd9565b6040518082815260200191505060405180910390f35b610408610fdf565b6040518082815260200191505060405180910390f35b61046a6004803603604081101561043457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fe5565b604051808381526020018281526020019250505060405180910390f35b6104e96004803603608081101561049d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919080359060200190929190505050611016565b005b61052d6004803603602081101561050157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061124d565b005b610537611334565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105af6004803603604081101561057957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611358565b6040518082815260200191505060405180910390f35b6105fb600480360360408110156105db57600080fd5b810190808035906020019092919080359060200190929190505050611590565b005b60055481565b69087270f4a5b8dc08000081565b6001818154811061062157600080fd5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60035481565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461072e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806121d96027913960400191505060405180910390fd5b610736610fac565b60006001838154811061074557fe5b906000526020600020906005020190508060040160009054906101000a900460ff161561079e576107978261078983600101546003546117de90919063ffffffff16565b61186190919063ffffffff16565b6003819055505b818160010181905550505050565b60008183106107be57600090506108b9565b60055482106108445760055483106107d957600090506108b9565b60045483116108145761080d6007546107ff6004546005546117de90919063ffffffff16565b6118e990919063ffffffff16565b90506108b9565b61083d60075461082f856005546117de90919063ffffffff16565b6118e990919063ffffffff16565b90506108b9565b600454821161085657600090506108b9565b600454831161088f5761088860075461087a600454856117de90919063ffffffff16565b6118e990919063ffffffff16565b90506108b9565b6108b66007546108a885856117de90919063ffffffff16565b6118e990919063ffffffff16565b90505b92915050565b6000806002600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000015491505092915050565b600033905060006001848154811061093657fe5b9060005260206000209060050201905060006002600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610a14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610a1d85610c45565b6000610a6a8260010154610a5c670de0b6b3a7640000610a4e876003015487600001546118e990919063ffffffff16565b61196f90919063ffffffff16565b6117de90919063ffffffff16565b90506000811115610ace57610a7f84826119f8565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b6000851115610b4a57610aee8583600001546117de90919063ffffffff16565b8260000181905550610b4584868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b719092919063ffffffff16565b610bab565b8160000154945060008260000181905550610baa84868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b719092919063ffffffff16565b5b610be0670de0b6b3a7640000610bd2856003015485600001546118e990919063ffffffff16565b61196f90919063ffffffff16565b8260010181905550858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040518082815260200191505060405180910390a3505050505050565b60045481565b600060018281548110610c5457fe5b9060005260206000209060050201905080600201544311610c755750610e51565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d0257600080fd5b505afa158015610d16573d6000803e3d6000fd5b505050506040513d6020811015610d2c57600080fd5b810190808051906020019092919050505090506000811415610d58574382600201819055505050610e51565b8160040160009054906101000a900460ff16610dab5760018260040160006101000a81548160ff021916908315150217905550610da4826001015460035461186190919063ffffffff16565b6003819055505b60006003541115610e45576000610dc68360020154436107ac565b90506000610df5600354610de78660010154856118e990919063ffffffff16565b61196f90919063ffffffff16565b9050610e3a610e2784610e19670de0b6b3a7640000856118e990919063ffffffff16565b61196f90919063ffffffff16565b856003015461186190919063ffffffff16565b846003018190555050505b43826002018190555050505b50565b600060018281548110610e6357fe5b9060005260206000209060050201905060006002600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550610f3333828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b719092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a350505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600180549050905060005b81811015610fd557610fca81610c45565b806001019050610fb9565b5050565b60075481565b60065481565b6002602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806121d96027913960400191505060405180910390fd5b6110c383611c13565b81156110d2576110d1610fac565b5b6004544310156111055760008114156110ef576004549050611100565b6004548110156110ff5760045490505b5b61111d565b600081148061111357504381105b1561111c574390505b5b6000600454821115806111305750438211155b905060016040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff16815260200187815260200184815260200160008152602001831515815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550505080156112465761123f8560035461186190919063ffffffff16565b6003819055505b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806121d96027913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806001848154811061136857fe5b9060005260206000209060050201905060006002600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561146257600080fd5b505afa158015611476573d6000803e3d6000fd5b505050506040513d602081101561148c57600080fd5b810190808051906020019092919050505090508360020154431180156114b3575060008114155b1561153d5760006114c88560020154436107ac565b905060006114f76003546114e98860010154856118e990919063ffffffff16565b61196f90919063ffffffff16565b90506115386115298461151b670de0b6b3a7640000856118e990919063ffffffff16565b61196f90919063ffffffff16565b8561186190919063ffffffff16565b935050505b6115848360010154611576670de0b6b3a76400006115688688600001546118e990919063ffffffff16565b61196f90919063ffffffff16565b6117de90919063ffffffff16565b94505050505092915050565b60003390506000600184815481106115a457fe5b9060005260206000209060050201905060006002600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061161185610c45565b6000816000015411156116d157600061166b826001015461165d670de0b6b3a764000061164f876003015487600001546118e990919063ffffffff16565b61196f90919063ffffffff16565b6117de90919063ffffffff16565b905060008111156116cf5761168084826119f8565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b505b600084111561174b5761172b8330868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d18909392919063ffffffff16565b61174284826000015461186190919063ffffffff16565b81600001819055505b611780670de0b6b3a7640000611772846003015484600001546118e990919063ffffffff16565b61196f90919063ffffffff16565b8160010181905550848373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040518082815260200191505060405180910390a35050505050565b600082821115611856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6000808284019050838110156118df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000808314156118fc5760009050611969565b600082840290508284828161190d57fe5b0414611964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061218e6021913960400191505060405180910390fd5b809150505b92915050565b60008082116119e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b8183816119ef57fe5b04905092915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611a8157600080fd5b505afa158015611a95573d6000803e3d6000fd5b505050506040513d6020811015611aab57600080fd5b810190808051906020019092919050505090506000811115611b6c5780821115611b1f57611b1a83827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b719092919063ffffffff16565b611b6b565b611b6a83837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b719092919063ffffffff16565b5b5b505050565b611c0e8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611dd9565b505050565b6000600180549050905060005b81811015611d13578273ffffffffffffffffffffffffffffffffffffffff1660018281548110611c4c57fe5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611d08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4469737472696275746f723a206578697374696e6720706f6f6c3f000000000081525060200191505060405180910390fd5b806001019050611c20565b505050565b611dd3846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611dd9565b50505050565b6000611e3b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ec89092919063ffffffff16565b9050600081511115611ec357808060200190516020811015611e5c57600080fd5b8101908080519060200190929190505050611ec2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806121af602a913960400191505060405180910390fd5b5b505050565b6060611ed78484600085611ee0565b90509392505050565b606082471015611f3b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806121686026913960400191505060405180910390fd5b611f4485612088565b611fb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106120055780518252602082019150602081019050602083039250611fe2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612067576040519150601f19603f3d011682016040523d82523d6000602084013e61206c565b606091505b509150915061207c82828661209b565b92505050949350505050565b600080823b905060008111915050919050565b606083156120ab57829050612160565b6000835111156120be5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561212557808201518184015260208101905061210a565b50505050905090810190601f1680156121525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644469737472696275746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72a26469706673582212207b200e4bc5e60bbfaee7a8bacadc4e0f3d4a9798883c36b5cae187545f54bfd064736f6c63430007060033000000000000000000000000a25dab5b75ac0e0738e58e49734295bad43d73f100000000000000000000000000000000000000000000000000000000005e4927

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

000000000000000000000000a25dab5b75ac0e0738e58e49734295bad43d73f100000000000000000000000000000000000000000000000000000000005e4927

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a25dab5b75ac0e0738e58e49734295bad43d73f1
Arg [1] : 00000000000000000000000000000000000000000000000000000000005e4927


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.