ETH Price: $2,359.34 (+0.73%)

Contract

0xf5257428338254164802ac42B9Df9FeB84D98D13
 
Transaction Hash
Method
Block
From
To
Un Stake118011272021-02-06 6:23:081320 days ago1612592588IN
0xf5257428...B84D98D13
0 ETH0.03641691122.85000184
Stake117939762021-02-05 3:57:221321 days ago1612497442IN
0xf5257428...B84D98D13
0 ETH0.08476894132.00000145
Un Stake117893282021-02-04 10:46:581322 days ago1612435618IN
0xf5257428...B84D98D13
0 ETH0.03079259147.40000023
Stake117893222021-02-04 10:45:121322 days ago1612435512IN
0xf5257428...B84D98D13
0 ETH0.02756837159
Stake117868722021-02-04 1:43:121322 days ago1612402992IN
0xf5257428...B84D98D13
0 ETH0.04081763233
Un Stake117825122021-02-03 9:38:551323 days ago1612345135IN
0xf5257428...B84D98D13
0 ETH0.0322944145
Un Stake117290762021-01-26 4:02:111331 days ago1611633731IN
0xf5257428...B84D98D13
0 ETH0.0172321367
Un Stake117219882021-01-25 1:57:291332 days ago1611539849IN
0xf5257428...B84D98D13
0 ETH0.0235659892
Un Stake116784012021-01-18 9:20:581339 days ago1610961658IN
0xf5257428...B84D98D13
0 ETH0.0161880
Stake116778192021-01-18 7:10:001339 days ago1610953800IN
0xf5257428...B84D98D13
0 ETH0.0159240145
Un Stake116569142021-01-15 2:24:291342 days ago1610677469IN
0xf5257428...B84D98D13
0 ETH0.0102233541.00000145
Un Stake116568582021-01-15 2:11:441342 days ago1610676704IN
0xf5257428...B84D98D13
0 ETH0.00997440.00000134
Un Stake116566912021-01-15 1:32:441342 days ago1610674364IN
0xf5257428...B84D98D13
0 ETH0.0144534858
Stake116566802021-01-15 1:30:251342 days ago1610674225IN
0xf5257428...B84D98D13
0 ETH0.0171348160.5
Un Stake116515842021-01-14 6:21:371343 days ago1610605297IN
0xf5257428...B84D98D13
0 ETH0.0107220645.992
Stake116457282021-01-13 9:06:431344 days ago1610528803IN
0xf5257428...B84D98D13
0 ETH0.0194081758.8
Stake116451352021-01-13 6:51:121344 days ago1610520672IN
0xf5257428...B84D98D13
0 ETH0.0106856139.00000145
Un Stake116450482021-01-13 6:33:161344 days ago1610519596IN
0xf5257428...B84D98D13
0 ETH0.014042745.00000145
Stake116450442021-01-13 6:32:101344 days ago1610519530IN
0xf5257428...B84D98D13
0 ETH0.0413291245.00000145
Stake116449602021-01-13 6:16:161344 days ago1610518576IN
0xf5257428...B84D98D13
0 ETH0.0112335941
Un Stake116449562021-01-13 6:15:131344 days ago1610518513IN
0xf5257428...B84D98D13
0 ETH0.0115488837.00000134
Stake116443852021-01-13 4:07:141344 days ago1610510834IN
0xf5257428...B84D98D13
0 ETH0.010959640.00000134
Stake116443442021-01-13 3:57:031344 days ago1610510223IN
0xf5257428...B84D98D13
0 ETH0.024993689
Stake116443092021-01-13 3:48:481344 days ago1610509728IN
0xf5257428...B84D98D13
0 ETH0.0105807651
Stake116441162021-01-13 3:04:011344 days ago1610507041IN
0xf5257428...B84D98D13
0 ETH0.0116180956.00000134
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PiggyBreeder

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-06
*/

// Sources flattened with hardhat v2.0.2 https://hardhat.org

// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/math/[email protected]



pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;



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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
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));
    }
}


// File @openzeppelin/contracts/GSN/[email protected]



pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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


// File @openzeppelin/contracts/access/[email protected]



pragma solidity ^0.6.0;

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

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

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

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

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

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

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


// File @openzeppelin/contracts/access/[email protected]



pragma solidity ^0.6.0;



