Contract 0xdbc1a13490deef9c3c12b44fe77b503c1b061739

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0xffddf08da1922fd5b8d8c1aa4d1e3cee004a8df6883ca7f061749f73689f199b95012362021-07-26 18:58:4914 secs ago0xcbc9d47ae8d221023d2070a7c16350df3e3dbe46 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000592445
0xeb84c0ff2e88158fa7b45f6eccc4ba7267798da01779dc0f4ae78794057aebb495012332021-07-26 18:58:4023 secs ago0xee6966cdbab203a2db8e42e90a8d6a5c181884f6 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000528905
0xf1d0d45eac1c172a169e152e3e2e1031f33f1dff49e7058a3d9ad11951aa1fd995012302021-07-26 18:58:2835 secs ago0x21a7481699d055f731a45e61c80854cb62c42f0d IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000528905
0x965c9359d101c52a930726465ccf5863b6960a4d7c4d5a85dd88ff7d125a314595012302021-07-26 18:58:2835 secs ago0x5e32967e5c02d0cd1069c4580ea6b1dd2afea16d IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.00058312
0xd00b2a69e700b2abf5a21e3c8ddae98a75c75de459f27a8eb7ddb8d4c19a795895012282021-07-26 18:58:2241 secs ago0x18ae13d4f0184fe4a1a61acf8c3b001a2529b3ea IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000624035
0x8d1372725d9503cf9ac5c773240f8554af5dee1abe70211d76fb12748d28a11095012232021-07-26 18:58:0459 secs ago0xf6cc7bf8a62bdcf9ece715fccb5babc062f69ef6 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000528905
0x8d1ca6bf375b9a1aaae22cf2ea9d72b2391c3d8af1bed13e30f1ba80493f121695012202021-07-26 18:57:551 min ago0xa84bd06877a4098c47c14cd89e8d8c2b10064113 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000624035
0xb9f0dbc9d78fc44d5fcdefa7611674efcf9325d7b3e1a5401b695d9c6a58b6ad95012072021-07-26 18:57:091 min ago0x278605476dc4946ba6df5356c9e603943dc622ae IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000603905
0x3c37c3effff9dda5018e846577bb8452ba924b1a21812837fb645538c3b03a6295012022021-07-26 18:56:532 mins ago0xa3615ab9d611c9175192c2f66f267ccfe1e22fbe IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000512675
0x8c743301aef5a2b9302b7c610d000b02df6e3278c829fab7edbdab11d094c5d595012012021-07-26 18:56:502 mins ago0x11fcf84d4e98c9a65c942816f990340bcd820426 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000624035
0x13dc1b26de81093e536618122b56b158c4b05d9b909de2c24087844b7d9f45ee95012002021-07-26 18:56:472 mins ago0xddb43c14bc42673fd377754b87d102d897ebed2b IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000592325
0xb9afcc722eb420ea431840611ba9d4d2ec4f32b6a9301774912ef8d0c21a337895011982021-07-26 18:56:382 mins ago0xdde33d58294cc87e805488ffe045fed087107068 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.00065806
0xa32e7d1eff536c48b53e6da2b51c48f612e3f8a61811956a33438c26b0900fb495011872021-07-26 18:55:583 mins ago0xd052ee0624cdb37a8bd20978e81550606dacc0a6 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000517445
0xd4ae8e9028f9b950bfe5bfa081c7d626ff6e797807200a85b9704a317eacba2d95011812021-07-26 18:55:333 mins ago0xd868be29fe4e8f331343cd2f7b4accee1772eb7f IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.00043496
0x315eff8cfce082d8a7b7b191221e411e602ff7479567761787d2019a4534692e95011812021-07-26 18:55:333 mins ago0x7c93dd59233082fd3a87fa0e838c5d5c0d650b8b IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.00058312
0x63707076343d75a4e17e9ad90b0213ec246b125e14515fdc1fa9ecf9e178b72b95011792021-07-26 18:55:273 mins ago0xd297b259ca843ff5167b51e030d590ff70d56e64 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000432955
0x9f989523f0765ab2af061e76b73ebc600c78de0cd8394466cba4f1a19f78aabd95011742021-07-26 18:55:053 mins ago0xb4e1167bfc2337786cf5101bbf9a21014b06face IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000432955
0xf5a9ec8e9e47a6cc764579232a6eda92d13d72e035a65d75c6903c49d796f8f595011732021-07-26 18:55:024 mins ago0xf370b5c946d392da6577493f69cf03e2902dceaa IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000528905
0x6bf4a778520b4cef65d44c83cc4c1dacb6e218c10c8c827bf1d32db2d90cb57e95011702021-07-26 18:54:534 mins ago0x1a74ad18b621226789617f2805436fe2c8cbe603 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000603905
0xf1462da692cf7ef8080ce6a993321f24b5e6cd67bc02c07d463533ce96d8b0c895011702021-07-26 18:54:534 mins ago0x7c93dd59233082fd3a87fa0e838c5d5c0d650b8b IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.00058312
0x5a6a34a24c6dd79d2b3a38f409a881d09f7b4f02deef64cd0e89f99c972a173895011672021-07-26 18:54:364 mins ago0xb4b288211846f9b6f0cf8e12d66364430271cf7c IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000624095
0x0ee6f634f160a783bbe73482ec6aa4bc08b9ce8e65c622f5c812a7b1c048fb8195011652021-07-26 18:54:304 mins ago0x6ebcd1bffb2d6be2efc3c33f09250a95745b7bb1 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000623975
0x11ffce563cd6ffa4fad598e953e2d3c1b318400f734fbf2e327a827897453b7995011622021-07-26 18:54:194 mins ago0x7da64ba376697a73380289f60dab556e3cc1d632 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000603905
0xde0f02c90b23a7fab3e4f37c828a98e9b9ed1bc956045d14a36a0e6a7cf3b52995011602021-07-26 18:54:104 mins ago0xd297b259ca843ff5167b51e030d590ff70d56e64 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000550785
0x339b948b733931b314e2bf1a80bb370843cdadc648a4ed37243565ea1f953a5d95011492021-07-26 18:53:305 mins ago0x923d5989154747d62cc20a8f3c3d0a907f150ee8 IN  0xdbc1a13490deef9c3c12b44fe77b503c1b0617390 BNB0.000624035
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-05-24
*/

pragma solidity 0.6.12;
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

        bytes memory returndata = address(token).functionCall(data, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), 'Ownable: caller is not the owner');
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    function preMineSupply() external view returns (uint256);

    function maxSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

