Contract 0xdb405d4504c50701a5601084e9914768f518f3e3

Contract Overview

Balance:
0 BNB
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x26f1d5becede783c6a7bea67c989055436f3bd95b5d2a6ca1194c828f08e5c430x6080604096656812021-06-12 10:39:28167 days 19 hrs ago0x4320da7d34a6215fb46aed39dfa947e0b5f79b9f IN  Contract Creation0 BNB0.03493556
[ Download CSV Export 
Latest 7 internal transactions
Parent Txn Hash Block From To Value
0xac0bb7677bcce03ff2d9c6be1b3bac49721cbd9914a445a5f3e19e49671c906696657912021-06-12 10:44:58167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0xa4a65f349f656808b902e49b3d00369bab61a2b35f180885c9bfeeb04689738c96657852021-06-12 10:44:40167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0xa8e260366f4498ee39c81f5b1c5c18e51e9869fcc8e28e3cd8aeb3a5066ff7fd96657712021-06-12 10:43:58167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0x60cf0f66e6e5427da8277b2f3e0808f813c4e9f300107cde55f5c8ee74eb34e696657352021-06-12 10:42:10167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0x8aad049865aa6feb05f71a211b4cb2b014dd64de1c2f918b2a7871b9a5b74a5396657202021-06-12 10:41:25167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0xb9a97f153c8d83b96a895623f87db994499a2e32ab4c15c31b3abf2acc48f17196657122021-06-12 10:41:01167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
0xfc65355ab380b14960eabf028aeeb93cc982af37a9f304fd627dcf8ac3da41a796657052021-06-12 10:40:40167 days 19 hrs ago 0xef932925cb45cb4a07c767c23aab5c9e1fb93c74 0xdb405d4504c50701a5601084e9914768f518f3e30 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LaunchMVP

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 : LaunchMVP.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

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

contract LaunchMVP is LaunchMVPOwnable, Initializable {
    using SafeMath for uint256;
    using SafeMath for uint16;
    using SafeERC20 for IERC20;

    IERC20 public MVP;
    IERC20 public MMP;
    IERC20 public WMMP;
    IERC20 public rewardToken;
    IERC20 public BUSD;

    uint256 public constant totalSupplyMVP = 120000000 * 1e18;
    uint256 public constant mvpPrice = 125 * 1e18;
    uint256 public totalSold = 1500000 * 1e18;
    uint256 public totalMVP;
    uint256 public totalCommit;
    uint256 public totalUser;
    uint256 public totalClaim;
    uint256 public startTime;
    uint256 public expireTime;
    uint256 public claimTime;

    uint256[6] public hardCap;
    uint256[6] public tierAllowance;

    mapping(address => uint256) public userCommit;
    mapping(uint256 => address) public userIndex;
    event commitEvent(address indexed user, uint256 balance);
    event claimEvent(address indexed user, uint256 mvpAmount);
    event claimInfoEvent(address indexed user, uint256 mvpAmount, uint256 redeemBusd);

    constructor() public {

    }

    function initialize(
        IERC20 _MVP,
        IERC20 _MMP,
        IERC20 _WMMP,
        IERC20 _rewardToken,
        IERC20 _BUSD,
        address _owner,
        uint256 _startTime,
        uint256 _expireTime,
        uint256 _claimTime
    ) public initializer {
        MVP = IERC20(_MVP);
        MMP = IERC20(_MMP);
        WMMP = IERC20(_WMMP);
        rewardToken = IERC20(_rewardToken);
        BUSD = IERC20(_BUSD);
        startTime = _startTime;
        expireTime = _expireTime;
        claimTime = _claimTime;
        hardCap[0] = 0;
        hardCap[1] = 300000 * 1e18;
        hardCap[2] = 75000 * 1e18;
        hardCap[3] = 7500 * 1e18;
        hardCap[4] = 750 * 1e18;
        hardCap[5] = 75 * 1e18;
        tierAllowance[0] = 0;
        tierAllowance[1] = 1000000 * 1e18;
        tierAllowance[2] = 450000 * 1e18;
        tierAllowance[3] = 80000 * 1e18;
        tierAllowance[4] = 10000 * 1e18;
        tierAllowance[5] = 1000 * 1e18;
        initOwner(_owner);
    }

    function setHardCap(uint256 _index, uint256 _amount) external onlyOwner {
        hardCap[_index] = _amount;
    }

    function setTierAllowance(uint256 _index, uint256 _amount) external onlyOwner {
        tierAllowance[_index] = _amount;
    }

    function setBusd(IERC20 _tokenAddress) external onlyOwner {
        BUSD = _tokenAddress;
    }

    function setRewardToken(IERC20 _tokenAddress) external onlyOwner {
        rewardToken = _tokenAddress;
    }

    function setMVP(IERC20 _tokenAddress) external onlyOwner {
        MVP = _tokenAddress;
    }

    function devWithdrawBUSD(uint256 _amount) external onlyOwner {
        BUSD.safeTransfer(address(msg.sender), _amount);
    }

    function devWithdrawMVP(uint256 _amount) external onlyOwner {
        MVP.safeTransfer(address(msg.sender), _amount);
    }

    function devWithdrawMMPMVP(uint256 _amount) external onlyOwner {
        rewardToken.safeTransfer(address(msg.sender), _amount);
    }

    function devWithdrawAll() external onlyOwner {
        BUSD.safeTransfer(address(msg.sender), BUSD.balanceOf(address(this)));
        MVP.safeTransfer(address(msg.sender), MVP.balanceOf(address(this)));
        rewardToken.safeTransfer(address(msg.sender), rewardToken.balanceOf(address(this)));
    }

    function setTierAllowance(uint8 _tier, uint256 allowance) external onlyOwner {
        tierAllowance[_tier] = allowance;
    }

    function setTotalMVP(uint256 _total) external onlyOwner {
        totalMVP = _total;
    }

    function setTotalSold(uint256 _total) external onlyOwner {
        totalSold = _total;
    }

    function setStartTime(uint256 _startTime) external onlyOwner {
        startTime = _startTime;
    }

    function setExpireTime(uint256 _expireTime) external onlyOwner {
        expireTime = _expireTime;
    }

    function setClaimTime(uint256 _claimTime) external onlyOwner {
        claimTime = _claimTime;
    }

    function getBalance(address _address) public view returns(uint256) {
        uint256 mmpBalance = MMP.balanceOf(_address);
        uint256 wmmpBalance = WMMP.balanceOf(_address);
        return mmpBalance.add(wmmpBalance);
    }

    function checkAllowance(uint256 _mmpAmount) public view returns(uint256) {
        uint256 allowance;

        if(_mmpAmount >= tierAllowance[1]) {
            allowance = hardCap[1];
        } else if(_mmpAmount >= tierAllowance[2]) {
            allowance = hardCap[2];
        } else if(_mmpAmount >= tierAllowance[3]) {
            allowance = hardCap[3];
        } else if(_mmpAmount >= tierAllowance[4]) {
            allowance = hardCap[4];
        } else if(_mmpAmount >= tierAllowance[5]) {
            allowance = hardCap[5];
        }
        return allowance;
    }    

    function commit(uint256 _amount) public {
        require(startTime <= block.timestamp, "Wait!");
        require(expireTime >= block.timestamp, "Expire!");
        require(_amount > 0, "Insufficient BUSD");
        uint256 _userCommit = userCommit[msg.sender];

        uint256 _MMPbalance = getBalance(msg.sender);
        uint256 _busdAllowance = checkAllowance(_MMPbalance);
        require(_busdAllowance.sub(_userCommit) >= _amount, "Busd Over tier");
        totalCommit = totalCommit.add(_amount);
        if(_userCommit == 0) {
            userIndex[totalUser] = msg.sender;
            totalUser++;
        }
        userCommit[msg.sender] = _userCommit.add(_amount);
        BUSD.safeTransferFrom(address(msg.sender), address(this), _amount);
        emit commitEvent(msg.sender, _amount);
    }

    function claim() public {
        require(claimTime <= block.timestamp, "Wait!");
        uint256 _userCommit = userCommit[msg.sender].mul(1e18);
        require(_userCommit > 0, "No Commit");
        uint256 _qouta;
        uint256 _redeem;
        if(totalCommit > totalSold) {
            uint256 _qoutaBusd = _userCommit.mul(totalSold).div(totalCommit);
            _qouta = _qoutaBusd.div(mvpPrice.div(1e4));
            _redeem = _userCommit.sub(_qoutaBusd).div(1e18);
        } else {
            userCommit[msg.sender] = 0;
            _qouta = _userCommit.div(mvpPrice.div(1e4));
        }
        if(_qouta > 0) {
            totalMVP = totalMVP.sub(_qouta);
            MVP.safeTransfer(msg.sender, _qouta);
            rewardToken.safeTransfer(msg.sender, _qouta);
        }
        if(_redeem > 0) {
            userCommit[msg.sender] = 0;
            BUSD.safeTransfer(msg.sender, _redeem);
        }
        totalClaim++;
        emit claimEvent(msg.sender, _qouta);
    }

    function claimInfo(address _address) public view returns(uint256, uint256, uint256) {
        uint256 _userCommit = userCommit[_address].mul(1e18);
        uint256 _mvpPrice = mvpPrice;
        uint256 _qouta;
        uint256 _redeem;
        uint256 _qoutaBusd;
        if(totalCommit > totalSold) {
            _qoutaBusd = _userCommit.mul(totalSold).div(totalCommit);
            _qouta = _qoutaBusd.div(_mvpPrice.div(1e4));
            _redeem = _userCommit.sub(_qoutaBusd).div(1e18);
        } else {
            _qouta = _userCommit.div(_mvpPrice.div(1e4));
        }

        return (_qouta, _redeem, _qoutaBusd);
    }


}

File 2 of 7 : LaunchMVPOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

contract LaunchMVPOwnable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
    }

    function initOwner(address owner) internal {
        _owner = owner;
        emit OwnershipTransferred(address(0), owner);
    }

    /**
     * @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 == msg.sender, "Ownable: caller is not the owner");
        _;
    }

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

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

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

import "../utils/Address.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"mvpAmount","type":"uint256"}],"name":"claimEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"mvpAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemBusd","type":"uint256"}],"name":"claimInfoEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"commitEvent","type":"event"},{"inputs":[],"name":"BUSD","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MMP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MVP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WMMP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mmpAmount","type":"uint256"}],"name":"checkAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"claimInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"commit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devWithdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"devWithdrawBUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"devWithdrawMMPMVP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"devWithdrawMVP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"expireTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hardCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_MVP","type":"address"},{"internalType":"contract IERC20","name":"_MMP","type":"address"},{"internalType":"contract IERC20","name":"_WMMP","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"contract IERC20","name":"_BUSD","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_expireTime","type":"uint256"},{"internalType":"uint256","name":"_claimTime","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mvpPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"}],"name":"setBusd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimTime","type":"uint256"}],"name":"setClaimTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_expireTime","type":"uint256"}],"name":"setExpireTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setHardCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"}],"name":"setMVP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"setTierAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTierAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_total","type":"uint256"}],"name":"setTotalMVP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_total","type":"uint256"}],"name":"setTotalSold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tierAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCommit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMVP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyMVP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUser","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":"address","name":"","type":"address"}],"name":"userCommit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"userIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526a013da329b633647180000060065534801561001f57600080fd5b50611e458061002f6000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80638cbe3caf11610151578063d97830b1116100c3578063f1af82e711610087578063f1af82e71461060b578063f2fde38b1461062e578063f4f98ad514610654578063f7c618c114610671578063f8b2cb4f14610679578063fc5881901461069f57610269565b8063d97830b11461050f578063df5377fe14610553578063e1604b70146105b7578063eb062c94146105bf578063ee18c0db146105e557610269565b8063c295307811610115578063c2953078146104a0578063c37dfd6e146104a8578063c5db2b1d146104c5578063c80a64aa146104e2578063cf69bb63146104ea578063d2df43f1146104f257610269565b80638cbe3caf1461044e5780638da5cb5b1461046b5780639106d7ba14610473578063997caf541461047b578063a86de6941461048357610269565b80634e71d92d116101ea57806365ad9f34116101ae57806365ad9f34146103d0578063715018a6146103f3578063748aed0b146103fb57806378e97925146104035780637cdfd4481461040b5780638aee81271461042857610269565b80634e71d92d1461037e578063505814bc14610386578063547d18641461038e5780635a24b9061461039657806364816599146103b357610269565b8063378515981161023157806337851598146102f95780633e0a322d14610316578063421cc33714610333578063474fe06214610350578063484f4ea91461037657610269565b806304bd55661461026e5780631c58896d1461028d578063206eb6b7146102b357806327b3bf11146102d7578063310a1ee3146102f1575b600080fd5b61028b6004803603602081101561028457600080fd5b50356106a7565b005b61028b600480360360208110156102a357600080fd5b50356001600160a01b03166106f9565b6102bb610768565b604080516001600160a01b039092168252519081900360200190f35b6102df610777565b60408051918252519081900360200190f35b6102df61077d565b61028b6004803603602081101561030f57600080fd5b5035610783565b61028b6004803603602081101561032c57600080fd5b50356107d5565b61028b6004803603602081101561034957600080fd5b5035610827565b6102df6004803603602081101561036657600080fd5b50356001600160a01b0316610879565b6102bb61088b565b61028b61089a565b6102df610a9a565b6102df610aa9565b61028b600480360360208110156103ac57600080fd5b5035610aaf565b61028b600480360360208110156103c957600080fd5b5035610b01565b61028b600480360360408110156103e657600080fd5b5080359060200135610b68565b61028b610bc9565b6102df610c60565b6102df610c66565b61028b6004803603602081101561042157600080fd5b5035610c6c565b61028b6004803603602081101561043e57600080fd5b50356001600160a01b0316610cd0565b6102df6004803603602081101561046457600080fd5b5035610d3f565b6102bb610d53565b6102df610d62565b6102df610d68565b6102df6004803603602081101561049957600080fd5b5035610d6e565b61028b610dd5565b6102bb600480360360208110156104be57600080fd5b5035610fd4565b6102df600480360360208110156104db57600080fd5b5035610fef565b6102bb610ffc565b6102bb61100b565b61028b6004803603602081101561050857600080fd5b503561101a565b6105356004803603602081101561052557600080fd5b50356001600160a01b031661107e565b60408051938452602084019290925282820152519081900360600190f35b61028b600480360361012081101561056a57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135821691608082013581169160a08101359091169060c08101359060e0810135906101000135611143565b6102df611306565b61028b600480360360208110156105d557600080fd5b50356001600160a01b031661130c565b61028b600480360360408110156105fb57600080fd5b5060ff813516906020013561137b565b61028b6004803603604081101561062157600080fd5b50803590602001356113d9565b61028b6004803603602081101561064457600080fd5b50356001600160a01b0316611434565b61028b6004803603602081101561066a57600080fd5b5035611521565b6102bb611714565b6102df6004803603602081101561068f57600080fd5b50356001600160a01b0316611723565b6102df611831565b6000546001600160a01b031633146106f4576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600755565b6000546001600160a01b03163314610746576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600d5481565b600c5481565b6000546001600160a01b031633146107d0576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600655565b6000546001600160a01b03163314610822576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600b55565b6000546001600160a01b03163314610874576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600d55565b601a6020526000908152604090205481565b6005546001600160a01b031681565b42600d5411156108d9576040805162461bcd60e51b8152602060048201526005602482015264576169742160d81b604482015290519081900360640190fd5b336000908152601a60205260408120546108fb90670de0b6b3a764000061183e565b90506000811161093e576040805162461bcd60e51b8152602060048201526009602482015268139bc810dbdb5b5a5d60ba1b604482015290519081900360640190fd5b60008060065460085411156109b157600061097060085461096a6006548761183e90919063ffffffff16565b9061189e565b905061099161098a6806c6b935b8bbd4000061271061189e565b829061189e565b92506109a9670de0b6b3a764000061096a8684611905565b9150506109e3565b336000908152601a60205260408120556109e06109d96806c6b935b8bbd4000061271061189e565b849061189e565b91505b8115610a27576007546109f69083611905565b600755600154610a10906001600160a01b03163384611962565b600454610a27906001600160a01b03163384611962565b8015610a5657336000818152601a6020526040812055600554610a56916001600160a01b039091169083611962565b600a8054600101905560408051838152905133917ff96626d18d8a79ffbbff20aeb2ca358ea105b07cadff1bb5e32f2fd9f4e8832d919081900360200190a2505050565b6a6342fd08f00f637800000081565b600a5481565b6000546001600160a01b03163314610afc576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600c55565b6000546001600160a01b03163314610b4e576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600154610b65906001600160a01b03163383611962565b50565b6000546001600160a01b03163314610bb5576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b80600e8360068110610bc357fe5b01555050565b6000546001600160a01b03163314610c16576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60075481565b600b5481565b6000546001600160a01b03163314610cb9576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600454610b65906001600160a01b03163383611962565b6000546001600160a01b03163314610d1d576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60148160068110610d4c57fe5b0154905081565b6000546001600160a01b031690565b60065481565b60085481565b6000806014600101548310610d8b57600e60015b01549050610dcf565b6016548310610d9d57600e6002610d82565b6017548310610daf57600e6003610d82565b6018548310610dc157600e6004610d82565b6019548310610dcf57506013545b92915050565b6000546001600160a01b03163314610e22576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600554604080516370a0823160e01b81523060048201529051610eb29233926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610e7357600080fd5b505afa158015610e87573d6000803e3d6000fd5b505050506040513d6020811015610e9d57600080fd5b50516005546001600160a01b03169190611962565b600154604080516370a0823160e01b81523060048201529051610f429233926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610f0357600080fd5b505afa158015610f17573d6000803e3d6000fd5b505050506040513d6020811015610f2d57600080fd5b50516001546001600160a01b03169190611962565b60048054604080516370a0823160e01b8152309381019390935251610fd29233926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015610f9357600080fd5b505afa158015610fa7573d6000803e3d6000fd5b505050506040513d6020811015610fbd57600080fd5b50516004546001600160a01b03169190611962565b565b601b602052600090815260409020546001600160a01b031681565b600e8160068110610d4c57fe5b6003546001600160a01b031681565b6002546001600160a01b031681565b6000546001600160a01b03163314611067576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600554610b65906001600160a01b03163383611962565b6001600160a01b0381166000908152601a60205260408120548190819081906110af90670de0b6b3a764000061183e565b905060006806c6b935b8bbd4000090506000806000600654600854111561111b576110eb60085461096a6006548861183e90919063ffffffff16565b90506110fc61098a8561271061189e565b9250611114670de0b6b3a764000061096a8784611905565b9150611134565b61113161112a8561271061189e565b869061189e565b92505b91989097509095509350505050565b600054600160a81b900460ff168061115e575061115e6119b9565b806111735750600054600160a01b900460ff16155b6111ae5760405162461bcd60e51b815260040180806020018281038252602e815260200180611d77602e913960400191505060405180910390fd5b600054600160a81b900460ff161580156111e5576000805460ff60a01b1960ff60a81b19909116600160a81b1716600160a01b1790555b600180546001600160a01b03199081166001600160a01b038d8116919091179092556002805482168c84161790556003805482168b84161790556004805482168a841617905560058054909116918816919091179055600b849055600c839055600d8290556000600e819055693f870857a3e0e3800000600f55690fe1c215e8f838e000006010556901969368974c05b000006011556828a857425466f80000601255680410d586a20a4c000060135560145569d3c21bcecceda1000000601555695f4a8c8375d1554000006016556910f0cf064dd59200000060175569021e19e0c9bab2400000601855683635c9adc5dea000006019556112e6856119ca565b80156112fa576000805460ff60a81b191690555b50505050505050505050565b60095481565b6000546001600160a01b03163314611359576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113c8576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b8060148360ff1660068110610bc357fe5b6000546001600160a01b03163314611426576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b8060148360068110610bc357fe5b6000546001600160a01b03163314611481576040805162461bcd60e51b81526020600482018190526024820152600080516020611dc6833981519152604482015290519081900360640190fd5b6001600160a01b0381166114c65760405162461bcd60e51b8152600401808060200182810382526026815260200180611d516026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b42600b541115611560576040805162461bcd60e51b8152602060048201526005602482015264576169742160d81b604482015290519081900360640190fd5b42600c5410156115a1576040805162461bcd60e51b81526020600482015260076024820152664578706972652160c81b604482015290519081900360640190fd5b600081116115ea576040805162461bcd60e51b8152602060048201526011602482015270125b9cdd59999a58da595b9d08109554d1607a1b604482015290519081900360640190fd5b336000818152601a60205260408120549161160490611723565b9050600061161182610d6e565b90508361161e8285611905565b1015611662576040805162461bcd60e51b815260206004820152600e60248201526d213ab9b21027bb32b9103a34b2b960911b604482015290519081900360640190fd5b60085461166f9085611a15565b600855826116a157600980546000908152601b6020526040902080546001600160a01b03191633179055805460010190555b6116ab8385611a15565b336000818152601a60205260409020919091556005546116d8916001600160a01b03909116903087611a6f565b60408051858152905133917f0d957e70e30134e374b2bcff81cf9e8dfa2fbef3ce372b9558bfc5d2a9f5d5ad919081900360200190a250505050565b6004546001600160a01b031681565b600254604080516370a0823160e01b81526001600160a01b0384811660048301529151600093849316916370a08231916024808301926020929190829003018186803b15801561177257600080fd5b505afa158015611786573d6000803e3d6000fd5b505050506040513d602081101561179c57600080fd5b5051600354604080516370a0823160e01b81526001600160a01b038781166004830152915193945060009391909216916370a08231916024808301926020929190829003018186803b1580156117f157600080fd5b505afa158015611805573d6000803e3d6000fd5b505050506040513d602081101561181b57600080fd5b505190506118298282611a15565b949350505050565b6806c6b935b8bbd4000081565b60008261184d57506000610dcf565b8282028284828161185a57fe5b04146118975760405162461bcd60e51b8152600401808060200182810382526021815260200180611da56021913960400191505060405180910390fd5b9392505050565b60008082116118f4576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816118fd57fe5b049392505050565b60008282111561195c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526119b4908490611acf565b505050565b60006119c430611b80565b15905090565b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b600082820183811015611897576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611ac9908590611acf565b50505050565b6060611b24826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b869092919063ffffffff16565b8051909150156119b457808060200190516020811015611b4357600080fd5b50516119b45760405162461bcd60e51b815260040180806020018281038252602a815260200180611de6602a913960400191505060405180910390fd5b3b151590565b6060611829848460008585611b9a85611b80565b611beb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611c2a5780518252601f199092019160209182019101611c0b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c8c576040519150601f19603f3d011682016040523d82523d6000602084013e611c91565b606091505b5091509150611ca1828286611cac565b979650505050505050565b60608315611cbb575081611897565b825115611ccb5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d15578181015183820152602001611cfd565b50505050905090810190601f168015611d425780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220df18f4af4657088eadd8fbc3e86ab62367ae5251638e3d1af72cf57b85aac00164736f6c634300060c0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading