Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- SecureEnhancedToken
- Optimization enabled
- true
- Compiler version
- v0.8.19+commit.7dd6d404
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2025-05-25T18:41:00.386480Z
Constructor Arguments
0x00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000001966568155858198c12e7af340daf4c3583070f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f70000000000000000000000000000000000000000000000000000000000000006506c6561736500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504c454153450000000000000000000000000000000000000000000000000000
Arg [0] (string) : Please
Arg [1] (string) : PLEASE
Arg [2] (uint8) : 18
Arg [3] (uint256) : 1000000000000000000000000000
Arg [4] (address) : 0x01966568155858198c12e7af340daf4c3583070f
Arg [5] (address) : 0xdae9dd3d1a52cfce9d5f2fac7fde164d500e50f7
Contract source code
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(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);
}
}
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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);
}
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/security/ReentrancyGuard.sol
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.0/contracts/security/Pausable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
// File: contracts/TheArk.sol
pragma solidity ^0.8.19;
interface IPulseXRouter {
function factory() external pure returns (address);
function WPLS() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
interface IPulseXFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
contract SecureEnhancedToken is IERC20, Ownable, ReentrancyGuard, Pausable {
using SafeMath for uint256;
// Events
event SwapAndLiquify(uint256 tokensSwapped, uint256 plsReceived, uint256 tokensIntoLiquidity);
event LPTokensBurned(uint256 amount);
event FeesUpdated(uint256 burnFee, uint256 reflectionFee, uint256 liquidityFee);
event SwapSettingsUpdated(uint256 threshold, uint256 maxAmount);
// Token mappings
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcluded;
address[] private _excluded;
// Fee settings with hard caps
uint256 public burnFee = 3;
uint256 public reflectionFee = 3;
uint256 public liquidityFee = 2;
uint256 public totalFees = 8;
// Maximum fees (cannot be exceeded)
uint256 public constant MAX_BURN_FEE = 3;
uint256 public constant MAX_REFLECTION_FEE = 3;
uint256 public constant MAX_LIQUIDITY_FEE = 2;
uint256 public constant MAX_TOTAL_FEES = 8;
// Dead address for burns
address public constant DEAD_ADDRESS = 0x000000000000000000000000000000000000dEaD;
// PulseX integration
IPulseXRouter public immutable pulseXRouter;
address public immutable pulseXPair;
IERC20 public immutable pulseXLPToken;
// Swap settings
bool private swapping;
bool public swapEnabled = true;
uint256 public swapThreshold;
uint256 public maxSwapAmount;
uint256 public constant MIN_SWAP_THRESHOLD = 1000 * 10**18;
uint256 public constant MAX_SWAP_THRESHOLD = 50000 * 10**18;
// Slippage protection (2% default)
uint256 public slippageTolerance = 200; // 2% = 200 basis points
uint256 public constant MAX_SLIPPAGE = 500; // 5% maximum
// Token balances for fees
uint256 private tokensForLiquidity;
// Reflection variables
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal;
uint256 private _rTotal;
uint256 private _tFeeTotal;
// Token metadata
string private _name;
string private _symbol;
uint8 private _decimals;
// Security modifiers
modifier lockTheSwap {
swapping = true;
_;
swapping = false;
}
modifier validAddress(address addr) {
require(addr != address(0), "Invalid address");
_;
}
modifier validFees(uint256 _burn, uint256 _reflection, uint256 _liquidity) {
require(_burn <= MAX_BURN_FEE, "Burn fee too high");
require(_reflection <= MAX_REFLECTION_FEE, "Reflection fee too high");
require(_liquidity <= MAX_LIQUIDITY_FEE, "Liquidity fee too high");
require(_burn.add(_reflection).add(_liquidity) <= MAX_TOTAL_FEES, "Total fees too high");
_;
}
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 supply_,
address owner_,
address routerAddress_
) validAddress(owner_) validAddress(routerAddress_) {
require(decimals_ >= 8 && decimals_ <= 18, "Invalid decimals");
require(supply_ > 0, "Supply must be greater than 0");
require(supply_ <= 1e30, "Supply too large"); // Max with decimals included
_name = name_;
_symbol = symbol_;
_decimals = decimals_;
_tTotal = supply_; // Supply should already include decimals
_rTotal = (MAX - (MAX % _tTotal));
// Set swap thresholds based on supply
swapThreshold = _tTotal.div(1000); // 0.1% of supply
maxSwapAmount = _tTotal.div(500); // 0.2% of supply
// Ensure thresholds are within bounds
if (swapThreshold < MIN_SWAP_THRESHOLD) swapThreshold = MIN_SWAP_THRESHOLD;
if (swapThreshold > MAX_SWAP_THRESHOLD) swapThreshold = MAX_SWAP_THRESHOLD;
if (maxSwapAmount < swapThreshold) maxSwapAmount = swapThreshold.mul(2);
// Initialize PulseX Router (immutable for security)
pulseXRouter = IPulseXRouter(routerAddress_);
pulseXPair = IPulseXFactory(pulseXRouter.factory())
.createPair(address(this), pulseXRouter.WPLS());
pulseXLPToken = IERC20(pulseXPair);
// Exclude contract and dead address from reflections
_isExcluded[address(this)] = true;
_isExcluded[DEAD_ADDRESS] = true;
_excluded.push(address(this));
_excluded.push(DEAD_ADDRESS);
// Give all tokens to specified owner
_rOwned[owner_] = _rTotal;
// Transfer ownership to specified owner
_transferOwnership(owner_);
emit Transfer(address(0), owner_, _tTotal);
}
// Standard ERC20 functions
function name() public view returns (string memory) { return _name; }
function symbol() public view returns (string memory) { return _symbol; }
function decimals() public view returns (uint8) { return _decimals; }
function totalSupply() public view override returns (uint256) { return _tTotal; }
function balanceOf(address account) public view override returns (uint256) {
if (_isExcluded[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount) public override whenNotPaused returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount)
public override whenNotPaused returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(),
_allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender,
_allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
// Reflection functions
function isExcluded(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFeesCollected() public view returns (uint256) {
return _tFeeTotal;
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount,,,,) = _getValues(tAmount);
return rAmount;
} else {
(,uint256 rTransferAmount,,,) = _getValues(tAmount);
return rTransferAmount;
}
}
// Fee management (direct update)
function updateFees(uint256 _burnFee, uint256 _reflectionFee, uint256 _liquidityFee)
external onlyOwner validFees(_burnFee, _reflectionFee, _liquidityFee) {
burnFee = _burnFee;
reflectionFee = _reflectionFee;
liquidityFee = _liquidityFee;
totalFees = burnFee.add(reflectionFee).add(liquidityFee);
emit FeesUpdated(burnFee, reflectionFee, liquidityFee);
}
// Account management (with restrictions)
function excludeAccount(address account) external onlyOwner validAddress(account) {
require(!_isExcluded[account], "Account already excluded");
require(_excluded.length < 50, "Too many excluded accounts"); // Prevent unbounded gas
require(account != owner(), "Cannot exclude owner");
if(_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeAccount(address account) external onlyOwner {
require(_isExcluded[account], "Account already included");
require(account != address(this) && account != DEAD_ADDRESS, "Cannot include system addresses");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
_excluded[i] = _excluded[_excluded.length - 1];
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded.pop();
break;
}
}
}
// Swap settings management
function updateSwapSettings(uint256 _threshold, uint256 _maxAmount) external onlyOwner {
require(_threshold >= MIN_SWAP_THRESHOLD, "Threshold too low");
require(_threshold <= MAX_SWAP_THRESHOLD, "Threshold too high");
require(_maxAmount >= _threshold, "Max amount must be >= threshold");
require(_maxAmount <= _tTotal.div(100), "Max amount too high"); // Max 1% of supply
swapThreshold = _threshold;
maxSwapAmount = _maxAmount;
emit SwapSettingsUpdated(_threshold, _maxAmount);
}
function setSwapEnabled(bool _enabled) external onlyOwner {
swapEnabled = _enabled;
}
function updateSlippageTolerance(uint256 _slippage) external onlyOwner {
require(_slippage <= MAX_SLIPPAGE, "Slippage too high");
require(_slippage >= 50, "Slippage too low"); // Minimum 0.5%
slippageTolerance = _slippage;
}
// Emergency functions
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
// Manual operations
function manualSwapAndLiquify() external onlyOwner nonReentrant {
require(tokensForLiquidity > 0, "No tokens available");
require(!swapping, "Already swapping");
uint256 amount = tokensForLiquidity > maxSwapAmount ? maxSwapAmount : tokensForLiquidity;
swapAndLiquify(amount);
}
function manualBurnLPTokens() external onlyOwner {
uint256 lpBalance = pulseXLPToken.balanceOf(address(this));
require(lpBalance > 0, "No LP tokens to burn");
require(pulseXLPToken.transfer(DEAD_ADDRESS, lpBalance), "LP burn failed");
emit LPTokensBurned(lpBalance);
}
// Core transfer logic
function _transfer(address sender, address recipient, uint256 amount) private nonReentrant {
require(sender != address(0), "ERC20: transfer from zero address");
require(recipient != address(0), "ERC20: transfer to zero address");
require(amount > 0, "Transfer amount must be greater than zero");
require(amount <= balanceOf(sender), "Transfer amount exceeds balance");
bool takeFee = true;
// Don't take fees from/to excluded accounts or owner
if (_isExcluded[sender] || _isExcluded[recipient] ||
sender == owner() || recipient == owner() || swapping) {
takeFee = false;
}
// Process liquidity if conditions are met
if (!swapping && swapEnabled && sender != pulseXPair &&
takeFee && tokensForLiquidity >= swapThreshold) {
uint256 swapAmount = tokensForLiquidity > maxSwapAmount ?
maxSwapAmount : tokensForLiquidity;
swapAndLiquify(swapAmount);
}
_tokenTransfer(sender, recipient, amount, takeFee);
}
function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee) private {
if (!takeFee) {
_transferWithoutFee(sender, recipient, amount);
return;
}
// Calculate fees
uint256 burnAmount = amount.mul(burnFee).div(100);
uint256 liquidityAmount = amount.mul(liquidityFee).div(100);
uint256 transferAmount = amount.sub(burnAmount).sub(liquidityAmount);
// Handle burn
if (burnAmount > 0) {
_transferWithoutFee(sender, DEAD_ADDRESS, burnAmount);
}
// Handle liquidity fee
if (liquidityAmount > 0) {
_transferWithoutFee(sender, address(this), liquidityAmount);
tokensForLiquidity = tokensForLiquidity.add(liquidityAmount);
}
// Handle main transfer with reflection
_transferWithReflection(sender, recipient, transferAmount);
}
function _transferWithReflection(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee,
uint256 tTransferAmount, uint256 tFee) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
if (_isExcluded[sender]) {
_tOwned[sender] = _tOwned[sender].sub(tAmount);
}
if (_isExcluded[recipient]) {
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
}
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferWithoutFee(address sender, address recipient, uint256 tAmount) private {
uint256 rAmount = tAmount.mul(_getRate());
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rAmount);
if (_isExcluded[sender]) {
_tOwned[sender] = _tOwned[sender].sub(tAmount);
}
if (_isExcluded[recipient]) {
_tOwned[recipient] = _tOwned[recipient].add(tAmount);
}
emit Transfer(sender, recipient, tAmount);
}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee) = _getTValues(tAmount);
uint256 currentRate = _getRate();
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, currentRate);
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256) {
uint256 tFee = tAmount.mul(reflectionFee).div(100);
uint256 tTransferAmount = tAmount.sub(tFee);
return (tTransferAmount, tFee);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 currentRate)
private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) {
return (_rTotal, _tTotal);
}
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
// Swap and liquidity functions with enhanced security
function swapAndLiquify(uint256 amount) private lockTheSwap {
uint256 half = amount.div(2);
uint256 otherHalf = amount.sub(half);
uint256 initialBalance = address(this).balance;
swapTokensForPLS(half);
uint256 plsReceived = address(this).balance.sub(initialBalance);
if (plsReceived > 0) {
addLiquidity(otherHalf, plsReceived);
emit SwapAndLiquify(half, plsReceived, otherHalf);
}
tokensForLiquidity = tokensForLiquidity.sub(amount);
// Auto-burn LP tokens
uint256 lpBalance = pulseXLPToken.balanceOf(address(this));
if (lpBalance > 0) {
require(pulseXLPToken.transfer(DEAD_ADDRESS, lpBalance), "LP burn failed");
emit LPTokensBurned(lpBalance);
}
}
function swapTokensForPLS(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = pulseXRouter.WPLS();
_approve(address(this), address(pulseXRouter), tokenAmount);
// Calculate minimum output with slippage protection
uint256 minOutput = 0; // You may want to implement price oracle for better protection
pulseXRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
minOutput,
path,
address(this),
block.timestamp + 300
);
}
function addLiquidity(uint256 tokenAmount, uint256 plsAmount) private {
_approve(address(this), address(pulseXRouter), tokenAmount);
// Calculate minimum amounts with slippage protection
uint256 tokenMin = tokenAmount.mul(uint256(10000).sub(slippageTolerance)).div(10000);
uint256 plsMin = plsAmount.mul(uint256(10000).sub(slippageTolerance)).div(10000);
pulseXRouter.addLiquidityETH{value: plsAmount}(
address(this),
tokenAmount,
tokenMin,
plsMin,
address(this), // LP tokens to contract for auto-burning
block.timestamp + 300
);
}
function _approve(address owner, address spender, uint256 amount) private {
require(owner != address(0), "ERC20: approve from zero address");
require(spender != address(0), "ERC20: approve to zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
// Receive PLS
receive() external payable {}
// View functions for transparency
function getSwapSettings() external view returns (uint256, uint256, bool) {
return (swapThreshold, maxSwapAmount, swapEnabled);
}
function getTokensForLiquidity() external view returns (uint256) {
return tokensForLiquidity;
}
function getCurrentFees() external view returns (uint256, uint256, uint256, uint256) {
return (burnFee, reflectionFee, liquidityFee, totalFees);
}
function getMaxFees() external pure returns (uint256, uint256, uint256, uint256) {
return (MAX_BURN_FEE, MAX_REFLECTION_FEE, MAX_LIQUIDITY_FEE, MAX_TOTAL_FEES);
}
}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"},{"type":"uint256","name":"supply_","internalType":"uint256"},{"type":"address","name":"owner_","internalType":"address"},{"type":"address","name":"routerAddress_","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FeesUpdated","inputs":[{"type":"uint256","name":"burnFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"reflectionFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"liquidityFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LPTokensBurned","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"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":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"plsReceived","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensIntoLiquidity","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SwapSettingsUpdated","inputs":[{"type":"uint256","name":"threshold","internalType":"uint256","indexed":false},{"type":"uint256","name":"maxAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"DEAD_ADDRESS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_BURN_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_LIQUIDITY_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_REFLECTION_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_SLIPPAGE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_SWAP_THRESHOLD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_TOTAL_FEES","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_SWAP_THRESHOLD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"burnFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentFees","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMaxFees","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bool","name":"","internalType":"bool"}],"name":"getSwapSettings","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTokensForLiquidity","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"includeAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcluded","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"manualBurnLPTokens","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"manualSwapAndLiquify","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxSwapAmount","inputs":[]},{"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":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"pulseXLPToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pulseXPair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IPulseXRouter"}],"name":"pulseXRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reflectionFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reflectionFromToken","inputs":[{"type":"uint256","name":"tAmount","internalType":"uint256"},{"type":"bool","name":"deductTransferFee","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapEnabled","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"slippageTolerance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"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":"tokenFromReflection","inputs":[{"type":"uint256","name":"rAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalFees","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalFeesCollected","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFees","inputs":[{"type":"uint256","name":"_burnFee","internalType":"uint256"},{"type":"uint256","name":"_reflectionFee","internalType":"uint256"},{"type":"uint256","name":"_liquidityFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSlippageTolerance","inputs":[{"type":"uint256","name":"_slippage","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSwapSettings","inputs":[{"type":"uint256","name":"_threshold","internalType":"uint256"},{"type":"uint256","name":"_maxAmount","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x60e0604052600360088181556009919091556002600a55600b55600c805461ff00191661010017905560c8600f553480156200003a57600080fd5b506040516200387a3803806200387a8339810160408190526200005d91620006cc565b620000683362000575565b600180556002805460ff19169055816001600160a01b038116620000c55760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b816001600160a01b038116620001105760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000bc565b60088660ff161015801562000129575060128660ff1611155b6200016a5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420646563696d616c7360801b6044820152606401620000bc565b60008511620001bc5760405162461bcd60e51b815260206004820152601d60248201527f537570706c79206d7573742062652067726561746572207468616e20300000006044820152606401620000bc565b6c0c9f2c9cd04674edea400000008511156200020e5760405162461bcd60e51b815260206004820152601060248201526f537570706c7920746f6f206c6172676560801b6044820152606401620000bc565b60146200021c89826200080d565b5060156200022b88826200080d565b506016805460ff191660ff881617905560118590556200024e85600019620008ef565b6200025c906000196200091c565b60125560115462000270906103e8620005c5565b600d5560115462000284906101f4620005c5565b600e55600d54683635c9adc5dea000001115620002a957683635c9adc5dea00000600d555b690a968163f0a57b400000600d541115620002cd57690a968163f0a57b400000600d555b600d54600e541015620002ee57600d54620002ea906002620005dc565b600e555b6001600160a01b03831660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000339573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200035f919062000932565b6001600160a01b031663c9c65396306080516001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620003af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003d5919062000932565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000423573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000449919062000932565b6001600160a01b0390811660a081905260c052306000818152600660209081526040808320805460ff1990811660019081179092557f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e228054909116821790556007805480830182557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68890810180546001600160a01b03199081169098179055815492830190915501805490941661dead179093556012549388168252600390522055620005168462000575565b836001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6011546040516200055f91815260200190565b60405180910390a3505050505050505062000981565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620005d3828462000950565b90505b92915050565b6000620005d3828462000967565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200061257600080fd5b81516001600160401b03808211156200062f576200062f620005ea565b604051601f8301601f19908116603f011681019082821181831017156200065a576200065a620005ea565b816040528381526020925086838588010111156200067757600080fd5b600091505b838210156200069b57858201830151818301840152908201906200067c565b600093810190920192909252949350505050565b80516001600160a01b0381168114620006c757600080fd5b919050565b60008060008060008060c08789031215620006e657600080fd5b86516001600160401b0380821115620006fe57600080fd5b6200070c8a838b0162000600565b975060208901519150808211156200072357600080fd5b506200073289828a0162000600565b955050604087015160ff811681146200074a57600080fd5b606088015190945092506200076260808801620006af565b91506200077260a08801620006af565b90509295509295509295565b600181811c908216806200079357607f821691505b602082108103620007b457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200080857600081815260208120601f850160051c81016020861015620007e35750805b601f850160051c820191505b818110156200080457828155600101620007ef565b5050505b505050565b81516001600160401b03811115620008295762000829620005ea565b62000841816200083a84546200077e565b84620007ba565b602080601f831160018114620008795760008415620008605750858301515b600019600386901b1c1916600185901b17855562000804565b600085815260208120601f198616915b82811015620008aa5788860151825594840194600190910190840162000889565b5085821015620008c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082620009015762000901620008d9565b500690565b634e487b7160e01b600052601160045260246000fd5b81810381811115620005d657620005d662000906565b6000602082840312156200094557600080fd5b620005d382620006af565b600082620009625762000962620008d9565b500490565b8082028115828204841417620005d657620005d662000906565b60805160a05160c051612e83620009f760003960008181610776015281816111bc0152818161129601528181611ef90152611f920152600081816109490152611c0701526000818161074201528181612422015281816124db0152818161250c0152818161259501526126130152612e836000f3fe6080604052600436106103035760003560e01c8063733b864f11610190578063cba0e996116100dc578063eade557511610095578063f84354f11161006f578063f84354f1146108eb578063f97595181461090b578063fce589d814610921578063fe3f52f41461093757600080fd5b8063eade557514610896578063f2cc0c18146108ab578063f2fde38b146108cb57600080fd5b8063cba0e996146107ad578063cce987d4146107e6578063d03153aa146107fc578063dbdfca6c14610812578063dd62ed3e14610830578063e01af92c1461087657600080fd5b806395d89b4111610149578063a9059cbb11610123578063a9059cbb14610710578063aec9b6f414610730578063bb89037f14610764578063c3a1ed481461079857600080fd5b806395d89b41146106c557806398118cb4146106da578063a457c2d7146106f057600080fd5b8063733b864f1461061357806377c46f801461062857806383ad7994146106415780638456cb5914610657578063878f8ff71461066c5780638da5cb5b146106a757600080fd5b80633852a5571161024f5780635c975abb116102085780636ddd1713116101e25780636ddd17131461058557806370a08231146105a4578063715018a6146105c457806371908a03146105d957600080fd5b80635c975abb146105435780635e29a9af1461055b57806360c6d8ae1461057057600080fd5b80633852a557146104a057806339509351146104c05780633f4ba83a146104e05780634549b039146104f55780634e6fd6c41461051557806350e8676c146103d757600080fd5b80631ee1d1c7116102bc5780632d838119116102965780632d8381191461042c578063313ce5671461044c5780633352eb8c1461046e57806333ced6e21461048b57600080fd5b80631ee1d1c7146103d757806322429085146103ec57806323b872dd1461040c57600080fd5b80630445b6671461030f57806306fdde0314610338578063095ea7b31461035a5780630f9da7431461038a57806313114a9d146103ac57806318160ddd146103c257600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b50610325600d5481565b6040519081526020015b60405180910390f35b34801561034457600080fd5b5061034d61096b565b60405161032f9190612a3d565b34801561036657600080fd5b5061037a610375366004612aa0565b6109fd565b604051901515815260200161032f565b34801561039657600080fd5b506103aa6103a5366004612acc565b610a14565b005b3480156103b857600080fd5b50610325600b5481565b3480156103ce57600080fd5b50601154610325565b3480156103e357600080fd5b50610325600381565b3480156103f857600080fd5b506103aa610407366004612ae5565b610ab0565b34801561041857600080fd5b5061037a610427366004612b11565b610c64565b34801561043857600080fd5b50610325610447366004612acc565b610cd5565b34801561045857600080fd5b5060165460405160ff909116815260200161032f565b34801561047a57600080fd5b50610325683635c9adc5dea0000081565b34801561049757600080fd5b50610325600281565b3480156104ac57600080fd5b506103aa6104bb366004612b52565b610d59565b3480156104cc57600080fd5b5061037a6104db366004612aa0565b610ee7565b3480156104ec57600080fd5b506103aa610f1d565b34801561050157600080fd5b50610325610510366004612b82565b610f2f565b34801561052157600080fd5b5061052b61dead81565b6040516001600160a01b03909116815260200161032f565b34801561054f57600080fd5b5060025460ff1661037a565b34801561056757600080fd5b50601054610325565b34801561057c57600080fd5b50601354610325565b34801561059157600080fd5b50600c5461037a90610100900460ff1681565b3480156105b057600080fd5b506103256105bf366004612bb2565b610fba565b3480156105d057600080fd5b506103aa611019565b3480156105e557600080fd5b50600854600954600a54600b545b60408051948552602085019390935291830152606082015260800161032f565b34801561061f57600080fd5b506103aa61102b565b34801561063457600080fd5b50600380600260086105f3565b34801561064d57600080fd5b5061032560095481565b34801561066357600080fd5b506103aa6110f7565b34801561067857600080fd5b50600d54600e54600c54610100900460ff1660408051938452602084019290925215159082015260600161032f565b3480156106b357600080fd5b506000546001600160a01b031661052b565b3480156106d157600080fd5b5061034d611107565b3480156106e657600080fd5b50610325600a5481565b3480156106fc57600080fd5b5061037a61070b366004612aa0565b611116565b34801561071c57600080fd5b5061037a61072b366004612aa0565b611165565b34801561073c57600080fd5b5061052b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561077057600080fd5b5061052b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156107a457600080fd5b50610325600881565b3480156107b957600080fd5b5061037a6107c8366004612bb2565b6001600160a01b031660009081526006602052604090205460ff1690565b3480156107f257600080fd5b50610325600e5481565b34801561080857600080fd5b50610325600f5481565b34801561081e57600080fd5b50610325690a968163f0a57b40000081565b34801561083c57600080fd5b5061032561084b366004612bcf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561088257600080fd5b506103aa610891366004612bfd565b61117a565b3480156108a257600080fd5b506103aa61119c565b3480156108b757600080fd5b506103aa6108c6366004612bb2565b61137e565b3480156108d757600080fd5b506103aa6108e6366004612bb2565b6115ae565b3480156108f757600080fd5b506103aa610906366004612bb2565b611627565b34801561091757600080fd5b506103256101f481565b34801561092d57600080fd5b5061032560085481565b34801561094357600080fd5b5061052b7f000000000000000000000000000000000000000000000000000000000000000081565b60606014805461097a90612c1a565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690612c1a565b80156109f35780601f106109c8576101008083540402835291602001916109f3565b820191906000526020600020905b8154815290600101906020018083116109d657829003601f168201915b5050505050905090565b6000610a0a33848461182b565b5060015b92915050565b610a1c611938565b6101f4811115610a675760405162461bcd60e51b81526020600482015260116024820152700a6d8d2e0e0c2ceca40e8dede40d0d2ced607b1b60448201526064015b60405180910390fd5b6032811015610aab5760405162461bcd60e51b815260206004820152601060248201526f536c69707061676520746f6f206c6f7760801b6044820152606401610a5e565b600f55565b610ab8611938565b8282826003831115610b005760405162461bcd60e51b8152602060048201526011602482015270084eae4dc40cccaca40e8dede40d0d2ced607b1b6044820152606401610a5e565b6003821115610b515760405162461bcd60e51b815260206004820152601760248201527f5265666c656374696f6e2066656520746f6f20686967680000000000000000006044820152606401610a5e565b6002811115610b9b5760405162461bcd60e51b8152602060048201526016602482015275098d2e2ead2c8d2e8f240cccaca40e8dede40d0d2ced60531b6044820152606401610a5e565b6008610bb182610bab8686611992565b90611992565b1115610bf55760405162461bcd60e51b81526020600482015260136024820152720a8dee8c2d840cccacae640e8dede40d0d2ced606b1b6044820152606401610a5e565b60088690556009859055600a849055610c1284610bab8888611992565b600b55600854600954600a5460408051938452602084019290925282820152517fcf8a1e1d5f09cf3c97dbb653cd9a4d7aace9292fbc1bb8211febf2d400febbdd9181900360600190a1505050505050565b6000610c6e61199e565b610c798484846119e4565b610ccb8433610cc685604051806060016040528060288152602001612e01602891396001600160a01b038a1660009081526005602090815260408083203384529091529020549190611c9b565b61182b565b5060019392505050565b6000601254821115610d3c5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610a5e565b6000610d46611cc7565b9050610d528382611cea565b9392505050565b610d61611938565b683635c9adc5dea00000821015610dae5760405162461bcd60e51b81526020600482015260116024820152705468726573686f6c6420746f6f206c6f7760781b6044820152606401610a5e565b690a968163f0a57b400000821115610dfd5760405162461bcd60e51b81526020600482015260126024820152710a8d0e4cae6d0ded8c840e8dede40d0d2ced60731b6044820152606401610a5e565b81811015610e4d5760405162461bcd60e51b815260206004820152601f60248201527f4d617820616d6f756e74206d757374206265203e3d207468726573686f6c64006044820152606401610a5e565b601154610e5b906064611cea565b811115610ea05760405162461bcd60e51b815260206004820152601360248201527209ac2f040c2dadeeadce840e8dede40d0d2ced606b1b6044820152606401610a5e565b600d829055600e81905560408051838152602081018390527fa9c2e33ddea0675d960a3cc03d364783d03ffc4cad71b5fd3b6b32be3b971857910160405180910390a15050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610a0a918590610cc69086611992565b610f25611938565b610f2d611cf6565b565b6000601154831115610f835760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610a5e565b81610fa1576000610f9384611d48565b50929450610a0e9350505050565b6000610fac84611d48565b50919450610a0e9350505050565b6001600160a01b03811660009081526006602052604081205460ff1615610ff757506001600160a01b031660009081526004602052604090205490565b6001600160a01b038216600090815260036020526040902054610a0e90610cd5565b611021611938565b610f2d6000611d94565b611033611938565b61103b611de4565b6000601054116110835760405162461bcd60e51b81526020600482015260136024820152724e6f20746f6b656e7320617661696c61626c6560681b6044820152606401610a5e565b600c5460ff16156110c95760405162461bcd60e51b815260206004820152601060248201526f416c7265616479207377617070696e6760801b6044820152606401610a5e565b6000600e54601054116110de576010546110e2565b600e545b90506110ed81611e3d565b50610f2d60018055565b6110ff611938565b610f2d61208a565b60606015805461097a90612c1a565b6000610a0a3384610cc685604051806060016040528060258152602001612e29602591393360009081526005602090815260408083206001600160a01b038d1684529091529020549190611c9b565b600061116f61199e565b610a0a3384846119e4565b611182611938565b600c80549115156101000261ff0019909216919091179055565b6111a4611938565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561120b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122f9190612c54565b9050600081116112785760405162461bcd60e51b81526020600482015260146024820152732737902628103a37b5b2b739903a3790313ab93760611b6044820152606401610a5e565b60405163a9059cbb60e01b815261dead6004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156112e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130b9190612c6d565b6113485760405162461bcd60e51b815260206004820152600e60248201526d131408189d5c9b8819985a5b195960921b6044820152606401610a5e565b6040518181527f599e3c1445f5d3f97307a24763cc7d200c7c523b685562a5df07759410a411ec9060200160405180910390a150565b611386611938565b806001600160a01b0381166113cf5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610a5e565b6001600160a01b03821660009081526006602052604090205460ff16156114385760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c7265616479206578636c7564656400000000000000006044820152606401610a5e565b60075460321161148a5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79206578636c75646564206163636f756e74730000000000006044820152606401610a5e565b6000546001600160a01b03166001600160a01b0316826001600160a01b0316036114ed5760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba1032bc31b63ab2329037bbb732b960611b6044820152606401610a5e565b6001600160a01b03821660009081526003602052604090205415611547576001600160a01b03821660009081526003602052604090205461152d90610cd5565b6001600160a01b0383166000908152600460205260409020555b506001600160a01b03166000818152600660205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6115b6611938565b6001600160a01b03811661161b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a5e565b61162481611d94565b50565b61162f611938565b6001600160a01b03811660009081526006602052604090205460ff166116975760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c726561647920696e636c7564656400000000000000006044820152606401610a5e565b6001600160a01b03811630148015906116bb57506001600160a01b03811661dead14155b6117075760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420696e636c7564652073797374656d20616464726573736573006044820152606401610a5e565b60005b60075481101561182757816001600160a01b03166007828154811061173157611731612c8a565b6000918252602090912001546001600160a01b031603611815576007805461175b90600190612cb6565b8154811061176b5761176b612c8a565b600091825260209091200154600780546001600160a01b03909216918390811061179757611797612c8a565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600482526040808220829055600690925220805460ff1916905560078054806117ef576117ef612cc9565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b8061181f81612cdf565b91505061170a565b5050565b6001600160a01b0383166118815760405162461bcd60e51b815260206004820181905260248201527f45524332303a20617070726f76652066726f6d207a65726f20616464726573736044820152606401610a5e565b6001600160a01b0382166118d75760405162461bcd60e51b815260206004820152601e60248201527f45524332303a20617070726f766520746f207a65726f206164647265737300006044820152606401610a5e565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610f2d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a5e565b6000610d528284612cf8565b60025460ff1615610f2d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a5e565b6119ec611de4565b6001600160a01b038316611a4c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a207472616e736665722066726f6d207a65726f206164647265736044820152607360f81b6064820152608401610a5e565b6001600160a01b038216611aa25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a207472616e7366657220746f207a65726f2061646472657373006044820152606401610a5e565b60008111611b045760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610a5e565b611b0d83610fba565b811115611b5c5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610a5e565b6001600160a01b03831660009081526006602052604090205460019060ff1680611b9e57506001600160a01b03831660009081526006602052604090205460ff165b80611bb657506000546001600160a01b038581169116145b80611bce57506000546001600160a01b038481169116145b80611bdb5750600c5460ff165b15611be4575060005b600c5460ff16158015611bfe5750600c54610100900460ff165b8015611c3c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b8015611c455750805b8015611c555750600d5460105410155b15611c80576000600e5460105411611c6f57601054611c73565b600e545b9050611c7e81611e3d565b505b611c8c848484846120c7565b50611c9660018055565b505050565b60008184841115611cbf5760405162461bcd60e51b8152600401610a5e9190612a3d565b505050900390565b6000806000611cd4612180565b9092509050611ce38282611cea565b9250505090565b6000610d528284612d0b565b611cfe612302565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000806000806000806000611d5c8861234b565b915091506000611d6a611cc7565b90506000806000611d7c8c8686612383565b919e909d50909b509599509397509395505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403611e365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a5e565b6002600155565b600c805460ff191660011790556000611e57826002611cea565b90506000611e6583836123bf565b905047611e71836123cb565b6000611e7d47836123bf565b90508015611ed157611e8f838261258f565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15b601054611ede90866123bf565b6010556040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c9190612c54565b905080156120785760405163a9059cbb60e01b815261dead6004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611fe3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120079190612c6d565b6120445760405162461bcd60e51b815260206004820152600e60248201526d131408189d5c9b8819985a5b195960921b6044820152606401610a5e565b6040518181527f599e3c1445f5d3f97307a24763cc7d200c7c523b685562a5df07759410a411ec9060200160405180910390a15b5050600c805460ff1916905550505050565b61209261199e565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d2b3390565b806120dc576120d78484846126dc565b61217a565b60006120fe60646120f86008548661286790919063ffffffff16565b90611cea565b9050600061211c60646120f8600a548761286790919063ffffffff16565b905060006121348261212e87866123bf565b906123bf565b90508215612149576121498761dead856126dc565b811561216b5761215a8730846126dc565b6010546121679083611992565b6010555b612176878783612873565b5050505b50505050565b6012546011546000918291825b6007548110156122d2578260036000600784815481106121af576121af612c8a565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061221a57508160046000600784815481106121f3576121f3612c8a565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561223057601254601154945094505050509091565b612276600360006007848154811061224a5761224a612c8a565b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906123bf565b92506122be600460006007848154811061229257612292612c8a565b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906123bf565b9150806122ca81612cdf565b91505061218d565b506011546012546122e291611cea565b8210156122f9576012546011549350935050509091565b90939092509050565b60025460ff16610f2d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a5e565b600080600061236a60646120f86009548761286790919063ffffffff16565b9050600061237885836123bf565b959194509092505050565b60008080806123928786612867565b905060006123a08787612867565b905060006123ae83836123bf565b929992985090965090945050505050565b6000610d528284612cb6565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061240057612400612c8a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561247e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a29190612d2d565b816001815181106124b5576124b5612c8a565b60200260200101906001600160a01b031690816001600160a01b031681525050612500307f00000000000000000000000000000000000000000000000000000000000000008461182b565b60006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663791ac947848385306125414261012c612cf8565b6040518663ffffffff1660e01b8152600401612561959493929190612d4a565b600060405180830381600087803b15801561257b57600080fd5b505af1158015612176573d6000803e3d6000fd5b6125ba307f00000000000000000000000000000000000000000000000000000000000000008461182b565b60006125e36127106120f86125dc600f546127106123bf90919063ffffffff16565b8690612867565b905060006126076127106120f86125dc600f546127106123bf90919063ffffffff16565b90506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663f305d71984308786868361264a4261012c612cf8565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af11580156126b7573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121769190612dbb565b60006126f06126e9611cc7565b8390612867565b6001600160a01b03851660009081526003602052604090205490915061271690826123bf565b6001600160a01b0380861660009081526003602052604080822093909355908516815220546127459082611992565b6001600160a01b0380851660009081526003602090815260408083209490945591871681526006909152205460ff16156127b6576001600160a01b03841660009081526004602052604090205461279c90836123bf565b6001600160a01b0385166000908152600460205260409020555b6001600160a01b03831660009081526006602052604090205460ff1615612814576001600160a01b0383166000908152600460205260409020546127fa9083611992565b6001600160a01b0384166000908152600460205260409020555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161285991815260200190565b60405180910390a350505050565b6000610d528284612de9565b600080600080600061288486611d48565b6001600160a01b038d16600090815260036020526040902054949950929750909550935091506128b490866123bf565b6001600160a01b03891660009081526003602090815260408083209390935560069052205460ff161561291e576001600160a01b03881660009081526004602052604090205461290490876123bf565b6001600160a01b0389166000908152600460205260409020555b6001600160a01b03871660009081526006602052604090205460ff161561297c576001600160a01b0387166000908152600460205260409020546129629083611992565b6001600160a01b0388166000908152600460205260409020555b6001600160a01b03871660009081526003602052604090205461299f9085611992565b6001600160a01b0388166000908152600360205260409020556129c28382612a19565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a0791815260200190565b60405180910390a35050505050505050565b601254612a2690836123bf565b601255601354612a369082611992565b6013555050565b600060208083528351808285015260005b81811015612a6a57858101830151858201604001528201612a4e565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461162457600080fd5b60008060408385031215612ab357600080fd5b8235612abe81612a8b565b946020939093013593505050565b600060208284031215612ade57600080fd5b5035919050565b600080600060608486031215612afa57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215612b2657600080fd5b8335612b3181612a8b565b92506020840135612b4181612a8b565b929592945050506040919091013590565b60008060408385031215612b6557600080fd5b50508035926020909101359150565b801515811461162457600080fd5b60008060408385031215612b9557600080fd5b823591506020830135612ba781612b74565b809150509250929050565b600060208284031215612bc457600080fd5b8135610d5281612a8b565b60008060408385031215612be257600080fd5b8235612bed81612a8b565b91506020830135612ba781612a8b565b600060208284031215612c0f57600080fd5b8135610d5281612b74565b600181811c90821680612c2e57607f821691505b602082108103612c4e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612c6657600080fd5b5051919050565b600060208284031215612c7f57600080fd5b8151610d5281612b74565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a0e57610a0e612ca0565b634e487b7160e01b600052603160045260246000fd5b600060018201612cf157612cf1612ca0565b5060010190565b80820180821115610a0e57610a0e612ca0565b600082612d2857634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612d3f57600080fd5b8151610d5281612a8b565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612d9a5784516001600160a01b031683529383019391830191600101612d75565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612dd057600080fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610a0e57610a0e612ca056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c7c2ed759144bd1111da8e68a8ab202c06a48c9b34607ce4d441be78ba700b4b64736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000001966568155858198c12e7af340daf4c3583070f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f70000000000000000000000000000000000000000000000000000000000000006506c6561736500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006504c454153450000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106103035760003560e01c8063733b864f11610190578063cba0e996116100dc578063eade557511610095578063f84354f11161006f578063f84354f1146108eb578063f97595181461090b578063fce589d814610921578063fe3f52f41461093757600080fd5b8063eade557514610896578063f2cc0c18146108ab578063f2fde38b146108cb57600080fd5b8063cba0e996146107ad578063cce987d4146107e6578063d03153aa146107fc578063dbdfca6c14610812578063dd62ed3e14610830578063e01af92c1461087657600080fd5b806395d89b4111610149578063a9059cbb11610123578063a9059cbb14610710578063aec9b6f414610730578063bb89037f14610764578063c3a1ed481461079857600080fd5b806395d89b41146106c557806398118cb4146106da578063a457c2d7146106f057600080fd5b8063733b864f1461061357806377c46f801461062857806383ad7994146106415780638456cb5914610657578063878f8ff71461066c5780638da5cb5b146106a757600080fd5b80633852a5571161024f5780635c975abb116102085780636ddd1713116101e25780636ddd17131461058557806370a08231146105a4578063715018a6146105c457806371908a03146105d957600080fd5b80635c975abb146105435780635e29a9af1461055b57806360c6d8ae1461057057600080fd5b80633852a557146104a057806339509351146104c05780633f4ba83a146104e05780634549b039146104f55780634e6fd6c41461051557806350e8676c146103d757600080fd5b80631ee1d1c7116102bc5780632d838119116102965780632d8381191461042c578063313ce5671461044c5780633352eb8c1461046e57806333ced6e21461048b57600080fd5b80631ee1d1c7146103d757806322429085146103ec57806323b872dd1461040c57600080fd5b80630445b6671461030f57806306fdde0314610338578063095ea7b31461035a5780630f9da7431461038a57806313114a9d146103ac57806318160ddd146103c257600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b50610325600d5481565b6040519081526020015b60405180910390f35b34801561034457600080fd5b5061034d61096b565b60405161032f9190612a3d565b34801561036657600080fd5b5061037a610375366004612aa0565b6109fd565b604051901515815260200161032f565b34801561039657600080fd5b506103aa6103a5366004612acc565b610a14565b005b3480156103b857600080fd5b50610325600b5481565b3480156103ce57600080fd5b50601154610325565b3480156103e357600080fd5b50610325600381565b3480156103f857600080fd5b506103aa610407366004612ae5565b610ab0565b34801561041857600080fd5b5061037a610427366004612b11565b610c64565b34801561043857600080fd5b50610325610447366004612acc565b610cd5565b34801561045857600080fd5b5060165460405160ff909116815260200161032f565b34801561047a57600080fd5b50610325683635c9adc5dea0000081565b34801561049757600080fd5b50610325600281565b3480156104ac57600080fd5b506103aa6104bb366004612b52565b610d59565b3480156104cc57600080fd5b5061037a6104db366004612aa0565b610ee7565b3480156104ec57600080fd5b506103aa610f1d565b34801561050157600080fd5b50610325610510366004612b82565b610f2f565b34801561052157600080fd5b5061052b61dead81565b6040516001600160a01b03909116815260200161032f565b34801561054f57600080fd5b5060025460ff1661037a565b34801561056757600080fd5b50601054610325565b34801561057c57600080fd5b50601354610325565b34801561059157600080fd5b50600c5461037a90610100900460ff1681565b3480156105b057600080fd5b506103256105bf366004612bb2565b610fba565b3480156105d057600080fd5b506103aa611019565b3480156105e557600080fd5b50600854600954600a54600b545b60408051948552602085019390935291830152606082015260800161032f565b34801561061f57600080fd5b506103aa61102b565b34801561063457600080fd5b50600380600260086105f3565b34801561064d57600080fd5b5061032560095481565b34801561066357600080fd5b506103aa6110f7565b34801561067857600080fd5b50600d54600e54600c54610100900460ff1660408051938452602084019290925215159082015260600161032f565b3480156106b357600080fd5b506000546001600160a01b031661052b565b3480156106d157600080fd5b5061034d611107565b3480156106e657600080fd5b50610325600a5481565b3480156106fc57600080fd5b5061037a61070b366004612aa0565b611116565b34801561071c57600080fd5b5061037a61072b366004612aa0565b611165565b34801561073c57600080fd5b5061052b7f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f781565b34801561077057600080fd5b5061052b7f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed81565b3480156107a457600080fd5b50610325600881565b3480156107b957600080fd5b5061037a6107c8366004612bb2565b6001600160a01b031660009081526006602052604090205460ff1690565b3480156107f257600080fd5b50610325600e5481565b34801561080857600080fd5b50610325600f5481565b34801561081e57600080fd5b50610325690a968163f0a57b40000081565b34801561083c57600080fd5b5061032561084b366004612bcf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561088257600080fd5b506103aa610891366004612bfd565b61117a565b3480156108a257600080fd5b506103aa61119c565b3480156108b757600080fd5b506103aa6108c6366004612bb2565b61137e565b3480156108d757600080fd5b506103aa6108e6366004612bb2565b6115ae565b3480156108f757600080fd5b506103aa610906366004612bb2565b611627565b34801561091757600080fd5b506103256101f481565b34801561092d57600080fd5b5061032560085481565b34801561094357600080fd5b5061052b7f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed81565b60606014805461097a90612c1a565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690612c1a565b80156109f35780601f106109c8576101008083540402835291602001916109f3565b820191906000526020600020905b8154815290600101906020018083116109d657829003601f168201915b5050505050905090565b6000610a0a33848461182b565b5060015b92915050565b610a1c611938565b6101f4811115610a675760405162461bcd60e51b81526020600482015260116024820152700a6d8d2e0e0c2ceca40e8dede40d0d2ced607b1b60448201526064015b60405180910390fd5b6032811015610aab5760405162461bcd60e51b815260206004820152601060248201526f536c69707061676520746f6f206c6f7760801b6044820152606401610a5e565b600f55565b610ab8611938565b8282826003831115610b005760405162461bcd60e51b8152602060048201526011602482015270084eae4dc40cccaca40e8dede40d0d2ced607b1b6044820152606401610a5e565b6003821115610b515760405162461bcd60e51b815260206004820152601760248201527f5265666c656374696f6e2066656520746f6f20686967680000000000000000006044820152606401610a5e565b6002811115610b9b5760405162461bcd60e51b8152602060048201526016602482015275098d2e2ead2c8d2e8f240cccaca40e8dede40d0d2ced60531b6044820152606401610a5e565b6008610bb182610bab8686611992565b90611992565b1115610bf55760405162461bcd60e51b81526020600482015260136024820152720a8dee8c2d840cccacae640e8dede40d0d2ced606b1b6044820152606401610a5e565b60088690556009859055600a849055610c1284610bab8888611992565b600b55600854600954600a5460408051938452602084019290925282820152517fcf8a1e1d5f09cf3c97dbb653cd9a4d7aace9292fbc1bb8211febf2d400febbdd9181900360600190a1505050505050565b6000610c6e61199e565b610c798484846119e4565b610ccb8433610cc685604051806060016040528060288152602001612e01602891396001600160a01b038a1660009081526005602090815260408083203384529091529020549190611c9b565b61182b565b5060019392505050565b6000601254821115610d3c5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610a5e565b6000610d46611cc7565b9050610d528382611cea565b9392505050565b610d61611938565b683635c9adc5dea00000821015610dae5760405162461bcd60e51b81526020600482015260116024820152705468726573686f6c6420746f6f206c6f7760781b6044820152606401610a5e565b690a968163f0a57b400000821115610dfd5760405162461bcd60e51b81526020600482015260126024820152710a8d0e4cae6d0ded8c840e8dede40d0d2ced60731b6044820152606401610a5e565b81811015610e4d5760405162461bcd60e51b815260206004820152601f60248201527f4d617820616d6f756e74206d757374206265203e3d207468726573686f6c64006044820152606401610a5e565b601154610e5b906064611cea565b811115610ea05760405162461bcd60e51b815260206004820152601360248201527209ac2f040c2dadeeadce840e8dede40d0d2ced606b1b6044820152606401610a5e565b600d829055600e81905560408051838152602081018390527fa9c2e33ddea0675d960a3cc03d364783d03ffc4cad71b5fd3b6b32be3b971857910160405180910390a15050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610a0a918590610cc69086611992565b610f25611938565b610f2d611cf6565b565b6000601154831115610f835760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610a5e565b81610fa1576000610f9384611d48565b50929450610a0e9350505050565b6000610fac84611d48565b50919450610a0e9350505050565b6001600160a01b03811660009081526006602052604081205460ff1615610ff757506001600160a01b031660009081526004602052604090205490565b6001600160a01b038216600090815260036020526040902054610a0e90610cd5565b611021611938565b610f2d6000611d94565b611033611938565b61103b611de4565b6000601054116110835760405162461bcd60e51b81526020600482015260136024820152724e6f20746f6b656e7320617661696c61626c6560681b6044820152606401610a5e565b600c5460ff16156110c95760405162461bcd60e51b815260206004820152601060248201526f416c7265616479207377617070696e6760801b6044820152606401610a5e565b6000600e54601054116110de576010546110e2565b600e545b90506110ed81611e3d565b50610f2d60018055565b6110ff611938565b610f2d61208a565b60606015805461097a90612c1a565b6000610a0a3384610cc685604051806060016040528060258152602001612e29602591393360009081526005602090815260408083206001600160a01b038d1684529091529020549190611c9b565b600061116f61199e565b610a0a3384846119e4565b611182611938565b600c80549115156101000261ff0019909216919091179055565b6111a4611938565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed6001600160a01b0316906370a0823190602401602060405180830381865afa15801561120b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122f9190612c54565b9050600081116112785760405162461bcd60e51b81526020600482015260146024820152732737902628103a37b5b2b739903a3790313ab93760611b6044820152606401610a5e565b60405163a9059cbb60e01b815261dead6004820152602481018290527f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed6001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156112e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130b9190612c6d565b6113485760405162461bcd60e51b815260206004820152600e60248201526d131408189d5c9b8819985a5b195960921b6044820152606401610a5e565b6040518181527f599e3c1445f5d3f97307a24763cc7d200c7c523b685562a5df07759410a411ec9060200160405180910390a150565b611386611938565b806001600160a01b0381166113cf5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610a5e565b6001600160a01b03821660009081526006602052604090205460ff16156114385760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c7265616479206578636c7564656400000000000000006044820152606401610a5e565b60075460321161148a5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79206578636c75646564206163636f756e74730000000000006044820152606401610a5e565b6000546001600160a01b03166001600160a01b0316826001600160a01b0316036114ed5760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba1032bc31b63ab2329037bbb732b960611b6044820152606401610a5e565b6001600160a01b03821660009081526003602052604090205415611547576001600160a01b03821660009081526003602052604090205461152d90610cd5565b6001600160a01b0383166000908152600460205260409020555b506001600160a01b03166000818152600660205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6115b6611938565b6001600160a01b03811661161b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a5e565b61162481611d94565b50565b61162f611938565b6001600160a01b03811660009081526006602052604090205460ff166116975760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c726561647920696e636c7564656400000000000000006044820152606401610a5e565b6001600160a01b03811630148015906116bb57506001600160a01b03811661dead14155b6117075760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420696e636c7564652073797374656d20616464726573736573006044820152606401610a5e565b60005b60075481101561182757816001600160a01b03166007828154811061173157611731612c8a565b6000918252602090912001546001600160a01b031603611815576007805461175b90600190612cb6565b8154811061176b5761176b612c8a565b600091825260209091200154600780546001600160a01b03909216918390811061179757611797612c8a565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600482526040808220829055600690925220805460ff1916905560078054806117ef576117ef612cc9565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b8061181f81612cdf565b91505061170a565b5050565b6001600160a01b0383166118815760405162461bcd60e51b815260206004820181905260248201527f45524332303a20617070726f76652066726f6d207a65726f20616464726573736044820152606401610a5e565b6001600160a01b0382166118d75760405162461bcd60e51b815260206004820152601e60248201527f45524332303a20617070726f766520746f207a65726f206164647265737300006044820152606401610a5e565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b03163314610f2d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a5e565b6000610d528284612cf8565b60025460ff1615610f2d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a5e565b6119ec611de4565b6001600160a01b038316611a4c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a207472616e736665722066726f6d207a65726f206164647265736044820152607360f81b6064820152608401610a5e565b6001600160a01b038216611aa25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a207472616e7366657220746f207a65726f2061646472657373006044820152606401610a5e565b60008111611b045760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610a5e565b611b0d83610fba565b811115611b5c5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610a5e565b6001600160a01b03831660009081526006602052604090205460019060ff1680611b9e57506001600160a01b03831660009081526006602052604090205460ff165b80611bb657506000546001600160a01b038581169116145b80611bce57506000546001600160a01b038481169116145b80611bdb5750600c5460ff165b15611be4575060005b600c5460ff16158015611bfe5750600c54610100900460ff165b8015611c3c57507f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed6001600160a01b0316846001600160a01b031614155b8015611c455750805b8015611c555750600d5460105410155b15611c80576000600e5460105411611c6f57601054611c73565b600e545b9050611c7e81611e3d565b505b611c8c848484846120c7565b50611c9660018055565b505050565b60008184841115611cbf5760405162461bcd60e51b8152600401610a5e9190612a3d565b505050900390565b6000806000611cd4612180565b9092509050611ce38282611cea565b9250505090565b6000610d528284612d0b565b611cfe612302565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000806000806000806000611d5c8861234b565b915091506000611d6a611cc7565b90506000806000611d7c8c8686612383565b919e909d50909b509599509397509395505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403611e365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a5e565b6002600155565b600c805460ff191660011790556000611e57826002611cea565b90506000611e6583836123bf565b905047611e71836123cb565b6000611e7d47836123bf565b90508015611ed157611e8f838261258f565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15b601054611ede90866123bf565b6010556040516370a0823160e01b81523060048201526000907f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed6001600160a01b0316906370a0823190602401602060405180830381865afa158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c9190612c54565b905080156120785760405163a9059cbb60e01b815261dead6004820152602481018290527f000000000000000000000000572a40a78c7cba401ddda6af674ebf16e673ceed6001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611fe3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120079190612c6d565b6120445760405162461bcd60e51b815260206004820152600e60248201526d131408189d5c9b8819985a5b195960921b6044820152606401610a5e565b6040518181527f599e3c1445f5d3f97307a24763cc7d200c7c523b685562a5df07759410a411ec9060200160405180910390a15b5050600c805460ff1916905550505050565b61209261199e565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d2b3390565b806120dc576120d78484846126dc565b61217a565b60006120fe60646120f86008548661286790919063ffffffff16565b90611cea565b9050600061211c60646120f8600a548761286790919063ffffffff16565b905060006121348261212e87866123bf565b906123bf565b90508215612149576121498761dead856126dc565b811561216b5761215a8730846126dc565b6010546121679083611992565b6010555b612176878783612873565b5050505b50505050565b6012546011546000918291825b6007548110156122d2578260036000600784815481106121af576121af612c8a565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061221a57508160046000600784815481106121f3576121f3612c8a565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561223057601254601154945094505050509091565b612276600360006007848154811061224a5761224a612c8a565b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906123bf565b92506122be600460006007848154811061229257612292612c8a565b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906123bf565b9150806122ca81612cdf565b91505061218d565b506011546012546122e291611cea565b8210156122f9576012546011549350935050509091565b90939092509050565b60025460ff16610f2d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a5e565b600080600061236a60646120f86009548761286790919063ffffffff16565b9050600061237885836123bf565b959194509092505050565b60008080806123928786612867565b905060006123a08787612867565b905060006123ae83836123bf565b929992985090965090945050505050565b6000610d528284612cb6565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061240057612400612c8a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f76001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561247e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a29190612d2d565b816001815181106124b5576124b5612c8a565b60200260200101906001600160a01b031690816001600160a01b031681525050612500307f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f78461182b565b60006001600160a01b037f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f71663791ac947848385306125414261012c612cf8565b6040518663ffffffff1660e01b8152600401612561959493929190612d4a565b600060405180830381600087803b15801561257b57600080fd5b505af1158015612176573d6000803e3d6000fd5b6125ba307f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f78461182b565b60006125e36127106120f86125dc600f546127106123bf90919063ffffffff16565b8690612867565b905060006126076127106120f86125dc600f546127106123bf90919063ffffffff16565b90506001600160a01b037f000000000000000000000000dae9dd3d1a52cfce9d5f2fac7fde164d500e50f71663f305d71984308786868361264a4261012c612cf8565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af11580156126b7573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121769190612dbb565b60006126f06126e9611cc7565b8390612867565b6001600160a01b03851660009081526003602052604090205490915061271690826123bf565b6001600160a01b0380861660009081526003602052604080822093909355908516815220546127459082611992565b6001600160a01b0380851660009081526003602090815260408083209490945591871681526006909152205460ff16156127b6576001600160a01b03841660009081526004602052604090205461279c90836123bf565b6001600160a01b0385166000908152600460205260409020555b6001600160a01b03831660009081526006602052604090205460ff1615612814576001600160a01b0383166000908152600460205260409020546127fa9083611992565b6001600160a01b0384166000908152600460205260409020555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161285991815260200190565b60405180910390a350505050565b6000610d528284612de9565b600080600080600061288486611d48565b6001600160a01b038d16600090815260036020526040902054949950929750909550935091506128b490866123bf565b6001600160a01b03891660009081526003602090815260408083209390935560069052205460ff161561291e576001600160a01b03881660009081526004602052604090205461290490876123bf565b6001600160a01b0389166000908152600460205260409020555b6001600160a01b03871660009081526006602052604090205460ff161561297c576001600160a01b0387166000908152600460205260409020546129629083611992565b6001600160a01b0388166000908152600460205260409020555b6001600160a01b03871660009081526003602052604090205461299f9085611992565b6001600160a01b0388166000908152600360205260409020556129c28382612a19565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a0791815260200190565b60405180910390a35050505050505050565b601254612a2690836123bf565b601255601354612a369082611992565b6013555050565b600060208083528351808285015260005b81811015612a6a57858101830151858201604001528201612a4e565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461162457600080fd5b60008060408385031215612ab357600080fd5b8235612abe81612a8b565b946020939093013593505050565b600060208284031215612ade57600080fd5b5035919050565b600080600060608486031215612afa57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215612b2657600080fd5b8335612b3181612a8b565b92506020840135612b4181612a8b565b929592945050506040919091013590565b60008060408385031215612b6557600080fd5b50508035926020909101359150565b801515811461162457600080fd5b60008060408385031215612b9557600080fd5b823591506020830135612ba781612b74565b809150509250929050565b600060208284031215612bc457600080fd5b8135610d5281612a8b565b60008060408385031215612be257600080fd5b8235612bed81612a8b565b91506020830135612ba781612a8b565b600060208284031215612c0f57600080fd5b8135610d5281612b74565b600181811c90821680612c2e57607f821691505b602082108103612c4e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612c6657600080fd5b5051919050565b600060208284031215612c7f57600080fd5b8151610d5281612b74565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a0e57610a0e612ca0565b634e487b7160e01b600052603160045260246000fd5b600060018201612cf157612cf1612ca0565b5060010190565b80820180821115610a0e57610a0e612ca0565b600082612d2857634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612d3f57600080fd5b8151610d5281612a8b565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612d9a5784516001600160a01b031683529383019391830191600101612d75565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612dd057600080fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610a0e57610a0e612ca056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c7c2ed759144bd1111da8e68a8ab202c06a48c9b34607ce4d441be78ba700b4b64736f6c63430008130033