Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- TokenV2
- Optimization enabled
- true
- Compiler version
- v0.8.17+commit.8df45f5f
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2023-08-14T14:03:48.687503Z
contracts/TokenV2.sol
/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.7;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC20Upgradeable.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
interface PLSRouter is IUniswapV2Router02 {
function WPLS() external pure returns (address);
}
contract TokenV2 is Initializable, IERC20Upgradeable, OwnableUpgradeable {
uint256 public override totalSupply;
string public name;
uint8 public decimals;
string public symbol;
// [rewards, growth]
address[2] public feesReceivers;
// [rewards, liqudity, growth]
uint8[3] buyFeesDistribution;
uint8[3] saleFeesDistribution;
uint8[3] transferFeesDistribution;
// [rewards, liqudity, growth, total]
uint256[4] public feesCounter;
uint256 public swapThreshold;
bool public executeSwapsActive;
struct Fees {
uint8 buy;
uint8 sale;
uint8 transfer;
}
Fees public fees;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowances;
mapping(address => bool) public isLiquidityPair;
mapping(address => bool) public isBlacklisted;
mapping(address => bool) public isExcludedFromFee;
PLSRouter public ROUTER;
bool public inSwap;
event ExecSwap(uint256 toLiq, uint256 toGrowth, uint256 total);
modifier inSwapLock() {
inSwap = true;
_;
inSwap = false;
}
function initialize(
uint256 _initialAmount,
string memory _tokenName,
uint8 _decimalUnits,
string memory _tokenSymbol,
address _rewards,
address _growth,
address router
) public initializer {
__Ownable_init();
ROUTER = PLSRouter(router);
_approve(address(this), router, type(uint256).max);
IERC20Upgradeable(ROUTER.WPLS()).approve(router, type(uint256).max);
balances[_msgSender()] = _initialAmount;
totalSupply = _initialAmount;
name = _tokenName;
decimals = _decimalUnits;
symbol = _tokenSymbol;
isExcludedFromFee[address(this)] = true;
isExcludedFromFee[_msgSender()] = true;
isExcludedFromFee[_rewards] = true;
isExcludedFromFee[_growth] = true;
isExcludedFromFee[router] = true;
emit Transfer(address(0), _msgSender(), _initialAmount);
emit OwnershipTransferred(address(0), _msgSender());
fees = Fees({buy: 10, sale: 10, transfer: 10});
feesReceivers = [_rewards, _growth];
buyFeesDistribution = [0, 0, 100];
saleFeesDistribution = [0, 0, 100];
transferFeesDistribution = [50, 50, 0];
feesCounter = [0, 0, 0, 0];
swapThreshold = 100e18;
executeSwapsActive = true;
}
function _transferExcluded(
address _from,
address _to,
uint256 _value
) private {
balances[_from] -= _value;
balances[_to] += _value;
emit Transfer(_from, _to, _value);
}
function _transferNoneExcluded(
address _from,
address _to,
uint256 _value
) private {
if (
feesCounter[3] >= swapThreshold &&
executeSwapsActive &&
!isLiquidityPair[_from] &&
!inSwap
) _executeSwaps();
balances[_from] -= _value;
uint256 feeValue = 0;
uint8[3] memory feesDistribution;
if (isLiquidityPair[_from]) {
// buy
feeValue = (_value * fees.buy) / 100;
feesDistribution = buyFeesDistribution;
} else if (isLiquidityPair[_to]) {
// sell
feeValue = (_value * fees.sale) / 100;
feesDistribution = saleFeesDistribution;
} else {
// transfer
feeValue = (_value * fees.transfer) / 100;
feesDistribution = transferFeesDistribution;
}
uint256 receivedValue = _value - feeValue;
balances[_to] += receivedValue;
emit Transfer(_from, _to, receivedValue);
// REWARDS POOL
uint256 rewardsFee = (feeValue * feesDistribution[0]) / 100;
feesCounter[0] += rewardsFee;
balances[feesReceivers[0]] += rewardsFee;
emit Transfer(_from, feesReceivers[0], rewardsFee);
// LIQUIDITY AND GROWTH
for (uint8 i = 1; i < 3; i++) {
feesCounter[i] += (feeValue * feesDistribution[i]) / 100;
}
balances[address(this)] += feeValue - rewardsFee;
emit Transfer(_from, address(this), feeValue - rewardsFee);
feesCounter[3] += feeValue - rewardsFee;
}
function _executeSwaps() private inSwapLock {
uint256 toLiq = feesCounter[1];
uint256 toGrowth = feesCounter[2];
uint256 total = feesCounter[3];
uint256 tokenToKeepForLiq = (toLiq / 2);
uint256 tokenToSwap = total - tokenToKeepForLiq;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = ROUTER.WETH();
ROUTER.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenToSwap,
0,
path,
address(this),
block.timestamp
);
uint256 bnbBalance = payable(address(this)).balance;
if (tokenToKeepForLiq > 0) {
ROUTER.addLiquidityETH{
value: (bnbBalance * tokenToKeepForLiq) / total
}(
address(this),
tokenToKeepForLiq,
0,
0,
feesReceivers[1],
block.timestamp
);
}
(bool success, ) = payable(feesReceivers[1]).call{
value: payable(address(this)).balance
}(new bytes(0));
require(success, "EXECSWAP: ETH_TRANSFER_FAILED");
feesCounter[1] = 0;
feesCounter[2] = 0;
feesCounter[3] = 0;
}
function _executeTransfer(
address _from,
address _to,
uint256 _value
) private {
if (isExcludedFromFee[_from] || isExcludedFromFee[_to])
_transferExcluded(_from, _to, _value);
else _transferNoneExcluded(_from, _to, _value);
}
function _transfer(address _from, address _to, uint256 _value) private {
require(
_from != address(0),
"TRANSFER: Transfer from the dead address"
);
require(_to != address(0), "TRANSFER: Transfer to the dead address");
require(_value > 0, "TRANSFER: Invalid amount");
require(isBlacklisted[_from] == false, "TRANSFER: isBlacklisted");
require(balances[_from] >= _value, "TRANSFER: Insufficient balance");
_executeTransfer(_from, _to, _value);
}
function transfer(
address _to,
uint256 _value
) public override returns (bool success) {
_transfer(_msgSender(), _to, _value);
return true;
}
function transferFrom(
address _from,
address _to,
uint256 _value
) public override returns (bool success) {
if (allowances[_from][_msgSender()] < type(uint256).max) {
allowances[_from][_msgSender()] -= _value;
}
_transfer(_from, _to, _value);
return true;
}
function balanceOf(
address _owner
) public view override returns (uint256 balance) {
return balances[_owner];
}
function approve(
address _spender,
uint256 _value
) public override returns (bool success) {
_approve(_msgSender(), _spender, _value);
return true;
}
function _approve(
address _sender,
address _spender,
uint256 _value
) private returns (bool success) {
allowances[_sender][_spender] = _value;
emit Approval(_sender, _spender, _value);
return true;
}
function allowance(
address _owner,
address _spender
) public view override returns (uint256 remaining) {
return allowances[_owner][_spender];
}
/***********************************|
| Owner Functions |
|__________________________________*/
function setRouter(address router) public onlyOwner {
ROUTER = PLSRouter(router);
_approve(address(this), router, type(uint256).max);
IERC20Upgradeable(ROUTER.WPLS()).approve(router, type(uint256).max);
}
function setIsBlacklisted(address user, bool value) public onlyOwner {
isBlacklisted[user] = value;
}
function setIsExcludedFromFee(address user, bool value) public onlyOwner {
isExcludedFromFee[user] = value;
}
function setIsLiquidityPair(address user, bool value) public onlyOwner {
isLiquidityPair[user] = value;
}
function approveOnRouter() public onlyOwner {
_approve(address(this), address(ROUTER), type(uint256).max);
}
function setFees(
uint8 buy_,
uint8 sale_,
uint8 transfer_
) public onlyOwner {
fees = Fees({buy: buy_, sale: sale_, transfer: transfer_});
}
function setFeesReceivers(address[2] memory value) public onlyOwner {
feesReceivers = value;
}
function setBuyFeesDistribution(uint8[3] memory value) public onlyOwner {
uint16 total = 0;
for (uint8 i = 0; i < value.length; i++) {
total += i;
}
require(total == 100, "SET_BUY_FEES_DISTRIBUTION: Invalid value");
buyFeesDistribution = value;
}
function setSaleFeesDistribution(uint8[3] memory value) public onlyOwner {
uint16 total = 0;
for (uint8 i = 0; i < value.length; i++) {
total += i;
}
require(total == 100, "SET_SALE_FEES_DISTRIBUTION: Invalid value");
saleFeesDistribution = value;
}
function setTransferFeesDistribution(
uint8[3] memory value
) public onlyOwner {
uint16 total = 0;
for (uint8 i = 0; i < value.length; i++) {
total += i;
}
require(total == 100, "SET_TRANSFER_FEES_DISTRIBUTION: Invalid value");
transferFeesDistribution = value;
}
function setSwapThreshold(uint256 value) public onlyOwner {
swapThreshold = value;
}
function setExecuteSwapsActive(bool value) public onlyOwner {
executeSwapsActive = value;
}
function withdrawTokens() public onlyOwner {
_transferExcluded(address(this), owner(), balanceOf(address(this)));
}
receive() external payable {}
fallback() external payable {}
uint256[49] private __gap;
}
@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/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 onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
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 {
_transferOwnership(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");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}
@openzeppelin/contracts-upgradeable/interfaces/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)
pragma solidity ^0.8.0;
import "../token/ERC20/IERC20Upgradeable.sol";
@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../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 proxied contracts do not make use of 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.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* 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 {ERC1967Proxy-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.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized < type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}
@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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");
(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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.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 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 onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}
@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol
pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract PLSRouter"}],"name":"ROUTER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"remaining","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"_owner","internalType":"address"},{"type":"address","name":"_spender","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowances","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"_spender","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approveOnRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"balance","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balances","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"executeSwapsActive","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"buy","internalType":"uint8"},{"type":"uint8","name":"sale","internalType":"uint8"},{"type":"uint8","name":"transfer","internalType":"uint8"}],"name":"fees","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feesCounter","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feesReceivers","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"inSwap","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"uint256","name":"_initialAmount","internalType":"uint256"},{"type":"string","name":"_tokenName","internalType":"string"},{"type":"uint8","name":"_decimalUnits","internalType":"uint8"},{"type":"string","name":"_tokenSymbol","internalType":"string"},{"type":"address","name":"_rewards","internalType":"address"},{"type":"address","name":"_growth","internalType":"address"},{"type":"address","name":"router","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isBlacklisted","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromFee","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isLiquidityPair","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyFeesDistribution","inputs":[{"type":"uint8[3]","name":"value","internalType":"uint8[3]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExecuteSwapsActive","inputs":[{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint8","name":"buy_","internalType":"uint8"},{"type":"uint8","name":"sale_","internalType":"uint8"},{"type":"uint8","name":"transfer_","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeesReceivers","inputs":[{"type":"address[2]","name":"value","internalType":"address[2]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setIsBlacklisted","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setIsExcludedFromFee","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setIsLiquidityPair","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRouter","inputs":[{"type":"address","name":"router","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSaleFeesDistribution","inputs":[{"type":"uint8[3]","name":"value","internalType":"uint8[3]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapThreshold","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTransferFeesDistribution","inputs":[{"type":"uint8[3]","name":"value","internalType":"uint8[3]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawTokens","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"ExecSwap","inputs":[{"type":"uint256","name":"toLiq","indexed":false},{"type":"uint256","name":"toGrowth","indexed":false},{"type":"uint256","name":"total","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"receive"},{"type":"fallback"}]
Contract Creation Code
0x608060405234801561001057600080fd5b506127f6806100206000396000f3fe6080604052600436106102115760003560e01c8063890b2da311610117578063a9059cbb116100a5578063e8f02b491161006c578063e8f02b49146106ee578063ef422a181461070e578063f2fde38b1461072e578063f6794fdb1461074e578063fe575a871461076e57005b8063a9059cbb14610627578063afbcbbab14610647578063c0d7865514610667578063d830678614610687578063dd62ed3e146106a857005b806395d89b41116100e957806395d89b411461056c5780639af1d35a146105815780639b247380146105d25780639d0014b1146105e7578063a0e384921461060757005b8063890b2da3146104f95780638d8f2adb146105195780638da5cb5b1461052e57806390010d7f1461054c57005b80635342acb41161019f57806365a807df1161016657806365a807df1461044e57806366e5929c1461046e57806370a082311461048e578063715018a6146104c45780637b6f7bfe146104d957005b80635342acb41461037c57806355b6ed5c146103ac5780635c38693d146103e45780635c9a05b8146103fe5780635cfd5d691461042e57005b806323b872dd116101e357806323b872dd146102ab57806327e235e3146102cb578063313ce567146102f857806332fe7b261461032457806340ea75c21461035c57005b80630445b6671461021a57806306fdde0314610243578063095ea7b31461026557806318160ddd1461029557005b3661021857005b005b34801561022657600080fd5b5061023060725481565b6040519081526020015b60405180910390f35b34801561024f57600080fd5b5061025861079e565b60405161023a9190612011565b34801561027157600080fd5b50610285610280366004612059565b61082c565b604051901515815260200161023a565b3480156102a157600080fd5b5061023060655481565b3480156102b757600080fd5b506102856102c6366004612085565b610845565b3480156102d757600080fd5b506102306102e63660046120c6565b60756020526000908152604090205481565b34801561030457600080fd5b506067546103129060ff1681565b60405160ff909116815260200161023a565b34801561033057600080fd5b50607a54610344906001600160a01b031681565b6040516001600160a01b03909116815260200161023a565b34801561036857600080fd5b506102306103773660046120ea565b6108c0565b34801561038857600080fd5b506102856103973660046120c6565b60796020526000908152604090205460ff1681565b3480156103b857600080fd5b506102306103c7366004612103565b607660209081526000928352604080842090915290825290205481565b3480156103f057600080fd5b506073546102859060ff1681565b34801561040a57600080fd5b506102856104193660046120c6565b60776020526000908152604090205460ff1681565b34801561043a57600080fd5b5061021861044936600461214a565b6108d7565b34801561045a57600080fd5b50610218610469366004612178565b61090a565b34801561047a57600080fd5b506102186104893660046121c1565b610925565b34801561049a57600080fd5b506102306104a93660046120c6565b6001600160a01b031660009081526075602052604090205490565b3480156104d057600080fd5b506102186109dc565b3480156104e557600080fd5b506102186104f43660046121c1565b6109f0565b34801561050557600080fd5b506102186105143660046122d3565b610a9c565b34801561052557600080fd5b50610218610f2e565b34801561053a57600080fd5b506033546001600160a01b0316610344565b34801561055857600080fd5b5061021861056736600461238b565b610f61565b34801561057857600080fd5b50610258610f7a565b34801561058d57600080fd5b506074546105ae9060ff808216916101008104821691620100009091041683565b6040805160ff9485168152928416602084015292169181019190915260600161023a565b3480156105de57600080fd5b50610218610f87565b3480156105f357600080fd5b506102186106023660046120ea565b610fac565b34801561061357600080fd5b5061021861062236600461214a565b610fb9565b34801561063357600080fd5b50610285610642366004612059565b610fec565b34801561065357600080fd5b506102186106623660046121c1565b611002565b34801561067357600080fd5b506102186106823660046120c6565b6110b3565b34801561069357600080fd5b50607a5461028590600160a01b900460ff1681565b3480156106b457600080fd5b506102306106c3366004612103565b6001600160a01b03918216600090815260766020908152604080832093909416825291909152205490565b3480156106fa57600080fd5b506103446107093660046120ea565b6111d1565b34801561071a57600080fd5b5061021861072936600461214a565b6111f1565b34801561073a57600080fd5b506102186107493660046120c6565b611224565b34801561075a57600080fd5b50610218610769366004612409565b61129a565b34801561077a57600080fd5b506102856107893660046120c6565b60786020526000908152604090205460ff1681565b606680546107ab9061244c565b80601f01602080910402602001604051908101604052809291908181526020018280546107d79061244c565b80156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b505050505081565b60006108393384846112ef565b50600190505b92915050565b6001600160a01b038316600090815260766020908152604080832033845290915281205460001911156108ab576001600160a01b0384166000908152607660209081526040808320338452909152812080548492906108a590849061249c565b90915550505b6108b6848484611357565b5060019392505050565b606e81600481106108d057600080fd5b0154905081565b6108df61154f565b6001600160a01b03919091166000908152607760205260409020805460ff1916911515919091179055565b61091261154f565b6073805460ff1916911515919091179055565b61092d61154f565b6000805b60038160ff16101561095e5761094a60ff8216836124af565b915080610956816124d1565b915050610931565b508061ffff166064146109ca5760405162461bcd60e51b815260206004820152602960248201527f5345545f53414c455f464545535f444953545249425554494f4e3a20496e76616044820152686c69642076616c756560b81b60648201526084015b60405180910390fd5b6109d7606c836003611eac565b505050565b6109e461154f565b6109ee60006115a9565b565b6109f861154f565b6000805b60038160ff161015610a2957610a1560ff8216836124af565b915080610a21816124d1565b9150506109fc565b508061ffff16606414610a8f5760405162461bcd60e51b815260206004820152602860248201527f5345545f4255595f464545535f444953545249425554494f4e3a20496e76616c60448201526769642076616c756560c01b60648201526084016109c1565b6109d7606b836003611eac565b600054610100900460ff1615808015610abc5750600054600160ff909116105b80610ad65750303b158015610ad6575060005460ff166001145b610b395760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109c1565b6000805460ff191660011790558015610b5c576000805461ff0019166101001790555b610b646115fb565b607a80546001600160a01b0319166001600160a01b038416179055610b8c30836000196112ef565b50607a60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0491906124f0565b60405163095ea7b360e01b81526001600160a01b0384811660048301526000196024830152919091169063095ea7b3906044016020604051808303816000875af1158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7a919061250d565b5033600090815260756020526040902088905560658890556066610c9e8882612578565b506067805460ff191660ff88161790556068610cba8682612578565b503060009081526079602081905260408220805460ff1916600190811790915591610ce23390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790558882168152607990935281832080548516600190811790915587821684528284208054861682179055908616835291208054909216179055610d4f3390565b6001600160a01b031660006001600160a01b03166000805160206127a18339815191528a604051610d8291815260200190565b60405180910390a360405133906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360408051606081018252600a8082526020808301829052918301526074805462ffffff1916620a0a0a17905581518083019092526001600160a01b038681168352851690820152610e0c906069906002611f3f565b506040805160608101825260008082526020820152606491810191909152610e3890606b906003611eac565b506040805160608101825260008082526020820152606491810191909152610e6490606c906003611eac565b506040805160608101825260328082526020820152600091810191909152610e9090606d906003611eac565b50604080516080810182526000808252602082018190529181018290526060810191909152610ec390606e906004611f87565b5068056bc75e2d631000006072556073805460ff191660011790558015610f24576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b610f3661154f565b6109ee30610f4c6033546001600160a01b031690565b3060009081526075602052604090205461162a565b610f6961154f565b610f766069826002611f3f565b5050565b606880546107ab9061244c565b610f8f61154f565b607a54610fa99030906001600160a01b03166000196112ef565b50565b610fb461154f565b607255565b610fc161154f565b6001600160a01b03919091166000908152607860205260409020805460ff1916911515919091179055565b6000610ff9338484611357565b50600192915050565b61100a61154f565b6000805b60038160ff16101561103b5761102760ff8216836124af565b915080611033816124d1565b91505061100e565b508061ffff166064146110a65760405162461bcd60e51b815260206004820152602d60248201527f5345545f5452414e534645525f464545535f444953545249425554494f4e3a2060448201526c496e76616c69642076616c756560981b60648201526084016109c1565b6109d7606d836003611eac565b6110bb61154f565b607a80546001600160a01b0319166001600160a01b0383161790556110e330826000196112ef565b50607a60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115b91906124f0565b60405163095ea7b360e01b81526001600160a01b0383811660048301526000196024830152919091169063095ea7b3906044016020604051808303816000875af11580156111ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f76919061250d565b606981600281106111e157600080fd5b01546001600160a01b0316905081565b6111f961154f565b6001600160a01b03919091166000908152607960205260409020805460ff1916911515919091179055565b61122c61154f565b6001600160a01b0381166112915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c1565b610fa9816115a9565b6112a261154f565b6040805160608101825260ff948516808252938516602082018190529290941693018390526074805461ffff19169092176101009091021762ff0000191662010000909202919091179055565b6001600160a01b03838116600081815260766020908152604080832094871680845294825280832086905551858152919392917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6001600160a01b0383166113be5760405162461bcd60e51b815260206004820152602860248201527f5452414e534645523a205472616e736665722066726f6d207468652064656164604482015267206164647265737360c01b60648201526084016109c1565b6001600160a01b0382166114235760405162461bcd60e51b815260206004820152602660248201527f5452414e534645523a205472616e7366657220746f207468652064656164206160448201526564647265737360d01b60648201526084016109c1565b600081116114735760405162461bcd60e51b815260206004820152601860248201527f5452414e534645523a20496e76616c696420616d6f756e74000000000000000060448201526064016109c1565b6001600160a01b03831660009081526078602052604090205460ff16156114dc5760405162461bcd60e51b815260206004820152601760248201527f5452414e534645523a206973426c61636b6c697374656400000000000000000060448201526064016109c1565b6001600160a01b0383166000908152607560205260409020548111156115445760405162461bcd60e51b815260206004820152601e60248201527f5452414e534645523a20496e73756666696369656e742062616c616e6365000060448201526064016109c1565b6109d78383836116c6565b6033546001600160a01b031633146109ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116225760405162461bcd60e51b81526004016109c190612638565b6109ee611720565b6001600160a01b0383166000908152607560205260408120805483929061165290849061249c565b90915550506001600160a01b0382166000908152607560205260408120805483929061167f908490612683565b92505081905550816001600160a01b0316836001600160a01b03166000805160206127a1833981519152836040516116b991815260200190565b60405180910390a3505050565b6001600160a01b03831660009081526079602052604090205460ff168061170557506001600160a01b03821660009081526079602052604090205460ff165b15611715576109d783838361162a565b6109d7838383611750565b600054610100900460ff166117475760405162461bcd60e51b81526004016109c190612638565b6109ee336115a9565b60725460715410801590611766575060735460ff165b801561178b57506001600160a01b03831660009081526077602052604090205460ff16155b80156117a15750607a54600160a01b900460ff16155b156117ae576117ae611b8e565b6001600160a01b038316600090815260756020526040812080548392906117d690849061249c565b90915550600090506117e6611fba565b6001600160a01b03851660009081526077602052604090205460ff16156118785760745460649061181a9060ff16856126ac565b61182491906126c3565b604080516060810191829052919350606b90600390826000855b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161183e57905050505050509050611967565b6001600160a01b03841660009081526077602052604090205460ff16156118f4576074546064906118b190610100900460ff16856126ac565b6118bb91906126c3565b604080516060810191829052606c805460ff16825292945091906003908260016020860180841161183e57905050505050509050611967565b60745460649061190d9062010000900460ff16856126ac565b61191791906126c3565b604080516060810191829052919350606d90600390826000855b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611931579050505050505090505b6000611973838561249c565b6001600160a01b0386166000908152607560205260408120805492935083929091906119a0908490612683565b92505081905550846001600160a01b0316866001600160a01b03166000805160206127a1833981519152836040516119da91815260200190565b60405180910390a381516000906064906119f79060ff16866126ac565b611a0191906126c3565b905080606e6000016000828254611a189190612683565b90915550506069546001600160a01b031660009081526075602052604081208054839290611a47908490612683565b90915550506069546040518281526001600160a01b03918216918916906000805160206127a18339815191529060200160405180910390a360015b60038160ff161015611aff576064848260ff1660038110611aa557611aa5612696565b6020020151611ab79060ff16876126ac565b611ac191906126c3565b606e8260ff1660048110611ad757611ad7612696565b016000828254611ae79190612683565b90915550819050611af7816124d1565b915050611a82565b50611b0a818561249c565b3060009081526075602052604081208054909190611b29908490612683565b909155503090506001600160a01b0388166000805160206127a1833981519152611b53848861249c565b60405190815260200160405180910390a3611b6e818561249c565b60718054600090611b80908490612683565b909155505050505050505050565b607a805460ff60a01b1916600160a01b179055606f546070546071546000611bb76002856126c3565b90506000611bc5828461249c565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110611bff57611bff612696565b6001600160a01b03928316602091820292909201810191909152607a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7c91906124f0565b81600181518110611c8f57611c8f612696565b6001600160a01b039283166020918202929092010152607a5460405163791ac94760e01b815291169063791ac94790611cd59085906000908690309042906004016126e5565b600060405180830381600087803b158015611cef57600080fd5b505af1158015611d03573d6000803e3d6000fd5b505030319150508315611dc857607a546001600160a01b031663f305d71986611d2c87856126ac565b611d3691906126c3565b606a546040516001600160e01b031960e085901b1681523060048201526024810189905260006044820181905260648201526001600160a01b0390911660848201524260a482015260c40160606040518083038185885af1158015611d9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611dc49190612756565b5050505b606a546040805160008082526020820192839052926001600160a01b031691303191611df391612784565b60006040518083038185875af1925050503d8060008114611e30576040519150601f19603f3d011682016040523d82523d6000602084013e611e35565b606091505b5050905080611e865760405162461bcd60e51b815260206004820152601d60248201527f45584543535741503a204554485f5452414e534645525f4641494c454400000060448201526064016109c1565b50506000606f81905560708190556071555050607a805460ff60a01b1916905550505050565b600183019183908215611f2f5791602002820160005b83821115611f0057835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302611ec2565b8015611f2d5782816101000a81549060ff0219169055600101602081600001049283019260010302611f00565b505b50611f3b929150611fd8565b5090565b8260028101928215611f2f579160200282015b82811115611f2f57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611f52565b8260048101928215611f2f579160200282015b82811115611f2f578251829060ff16905591602001919060010190611f9a565b60405180606001604052806003906020820280368337509192915050565b5b80821115611f3b5760008155600101611fd9565b60005b83811015612008578181015183820152602001611ff0565b50506000910152565b6020815260008251806020840152612030816040850160208701611fed565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610fa957600080fd5b6000806040838503121561206c57600080fd5b823561207781612044565b946020939093013593505050565b60008060006060848603121561209a57600080fd5b83356120a581612044565b925060208401356120b581612044565b929592945050506040919091013590565b6000602082840312156120d857600080fd5b81356120e381612044565b9392505050565b6000602082840312156120fc57600080fd5b5035919050565b6000806040838503121561211657600080fd5b823561212181612044565b9150602083013561213181612044565b809150509250929050565b8015158114610fa957600080fd5b6000806040838503121561215d57600080fd5b823561216881612044565b915060208301356121318161213c565b60006020828403121561218a57600080fd5b81356120e38161213c565b634e487b7160e01b600052604160045260246000fd5b803560ff811681146121bc57600080fd5b919050565b6000606082840312156121d357600080fd5b82601f8301126121e257600080fd5b6040516060810181811067ffffffffffffffff8211171561220557612205612195565b60405280606084018581111561221a57600080fd5b845b8181101561223b5761222d816121ab565b83526020928301920161221c565b509195945050505050565b600082601f83011261225757600080fd5b813567ffffffffffffffff8082111561227257612272612195565b604051601f8301601f19908116603f0116810190828211818310171561229a5761229a612195565b816040528381528660208588010111156122b357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a0312156122ee57600080fd5b87359650602088013567ffffffffffffffff8082111561230d57600080fd5b6123198b838c01612246565b975061232760408b016121ab565b965060608a013591508082111561233d57600080fd5b5061234a8a828b01612246565b945050608088013561235b81612044565b925060a088013561236b81612044565b915060c088013561237b81612044565b8091505092959891949750929550565b60006040828403121561239d57600080fd5b82601f8301126123ac57600080fd5b6040516040810181811067ffffffffffffffff821117156123cf576123cf612195565b80604052508060408401858111156123e657600080fd5b845b8181101561223b5780356123fb81612044565b8352602092830192016123e8565b60008060006060848603121561241e57600080fd5b612427846121ab565b9250612435602085016121ab565b9150612443604085016121ab565b90509250925092565b600181811c9082168061246057607f821691505b60208210810361248057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561083f5761083f612486565b61ffff8181168382160190808211156124ca576124ca612486565b5092915050565b600060ff821660ff81036124e7576124e7612486565b60010192915050565b60006020828403121561250257600080fd5b81516120e381612044565b60006020828403121561251f57600080fd5b81516120e38161213c565b601f8211156109d757600081815260208120601f850160051c810160208610156125515750805b601f850160051c820191505b818110156125705782815560010161255d565b505050505050565b815167ffffffffffffffff81111561259257612592612195565b6125a6816125a0845461244c565b8461252a565b602080601f8311600181146125db57600084156125c35750858301515b600019600386901b1c1916600185901b178555612570565b600085815260208120601f198616915b8281101561260a578886015182559484019460019091019084016125eb565b50858210156126285787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b8082018082111561083f5761083f612486565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761083f5761083f612486565b6000826126e057634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156127355784516001600160a01b031683529383019391830191600101612710565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561276b57600080fd5b8351925060208401519150604084015190509250925092565b60008251612796818460208701611fed565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122028ecf9a5ca15acd643a223f321d1eb17869b4b0ae73cb499a9b9b65eb850da7564736f6c63430008110033
Deployed ByteCode
0x6080604052600436106102115760003560e01c8063890b2da311610117578063a9059cbb116100a5578063e8f02b491161006c578063e8f02b49146106ee578063ef422a181461070e578063f2fde38b1461072e578063f6794fdb1461074e578063fe575a871461076e57005b8063a9059cbb14610627578063afbcbbab14610647578063c0d7865514610667578063d830678614610687578063dd62ed3e146106a857005b806395d89b41116100e957806395d89b411461056c5780639af1d35a146105815780639b247380146105d25780639d0014b1146105e7578063a0e384921461060757005b8063890b2da3146104f95780638d8f2adb146105195780638da5cb5b1461052e57806390010d7f1461054c57005b80635342acb41161019f57806365a807df1161016657806365a807df1461044e57806366e5929c1461046e57806370a082311461048e578063715018a6146104c45780637b6f7bfe146104d957005b80635342acb41461037c57806355b6ed5c146103ac5780635c38693d146103e45780635c9a05b8146103fe5780635cfd5d691461042e57005b806323b872dd116101e357806323b872dd146102ab57806327e235e3146102cb578063313ce567146102f857806332fe7b261461032457806340ea75c21461035c57005b80630445b6671461021a57806306fdde0314610243578063095ea7b31461026557806318160ddd1461029557005b3661021857005b005b34801561022657600080fd5b5061023060725481565b6040519081526020015b60405180910390f35b34801561024f57600080fd5b5061025861079e565b60405161023a9190612011565b34801561027157600080fd5b50610285610280366004612059565b61082c565b604051901515815260200161023a565b3480156102a157600080fd5b5061023060655481565b3480156102b757600080fd5b506102856102c6366004612085565b610845565b3480156102d757600080fd5b506102306102e63660046120c6565b60756020526000908152604090205481565b34801561030457600080fd5b506067546103129060ff1681565b60405160ff909116815260200161023a565b34801561033057600080fd5b50607a54610344906001600160a01b031681565b6040516001600160a01b03909116815260200161023a565b34801561036857600080fd5b506102306103773660046120ea565b6108c0565b34801561038857600080fd5b506102856103973660046120c6565b60796020526000908152604090205460ff1681565b3480156103b857600080fd5b506102306103c7366004612103565b607660209081526000928352604080842090915290825290205481565b3480156103f057600080fd5b506073546102859060ff1681565b34801561040a57600080fd5b506102856104193660046120c6565b60776020526000908152604090205460ff1681565b34801561043a57600080fd5b5061021861044936600461214a565b6108d7565b34801561045a57600080fd5b50610218610469366004612178565b61090a565b34801561047a57600080fd5b506102186104893660046121c1565b610925565b34801561049a57600080fd5b506102306104a93660046120c6565b6001600160a01b031660009081526075602052604090205490565b3480156104d057600080fd5b506102186109dc565b3480156104e557600080fd5b506102186104f43660046121c1565b6109f0565b34801561050557600080fd5b506102186105143660046122d3565b610a9c565b34801561052557600080fd5b50610218610f2e565b34801561053a57600080fd5b506033546001600160a01b0316610344565b34801561055857600080fd5b5061021861056736600461238b565b610f61565b34801561057857600080fd5b50610258610f7a565b34801561058d57600080fd5b506074546105ae9060ff808216916101008104821691620100009091041683565b6040805160ff9485168152928416602084015292169181019190915260600161023a565b3480156105de57600080fd5b50610218610f87565b3480156105f357600080fd5b506102186106023660046120ea565b610fac565b34801561061357600080fd5b5061021861062236600461214a565b610fb9565b34801561063357600080fd5b50610285610642366004612059565b610fec565b34801561065357600080fd5b506102186106623660046121c1565b611002565b34801561067357600080fd5b506102186106823660046120c6565b6110b3565b34801561069357600080fd5b50607a5461028590600160a01b900460ff1681565b3480156106b457600080fd5b506102306106c3366004612103565b6001600160a01b03918216600090815260766020908152604080832093909416825291909152205490565b3480156106fa57600080fd5b506103446107093660046120ea565b6111d1565b34801561071a57600080fd5b5061021861072936600461214a565b6111f1565b34801561073a57600080fd5b506102186107493660046120c6565b611224565b34801561075a57600080fd5b50610218610769366004612409565b61129a565b34801561077a57600080fd5b506102856107893660046120c6565b60786020526000908152604090205460ff1681565b606680546107ab9061244c565b80601f01602080910402602001604051908101604052809291908181526020018280546107d79061244c565b80156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b505050505081565b60006108393384846112ef565b50600190505b92915050565b6001600160a01b038316600090815260766020908152604080832033845290915281205460001911156108ab576001600160a01b0384166000908152607660209081526040808320338452909152812080548492906108a590849061249c565b90915550505b6108b6848484611357565b5060019392505050565b606e81600481106108d057600080fd5b0154905081565b6108df61154f565b6001600160a01b03919091166000908152607760205260409020805460ff1916911515919091179055565b61091261154f565b6073805460ff1916911515919091179055565b61092d61154f565b6000805b60038160ff16101561095e5761094a60ff8216836124af565b915080610956816124d1565b915050610931565b508061ffff166064146109ca5760405162461bcd60e51b815260206004820152602960248201527f5345545f53414c455f464545535f444953545249425554494f4e3a20496e76616044820152686c69642076616c756560b81b60648201526084015b60405180910390fd5b6109d7606c836003611eac565b505050565b6109e461154f565b6109ee60006115a9565b565b6109f861154f565b6000805b60038160ff161015610a2957610a1560ff8216836124af565b915080610a21816124d1565b9150506109fc565b508061ffff16606414610a8f5760405162461bcd60e51b815260206004820152602860248201527f5345545f4255595f464545535f444953545249425554494f4e3a20496e76616c60448201526769642076616c756560c01b60648201526084016109c1565b6109d7606b836003611eac565b600054610100900460ff1615808015610abc5750600054600160ff909116105b80610ad65750303b158015610ad6575060005460ff166001145b610b395760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109c1565b6000805460ff191660011790558015610b5c576000805461ff0019166101001790555b610b646115fb565b607a80546001600160a01b0319166001600160a01b038416179055610b8c30836000196112ef565b50607a60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0491906124f0565b60405163095ea7b360e01b81526001600160a01b0384811660048301526000196024830152919091169063095ea7b3906044016020604051808303816000875af1158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7a919061250d565b5033600090815260756020526040902088905560658890556066610c9e8882612578565b506067805460ff191660ff88161790556068610cba8682612578565b503060009081526079602081905260408220805460ff1916600190811790915591610ce23390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790558882168152607990935281832080548516600190811790915587821684528284208054861682179055908616835291208054909216179055610d4f3390565b6001600160a01b031660006001600160a01b03166000805160206127a18339815191528a604051610d8291815260200190565b60405180910390a360405133906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360408051606081018252600a8082526020808301829052918301526074805462ffffff1916620a0a0a17905581518083019092526001600160a01b038681168352851690820152610e0c906069906002611f3f565b506040805160608101825260008082526020820152606491810191909152610e3890606b906003611eac565b506040805160608101825260008082526020820152606491810191909152610e6490606c906003611eac565b506040805160608101825260328082526020820152600091810191909152610e9090606d906003611eac565b50604080516080810182526000808252602082018190529181018290526060810191909152610ec390606e906004611f87565b5068056bc75e2d631000006072556073805460ff191660011790558015610f24576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b610f3661154f565b6109ee30610f4c6033546001600160a01b031690565b3060009081526075602052604090205461162a565b610f6961154f565b610f766069826002611f3f565b5050565b606880546107ab9061244c565b610f8f61154f565b607a54610fa99030906001600160a01b03166000196112ef565b50565b610fb461154f565b607255565b610fc161154f565b6001600160a01b03919091166000908152607860205260409020805460ff1916911515919091179055565b6000610ff9338484611357565b50600192915050565b61100a61154f565b6000805b60038160ff16101561103b5761102760ff8216836124af565b915080611033816124d1565b91505061100e565b508061ffff166064146110a65760405162461bcd60e51b815260206004820152602d60248201527f5345545f5452414e534645525f464545535f444953545249425554494f4e3a2060448201526c496e76616c69642076616c756560981b60648201526084016109c1565b6109d7606d836003611eac565b6110bb61154f565b607a80546001600160a01b0319166001600160a01b0383161790556110e330826000196112ef565b50607a60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115b91906124f0565b60405163095ea7b360e01b81526001600160a01b0383811660048301526000196024830152919091169063095ea7b3906044016020604051808303816000875af11580156111ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f76919061250d565b606981600281106111e157600080fd5b01546001600160a01b0316905081565b6111f961154f565b6001600160a01b03919091166000908152607960205260409020805460ff1916911515919091179055565b61122c61154f565b6001600160a01b0381166112915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c1565b610fa9816115a9565b6112a261154f565b6040805160608101825260ff948516808252938516602082018190529290941693018390526074805461ffff19169092176101009091021762ff0000191662010000909202919091179055565b6001600160a01b03838116600081815260766020908152604080832094871680845294825280832086905551858152919392917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6001600160a01b0383166113be5760405162461bcd60e51b815260206004820152602860248201527f5452414e534645523a205472616e736665722066726f6d207468652064656164604482015267206164647265737360c01b60648201526084016109c1565b6001600160a01b0382166114235760405162461bcd60e51b815260206004820152602660248201527f5452414e534645523a205472616e7366657220746f207468652064656164206160448201526564647265737360d01b60648201526084016109c1565b600081116114735760405162461bcd60e51b815260206004820152601860248201527f5452414e534645523a20496e76616c696420616d6f756e74000000000000000060448201526064016109c1565b6001600160a01b03831660009081526078602052604090205460ff16156114dc5760405162461bcd60e51b815260206004820152601760248201527f5452414e534645523a206973426c61636b6c697374656400000000000000000060448201526064016109c1565b6001600160a01b0383166000908152607560205260409020548111156115445760405162461bcd60e51b815260206004820152601e60248201527f5452414e534645523a20496e73756666696369656e742062616c616e6365000060448201526064016109c1565b6109d78383836116c6565b6033546001600160a01b031633146109ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116225760405162461bcd60e51b81526004016109c190612638565b6109ee611720565b6001600160a01b0383166000908152607560205260408120805483929061165290849061249c565b90915550506001600160a01b0382166000908152607560205260408120805483929061167f908490612683565b92505081905550816001600160a01b0316836001600160a01b03166000805160206127a1833981519152836040516116b991815260200190565b60405180910390a3505050565b6001600160a01b03831660009081526079602052604090205460ff168061170557506001600160a01b03821660009081526079602052604090205460ff165b15611715576109d783838361162a565b6109d7838383611750565b600054610100900460ff166117475760405162461bcd60e51b81526004016109c190612638565b6109ee336115a9565b60725460715410801590611766575060735460ff165b801561178b57506001600160a01b03831660009081526077602052604090205460ff16155b80156117a15750607a54600160a01b900460ff16155b156117ae576117ae611b8e565b6001600160a01b038316600090815260756020526040812080548392906117d690849061249c565b90915550600090506117e6611fba565b6001600160a01b03851660009081526077602052604090205460ff16156118785760745460649061181a9060ff16856126ac565b61182491906126c3565b604080516060810191829052919350606b90600390826000855b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161183e57905050505050509050611967565b6001600160a01b03841660009081526077602052604090205460ff16156118f4576074546064906118b190610100900460ff16856126ac565b6118bb91906126c3565b604080516060810191829052606c805460ff16825292945091906003908260016020860180841161183e57905050505050509050611967565b60745460649061190d9062010000900460ff16856126ac565b61191791906126c3565b604080516060810191829052919350606d90600390826000855b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611931579050505050505090505b6000611973838561249c565b6001600160a01b0386166000908152607560205260408120805492935083929091906119a0908490612683565b92505081905550846001600160a01b0316866001600160a01b03166000805160206127a1833981519152836040516119da91815260200190565b60405180910390a381516000906064906119f79060ff16866126ac565b611a0191906126c3565b905080606e6000016000828254611a189190612683565b90915550506069546001600160a01b031660009081526075602052604081208054839290611a47908490612683565b90915550506069546040518281526001600160a01b03918216918916906000805160206127a18339815191529060200160405180910390a360015b60038160ff161015611aff576064848260ff1660038110611aa557611aa5612696565b6020020151611ab79060ff16876126ac565b611ac191906126c3565b606e8260ff1660048110611ad757611ad7612696565b016000828254611ae79190612683565b90915550819050611af7816124d1565b915050611a82565b50611b0a818561249c565b3060009081526075602052604081208054909190611b29908490612683565b909155503090506001600160a01b0388166000805160206127a1833981519152611b53848861249c565b60405190815260200160405180910390a3611b6e818561249c565b60718054600090611b80908490612683565b909155505050505050505050565b607a805460ff60a01b1916600160a01b179055606f546070546071546000611bb76002856126c3565b90506000611bc5828461249c565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110611bff57611bff612696565b6001600160a01b03928316602091820292909201810191909152607a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7c91906124f0565b81600181518110611c8f57611c8f612696565b6001600160a01b039283166020918202929092010152607a5460405163791ac94760e01b815291169063791ac94790611cd59085906000908690309042906004016126e5565b600060405180830381600087803b158015611cef57600080fd5b505af1158015611d03573d6000803e3d6000fd5b505030319150508315611dc857607a546001600160a01b031663f305d71986611d2c87856126ac565b611d3691906126c3565b606a546040516001600160e01b031960e085901b1681523060048201526024810189905260006044820181905260648201526001600160a01b0390911660848201524260a482015260c40160606040518083038185885af1158015611d9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611dc49190612756565b5050505b606a546040805160008082526020820192839052926001600160a01b031691303191611df391612784565b60006040518083038185875af1925050503d8060008114611e30576040519150601f19603f3d011682016040523d82523d6000602084013e611e35565b606091505b5050905080611e865760405162461bcd60e51b815260206004820152601d60248201527f45584543535741503a204554485f5452414e534645525f4641494c454400000060448201526064016109c1565b50506000606f81905560708190556071555050607a805460ff60a01b1916905550505050565b600183019183908215611f2f5791602002820160005b83821115611f0057835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302611ec2565b8015611f2d5782816101000a81549060ff0219169055600101602081600001049283019260010302611f00565b505b50611f3b929150611fd8565b5090565b8260028101928215611f2f579160200282015b82811115611f2f57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611f52565b8260048101928215611f2f579160200282015b82811115611f2f578251829060ff16905591602001919060010190611f9a565b60405180606001604052806003906020820280368337509192915050565b5b80821115611f3b5760008155600101611fd9565b60005b83811015612008578181015183820152602001611ff0565b50506000910152565b6020815260008251806020840152612030816040850160208701611fed565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610fa957600080fd5b6000806040838503121561206c57600080fd5b823561207781612044565b946020939093013593505050565b60008060006060848603121561209a57600080fd5b83356120a581612044565b925060208401356120b581612044565b929592945050506040919091013590565b6000602082840312156120d857600080fd5b81356120e381612044565b9392505050565b6000602082840312156120fc57600080fd5b5035919050565b6000806040838503121561211657600080fd5b823561212181612044565b9150602083013561213181612044565b809150509250929050565b8015158114610fa957600080fd5b6000806040838503121561215d57600080fd5b823561216881612044565b915060208301356121318161213c565b60006020828403121561218a57600080fd5b81356120e38161213c565b634e487b7160e01b600052604160045260246000fd5b803560ff811681146121bc57600080fd5b919050565b6000606082840312156121d357600080fd5b82601f8301126121e257600080fd5b6040516060810181811067ffffffffffffffff8211171561220557612205612195565b60405280606084018581111561221a57600080fd5b845b8181101561223b5761222d816121ab565b83526020928301920161221c565b509195945050505050565b600082601f83011261225757600080fd5b813567ffffffffffffffff8082111561227257612272612195565b604051601f8301601f19908116603f0116810190828211818310171561229a5761229a612195565b816040528381528660208588010111156122b357600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a0312156122ee57600080fd5b87359650602088013567ffffffffffffffff8082111561230d57600080fd5b6123198b838c01612246565b975061232760408b016121ab565b965060608a013591508082111561233d57600080fd5b5061234a8a828b01612246565b945050608088013561235b81612044565b925060a088013561236b81612044565b915060c088013561237b81612044565b8091505092959891949750929550565b60006040828403121561239d57600080fd5b82601f8301126123ac57600080fd5b6040516040810181811067ffffffffffffffff821117156123cf576123cf612195565b80604052508060408401858111156123e657600080fd5b845b8181101561223b5780356123fb81612044565b8352602092830192016123e8565b60008060006060848603121561241e57600080fd5b612427846121ab565b9250612435602085016121ab565b9150612443604085016121ab565b90509250925092565b600181811c9082168061246057607f821691505b60208210810361248057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561083f5761083f612486565b61ffff8181168382160190808211156124ca576124ca612486565b5092915050565b600060ff821660ff81036124e7576124e7612486565b60010192915050565b60006020828403121561250257600080fd5b81516120e381612044565b60006020828403121561251f57600080fd5b81516120e38161213c565b601f8211156109d757600081815260208120601f850160051c810160208610156125515750805b601f850160051c820191505b818110156125705782815560010161255d565b505050505050565b815167ffffffffffffffff81111561259257612592612195565b6125a6816125a0845461244c565b8461252a565b602080601f8311600181146125db57600084156125c35750858301515b600019600386901b1c1916600185901b178555612570565b600085815260208120601f198616915b8281101561260a578886015182559484019460019091019084016125eb565b50858210156126285787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b8082018082111561083f5761083f612486565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761083f5761083f612486565b6000826126e057634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156127355784516001600160a01b031683529383019391830191600101612710565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561276b57600080fd5b8351925060208401519150604084015190509250925092565b60008251612796818460208701611fed565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122028ecf9a5ca15acd643a223f321d1eb17869b4b0ae73cb499a9b9b65eb850da7564736f6c63430008110033