Address Details
contract
0x2A3885B3F0C98F3E36334d4FA7BEDA53Cb0ae095
- Contract Name
- HunnyPlayV2
- Creator
- 0x5e5cba–b7d4e7 at 0x7dcd65–e659b8
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 9278607
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- HunnyPlayV2
- Optimization enabled
- true
- Compiler version
- v0.8.7+commit.e28d00a7
- Optimization runs
- 200
- EVM Version
- london
- Verified at
- 2023-01-28T19:29:12.698808Z
play/wallet.sol
// Dependency file: @pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, 'SafeMath: addition overflow'); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, 'SafeMath: subtraction overflow'); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, 'SafeMath: multiplication overflow'); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, 'SafeMath: division by zero'); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, 'SafeMath: modulo by zero'); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function min(uint256 x, uint256 y) internal pure returns (uint256 z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } // Dependency file: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address _owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @pancakeswap/pancake-swap-lib/contracts/utils/Address.sol /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, 'Address: insufficient balance'); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(''); require(success, 'Address: unable to send value, recipient may have reverted'); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, 'Address: low-level call failed'); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, 'Address: low-level call with value failed'); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, 'Address: insufficient balance for call'); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), 'Address: call to non-contract'); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: weiValue}(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Dependency file: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), 'SafeBEP20: approve from non-zero to non-zero allowance' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, 'SafeBEP20: decreased allowance below zero' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IBEP20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, 'SafeBEP20: low-level call failed'); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed'); } } } // Dependency file: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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); } 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); } } } } // Dependency file: @openzeppelin/contracts-upgradeable/proxy/Initializable.sol // solhint-disable-next-line compiler-version // import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } } // Dependency file: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return payable(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; } // Dependency file: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; // import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; /** * @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 OwnableUpgradeable is Initializable, ContextUpgradeable { 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 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; } uint256[49] private __gap; } // Dependency file: contracts/library/PausableUpgradeable.sol /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ // import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; abstract contract PausableUpgradeable is OwnableUpgradeable { uint256 public lastPauseTime; bool public paused; event PauseChanged(bool isPaused); modifier notPaused() { require(!paused, "PausableUpgradeable: cannot be performed while the contract is paused"); _; } function __PausableUpgradeable_init() internal initializer { __Ownable_init(); require(owner() != address(0), "PausableUpgradeable: owner must be set"); } function setPaused(bool _paused) external onlyOwner { if (_paused == paused) { return; } paused = _paused; if (paused) { lastPauseTime = block.timestamp; } emit PauseChanged(paused); } uint256[50] private __gap; } // Dependency file: contracts/library/WhitelistUpgradeable.sol /* * * MIT License * =========== * * Copyright (c) 2020 HunnyFinance * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ // import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract WhitelistUpgradeable is OwnableUpgradeable { mapping(address => bool) private _whitelist; bool private _disable; // default - false means whitelist feature is working on. if true no more use of whitelist event Whitelisted(address indexed _address, bool whitelist); event EnableWhitelist(); event DisableWhitelist(); modifier onlyWhitelisted() { require(_disable || _whitelist[msg.sender], "Whitelist: caller is not on the whitelist"); _; } function __WhitelistUpgradeable_init() internal initializer { __Ownable_init(); } function isWhitelist(address _address) public view returns (bool) { return _whitelist[_address]; } function setWhitelist(address _address, bool _on) external onlyOwner { _whitelist[_address] = _on; emit Whitelisted(_address, _on); } function disableWhitelist(bool disable) external onlyOwner { _disable = disable; if (disable) { emit DisableWhitelist(); } else { emit EnableWhitelist(); } } uint256[49] private __gap; } // Root file: contracts/hunny/poker/HunnyPlayV2.sol pragma solidity ^0.8.0; // import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol"; // import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol"; // import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol"; // import "contracts/library/PausableUpgradeable.sol"; // import "contracts/library/WhitelistUpgradeable.sol"; // support BNB and multi tokens on a single contract contract HunnyPlayV2 is PausableUpgradeable, WhitelistUpgradeable { using SafeMath for uint256; using SafeBEP20 for IBEP20; event Deposited(address indexed token, address indexed account, uint256 indexed amount); event Withdrawn(address indexed token, address indexed account, uint256 indexed amount); function initialize() external initializer { __PausableUpgradeable_init(); __WhitelistUpgradeable_init(); } // receive BNB from anywhere receive() external payable {} function deposit(address token, uint256 amount) external payable notPaused { if (token == address(0)) { // BNB case emit Deposited(address(0), msg.sender, msg.value); } else { // token case IBEP20(token).safeTransferFrom(msg.sender, address(this), amount); emit Deposited(token, msg.sender, amount); } } function withdraw( address token, address reception, uint256 amount ) public onlyWhitelisted { if (token == address(0)) { // BNB case payable(reception).transfer(amount); emit Withdrawn(address(0), reception, amount); } else { IBEP20(token).safeTransfer(reception, amount); emit Withdrawn(token, reception, amount); } } function withdrawMany( address[] memory tokens, address[] memory receptions, uint256[] memory amounts ) public { // careful with gas paid for (uint256 i = 0; i < receptions.length; i++) { withdraw(tokens[i], receptions[i], amounts[i]); } } function recoverBNB(address reception, uint256 amount) public onlyOwner { payable(reception).transfer(amount); } function recoverBEP20( address token, address reception, uint256 amount ) public onlyOwner { IBEP20(token).safeTransfer(reception, amount); } }
Contract ABI
[{"type":"event","name":"Deposited","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"DisableWhitelist","inputs":[],"anonymous":false},{"type":"event","name":"EnableWhitelist","inputs":[],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PauseChanged","inputs":[{"type":"bool","name":"isPaused","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Whitelisted","inputs":[{"type":"address","name":"_address","internalType":"address","indexed":true},{"type":"bool","name":"whitelist","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Withdrawn","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[],"name":"deposit","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"disableWhitelist","inputs":[{"type":"bool","name":"disable","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isWhitelist","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastPauseTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverBEP20","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"reception","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverBNB","inputs":[{"type":"address","name":"reception","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPaused","inputs":[{"type":"bool","name":"_paused","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setWhitelist","inputs":[{"type":"address","name":"_address","internalType":"address"},{"type":"bool","name":"_on","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"reception","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawMany","inputs":[{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"address[]","name":"receptions","internalType":"address[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x608060405234801561001057600080fd5b5061141e806100206000396000f3fe6080604052600436106100ec5760003560e01c8063715018a61161008a578063933139e711610059578063933139e714610252578063c683630d14610272578063d9caed12146102ab578063f2fde38b146102cb57600080fd5b8063715018a6146101dc5780638129fc1c146101f15780638da5cb5b1461020657806391b4ded91461022e57600080fd5b80634a3636df116100c65780634a3636df1461014d57806353d6fd591461016d5780635c975abb1461018d5780636f78e808146101bc57600080fd5b806316c38b3c146100f857806347e7ef241461011a57806349ba1b491461012d57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b506101186101133660046111f8565b6102eb565b005b6101186101283660046110e9565b610390565b34801561013957600080fd5b506101186101483660046111f8565b6104a9565b34801561015957600080fd5b506101186101683660046110e9565b610542565b34801561017957600080fd5b506101186101883660046110b2565b6105a7565b34801561019957600080fd5b506066546101a79060ff1681565b60405190151581526020015b60405180910390f35b3480156101c857600080fd5b506101186101d7366004611076565b610630565b3480156101e857600080fd5b5061011861066e565b3480156101fd57600080fd5b506101186106e2565b34801561021257600080fd5b506033546040516001600160a01b0390911681526020016101b3565b34801561023a57600080fd5b5061024460655481565b6040519081526020016101b3565b34801561025e57600080fd5b5061011861026d366004611113565b610767565b34801561027e57600080fd5b506101a761028d366004611054565b6001600160a01b031660009081526099602052604090205460ff1690565b3480156102b757600080fd5b506101186102c6366004611076565b6107e1565b3480156102d757600080fd5b506101186102e6366004611054565b61093b565b6033546001600160a01b0316331461031e5760405162461bcd60e51b8152600401610315906112cf565b60405180910390fd5b60665460ff16151581151514156103325750565b6066805460ff191682151590811790915560ff161561035057426065555b60665460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200160405180910390a15b50565b60665460ff16156104175760405162461bcd60e51b815260206004820152604560248201527f5061757361626c655570677261646561626c653a2063616e6e6f74206265207060448201527f6572666f726d6564207768696c652074686520636f6e74726163742069732070606482015264185d5cd95960da1b608482015260a401610315565b6001600160a01b03821661045857604051349033906000907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7908290a45050565b61046d6001600160a01b038316333084610a26565b604051819033906001600160a01b038516907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a790600090a45050565b6033546001600160a01b031633146104d35760405162461bcd60e51b8152600401610315906112cf565b609a805460ff19168215801591909117909155610516576040517f508560e15717a4e9058b9a19d806cb679004a1bd953376f71fda71c141e5dc5390600090a150565b6040517fa2927d972f7cfc5ff8b7ad79f9adf0bdb885d0e569f40d0037df2e1299616ae090600090a150565b6033546001600160a01b0316331461056c5760405162461bcd60e51b8152600401610315906112cf565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105a2573d6000803e3d6000fd5b505050565b6033546001600160a01b031633146105d15760405162461bcd60e51b8152600401610315906112cf565b6001600160a01b038216600081815260996020908152604091829020805460ff191685151590811790915591519182527fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440910160405180910390a25050565b6033546001600160a01b0316331461065a5760405162461bcd60e51b8152600401610315906112cf565b6105a26001600160a01b0384168383610a91565b6033546001600160a01b031633146106985760405162461bcd60e51b8152600401610315906112cf565b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b600054610100900460ff16806106f75750303b155b80610705575060005460ff16155b6107215760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610743576000805461ffff19166101011790555b61074b610ac1565b610753610ba4565b801561038d576000805461ff001916905550565b60005b82518110156107db576107c9848281518110610788576107886113ae565b60200260200101518483815181106107a2576107a26113ae565b60200260200101518484815181106107bc576107bc6113ae565b60200260200101516107e1565b806107d381611385565b91505061076a565b50505050565b609a5460ff168061080157503360009081526099602052604090205460ff165b61085f5760405162461bcd60e51b815260206004820152602960248201527f57686974656c6973743a2063616c6c6572206973206e6f74206f6e20746865206044820152681dda1a5d195b1a5cdd60ba1b6064820152608401610315565b6001600160a01b0383166108e1576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108a3573d6000803e3d6000fd5b5060405181906001600160a01b038416906000907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb908290a4505050565b6108f56001600160a01b0384168383610a91565b80826001600160a01b0316846001600160a01b03167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb60405160405180910390a4505050565b6033546001600160a01b031633146109655760405162461bcd60e51b8152600401610315906112cf565b6001600160a01b0381166109ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610315565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b03808516602483015283166044820152606481018290526107db9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610c0d565b6040516001600160a01b0383166024820152604481018290526105a290849063a9059cbb60e01b90606401610a5a565b600054610100900460ff1680610ad65750303b155b80610ae4575060005460ff16155b610b005760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610b22576000805461ffff19166101011790555b610b2a610cdf565b6000610b3e6033546001600160a01b031690565b6001600160a01b031614156107535760405162461bcd60e51b815260206004820152602660248201527f5061757361626c655570677261646561626c653a206f776e6572206d757374206044820152651899481cd95d60d21b6064820152608401610315565b600054610100900460ff1680610bb95750303b155b80610bc7575060005460ff16155b610be35760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610c05576000805461ffff19166101011790555b610753610cdf565b6000610c62826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d509092919063ffffffff16565b8051909150156105a25780806020019051810190610c809190611215565b6105a25760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610315565b600054610100900460ff1680610cf45750303b155b80610d02575060005460ff16155b610d1e5760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610d40576000805461ffff19166101011790555b610d48610d67565b610753610ddb565b6060610d5f8484600085610e93565b949350505050565b600054610100900460ff1680610d7c5750303b155b80610d8a575060005460ff16155b610da65760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610753576000805461ffff1916610101179055801561038d576000805461ff001916905550565b600054610100900460ff1680610df05750303b155b80610dfe575060005460ff16155b610e1a5760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610e3c576000805461ffff19166101011790555b603380546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561038d576000805461ff001916905550565b6060610e9e85610f86565b610eea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610315565b600080866001600160a01b03168587604051610f069190611232565b60006040518083038185875af1925050503d8060008114610f43576040519150601f19603f3d011682016040523d82523d6000602084013e610f48565b606091505b50915091508115610f5c579150610d5f9050565b805115610f6c5780518082602001fd5b8360405162461bcd60e51b8152600401610315919061124e565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610d5f575050151592915050565b80356001600160a01b0381168114610fd657600080fd5b919050565b600082601f830112610fec57600080fd5b81356020611001610ffc83611335565b611304565b80838252828201915082860187848660051b890101111561102157600080fd5b60005b858110156110475761103582610fbf565b84529284019290840190600101611024565b5090979650505050505050565b60006020828403121561106657600080fd5b61106f82610fbf565b9392505050565b60008060006060848603121561108b57600080fd5b61109484610fbf565b92506110a260208501610fbf565b9150604084013590509250925092565b600080604083850312156110c557600080fd5b6110ce83610fbf565b915060208301356110de816113da565b809150509250929050565b600080604083850312156110fc57600080fd5b61110583610fbf565b946020939093013593505050565b60008060006060848603121561112857600080fd5b833567ffffffffffffffff8082111561114057600080fd5b61114c87838801610fdb565b945060209150818601358181111561116357600080fd5b61116f88828901610fdb565b94505060408601358181111561118457600080fd5b86019050601f8101871361119757600080fd5b80356111a5610ffc82611335565b8082825284820191508484018a868560051b87010111156111c557600080fd5b600094505b838510156111e85780358352600194909401939185019185016111ca565b5080955050505050509250925092565b60006020828403121561120a57600080fd5b813561106f816113da565b60006020828403121561122757600080fd5b815161106f816113da565b60008251611244818460208701611359565b9190910192915050565b602081526000825180602084015261126d816040850160208701611359565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561132d5761132d6113c4565b604052919050565b600067ffffffffffffffff82111561134f5761134f6113c4565b5060051b60200190565b60005b8381101561137457818101518382015260200161135c565b838111156107db5750506000910152565b60006000198214156113a757634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461038d57600080fdfea26469706673582212200b7f272f2464001596228fd65e0cb723941c3f8e13ec8034c662a8a72ba0890764736f6c63430008070033
Deployed ByteCode
0x6080604052600436106100ec5760003560e01c8063715018a61161008a578063933139e711610059578063933139e714610252578063c683630d14610272578063d9caed12146102ab578063f2fde38b146102cb57600080fd5b8063715018a6146101dc5780638129fc1c146101f15780638da5cb5b1461020657806391b4ded91461022e57600080fd5b80634a3636df116100c65780634a3636df1461014d57806353d6fd591461016d5780635c975abb1461018d5780636f78e808146101bc57600080fd5b806316c38b3c146100f857806347e7ef241461011a57806349ba1b491461012d57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b506101186101133660046111f8565b6102eb565b005b6101186101283660046110e9565b610390565b34801561013957600080fd5b506101186101483660046111f8565b6104a9565b34801561015957600080fd5b506101186101683660046110e9565b610542565b34801561017957600080fd5b506101186101883660046110b2565b6105a7565b34801561019957600080fd5b506066546101a79060ff1681565b60405190151581526020015b60405180910390f35b3480156101c857600080fd5b506101186101d7366004611076565b610630565b3480156101e857600080fd5b5061011861066e565b3480156101fd57600080fd5b506101186106e2565b34801561021257600080fd5b506033546040516001600160a01b0390911681526020016101b3565b34801561023a57600080fd5b5061024460655481565b6040519081526020016101b3565b34801561025e57600080fd5b5061011861026d366004611113565b610767565b34801561027e57600080fd5b506101a761028d366004611054565b6001600160a01b031660009081526099602052604090205460ff1690565b3480156102b757600080fd5b506101186102c6366004611076565b6107e1565b3480156102d757600080fd5b506101186102e6366004611054565b61093b565b6033546001600160a01b0316331461031e5760405162461bcd60e51b8152600401610315906112cf565b60405180910390fd5b60665460ff16151581151514156103325750565b6066805460ff191682151590811790915560ff161561035057426065555b60665460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200160405180910390a15b50565b60665460ff16156104175760405162461bcd60e51b815260206004820152604560248201527f5061757361626c655570677261646561626c653a2063616e6e6f74206265207060448201527f6572666f726d6564207768696c652074686520636f6e74726163742069732070606482015264185d5cd95960da1b608482015260a401610315565b6001600160a01b03821661045857604051349033906000907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7908290a45050565b61046d6001600160a01b038316333084610a26565b604051819033906001600160a01b038516907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a790600090a45050565b6033546001600160a01b031633146104d35760405162461bcd60e51b8152600401610315906112cf565b609a805460ff19168215801591909117909155610516576040517f508560e15717a4e9058b9a19d806cb679004a1bd953376f71fda71c141e5dc5390600090a150565b6040517fa2927d972f7cfc5ff8b7ad79f9adf0bdb885d0e569f40d0037df2e1299616ae090600090a150565b6033546001600160a01b0316331461056c5760405162461bcd60e51b8152600401610315906112cf565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105a2573d6000803e3d6000fd5b505050565b6033546001600160a01b031633146105d15760405162461bcd60e51b8152600401610315906112cf565b6001600160a01b038216600081815260996020908152604091829020805460ff191685151590811790915591519182527fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440910160405180910390a25050565b6033546001600160a01b0316331461065a5760405162461bcd60e51b8152600401610315906112cf565b6105a26001600160a01b0384168383610a91565b6033546001600160a01b031633146106985760405162461bcd60e51b8152600401610315906112cf565b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b600054610100900460ff16806106f75750303b155b80610705575060005460ff16155b6107215760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610743576000805461ffff19166101011790555b61074b610ac1565b610753610ba4565b801561038d576000805461ff001916905550565b60005b82518110156107db576107c9848281518110610788576107886113ae565b60200260200101518483815181106107a2576107a26113ae565b60200260200101518484815181106107bc576107bc6113ae565b60200260200101516107e1565b806107d381611385565b91505061076a565b50505050565b609a5460ff168061080157503360009081526099602052604090205460ff165b61085f5760405162461bcd60e51b815260206004820152602960248201527f57686974656c6973743a2063616c6c6572206973206e6f74206f6e20746865206044820152681dda1a5d195b1a5cdd60ba1b6064820152608401610315565b6001600160a01b0383166108e1576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108a3573d6000803e3d6000fd5b5060405181906001600160a01b038416906000907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb908290a4505050565b6108f56001600160a01b0384168383610a91565b80826001600160a01b0316846001600160a01b03167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb60405160405180910390a4505050565b6033546001600160a01b031633146109655760405162461bcd60e51b8152600401610315906112cf565b6001600160a01b0381166109ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610315565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b03808516602483015283166044820152606481018290526107db9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610c0d565b6040516001600160a01b0383166024820152604481018290526105a290849063a9059cbb60e01b90606401610a5a565b600054610100900460ff1680610ad65750303b155b80610ae4575060005460ff16155b610b005760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610b22576000805461ffff19166101011790555b610b2a610cdf565b6000610b3e6033546001600160a01b031690565b6001600160a01b031614156107535760405162461bcd60e51b815260206004820152602660248201527f5061757361626c655570677261646561626c653a206f776e6572206d757374206044820152651899481cd95d60d21b6064820152608401610315565b600054610100900460ff1680610bb95750303b155b80610bc7575060005460ff16155b610be35760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610c05576000805461ffff19166101011790555b610753610cdf565b6000610c62826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d509092919063ffffffff16565b8051909150156105a25780806020019051810190610c809190611215565b6105a25760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610315565b600054610100900460ff1680610cf45750303b155b80610d02575060005460ff16155b610d1e5760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610d40576000805461ffff19166101011790555b610d48610d67565b610753610ddb565b6060610d5f8484600085610e93565b949350505050565b600054610100900460ff1680610d7c5750303b155b80610d8a575060005460ff16155b610da65760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610753576000805461ffff1916610101179055801561038d576000805461ff001916905550565b600054610100900460ff1680610df05750303b155b80610dfe575060005460ff16155b610e1a5760405162461bcd60e51b815260040161031590611281565b600054610100900460ff16158015610e3c576000805461ffff19166101011790555b603380546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561038d576000805461ff001916905550565b6060610e9e85610f86565b610eea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610315565b600080866001600160a01b03168587604051610f069190611232565b60006040518083038185875af1925050503d8060008114610f43576040519150601f19603f3d011682016040523d82523d6000602084013e610f48565b606091505b50915091508115610f5c579150610d5f9050565b805115610f6c5780518082602001fd5b8360405162461bcd60e51b8152600401610315919061124e565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610d5f575050151592915050565b80356001600160a01b0381168114610fd657600080fd5b919050565b600082601f830112610fec57600080fd5b81356020611001610ffc83611335565b611304565b80838252828201915082860187848660051b890101111561102157600080fd5b60005b858110156110475761103582610fbf565b84529284019290840190600101611024565b5090979650505050505050565b60006020828403121561106657600080fd5b61106f82610fbf565b9392505050565b60008060006060848603121561108b57600080fd5b61109484610fbf565b92506110a260208501610fbf565b9150604084013590509250925092565b600080604083850312156110c557600080fd5b6110ce83610fbf565b915060208301356110de816113da565b809150509250929050565b600080604083850312156110fc57600080fd5b61110583610fbf565b946020939093013593505050565b60008060006060848603121561112857600080fd5b833567ffffffffffffffff8082111561114057600080fd5b61114c87838801610fdb565b945060209150818601358181111561116357600080fd5b61116f88828901610fdb565b94505060408601358181111561118457600080fd5b86019050601f8101871361119757600080fd5b80356111a5610ffc82611335565b8082825284820191508484018a868560051b87010111156111c557600080fd5b600094505b838510156111e85780358352600194909401939185019185016111ca565b5080955050505050509250925092565b60006020828403121561120a57600080fd5b813561106f816113da565b60006020828403121561122757600080fd5b815161106f816113da565b60008251611244818460208701611359565b9190910192915050565b602081526000825180602084015261126d816040850160208701611359565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561132d5761132d6113c4565b604052919050565b600067ffffffffffffffff82111561134f5761134f6113c4565b5060051b60200190565b60005b8381101561137457818101518382015260200161135c565b838111156107db5750506000910152565b60006000198214156113a757634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461038d57600080fdfea26469706673582212200b7f272f2464001596228fd65e0cb723941c3f8e13ec8034c662a8a72ba0890764736f6c63430008070033