/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    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;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

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

    /**
     * @dev See {IERC20-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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * 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 virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: 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 {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual 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 {IERC20-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 virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: 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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: 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 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 virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


// File contracts/token/WePiggyToken.sol


pragma solidity 0.6.12;


// Copied and modified from SUSHI code:
// https://github.com/sushiswap/sushiswap/blob/master/contracts/SushiToken.sol
// WePiggyToken with Governance.
contract WePiggyToken is ERC20, AccessControl {

    // Create a new role identifier for the minter role
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    constructor() public ERC20("WePiggy Token", "WPT") {

        // Grant the contract deployer the default admin role: it will be able
        // to grant and revoke any roles
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    /// @notice Creates `_amount` token to `_to`.Must only be called by the minter role.
    function mint(address _to, uint256 _amount) public {

        // Check that the calling account has the minter role
        require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter");

        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    //  transfers delegate authority when sending a token.
    // https://medium.com/bulldax-finance/sushiswap-delegation-double-spending-bug-5adcc7b3830f
    function _transfer(address sender, address recipient, uint256 amount) internal override virtual {
        super._transfer(sender, recipient, amount);
        _moveDelegates(_delegates[sender], _delegates[recipient], amount);
    }

    // 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

    /// @dev 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), "WePiggyToken::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "WePiggyToken::delegateBySig: invalid nonce");
        require(now <= expiry, "WePiggyToken::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, "WePiggyToken::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) {
            // ceil, avoiding overflow
            uint32 center = upper - (upper - lower) / 2;
            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];
        // balance of underlying WePiggyTokens (not scaled);
        uint256 delegatorBalance = balanceOf(delegator);

        _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, "WePiggyToken::_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;
    }


}


// File contracts/farm/PiggyBreeder.sol


pragma solidity 0.6.12;






// Copied and modified from sushiswap code:
// https://github.com/sushiswap/sushiswap/blob/master/contracts/MasterChef.sol

interface IMigrator {
    function replaceMigrate(IERC20 lpToken) external returns (IERC20, uint);

    function migrate(IERC20 lpToken) external returns (IERC20, uint);
}

// PiggyBreeder is the master of PiggyToken.
contract PiggyBreeder is Ownable {

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt.
        uint256 pendingReward;
        bool unStakeBeforeEnableClaim;
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. PiggyTokens to distribute per block.
        uint256 lastRewardBlock;  // Last block number that PiggyTokens distribution occurs.
        uint256 accPiggyPerShare; // Accumulated PiggyTokens per share, times 1e12. See below.
        uint256 totalDeposit;       // Accumulated deposit tokens.
        IMigrator migrator;
    }

    // The WePiggyToken !
    WePiggyToken public piggy;

    // Dev address.
    address public devAddr;

    // Percentage of developers mining
    uint256 public devMiningRate;

    // PIGGY tokens created per block.
    uint256 public piggyPerBlock;

    // The block number when WPC mining starts.
    uint256 public startBlock;

    // The block number when WPC claim starts.
    uint256 public enableClaimBlock;

    // Interval blocks to reduce mining volume.
    uint256 public reduceIntervalBlock;

    // reduce rate
    uint256 public reduceRate;

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

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

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

    event Stake(address indexed user, uint256 indexed pid, uint256 amount);
    event Claim(address indexed user, uint256 indexed pid);
    event UnStake(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event ReplaceMigrate(address indexed user, uint256 pid, uint256 amount);
    event Migrate(address indexed user, uint256 pid, uint256 targetPid, uint256 amount);

    constructor (
        WePiggyToken _piggy,
        address _devAddr,
        uint256 _piggyPerBlock,
        uint256 _startBlock,
        uint256 _enableClaimBlock,
        uint256 _reduceIntervalBlock,
        uint256 _reduceRate,
        uint256 _devMiningRate
    ) public {
        piggy = _piggy;
        devAddr = _devAddr;
        piggyPerBlock = _piggyPerBlock;
        startBlock = _startBlock;
        reduceIntervalBlock = _reduceIntervalBlock;
        reduceRate = _reduceRate;
        devMiningRate = _devMiningRate;
        enableClaimBlock = _enableClaimBlock;

        totalAllocPoint = 0;
    }

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

    function usersLength(uint256 _pid) external view returns (uint256) {
        return userAddresses[_pid].length;
    }

    // Update dev address by the previous dev.
    function setDevAddr(address _devAddr) public onlyOwner {
        devAddr = _devAddr;
    }

    // Set the migrator contract. Can only be called by the owner.
    function setMigrator(uint256 _pid, IMigrator _migrator) public onlyOwner {
        poolInfo[_pid].migrator = _migrator;
    }

    // set the enable claim block
    function setEnableClaimBlock(uint256 _enableClaimBlock) public onlyOwner {
        enableClaimBlock = _enableClaimBlock;
    }

    // update reduceIntervalBlock
    function setReduceIntervalBlock(uint256 _reduceIntervalBlock, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        reduceIntervalBlock = _reduceIntervalBlock;
    }

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

        //update poolInfo
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // update reduce rate
    function setReduceRate(uint256 _reduceRate, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        reduceRate = _reduceRate;
    }

    // update dev mining rate
    function setDevMiningRate(uint256 _devMiningRate) public onlyOwner {
        devMiningRate = _devMiningRate;
    }

    // Migrate lp token to another lp contract.
    function replaceMigrate(uint256 _pid) public onlyOwner {
        PoolInfo storage pool = poolInfo[_pid];
        IMigrator migrator = pool.migrator;
        require(address(migrator) != address(0), "migrate: no migrator");

        IERC20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        (IERC20 newLpToken, uint mintBal) = migrator.replaceMigrate(lpToken);

        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;

        emit ReplaceMigrate(address(migrator), _pid, bal);
    }

    // Move lp token data to another lp contract.
    function migrate(uint256 _pid, uint256 _targetPid, uint256 begin) public onlyOwner {

        require(begin < userAddresses[_pid].length, "migrate: begin error");

        PoolInfo storage pool = poolInfo[_pid];
        IMigrator migrator = pool.migrator;
        require(address(migrator) != address(0), "migrate: no migrator");

        IERC20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        (IERC20 newLpToken, uint mintBal) = migrator.migrate(lpToken);

        PoolInfo storage targetPool = poolInfo[_targetPid];
        require(address(targetPool.lpToken) == address(newLpToken), "migrate: bad");

        uint rate = mintBal.mul(1e12).div(bal);
        for (uint i = begin; i < begin.add(20); i++) {

            if (i < userAddresses[_pid].length) {
                updatePool(_targetPid);

                address addr = userAddresses[_pid][i];
                UserInfo storage user = userInfo[_pid][addr];
                UserInfo storage tUser = userInfo[_targetPid][addr];

                if (user.amount <= 0) {
                    continue;
                }

                uint tmp = user.amount.mul(rate).div(1e12);

                tUser.amount = tUser.amount.add(tmp);
                tUser.rewardDebt = tUser.rewardDebt.add(user.rewardDebt.mul(rate).div(1e12));
                targetPool.totalDeposit = targetPool.totalDeposit.add(tmp);
                pool.totalDeposit = pool.totalDeposit.sub(user.amount);
                user.rewardDebt = 0;
                user.amount = 0;
            } else {
                break;
            }

        }

        emit Migrate(address(migrator), _pid, _targetPid, bal);

    }

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

    // Return piggyPerBlock, baseOn power  --> piggyPerBlock * (reduceRate/100)^power
    function getPiggyPerBlock(uint256 _power) public view returns (uint256){
        if (_power == 0) {
            return piggyPerBlock;
        } else {
            uint256 z = piggyPerBlock;
            for (uint256 i = 0; i < _power; i++) {
                z = z.mul(reduceRate).div(1000);
            }
            return z;
        }
    }

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

    // View function to see all pending PiggyToken on frontend.
    function allPendingPiggy(address _user) external view returns (uint256){
        uint sum = 0;
        for (uint i = 0; i < poolInfo.length; i++) {
            sum = sum.add(_pending(i, _user));
        }
        return sum;
    }

    // View function to see pending PiggyToken on frontend.
    function pendingPiggy(uint256 _pid, address _user) external view returns (uint256) {
        return _pending(_pid, _user);
    }

    //internal function
    function _pending(uint256 _pid, address _user) internal view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 accPiggyPerShare = pool.accPiggyPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));

        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            // pending piggy reward
            uint256 piggyReward = 0;
            uint256 lastRewardBlockPower = pool.lastRewardBlock.sub(startBlock).div(reduceIntervalBlock);
            uint256 blockNumberPower = block.number.sub(startBlock).div(reduceIntervalBlock);

            // get piggyReward from pool.lastRewardBlock to block.number.
            // different interval different multiplier and piggyPerBlock, sum piggyReward
            if (lastRewardBlockPower == blockNumberPower) {
                uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
                piggyReward = piggyReward.add(multiplier.mul(getPiggyPerBlock(blockNumberPower)).mul(pool.allocPoint).div(totalAllocPoint));
            } else {
                for (uint256 i = lastRewardBlockPower; i <= blockNumberPower; i++) {
                    uint256 multiplier = 0;
                    if (i == lastRewardBlockPower) {
                        multiplier = getMultiplier(pool.lastRewardBlock, startBlock.add(lastRewardBlockPower.add(1).mul(reduceIntervalBlock)).sub(1));
                    } else if (i == blockNumberPower) {
                        multiplier = getMultiplier(startBlock.add(blockNumberPower.mul(reduceIntervalBlock)), block.number);
                    } else {
                        multiplier = reduceIntervalBlock;
                    }
                    piggyReward = piggyReward.add(multiplier.mul(getPiggyPerBlock(i)).mul(pool.allocPoint).div(totalAllocPoint));
                }
            }

            accPiggyPerShare = accPiggyPerShare.add(piggyReward.mul(1e12).div(lpSupply));
        }

        // get pending value
        uint256 pendingValue = user.amount.mul(accPiggyPerShare).div(1e12).sub(user.rewardDebt);

        // if enableClaimBlock after block.number, return pendingValue + user.pendingReward.
        // else return pendingValue.
        if (enableClaimBlock > block.number) {
            return pendingValue.add(user.pendingReward);
        } else if (user.pendingReward > 0 && user.unStakeBeforeEnableClaim) {
            return pendingValue.add(user.pendingReward);
        }
        return pendingValue;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {

        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }

        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }

        // get piggyReward. piggyReward base on current PiggyPerBlock.
        uint256 power = block.number.sub(startBlock).div(reduceIntervalBlock);
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 piggyReward = multiplier.mul(getPiggyPerBlock(power)).mul(pool.allocPoint).div(totalAllocPoint);

        // mint
        piggy.mint(devAddr, piggyReward.mul(devMiningRate).div(100));
        piggy.mint(address(this), piggyReward);

        //update pool
        pool.accPiggyPerShare = pool.accPiggyPerShare.add(piggyReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;

    }

    // Add a new lp to the pool. Can only be called by the owner.
    // DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IERC20 _lpToken, IMigrator _migrator, bool _withUpdate) public onlyOwner {

        if (_withUpdate) {
            massUpdatePools();
        }

        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;

        //update totalAllocPoint
        totalAllocPoint = totalAllocPoint.add(_allocPoint);

        // add poolInfo
        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accPiggyPerShare : 0,
        totalDeposit : 0,
        migrator : _migrator
        }));
    }

    // Stake LP tokens to PiggyBreeder for WPC allocation.
    function stake(uint256 _pid, uint256 _amount) public {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        //update poolInfo by pid
        updatePool(_pid);

        // if user's amount bigger than zero, transfer PiggyToken to user.
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accPiggyPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                // if enableClaimBlock after block.number, save the pending to user.pendingReward.
                if (enableClaimBlock <= block.number) {
                    safePiggyTransfer(msg.sender, pending);

                    // transfer user.pendingReward if user.pendingReward > 0, and update user.pendingReward to 0
                    if (user.pendingReward > 0) {
                        safePiggyTransfer(msg.sender, user.pendingReward);
                        user.pendingReward = 0;
                    }
                } else {
                    user.pendingReward = user.pendingReward.add(pending);
                }
            }
        }

        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
            pool.totalDeposit = pool.totalDeposit.add(_amount);
            userAddresses[_pid].push(msg.sender);
        }

        user.rewardDebt = user.amount.mul(pool.accPiggyPerShare).div(1e12);

        emit Stake(msg.sender, _pid, _amount);

    }

    // UnStake LP tokens from PiggyBreeder.
    function unStake(uint256 _pid, uint256 _amount) public {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "unStake: not good");

        //update poolInfo by pid
        updatePool(_pid);

        //transfer PiggyToken to user.
        uint256 pending = user.amount.mul(pool.accPiggyPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            // if enableClaimBlock after block.number, save the pending to user.pendingReward.
            if (enableClaimBlock <= block.number) {
                safePiggyTransfer(msg.sender, pending);

                // transfer user.pendingReward if user.pendingReward > 0, and update user.pendingReward to 0
                if (user.pendingReward > 0) {
                    safePiggyTransfer(msg.sender, user.pendingReward);
                    user.pendingReward = 0;
                }
            } else {
                user.pendingReward = user.pendingReward.add(pending);
                user.unStakeBeforeEnableClaim = true;
            }
        }

        if (_amount > 0) {
            // transfer LP tokens to user
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            // update user info
            user.amount = user.amount.sub(_amount);
            pool.totalDeposit = pool.totalDeposit.sub(_amount);
        }

        user.rewardDebt = user.amount.mul(pool.accPiggyPerShare).div(1e12);

        emit UnStake(msg.sender, _pid, _amount);
    }

    // claim WPC
    function claim(uint256 _pid) public {

        require(enableClaimBlock <= block.number, "too early to claim");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        //update poolInfo by pid
        updatePool(_pid);

        // if user's amount bigger than zero, transfer PiggyToken to user.
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accPiggyPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                safePiggyTransfer(msg.sender, pending);
            }
        }

        // transfer user.pendingReward if user.pendingReward > 0, and update user.pendingReward to 0
        if (user.pendingReward > 0) {
            safePiggyTransfer(msg.sender, user.pendingReward);
            user.pendingReward = 0;
        }

        // update user info
        user.rewardDebt = user.amount.mul(pool.accPiggyPerShare).div(1e12);

        emit Claim(msg.sender, _pid);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 amount = user.amount;

        // transfer LP tokens to user
        pool.lpToken.safeTransfer(address(msg.sender), amount);

        pool.totalDeposit = pool.totalDeposit.sub(user.amount);
        // update user info
        user.amount = 0;
        user.rewardDebt = 0;

        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }


}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract WePiggyToken","name":"_piggy","type":"address"},{"internalType":"address","name":"_devAddr","type":"address"},{"internalType":"uint256","name":"_piggyPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_enableClaimBlock","type":"uint256"},{"internalType":"uint256","name":"_reduceIntervalBlock","type":"uint256"},{"internalType":"uint256","name":"_reduceRate","type":"uint256"},{"internalType":"uint256","name":"_devMiningRate","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"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"targetPid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReplaceMigrate","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":"Stake","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":"UnStake","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"contract IMigrator","name":"_migrator","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"allPendingPiggy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMiningRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableClaimBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_power","type":"uint256"}],"name":"getPiggyPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_targetPid","type":"uint256"},{"internalType":"uint256","name":"begin","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","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":"pendingPiggy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"piggy","outputs":[{"internalType":"contract WePiggyToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"piggyPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPiggyPerShare","type":"uint256"},{"internalType":"uint256","name":"totalDeposit","type":"uint256"},{"internalType":"contract IMigrator","name":"migrator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reduceIntervalBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reduceRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"replaceMigrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setAllocPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddr","type":"address"}],"name":"setDevAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_devMiningRate","type":"uint256"}],"name":"setDevMiningRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_enableClaimBlock","type":"uint256"}],"name":"setEnableClaimBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IMigrator","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reduceIntervalBlock","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setReduceIntervalBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reduceRate","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setReduceRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"pendingReward","type":"uint256"},{"internalType":"bool","name":"unStakeBeforeEnableClaim","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"usersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405162002b7a38038062002b7a833981810160405261010081101561003657600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e0909701519596949593949293919290916000610073610115565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03998a166001600160a01b03199182161790915560028054989099169716969096179096556004939093556005919091556007919091556008929092556003556006556000600c55610119565b3390565b612a5180620001296000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c8063565e77d511610130578063a0f99203116100b8578063c71b4b431161007c578063c71b4b43146105e1578063da09c72c1461061f578063e86e282f14610627578063f2fde38b1461064d578063f4844dff1461067357610227565b8063a0f992031461055d578063ae6d858c14610588578063af8feca8146105b4578063b5e48cf9146105d1578063b5fdf28e146105d957610227565b80637b0472f0116100ff5780637b0472f01461049257806388c95018146104b55780638da5cb5b146104de5780638dbb1e3a146104e657806393f1a40b1461050957610227565b8063565e77d51461043f578063630b5ba11461045c5780636ebb64a214610464578063715018a61461048a57610227565b8063379607f5116101b357806348cd4cb11161018257806348cd4cb114610399578063512001b1146103a157806351eb05a6146103c65780635312ea8e146103e357806355513d1f1461040057610227565b8063379607f5146103325780633c5868981461034f5780633ce7f63d146103745780634404f9071461037c57610227565b8063213832d4116101fa578063213832d4146102b4578063275a91de146102d157806330cd8eda146102ff57806334056a5314610307578063372caeb81461030f57610227565b8063081e3eda1461022c5780631526fe2714610246578063167ff50b146102a457806317caf6f1146102ac575b600080fd5b610234610690565b60408051918252519081900360200190f35b6102636004803603602081101561025c57600080fd5b5035610696565b604080516001600160a01b0397881681526020810196909652858101949094526060850192909252608084015290921660a082015290519081900360c00190f35b6102346106e6565b6102346106ec565b610234600480360360208110156102ca57600080fd5b50356106f2565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610744565b005b6102346107e3565b6102346107e9565b6102fd6004803603604081101561032557600080fd5b50803590602001356107ef565b6102fd6004803603602081101561034857600080fd5b50356109ae565b6102fd6004803603604081101561036557600080fd5b50803590602001351515610af5565b610234610b61565b6102fd6004803603602081101561039257600080fd5b5035610b67565b610234610e67565b6102fd600480360360408110156103b757600080fd5b50803590602001351515610e6d565b6102fd600480360360208110156103dc57600080fd5b5035610ed9565b6102fd600480360360208110156103f957600080fd5b503561112b565b6104236004803603604081101561041657600080fd5b50803590602001356111db565b604080516001600160a01b039092168252519081900360200190f35b6102346004803603602081101561045557600080fd5b5035611210565b6102fd611222565b6102fd6004803603602081101561047a57600080fd5b50356001600160a01b0316611245565b6102fd6112bf565b6102fd600480360360408110156104a857600080fd5b5080359060200135611361565b6102fd600480360360608110156104cb57600080fd5b50803590602081013590604001356114f8565b6104236119bc565b610234600480360360408110156104fc57600080fd5b50803590602001356119cb565b6105356004803603604081101561051f57600080fd5b50803590602001356001600160a01b03166119e0565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b6102fd6004803603606081101561057357600080fd5b50803590602081013590604001351515611a15565b6102346004803603604081101561059e57600080fd5b50803590602001356001600160a01b0316611ae6565b6102fd600480360360208110156105ca57600080fd5b5035611af2565b610234611b4f565b610423611b55565b6102fd600480360360808110156105f757600080fd5b508035906001600160a01b036020820135811691604081013590911690606001351515611b64565b610423611d4b565b6102346004803603602081101561063d57600080fd5b50356001600160a01b0316611d5a565b6102fd6004803603602081101561066357600080fd5b50356001600160a01b0316611d87565b6102fd6004803603602081101561068957600080fd5b5035611e7f565b60095490565b600981815481106106a357fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0394851696509294919390921686565b60035481565b600c5481565b600081610702575060045461073f565b60045460005b8381101561073b576107316103e861072b60085485611edc90919063ffffffff16565b90611f35565b9150600101610708565b5090505b919050565b61074c611f77565b6000546001600160a01b0390811691161461079c576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b80600983815481106107aa57fe5b906000526020600020906006020160050160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050565b60075481565b60045481565b6000600983815481106107fe57fe5b60009182526020808320868452600a825260408085203386529092529220805460069092029092019250831115610870576040805162461bcd60e51b81526020600482015260116024820152701d5b94dd185ad94e881b9bdd0819dbdbd9607a1b604482015290519081900360640190fd5b61087984610ed9565b60006108ad82600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b90611f7b565b905080156109115743600654116108ed576108c83382611fbd565b6002820154156108e8576108e0338360020154611fbd565b600060028301555b610911565b60028201546108fc908261214e565b600283015560038201805460ff191660011790555b831561095057825461092d906001600160a01b031633866121a8565b81546109399085611f7b565b8255600483015461094a9085611f7b565b60048401555b6003830154825461096b9164e8d4a510009161072b91611edc565b6001830155604080518581529051869133917f54a9763035584fc4fcad1bc4e0e7a83f93e016f50ae32bd527530a77257393ee9181900360200190a35050505050565b4360065411156109fa576040805162461bcd60e51b8152602060048201526012602482015271746f6f206561726c7920746f20636c61696d60701b604482015290519081900360640190fd5b600060098281548110610a0957fe5b60009182526020808320858452600a82526040808520338652909252922060069091029091019150610a3a83610ed9565b805415610a83576000610a6f82600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b90508015610a8157610a813382611fbd565b505b600281015415610aa357610a9b338260020154611fbd565b600060028201555b60038201548154610abe9164e8d4a510009161072b91611edc565b6001820155604051839033907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490600090a3505050565b610afd611f77565b6000546001600160a01b03908116911614610b4d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015610b5b57610b5b611222565b50600755565b60065481565b610b6f611f77565b6000546001600160a01b03908116911614610bbf576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600060098281548110610bce57fe5b6000918252602090912060069091020160058101549091506001600160a01b031680610c38576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b8154604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b158015610c8757600080fd5b505afa158015610c9b573d6000803e3d6000fd5b505050506040513d6020811015610cb157600080fd5b50519050610cc96001600160a01b03831684836121fa565b600080846001600160a01b0316636336cc61856040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b158015610d1a57600080fd5b505af1158015610d2e573d6000803e3d6000fd5b505050506040513d6040811015610d4457600080fd5b508051602091820151604080516370a0823160e01b815230600482015290519295509093506001600160a01b038516926370a0823192602480840193829003018186803b158015610d9457600080fd5b505afa158015610da8573d6000803e3d6000fd5b505050506040513d6020811015610dbe57600080fd5b50518314610e02576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b85546001600160a01b0319166001600160a01b0383811691909117875560408051898152602081018690528151928816927f02ac0adb3d0746a176fe1c8557b1ee08d84b9bf5ac79cd08e2d5275c600d2d53929181900390910190a250505050505050565b60055481565b610e75611f77565b6000546001600160a01b03908116911614610ec5576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015610ed357610ed3611222565b50600855565b600060098281548110610ee857fe5b9060005260206000209060060201905080600201544311610f095750611128565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f5357600080fd5b505afa158015610f67573d6000803e3d6000fd5b505050506040513d6020811015610f7d57600080fd5b5051905080610f93575043600290910155611128565b6000610fb060075461072b60055443611f7b90919063ffffffff16565b90506000610fc28460020154436119cb565b90506000610fed600c5461072b8760010154610fe7610fe0886106f2565b8790611edc565b90611edc565b6001546002546003549293506001600160a01b03918216926340c10f1992909116906110219060649061072b908790611edc565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561106757600080fd5b505af115801561107b573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b1580156110d257600080fd5b505af11580156110e6573d6000803e3d6000fd5b505050506111146111098561072b64e8d4a5100085611edc90919063ffffffff16565b60038701549061214e565b600386015550504360029093019290925550505b50565b60006009828154811061113a57fe5b60009182526020808320858452600a8252604080852033808752935290932080546006909302909301805490945061117f916001600160a01b039190911690836121a8565b8154600484015461118f91611f7b565b600484015560008083556001830155604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b600b60205281600052604060002081815481106111f457fe5b6000918252602090912001546001600160a01b03169150829050565b6000908152600b602052604090205490565b60095460005b818110156112415761123981610ed9565b600101611228565b5050565b61124d611f77565b6000546001600160a01b0390811691161461129d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6112c7611f77565b6000546001600160a01b03908116911614611317576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006009838154811061137057fe5b60009182526020808320868452600a825260408085203386529092529220600690910290910191506113a184610ed9565b80541561142d5760006113d682600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b9050801561142b574360065411611416576113f13382611fbd565b60028201541561141157611409338360020154611fbd565b600060028301555b61142b565b6002820154611425908261214e565b60028301555b505b821561149b57815461144a906001600160a01b031633308661230d565b8054611456908461214e565b81556004820154611467908461214e565b60048301556000848152600b602090815260408220805460018101825590835291200180546001600160a01b031916331790555b600382015481546114b69164e8d4a510009161072b91611edc565b6001820155604080518481529051859133917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b69181900360200190a350505050565b611500611f77565b6000546001600160a01b03908116911614611550576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b6000838152600b602052604090205481106115a9576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d103132b3b4b71032b93937b960611b604482015290519081900360640190fd5b6000600984815481106115b857fe5b6000918252602090912060069091020160058101549091506001600160a01b031680611622576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b8154604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b15801561167157600080fd5b505afa158015611685573d6000803e3d6000fd5b505050506040513d602081101561169b57600080fd5b505190506116b36001600160a01b03831684836121fa565b600080846001600160a01b031663ce5494bb856040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b15801561170457600080fd5b505af1158015611718573d6000803e3d6000fd5b505050506040513d604081101561172e57600080fd5b508051602090910151600980549294509092506000918a90811061174e57fe5b6000918252602090912060069091020180549091506001600160a01b038481169116146117b1576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b60006117c68561072b8564e8d4a51000611edc565b9050885b6117d58a601461214e565b8110156119625760008c8152600b6020526040902054811015611955576117fb8b610ed9565b60008c8152600b6020526040812080548390811061181557fe5b9060005260206000200160009054906101000a90046001600160a01b031690506000600a60008f81526020019081526020016000206000836001600160a01b03166001600160a01b0316815260200190815260200160002090506000600a60008f81526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020905060008260000154116118bd5750505061195a565b81546000906118d79064e8d4a510009061072b9089611edc565b82549091506118e6908261214e565b82556001830154611911906119069064e8d4a510009061072b908a611edc565b60018401549061214e565b60018301556004870154611925908261214e565b6004808901919091558354908e015461193d91611f7b565b60048e0155505060006001820181905590555061195a565b611962565b6001016117ca565b50604080518c8152602081018c905280820187905290516001600160a01b038916917fc47a839c70aa320457c80c5abd38ce8b516c72e37be119b7962f67f1f8eb7ac2919081900360600190a25050505050505050505050565b6000546001600160a01b031690565b60006119d78284611f7b565b90505b92915050565b600a60209081526000928352604080842090915290825290208054600182015460028301546003909301549192909160ff1684565b611a1d611f77565b6000546001600160a01b03908116911614611a6d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015611a7b57611a7b611222565b611ab882611ab260098681548110611a8f57fe5b906000526020600020906006020160010154600c54611f7b90919063ffffffff16565b9061214e565b600c819055508160098481548110611acc57fe5b906000526020600020906006020160010181905550505050565b60006119d7838361236d565b611afa611f77565b6000546001600160a01b03908116911614611b4a576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600355565b60085481565b6001546001600160a01b031681565b611b6c611f77565b6000546001600160a01b03908116911614611bbc576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015611bca57611bca611222565b60006005544311611bdd57600554611bdf565b435b600c54909150611bef908661214e565b600c556040805160c0810182526001600160a01b039586168152602081019687529081019182526000606082018181526080830182815295871660a08401908152600980546001810182559352925160069092027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810180549389166001600160a01b031994851617905597517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b089015592517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b188015591517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b287015592517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b386015591517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b49094018054949093169390911692909217905550565b6002546001600160a01b031681565b600080805b60095481101561073b57611d7d611d76828661236d565b839061214e565b9150600101611d5f565b611d8f611f77565b6000546001600160a01b03908116911614611ddf576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b6001600160a01b038116611e245760405162461bcd60e51b81526004018080602001828103825260268152602001806129556026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611e87611f77565b6000546001600160a01b03908116911614611ed7576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600655565b600082611eeb575060006119da565b82820282848281611ef857fe5b04146119d75760405162461bcd60e51b815260040180806020018281038252602181526020018061297b6021913960400191505060405180910390fd5b60006119d783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061261d565b3390565b60006119d783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126bf565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561200857600080fd5b505afa15801561201c573d6000803e3d6000fd5b505050506040513d602081101561203257600080fd5b50519050808211156120c6576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561209457600080fd5b505af11580156120a8573d6000803e3d6000fd5b505050506040513d60208110156120be57600080fd5b506121499050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561211c57600080fd5b505af1158015612130573d6000803e3d6000fd5b505050506040513d602081101561214657600080fd5b50505b505050565b6000828201838110156119d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612149908490612719565b801580612280575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561225257600080fd5b505afa158015612266573d6000803e3d6000fd5b505050506040513d602081101561227c57600080fd5b5051155b6122bb5760405162461bcd60e51b81526004018080602001828103825260368152602001806129e66036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612149908490612719565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612367908590612719565b50505050565b6000806009848154811061237d57fe5b60009182526020808320878452600a825260408085206001600160a01b0389811687529084528186206006959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b1580156123f757600080fd5b505afa15801561240b573d6000803e3d6000fd5b505050506040513d602081101561242157600080fd5b505160028501549091504311801561243857508015155b156125935760008061245f60075461072b6005548960020154611f7b90919063ffffffff16565b9050600061247e60075461072b60055443611f7b90919063ffffffff16565b9050808214156124c65760006124988860020154436119cb565b90506124be6124b7600c5461072b8b60010154610fe7610fe0886106f2565b859061214e565b935050612577565b815b8181116125755760008382141561251857612511896002015461250c60016108a7612503600754610fe760018c61214e90919063ffffffff16565b6005549061214e565b6119cb565b9050612546565b828214156125415761251161253b61250360075486611edc90919063ffffffff16565b436119cb565b506007545b61256a612563600c5461072b8c60010154610fe7610fe0886106f2565b869061214e565b9450506001016124c8565b505b61258d6125638561072b8664e8d4a51000611edc565b94505050505b60006125bd84600101546108a764e8d4a5100061072b878960000154611edc90919063ffffffff16565b90504360065411156125e55760028401546125d990829061214e565b955050505050506119da565b600084600201541180156125fd5750600384015460ff165b156126125760028401546125d990829061214e565b979650505050505050565b600081836126a95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561266e578181015183820152602001612656565b50505050905090810190601f16801561269b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816126b557fe5b0495945050505050565b600081848411156127115760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561266e578181015183820152602001612656565b505050900390565b606061276e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127ca9092919063ffffffff16565b8051909150156121495780806020019051602081101561278d57600080fd5b50516121495760405162461bcd60e51b815260040180806020018281038252602a8152602001806129bc602a913960400191505060405180910390fd5b60606127d984846000856127e1565b949350505050565b60606127ec8561294e565b61283d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061287c5780518252601f19909201916020918201910161285d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b509150915081156128f75791506127d99050565b8051156129075780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561266e578181015183820152602001612656565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212201ebbcb92337a7a692d9d354775a3fd9c1265367630fb7a348ec26e98e1c84a0c64736f6c634300060c0033000000000000000000000000e22b0567c23b1556dcd2e0cc7c06070b447684c40000000000000000000000001a2401aefd3995f683a19d4d6f6d3dfa2b5ecd9a0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000aaf1b80000000000000000000000000000000000000000000000000000000000ab0be4000000000000000000000000000000000000000000000000000000000000168000000000000000000000000000000000000000000000000000000000000003e70000000000000000000000000000000000000000000000000000000000000027

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c8063565e77d511610130578063a0f99203116100b8578063c71b4b431161007c578063c71b4b43146105e1578063da09c72c1461061f578063e86e282f14610627578063f2fde38b1461064d578063f4844dff1461067357610227565b8063a0f992031461055d578063ae6d858c14610588578063af8feca8146105b4578063b5e48cf9146105d1578063b5fdf28e146105d957610227565b80637b0472f0116100ff5780637b0472f01461049257806388c95018146104b55780638da5cb5b146104de5780638dbb1e3a146104e657806393f1a40b1461050957610227565b8063565e77d51461043f578063630b5ba11461045c5780636ebb64a214610464578063715018a61461048a57610227565b8063379607f5116101b357806348cd4cb11161018257806348cd4cb114610399578063512001b1146103a157806351eb05a6146103c65780635312ea8e146103e357806355513d1f1461040057610227565b8063379607f5146103325780633c5868981461034f5780633ce7f63d146103745780634404f9071461037c57610227565b8063213832d4116101fa578063213832d4146102b4578063275a91de146102d157806330cd8eda146102ff57806334056a5314610307578063372caeb81461030f57610227565b8063081e3eda1461022c5780631526fe2714610246578063167ff50b146102a457806317caf6f1146102ac575b600080fd5b610234610690565b60408051918252519081900360200190f35b6102636004803603602081101561025c57600080fd5b5035610696565b604080516001600160a01b0397881681526020810196909652858101949094526060850192909252608084015290921660a082015290519081900360c00190f35b6102346106e6565b6102346106ec565b610234600480360360208110156102ca57600080fd5b50356106f2565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610744565b005b6102346107e3565b6102346107e9565b6102fd6004803603604081101561032557600080fd5b50803590602001356107ef565b6102fd6004803603602081101561034857600080fd5b50356109ae565b6102fd6004803603604081101561036557600080fd5b50803590602001351515610af5565b610234610b61565b6102fd6004803603602081101561039257600080fd5b5035610b67565b610234610e67565b6102fd600480360360408110156103b757600080fd5b50803590602001351515610e6d565b6102fd600480360360208110156103dc57600080fd5b5035610ed9565b6102fd600480360360208110156103f957600080fd5b503561112b565b6104236004803603604081101561041657600080fd5b50803590602001356111db565b604080516001600160a01b039092168252519081900360200190f35b6102346004803603602081101561045557600080fd5b5035611210565b6102fd611222565b6102fd6004803603602081101561047a57600080fd5b50356001600160a01b0316611245565b6102fd6112bf565b6102fd600480360360408110156104a857600080fd5b5080359060200135611361565b6102fd600480360360608110156104cb57600080fd5b50803590602081013590604001356114f8565b6104236119bc565b610234600480360360408110156104fc57600080fd5b50803590602001356119cb565b6105356004803603604081101561051f57600080fd5b50803590602001356001600160a01b03166119e0565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b6102fd6004803603606081101561057357600080fd5b50803590602081013590604001351515611a15565b6102346004803603604081101561059e57600080fd5b50803590602001356001600160a01b0316611ae6565b6102fd600480360360208110156105ca57600080fd5b5035611af2565b610234611b4f565b610423611b55565b6102fd600480360360808110156105f757600080fd5b508035906001600160a01b036020820135811691604081013590911690606001351515611b64565b610423611d4b565b6102346004803603602081101561063d57600080fd5b50356001600160a01b0316611d5a565b6102fd6004803603602081101561066357600080fd5b50356001600160a01b0316611d87565b6102fd6004803603602081101561068957600080fd5b5035611e7f565b60095490565b600981815481106106a357fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0394851696509294919390921686565b60035481565b600c5481565b600081610702575060045461073f565b60045460005b8381101561073b576107316103e861072b60085485611edc90919063ffffffff16565b90611f35565b9150600101610708565b5090505b919050565b61074c611f77565b6000546001600160a01b0390811691161461079c576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b80600983815481106107aa57fe5b906000526020600020906006020160050160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050565b60075481565b60045481565b6000600983815481106107fe57fe5b60009182526020808320868452600a825260408085203386529092529220805460069092029092019250831115610870576040805162461bcd60e51b81526020600482015260116024820152701d5b94dd185ad94e881b9bdd0819dbdbd9607a1b604482015290519081900360640190fd5b61087984610ed9565b60006108ad82600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b90611f7b565b905080156109115743600654116108ed576108c83382611fbd565b6002820154156108e8576108e0338360020154611fbd565b600060028301555b610911565b60028201546108fc908261214e565b600283015560038201805460ff191660011790555b831561095057825461092d906001600160a01b031633866121a8565b81546109399085611f7b565b8255600483015461094a9085611f7b565b60048401555b6003830154825461096b9164e8d4a510009161072b91611edc565b6001830155604080518581529051869133917f54a9763035584fc4fcad1bc4e0e7a83f93e016f50ae32bd527530a77257393ee9181900360200190a35050505050565b4360065411156109fa576040805162461bcd60e51b8152602060048201526012602482015271746f6f206561726c7920746f20636c61696d60701b604482015290519081900360640190fd5b600060098281548110610a0957fe5b60009182526020808320858452600a82526040808520338652909252922060069091029091019150610a3a83610ed9565b805415610a83576000610a6f82600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b90508015610a8157610a813382611fbd565b505b600281015415610aa357610a9b338260020154611fbd565b600060028201555b60038201548154610abe9164e8d4a510009161072b91611edc565b6001820155604051839033907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490600090a3505050565b610afd611f77565b6000546001600160a01b03908116911614610b4d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015610b5b57610b5b611222565b50600755565b60065481565b610b6f611f77565b6000546001600160a01b03908116911614610bbf576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600060098281548110610bce57fe5b6000918252602090912060069091020160058101549091506001600160a01b031680610c38576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b8154604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b158015610c8757600080fd5b505afa158015610c9b573d6000803e3d6000fd5b505050506040513d6020811015610cb157600080fd5b50519050610cc96001600160a01b03831684836121fa565b600080846001600160a01b0316636336cc61856040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b158015610d1a57600080fd5b505af1158015610d2e573d6000803e3d6000fd5b505050506040513d6040811015610d4457600080fd5b508051602091820151604080516370a0823160e01b815230600482015290519295509093506001600160a01b038516926370a0823192602480840193829003018186803b158015610d9457600080fd5b505afa158015610da8573d6000803e3d6000fd5b505050506040513d6020811015610dbe57600080fd5b50518314610e02576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b85546001600160a01b0319166001600160a01b0383811691909117875560408051898152602081018690528151928816927f02ac0adb3d0746a176fe1c8557b1ee08d84b9bf5ac79cd08e2d5275c600d2d53929181900390910190a250505050505050565b60055481565b610e75611f77565b6000546001600160a01b03908116911614610ec5576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015610ed357610ed3611222565b50600855565b600060098281548110610ee857fe5b9060005260206000209060060201905080600201544311610f095750611128565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f5357600080fd5b505afa158015610f67573d6000803e3d6000fd5b505050506040513d6020811015610f7d57600080fd5b5051905080610f93575043600290910155611128565b6000610fb060075461072b60055443611f7b90919063ffffffff16565b90506000610fc28460020154436119cb565b90506000610fed600c5461072b8760010154610fe7610fe0886106f2565b8790611edc565b90611edc565b6001546002546003549293506001600160a01b03918216926340c10f1992909116906110219060649061072b908790611edc565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561106757600080fd5b505af115801561107b573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b1580156110d257600080fd5b505af11580156110e6573d6000803e3d6000fd5b505050506111146111098561072b64e8d4a5100085611edc90919063ffffffff16565b60038701549061214e565b600386015550504360029093019290925550505b50565b60006009828154811061113a57fe5b60009182526020808320858452600a8252604080852033808752935290932080546006909302909301805490945061117f916001600160a01b039190911690836121a8565b8154600484015461118f91611f7b565b600484015560008083556001830155604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b600b60205281600052604060002081815481106111f457fe5b6000918252602090912001546001600160a01b03169150829050565b6000908152600b602052604090205490565b60095460005b818110156112415761123981610ed9565b600101611228565b5050565b61124d611f77565b6000546001600160a01b0390811691161461129d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6112c7611f77565b6000546001600160a01b03908116911614611317576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006009838154811061137057fe5b60009182526020808320868452600a825260408085203386529092529220600690910290910191506113a184610ed9565b80541561142d5760006113d682600101546108a764e8d4a5100061072b87600301548760000154611edc90919063ffffffff16565b9050801561142b574360065411611416576113f13382611fbd565b60028201541561141157611409338360020154611fbd565b600060028301555b61142b565b6002820154611425908261214e565b60028301555b505b821561149b57815461144a906001600160a01b031633308661230d565b8054611456908461214e565b81556004820154611467908461214e565b60048301556000848152600b602090815260408220805460018101825590835291200180546001600160a01b031916331790555b600382015481546114b69164e8d4a510009161072b91611edc565b6001820155604080518481529051859133917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b69181900360200190a350505050565b611500611f77565b6000546001600160a01b03908116911614611550576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b6000838152600b602052604090205481106115a9576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d103132b3b4b71032b93937b960611b604482015290519081900360640190fd5b6000600984815481106115b857fe5b6000918252602090912060069091020160058101549091506001600160a01b031680611622576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b8154604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b15801561167157600080fd5b505afa158015611685573d6000803e3d6000fd5b505050506040513d602081101561169b57600080fd5b505190506116b36001600160a01b03831684836121fa565b600080846001600160a01b031663ce5494bb856040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506040805180830381600087803b15801561170457600080fd5b505af1158015611718573d6000803e3d6000fd5b505050506040513d604081101561172e57600080fd5b508051602090910151600980549294509092506000918a90811061174e57fe5b6000918252602090912060069091020180549091506001600160a01b038481169116146117b1576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b60006117c68561072b8564e8d4a51000611edc565b9050885b6117d58a601461214e565b8110156119625760008c8152600b6020526040902054811015611955576117fb8b610ed9565b60008c8152600b6020526040812080548390811061181557fe5b9060005260206000200160009054906101000a90046001600160a01b031690506000600a60008f81526020019081526020016000206000836001600160a01b03166001600160a01b0316815260200190815260200160002090506000600a60008f81526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020905060008260000154116118bd5750505061195a565b81546000906118d79064e8d4a510009061072b9089611edc565b82549091506118e6908261214e565b82556001830154611911906119069064e8d4a510009061072b908a611edc565b60018401549061214e565b60018301556004870154611925908261214e565b6004808901919091558354908e015461193d91611f7b565b60048e0155505060006001820181905590555061195a565b611962565b6001016117ca565b50604080518c8152602081018c905280820187905290516001600160a01b038916917fc47a839c70aa320457c80c5abd38ce8b516c72e37be119b7962f67f1f8eb7ac2919081900360600190a25050505050505050505050565b6000546001600160a01b031690565b60006119d78284611f7b565b90505b92915050565b600a60209081526000928352604080842090915290825290208054600182015460028301546003909301549192909160ff1684565b611a1d611f77565b6000546001600160a01b03908116911614611a6d576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015611a7b57611a7b611222565b611ab882611ab260098681548110611a8f57fe5b906000526020600020906006020160010154600c54611f7b90919063ffffffff16565b9061214e565b600c819055508160098481548110611acc57fe5b906000526020600020906006020160010181905550505050565b60006119d7838361236d565b611afa611f77565b6000546001600160a01b03908116911614611b4a576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600355565b60085481565b6001546001600160a01b031681565b611b6c611f77565b6000546001600160a01b03908116911614611bbc576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b8015611bca57611bca611222565b60006005544311611bdd57600554611bdf565b435b600c54909150611bef908661214e565b600c556040805160c0810182526001600160a01b039586168152602081019687529081019182526000606082018181526080830182815295871660a08401908152600980546001810182559352925160069092027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810180549389166001600160a01b031994851617905597517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b089015592517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b188015591517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b287015592517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b386015591517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b49094018054949093169390911692909217905550565b6002546001600160a01b031681565b600080805b60095481101561073b57611d7d611d76828661236d565b839061214e565b9150600101611d5f565b611d8f611f77565b6000546001600160a01b03908116911614611ddf576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b6001600160a01b038116611e245760405162461bcd60e51b81526004018080602001828103825260268152602001806129556026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611e87611f77565b6000546001600160a01b03908116911614611ed7576040805162461bcd60e51b8152602060048201819052602482015260008051602061299c833981519152604482015290519081900360640190fd5b600655565b600082611eeb575060006119da565b82820282848281611ef857fe5b04146119d75760405162461bcd60e51b815260040180806020018281038252602181526020018061297b6021913960400191505060405180910390fd5b60006119d783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061261d565b3390565b60006119d783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126bf565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561200857600080fd5b505afa15801561201c573d6000803e3d6000fd5b505050506040513d602081101561203257600080fd5b50519050808211156120c6576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561209457600080fd5b505af11580156120a8573d6000803e3d6000fd5b505050506040513d60208110156120be57600080fd5b506121499050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561211c57600080fd5b505af1158015612130573d6000803e3d6000fd5b505050506040513d602081101561214657600080fd5b50505b505050565b6000828201838110156119d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612149908490612719565b801580612280575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561225257600080fd5b505afa158015612266573d6000803e3d6000fd5b505050506040513d602081101561227c57600080fd5b5051155b6122bb5760405162461bcd60e51b81526004018080602001828103825260368152602001806129e66036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612149908490612719565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612367908590612719565b50505050565b6000806009848154811061237d57fe5b60009182526020808320878452600a825260408085206001600160a01b0389811687529084528186206006959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b1580156123f757600080fd5b505afa15801561240b573d6000803e3d6000fd5b505050506040513d602081101561242157600080fd5b505160028501549091504311801561243857508015155b156125935760008061245f60075461072b6005548960020154611f7b90919063ffffffff16565b9050600061247e60075461072b60055443611f7b90919063ffffffff16565b9050808214156124c65760006124988860020154436119cb565b90506124be6124b7600c5461072b8b60010154610fe7610fe0886106f2565b859061214e565b935050612577565b815b8181116125755760008382141561251857612511896002015461250c60016108a7612503600754610fe760018c61214e90919063ffffffff16565b6005549061214e565b6119cb565b9050612546565b828214156125415761251161253b61250360075486611edc90919063ffffffff16565b436119cb565b506007545b61256a612563600c5461072b8c60010154610fe7610fe0886106f2565b869061214e565b9450506001016124c8565b505b61258d6125638561072b8664e8d4a51000611edc565b94505050505b60006125bd84600101546108a764e8d4a5100061072b878960000154611edc90919063ffffffff16565b90504360065411156125e55760028401546125d990829061214e565b955050505050506119da565b600084600201541180156125fd5750600384015460ff165b156126125760028401546125d990829061214e565b979650505050505050565b600081836126a95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561266e578181015183820152602001612656565b50505050905090810190601f16801561269b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816126b557fe5b0495945050505050565b600081848411156127115760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561266e578181015183820152602001612656565b505050900390565b606061276e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127ca9092919063ffffffff16565b8051909150156121495780806020019051602081101561278d57600080fd5b50516121495760405162461bcd60e51b815260040180806020018281038252602a8152602001806129bc602a913960400191505060405180910390fd5b60606127d984846000856127e1565b949350505050565b60606127ec8561294e565b61283d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061287c5780518252601f19909201916020918201910161285d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b509150915081156128f75791506127d99050565b8051156129075780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561266e578181015183820152602001612656565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212201ebbcb92337a7a692d9d354775a3fd9c1265367630fb7a348ec26e98e1c84a0c64736f6c634300060c0033

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

000000000000000000000000e22b0567c23b1556dcd2e0cc7c06070b447684c40000000000000000000000001a2401aefd3995f683a19d4d6f6d3dfa2b5ecd9a0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000aaf1b80000000000000000000000000000000000000000000000000000000000ab0be4000000000000000000000000000000000000000000000000000000000000168000000000000000000000000000000000000000000000000000000000000003e70000000000000000000000000000000000000000000000000000000000000027

-----Decoded View---------------
Arg [0] : _piggy (address): 0xE22b0567c23b1556DcD2e0cc7c06070b447684c4
Arg [1] : _devAddr (address): 0x1A2401AEfD3995f683A19D4d6f6D3dfA2b5EcD9a
Arg [2] : _piggyPerBlock (uint256): 1000000000000000000
Arg [3] : _startBlock (uint256): 11203000
Arg [4] : _enableClaimBlock (uint256): 11209700
Arg [5] : _reduceIntervalBlock (uint256): 5760
Arg [6] : _reduceRate (uint256): 999
Arg [7] : _devMiningRate (uint256): 39

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000e22b0567c23b1556dcd2e0cc7c06070b447684c4
Arg [1] : 0000000000000000000000001a2401aefd3995f683a19d4d6f6d3dfa2b5ecd9a
Arg [2] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000aaf1b8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000ab0be4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000001680
Arg [6] : 00000000000000000000000000000000000000000000000000000000000003e7
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000027


Deployed Bytecode Sourcemap

58477:18692:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61443:95;;;:::i;:::-;;;;;;;;;;;;;;;;59987:26;;;;;;;;;;;;;;;;-1:-1:-1;59987:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;59987:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59529:28;;;:::i;60289:30::-;;;:::i;66355:351::-;;;;;;;;;;;;;;;;-1:-1:-1;66355:351:0;;:::i;61889:127::-;;;;;;;;;;;;;;;;-1:-1:-1;61889:127:0;;;;;;-1:-1:-1;;;;;61889:127:0;;:::i;:::-;;59863:34;;;:::i;59606:28::-;;;:::i;73929:1582::-;;;;;;;;;;;;;;;;-1:-1:-1;73929:1582:0;;;;;;;:::i;75537:1026::-;;;;;;;;;;;;;;;;-1:-1:-1;75537:1026:0;;:::i;62230:229::-;;;;;;;;;;;;;;;;-1:-1:-1;62230:229:0;;;;;;;;;:::i;59774:31::-;;;:::i;63373:642::-;;;;;;;;;;;;;;;;-1:-1:-1;63373:642:0;;:::i;59692:25::-;;;:::i;62968:193::-;;;;;;;;;;;;;;;;-1:-1:-1;62968:193:0;;;;;;;;;:::i;70382:1024::-;;;;;;;;;;;;;;;;-1:-1:-1;70382:1024:0;;:::i;76634:528::-;;;;;;;;;;;;;;;;-1:-1:-1;76634:528:0;;:::i;60142:50::-;;;;;;;;;;;;;;;;-1:-1:-1;60142:50:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;60142:50:0;;;;;;;;;;;;;;61546:119;;;;;;;;;;;;;;;;-1:-1:-1;61546:119:0;;:::i;70126:180::-;;;:::i;61721:92::-;;;;;;;;;;;;;;;;-1:-1:-1;61721:92:0;-1:-1:-1;;;;;61721:92:0;;:::i;28855:148::-;;;:::i;72287:1589::-;;;;;;;;;;;;;;;;-1:-1:-1;72287:1589:0;;;;;;;:::i;64074:1781::-;;;;;;;;;;;;;;;;-1:-1:-1;64074:1781:0;;;;;;;;;;;;:::i;28213:79::-;;;:::i;66782:121::-;;;;;;;;;;;;;;;;-1:-1:-1;66782:121:0;;;;;;;:::i;60071:64::-;;;;;;;;;;;;;;;;-1:-1:-1;60071:64:0;;;;;;-1:-1:-1;;;;;60071:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62556:377;;;;;;;;;;;;;;;;-1:-1:-1;62556:377:0;;;;;;;;;;;;;;:::i;67281:130::-;;;;;;;;;;;;;;;;-1:-1:-1;67281:130:0;;;;;;-1:-1:-1;;;;;67281:130:0;;:::i;63200:116::-;;;;;;;;;;;;;;;;-1:-1:-1;63200:116:0;;:::i;59926:25::-;;;:::i;59403:::-;;;:::i;71571:648::-;;;;;;;;;;;;;;;;-1:-1:-1;71571:648:0;;;-1:-1:-1;;;;;71571:648:0;;;;;;;;;;;;;;;;;;;;;:::i;59458:22::-;;;:::i;66976:236::-;;;;;;;;;;;;;;;;-1:-1:-1;66976:236:0;-1:-1:-1;;;;;66976:236:0;;:::i;29158:244::-;;;;;;;;;;;;;;;;-1:-1:-1;29158:244:0;-1:-1:-1;;;;;29158:244:0;;:::i;62059:128::-;;;;;;;;;;;;;;;;-1:-1:-1;62059:128:0;;:::i;61443:95::-;61515:8;:15;61443:95;:::o;59987:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59987:26:0;;;;-1:-1:-1;59987:26:0;;;;;;;;:::o;59529:28::-;;;;:::o;60289:30::-;;;;:::o;66355:351::-;66418:7;66441:11;66437:262;;-1:-1:-1;66476:13:0;;66469:20;;66437:262;66534:13;;66522:9;66562:103;66586:6;66582:1;:10;66562:103;;;66622:27;66644:4;66622:17;66628:10;;66622:1;:5;;:17;;;;:::i;:::-;:21;;:27::i;:::-;66618:31;-1:-1:-1;66594:3:0;;66562:103;;;-1:-1:-1;66686:1:0;-1:-1:-1;66437:262:0;66355:351;;;:::o;61889:127::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;61999:9:::1;61973:8;61982:4;61973:14;;;;;;;;;;;;;;;;;;:23;;;:35;;;;;-1:-1:-1::0;;;;;61973:35:0::1;;;;;-1:-1:-1::0;;;;;61973:35:0::1;;;;;;61889:127:::0;;:::o;59863:34::-;;;;:::o;59606:28::-;;;;:::o;73929:1582::-;73997:21;74021:8;74030:4;74021:14;;;;;;;;;;;;;;;;74070;;;:8;:14;;;;;;74085:10;74070:26;;;;;;;74117:11;;74021:14;;;;;;;;-1:-1:-1;74117:22:0;-1:-1:-1;74117:22:0;74109:52;;;;;-1:-1:-1;;;74109:52:0;;;;;;;;;;;;-1:-1:-1;;;74109:52:0;;;;;;;;;;;;;;;74208:16;74219:4;74208:10;:16::i;:::-;74277:15;74295:69;74348:4;:15;;;74295:48;74338:4;74295:38;74311:4;:21;;;74295:4;:11;;;:15;;:38;;;;:::i;:48::-;:52;;:69::i;:::-;74277:87;-1:-1:-1;74379:11:0;;74375:693;;74527:12;74507:16;;:32;74503:554;;74560:38;74578:10;74590:7;74560:17;:38::i;:::-;74733:18;;;;:22;74729:165;;74780:49;74798:10;74810:4;:18;;;74780:17;:49::i;:::-;74873:1;74852:18;;;:22;74729:165;74503:554;;;74955:18;;;;:31;;74978:7;74955:22;:31::i;:::-;74934:18;;;:52;75005:29;;;:36;;-1:-1:-1;;75005:36:0;75037:4;75005:36;;;74503:554;75084:11;;75080:293;;75155:12;;:55;;-1:-1:-1;;;;;75155:12:0;75189:10;75202:7;75155:25;:55::i;:::-;75272:11;;:24;;75288:7;75272:15;:24::i;:::-;75258:38;;75331:17;;;;:30;;75353:7;75331:21;:30::i;:::-;75311:17;;;:50;75080:293;75419:21;;;;75403:11;;:48;;75446:4;;75403:38;;:15;:38::i;:48::-;75385:15;;;:66;75469:34;;;;;;;;75489:4;;75477:10;;75469:34;;;;;;;;;73929:1582;;;;;:::o;75537:1026::-;75614:12;75594:16;;:32;;75586:63;;;;;-1:-1:-1;;;75586:63:0;;;;;;;;;;;;-1:-1:-1;;;75586:63:0;;;;;;;;;;;;;;;75662:21;75686:8;75695:4;75686:14;;;;;;;;;;;;;;;;75735;;;:8;:14;;;;;;75750:10;75735:26;;;;;;;75686:14;;;;;;;;-1:-1:-1;75808:16:0;75744:4;75808:10;:16::i;:::-;75917:11;;:15;75913:239;;75949:15;75967:69;76020:4;:15;;;75967:48;76010:4;75967:38;75983:4;:21;;;75967:4;:11;;;:15;;:38;;;;:::i;:69::-;75949:87;-1:-1:-1;76055:11:0;;76051:90;;76087:38;76105:10;76117:7;76087:17;:38::i;:::-;75913:239;;76270:18;;;;:22;76266:141;;76309:49;76327:10;76339:4;:18;;;76309:17;:49::i;:::-;76394:1;76373:18;;;:22;76266:141;76482:21;;;;76466:11;;:48;;76509:4;;76466:38;;:15;:38::i;:48::-;76448:15;;;:66;76532:23;;76550:4;;76538:10;;76532:23;;;;;75537:1026;;;:::o;62230:229::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;62342:11:::1;62338:61;;;62370:17;:15;:17::i;:::-;-1:-1:-1::0;62409:19:0::1;:42:::0;62230:229::o;59774:31::-;;;;:::o;63373:642::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;63439:21:::1;63463:8;63472:4;63463:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;63509:13;::::0;::::1;::::0;63463:14;;-1:-1:-1;;;;;;63509:13:0::1;::::0;63533:64:::1;;;::::0;;-1:-1:-1;;;63533:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;63533:64:0;;;;;;;;;;;;;::::1;;63627:12:::0;;63664:32:::1;::::0;;-1:-1:-1;;;63664:32:0;;63690:4:::1;63664:32;::::0;::::1;::::0;;;-1:-1:-1;;;;;63627:12:0;;::::1;::::0;63610:14:::1;::::0;63627:12;;63664:17:::1;::::0;:32;;;;;::::1;::::0;;;;;;;;;63627:12;63664:32;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;63664:32:0;;-1:-1:-1;63707:43:0::1;-1:-1:-1::0;;;;;63707:19:0;::::1;63735:8:::0;63664:32;63707:19:::1;:43::i;:::-;63762:17;63781:12:::0;63797:8:::1;-1:-1:-1::0;;;;;63797:23:0::1;;63821:7;63797:32;;;;;;;;;;;;;-1:-1:-1::0;;;;;63797:32:0::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;63797:32:0;;::::1;::::0;;::::1;::::0;;63857:35;;-1:-1:-1;;;63857:35:0;;63886:4:::1;63857:35;::::0;::::1;::::0;;;63797:32;;-1:-1:-1;63797:32:0;;-1:-1:-1;;;;;;63857:20:0;::::1;::::0;::::1;::::0;:35;;;;;;;;;;:20;:35;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;63857:35:0;63850:42;::::1;63842:67;;;::::0;;-1:-1:-1;;;63842:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;63842:67:0;;;;;;;;;;;;;::::1;;63920:25:::0;;-1:-1:-1;;;;;;63920:25:0::1;-1:-1:-1::0;;;;;63920:25:0;;::::1;::::0;;;::::1;::::0;;63963:44:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;28495:1;;;;;;63373:642:::0;:::o;59692:25::-;;;;:::o;62968:193::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;63062:11:::1;63058:61;;;63090:17;:15;:17::i;:::-;-1:-1:-1::0;63129:10:0::1;:24:::0;62968:193::o;70382:1024::-;70436:21;70460:8;70469:4;70460:14;;;;;;;;;;;;;;;;;;70436:38;;70505:4;:20;;;70489:12;:36;70485:75;;70542:7;;;70485:75;70591:12;;:37;;;-1:-1:-1;;;70591:37:0;;70622:4;70591:37;;;;;;70572:16;;-1:-1:-1;;;;;70591:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70591:37:0;;-1:-1:-1;70643:13:0;70639:102;;-1:-1:-1;70696:12:0;70673:20;;;;:35;70723:7;;70639:102;70825:13;70841:53;70874:19;;70841:28;70858:10;;70841:12;:16;;:28;;;;:::i;:53::-;70825:69;;70905:18;70926:49;70940:4;:20;;;70962:12;70926:13;:49::i;:::-;70905:70;;70986:19;71008:81;71073:15;;71008:60;71052:4;:15;;;71008:39;71023:23;71040:5;71023:16;:23::i;:::-;71008:10;;:14;:39::i;:::-;:43;;:60::i;:81::-;71119:5;;71130:7;;71155:13;;70986:103;;-1:-1:-1;;;;;;71119:5:0;;;;:10;;71130:7;;;;71139:39;;71174:3;;71139:30;;70986:103;;71139:15;:30::i;:39::-;71119:60;;;;;;;;;;;;;-1:-1:-1;;;;;71119:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71190:5:0;;:38;;;-1:-1:-1;;;71190:38:0;;71209:4;71190:38;;;;;;;;;;;;-1:-1:-1;;;;;71190:5:0;;;;-1:-1:-1;71190:10:0;;-1:-1:-1;71190:38:0;;;;;:5;;:38;;;;;;;;:5;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71288:62;71314:35;71340:8;71314:21;71330:4;71314:11;:15;;:21;;;;:::i;:35::-;71288:21;;;;;:25;:62::i;:::-;71264:21;;;:86;-1:-1:-1;;71384:12:0;71361:20;;;;:35;;;;-1:-1:-1;;70382:1024:0;;:::o;76634:528::-;76695:21;76719:8;76728:4;76719:14;;;;;;;;;;;;;;;;76768;;;:8;:14;;;;;;76783:10;76768:26;;;;;;;;76824:11;;76719:14;;;;;;;76887:12;;76719:14;;-1:-1:-1;76887:54:0;;-1:-1:-1;;;;;76887:12:0;;;;;76824:11;76887:25;:54::i;:::-;76996:11;;76974:17;;;;:34;;:21;:34::i;:::-;76954:17;;;:54;77062:1;77048:15;;;77074;;;:19;77111:43;;;;;;;;77141:4;;77129:10;;77111:43;;;;;;;;;76634:528;;;;:::o;60142:50::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60142:50:0;;-1:-1:-1;60142:50:0;;-1:-1:-1;60142:50:0:o;61546:119::-;61604:7;61631:19;;;:13;:19;;;;;:26;;61546:119::o;70126:180::-;70188:8;:15;70171:14;70214:85;70242:6;70236:3;:12;70214:85;;;70272:15;70283:3;70272:10;:15::i;:::-;70250:5;;70214:85;;;;70126:180;:::o;61721:92::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;61787:7:::1;:18:::0;;-1:-1:-1;;;;;;61787:18:0::1;-1:-1:-1::0;;;;;61787:18:0;;;::::1;::::0;;;::::1;::::0;;61721:92::o;28855:148::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;28962:1:::1;28946:6:::0;;28925:40:::1;::::0;-1:-1:-1;;;;;28946:6:0;;::::1;::::0;28925:40:::1;::::0;28962:1;;28925:40:::1;28993:1;28976:19:::0;;-1:-1:-1;;;;;;28976:19:0::1;::::0;;28855:148::o;72287:1589::-;72353:21;72377:8;72386:4;72377:14;;;;;;;;;;;;;;;;72426;;;:8;:14;;;;;;72441:10;72426:26;;;;;;;72377:14;;;;;;;;-1:-1:-1;72499:16:0;72435:4;72499:10;:16::i;:::-;72608:11;;:15;72604:835;;72640:15;72658:69;72711:4;:15;;;72658:48;72701:4;72658:38;72674:4;:21;;;72658:4;:11;;;:15;;:38;;;;:::i;:69::-;72640:87;-1:-1:-1;72746:11:0;;72742:686;;72902:12;72882:16;;:32;72878:535;;72939:38;72957:10;72969:7;72939:17;:38::i;:::-;73120:18;;;;:22;73116:177;;73171:49;73189:10;73201:4;:18;;;73171:17;:49::i;:::-;73268:1;73247:18;;;:22;73116:177;72878:535;;;73362:18;;;;:31;;73385:7;73362:22;:31::i;:::-;73341:18;;;:52;72878:535;72604:835;;73455:11;;73451:287;;73483:12;;:74;;-1:-1:-1;;;;;73483:12:0;73521:10;73542:4;73549:7;73483:29;:74::i;:::-;73586:11;;:24;;73602:7;73586:15;:24::i;:::-;73572:38;;73645:17;;;;:30;;73667:7;73645:21;:30::i;:::-;73625:17;;;:50;73690:19;;;;:13;:19;;;;;;;:36;;;;;;;;;;;;;;;-1:-1:-1;;;;;;73690:36:0;73715:10;73690:36;;;73451:287;73784:21;;;;73768:11;;:48;;73811:4;;73768:38;;:15;:38::i;:48::-;73750:15;;;:66;73834:32;;;;;;;;73852:4;;73840:10;;73834:32;;;;;;;;;72287:1589;;;;:::o;64074:1781::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;64186:19:::1;::::0;;;:13:::1;:19;::::0;;;;:26;64178:34;::::1;64170:67;;;::::0;;-1:-1:-1;;;64170:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64170:67:0;;;;;;;;;;;;;::::1;;64250:21;64274:8;64283:4;64274:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;64320:13;::::0;::::1;::::0;64274:14;;-1:-1:-1;;;;;;64320:13:0::1;::::0;64344:64:::1;;;::::0;;-1:-1:-1;;;64344:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64344:64:0;;;;;;;;;;;;;::::1;;64438:12:::0;;64475:32:::1;::::0;;-1:-1:-1;;;64475:32:0;;64501:4:::1;64475:32;::::0;::::1;::::0;;;-1:-1:-1;;;;;64438:12:0;;::::1;::::0;64421:14:::1;::::0;64438:12;;64475:17:::1;::::0;:32;;;;;::::1;::::0;;;;;;;;;64438:12;64475:32;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;64475:32:0;;-1:-1:-1;64518:43:0::1;-1:-1:-1::0;;;;;64518:19:0;::::1;64546:8:::0;64475:32;64518:19:::1;:43::i;:::-;64573:17;64592:12:::0;64608:8:::1;-1:-1:-1::0;;;;;64608:16:0::1;;64625:7;64608:25;;;;;;;;;;;;;-1:-1:-1::0;;;;;64608:25:0::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;64608:25:0;;::::1;::::0;;::::1;::::0;64676:8:::1;:20:::0;;64608:25;;-1:-1:-1;64608:25:0;;-1:-1:-1;64646:27:0::1;::::0;64685:10;;64676:20;::::1;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;64723:18:::0;;64676:20;;-1:-1:-1;;;;;;64715:50:0;;::::1;64723:18:::0;::::1;64715:50;64707:75;;;::::0;;-1:-1:-1;;;64707:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64707:75:0;;;;;;;;;;;;;::::1;;64795:9;64807:26;64829:3:::0;64807:17:::1;:7:::0;64819:4:::1;64807:11;:17::i;:26::-;64795:38:::0;-1:-1:-1;64858:5:0;64844:935:::1;64869:13;:5:::0;64879:2:::1;64869:9;:13::i;:::-;64865:1;:17;64844:935;;;64914:19;::::0;;;:13:::1;:19;::::0;;;;:26;64910:30;::::1;64906:860;;;64961:22;64972:10;64961;:22::i;:::-;65004:12;65019:19:::0;;;:13:::1;:19;::::0;;;;:22;;65039:1;;65019:22;::::1;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;65019:22:0::1;65004:37;;65060:21;65084:8;:14;65093:4;65084:14;;;;;;;;;;;:20;65099:4;-1:-1:-1::0;;;;;65084:20:0::1;-1:-1:-1::0;;;;;65084:20:0::1;;;;;;;;;;;;65060:44;;65123:22;65148:8;:20;65157:10;65148:20;;;;;;;;;;;:26;65169:4;-1:-1:-1::0;;;;;65148:26:0::1;-1:-1:-1::0;;;;;65148:26:0::1;;;;;;;;;;;;65123:51;;65214:1;65199:4;:11;;;:16;65195:73;;65240:8;;;;;65195:73;65299:11:::0;;65288:8:::1;::::0;65299:31:::1;::::0;65325:4:::1;::::0;65299:21:::1;::::0;65315:4;65299:15:::1;:21::i;:31::-;65366:12:::0;;65288:42;;-1:-1:-1;65366:21:0::1;::::0;65288:42;65366:16:::1;:21::i;:::-;65351:36:::0;;65446:15:::1;::::0;::::1;::::0;65425:57:::1;::::0;65446:35:::1;::::0;65476:4:::1;::::0;65446:25:::1;::::0;65466:4;65446:19:::1;:25::i;:35::-;65425:16;::::0;::::1;::::0;;:20:::1;:57::i;:::-;65406:16;::::0;::::1;:76:::0;65527:23:::1;::::0;::::1;::::0;:32:::1;::::0;65555:3;65527:27:::1;:32::i;:::-;65501:23;::::0;;::::1;:58:::0;;;;65620:11;;65598:17;;::::1;::::0;:34:::1;::::0;:21:::1;:34::i;:::-;65578:17;::::0;::::1;:54:::0;-1:-1:-1;;65669:1:0::1;65651:15;::::0;::::1;:19:::0;;;65689:15;;-1:-1:-1;64906:860:0::1;;;65745:5;;64906:860;64884:3;;64844:935;;;-1:-1:-1::0;65796:49:0::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;65796:49:0;::::1;::::0;::::1;::::0;;;;;;;;::::1;28495:1;;;;;;;;64074:1781:::0;;;:::o;28213:79::-;28251:7;28278:6;-1:-1:-1;;;;;28278:6:0;28213:79;:::o;66782:121::-;66854:7;66881:14;:3;66889:5;66881:7;:14::i;:::-;66874:21;;66782:121;;;;;:::o;60071:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;62556:377::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;62664:11:::1;62660:61;;;62692:17;:15;:17::i;:::-;62783:63;62834:11;62783:46;62803:8;62812:4;62803:14;;;;;;;;;;;;;;;;;;:25;;;62783:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;62765:15;:81;;;;62914:11;62886:8;62895:4;62886:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;62556:377:::0;;;:::o;67281:130::-;67355:7;67382:21;67391:4;67397:5;67382:8;:21::i;63200:116::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;63278:13:::1;:30:::0;63200:116::o;59926:25::-;;;;:::o;59403:::-;;;-1:-1:-1;;;;;59403:25:0;;:::o;71571:648::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;71695:11:::1;71691:61;;;71723:17;:15;:17::i;:::-;71764:23;71805:10;;71790:12;:25;:53;;71833:10;;71790:53;;;71818:12;71790:53;71908:15;::::0;71764:79;;-1:-1:-1;71908:32:0::1;::::0;71928:11;71908:19:::1;:32::i;:::-;71890:15;:50:::0;71992:218:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;71992:218:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;71992:218:0;;;;;;;;;;;;;;::::1;::::0;;;;;;71978:8:::1;:233:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;-1:-1:-1::0;;;;;;71978:233:0;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;71571:648:0:o;59458:22::-;;;-1:-1:-1;;;;;59458:22:0;;:::o;66976:236::-;67039:7;;;67081:103;67102:8;:15;67098:19;;67081:103;;;67145:27;67153:18;67162:1;67165:5;67153:8;:18::i;:::-;67145:3;;:7;:27::i;:::-;67139:33;-1:-1:-1;67119:3:0;;67081:103;;29158:244;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29247:22:0;::::1;29239:73;;;;-1:-1:-1::0;;;29239:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29349:6;::::0;;29328:38:::1;::::0;-1:-1:-1;;;;;29328:38:0;;::::1;::::0;29349:6;::::1;::::0;29328:38:::1;::::0;::::1;29377:6;:17:::0;;-1:-1:-1;;;;;;29377:17:0::1;-1:-1:-1::0;;;;;29377:17:0;;;::::1;::::0;;;::::1;::::0;;29158:244::o;62059:128::-;28435:12;:10;:12::i;:::-;28425:6;;-1:-1:-1;;;;;28425:6:0;;;:22;;;28417:67;;;;;-1:-1:-1;;;28417:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28417:67:0;;;;;;;;;;;;;;;62143:16:::1;:36:::0;62059:128::o;5156:471::-;5214:7;5459:6;5455:47;;-1:-1:-1;5489:1:0;5482:8;;5455:47;5526:5;;;5530:1;5526;:5;:1;5550:5;;;;;:10;5542:56;;;;-1:-1:-1;;;5542:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6103:132;6161:7;6188:39;6192:1;6195;6188:39;;;;;;;;;;;;;;;;;:3;:39::i;26757:106::-;26845:10;26757:106;:::o;4266:136::-;4324:7;4351:43;4355:1;4358;4351:43;;;;;;;;;;;;;;;;;:3;:43::i;65975:285::-;66071:5;;:30;;;-1:-1:-1;;;66071:30:0;;66095:4;66071:30;;;;;;66052:16;;-1:-1:-1;;;;;66071:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66071:30:0;;-1:-1:-1;66116:18:0;;;66112:141;;;66151:5;;:29;;;-1:-1:-1;;;66151:29:0;;-1:-1:-1;;;;;66151:29:0;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66112:141:0;;-1:-1:-1;66112:141:0;;66213:5;;:28;;;-1:-1:-1;;;66213:28:0;;-1:-1:-1;;;;;66213:28:0;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66112:141:0;65975:285;;;:::o;3802:181::-;3860:7;3892:5;;;3916:6;;;;3908:46;;;;;-1:-1:-1;;;3908:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;14981:177;15091:58;;;-1:-1:-1;;;;;15091:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15091:58:0;-1:-1:-1;;;15091:58:0;;;15064:86;;15084:5;;15064:19;:86::i;15640:622::-;16010:10;;;16009:62;;-1:-1:-1;16026:39:0;;;-1:-1:-1;;;16026:39:0;;16050:4;16026:39;;;;-1:-1:-1;;;;;16026:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16026:39:0;:44;16009:62;16001:152;;;;-1:-1:-1;;;16001:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16191:62;;;-1:-1:-1;;;;;16191:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16191:62:0;-1:-1:-1;;;16191:62:0;;;16164:90;;16184:5;;16164:19;:90::i;15166:205::-;15294:68;;;-1:-1:-1;;;;;15294:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15294:68:0;-1:-1:-1;;;15294:68:0;;;15267:96;;15287:5;;15267:19;:96::i;:::-;15166:205;;;;:::o;67444:2599::-;67514:7;67534:21;67558:8;67567:4;67558:14;;;;;;;;;;;;;;;;67607;;;:8;:14;;;;;;-1:-1:-1;;;;;67607:21:0;;;;;;;;;;;67558:14;;;;;;;;67668:21;;;;67719:12;;:37;;-1:-1:-1;;;67719:37:0;;67750:4;67719:37;;;;;;67558:14;;-1:-1:-1;67607:21:0;;67668;;67558:14;;67719:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67719:37:0;67788:20;;;;67719:37;;-1:-1:-1;67773:12:0;:35;:52;;;;-1:-1:-1;67812:13:0;;;67773:52;67769:1719;;;67879:19;67917:28;67948:61;67989:19;;67948:36;67973:10;;67948:4;:20;;;:24;;:36;;;;:::i;:61::-;67917:92;;68024:24;68051:53;68084:19;;68051:28;68068:10;;68051:12;:16;;:28;;;;:::i;:53::-;68024:80;;68315:16;68291:20;:40;68287:1097;;;68352:18;68373:49;68387:4;:20;;;68409:12;68373:13;:49::i;:::-;68352:70;;68455:109;68471:92;68547:15;;68471:71;68526:4;:15;;;68471:50;68486:34;68503:16;68486;:34::i;68471:92::-;68455:11;;:15;:109::i;:::-;68441:123;;68287:1097;;;;68622:20;68605:764;68649:16;68644:1;:21;68605:764;;68695:18;68749:20;68744:1;:25;68740:479;;;68811:112;68825:4;:20;;;68847:75;68920:1;68847:68;68862:52;68894:19;;68862:27;68887:1;68862:20;:24;;:27;;;;:::i;:52::-;68847:10;;;:14;:68::i;:75::-;68811:13;:112::i;:::-;68798:125;;68740:479;;;68962:16;68957:1;:21;68953:266;;;69020:86;69034:57;69049:41;69070:19;;69049:16;:20;;:41;;;;:::i;69034:57::-;69093:12;69020:13;:86::i;68953:266::-;-1:-1:-1;69176:19:0;;68953:266;69255:94;69271:77;69332:15;;69271:56;69311:4;:15;;;69271:35;69286:19;69303:1;69286:16;:19::i;69271:77::-;69255:11;;:15;:94::i;:::-;69241:108;-1:-1:-1;;68667:3:0;;68605:764;;;;68287:1097;69419:57;69440:35;69466:8;69440:21;:11;69456:4;69440:15;:21::i;69419:57::-;69400:76;;67769:1719;;;;69530:20;69553:64;69601:4;:15;;;69553:43;69591:4;69553:33;69569:16;69553:4;:11;;;:15;;:33;;;;:::i;:64::-;69530:87;;69785:12;69766:16;;:31;69762:244;;;69838:18;;;;69821:36;;:12;;:16;:36::i;:::-;69814:43;;;;;;;;;69762:244;69900:1;69879:4;:18;;;:22;:55;;;;-1:-1:-1;69905:29:0;;;;;;69879:55;69875:131;;;69975:18;;;;69958:36;;:12;;:16;:36::i;69875:131::-;70023:12;67444:2599;-1:-1:-1;;;;;;;67444:2599:0:o;6731:278::-;6817:7;6852:12;6845:5;6837:28;;;;-1:-1:-1;;;6837:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6876:9;6892:1;6888;:5;;;;;;;6731:278;-1:-1:-1;;;;;6731:278:0:o;4705:192::-;4791:7;4827:12;4819:6;;;;4811:29;;;;-1:-1:-1;;;4811:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4863:5:0;;;4705:192::o;17286:761::-;17710:23;17736:69;17764:4;17736:69;;;;;;;;;;;;;;;;;17744:5;-1:-1:-1;;;;;17736:27:0;;;:69;;;;;:::i;:::-;17820:17;;17710:95;;-1:-1:-1;17820:21:0;17816:224;;17962:10;17951:30;;;;;;;;;;;;;;;-1:-1:-1;17951:30:0;17943:85;;;;-1:-1:-1;;;17943:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11954:196;12057:12;12089:53;12112:6;12120:4;12126:1;12129:12;12089:22;:53::i;:::-;12082:60;11954:196;-1:-1:-1;;;;11954:196:0:o;13331:979::-;13461:12;13494:18;13505:6;13494:10;:18::i;:::-;13486:60;;;;;-1:-1:-1;;;13486:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13620:12;13634:23;13661:6;-1:-1:-1;;;;;13661:11:0;13681:8;13692:4;13661:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13661:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13619:78;;;;13712:7;13708:595;;;13743:10;-1:-1:-1;13736:17:0;;-1:-1:-1;13736:17:0;13708:595;13857:17;;:21;13853:439;;14120:10;14114:17;14181:15;14168:10;14164:2;14160:19;14153:44;14068:148;14256:20;;-1:-1:-1;;;14256:20:0;;;;;;;;;;;;;;;;;14263:12;;14256:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9036:422;9403:20;9442:8;;;9036:422::o

Swarm Source

ipfs://1ebbcb92337a7a692d9d354775a3fd9c1265367630fb7a348ec26e98e1c84a0c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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