Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Artificial Intelligence
Overview
Max Total Supply
100,000,000 RING
Holders
8,309 ( -0.096%)
Market
Price
$0.04 @ 0.000012 ETH (+0.62%)
Onchain Market Cap
$3,763,822.00
Circulating Supply Market Cap
$3,766,714.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RingAIToken
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Telegram: https://t.me/ringcommunity // Website: http://tryring.ai/ pragma solidity 0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/dex/IUniswapRouter02.sol"; import "./interfaces/dex/IUniswapFactory.sol"; import "./interfaces/dex/IWETH.sol"; contract RingAIToken is ERC20, Ownable { uint private constant _RATE_NOMINATOR = 100e2; // Access config mapping(address => bool) public isInBlacklist; mapping(address => bool) public isInWhitelist; // Anti bot uint public tradeStartTime; uint public tradeMaxAmount; // Dex address public dexLP; address public dexRouter; // Tax uint public buyTax; uint public buyTaxCollected; uint public sellTax; uint public sellTaxCollected; uint public transferTax; uint public transferTaxCollected; uint public taxThreshold; uint public taxEndTime; address public taxHolder; event ProcessTaxSuccess(uint _taxProcess, uint _swappedETHAmount_); modifier onlyGranted(address _account) { require(_msgSender() == _account, "The caller has no rights"); _; } /** * @dev Allow contract to receive ethers */ // solhint-disable-next-line no-empty-blocks receive() external payable {} constructor(string memory _pName, string memory _pSymbol, uint256 _pInitialSupply) ERC20(_pName, _pSymbol) { address sender_ = _msgSender(); // Decimal and supply _mint(sender_, _pInitialSupply * 1e18); // Exclude addresses isInWhitelist[sender_] = true; // Tax config. Default 4% buy sell, 0% transfer taxHolder = sender_; buyTax = 4e2; sellTax = 4e2; transferTax = 0; taxThreshold = 1_000 * 1e18; taxEndTime = type(uint).max; } /** * @dev Get total tax collected */ function totalTaxCollected() public view returns (uint) { return buyTaxCollected + sellTaxCollected + transferTaxCollected; } /** * @dev Override ERC20 transfer the tokens */ function _transfer(address _pFrom, address _pTo, uint256 _pAmount) internal override { require(!isInBlacklist[_pFrom] && !isInBlacklist[_pTo], "ERC20Token: Blacklist"); // No tax types bool isZeroFee_ = isInWhitelist[_pFrom] || isInWhitelist[_pTo] || _pFrom == address(this) || block.timestamp >= taxEndTime; // Transfer types bool isRemoveLP_ = (_pFrom == dexLP && _pTo == dexRouter) || (_pFrom == dexRouter && _pTo != dexLP && _pTo != dexRouter); bool isSellOrAddLP_ = _pFrom != dexLP && _pFrom != dexRouter && _pTo == dexLP; bool isBuy_ = _pFrom == dexLP && _pTo != dexLP && _pTo != dexRouter; // Logic if (isZeroFee_ || isRemoveLP_) { super._transfer(_pFrom, _pTo, _pAmount); } else { // Cannot transfer before trade start time require(tradeStartTime > 0 && tradeStartTime <= block.timestamp, "Invalid time"); // Cannot transfer exceed trade max amount require(_pAmount <= tradeMaxAmount, "Invalid amount"); // Tax swapping first if (!isBuy_) { _processAllTax(); } // Tax calculating uint taxAmount_; if (isBuy_ && buyTax > 0) { taxAmount_ = (_pAmount * buyTax) / _RATE_NOMINATOR; buyTaxCollected += taxAmount_; } else if (isSellOrAddLP_ && sellTax > 0) { taxAmount_ = (_pAmount * sellTax) / _RATE_NOMINATOR; sellTaxCollected += taxAmount_; } else if (transferTax > 0) { taxAmount_ = (_pAmount * transferTax) / _RATE_NOMINATOR; transferTaxCollected += taxAmount_; } if (taxAmount_ > 0) { super._transfer(_pFrom, address(this), taxAmount_); } super._transfer(_pFrom, _pTo, _pAmount - taxAmount_); } } /** * @dev Set dex info * @param _pDexRouter address of router */ function fSetDexInfo(address _pDexRouter, address _pToken2) external onlyOwner { dexRouter = _pDexRouter; IUniswapRouter02 router_ = IUniswapRouter02(dexRouter); IUniswapFactory factory_ = IUniswapFactory(router_.factory()); address lpAddress_ = factory_.getPair(address(this), _pToken2); if (lpAddress_ == address(0)) { lpAddress_ = factory_.createPair(address(this), _pToken2); } dexLP = lpAddress_; } /** * @dev Function to add a account to blacklist */ function fSetBlacklist(address _pAccount, bool _pStatus) external onlyOwner { require(isInBlacklist[_pAccount] != _pStatus, "0x1"); isInBlacklist[_pAccount] = _pStatus; } /** * @dev Function to add a account to whitelist */ function fSetWhitelist(address _pAccount, bool _pStatus) external onlyOwner { require(isInWhitelist[_pAccount] != _pStatus, "0x1"); isInWhitelist[_pAccount] = _pStatus; } /** * @dev Config trade * @param _pStartTime start trade time. 0 will disable trade, should be > 0 * @param _pMaxAmount max trade amount */ function fConfigTrade(uint _pStartTime, uint _pMaxAmount) external onlyOwner { tradeStartTime = _pStartTime; tradeMaxAmount = _pMaxAmount; } /** * @dev Config tax for token * @param _pBuyTax buy tax value * @param _pSellTax sell tax value */ function fConfigTax(uint _pBuyTax, uint _pSellTax, uint _pTransferTax) external onlyOwner { buyTax = _pBuyTax; sellTax = _pSellTax; transferTax = _pTransferTax; } /** * @dev Config tax threshold */ function fConfigTaxThreshold(uint _pTaxThreshold) external onlyOwner { taxThreshold = _pTaxThreshold; } /** * @dev Config tax end time */ function fConfigTaxEndTime(uint _pTaxEndTime) external onlyOwner { taxEndTime = _pTaxEndTime; } /** * @dev Config tax holder * @param _pTaxHolder buy tax value */ function fConfigTaxHolder(address _pTaxHolder) external onlyOwner { taxHolder = _pTaxHolder; } /** * @dev Emergency withdraw eth balance */ function fEmergencyEth(address _pTo, uint256 _pAmount) external onlyOwner { require(_pTo != address(0), "fEmergencyEth:0x1"); payable(_pTo).transfer(_pAmount); } /** * @dev Emergency withdraw token balance */ function fEmergencyToken(address _pToken, address _pTo, uint256 _pAmount) external onlyOwner { require(_pTo != address(0), "fEmergencyToken:0x1"); IERC20 token_ = IERC20(_pToken); if (_pToken == address(this)) { uint balance_ = token_.balanceOf(_pToken); require(balance_ >= _pAmount + totalTaxCollected(), "fEmergencyToken:0x2"); } token_.transfer(_pTo, _pAmount); } /** * @dev Burn all tax collected */ function fBurnAllTax() external onlyGranted(taxHolder) { uint totalTax_ = totalTaxCollected(); require(totalTax_ > 0, "0x1"); _resetAllTax(); _burn(address(this), totalTax_); } /** * @dev Claim all tax collected */ function fClaimAllTax() external onlyGranted(taxHolder) { uint totalTax_ = totalTaxCollected(); require(totalTax_ > 0, "0x1"); _resetAllTax(); _transfer(address(this), taxHolder, totalTax_); } /** * @dev Reset tax collected to zero */ function _resetAllTax() private { buyTaxCollected = 0; sellTaxCollected = 0; transferTaxCollected = 0; } /** * @dev Process tax */ function _processAllTax() private { uint taxProcess = totalTaxCollected(); if (taxProcess >= taxThreshold) { // Reset tax collected _resetAllTax(); // Swap to ETH _approve(address(this), dexRouter, taxProcess); address weth_ = IUniswapRouter02(dexRouter).WETH(); address[] memory path_ = new address[](2); path_[0] = address(this); path_[1] = weth_; uint initialBalance_ = address(taxHolder).balance; IUniswapRouter02(dexRouter).swapExactTokensForETHSupportingFeeOnTransferTokens( taxProcess, 0, path_, taxHolder, block.timestamp ); uint swappedETHAmount_ = address(taxHolder).balance - initialBalance_; emit ProcessTaxSuccess(taxProcess, swappedETHAmount_); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; function approve(address spender, uint value) external; function balanceOf(address account) external view returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./IUniswapRouter01.sol"; interface IUniswapRouter02 is IUniswapRouter01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IUniswapRouter01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapTokensForExactETH( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IUniswapFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @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); }
// SPDX-License-Identifier: MIT 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @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 ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 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"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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 {} /** * @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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract 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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_pName","type":"string"},{"internalType":"string","name":"_pSymbol","type":"string"},{"internalType":"uint256","name":"_pInitialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_taxProcess","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_swappedETHAmount_","type":"uint256"}],"name":"ProcessTaxSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTaxCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dexLP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fBurnAllTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fClaimAllTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pBuyTax","type":"uint256"},{"internalType":"uint256","name":"_pSellTax","type":"uint256"},{"internalType":"uint256","name":"_pTransferTax","type":"uint256"}],"name":"fConfigTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pTaxEndTime","type":"uint256"}],"name":"fConfigTaxEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pTaxHolder","type":"address"}],"name":"fConfigTaxHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pTaxThreshold","type":"uint256"}],"name":"fConfigTaxThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pStartTime","type":"uint256"},{"internalType":"uint256","name":"_pMaxAmount","type":"uint256"}],"name":"fConfigTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pTo","type":"address"},{"internalType":"uint256","name":"_pAmount","type":"uint256"}],"name":"fEmergencyEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pToken","type":"address"},{"internalType":"address","name":"_pTo","type":"address"},{"internalType":"uint256","name":"_pAmount","type":"uint256"}],"name":"fEmergencyToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pAccount","type":"address"},{"internalType":"bool","name":"_pStatus","type":"bool"}],"name":"fSetBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pDexRouter","type":"address"},{"internalType":"address","name":"_pToken2","type":"address"}],"name":"fSetDexInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pAccount","type":"address"},{"internalType":"bool","name":"_pStatus","type":"bool"}],"name":"fSetWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isInBlacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isInWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTaxCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTaxCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradeMaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradeStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferTaxCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620025f5380380620025f5833981016040819052620000349162000397565b8251839083906200004d9060039060208501906200023e565b508051620000639060049060208401906200023e565b505050620000806200007a6200010060201b60201c565b62000104565b33620000a0816200009a84670de0b6b3a764000062000422565b62000156565b6001600160a01b03166000818152600760205260408120805460ff19166001179055601480546001600160a01b031916909217909155610190600c819055600e556010555050683635c9adc5dea0000060125550600019601355620004ad565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001b15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001c5919062000407565b90915550506001600160a01b03821660009081526020819052604081208054839290620001f490849062000407565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200024c9062000444565b90600052602060002090601f016020900481019282620002705760008555620002bb565b82601f106200028b57805160ff1916838001178555620002bb565b82800160010185558215620002bb579182015b82811115620002bb5782518255916020019190600101906200029e565b50620002c9929150620002cd565b5090565b5b80821115620002c95760008155600101620002ce565b600082601f830112620002f5578081fd5b81516001600160401b038082111562000312576200031262000497565b604051601f8301601f19908116603f011681019082821181831017156200033d576200033d62000497565b8160405283815260209250868385880101111562000359578485fd5b8491505b838210156200037c57858201830151818301840152908201906200035d565b838211156200038d57848385830101525b9695505050505050565b600080600060608486031215620003ac578283fd5b83516001600160401b0380821115620003c3578485fd5b620003d187838801620002e4565b94506020860151915080821115620003e7578384fd5b50620003f686828701620002e4565b925050604084015190509250925092565b600082198211156200041d576200041d62000481565b500190565b60008160001904831182151516156200043f576200043f62000481565b500290565b600181811c908216806200045957607f821691505b602082108114156200047b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61213880620004bd6000396000f3fe6080604052600436106102555760003560e01c80638da5cb5b11610139578063c46ad8fb116100b6578063dd62ed3e1161007a578063dd62ed3e146106bf578063dd84822014610705578063e2c7e07114610725578063ece428041461073a578063f2fde38b14610750578063f754a3421461077057600080fd5b8063c46ad8fb1461063e578063cc1776d314610654578063cf43598e1461066a578063d147e8911461068a578063d8454a82146106aa57600080fd5b8063a457c2d7116100fd578063a457c2d7146105a8578063a9059cbb146105c8578063add0ca68146105e8578063b1cc111514610608578063bf3fa5bf1461061e57600080fd5b80638da5cb5b14610510578063952b55211461052e57806395d89b411461054e5780639bab1320146105635780639caf9b001461057857600080fd5b80632c735ef8116101d25780635b07bba4116101965780635b07bba4146104635780636940a2171461047957806370a0823114610499578063715018a6146104cf57806377d1440d146104e45780638124f7ac146104fa57600080fd5b80632c735ef8146103db578063313ce567146103f1578063395093511461040d5780634e1c35a21461042d5780634f7041a51461044d57600080fd5b8063097db0a111610219578063097db0a11461033257806309fd82121461035657806318160ddd1461038657806323b872dd1461039b578063241de63d146103bb57600080fd5b806302698e391461026157806304d3d0941461028357806306fdde03146102c05780630758d924146102e2578063095ea7b31461030257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004611da3565b610790565b005b34801561028f57600080fd5b50600a546102a3906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156102cc57600080fd5b506102d5610993565b6040516102b79190611f0b565b3480156102ee57600080fd5b50600b546102a3906001600160a01b031681565b34801561030e57600080fd5b5061032261031d366004611e48565b610a25565b60405190151581526020016102b7565b34801561033e57600080fd5b50610348600d5481565b6040519081526020016102b7565b34801561036257600080fd5b50610322610371366004611d64565b60076020526000908152604090205460ff1681565b34801561039257600080fd5b50600254610348565b3480156103a757600080fd5b506103226103b6366004611ddb565b610a3b565b3480156103c757600080fd5b506102816103d6366004611e1b565b610ae5565b3480156103e757600080fd5b5061034860085481565b3480156103fd57600080fd5b50604051601281526020016102b7565b34801561041957600080fd5b50610322610428366004611e48565b610b79565b34801561043957600080fd5b50610281610448366004611ddb565b610bb5565b34801561045957600080fd5b50610348600c5481565b34801561046f57600080fd5b5061034860115481565b34801561048557600080fd5b50610281610494366004611e8f565b610d9e565b3480156104a557600080fd5b506103486104b4366004611d64565b6001600160a01b031660009081526020819052604090205490565b3480156104db57600080fd5b50610281610dcd565b3480156104f057600080fd5b5061034860125481565b34801561050657600080fd5b5061034860105481565b34801561051c57600080fd5b506005546001600160a01b03166102a3565b34801561053a57600080fd5b506014546102a3906001600160a01b031681565b34801561055a57600080fd5b506102d5610e03565b34801561056f57600080fd5b50610281610e12565b34801561058457600080fd5b50610322610593366004611d64565b60066020526000908152604090205460ff1681565b3480156105b457600080fd5b506103226105c3366004611e48565b610ec4565b3480156105d457600080fd5b506103226105e3366004611e48565b610f5d565b3480156105f457600080fd5b50610281610603366004611e1b565b610f6a565b34801561061457600080fd5b50610348600f5481565b34801561062a57600080fd5b50610281610639366004611e8f565b610ffe565b34801561064a57600080fd5b5061034860135481565b34801561066057600080fd5b50610348600e5481565b34801561067657600080fd5b50610281610685366004611e48565b61102d565b34801561069657600080fd5b506102816106a5366004611ee0565b6110dc565b3480156106b657600080fd5b50610348611114565b3480156106cb57600080fd5b506103486106da366004611da3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561071157600080fd5b50610281610720366004611d64565b611138565b34801561073157600080fd5b50610281611184565b34801561074657600080fd5b5061034860095481565b34801561075c57600080fd5b5061028161076b366004611d64565b611224565b34801561077c57600080fd5b5061028161078b366004611ebf565b6112bf565b6005546001600160a01b031633146107c35760405162461bcd60e51b81526004016107ba90611f7b565b60405180910390fd5b600b80546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b81529051600091839163c45a015591600480820192602092909190829003018186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108549190611d87565b60405163e6a4390560e01b81523060048201526001600160a01b03858116602483015291925060009183169063e6a439059060440160206040518083038186803b1580156108a157600080fd5b505afa1580156108b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d99190611d87565b90506001600160a01b03811661096d576040516364e329cb60e11b81523060048201526001600160a01b03858116602483015283169063c9c6539690604401602060405180830381600087803b15801561093257600080fd5b505af1158015610946573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096a9190611d87565b90505b600a80546001600160a01b0319166001600160a01b039290921691909117905550505050565b6060600380546109a29061208e565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce9061208e565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b6000610a323384846112f4565b50600192915050565b6000610a48848484611418565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610acd5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107ba565b610ada85338584036112f4565b506001949350505050565b6005546001600160a01b03163314610b0f5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b03821660009081526007602052604090205460ff1615158115151415610b4e5760405162461bcd60e51b81526004016107ba90611f5e565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a32918590610bb0908690612020565b6112f4565b6005546001600160a01b03163314610bdf5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b038216610c2b5760405162461bcd60e51b815260206004820152601360248201527266456d657267656e6379546f6b656e3a30783160681b60448201526064016107ba565b826001600160a01b038116301415610d15576040516370a0823160e01b81526001600160a01b038581166004830152600091908316906370a082319060240160206040518083038186803b158015610c8257600080fd5b505afa158015610c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cba9190611ea7565b9050610cc4611114565b610cce9084612020565b811015610d135760405162461bcd60e51b81526020600482015260136024820152723322b6b2b933b2b731bcaa37b5b2b71d183c1960691b60448201526064016107ba565b505b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b158015610d5f57600080fd5b505af1158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d979190611e73565b5050505050565b6005546001600160a01b03163314610dc85760405162461bcd60e51b81526004016107ba90611f7b565b601255565b6005546001600160a01b03163314610df75760405162461bcd60e51b81526004016107ba90611f7b565b610e0160006117cd565b565b6060600480546109a29061208e565b6014546001600160a01b0316338114610e685760405162461bcd60e51b81526020600482015260186024820152775468652063616c6c657220686173206e6f2072696768747360401b60448201526064016107ba565b6000610e72611114565b905060008111610e945760405162461bcd60e51b81526004016107ba90611f5e565b610ea86000600d819055600f819055601155565b601454610ec09030906001600160a01b031683611418565b5050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f465760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107ba565b610f5333858584036112f4565b5060019392505050565b6000610a32338484611418565b6005546001600160a01b03163314610f945760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b03821660009081526006602052604090205460ff1615158115151415610fd35760405162461bcd60e51b81526004016107ba90611f5e565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110285760405162461bcd60e51b81526004016107ba90611f7b565b601355565b6005546001600160a01b031633146110575760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b0382166110a15760405162461bcd60e51b815260206004820152601160248201527066456d657267656e63794574683a30783160781b60448201526064016107ba565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156110d7573d6000803e3d6000fd5b505050565b6005546001600160a01b031633146111065760405162461bcd60e51b81526004016107ba90611f7b565b600c92909255600e55601055565b6000601154600f54600d546111299190612020565b6111339190612020565b905090565b6005546001600160a01b031633146111625760405162461bcd60e51b81526004016107ba90611f7b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b03163381146111da5760405162461bcd60e51b81526020600482015260186024820152775468652063616c6c657220686173206e6f2072696768747360401b60448201526064016107ba565b60006111e4611114565b9050600081116112065760405162461bcd60e51b81526004016107ba90611f5e565b61121a6000600d819055600f819055601155565b610ec0308261181f565b6005546001600160a01b0316331461124e5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b0381166112b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ba565b6112bc816117cd565b50565b6005546001600160a01b031633146112e95760405162461bcd60e51b81526004016107ba90611f7b565b600891909155600955565b6001600160a01b0383166113565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ba565b6001600160a01b0382166113b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ba565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831660009081526006602052604090205460ff1615801561145a57506001600160a01b03821660009081526006602052604090205460ff16155b61149e5760405162461bcd60e51b8152602060048201526015602482015274115490cc8c151bdad95b8e88109b1858dadb1a5cdd605a1b60448201526064016107ba565b6001600160a01b03831660009081526007602052604081205460ff16806114dd57506001600160a01b03831660009081526007602052604090205460ff165b806114f057506001600160a01b03841630145b806114fd57506013544210155b600a549091506000906001600160a01b03868116911614801561152d5750600b546001600160a01b038581169116145b806115785750600b546001600160a01b03868116911614801561155e5750600a546001600160a01b03858116911614155b80156115785750600b546001600160a01b03858116911614155b600a549091506000906001600160a01b038781169116148015906115aa5750600b546001600160a01b03878116911614155b80156115c35750600a546001600160a01b038681169116145b600a549091506000906001600160a01b0388811691161480156115f45750600a546001600160a01b03878116911614155b801561160e5750600b546001600160a01b03878116911614155b905083806116195750825b1561162e5761162987878761196d565b6117c4565b600060085411801561164257504260085411155b61167d5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016107ba565b6009548511156116c05760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016107ba565b806116cd576116cd611b3c565b60008180156116de57506000600c54115b1561171d57612710600c54876116f49190612058565b6116fe9190612038565b905080600d60008282546117129190612020565b9091555061179d9050565b82801561172c57506000600e54115b1561176057612710600e54876117429190612058565b61174c9190612038565b905080600f60008282546117129190612020565b6010541561179d57612710601054876117799190612058565b6117839190612038565b905080601160008282546117979190612020565b90915550505b80156117ae576117ae88308361196d565b6117c288886117bd848a612077565b61196d565b505b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107ba565b6001600160a01b038216600090815260208190526040902054818110156118f35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107ba565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611922908490612077565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b0383166119d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107ba565b6001600160a01b038216611a335760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107ba565b6001600160a01b03831660009081526020819052604090205481811015611aab5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107ba565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ae2908490612020565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b2e91815260200190565b60405180910390a350505050565b6000611b46611114565b905060125481106112bc57611b656000600d819055600f819055601155565b600b54611b7d9030906001600160a01b0316836112f4565b600b54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c4648916004808301926020929190829003018186803b158015611bc257600080fd5b505afa158015611bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfa9190611d87565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110611c4257634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110611c8457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601454600b5460405163791ac94760e01b8152918316803193919091169163791ac94791611cd49188916000918891904290600401611fb0565b600060405180830381600087803b158015611cee57600080fd5b505af1158015611d02573d6000803e3d6000fd5b505060145460009250611d21915083906001600160a01b031631612077565b60408051878152602081018390529192507ffe5c34e54c1a4aabb3dad9c4b262d6732c5c3a537a53d8f66cde08f99a84abce910160405180910390a15050505050565b600060208284031215611d75578081fd5b8135611d80816120df565b9392505050565b600060208284031215611d98578081fd5b8151611d80816120df565b60008060408385031215611db5578081fd5b8235611dc0816120df565b91506020830135611dd0816120df565b809150509250929050565b600080600060608486031215611def578081fd5b8335611dfa816120df565b92506020840135611e0a816120df565b929592945050506040919091013590565b60008060408385031215611e2d578182fd5b8235611e38816120df565b91506020830135611dd0816120f4565b60008060408385031215611e5a578182fd5b8235611e65816120df565b946020939093013593505050565b600060208284031215611e84578081fd5b8151611d80816120f4565b600060208284031215611ea0578081fd5b5035919050565b600060208284031215611eb8578081fd5b5051919050565b60008060408385031215611ed1578182fd5b50508035926020909101359150565b600080600060608486031215611ef4578283fd5b505081359360208301359350604090920135919050565b6000602080835283518082850152825b81811015611f3757858101830151858201604001528201611f1b565b81811115611f485783604083870101525b50601f01601f1916929092016040019392505050565b60208082526003908201526230783160e81b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015611fff5784516001600160a01b031683529383019391830191600101611fda565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612033576120336120c9565b500190565b60008261205357634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612072576120726120c9565b500290565b600082821015612089576120896120c9565b500390565b600181811c908216806120a257607f821691505b602082108114156120c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146112bc57600080fd5b80151581146112bc57600080fdfea2646970667358221220b967dbecc5c7e36e139d693548ab5e22b2bb71858ab6ee05dd1d2e9f4d332a6864736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000752696e6720414900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000452494e4700000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102555760003560e01c80638da5cb5b11610139578063c46ad8fb116100b6578063dd62ed3e1161007a578063dd62ed3e146106bf578063dd84822014610705578063e2c7e07114610725578063ece428041461073a578063f2fde38b14610750578063f754a3421461077057600080fd5b8063c46ad8fb1461063e578063cc1776d314610654578063cf43598e1461066a578063d147e8911461068a578063d8454a82146106aa57600080fd5b8063a457c2d7116100fd578063a457c2d7146105a8578063a9059cbb146105c8578063add0ca68146105e8578063b1cc111514610608578063bf3fa5bf1461061e57600080fd5b80638da5cb5b14610510578063952b55211461052e57806395d89b411461054e5780639bab1320146105635780639caf9b001461057857600080fd5b80632c735ef8116101d25780635b07bba4116101965780635b07bba4146104635780636940a2171461047957806370a0823114610499578063715018a6146104cf57806377d1440d146104e45780638124f7ac146104fa57600080fd5b80632c735ef8146103db578063313ce567146103f1578063395093511461040d5780634e1c35a21461042d5780634f7041a51461044d57600080fd5b8063097db0a111610219578063097db0a11461033257806309fd82121461035657806318160ddd1461038657806323b872dd1461039b578063241de63d146103bb57600080fd5b806302698e391461026157806304d3d0941461028357806306fdde03146102c05780630758d924146102e2578063095ea7b31461030257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004611da3565b610790565b005b34801561028f57600080fd5b50600a546102a3906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156102cc57600080fd5b506102d5610993565b6040516102b79190611f0b565b3480156102ee57600080fd5b50600b546102a3906001600160a01b031681565b34801561030e57600080fd5b5061032261031d366004611e48565b610a25565b60405190151581526020016102b7565b34801561033e57600080fd5b50610348600d5481565b6040519081526020016102b7565b34801561036257600080fd5b50610322610371366004611d64565b60076020526000908152604090205460ff1681565b34801561039257600080fd5b50600254610348565b3480156103a757600080fd5b506103226103b6366004611ddb565b610a3b565b3480156103c757600080fd5b506102816103d6366004611e1b565b610ae5565b3480156103e757600080fd5b5061034860085481565b3480156103fd57600080fd5b50604051601281526020016102b7565b34801561041957600080fd5b50610322610428366004611e48565b610b79565b34801561043957600080fd5b50610281610448366004611ddb565b610bb5565b34801561045957600080fd5b50610348600c5481565b34801561046f57600080fd5b5061034860115481565b34801561048557600080fd5b50610281610494366004611e8f565b610d9e565b3480156104a557600080fd5b506103486104b4366004611d64565b6001600160a01b031660009081526020819052604090205490565b3480156104db57600080fd5b50610281610dcd565b3480156104f057600080fd5b5061034860125481565b34801561050657600080fd5b5061034860105481565b34801561051c57600080fd5b506005546001600160a01b03166102a3565b34801561053a57600080fd5b506014546102a3906001600160a01b031681565b34801561055a57600080fd5b506102d5610e03565b34801561056f57600080fd5b50610281610e12565b34801561058457600080fd5b50610322610593366004611d64565b60066020526000908152604090205460ff1681565b3480156105b457600080fd5b506103226105c3366004611e48565b610ec4565b3480156105d457600080fd5b506103226105e3366004611e48565b610f5d565b3480156105f457600080fd5b50610281610603366004611e1b565b610f6a565b34801561061457600080fd5b50610348600f5481565b34801561062a57600080fd5b50610281610639366004611e8f565b610ffe565b34801561064a57600080fd5b5061034860135481565b34801561066057600080fd5b50610348600e5481565b34801561067657600080fd5b50610281610685366004611e48565b61102d565b34801561069657600080fd5b506102816106a5366004611ee0565b6110dc565b3480156106b657600080fd5b50610348611114565b3480156106cb57600080fd5b506103486106da366004611da3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561071157600080fd5b50610281610720366004611d64565b611138565b34801561073157600080fd5b50610281611184565b34801561074657600080fd5b5061034860095481565b34801561075c57600080fd5b5061028161076b366004611d64565b611224565b34801561077c57600080fd5b5061028161078b366004611ebf565b6112bf565b6005546001600160a01b031633146107c35760405162461bcd60e51b81526004016107ba90611f7b565b60405180910390fd5b600b80546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b81529051600091839163c45a015591600480820192602092909190829003018186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108549190611d87565b60405163e6a4390560e01b81523060048201526001600160a01b03858116602483015291925060009183169063e6a439059060440160206040518083038186803b1580156108a157600080fd5b505afa1580156108b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d99190611d87565b90506001600160a01b03811661096d576040516364e329cb60e11b81523060048201526001600160a01b03858116602483015283169063c9c6539690604401602060405180830381600087803b15801561093257600080fd5b505af1158015610946573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096a9190611d87565b90505b600a80546001600160a01b0319166001600160a01b039290921691909117905550505050565b6060600380546109a29061208e565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce9061208e565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b6000610a323384846112f4565b50600192915050565b6000610a48848484611418565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610acd5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107ba565b610ada85338584036112f4565b506001949350505050565b6005546001600160a01b03163314610b0f5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b03821660009081526007602052604090205460ff1615158115151415610b4e5760405162461bcd60e51b81526004016107ba90611f5e565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a32918590610bb0908690612020565b6112f4565b6005546001600160a01b03163314610bdf5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b038216610c2b5760405162461bcd60e51b815260206004820152601360248201527266456d657267656e6379546f6b656e3a30783160681b60448201526064016107ba565b826001600160a01b038116301415610d15576040516370a0823160e01b81526001600160a01b038581166004830152600091908316906370a082319060240160206040518083038186803b158015610c8257600080fd5b505afa158015610c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cba9190611ea7565b9050610cc4611114565b610cce9084612020565b811015610d135760405162461bcd60e51b81526020600482015260136024820152723322b6b2b933b2b731bcaa37b5b2b71d183c1960691b60448201526064016107ba565b505b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b158015610d5f57600080fd5b505af1158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d979190611e73565b5050505050565b6005546001600160a01b03163314610dc85760405162461bcd60e51b81526004016107ba90611f7b565b601255565b6005546001600160a01b03163314610df75760405162461bcd60e51b81526004016107ba90611f7b565b610e0160006117cd565b565b6060600480546109a29061208e565b6014546001600160a01b0316338114610e685760405162461bcd60e51b81526020600482015260186024820152775468652063616c6c657220686173206e6f2072696768747360401b60448201526064016107ba565b6000610e72611114565b905060008111610e945760405162461bcd60e51b81526004016107ba90611f5e565b610ea86000600d819055600f819055601155565b601454610ec09030906001600160a01b031683611418565b5050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f465760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107ba565b610f5333858584036112f4565b5060019392505050565b6000610a32338484611418565b6005546001600160a01b03163314610f945760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b03821660009081526006602052604090205460ff1615158115151415610fd35760405162461bcd60e51b81526004016107ba90611f5e565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110285760405162461bcd60e51b81526004016107ba90611f7b565b601355565b6005546001600160a01b031633146110575760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b0382166110a15760405162461bcd60e51b815260206004820152601160248201527066456d657267656e63794574683a30783160781b60448201526064016107ba565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156110d7573d6000803e3d6000fd5b505050565b6005546001600160a01b031633146111065760405162461bcd60e51b81526004016107ba90611f7b565b600c92909255600e55601055565b6000601154600f54600d546111299190612020565b6111339190612020565b905090565b6005546001600160a01b031633146111625760405162461bcd60e51b81526004016107ba90611f7b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b03163381146111da5760405162461bcd60e51b81526020600482015260186024820152775468652063616c6c657220686173206e6f2072696768747360401b60448201526064016107ba565b60006111e4611114565b9050600081116112065760405162461bcd60e51b81526004016107ba90611f5e565b61121a6000600d819055600f819055601155565b610ec0308261181f565b6005546001600160a01b0316331461124e5760405162461bcd60e51b81526004016107ba90611f7b565b6001600160a01b0381166112b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ba565b6112bc816117cd565b50565b6005546001600160a01b031633146112e95760405162461bcd60e51b81526004016107ba90611f7b565b600891909155600955565b6001600160a01b0383166113565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ba565b6001600160a01b0382166113b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ba565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831660009081526006602052604090205460ff1615801561145a57506001600160a01b03821660009081526006602052604090205460ff16155b61149e5760405162461bcd60e51b8152602060048201526015602482015274115490cc8c151bdad95b8e88109b1858dadb1a5cdd605a1b60448201526064016107ba565b6001600160a01b03831660009081526007602052604081205460ff16806114dd57506001600160a01b03831660009081526007602052604090205460ff165b806114f057506001600160a01b03841630145b806114fd57506013544210155b600a549091506000906001600160a01b03868116911614801561152d5750600b546001600160a01b038581169116145b806115785750600b546001600160a01b03868116911614801561155e5750600a546001600160a01b03858116911614155b80156115785750600b546001600160a01b03858116911614155b600a549091506000906001600160a01b038781169116148015906115aa5750600b546001600160a01b03878116911614155b80156115c35750600a546001600160a01b038681169116145b600a549091506000906001600160a01b0388811691161480156115f45750600a546001600160a01b03878116911614155b801561160e5750600b546001600160a01b03878116911614155b905083806116195750825b1561162e5761162987878761196d565b6117c4565b600060085411801561164257504260085411155b61167d5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016107ba565b6009548511156116c05760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016107ba565b806116cd576116cd611b3c565b60008180156116de57506000600c54115b1561171d57612710600c54876116f49190612058565b6116fe9190612038565b905080600d60008282546117129190612020565b9091555061179d9050565b82801561172c57506000600e54115b1561176057612710600e54876117429190612058565b61174c9190612038565b905080600f60008282546117129190612020565b6010541561179d57612710601054876117799190612058565b6117839190612038565b905080601160008282546117979190612020565b90915550505b80156117ae576117ae88308361196d565b6117c288886117bd848a612077565b61196d565b505b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107ba565b6001600160a01b038216600090815260208190526040902054818110156118f35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107ba565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611922908490612077565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b0383166119d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107ba565b6001600160a01b038216611a335760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107ba565b6001600160a01b03831660009081526020819052604090205481811015611aab5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107ba565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ae2908490612020565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b2e91815260200190565b60405180910390a350505050565b6000611b46611114565b905060125481106112bc57611b656000600d819055600f819055601155565b600b54611b7d9030906001600160a01b0316836112f4565b600b54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c4648916004808301926020929190829003018186803b158015611bc257600080fd5b505afa158015611bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfa9190611d87565b60408051600280825260608201835292935060009290916020830190803683370190505090503081600081518110611c4257634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110611c8457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601454600b5460405163791ac94760e01b8152918316803193919091169163791ac94791611cd49188916000918891904290600401611fb0565b600060405180830381600087803b158015611cee57600080fd5b505af1158015611d02573d6000803e3d6000fd5b505060145460009250611d21915083906001600160a01b031631612077565b60408051878152602081018390529192507ffe5c34e54c1a4aabb3dad9c4b262d6732c5c3a537a53d8f66cde08f99a84abce910160405180910390a15050505050565b600060208284031215611d75578081fd5b8135611d80816120df565b9392505050565b600060208284031215611d98578081fd5b8151611d80816120df565b60008060408385031215611db5578081fd5b8235611dc0816120df565b91506020830135611dd0816120df565b809150509250929050565b600080600060608486031215611def578081fd5b8335611dfa816120df565b92506020840135611e0a816120df565b929592945050506040919091013590565b60008060408385031215611e2d578182fd5b8235611e38816120df565b91506020830135611dd0816120f4565b60008060408385031215611e5a578182fd5b8235611e65816120df565b946020939093013593505050565b600060208284031215611e84578081fd5b8151611d80816120f4565b600060208284031215611ea0578081fd5b5035919050565b600060208284031215611eb8578081fd5b5051919050565b60008060408385031215611ed1578182fd5b50508035926020909101359150565b600080600060608486031215611ef4578283fd5b505081359360208301359350604090920135919050565b6000602080835283518082850152825b81811015611f3757858101830151858201604001528201611f1b565b81811115611f485783604083870101525b50601f01601f1916929092016040019392505050565b60208082526003908201526230783160e81b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015611fff5784516001600160a01b031683529383019391830191600101611fda565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612033576120336120c9565b500190565b60008261205357634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612072576120726120c9565b500290565b600082821015612089576120896120c9565b500390565b600181811c908216806120a257607f821691505b602082108114156120c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146112bc57600080fd5b80151581146112bc57600080fdfea2646970667358221220b967dbecc5c7e36e139d693548ab5e22b2bb71858ab6ee05dd1d2e9f4d332a6864736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000752696e6720414900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000452494e4700000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _pName (string): Ring AI
Arg [1] : _pSymbol (string): RING
Arg [2] : _pInitialSupply (uint256): 100000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 52696e6720414900000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 52494e4700000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.