Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 12373395 | 1192 days ago | IN | 0 ETH | 0.07009676 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PopReward
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-05 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.6; /** * @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); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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"); } } } /** * @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.3.0, sets of type `bytes32` (`Bytes32Set`), `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]; } // Bytes32Set struct Bytes32Set { 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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, 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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set 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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, 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(uint160(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(uint160(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(uint160(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(uint160(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)); } } /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; } /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer {} 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; } uint256[50] private __gap; } /** * @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 OwnableUpgradeSafe is Initializable, ContextUpgradeSafe { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { 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; } uint256[49] private __gap; } /* * @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; } } /** * @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; 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 virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 virtual { _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 {} } /** * @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. */ abstract 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 virtual 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; } } abstract contract IMintableERC20 is IERC20 { function mint(uint256 amount) public virtual; function mintTo(address account, uint256 amount) public virtual; function burn(uint256 amount) public virtual; function setMinter(address account, bool isMinter) public virtual; } contract PopToken is ERC20("POP Token", "POP!"), IMintableERC20, Ownable { mapping(address => bool) public minter; uint256 public maxSupply; event MinterUpdate(address indexed account, bool isMinter); constructor(uint256 _maxSupply) public { maxSupply = _maxSupply; } modifier onlyMinter() { require(minter[_msgSender()], "User is not a minter."); _; } function mint(uint256 _amount) public override onlyMinter { require(totalSupply().add(_amount) <= maxSupply, "cannot mint more than maxSupply"); _mint(_msgSender(), _amount); } function mintTo(address _account, uint256 _amount) public override onlyMinter { require(totalSupply().add(_amount) <= maxSupply, "cannot mint more than maxSupply"); _mint(_account, _amount); } function setMinter(address _account, bool _isMinter) public override onlyOwner { require(_account != address(0), "address can not be 0"); minter[_account] = _isMinter; emit MinterUpdate(_account, _isMinter); } function burn(uint256 _amount) public override { _burn(_msgSender(), _amount); } } abstract contract IRewardManager { function add(uint256 _allocPoint, address _newMlp) public virtual; function notifyDeposit(address _account, uint256 _amount) public virtual; function notifyWithdraw(address _account, uint256 _amount) public virtual; function getPoolSupply(address pool) public view virtual returns (uint256); function getUserAmount(address pool, address user) public view virtual returns (uint256); } // stolen from Sushiswap MasterChef: https://github.com/sushiswap/sushiswap/blob/master/contracts/MasterChef.sol contract PopReward is Initializable, OwnableUpgradeSafe, IRewardManager { 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 } // Info of each pool. struct PoolInfo { uint256 allocPoint; // How many allocation points assigned to this pool. POPs to distribute per block. uint256 lastRewardBlock; // Last block number that POPs distribution occurs. uint256 accPopPerShare; // Accumulated POPs per share, times 1e12. See below. uint256 lpSupply; // Total amount of lp token staked } PopToken public pop; // Block number when bonus POP period ends. uint256 public bonusEndBlock; // POP tokens created per block. uint256 public popPerBlock; // Bonus multiplier for early pop makers. uint256 public constant BONUS_MULTIPLIER = 10; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block number when POP mining starts. uint256 public startBlock; // authorized MLPs uint256 private constant UINT256_MAX = ~uint256(0); mapping(address => uint256) public pidByAddress; address public popMarketplace; mapping(address => bool) public authorizedMlp; PoolInfo public popVault; mapping(address => UserInfo) public popStaker; event PopDeposit(address indexed user, uint256 amount); event PopWithdraw(address indexed user, uint256 amount); event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event RewardPaid(address indexed user, uint256 indexed pid, uint256 amount); function initialize( PopToken _pop, uint256 _popPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _popAllocPoint, uint256 _popVaultStarts ) public initializer { OwnableUpgradeSafe.__Ownable_init(); pop = _pop; popPerBlock = _popPerBlock; bonusEndBlock = _bonusEndBlock; startBlock = _startBlock; popVault = PoolInfo({allocPoint: _popAllocPoint, lastRewardBlock: _popVaultStarts, accPopPerShare: 0, lpSupply: 0}); totalAllocPoint = _popAllocPoint; } function poolLength() external view returns (uint256) { return poolInfo.length; } function getPoolSupply(address pool) public view override returns (uint256) { return poolInfo[pidByAddress[pool]].lpSupply; } function getUserAmount(address pool, address user) public view override returns (uint256) { return userInfo[pidByAddress[pool]][user].amount; } function setPopMarketplace(address _newMarketplace) public onlyOwner { require(_newMarketplace != address(0), "Address can not be 0"); popMarketplace = _newMarketplace; } // Add a new pool. Can only be called by the PopMarketplace. function add(uint256 _allocPoint, address _newMlp) public override { require(msg.sender == popMarketplace, "only the marketplace can add a pool"); uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accPopPerShare: 0, lpSupply: 0})); pidByAddress[_newMlp] = poolInfo.length - 1; authorizedMlp[_newMlp] = true; } // Update the given pool's POP allocation point. Can only be called by the owner. function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) public onlyOwner { PoolInfo storage pool = poolInfo[_pid]; _set(pool, _allocPoint, _withUpdate); } function _set( PoolInfo storage pool, uint256 _allocPoint, bool _withUpdate ) private { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint); pool.allocPoint = _allocPoint; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (_to <= bonusEndBlock) { return _to.sub(_from).mul(BONUS_MULTIPLIER); } else if (_from >= bonusEndBlock) { return _to.sub(_from); } else { return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER).add(_to.sub(bonusEndBlock)); } } // View function to see pending POPs on frontend. function pendingPop(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; return _pendingPop(pool, user); } function _pendingPop(PoolInfo storage pool, UserInfo storage user) private view returns (uint256) { uint256 accPopPerShare = pool.accPopPerShare; uint256 lpSupply = pool.lpSupply; if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 popReward = multiplier.mul(popPerBlock).mul(pool.allocPoint).div(totalAllocPoint); accPopPerShare = accPopPerShare.add(popReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accPopPerShare).div(1e12).sub(user.rewardDebt); } function vaultPendingPop(address _account) external view returns (uint256) { UserInfo storage user = popStaker[_account]; return _pendingPop(popVault, user); } // 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); } updatePopVault(); } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; return _updatePool(pool); } function _updatePool(PoolInfo storage pool) private { if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpSupply; if (lpSupply == 0) { pool.lastRewardBlock = block.number; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 popReward = multiplier.mul(popPerBlock).mul(pool.allocPoint).div(totalAllocPoint); pop.mintTo(address(this), popReward); pool.accPopPerShare = pool.accPopPerShare.add(popReward.mul(1e12).div(lpSupply)); pool.lastRewardBlock = block.number; } // Notify the amount of LP tokens staked in the PopVault. function notifyDeposit(address _account, uint256 _amount) public override { require(authorizedMlp[msg.sender], "unauthorized sender"); uint256 _pid = pidByAddress[msg.sender]; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_account]; updatePool(_pid); _notifyDeposit(_account, pool, user, _amount); emit Deposit(_account, _pid, _amount); } function _notifyDeposit( address _account, PoolInfo storage pool, UserInfo storage user, uint256 _amount ) private { if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accPopPerShare).div(1e12).sub(user.rewardDebt); safePopTransfer(_account, pending); } pool.lpSupply = pool.lpSupply.add(_amount); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); } // Notify the amount of LP token withdrawn from the PopVault. function notifyWithdraw(address _account, uint256 _amount) public override { require(authorizedMlp[msg.sender], "unauthorized sender"); uint256 _pid = pidByAddress[msg.sender]; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_account]; updatePool(_pid); _notifyWithdraw(_account, pool, user, _amount, _pid); emit Withdraw(_account, _pid, _amount); } function _notifyWithdraw( address _account, PoolInfo storage pool, UserInfo storage user, uint256 _amount, uint256 _pid ) private { require(user.amount >= _amount, "withdraw: not good"); uint256 pending = user.amount.mul(pool.accPopPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safePopTransfer(_account, pending); } user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); pool.lpSupply = pool.lpSupply.sub(_amount); emit RewardPaid(_account, _pid, pending); } // Safe pop transfer function, just in case if rounding error causes pool to not have enough POPs. function safePopTransfer(address _to, uint256 _amount) internal { uint256 popBal = pop.balanceOf(address(this)).sub(popVault.lpSupply); if (_amount > popBal) { pop.transfer(_to, popBal); } else { pop.transfer(_to, _amount); } } function stakePop(uint256 _amount) public { UserInfo storage user = popStaker[msg.sender]; updatePopVault(); _notifyDeposit(msg.sender, popVault, user, _amount); require(pop.transferFrom(msg.sender, address(this), _amount), "transfer failed"); emit PopDeposit(msg.sender, _amount); } function withdrawPop(uint256 _amount) public { UserInfo storage user = popStaker[msg.sender]; updatePopVault(); _notifyWithdraw(msg.sender, popVault, user, _amount, UINT256_MAX); require(pop.transfer(msg.sender, _amount), "transfer failed"); emit PopWithdraw(msg.sender, _amount); } function updatePopVault() public { _updatePool(popVault); } function setPopVault(uint256 _allocPoint) public onlyOwner { _set(popVault, _allocPoint, false); } function setPopVaultStartBlock(uint256 _startBlock) external onlyOwner { popVault.lastRewardBlock = _startBlock; } function claimRewards(uint256 _poolId) external { updatePool(_poolId); _harvest(_poolId); } function claimPopRewards() external { updatePopVault(); _harvestPopRewards(popVault); } function _harvestPopRewards(PoolInfo storage pool) internal { UserInfo storage user = popStaker[msg.sender]; if (user.amount == 0) return; uint256 pending = user.amount.mul(pool.accPopPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); // Pay out the pending rewards safePopTransfer(msg.sender, pending); emit RewardPaid(msg.sender, UINT256_MAX, pending); return; } user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); } function _harvest(uint256 _poolId) internal { PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][msg.sender]; if (user.amount == 0) return; uint256 pending = user.amount.mul(pool.accPopPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); // Pay out the pending rewards safePopTransfer(msg.sender, pending); emit RewardPaid(msg.sender, _poolId, pending); return; } user.rewardDebt = user.amount.mul(pool.accPopPerShare).div(1e12); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PopDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PopWithdraw","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":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"address","name":"_newMlp","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorizedMlp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimPopRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"getPoolSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"getUserAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract PopToken","name":"_pop","type":"address"},{"internalType":"uint256","name":"_popPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_popAllocPoint","type":"uint256"},{"internalType":"uint256","name":"_popVaultStarts","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"notifyDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"notifyWithdraw","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":"pendingPop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pidByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPopPerShare","type":"uint256"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pop","outputs":[{"internalType":"contract PopToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"popMarketplace","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"popPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"popStaker","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"popVault","outputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPopPerShare","type":"uint256"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMarketplace","type":"address"}],"name":"setPopMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"setPopVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setPopVaultStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakePop","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"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePopVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"vaultPendingPop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawPop","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000609c5534801561001557600080fd5b50612859806100256000396000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80638aa2855011610160578063b21d81db116100d8578063d756aadc1161008c578063f2cb469011610071578063f2cb46901461074b578063f2fde38b14610753578063fdd45eca1461078657610277565b8063d756aadc146106f5578063e8b21f981461071257610277565b8063bc4763a1116100bd578063bc4763a11461069d578063c4a25e7f146106d0578063ccadfc13146106d857610277565b8063b21d81db1461064e578063bbfc74761461069557610277565b80639f1916591161012f578063a4ece52c11610114578063a4ece52c14610605578063a94722691461060d578063ab53bddc1461061557610277565b80639f19165914610597578063a4700044146105d257610277565b80638aa28550146105025780638da5cb5b1461050a5780638dbb1e3a1461053b57806393f1a40b1461055e57610277565b806348cd4cb1116101f357806364482f79116101c257806370da05d3116101a757806370da05d3146104a4578063715018a6146104c15780638600e40b146104c957610277565b806364482f79146104715780636793850e1461049c57610277565b806348cd4cb11461041157806351eb05a6146104195780635cfe169714610436578063630b5ba11461046957610277565b80631aed65531161024a5780632f8d3a661161022f5780632f8d3a6614610341578063337a5c761461037457806345ff4c80146103c057610277565b80631aed6553146103005780632b8bbbe81461030857610277565b8063081e3eda1461027c5780630962ef79146102965780631526fe27146102b557806317caf6f1146102f8575b600080fd5b6102846107a3565b60408051918252519081900360200190f35b6102b3600480360360208110156102ac57600080fd5b50356107a9565b005b6102d2600480360360208110156102cb57600080fd5b50356107be565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102846107f5565b6102846107fb565b6102b36004803603604081101561031e57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610801565b6102846004803603602081101561035757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166109e9565b6103a76004803603602081101561038a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a37565b6040805192835260208301919091528051918290030190f35b6102b3600480360360c08110156103d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060408101359060608101359060808101359060a00135610a50565b610284610bfa565b6102b36004803603602081101561042f57600080fd5b5035610c00565b6102846004803603602081101561044c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c2c565b6102b3610c63565b6102b36004803603606081101561048757600080fd5b50803590602081013590604001351515610c8b565b610284610d4c565b6102b3600480360360208110156104ba57600080fd5b5035610d52565b6102b3610ec7565b6102b3600480360360408110156104df57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610fc7565b61028461110e565b610512611113565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102846004803603604081101561055157600080fd5b508035906020013561112f565b6103a76004803603604081101561057457600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166111a7565b610284600480360360408110156105ad57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166111cb565b6102b3600480360360208110156105e857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661120d565b610512611367565b6102d2611383565b6102b36004803603604081101561062b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611392565b6106816004803603602081101561066457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114d8565b604080519115158252519081900360200190f35b6102b36114ed565b610284600480360360208110156106b357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611501565b610512611513565b6102b3600480360360208110156106ee57600080fd5b503561152f565b6102b36004803603602081101561070b57600080fd5b50356115cd565b6102846004803603604081101561072857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611663565b6102b36116c4565b6102b36004803603602081101561076957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166116ce565b6102b36004803603602081101561079c57600080fd5b5035611859565b609a5490565b6107b281610c00565b6107bb816119e9565b50565b609a81815481106107cb57fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b609c5481565b60985481565b609f5473ffffffffffffffffffffffffffffffffffffffff163314610871576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806127b26023913960400191505060405180910390fd5b6000609d54431161088457609d54610886565b435b609c549091506108969084611b01565b609c55604080516080810182529384526020808501928352600085830181815260608701828152609a80546001808201835582865299517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be460049092029182015596517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be588015591517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be6870155517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be790950194909455925473ffffffffffffffffffffffffffffffffffffffff949094168352609e81528183207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940190935560a09092522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152609e6020526040812054609a80549091908110610a1e57fe5b9060005260206000209060040201600301549050919050565b60a5602052600090815260409020805460019091015482565b600054610100900460ff1680610a695750610a69611b75565b80610a77575060005460ff16155b610acc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015610b3257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b610b3a611b7b565b609780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff891617905560998690556098849055609d8590556040805160808101825284815260208101849052600091810182905260600181905260a184905560a283905560a381905560a455609c8390558015610bf157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b50505050505050565b609d5481565b6000609a8281548110610c0f57fe5b90600052602060002090600402019050610c2881611c9e565b5050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a560205260408120610c5c60a182611dca565b9392505050565b609a5460005b81811015610c8257610c7a81610c00565b600101610c69565b506107bb6116c4565b610c93611e73565b60655473ffffffffffffffffffffffffffffffffffffffff908116911614610d1c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000609a8481548110610d2b57fe5b90600052602060002090600402019050610d46818484611e77565b50505050565b60995481565b33600090815260a560205260409020610d696116c4565b610d763360a18385611ea1565b609754604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101859052905173ffffffffffffffffffffffffffffffffffffffff909216916323b872dd916064808201926020929091908290030181600087803b158015610df657600080fd5b505af1158015610e0a573d6000803e3d6000fd5b505050506040513d6020811015610e2057600080fd5b5051610e8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b60408051838152905133917f7c6ffa74de4e2c29c3eb18ff72c6878b93130806f744da5fb868db919dc8e0a7919081900360200190a25050565b610ecf611e73565b60655473ffffffffffffffffffffffffffffffffffffffff908116911614610f5857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60655460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b33600090815260a0602052604090205460ff1661104557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f756e617574686f72697a65642073656e64657200000000000000000000000000604482015290519081900360640190fd5b336000908152609e6020526040812054609a80549192918390811061106657fe5b60009182526020808320858452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff8a1686529092529220600490910290910191506110ad83610c00565b6110ba8583838787611f21565b604080518581529051849173ffffffffffffffffffffffffffffffffffffffff8816917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600a81565b60655473ffffffffffffffffffffffffffffffffffffffff1690565b600060985482116111565761114f600a6111498486612068565b906120df565b90506111a1565b60985483106111695761114f8284612068565b61114f6111816098548461206890919063ffffffff16565b61119b600a6111498760985461206890919063ffffffff16565b90611b01565b92915050565b609b6020908152600092835260408084209091529082529020805460019091015482565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152609e60209081526040808320548352609b825280832093909416825291909152205490565b611215611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461129e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661132057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f416464726573732063616e206e6f742062652030000000000000000000000000604482015290519081900360640190fd5b609f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60975473ffffffffffffffffffffffffffffffffffffffff1681565b60a15460a25460a35460a45484565b33600090815260a0602052604090205460ff1661141057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f756e617574686f72697a65642073656e64657200000000000000000000000000604482015290519081900360640190fd5b336000908152609e6020526040812054609a80549192918390811061143157fe5b60009182526020808320858452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff8a16865290925292206004909102909101915061147883610c00565b61148485838387611ea1565b604080518581529051849173ffffffffffffffffffffffffffffffffffffffff8816917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b60a06020526000908152604090205460ff1681565b6114f56116c4565b6114ff60a1612152565b565b609e6020526000908152604090205481565b609f5473ffffffffffffffffffffffffffffffffffffffff1681565b611537611e73565b60655473ffffffffffffffffffffffffffffffffffffffff9081169116146115c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107bb60a1826000611e77565b6115d5611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461165e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60a255565b600080609a848154811061167357fe5b60009182526020808320878452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff891686529092529220600490910290910191506116bb8282611dca565b95945050505050565b6114ff60a1611c9e565b6116d6611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461175f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166117cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061278c6026913960400191505060405180910390fd5b60655460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b33600090815260a5602052604090206118706116c4565b61189e3360a183857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611f21565b609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff9092169163a9059cbb916044808201926020929091908290030181600087803b15801561191857600080fd5b505af115801561192c573d6000803e3d6000fd5b505050506040513d602081101561194257600080fd5b50516119af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b60408051838152905133917fe1c1b3a627e55787c786b5530520592ec76f3262a1f392f8d56542466c5c70bf919081900360200190a25050565b6000609a82815481106119f857fe5b60009182526020808320858452609b825260408085203386529092529220805460049092029092019250611a2d5750506107bb565b6000611a678260010154611a6164e8d4a51000611a5b876002015487600001546120df90919063ffffffff16565b90612253565b90612068565b90508015611ad85760028301548254611a8a9164e8d4a5100091611a5b916120df565b6001830155611a9933826122d4565b604080518281529051859133917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a35050506107bb565b60028301548254611af39164e8d4a5100091611a5b916120df565b826001018190555050505050565b600082820183811015610c5c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b303b1590565b600054610100900460ff1680611b945750611b94611b75565b80611ba2575060005460ff16155b611bf7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015611c5d57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b611c656124e9565b611c6d6125fb565b80156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b80600101544311611cae576107bb565b600381015480611cc457504360018201556107bb565b6000611cd483600101544361112f565b90506000611cfb609c54611a5b8660000154611149609954876120df90919063ffffffff16565b609754604080517f449a52f800000000000000000000000000000000000000000000000000000000815230600482015260248101849052905192935073ffffffffffffffffffffffffffffffffffffffff9091169163449a52f89160448082019260009290919082900301818387803b158015611d7757600080fd5b505af1158015611d8b573d6000803e3d6000fd5b50505050611db9611dae84611a5b64e8d4a51000856120df90919063ffffffff16565b600286015490611b01565b600285015550504360018301555050565b600282015460038301546001840154600092919043118015611deb57508015155b15611e4b576000611e0086600101544361112f565b90506000611e27609c54611a5b8960000154611149609954876120df90919063ffffffff16565b9050611e46611e3f84611a5b8464e8d4a510006120df565b8590611b01565b935050505b6116bb8460010154611a6164e8d4a51000611a5b8689600001546120df90919063ffffffff16565b3390565b8015611e8557611e85610c63565b8254609c54611e9991849161119b91612068565b609c55509055565b815415611ee4576000611ed68360010154611a6164e8d4a51000611a5b886002015488600001546120df90919063ffffffff16565b9050611ee285826122d4565b505b6003830154611ef39082611b01565b60038401558154611f049082611b01565b8083556002840154611af39164e8d4a5100091611a5b91906120df565b8254821115611f9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6000611fbf8460010154611a6164e8d4a51000611a5b896002015489600001546120df90919063ffffffff16565b90508015611fd157611fd186826122d4565b8354611fdd9084612068565b8085556002860154611ffa9164e8d4a5100091611a5b91906120df565b6001850155600385015461200e9084612068565b6003860155604080518281529051839173ffffffffffffffffffffffffffffffffffffffff8916917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a3505050505050565b6000828211156120d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120ee575060006111a1565b828202828482816120fb57fe5b0414610c5c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127d56021913960400191505060405180910390fd5b33600090815260a560205260409020805461216d57506107bb565b600061219b8260010154611a6164e8d4a51000611a5b876002015487600001546120df90919063ffffffff16565b9050801561222b57600283015482546121be9164e8d4a5100091611a5b916120df565b60018301556121cd33826122d4565b6040805182815290517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9133917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a350506107bb565b600283015482546122469164e8d4a5100091611a5b916120df565b8260010181905550505050565b60008082116122c357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122cc57fe5b049392505050565b60a454609754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009361238393909273ffffffffffffffffffffffffffffffffffffffff909116916370a0823191602480820192602092909190829003018186803b15801561235157600080fd5b505afa158015612365573d6000803e3d6000fd5b505050506040513d602081101561237b57600080fd5b505190612068565b90508082111561243b57609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561240957600080fd5b505af115801561241d573d6000803e3d6000fd5b505050506040513d602081101561243357600080fd5b506124e49050565b609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156124b757600080fd5b505af11580156124cb573d6000803e3d6000fd5b505050506040513d60208110156124e157600080fd5b50505b505050565b600054610100900460ff16806125025750612502611b75565b80612510575060005460ff16155b612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015611c6d57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091166101001716600117905580156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b600054610100900460ff16806126145750612614611b75565b80612622575060005460ff16155b612677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff161580156126dd57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b60006126e7611e73565b606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f6e6c7920746865206d61726b6574706c6163652063616e20616464206120706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220f76a6418e3fe9a369b07336e31d756c984699f9374c9063d0092495bcd2b0d8964736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102775760003560e01c80638aa2855011610160578063b21d81db116100d8578063d756aadc1161008c578063f2cb469011610071578063f2cb46901461074b578063f2fde38b14610753578063fdd45eca1461078657610277565b8063d756aadc146106f5578063e8b21f981461071257610277565b8063bc4763a1116100bd578063bc4763a11461069d578063c4a25e7f146106d0578063ccadfc13146106d857610277565b8063b21d81db1461064e578063bbfc74761461069557610277565b80639f1916591161012f578063a4ece52c11610114578063a4ece52c14610605578063a94722691461060d578063ab53bddc1461061557610277565b80639f19165914610597578063a4700044146105d257610277565b80638aa28550146105025780638da5cb5b1461050a5780638dbb1e3a1461053b57806393f1a40b1461055e57610277565b806348cd4cb1116101f357806364482f79116101c257806370da05d3116101a757806370da05d3146104a4578063715018a6146104c15780638600e40b146104c957610277565b806364482f79146104715780636793850e1461049c57610277565b806348cd4cb11461041157806351eb05a6146104195780635cfe169714610436578063630b5ba11461046957610277565b80631aed65531161024a5780632f8d3a661161022f5780632f8d3a6614610341578063337a5c761461037457806345ff4c80146103c057610277565b80631aed6553146103005780632b8bbbe81461030857610277565b8063081e3eda1461027c5780630962ef79146102965780631526fe27146102b557806317caf6f1146102f8575b600080fd5b6102846107a3565b60408051918252519081900360200190f35b6102b3600480360360208110156102ac57600080fd5b50356107a9565b005b6102d2600480360360208110156102cb57600080fd5b50356107be565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102846107f5565b6102846107fb565b6102b36004803603604081101561031e57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610801565b6102846004803603602081101561035757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166109e9565b6103a76004803603602081101561038a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a37565b6040805192835260208301919091528051918290030190f35b6102b3600480360360c08110156103d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060408101359060608101359060808101359060a00135610a50565b610284610bfa565b6102b36004803603602081101561042f57600080fd5b5035610c00565b6102846004803603602081101561044c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c2c565b6102b3610c63565b6102b36004803603606081101561048757600080fd5b50803590602081013590604001351515610c8b565b610284610d4c565b6102b3600480360360208110156104ba57600080fd5b5035610d52565b6102b3610ec7565b6102b3600480360360408110156104df57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610fc7565b61028461110e565b610512611113565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102846004803603604081101561055157600080fd5b508035906020013561112f565b6103a76004803603604081101561057457600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166111a7565b610284600480360360408110156105ad57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166111cb565b6102b3600480360360208110156105e857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661120d565b610512611367565b6102d2611383565b6102b36004803603604081101561062b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611392565b6106816004803603602081101561066457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114d8565b604080519115158252519081900360200190f35b6102b36114ed565b610284600480360360208110156106b357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611501565b610512611513565b6102b3600480360360208110156106ee57600080fd5b503561152f565b6102b36004803603602081101561070b57600080fd5b50356115cd565b6102846004803603604081101561072857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611663565b6102b36116c4565b6102b36004803603602081101561076957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166116ce565b6102b36004803603602081101561079c57600080fd5b5035611859565b609a5490565b6107b281610c00565b6107bb816119e9565b50565b609a81815481106107cb57fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b609c5481565b60985481565b609f5473ffffffffffffffffffffffffffffffffffffffff163314610871576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806127b26023913960400191505060405180910390fd5b6000609d54431161088457609d54610886565b435b609c549091506108969084611b01565b609c55604080516080810182529384526020808501928352600085830181815260608701828152609a80546001808201835582865299517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be460049092029182015596517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be588015591517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be6870155517f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be790950194909455925473ffffffffffffffffffffffffffffffffffffffff949094168352609e81528183207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940190935560a09092522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152609e6020526040812054609a80549091908110610a1e57fe5b9060005260206000209060040201600301549050919050565b60a5602052600090815260409020805460019091015482565b600054610100900460ff1680610a695750610a69611b75565b80610a77575060005460ff16155b610acc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015610b3257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b610b3a611b7b565b609780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff891617905560998690556098849055609d8590556040805160808101825284815260208101849052600091810182905260600181905260a184905560a283905560a381905560a455609c8390558015610bf157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b50505050505050565b609d5481565b6000609a8281548110610c0f57fe5b90600052602060002090600402019050610c2881611c9e565b5050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260a560205260408120610c5c60a182611dca565b9392505050565b609a5460005b81811015610c8257610c7a81610c00565b600101610c69565b506107bb6116c4565b610c93611e73565b60655473ffffffffffffffffffffffffffffffffffffffff908116911614610d1c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000609a8481548110610d2b57fe5b90600052602060002090600402019050610d46818484611e77565b50505050565b60995481565b33600090815260a560205260409020610d696116c4565b610d763360a18385611ea1565b609754604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101859052905173ffffffffffffffffffffffffffffffffffffffff909216916323b872dd916064808201926020929091908290030181600087803b158015610df657600080fd5b505af1158015610e0a573d6000803e3d6000fd5b505050506040513d6020811015610e2057600080fd5b5051610e8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b60408051838152905133917f7c6ffa74de4e2c29c3eb18ff72c6878b93130806f744da5fb868db919dc8e0a7919081900360200190a25050565b610ecf611e73565b60655473ffffffffffffffffffffffffffffffffffffffff908116911614610f5857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60655460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b33600090815260a0602052604090205460ff1661104557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f756e617574686f72697a65642073656e64657200000000000000000000000000604482015290519081900360640190fd5b336000908152609e6020526040812054609a80549192918390811061106657fe5b60009182526020808320858452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff8a1686529092529220600490910290910191506110ad83610c00565b6110ba8583838787611f21565b604080518581529051849173ffffffffffffffffffffffffffffffffffffffff8816917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600a81565b60655473ffffffffffffffffffffffffffffffffffffffff1690565b600060985482116111565761114f600a6111498486612068565b906120df565b90506111a1565b60985483106111695761114f8284612068565b61114f6111816098548461206890919063ffffffff16565b61119b600a6111498760985461206890919063ffffffff16565b90611b01565b92915050565b609b6020908152600092835260408084209091529082529020805460019091015482565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152609e60209081526040808320548352609b825280832093909416825291909152205490565b611215611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461129e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661132057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f416464726573732063616e206e6f742062652030000000000000000000000000604482015290519081900360640190fd5b609f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60975473ffffffffffffffffffffffffffffffffffffffff1681565b60a15460a25460a35460a45484565b33600090815260a0602052604090205460ff1661141057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f756e617574686f72697a65642073656e64657200000000000000000000000000604482015290519081900360640190fd5b336000908152609e6020526040812054609a80549192918390811061143157fe5b60009182526020808320858452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff8a16865290925292206004909102909101915061147883610c00565b61148485838387611ea1565b604080518581529051849173ffffffffffffffffffffffffffffffffffffffff8816917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b60a06020526000908152604090205460ff1681565b6114f56116c4565b6114ff60a1612152565b565b609e6020526000908152604090205481565b609f5473ffffffffffffffffffffffffffffffffffffffff1681565b611537611e73565b60655473ffffffffffffffffffffffffffffffffffffffff9081169116146115c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107bb60a1826000611e77565b6115d5611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461165e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60a255565b600080609a848154811061167357fe5b60009182526020808320878452609b8252604080852073ffffffffffffffffffffffffffffffffffffffff891686529092529220600490910290910191506116bb8282611dca565b95945050505050565b6114ff60a1611c9e565b6116d6611e73565b60655473ffffffffffffffffffffffffffffffffffffffff90811691161461175f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166117cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061278c6026913960400191505060405180910390fd5b60655460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b33600090815260a5602052604090206118706116c4565b61189e3360a183857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611f21565b609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff9092169163a9059cbb916044808201926020929091908290030181600087803b15801561191857600080fd5b505af115801561192c573d6000803e3d6000fd5b505050506040513d602081101561194257600080fd5b50516119af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b60408051838152905133917fe1c1b3a627e55787c786b5530520592ec76f3262a1f392f8d56542466c5c70bf919081900360200190a25050565b6000609a82815481106119f857fe5b60009182526020808320858452609b825260408085203386529092529220805460049092029092019250611a2d5750506107bb565b6000611a678260010154611a6164e8d4a51000611a5b876002015487600001546120df90919063ffffffff16565b90612253565b90612068565b90508015611ad85760028301548254611a8a9164e8d4a5100091611a5b916120df565b6001830155611a9933826122d4565b604080518281529051859133917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a35050506107bb565b60028301548254611af39164e8d4a5100091611a5b916120df565b826001018190555050505050565b600082820183811015610c5c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b303b1590565b600054610100900460ff1680611b945750611b94611b75565b80611ba2575060005460ff16155b611bf7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015611c5d57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b611c656124e9565b611c6d6125fb565b80156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b80600101544311611cae576107bb565b600381015480611cc457504360018201556107bb565b6000611cd483600101544361112f565b90506000611cfb609c54611a5b8660000154611149609954876120df90919063ffffffff16565b609754604080517f449a52f800000000000000000000000000000000000000000000000000000000815230600482015260248101849052905192935073ffffffffffffffffffffffffffffffffffffffff9091169163449a52f89160448082019260009290919082900301818387803b158015611d7757600080fd5b505af1158015611d8b573d6000803e3d6000fd5b50505050611db9611dae84611a5b64e8d4a51000856120df90919063ffffffff16565b600286015490611b01565b600285015550504360018301555050565b600282015460038301546001840154600092919043118015611deb57508015155b15611e4b576000611e0086600101544361112f565b90506000611e27609c54611a5b8960000154611149609954876120df90919063ffffffff16565b9050611e46611e3f84611a5b8464e8d4a510006120df565b8590611b01565b935050505b6116bb8460010154611a6164e8d4a51000611a5b8689600001546120df90919063ffffffff16565b3390565b8015611e8557611e85610c63565b8254609c54611e9991849161119b91612068565b609c55509055565b815415611ee4576000611ed68360010154611a6164e8d4a51000611a5b886002015488600001546120df90919063ffffffff16565b9050611ee285826122d4565b505b6003830154611ef39082611b01565b60038401558154611f049082611b01565b8083556002840154611af39164e8d4a5100091611a5b91906120df565b8254821115611f9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6000611fbf8460010154611a6164e8d4a51000611a5b896002015489600001546120df90919063ffffffff16565b90508015611fd157611fd186826122d4565b8354611fdd9084612068565b8085556002860154611ffa9164e8d4a5100091611a5b91906120df565b6001850155600385015461200e9084612068565b6003860155604080518281529051839173ffffffffffffffffffffffffffffffffffffffff8916917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a3505050505050565b6000828211156120d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120ee575060006111a1565b828202828482816120fb57fe5b0414610c5c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127d56021913960400191505060405180910390fd5b33600090815260a560205260409020805461216d57506107bb565b600061219b8260010154611a6164e8d4a51000611a5b876002015487600001546120df90919063ffffffff16565b9050801561222b57600283015482546121be9164e8d4a5100091611a5b916120df565b60018301556121cd33826122d4565b6040805182815290517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9133917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f519181900360200190a350506107bb565b600283015482546122469164e8d4a5100091611a5b916120df565b8260010181905550505050565b60008082116122c357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122cc57fe5b049392505050565b60a454609754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009361238393909273ffffffffffffffffffffffffffffffffffffffff909116916370a0823191602480820192602092909190829003018186803b15801561235157600080fd5b505afa158015612365573d6000803e3d6000fd5b505050506040513d602081101561237b57600080fd5b505190612068565b90508082111561243b57609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561240957600080fd5b505af115801561241d573d6000803e3d6000fd5b505050506040513d602081101561243357600080fd5b506124e49050565b609754604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156124b757600080fd5b505af11580156124cb573d6000803e3d6000fd5b505050506040513d60208110156124e157600080fd5b50505b505050565b600054610100900460ff16806125025750612502611b75565b80612510575060005460ff16155b612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff16158015611c6d57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091166101001716600117905580156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b600054610100900460ff16806126145750612614611b75565b80612622575060005460ff16155b612677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806127f6602e913960400191505060405180910390fd5b600054610100900460ff161580156126dd57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116610100171660011790555b60006126e7611e73565b606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156107bb57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f6e6c7920746865206d61726b6574706c6163652063616e20616464206120706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220f76a6418e3fe9a369b07336e31d756c984699f9374c9063d0092495bcd2b0d8964736f6c634300060c0033
Deployed Bytecode Sourcemap
54090:12535:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56760:95;;;:::i;:::-;;;;;;;;;;;;;;;;65070:114;;;;;;;;;;;;;;;;-1:-1:-1;65070:114:0;;:::i;:::-;;55123:26;;;;;;;;;;;;;;;;-1:-1:-1;55123:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55364:34;;;:::i;54891:28::-;;;:::i;57442:534::-;;;;;;;;;;;;;;;;-1:-1:-1;57442:534:0;;;;;;;;;:::i;56863:139::-;;;;;;;;;;;;;;;;-1:-1:-1;56863:139:0;;;;:::i;55742:45::-;;;;;;;;;;;;;;;;-1:-1:-1;55742:45:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;56164:588;;;;;;;;;;;;;;;;-1:-1:-1;56164:588:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;55454:25::-;;;:::i;60586:133::-;;;;;;;;;;;;;;;;-1:-1:-1;60586:133:0;;:::i;60038:182::-;;;;;;;;;;;;;;;;-1:-1:-1;60038:182:0;;;;:::i;60303:207::-;;;:::i;58071:221::-;;;;;;;;;;;;;;;;-1:-1:-1;58071:221:0;;;;;;;;;;;;;;:::i;54964:26::-;;;:::i;64052:333::-;;;;;;;;;;;;;;;;-1:-1:-1;64052:333:0;;:::i;37236:148::-;;;:::i;62518:448::-;;;;;;;;;;;;;;;;-1:-1:-1;62518:448:0;;;;;;;;;:::i;55044:45::-;;;:::i;36594:79::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;58695:391;;;;;;;;;;;;;;;;-1:-1:-1;58695:391:0;;;;;;;:::i;55205:64::-;;;;;;;;;;;;;;;;-1:-1:-1;55205:64:0;;;;;;;;;:::i;57010:157::-;;;;;;;;;;;;;;;;-1:-1:-1;57010:157:0;;;;;;;;;;;:::i;57175:193::-;;;;;;;;;;;;;;;;-1:-1:-1;57175:193:0;;;;:::i;54816:19::-;;;:::i;55711:24::-;;;:::i;61463:439::-;;;;;;;;;;;;;;;;-1:-1:-1;61463:439:0;;;;;;;;;:::i;55657:45::-;;;;;;;;;;;;;;;;-1:-1:-1;55657:45:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;65192:110;;;:::i;55567:47::-;;;;;;;;;;;;;;;;-1:-1:-1;55567:47:0;;;;:::i;55621:29::-;;;:::i;64814:112::-;;;;;;;;;;;;;;;;-1:-1:-1;64814:112:0;;:::i;64934:128::-;;;;;;;;;;;;;;;;-1:-1:-1;64934:128:0;;:::i;59149:235::-;;;;;;;;;;;;;;;;-1:-1:-1;59149:235:0;;;;;;;;;:::i;64733:73::-;;;:::i;37539:244::-;;;;;;;;;;;;;;;;-1:-1:-1;37539:244:0;;;;:::i;64393:332::-;;;;;;;;;;;;;;;;-1:-1:-1;64393:332:0;;:::i;56760:95::-;56832:8;:15;56760:95;:::o;65070:114::-;65129:19;65140:7;65129:10;:19::i;:::-;65159:17;65168:7;65159:8;:17::i;:::-;65070:114;:::o;55123:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55123:26:0;;;:::o;55364:34::-;;;;:::o;54891:28::-;;;;:::o;57442:534::-;57542:14;;;;57528:10;:28;57520:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57607:23;57648:10;;57633:12;:25;:53;;57676:10;;57633:53;;;57661:12;57633:53;57715:15;;57607:79;;-1:-1:-1;57715:32:0;;57735:11;57715:19;:32::i;:::-;57697:15;:50;57772:101;;;;;;;;;;;;;;;;;;-1:-1:-1;57772:101:0;;;;;;;;;;;;57758:8;:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57909:15;;57885:21;;;;;;;:12;:21;;;;;-1:-1:-1;57909:19:0;;;;57885:43;;;57939:13;:22;;;;:29;;;;;;;;;57442:534::o;56863:139::-;56966:18;;;56930:7;56966:18;;;:12;:18;;;;;;56957:8;:28;;:8;;56966:18;56957:28;;;;;;;;;;;;;;;;:37;;;56950:44;;56863:139;;;:::o;55742:45::-;;;;;;;;;;;;;;;;;;;:::o;56164:588::-;32966:12;;;;;;;;:31;;;32982:15;:13;:15::i;:::-;32966:47;;;-1:-1:-1;33002:11:0;;;;33001:12;32966:47;32958:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33077:19;33100:12;;;;;;33099:13;33123:99;;;;33158:12;:19;;33192:18;33158:19;;;;;;33192:18;33173:4;33192:18;;;33123:99;56406:35:::1;:33;:35::i;:::-;56452:3;:10:::0;;;::::1;;::::0;::::1;;::::0;;56473:11:::1;:26:::0;;;56510:13:::1;:30:::0;;;56551:10:::1;:24:::0;;;56597:104:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;-1:-1:-1;56597:104:0;;;;;;;;;;;56586:8:::1;:115:::0;;;;;;;;;;;;;56712:15:::1;:32:::0;;;33248:67;;;;33298:5;33283:20;;;;;;33248:67;56164:588;;;;;;;:::o;55454:25::-;;;;:::o;60586:133::-;60638:21;60662:8;60671:4;60662:14;;;;;;;;;;;;;;;;;;60638:38;;60694:17;60706:4;60694:11;:17::i;:::-;60687:24;60586:133;:::o;60038:182::-;60148:19;;;60104:7;60148:19;;;:9;:19;;;;;60185:27;60197:8;60148:19;60185:11;:27::i;:::-;60178:34;60038:182;-1:-1:-1;;;60038:182:0:o;60303:207::-;60365:8;:15;60348:14;60391:85;60419:6;60413:3;:12;60391:85;;;60449:15;60460:3;60449:10;:15::i;:::-;60427:5;;60391:85;;;;60486:16;:14;:16::i;58071:221::-;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58199:21:::1;58223:8;58232:4;58223:14;;;;;;;;;;;;;;;;;;58199:38;;58248:36;58253:4;58259:11;58272;58248:4;:36::i;:::-;36876:1;58071:221:::0;;;:::o;54964:26::-;;;;:::o;64052:333::-;64139:10;64105:21;64129;;;:9;:21;;;;;64161:16;:14;:16::i;:::-;64188:51;64203:10;64215:8;64225:4;64231:7;64188:14;:51::i;:::-;64258:3;;:52;;;;;;64275:10;64258:52;;;;64295:4;64258:52;;;;;;;;;;;;:3;;;;;:16;;:52;;;;;;;;;;;;;;;:3;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64258:52:0;64250:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64346:31;;;;;;;;64357:10;;64346:31;;;;;;;;;;64052:333;;:::o;37236:148::-;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37327:6:::1;::::0;37306:40:::1;::::0;37343:1:::1;::::0;37306:40:::1;37327:6;::::0;37306:40:::1;::::0;37343:1;;37306:40:::1;37357:6;:19:::0;;;::::1;::::0;;37236:148::o;62518:448::-;62626:10;62612:25;;;;:13;:25;;;;;;;;62604:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62700:10;62672:12;62687:24;;;:12;:24;;;;;;62746:8;:14;;62687:24;;62672:12;62687:24;;62746:14;;;;;;;;;;;;;;62795;;;:8;:14;;;;;;:24;;;;;;;;;;62746:14;;;;;;;;-1:-1:-1;62830:16:0;62804:4;62830:10;:16::i;:::-;62857:52;62873:8;62883:4;62889;62895:7;62904:4;62857:15;:52::i;:::-;62925:33;;;;;;;;62944:4;;62925:33;;;;;;;;;;;;;62518:448;;;;;:::o;55044:45::-;55087:2;55044:45;:::o;36594:79::-;36659:6;;;;36594:79;:::o;58695:391::-;58767:7;58798:13;;58791:3;:20;58787:292;;58835:36;55087:2;58835:14;:3;58843:5;58835:7;:14::i;:::-;:18;;:36::i;:::-;58828:43;;;;58787:292;58902:13;;58893:5;:22;58889:190;;58939:14;:3;58947:5;58939:7;:14::i;58889:190::-;58993:74;59044:22;59052:13;;59044:3;:7;;:22;;;;:::i;:::-;58993:46;55087:2;58993:24;59011:5;58993:13;;:17;;:24;;;;:::i;:46::-;:50;;:74::i;58889:190::-;58695:391;;;;:::o;55205:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;57010:157::-;57127:18;;;;57091:7;57127:18;;;:12;:18;;;;;;;;;57118:28;;:8;:28;;;;;:34;;;;;;;;;;;:41;;57010:157::o;57175:193::-;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57263:29:::1;::::0;::::1;57255:62;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;57328:14;:32:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;57175:193::o;54816:19::-;;;;;;:::o;55711:24::-;;;;;;;;;;:::o;61463:439::-;61570:10;61556:25;;;;:13;:25;;;;;;;;61548:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61644:10;61616:12;61631:24;;;:12;:24;;;;;;61690:8;:14;;61631:24;;61616:12;61631:24;;61690:14;;;;;;;;;;;;;;61739;;;:8;:14;;;;;;:24;;;;;;;;;;61690:14;;;;;;;;-1:-1:-1;61774:16:0;61748:4;61774:10;:16::i;:::-;61801:45;61816:8;61826:4;61832;61838:7;61801:14;:45::i;:::-;61862:32;;;;;;;;61880:4;;61862:32;;;;;;;;;;;;;61463:439;;;;;:::o;55657:45::-;;;;;;;;;;;;;;;:::o;65192:110::-;65239:16;:14;:16::i;:::-;65266:28;65285:8;65266:18;:28::i;:::-;65192:110::o;55567:47::-;;;;;;;;;;;;;:::o;55621:29::-;;;;;;:::o;64814:112::-;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64884:34:::1;64889:8;64899:11;64912:5;64884:4;:34::i;64934:128::-:0;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65016:24;:38;64934:128::o;59149:235::-;59221:7;59241:21;59265:8;59274:4;59265:14;;;;;;;;;;;;;;;;59314;;;:8;:14;;;;;;:21;;;;;;;;;;59265:14;;;;;;;;-1:-1:-1;59353:23:0;59265:14;59314:21;59353:11;:23::i;:::-;59346:30;59149:235;-1:-1:-1;;;;;59149:235:0:o;64733:73::-;64777:21;64789:8;64777:11;:21::i;37539:244::-;36816:12;:10;:12::i;:::-;36806:6;;:22;:6;;;:22;;;36798:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37628:22:::1;::::0;::::1;37620:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37730:6;::::0;37709:38:::1;::::0;::::1;::::0;;::::1;::::0;37730:6:::1;::::0;37709:38:::1;::::0;37730:6:::1;::::0;37709:38:::1;37758:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;37539:244::o;64393:332::-;64483:10;64449:21;64473;;;:9;:21;;;;;64505:16;:14;:16::i;:::-;64532:65;64548:10;64560:8;64570:4;64576:7;55549:11;64532:15;:65::i;:::-;64616:3;;:33;;;;;;64629:10;64616:33;;;;;;;;;;;;:3;;;;;:12;;:33;;;;;;;;;;;;;;;:3;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64616:33:0;64608:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64685:32;;;;;;;;64697:10;;64685:32;;;;;;;;;;64393:332;;:::o;65950:672::-;66005:21;66029:8;66038:7;66029:17;;;;;;;;;;;;;;;;66081;;;:8;:17;;;;;;66099:10;66081:29;;;;;;;66125:11;;66029:17;;;;;;;;-1:-1:-1;66121:29:0;;66143:7;;;;66121:29;66160:15;66178:67;66229:4;:15;;;66178:46;66219:4;66178:36;66194:4;:19;;;66178:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;66160:85;-1:-1:-1;66260:11:0;;66256:284;;66322:19;;;;66306:11;;:46;;66347:4;;66306:36;;:15;:36::i;:46::-;66288:15;;;:64;66411:36;66427:10;66439:7;66411:15;:36::i;:::-;66467:40;;;;;;;;66490:7;;66478:10;;66467:40;;;;;;;;;66522:7;;;;;66256:284;66584:19;;;;66568:11;;:46;;66609:4;;66568:36;;:15;:36::i;:46::-;66550:4;:15;;:64;;;;65950:672;;;;:::o;5514:179::-;5572:7;5604:5;;;5628:6;;;;5620:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33415:568;33856:4;33923:17;33968:7;33415:568;:::o;36180:129::-;32966:12;;;;;;;;:31;;;32982:15;:13;:15::i;:::-;32966:47;;;-1:-1:-1;33002:11:0;;;;33001:12;32966:47;32958:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33077:19;33100:12;;;;;;33099:13;33123:99;;;;33158:12;:19;;33192:18;33158:19;;;;;;33192:18;33173:4;33192:18;;;33123:99;36238:26:::1;:24;:26::i;:::-;36275;:24;:26::i;:::-;33252:14:::0;33248:67;;;33298:5;33283:20;;;;;;36180:129;:::o;60727:665::-;60810:4;:20;;;60794:12;:36;60790:75;;60847:7;;60790:75;60894:13;;;;60922;60918:102;;-1:-1:-1;60975:12:0;60952:20;;;:35;61002:7;;60918:102;61030:18;61051:49;61065:4;:20;;;61087:12;61051:13;:49::i;:::-;61030:70;;61111:17;61131:69;61184:15;;61131:48;61163:4;:15;;;61131:27;61146:11;;61131:10;:14;;:27;;;;:::i;:69::-;61211:3;;:36;;;;;;61230:4;61211:36;;;;;;;;;;;;61111:89;;-1:-1:-1;61211:3:0;;;;;:10;;:36;;;;;:3;;:36;;;;;;;;:3;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61280:58;61304:33;61328:8;61304:19;61318:4;61304:9;:13;;:19;;;;:::i;:33::-;61280:19;;;;;:23;:58::i;:::-;61258:19;;;:80;-1:-1:-1;;61372:12:0;61349:20;;;:35;-1:-1:-1;60727:665:0;:::o;59392:638::-;59526:19;;;;59575:13;;;;59618:20;;;;59481:7;;59526:19;59575:13;59603:12;:35;:52;;;;-1:-1:-1;59642:13:0;;;59603:52;59599:344;;;59672:18;59693:49;59707:4;:20;;;59729:12;59693:13;:49::i;:::-;59672:70;;59757:17;59777:69;59830:15;;59777:48;59809:4;:15;;;59777:27;59792:11;;59777:10;:14;;:27;;;;:::i;:69::-;59757:89;-1:-1:-1;59878:53:0;59897:33;59921:8;59897:19;59757:89;59911:4;59897:13;:19::i;:33::-;59878:14;;:18;:53::i;:::-;59861:70;;59599:344;;;59960:62;60006:4;:15;;;59960:41;59996:4;59960:31;59976:14;59960:4;:11;;;:15;;:31;;;;:::i;34989:106::-;35077:10;34989:106;:::o;58300:319::-;58433:11;58429:61;;;58461:17;:15;:17::i;:::-;58538:15;;58518;;:53;;58559:11;;58518:36;;:19;:36::i;:53::-;58500:15;:71;-1:-1:-1;58582:29:0;;58300:319::o;61910:533::-;62081:11;;:15;62077:182;;62113:15;62131:67;62182:4;:15;;;62131:46;62172:4;62131:36;62147:4;:19;;;62131:4;:11;;;:15;;:36;;;;:::i;:67::-;62113:85;;62213:34;62229:8;62239:7;62213:15;:34::i;:::-;62077:182;;62285:13;;;;:26;;62303:7;62285:17;:26::i;:::-;62269:13;;;:42;62336:11;;:24;;62352:7;62336:15;:24::i;:::-;62322:38;;;62405:19;;;;62389:46;;62430:4;;62389:36;;62322:38;62389:15;:36::i;62974:664::-;63173:11;;:22;-1:-1:-1;63173:22:0;63165:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63229:15;63247:67;63298:4;:15;;;63247:46;63288:4;63247:36;63263:4;:19;;;63247:4;:11;;;:15;;:36;;;;:::i;:67::-;63229:85;-1:-1:-1;63329:11:0;;63325:78;;63357:34;63373:8;63383:7;63357:15;:34::i;:::-;63427:11;;:24;;63443:7;63427:15;:24::i;:::-;63413:38;;;63496:19;;;;63480:46;;63521:4;;63480:36;;63413:38;63480:15;:36::i;:46::-;63462:15;;;:64;63553:13;;;;:26;;63571:7;63553:17;:26::i;:::-;63537:13;;;:42;63595:35;;;;;;;;63616:4;;63595:35;;;;;;;;;;;;;62974:664;;;;;;:::o;5976:158::-;6034:7;6067:1;6062;:6;;6054:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6121:5:0;;;5976:158::o;6393:220::-;6451:7;6475:6;6471:20;;-1:-1:-1;6490:1:0;6483:8;;6471:20;6514:5;;;6518:1;6514;:5;:1;6538:5;;;;;:10;6530:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65310:632;65415:10;65381:21;65405;;;:9;:21;;;;;65441:11;;65437:29;;65459:7;;;65437:29;65476:15;65494:67;65545:4;:15;;;65494:46;65535:4;65494:36;65510:4;:19;;;65494:4;:11;;;:15;;:36;;;;:::i;:67::-;65476:85;-1:-1:-1;65576:11:0;;65572:288;;65638:19;;;;65622:11;;:46;;65663:4;;65622:36;;:15;:36::i;:46::-;65604:15;;;:64;65727:36;65743:10;65755:7;65727:15;:36::i;:::-;65783:44;;;;;;;;55549:11;;65794:10;;65783:44;;;;;;;;;65842:7;;;;65572:288;65904:19;;;;65888:11;;:46;;65929:4;;65888:36;;:15;:36::i;:46::-;65870:4;:15;;:64;;;;65310:632;;;:::o;7091:153::-;7149:7;7181:1;7177;:5;7169:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7235:1;7231;:5;;;;;;;7091:153;-1:-1:-1;;;7091:153:0:o;63750:294::-;63875:17;;63842:3;;:28;;;;;;63864:4;63842:28;;;;;;63825:14;;63842:51;;63875:17;;63842:3;;;;;:13;;:28;;;;;;;;;;;;;;;:3;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63842:28:0;;:32;:51::i;:::-;63825:68;;63918:6;63908:7;:16;63904:133;;;63941:3;;:25;;;;;;:3;:25;;;;;;;;;;;;;;;:3;;;;;:12;;:25;;;;;;;;;;;;;;:3;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63904:133:0;;-1:-1:-1;63904:133:0;;63999:3;;:26;;;;;;:3;:26;;;;;;;;;;;;;;;:3;;;;;:12;;:26;;;;;;;;;;;;;;:3;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;63904:133:0;63750:294;;;:::o;34922:59::-;32966:12;;;;;;;;:31;;;32982:15;:13;:15::i;:::-;32966:47;;;-1:-1:-1;33002:11:0;;;;33001:12;32966:47;32958:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33077:19;33100:12;;;;;;33099:13;33123:99;;;;33158:12;:19;;33192:18;33158:19;;;;;;33192:18;33173:4;33192:18;;;33252:14;33248:67;;;33298:5;33283:20;;;;;;34922:59;:::o;36317:196::-;32966:12;;;;;;;;:31;;;32982:15;:13;:15::i;:::-;32966:47;;;-1:-1:-1;33002:11:0;;;;33001:12;32966:47;32958:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33077:19;33100:12;;;;;;33099:13;33123:99;;;;33158:12;:19;;33192:18;33158:19;;;;;;33192:18;33173:4;33192:18;;;33123:99;36385:17:::1;36405:12;:10;:12::i;:::-;36428:6;:18:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;36462:43:::1;::::0;36428:18;;-1:-1:-1;36428:18:0;-1:-1:-1;;36462:43:0::1;::::0;-1:-1:-1;;36462:43:0::1;33234:1;33252:14:::0;33248:67;;;33298:5;33283:20;;;;;;36317:196;:::o
Swarm Source
ipfs://f76a6418e3fe9a369b07336e31d756c984699f9374c9063d0092495bcd2b0d89
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.