Contract Address Details

0x245a551ee0F55005e510B239c917fA34b41B3461

Token
Swapp Token (SWAPP)
Creator
0xde121c–fd79d8 at 0xb33c25–ce7eea
Balance
103.957923683344373905 CRO ( )
Tokens
Fetching tokens...
Transactions
1,863 Transactions
Transfers
7,937 Transfers
Gas Used
76,353,314
Last Balance Update
2911050
Contract name:
SwappToken




Optimization enabled
true
Compiler version
v0.8.4+commit.c7e474f2




Optimization runs
200
EVM Version
default




Verified at
2021-12-22 17:52:07.072187Z

Contract source code

// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason 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 {
// 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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/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: @openzeppelin/contracts/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() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
pragma solidity ^0.8.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: contracts/Swappdex/swapptoken.sol
pragma solidity 0.8.4;
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() 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);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
interface GuardianInterface {
function checkTransfer(address sender, address recipient, uint256 amount, uint256 senderBalance, uint256 recipientBalance)
external returns (uint256 sBalance, uint256 rBalance, uint256 taxAmount, uint256 recipientAmount);
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract SwappToken is IERC20, IERC20Metadata, Context, Ownable {
using SafeERC20 for IERC20;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private constant _name = 'Swapp Token';
string private constant _symbol = 'SWAPP';
mapping(address => bool) public minters;
mapping(address => bool) public pausers;
mapping (address => bool) private _isExcludedFromFee;
uint256 public liquidityFee = 50; // 0.5%
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
uint256 public maxTxAmount = 5000000 ether;
uint256 private _numTokensSellToAddToLiquidity = 5000 ether;
bool public paused = false;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
address public guardian;
address public taxer;
address public wallet;
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
modifier onlyMinter() {
require(minters[_msgSender()], "Caller is not the minter");
_;
}
modifier onlyWallet() {
require(msg.sender == wallet, "Only multisig wallet can perfrom this action");
_;
}
modifier whenNotPaused() {
require(!paused, "Contract is paused");
_;
}
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity);
constructor() {
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x600d0b65C2A25b64C9b517A43B7a44592448d285);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
wallet = 0xde121Cc755c1D1786Dd46FfF7e373e9372FD79D8;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Creates `amount` new tokens for `to`.
*
* See {ERC20-_mint}.
*/
function mint(address to, uint256 amount) public virtual onlyMinter {
_mint(to, amount);
}
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
if(sender != owner() && recipient != owner())
require(amount <= maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
_handleLiquidity(sender);
unchecked {
_balances[sender] = senderBalance - amount;
}
if (guardian != address(0)) {
(uint256 sBalance, uint256 rBalance, uint256 taxAmount, uint256 recipientAmount)
= GuardianInterface(guardian).checkTransfer(sender, recipient, amount, _balances[sender], _balances[recipient]);
_balances[sender] = sBalance;
uint256 fee = takeLiquidityFee(sender, recipient, amount);
_balances[recipient] = rBalance - fee;
recipientAmount -= fee;
if (taxAmount > 0) {
_balances[taxer] += taxAmount;
emit Transfer(sender, taxer, taxAmount);
}
emit Transfer(sender, recipient, recipientAmount);
} else {
uint256 fee = takeLiquidityFee(sender, recipient, amount);
amount -= fee;
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
_afterTokenTransfer(sender, recipient, amount);
}
function takeLiquidityFee(address sender, address recipient, uint256 amount) internal returns (uint256) {
uint fee = 0;
//if any account belongs to _isExcludedFromFee account then do not take fee
if(!_isExcludedFromFee[sender] && !_isExcludedFromFee[recipient]) {
fee = calculateLiquidityFee(amount);
if (fee > 0) {
_balances[address(this)] += fee;
emit Transfer(sender, address(this), fee);
}
}
return fee;
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual whenNotPaused {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _handleLiquidity(address sender) internal {
// is the token balance of this contract address over the min number of
// tokens that we need to initiate a swap + liquidity lock?
// also, don't get caught in a circular liquidity event.
// also, don't swap & liquify if sender is uniswap pair.
uint256 contractTokenBalance = balanceOf(address(this));
if(contractTokenBalance >= maxTxAmount) {
contractTokenBalance = maxTxAmount;
}
bool overMinTokenBalance = contractTokenBalance >= _numTokensSellToAddToLiquidity;
if (
overMinTokenBalance &&
!inSwapAndLiquify &&
sender != uniswapV2Pair &&
swapAndLiquifyEnabled
) {
contractTokenBalance = _numTokensSellToAddToLiquidity;
//add liquidity
swapAndLiquify(contractTokenBalance);
}
}
function handleLiquidity() public onlyOwner {
_handleLiquidity(msg.sender);
}
//to recieve from uniswapV2Router when swaping
receive() external payable {}
function excludeFromFee(address account) public onlyWallet {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyWallet {
_isExcludedFromFee[account] = false;
}
function isExcludedFromFee(address account) public view returns(bool) {
return _isExcludedFromFee[account];
}
// must be in bases point ( 1,5% = 150 bp)
function setLiquidityFeePercent(uint256 _liquidityFee) external onlyWallet {
liquidityFee = _liquidityFee;
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyWallet {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function setMaxTxAmount(uint256 amount) external onlyWallet {
maxTxAmount = amount;
}
function setNumTokensSellToAddToLiquidity(uint256 amount) external onlyWallet {
_numTokensSellToAddToLiquidity = amount;
}
function getTokens(address to, address tokenAddress) external onlyWallet {
require(tokenAddress != address(0), "tokenAddress can not be zero address!");
uint256 balance = IERC20(tokenAddress).balanceOf(address(this));
if (balance > 0) {
IERC20(tokenAddress).safeTransfer(to, balance);
}
}
function getCurrency(uint256 amount) external onlyWallet {
uint256 balance = address(this).balance;
require(balance >= amount, 'Not enough funds');
address to = owner();
payable(to).transfer(amount);
}
function addMinter(address minter) external onlyWallet {
minters[minter] = true;
}
function deleteMinter(address minter) external onlyWallet {
minters[minter] = false;
}
function addPauser(address pauser) external onlyWallet {
pausers[pauser] = true;
}
function deletePauser(address pauser) external onlyWallet {
pausers[pauser] = false;
}
//Guardian can be zero address, to disable guard checks.
function setGuardian(address _guardian) external onlyWallet {
guardian = _guardian;
}
function setTaxer(address _taxer) external onlyWallet {
require(_taxer != address(0),"_taxer can not be zero address!");
taxer = _taxer;
}
function setWallet(address _wallet) external onlyWallet {
require(_wallet != address(0),"_wallet can not be zero address!");
wallet = _wallet;
}
function setPair(address _pair) external onlyWallet {
require(_pair != address(0),"_pair can not be zero address!");
uniswapV2Pair = _pair;
}
function setRouter(address _router) external onlyWallet {
require(_router != address(0),"_router can not be zero address!");
uniswapV2Router = IUniswapV2Router02(_router);
}
function pause(bool _paused) external {
require(msg.sender == wallet || pausers[msg.sender], "Only multisig wallet or pauser can perfrom this action");
paused = _paused;
}
function calculateLiquidityFee(uint256 _amount) internal view returns (uint256) {
return _amount * liquidityFee / 10**4;
}
function swapAndLiquify(uint256 contractTokenBalance) internal lockTheSwap {
// split the contract balance into halves
uint256 half = contractTokenBalance / 2;
uint256 otherHalf = contractTokenBalance - half;
// capture the contract's current network base currency balance.
// this is so that we can capture exactly the amount of network base currency that the
// swap creates, and not make the liquidity event include any network base currency that
// has been manually sent to the contract
uint256 initialBalance = address(this).balance;
// swap tokens for network base currency
swapTokensForBaseCurrency(half);
// how much network base currency did we just swap into?
uint256 newBalance = address(this).balance - initialBalance;
// add liquidity to dex
addLiquidity(otherHalf, newBalance);
emit SwapAndLiquify(half, newBalance, otherHalf);
}
function swapTokensForBaseCurrency(uint256 tokenAmount) internal {
// generate the uniswap pair path of token -> wrapped base currency
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
owner(),
block.timestamp
);
}
}

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"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":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"ethReceived","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensIntoLiqudity","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SwapAndLiquifyEnabledUpdated","inputs":[{"type":"bool","name":"enabled","internalType":"bool","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":"function","stateMutability":"nonpayable","outputs":[],"name":"addMinter","inputs":[{"type":"address","name":"minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPauser","inputs":[{"type":"address","name":"pauser","internalType":"address"}]},{"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":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"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":"deleteMinter","inputs":[{"type":"address","name":"minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deletePauser","inputs":[{"type":"address","name":"pauser","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromFee","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"getCurrency","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"getTokens","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"guardian","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"handleLiquidity","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"includeInFee","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":"isExcludedFromFee","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxTxAmount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"minters","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[{"type":"bool","name":"_paused","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"pausers","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setGuardian","inputs":[{"type":"address","name":"_guardian","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLiquidityFeePercent","inputs":[{"type":"uint256","name":"_liquidityFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxTxAmount","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNumTokensSellToAddToLiquidity","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPair","inputs":[{"type":"address","name":"_pair","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRouter","inputs":[{"type":"address","name":"_router","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapAndLiquifyEnabled","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTaxer","inputs":[{"type":"address","name":"_taxer","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setWallet","inputs":[{"type":"address","name":"_wallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapAndLiquifyEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"taxer","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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"uniswapV2Pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"uniswapV2Router","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wallet","inputs":[]},{"type":"receive","stateMutability":"payable"}]
            

Deployed ByteCode

0x60806040526004361061028c5760003560e01c80638187f5161161015a578063c0d78655116100c1578063ea2f0b371161007a578063ea2f0b3714610848578063ec28438a14610868578063f0f165af14610888578063f2fde38b146108a8578063f46eccc4146108c8578063ffbf8a14146108f857600080fd5b8063c0d7865514610762578063c49b9a8014610782578063cdf9b77e146107a2578063d82f94a3146107c2578063dd62ed3e146107e2578063deaa59df1461082857600080fd5b80638ee88c53116101135780638ee88c531461069e57806395d89b41146106be57806398118cb4146106ec578063983b2d5614610702578063a457c2d714610722578063a9059cbb1461074257600080fd5b80638187f516146105ea57806382dc1ec41461060a5780638a0dac4a1461062a5780638c0b5e221461064a5780638d0e8e1d146106605780638da5cb5b1461068057600080fd5b806342966c68116101fe5780635342acb4116101b75780635342acb4146105075780635c975abb1461054057806370a082311461055a578063715018a61461059057806380a179d9146105a557806380f51c12146105ba57600080fd5b806342966c6814610448578063437823ec14610468578063452a93201461048857806349bd5a5e146104a85780634a74bb02146104c8578063521eb273146104e757600080fd5b806317c81c1d1161025057806317c81c1d1461038d57806318160ddd146103ad57806323b872dd146103cc578063313ce567146103ec578063395093511461040857806340c10f191461042857600080fd5b806302329a291461029857806306fdde03146102ba578063095ea7b3146103005780630d2f0b2e146103305780631694505e1461035057600080fd5b3661029357005b600080fd5b3480156102a457600080fd5b506102b86102b3366004612437565b610918565b005b3480156102c657600080fd5b5060408051808201909152600b81526a29bbb0b838102a37b5b2b760a91b60208201525b6040516102f7919061251d565b60405180910390f35b34801561030c57600080fd5b5061032061031b36600461240c565b6109c3565b60405190151581526020016102f7565b34801561033c57600080fd5b506102b861034b36600461235c565b6109d9565b34801561035c57600080fd5b50600b546103759061010090046001600160a01b031681565b6040516001600160a01b0390911681526020016102f7565b34801561039957600080fd5b50600e54610375906001600160a01b031681565b3480156103b957600080fd5b506003545b6040519081526020016102f7565b3480156103d857600080fd5b506103206103e73660046123cc565b610a7b565b3480156103f857600080fd5b50604051601281526020016102f7565b34801561041457600080fd5b5061032061042336600461240c565b610b27565b34801561043457600080fd5b506102b861044336600461240c565b610b63565b34801561045457600080fd5b506102b861046336600461246f565b610bd0565b34801561047457600080fd5b506102b861048336600461235c565b610bdd565b34801561049457600080fd5b50600d54610375906001600160a01b031681565b3480156104b457600080fd5b50600c54610375906001600160a01b031681565b3480156104d457600080fd5b5060085461032090610100900460ff1681565b3480156104f357600080fd5b50600f54610375906001600160a01b031681565b34801561051357600080fd5b5061032061052236600461235c565b6001600160a01b031660009081526006602052604090205460ff1690565b34801561054c57600080fd5b50600b546103209060ff1681565b34801561056657600080fd5b506103be61057536600461235c565b6001600160a01b031660009081526001602052604090205490565b34801561059c57600080fd5b506102b8610c2b565b3480156105b157600080fd5b506102b8610c61565b3480156105c657600080fd5b506103206105d536600461235c565b60056020526000908152604090205460ff1681565b3480156105f657600080fd5b506102b861060536600461235c565b610c94565b34801561061657600080fd5b506102b861062536600461235c565b610d36565b34801561063657600080fd5b506102b861064536600461235c565b610d84565b34801561065657600080fd5b506103be60095481565b34801561066c57600080fd5b506102b861067b366004612394565b610dd0565b34801561068c57600080fd5b506000546001600160a01b0316610375565b3480156106aa57600080fd5b506102b86106b936600461246f565b610ef9565b3480156106ca57600080fd5b50604080518082019091526005815264053574150560dc1b60208201526102ea565b3480156106f857600080fd5b506103be60075481565b34801561070e57600080fd5b506102b861071d36600461235c565b610f28565b34801561072e57600080fd5b5061032061073d36600461240c565b610f76565b34801561074e57600080fd5b5061032061075d36600461240c565b61100f565b34801561076e57600080fd5b506102b861077d36600461235c565b61101c565b34801561078e57600080fd5b506102b861079d366004612437565b6110c4565b3480156107ae57600080fd5b506102b86107bd36600461246f565b611142565b3480156107ce57600080fd5b506102b86107dd36600461235c565b6111f2565b3480156107ee57600080fd5b506103be6107fd366004612394565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b34801561083457600080fd5b506102b861084336600461235c565b61123d565b34801561085457600080fd5b506102b861086336600461235c565b6112df565b34801561087457600080fd5b506102b861088336600461246f565b61132a565b34801561089457600080fd5b506102b86108a336600461246f565b611359565b3480156108b457600080fd5b506102b86108c336600461235c565b611388565b3480156108d457600080fd5b506103206108e336600461235c565b60046020526000908152604090205460ff1681565b34801561090457600080fd5b506102b861091336600461235c565b611420565b600f546001600160a01b031633148061094057503360009081526005602052604090205460ff165b6109b05760405162461bcd60e51b815260206004820152603660248201527f4f6e6c79206d756c74697369672077616c6c6574206f7220706175736572206360448201527530b7103832b9333937b6903a3434b99030b1ba34b7b760511b60648201526084015b60405180910390fd5b600b805460ff1916911515919091179055565b60006109d033848461146b565b50600192915050565b600f546001600160a01b03163314610a035760405162461bcd60e51b81526004016109a790612550565b6001600160a01b038116610a595760405162461bcd60e51b815260206004820152601f60248201527f5f74617865722063616e206e6f74206265207a65726f2061646472657373210060448201526064016109a7565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a8884848461158f565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610b0d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016109a7565b610b1a853385840361146b565b60019150505b9392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916109d0918590610b5e908690612641565b61146b565b3360009081526004602052604090205460ff16610bc25760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420746865206d696e746572000000000000000060448201526064016109a7565b610bcc82826119f2565b5050565b610bda3382611acb565b50565b600f546001600160a01b03163314610c075760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6000546001600160a01b03163314610c555760405162461bcd60e51b81526004016109a79061259c565b610c5f6000611c13565b565b6000546001600160a01b03163314610c8b5760405162461bcd60e51b81526004016109a79061259c565b610c5f33611c63565b600f546001600160a01b03163314610cbe5760405162461bcd60e51b81526004016109a790612550565b6001600160a01b038116610d145760405162461bcd60e51b815260206004820152601e60248201527f5f706169722063616e206e6f74206265207a65726f206164647265737321000060448201526064016109a7565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b03163314610d605760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600560205260409020805460ff19166001179055565b600f546001600160a01b03163314610dae5760405162461bcd60e51b81526004016109a790612550565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b03163314610dfa5760405162461bcd60e51b81526004016109a790612550565b6001600160a01b038116610e5e5760405162461bcd60e51b815260206004820152602560248201527f746f6b656e416464726573732063616e206e6f74206265207a65726f20616464604482015264726573732160d81b60648201526084016109a7565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ea057600080fd5b505afa158015610eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed89190612487565b90508015610ef457610ef46001600160a01b0383168483611cd8565b505050565b600f546001600160a01b03163314610f235760405162461bcd60e51b81526004016109a790612550565b600755565b600f546001600160a01b03163314610f525760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610ff85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109a7565b611005338585840361146b565b5060019392505050565b60006109d033848461158f565b600f546001600160a01b031633146110465760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03811661109c5760405162461bcd60e51b815260206004820181905260248201527f5f726f757465722063616e206e6f74206265207a65726f20616464726573732160448201526064016109a7565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f546001600160a01b031633146110ee5760405162461bcd60e51b81526004016109a790612550565b600880548215156101000261ff00199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061113790831515815260200190565b60405180910390a150565b600f546001600160a01b0316331461116c5760405162461bcd60e51b81526004016109a790612550565b47818110156111b05760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682066756e647360801b60448201526064016109a7565b600080546040516001600160a01b039091169182916108fc86150291869190818181858888f193505050501580156111ec573d6000803e3d6000fd5b50505050565b600f546001600160a01b0316331461121c5760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600460205260409020805460ff19169055565b600f546001600160a01b031633146112675760405162461bcd60e51b81526004016109a790612550565b6001600160a01b0381166112bd5760405162461bcd60e51b815260206004820181905260248201527f5f77616c6c65742063616e206e6f74206265207a65726f20616464726573732160448201526064016109a7565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b031633146113095760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600660205260409020805460ff19169055565b600f546001600160a01b031633146113545760405162461bcd60e51b81526004016109a790612550565b600955565b600f546001600160a01b031633146113835760405162461bcd60e51b81526004016109a790612550565b600a55565b6000546001600160a01b031633146113b25760405162461bcd60e51b81526004016109a79061259c565b6001600160a01b0381166114175760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a7565b610bda81611c13565b600f546001600160a01b0316331461144a5760405162461bcd60e51b81526004016109a790612550565b6001600160a01b03166000908152600560205260409020805460ff19169055565b6001600160a01b0383166114cd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109a7565b6001600160a01b03821661152e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109a7565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115f35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109a7565b6001600160a01b0382166116555760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109a7565b611660838383611d2a565b6001600160a01b038316600090815260016020526040902054818110156116d85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109a7565b6000546001600160a01b0385811691161480159061170457506000546001600160a01b03848116911614155b1561176c5760095482111561176c5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b60648201526084016109a7565b61177584611c63565b6001600160a01b0380851660009081526001602052604090208383039055600d54161561196457600d546001600160a01b0385811660008181526001602052604080822054888516808452828420549251631ebc758b60e11b8152600481019590955260248501526044840188905260648401526084830152928392839283929190911690633d78eb169060a401608060405180830381600087803b15801561181d57600080fd5b505af1158015611831573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185591906124cc565b6001600160a01b038c16600090815260016020526040812085905593975091955093509150611885898989611d72565b90506118918185612698565b6001600160a01b0389166000908152600160205260409020556118b48183612698565b9150821561191f57600e546001600160a01b0316600090815260016020526040812080548592906118e6908490612641565b9091555050600e546040518481526001600160a01b03918216918b16906000805160206127158339815191529060200160405180910390a35b876001600160a01b0316896001600160a01b03166000805160206127158339815191528460405161195291815260200190565b60405180910390a350505050506111ec565b6000611971858585611d72565b905061197d8184612698565b6001600160a01b0385166000908152600160205260408120805492955085929091906119aa908490612641565b92505081905550836001600160a01b0316856001600160a01b0316600080516020612715833981519152856040516119e491815260200190565b60405180910390a3506111ec565b6001600160a01b038216611a485760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109a7565b611a5460008383611d2a565b8060036000828254611a669190612641565b90915550506001600160a01b03821660009081526001602052604081208054839290611a93908490612641565b90915550506040518181526001600160a01b038316906000906000805160206127158339815191529060200160405180910390a35050565b6001600160a01b038216611b2b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109a7565b611b3782600083611d2a565b6001600160a01b03821660009081526001602052604090205481811015611bab5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109a7565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611bda908490612698565b90915550506040518281526000906001600160a01b038516906000805160206127158339815191529060200160405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b306000908152600160205260409020546009548110611c8157506009545b600a5481108015908190611c98575060085460ff16155b8015611cb25750600c546001600160a01b03848116911614155b8015611cc55750600854610100900460ff165b15610ef457600a549150610ef482611e27565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ef4908490611ec5565b600b5460ff1615610ef45760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109a7565b6001600160a01b038316600090815260066020526040812054819060ff16158015611db657506001600160a01b03841660009081526006602052604090205460ff16155b15611e1f57611dc483611f97565b90508015611e1f573060009081526001602052604081208054839290611deb908490612641565b909155505060405181815230906001600160a01b038716906000805160206127158339815191529060200160405180910390a35b949350505050565b6008805460ff191660011790556000611e41600283612659565b90506000611e4f8284612698565b905047611e5b83611fba565b6000611e678247612698565b9050611e738382612162565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506008805460ff19169055505050565b6000611f1a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122519092919063ffffffff16565b805190915015610ef45780806020019051810190611f389190612453565b610ef45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109a7565b600061271060075483611faa9190612679565b611fb49190612659565b92915050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611ffd57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050600b60019054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561206b57600080fd5b505afa15801561207f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a39190612378565b816001815181106120c457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600b546120ef9130916101009004168461146b565b600b5460405163791ac94760e01b81526101009091046001600160a01b03169063791ac9479061212c9085906000908690309042906004016125d1565b600060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b505050505050565b600b5461217f90309061010090046001600160a01b03168461146b565b600b546001600160a01b036101009091041663f305d7198230856000806121ae6000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b15801561221157600080fd5b505af1158015612225573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061224a919061249f565b5050505050565b6060611e1f848460008585843b6122aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109a7565b600080866001600160a01b031685876040516122c69190612501565b60006040518083038185875af1925050503d8060008114612303576040519150601f19603f3d011682016040523d82523d6000602084013e612308565b606091505b5091509150612318828286612323565b979650505050505050565b60608315612332575081610b20565b8251156123425782518084602001fd5b8160405162461bcd60e51b81526004016109a7919061251d565b60006020828403121561236d578081fd5b8135610b20816126f1565b600060208284031215612389578081fd5b8151610b20816126f1565b600080604083850312156123a6578081fd5b82356123b1816126f1565b915060208301356123c1816126f1565b809150509250929050565b6000806000606084860312156123e0578081fd5b83356123eb816126f1565b925060208401356123fb816126f1565b929592945050506040919091013590565b6000806040838503121561241e578182fd5b8235612429816126f1565b946020939093013593505050565b600060208284031215612448578081fd5b8135610b2081612706565b600060208284031215612464578081fd5b8151610b2081612706565b600060208284031215612480578081fd5b5035919050565b600060208284031215612498578081fd5b5051919050565b6000806000606084860312156124b3578283fd5b8351925060208401519150604084015190509250925092565b600080600080608085870312156124e1578081fd5b505082516020840151604085015160609095015191969095509092509050565b600082516125138184602087016126af565b9190910192915050565b602081526000825180602084015261253c8160408501602087016126af565b601f01601f19169190910160400192915050565b6020808252602c908201527f4f6e6c79206d756c74697369672077616c6c65742063616e2070657266726f6d60408201526b103a3434b99030b1ba34b7b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156126205784516001600160a01b0316835293830193918301916001016125fb565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612654576126546126db565b500190565b60008261267457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612693576126936126db565b500290565b6000828210156126aa576126aa6126db565b500390565b60005b838110156126ca5781810151838201526020016126b2565b838111156111ec5750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610bda57600080fd5b8015158114610bda57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201865408983ac11fb383c6045311aa93e7c0c63f3f8037d51135eff874948c19f64736f6c63430008040033