contract BEP20 is Context, IBEP20, Ownable {
    uint256 private constant _preMineSupply = 10000000 * 1e18;
    uint256 private constant _maxSupply = 700000000 * 1e18; 

    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;

        _mint(msg.sender, _preMineSupply);
    }

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

    /**
     * @dev Returns the token name.
     */
    function name() public override view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    function preMineSupply() public override view returns (uint256) {
        return _preMineSupply;
    }

    function maxSupply() public override view returns (uint256) {
        return _maxSupply;
    }

    /**
     * @dev See {BEP20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {BEP20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {BEP20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {BEP20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: transfer amount exceeds allowance')
        );
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _balances[sender] = _balances[sender].sub(amount, 'BEP20: transfer amount exceeds balance');
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal returns(bool) {
        require(account != address(0), 'BEP20: mint to the zero address');
        if (amount.add(_totalSupply) > _maxSupply) {
            return false;
        }

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), 'BEP20: burn from the zero address');

        _balances[account] = _balances[account].sub(amount, 'BEP20: burn amount exceeds balance');
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')
        );
    }
}

library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

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

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, 'EnumerableSet: index out of bounds');
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

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

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

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

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}
// Biswap token with Governance.
contract BSWToken is BEP20('Biswap', 'BSW') {
    using EnumerableSet for EnumerableSet.AddressSet;
    EnumerableSet.AddressSet private _minters;

    /// @notice Creates `_amount` token to `_to`.
    function mint(address _to, uint256 _amount) public onlyMinter returns(bool) {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
        return true;
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @notice A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "BSW::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "BSW::delegateBySig: invalid nonce");
        require(now <= expiry, "BSW::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "BSW::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying BSWs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "BSW::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }


    function addMinter(address _addMinter) public onlyOwner returns (bool) {
        require(_addMinter != address(0), "BSW: _addMinter is the zero address");
        return EnumerableSet.add(_minters, _addMinter);
    }

    function delMinter(address _delMinter) public onlyOwner returns (bool) {
        require(_delMinter != address(0), "BSW: _delMinter is the zero address");
        return EnumerableSet.remove(_minters, _delMinter);
    }

    function getMinterLength() public view returns (uint256) {
        return EnumerableSet.length(_minters);
    }

    function isMinter(address account) public view returns (bool) {
        return EnumerableSet.contains(_minters, account);
    }

    function getMinter(uint256 _index) public view onlyOwner returns (address){
        require(_index <= getMinterLength() - 1, "BSW: index out of bounds");
        return EnumerableSet.at(_minters, _index);
    }

    // modifier for mint function
    modifier onlyMinter() {
        require(isMinter(msg.sender), "caller is not the minter");
        _;
    }
}

interface IMigratorChef {
    function migrate(IBEP20 token) external returns (IBEP20);
}

// MasterChef is the master of BSW. He can make BSW and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once BSW is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of BSWs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accBSWPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accBSWPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }
    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. BSWs to distribute per block.
        uint256 lastRewardBlock; // Last block number that BSWs distribution occurs.
        uint256 accBSWPerShare; // Accumulated BSWs per share, times 1e12. See below.
    }
    // The BSW TOKEN!
    BSWToken public BSW;
    //Pools, Farms, Dev, Refs percent decimals
    uint256 public percentDec = 1000000;
    //Pools and Farms percent from token per block
    uint256 public stakingPercent;
    //Developers percent from token per block
    uint256 public devPercent;
    //Referrals percent from token per block
    uint256 public refPercent;
    //Safu fund percent from token per block
    uint256 public safuPercent;
    // Dev address.
    address public devaddr;
    // Safu fund.
    address public safuaddr;
    // Refferals commision address.
    address public refAddr;
    // Last block then develeper withdraw dev and ref fee
    uint256 public lastBlockDevWithdraw;
    // BSW tokens created per block.
    uint256 public BSWPerBlock;
    // Bonus muliplier for early BSW makers.
    uint256 public BONUS_MULTIPLIER = 1;
    // The migrator contract. It has a lot of power. Can only be set through governance (owner).
    IMigratorChef public migrator;
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when BSW mining starts.
    uint256 public startBlock;
    // Deposited amount BSW in MasterChef
    uint256 public depositedBsw;

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

    constructor(
        BSWToken _BSW,
        address _devaddr,
        address _refAddr,
        address _safuaddr,
        uint256 _BSWPerBlock,
        uint256 _startBlock,
        uint256 _stakingPercent,
        uint256 _devPercent,
        uint256 _refPercent,
        uint256 _safuPercent
    ) public {
        BSW = _BSW;
        devaddr = _devaddr;
        refAddr = _refAddr;
        safuaddr = _safuaddr;
        BSWPerBlock = _BSWPerBlock;
        startBlock = _startBlock;
        stakingPercent = _stakingPercent;
        devPercent = _devPercent;
        refPercent = _refPercent;
        safuPercent = _safuPercent;
        lastBlockDevWithdraw = _startBlock;
        
        
        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _BSW,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accBSWPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
        BONUS_MULTIPLIER = multiplierNumber;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function withdrawDevAndRefFee() public{
        require(lastBlockDevWithdraw < block.number, 'wait for new block');
        uint256 multiplier = getMultiplier(lastBlockDevWithdraw, block.number);
        uint256 BSWReward = multiplier.mul(BSWPerBlock);
        BSW.mint(devaddr, BSWReward.mul(devPercent).div(percentDec));
        BSW.mint(safuaddr, BSWReward.mul(safuPercent).div(percentDec));
        BSW.mint(refAddr, BSWReward.mul(refPercent).div(percentDec));
        lastBlockDevWithdraw = block.number;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add( uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accBSWPerShare: 0
            })
        );
    }

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

    // Set the migrator contract. Can only be called by the owner.
    function setMigrator(IMigratorChef _migrator) public onlyOwner {
        migrator = _migrator;
    }

    // Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
    function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: no migrator");
        PoolInfo storage pool = poolInfo[_pid];
        IBEP20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        IBEP20 newLpToken = migrator.migrate(lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
         return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending BSWs on frontend.
    function pendingBSW(uint256 _pid, address _user) external view returns (uint256){
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBSWPerShare = pool.accBSWPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (_pid == 0){
            lpSupply = depositedBsw;
        }
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 BSWReward = multiplier.mul(BSWPerBlock).mul(pool.allocPoint).div(totalAllocPoint).mul(stakingPercent).div(percentDec);
            accBSWPerShare = accBSWPerShare.add(BSWReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accBSWPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward vairables 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 (_pid == 0){
            lpSupply = depositedBsw;
        }
        if (lpSupply <= 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 BSWReward = multiplier.mul(BSWPerBlock).mul(pool.allocPoint).div(totalAllocPoint).mul(stakingPercent).div(percentDec);
        BSW.mint(address(this), BSWReward);
        pool.accBSWPerShare = pool.accBSWPerShare.add(BSWReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for BSW allocation.
    function deposit(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'deposit BSW by staking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
            safeBSWTransfer(msg.sender, pending);
        }
        pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
        user.amount = user.amount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accBSWPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'withdraw BSW by unstaking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
        safeBSWTransfer(msg.sender, pending);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accBSWPerShare).div(1e12);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }

        // Stake BSW tokens to MasterChef
    function enterStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeBSWTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
            depositedBsw = depositedBsw.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBSWPerShare).div(1e12);
        emit Deposit(msg.sender, 0, _amount);
    }

    // Withdraw BSW tokens from STAKING.
    function leaveStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accBSWPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeBSWTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            depositedBsw = depositedBsw.sub(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accBSWPerShare).div(1e12);
        emit Withdraw(msg.sender, 0, _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];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    // Safe BSW transfer function, just in case if rounding error causes pool to not have enough BSWs.
    function safeBSWTransfer(address _to, uint256 _amount) internal {
        uint256 BSWBal = BSW.balanceOf(address(this));
        if (_amount > BSWBal) {
            BSW.transfer(_to, BSWBal);
        } else {
            BSW.transfer(_to, _amount);
        }
    }

    
    function setDevAddress(address _devaddr) public onlyOwner {
        devaddr = _devaddr;
    }
    function setRefAddress(address _refaddr) public onlyOwner {
        refAddr = _refaddr;
    }
    function setSafuAddress(address _safuaddr) public onlyOwner{
        safuaddr = _safuaddr;
    }
    function updateBswPerBlock(uint256 newAmount) public onlyOwner {
        require(newAmount <= 30 * 1e18, 'Max per block 30 BSW');
        require(newAmount >= 1 * 1e18, 'Min per block 1 BSW');
        BSWPerBlock = newAmount;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract BSWToken","name":"_BSW","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_refAddr","type":"address"},{"internalType":"address","name":"_safuaddr","type":"address"},{"internalType":"uint256","name":"_BSWPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_stakingPercent","type":"uint256"},{"internalType":"uint256","name":"_devPercent","type":"uint256"},{"internalType":"uint256","name":"_refPercent","type":"uint256"},{"internalType":"uint256","name":"_safuPercent","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BSW","outputs":[{"internalType":"contract BSWToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BSWPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositedBsw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enterStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlockDevWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBSW","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentDec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBSWPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"safuPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safuaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_refaddr","type":"address"}],"name":"setRefAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_safuaddr","type":"address"}],"name":"setSafuAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateBswPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDevAndRefFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052620f42406002556001600c5560006010553480156200002257600080fd5b50604051620032423803806200324283398181016040526101408110156200004957600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e0880151610100890151610120909901519798969795969495939492939192909160006200009862000240565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b039c8d1690811783556007805483169c8e169c909c17909b556009805482169a8d169a909a17909955600880548a16988c1698909817909755600b9590955560118490556003929092556004908155600591909155600692909255600a819055604080516080810182529586526103e860208701818152918701928352600060608801818152600e8054978801815590915296517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd9590940294850180549096169390971692909217909355517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe82015590517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff82015590517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c4009091015560105562000244565b3390565b612fee80620002546000396000f3fe608060405234801561001057600080fd5b50600436106102d25760003560e01c80635312ea8e116101865780638da5cb5b116100e3578063d0d41fe111610097578063e2bbb15811610071578063e2bbb158146106e2578063f2fde38b14610705578063fc3c28af14610738576102d2565b8063d0d41fe11461069f578063d49e77cd146106d2578063e0dcd30d146106da576102d2565b806393f1a40b116100c857806393f1a40b1461063d578063b76e360c1461068f578063be1193ea14610697576102d2565b80638da5cb5b146106125780638dbb1e3a1461061a576102d2565b806369d0c5b81161013a5780637c7be2fa1161011f5780637c7be2fa146105cf5780637cd07e47146106025780638aa285501461060a576102d2565b806369d0c5b8146105bf578063715018a6146105c7576102d2565b80635ffe61461161016b5780635ffe61461461056f578063630b5ba11461058c57806364482f7914610594576102d2565b80635312ea8e1461054a57806359d5335b14610567576102d2565b806323cf31181161023457806341441d3b116101e8578063454b0608116101cd578063454b06081461050857806348cd4cb11461052557806351eb05a61461052d576102d2565b806341441d3b146104c8578063441a3e70146104e5576102d2565b8063305371ee11610219578063305371ee14610472578063333667dc146104a357806340627265146104c0576102d2565b806323cf311814610406578063295315bf14610439576102d2565b80631526fe271161028b57806318678a731161027057806318678a73146103b55780631eaaa045146103bd57806321b1aecb146103fe576102d2565b80631526fe271461035357806317caf6f1146103ad576102d2565b8063081e3eda116102bc578063081e3eda146103265780631058d2811461032e57806312270c401461034b576102d2565b8062a2e3be146102d7578063061e26af146102f1575b600080fd5b6102df610740565b60408051918252519081900360200190f35b6103246004803603602081101561030757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610746565b005b6102df61081e565b6103246004803603602081101561034457600080fd5b5035610824565b6103246109e0565b6103706004803603602081101561036957600080fd5b5035610cb6565b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020850193909352838301919091526060830152519081900360800190f35b6102df610d04565b6102df610d0a565b610324600480360360608110156103d357600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604001351515610d10565b6102df610ee9565b6103246004803603602081101561041c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610eef565b6102df6004803603604081101561044f57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610fc7565b61047a61116c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610324600480360360208110156104b957600080fd5b5035611188565b6102df61130d565b610324600480360360208110156104de57600080fd5b5035611313565b610324600480360360408110156104fb57600080fd5b5080359060200135611459565b6103246004803603602081101561051e57600080fd5b503561163e565b6102df611999565b6103246004803603602081101561054357600080fd5b503561199f565b6103246004803603602081101561056057600080fd5b5035611bb0565b6102df611c58565b6103246004803603602081101561058557600080fd5b5035611c5e565b610324611cf4565b610324600480360360608110156105aa57600080fd5b50803590602081013590604001351515611d17565b61047a611e21565b610324611e3d565b610324600480360360208110156105e557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611f3d565b61047a612015565b6102df612031565b61047a612037565b6102df6004803603604081101561063057600080fd5b5080359060200135612053565b6106766004803603604081101561065357600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661206e565b6040805192835260208301919091528051918290030190f35b6102df612092565b6102df612098565b610324600480360360208110156106b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661209e565b61047a612176565b61047a612192565b610324600480360360408110156106f857600080fd5b50803590602001356121ae565b6103246004803603602081101561071b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661232c565b6102df6123c6565b60065481565b61074e6123cc565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146107d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600e5490565b6000600e60008154811061083457fe5b600091825260208083203384527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec37590915260409092208054600490920290920192508311156108e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6108ee600061199f565b6000610928826001015461092264e8d4a5100061091c876003015487600001546123d090919063ffffffff16565b90612443565b90612485565b9050801561093a5761093a33826124c7565b831561098257815461094c9085612485565b825582546109719073ffffffffffffffffffffffffffffffffffffffff1633866126ca565b60125461097e9085612485565b6012555b6003830154825461099d9164e8d4a510009161091c916123d0565b600183015560408051858152905160009133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b43600a5410610a5057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7761697420666f72206e657720626c6f636b0000000000000000000000000000604482015290519081900360640190fd5b6000610a5e600a5443612053565b90506000610a77600b54836123d090919063ffffffff16565b60015460075460025460045493945073ffffffffffffffffffffffffffffffffffffffff928316936340c10f199390921691610ab9919061091c9087906123d0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610b0c57600080fd5b505af1158015610b20573d6000803e3d6000fd5b505050506040513d6020811015610b3657600080fd5b505060015460085460025460065473ffffffffffffffffffffffffffffffffffffffff938416936340c10f19931691610b749161091c9087906123d0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610bc757600080fd5b505af1158015610bdb573d6000803e3d6000fd5b505050506040513d6020811015610bf157600080fd5b505060015460095460025460055473ffffffffffffffffffffffffffffffffffffffff938416936340c10f19931691610c2f9161091c9087906123d0565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c8257600080fd5b505af1158015610c96573d6000803e3d6000fd5b505050506040513d6020811015610cac57600080fd5b505043600a555050565b600e8181548110610cc357fe5b6000918252602090912060049091020180546001820154600283015460039093015473ffffffffffffffffffffffffffffffffffffffff9092169350919084565b60105481565b60125481565b610d186123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610da157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8015610daf57610daf611cf4565b60006011544311610dc257601154610dc4565b435b601054909150610dd49085612757565b6010556040805160808101825273ffffffffffffffffffffffffffffffffffffffff948516815260208101958652908101918252600060608201818152600e8054600181018255925291517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd600490920291820180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945593517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe840155517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff8301555090517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c40090910155565b60025481565b610ef76123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610f8057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080600e8481548110610fd757fe5b60009182526020808320878452600f8252604080852073ffffffffffffffffffffffffffffffffffffffff898116875290845281862060049586029093016003810154815484517f70a082310000000000000000000000000000000000000000000000000000000081523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561107b57600080fd5b505afa15801561108f573d6000803e3d6000fd5b505050506040513d60208110156110a557600080fd5b50519050866110b357506012545b8360020154431180156110c557508015155b156111375760006110da856002015443612053565b9050600061111360025461091c60035461110d60105461091c8c6001015461110d600b548b6123d090919063ffffffff16565b906123d0565b905061113261112b8461091c8464e8d4a510006123d0565b8590612757565b935050505b61115f836001015461092264e8d4a5100061091c8688600001546123d090919063ffffffff16565b9450505050505b92915050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6111906123cc565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461121957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6801a055690d9db8000081111561129157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4d61782070657220626c6f636b20333020425357000000000000000000000000604482015290519081900360640190fd5b670de0b6b3a764000081101561130857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d696e2070657220626c6f636b20312042535700000000000000000000000000604482015290519081900360640190fd5b600b55565b600b5481565b6000600e60008154811061132357fe5b600091825260208083203384527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec3759091526040832060049092020192509061136a9061199f565b8054156113b357600061139f826001015461092264e8d4a5100061091c876003015487600001546123d090919063ffffffff16565b905080156113b1576113b133826124c7565b505b82156113fc5781546113dd9073ffffffffffffffffffffffffffffffffffffffff163330866127cb565b80546113e99084612757565b81556012546113f89084612757565b6012555b600382015481546114179164e8d4a510009161091c916123d0565b600182015560408051848152905160009133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b816114c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f77697468647261772042535720627920756e7374616b696e6700000000000000604482015290519081900360640190fd5b6000600e83815481106114d457fe5b60009182526020808320868452600f82526040808520338652909252922080546004909202909201925083111561156c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6115758461199f565b60006115a3826001015461092264e8d4a5100061091c876003015487600001546123d090919063ffffffff16565b90506115af33826124c7565b81546115bb9085612485565b80835560038401546115d89164e8d4a510009161091c91906123d0565b600183015582546116009073ffffffffffffffffffffffffffffffffffffffff1633866126ca565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600d5473ffffffffffffffffffffffffffffffffffffffff166116c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6d6967726174653a206e6f206d69677261746f72000000000000000000000000604482015290519081900360640190fd5b6000600e82815481106116d157fe5b600091825260208083206004928302018054604080517f70a0823100000000000000000000000000000000000000000000000000000000815230958101959095525191955073ffffffffffffffffffffffffffffffffffffffff16939284926370a0823192602480840193829003018186803b15801561175057600080fd5b505afa158015611764573d6000803e3d6000fd5b505050506040513d602081101561177a57600080fd5b5051600d549091506117a69073ffffffffffffffffffffffffffffffffffffffff848116911683612866565b600d54604080517fce5494bb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b15801561181e57600080fd5b505af1158015611832573d6000803e3d6000fd5b505050506040513d602081101561184857600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b1580156118ba57600080fd5b505afa1580156118ce573d6000803e3d6000fd5b505050506040513d60208110156118e457600080fd5b5051821461195357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6d6967726174653a206261640000000000000000000000000000000000000000604482015290519081900360640190fd5b83547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9190911617909255505050565b60115481565b6000600e82815481106119ae57fe5b90600052602060002090600402019050806002015443116119cf5750611bad565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611a3f57600080fd5b505afa158015611a53573d6000803e3d6000fd5b505050506040513d6020811015611a6957600080fd5b5051905082611a7757506012545b60008111611a8c575043600290910155611bad565b6000611a9c836002015443612053565b90506000611acf60025461091c60035461110d60105461091c8a6001015461110d600b548b6123d090919063ffffffff16565b600154604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101849052905192935073ffffffffffffffffffffffffffffffffffffffff909116916340c10f19916044808201926020929091908290030181600087803b158015611b4c57600080fd5b505af1158015611b60573d6000803e3d6000fd5b505050506040513d6020811015611b7657600080fd5b50611b9a9050611b8f8461091c8464e8d4a510006123d0565b600386015490612757565b6003850155505043600290920191909155505b50565b6000600e8281548110611bbf57fe5b60009182526020808320858452600f82526040808520338087529352909320805460049093029093018054909450611c119273ffffffffffffffffffffffffffffffffffffffff9190911691906126ca565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b60055481565b611c666123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611cef57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600c55565b600e5460005b81811015611d1357611d0b8161199f565b600101611cfa565b5050565b611d1f6123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611da857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8015611db657611db6611cf4565b611df382611ded600e8681548110611dca57fe5b90600052602060002090600402016001015460105461248590919063ffffffff16565b90612757565b60108190555081600e8481548110611e0757fe5b906000526020600020906004020160010181905550505050565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b611e456123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611ece57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b611f456123cc565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611fce57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600c5481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600c546000906120679061110d8486612485565b9392505050565b600f6020908152600092835260408084209091529082529020805460019091015482565b600a5481565b60035481565b6120a66123cc565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461212f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b8161221a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6465706f73697420425357206279207374616b696e6700000000000000000000604482015290519081900360640190fd5b6000600e838154811061222957fe5b60009182526020808320868452600f8252604080852033865290925292206004909102909101915061225a8461199f565b80541561229d57600061228f826001015461092264e8d4a5100061091c876003015487600001546123d090919063ffffffff16565b905061229b33826124c7565b505b81546122c19073ffffffffffffffffffffffffffffffffffffffff163330866127cb565b80546122cd9084612757565b80825560038301546122ea9164e8d4a510009161091c91906123d0565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6123346123cc565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146123bd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611bad816129f4565b60045481565b3390565b6000826123df57506000611166565b828202828482816123ec57fe5b0414612067576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f626021913960400191505060405180910390fd5b600061206783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612aed565b600061206783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ba9565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561253857600080fd5b505afa15801561254c573d6000803e3d6000fd5b505050506040513d602081101561256257600080fd5b505190508082111561261c57600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156125ea57600080fd5b505af11580156125fe573d6000803e3d6000fd5b505050506040513d602081101561261457600080fd5b506126c59050565b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561269857600080fd5b505af11580156126ac573d6000803e3d6000fd5b505050506040513d60208110156126c257600080fd5b50505b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526126c5908490612c1d565b60008282018381101561206757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052612860908590612c1d565b50505050565b8015806129125750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156128e457600080fd5b505afa1580156128f8573d6000803e3d6000fd5b505050506040513d602081101561290e57600080fd5b5051155b612967576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180612f836036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526126c5908490612c1d565b73ffffffffffffffffffffffffffffffffffffffff8116612a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612f3c6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183612b93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b58578181015183820152602001612b40565b50505050905090810190601f168015612b855780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612b9f57fe5b0495945050505050565b60008184841115612c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612b58578181015183820152602001612b40565b505050900390565b6060612c7f826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cf59092919063ffffffff16565b8051909150156126c557808060200190516020811015612c9e57600080fd5b50516126c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612f12602a913960400191505060405180910390fd5b6060612d048484600085612d0c565b949350505050565b6060612d1785612ed8565b612d8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612dec57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612daf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e4e576040519150601f19603f3d011682016040523d82523d6000602084013e612e53565b606091505b50915091508115612e67579150612d049050565b805115612e775780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315612b58578181015183820152602001612b40565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612d0457505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212205d24c1e362b09a0b852ec012dd5fd45769822668a3502d0b474dfb6d10bb6aef64736f6c634300060c0033000000000000000000000000965f527d9159dce6288a2219db51fc6eef120dd10000000000000000000000000453365d79caa442e50dbed2ce2aea02ae3371830000000000000000000000004052093b5ccec73f6062652f6d14ee855fcd6e4c000000000000000000000000fad18d5c75c1e8885be672a92a8dbcaa063fbe19000000000000000000000000000000000000000000000001a055690d9db80000000000000000000000000000000000000000000000000000000000000074f46900000000000000000000000000000000000000000000000000000000000d13a80000000000000000000000000000000000000000000000000000000000015f90000000000000000000000000000000000000000000000000000000000000a7f80000000000000000000000000000000000000000000000000000000000002710

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

000000000000000000000000965f527d9159dce6288a2219db51fc6eef120dd10000000000000000000000000453365d79caa442e50dbed2ce2aea02ae3371830000000000000000000000004052093b5ccec73f6062652f6d14ee855fcd6e4c000000000000000000000000fad18d5c75c1e8885be672a92a8dbcaa063fbe19000000000000000000000000000000000000000000000001a055690d9db80000000000000000000000000000000000000000000000000000000000000074f46900000000000000000000000000000000000000000000000000000000000d13a80000000000000000000000000000000000000000000000000000000000015f90000000000000000000000000000000000000000000000000000000000000a7f80000000000000000000000000000000000000000000000000000000000002710

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000965f527d9159dce6288a2219db51fc6eef120dd1
Arg [1] : 0000000000000000000000000453365d79caa442e50dbed2ce2aea02ae337183
Arg [2] : 0000000000000000000000004052093b5ccec73f6062652f6d14ee855fcd6e4c
Arg [3] : 000000000000000000000000fad18d5c75c1e8885be672a92a8dbcaa063fbe19
Arg [4] : 000000000000000000000000000000000000000000000001a055690d9db80000
Arg [5] : 000000000000000000000000000000000000000000000000000000000074f469
Arg [6] : 00000000000000000000000000000000000000000000000000000000000d13a8
Arg [7] : 0000000000000000000000000000000000000000000000000000000000015f90
Arg [8] : 000000000000000000000000000000000000000000000000000000000000a7f8
Arg [9] : 0000000000000000000000000000000000000000000000000000000000002710


Deployed ByteCode Sourcemap

48076:13632:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49831:26;;;:::i;:::-;;;;;;;;;;;;;;;;61265:95;;;;;;;;;;;;;;;;-1:-1:-1;61265:95:0;;;;:::i;:::-;;52280;;;:::i;59570:770::-;;;;;;;;;;;;;;;;-1:-1:-1;59570:770:0;;:::i;52383:523::-;;;:::i;50450:26::-;;;;;;;;;;;;;;;;-1:-1:-1;50450:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50691:34;;;:::i;50856:27::-;;;:::i;53075:558::-;;;;;;;;;;;;;;;;-1:-1:-1;53075:558:0;;;;;;;;;;;;;;;;:::i;49498:35::-;;;:::i;54109:102::-;;;;;;;;;;;;;;;;-1:-1:-1;54109:102:0;;;;:::i;55108:859::-;;;;;;;;;;;;;;;;-1:-1:-1;55108:859:0;;;;;;;;;:::i;49424:19::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61470:235;;;;;;;;;;;;;;;;-1:-1:-1;61470:235:0;;:::i;50168:26::-;;;:::i;58737:783::-;;;;;;;;;;;;;;;;-1:-1:-1;58737:783:0;;:::i;57974:712::-;;;;;;;;;;;;;;;;-1:-1:-1;57974:712:0;;;;;;;:::i;54334:491::-;;;;;;;;;;;;;;;;-1:-1:-1;54334:491:0;;:::i;50781:25::-;;;:::i;56306:835::-;;;;;;;;;;;;;;;;-1:-1:-1;56306:835:0;;:::i;60411:356::-;;;;;;;;;;;;;;;;-1:-1:-1;60411:356:0;;:::i;49753:25::-;;;:::i;52149:123::-;;;;;;;;;;;;;;;;-1:-1:-1;52149:123:0;;:::i;56050:180::-;;;:::i;53728:305::-;;;;;;;;;;;;;;;;-1:-1:-1;53728:305:0;;;;;;;;;;;;;;:::i;50000:22::-;;;:::i;5122:140::-;;;:::i;61366:98::-;;;;;;;;;;;;;;;;-1:-1:-1;61366:98:0;;;;:::i;50387:29::-;;;:::i;50247:35::-;;;:::i;4480:79::-;;;:::i;54901:144::-;;;;;;;;;;;;;;;;-1:-1:-1;54901:144:0;;;;;;;:::i;50532:64::-;;;;;;;;;;;;;;;;-1:-1:-1;50532:64:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;50088:35;;;:::i;49592:29::-;;;:::i;61164:95::-;;;;;;;;;;;;;;;;-1:-1:-1;61164:95:0;;;;:::i;49885:22::-;;;:::i;49933:23::-;;;:::i;57209:713::-;;;;;;;;;;;;;;;;-1:-1:-1;57209:713:0;;;;;;;:::i;5417:109::-;;;;;;;;;;;;;;;;-1:-1:-1;5417:109:0;;;;:::i;49675:25::-;;;:::i;49831:26::-;;;;:::o;61265:95::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61334:7:::1;:18:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;61265:95::o;52280:::-;52352:8;:15;52280:95;:::o;59570:770::-;59627:21;59651:8;59660:1;59651:11;;;;;;;;;;;;;;;;59709:10;59697:23;;:11;:23;;;:11;:23;;;59739:11;;59651;;;;;;;;-1:-1:-1;59739:22:0;-1:-1:-1;59739:22:0;59731:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59795:13;59806:1;59795:10;:13::i;:::-;59819:15;59837:67;59888:4;:15;;;59837:46;59878:4;59837:36;59853:4;:19;;;59837:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;59819:85;-1:-1:-1;59918:11:0;;59915:79;;59946:36;59962:10;59974:7;59946:15;:36::i;:::-;60007:11;;60004:206;;60049:11;;:24;;60065:7;60049:15;:24::i;:::-;60035:38;;60088:12;;:55;;:12;;60122:10;60135:7;60088:25;:55::i;:::-;60173:12;;:25;;60190:7;60173:16;:25::i;:::-;60158:12;:40;60004:206;60254:19;;;;60238:11;;:46;;60279:4;;60238:36;;:15;:36::i;:46::-;60220:15;;;:64;60300:32;;;;;;;;60321:1;;60309:10;;60300:32;;;;;;;;;59570:770;;;;:::o;52383:523::-;52463:12;52440:20;;:35;52432:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52509:18;52530:49;52544:20;;52566:12;52530:13;:49::i;:::-;52509:70;;52590:17;52610:27;52625:11;;52610:10;:14;;:27;;;;:::i;:::-;52648:3;;52657:7;;52696:10;;52680;;52590:47;;-1:-1:-1;52648:3:0;;;;;:8;;52657:7;;;;52666:41;;52696:10;52666:25;;52590:47;;52666:13;:25::i;:41::-;52648:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52719:3:0;;52728:8;;52769:10;;52752:11;;52719:3;;;;;:8;;52728;;52738:42;;:26;;:9;;:13;:26::i;:42::-;52719:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52792:3:0;;52801:7;;52840:10;;52824;;52792:3;;;;;:8;;52801:7;;52810:41;;:25;;:9;;:13;:25::i;:41::-;52792:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52886:12:0;52863:20;:35;-1:-1:-1;;52383:523:0:o;50450:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50450:26:0;;;:::o;50691:34::-;;;;:::o;50856:27::-;;;;:::o;53075:558::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53178:11:::1;53174:61;;;53206:17;:15;:17::i;:::-;53245:23;53286:10;;53271:12;:25;:53;;53314:10;;53271:53;;;53299:12;53271:53;53353:15;::::0;53245:79;;-1:-1:-1;53353:32:0::1;::::0;53373:11;53353:19:::1;:32::i;:::-;53335:15;:50:::0;53424:190:::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;53424:190:0;;;;;;53396:8:::1;:229:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;-1:-1:-1;53396:229:0;;;;;;;53075:558::o;49498:35::-;;;;:::o;54109:102::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54183:8:::1;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;54109:102::o;55108:859::-;55180:7;55199:21;55223:8;55232:4;55223:14;;;;;;;;;;;;;;;;55272;;;:8;:14;;;;;;:21;;;;;;;;;;;;55223:14;;;;;;;55329:19;;;;55378:12;;:37;;;;;55409:4;55378:37;;;;;;;;;55223:14;;-1:-1:-1;55272:21:0;;55329:19;;55223:14;;55378:12;;;;;:22;;:37;;;;;55223:14;;55378:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55378:37:0;;-1:-1:-1;55430:9:0;55426:64;;-1:-1:-1;55466:12:0;;55426:64;55519:4;:20;;;55504:12;:35;:52;;;;-1:-1:-1;55543:13:0;;;55504:52;55500:380;;;55573:18;55594:49;55608:4;:20;;;55630:12;55594:13;:49::i;:::-;55573:70;;55658:17;55678:105;55772:10;;55678:89;55752:14;;55678:69;55731:15;;55678:48;55710:4;:15;;;55678:27;55693:11;;55678:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:105::-;55658:125;-1:-1:-1;55815:53:0;55834:33;55858:8;55834:19;55658:125;55848:4;55834:13;:19::i;:33::-;55815:14;;:18;:53::i;:::-;55798:70;;55500:380;;;55897:62;55943:4;:15;;;55897:41;55933:4;55897:31;55913:14;55897:4;:11;;;:15;;:31;;;;:::i;:62::-;55890:69;;;;;;55108:859;;;;;:::o;49424:19::-;;;;;;:::o;61470:235::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61565:9:::1;61552;:22;;61544:55;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;61631:8;61618:9;:21;;61610:53;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;61674:11;:23:::0;61470:235::o;50168:26::-;;;;:::o;58737:783::-;58794:21;58818:8;58827:1;58818:11;;;;;;;;;;;;;;;;58876:10;58864:23;;:11;:23;;;:11;:23;;58818:11;;;;;;-1:-1:-1;58864:23:0;58898:13;;:10;:13::i;:::-;58926:11;;:15;58922:234;;58958:15;58976:67;59027:4;:15;;;58976:46;59017:4;58976:36;58992:4;:19;;;58976:4;:11;;;:15;;:36;;;;:::i;:67::-;58958:85;-1:-1:-1;59061:11:0;;59058:87;;59093:36;59109:10;59121:7;59093:15;:36::i;:::-;58922:234;;59169:11;;59166:225;;59197:12;;:74;;:12;;59235:10;59256:4;59263:7;59197:29;:74::i;:::-;59300:11;;:24;;59316:7;59300:15;:24::i;:::-;59286:38;;59354:12;;:25;;59371:7;59354:16;:25::i;:::-;59339:12;:40;59166:225;59435:19;;;;59419:11;;:46;;59460:4;;59419:36;;:15;:36::i;:46::-;59401:15;;;:64;59481:31;;;;;;;;59501:1;;59489:10;;59481:31;;;;;;;;;58737:783;;;:::o;57974:712::-;58052:9;58043:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58104:21;58128:8;58137:4;58128:14;;;;;;;;;;;;;;;;58177;;;:8;:14;;;;;;58192:10;58177:26;;;;;;;58222:11;;58128:14;;;;;;;;-1:-1:-1;58222:22:0;-1:-1:-1;58222:22:0;58214:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58278:16;58289:4;58278:10;:16::i;:::-;58305:15;58323:67;58374:4;:15;;;58323:46;58364:4;58323:36;58339:4;:19;;;58323:4;:11;;;:15;;:36;;;;:::i;:67::-;58305:85;;58401:36;58417:10;58429:7;58401:15;:36::i;:::-;58462:11;;:24;;58478:7;58462:15;:24::i;:::-;58448:38;;;58531:19;;;;58515:46;;58556:4;;58515:36;;58448:38;58515:15;:36::i;:46::-;58497:15;;;:64;58572:12;;:55;;:12;;58606:10;58619:7;58572:25;:55::i;:::-;58643:35;;;;;;;;58664:4;;58652:10;;58643:35;;;;;;;;;57974:712;;;;;:::o;54334:491::-;54399:8;;54391:31;54399:8;54383:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54458:21;54482:8;54491:4;54482:14;;;;;;;;;;;;;;;;;;;;;54524:12;;54561:32;;;;;;54587:4;54561:32;;;;;;;;54482:14;;-1:-1:-1;54524:12:0;;;54482:14;54524:12;;54561:17;;:32;;;;;;;;;;54524:12;54561:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54561:32:0;54632:8;;54561:32;;-1:-1:-1;54604:43:0;;54632:8;54604:19;;;;54632:8;54561:32;54604:19;:43::i;:::-;54678:8;;:25;;;;;;:8;:25;;;;;;;;;54658:17;;54678:8;;;;;:16;;:25;;;;;;;;;;;;;;;54658:17;54678:8;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54678:25:0;54729:35;;;;;;54758:4;54729:35;;;;;;54678:25;;-1:-1:-1;54729:20:0;;;;;;:35;;;;;54678:25;;54729:35;;;;;;;;:20;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54729:35:0;54722:42;;54714:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54792:25;;;;;;;;;;;;;-1:-1:-1;;;54334:491:0:o;50781:25::-;;;;:::o;56306:835::-;56358:21;56382:8;56391:4;56382:14;;;;;;;;;;;;;;;;;;56358:38;;56427:4;:20;;;56411:12;:36;56407:75;;56464:7;;;56407:75;56511:12;;:37;;;;;;56542:4;56511:37;;;;;;56492:16;;56511:12;;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56511:37:0;;-1:-1:-1;56563:9:0;56559:64;;-1:-1:-1;56599:12:0;;56559:64;56649:1;56637:8;:13;56633:102;;-1:-1:-1;56690:12:0;56667:20;;;;:35;56717:7;;56633:102;56745:18;56766:49;56780:4;:20;;;56802:12;56766:13;:49::i;:::-;56745:70;;56826:17;56846:105;56940:10;;56846:89;56920:14;;56846:69;56899:15;;56846:48;56878:4;:15;;;56846:27;56861:11;;56846:10;:14;;:27;;;;:::i;:105::-;56962:3;;:34;;;;;;56979:4;56962:34;;;;;;;;;;;;56826:125;;-1:-1:-1;56962:3:0;;;;;:8;;:34;;;;;;;;;;;;;;;:3;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57029:58:0;;-1:-1:-1;57053:33:0;57077:8;57053:19;:9;57067:4;57053:13;:19::i;:33::-;57029:19;;;;;:23;:58::i;:::-;57007:19;;;:80;-1:-1:-1;;57121:12:0;57098:20;;;;:35;;;;-1:-1:-1;56306:835:0;;:::o;60411:356::-;60470:21;60494:8;60503:4;60494:14;;;;;;;;;;;;;;;;60543;;;:8;:14;;;;;;60558:10;60543:26;;;;;;;;60627:11;;60494:14;;;;;;;60580:12;;60494:14;;-1:-1:-1;60580:59:0;;60543:26;60580:12;;;;;60558:10;60580:25;:59::i;:::-;60691:11;;60655:48;;;;;;;60685:4;;60673:10;;60655:48;;;;;;;;;60728:1;60714:15;;;60740;;;;:19;-1:-1:-1;;60411:356:0:o;49753:25::-;;;;:::o;52149:123::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52229:16:::1;:35:::0;52149:123::o;56050:180::-;56112:8;:15;56095:14;56138:85;56166:6;56160:3;:12;56138:85;;;56196:15;56207:3;56196:10;:15::i;:::-;56174:5;;56138:85;;;;56050:180;:::o;53728:305::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53827:11:::1;53823:61;;;53855:17;:15;:17::i;:::-;53912:63;53963:11;53912:46;53932:8;53941:4;53932:14;;;;;;;;;;;;;;;;;;:25;;;53912:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;53894:15;:81;;;;54014:11;53986:8;53995:4;53986:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;53728:305:::0;;;:::o;50000:22::-;;;;;;:::o;5122:140::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5221:1:::1;5205:6:::0;;5184:40:::1;::::0;::::1;5205:6:::0;;::::1;::::0;5184:40:::1;::::0;5221:1;;5184:40:::1;5252:1;5235:19:::0;;;::::1;::::0;;5122:140::o;61366:98::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61436:8:::1;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;61366:98::o;50387:29::-;;;;;;:::o;50247:35::-;;;;:::o;4480:79::-;4518:7;4545:6;;;4480:79;:::o;54901:144::-;55020:16;;54973:7;;55001:36;;:14;:3;55009:5;55001:7;:14::i;:36::-;54994:43;54901:144;-1:-1:-1;;;54901:144:0:o;50532:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;50088:35::-;;;;:::o;49592:29::-;;;;:::o;61164:95::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61233:7:::1;:18:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;61164:95::o;49885:22::-;;;;;;:::o;49933:23::-;;;;;;:::o;57209:713::-;57286:9;57277:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57335:21;57359:8;57368:4;57359:14;;;;;;;;;;;;;;;;57408;;;:8;:14;;;;;;57423:10;57408:26;;;;;;;57359:14;;;;;;;;-1:-1:-1;57445:16:0;57417:4;57445:10;:16::i;:::-;57476:11;;:15;57472:184;;57508:15;57526:67;57577:4;:15;;;57526:46;57567:4;57526:36;57542:4;:19;;;57526:4;:11;;;:15;;:36;;;;:::i;:67::-;57508:85;;57608:36;57624:10;57636:7;57608:15;:36::i;:::-;57472:184;;57666:12;;:74;;:12;;57704:10;57725:4;57732:7;57666:29;:74::i;:::-;57765:11;;:24;;57781:7;57765:15;:24::i;:::-;57751:38;;;57834:19;;;;57818:46;;57859:4;;57818:36;;57751:38;57818:15;:36::i;:46::-;57800:15;;;:64;57880:34;;;;;;;;57900:4;;57888:10;;57880:34;;;;;;;;;57209:713;;;;:::o;5417:109::-;4702:12;:10;:12::i;:::-;4692:6;;:22;:6;;;:22;;;4684:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5490:28:::1;5509:8;5490:18;:28::i;49675:25::-:0;;;;:::o;3644:98::-;3724:10;3644:98;:::o;10790:471::-;10848:7;11093:6;11089:47;;-1:-1:-1;11123:1:0;11116:8;;11089:47;11160:5;;;11164:1;11160;:5;:1;11184:5;;;;;:10;11176:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11737:132;11795:7;11822:39;11826:1;11829;11822:39;;;;;;;;;;;;;;;;;:3;:39::i;9866:136::-;9924:7;9951:43;9955:1;9958;9951:43;;;;;;;;;;;;;;;;;:3;:43::i;60879:271::-;60971:3;;:28;;;;;;60993:4;60971:28;;;;;;60954:14;;60971:3;;;:13;;:28;;;;;;;;;;;;;;:3;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60971:28:0;;-1:-1:-1;61014:16:0;;;61010:133;;;61047:3;;:25;;;;;;:3;:25;;;;;;;;;;;;;;;:3;;;;;:12;;:25;;;;;;;;;;;;;;:3;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61010:133:0;;-1:-1:-1;61010:133:0;;61105:3;;:26;;;;;;:3;:26;;;;;;;;;;;;;;;:3;;;;;:12;;:26;;;;;;;;;;;;;;:3;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61010:133:0;60879:271;;;:::o;117:211::-;261:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;284:23;261:58;;;234:86;;254:5;;234:19;:86::i;9402:181::-;9460:7;9492:5;;;9516:6;;;;9508:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;336:248;507:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;530:27;507:68;;;480:96;;500:5;;480:19;:96::i;:::-;336:248;;;;:::o;853:670::-;1271:10;;;1270:62;;-1:-1:-1;1287:39:0;;;;;;1311:4;1287:39;;;;:15;:39;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1287:39:0;:44;1270:62;1248:166;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1452:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1475:22;1452:62;;;1425:90;;1445:5;;1425:19;:90::i;5632:229::-;5706:22;;;5698:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5808:6;;;5787:38;;;;;;;5808:6;;;5787:38;;;5836:6;:17;;;;;;;;;;;;;;;5632:229::o;12365:312::-;12485:7;12520:12;12513:5;12505:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12544:9;12560:1;12556;:5;;;;;;;12365:312;-1:-1:-1;;;;;12365:312:0:o;10305:226::-;10425:7;10461:12;10453:6;;;;10445:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10497:5:0;;;10305:226::o;2652:774::-;3076:23;3102:69;3130:4;3102:69;;;;;;;;;;;;;;;;;3110:5;3102:27;;;;:69;;;;;:::i;:::-;3186:17;;3076:95;;-1:-1:-1;3186:21:0;3182:237;;3341:10;3330:30;;;;;;;;;;;;;;;-1:-1:-1;3330:30:0;3322:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18252:230;18389:12;18421:53;18444:6;18452:4;18458:1;18461:12;18421:22;:53::i;:::-;18414:60;18252:230;-1:-1:-1;;;;18252:230:0:o;19740:1020::-;19913:12;19946:18;19957:6;19946:10;:18::i;:::-;19938:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20072:12;20086:23;20113:6;:11;;20132:8;20142:4;20113:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20071:76;;;;20162:7;20158:595;;;20193:10;-1:-1:-1;20186:17:0;;-1:-1:-1;20186:17:0;20158:595;20307:17;;:21;20303:439;;20570:10;20564:17;20631:15;20618:10;20614:2;20610:19;20603:44;20518:148;20706:20;;;;;;;;;;;;;;;;;;;;20713:12;;20706:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15115:641;15175:4;15656:20;;15486:66;15705:23;;;;;;:42;;-1:-1:-1;;15732:15:0;;;15697:51;-1:-1:-1;;15115:641:0:o

Swarm Source

ipfs://5d24c1e362b09a0b852ec012dd5fd45769822668a3502d0b474dfb6d10bb6aef
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.