Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
20,986,466,808,290.038199591423011338 FOFO
Holders
1,038
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
13,339,666,129.859215276218110055 FOFOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FOFO
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./ERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; interface IUniswapV2Factory { function createPair( address tokenA, address tokenB ) external returns (address pair); } interface IUniswapV2Router02 { function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; 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); } contract FOFO is ERC20, Pausable, Ownable { using SafeMath for uint256; IUniswapV2Router02 private uniswapV2Router; address private WETH; mapping(address => bool) private pairs; uint8 private constant _decimals = 18; bool private inSwap = false; bool private tradingOpen = false; uint256 private tradingTime = 1683543600; address private uniswapV2Pair; bool private isSwapAndLp = true; address private devpayee; address private fundpayee; address private lppayee; uint256 public _lpFee = 0; uint256 public _burnFee = 10; uint256 public _fundFee = 20; uint256 public _devFee = 20; bool public limited; uint256 public maxHoldingAmount; uint256 public minHoldingAmount; modifier lockTheSwap() { inSwap = true; _; inSwap = false; } constructor( uint256 _totalSupply, address _devpayee, address _fundpayee ) ERC20("FOFO Token", "FOFO") { _mint(msg.sender, _totalSupply); devpayee = _devpayee; fundpayee = _fundpayee; uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); WETH = uniswapV2Router.WETH(); uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair( address(this), WETH ); pairs[uniswapV2Pair] = true; } function decimals() public pure override returns (uint8) { return _decimals; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setRule( bool _limited, uint256 _maxHoldingAmount, uint256 _minHoldingAmount ) external onlyOwner { limited = _limited; maxHoldingAmount = _maxHoldingAmount; minHoldingAmount = _minHoldingAmount; } function addPairs(address toPair, bool _enable) public onlyOwner { require(!pairs[toPair], "This pair is already excluded"); pairs[toPair] = _enable; } function pair(address _pair) public view virtual onlyOwner returns (bool) { return pairs[_pair]; } function setPayee( address _devpayee, address _fundpayee, address _lppayee ) external onlyOwner { devpayee = _devpayee; fundpayee = _fundpayee; lppayee = _lppayee; } function setFees( uint256 fundFee, uint256 devFee, uint256 lpFee, uint256 burnFee ) external onlyOwner { _fundFee = fundFee; _devFee = devFee; _lpFee = lpFee; _burnFee = burnFee; } function setIsSwapAndLp(bool _isSwapAndLp) external onlyOwner { isSwapAndLp = _isSwapAndLp; } function _transfer( address from, address to, uint256 amount ) internal virtual override whenNotPaused { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); uint256 fromBalance = balanceOf(from); require( fromBalance >= amount, "ERC20: transfer amount exceeds balance" ); if (!tradingOpen) { if (block.timestamp >= tradingTime) { tradingOpen = true; } } if (tradingOpen) { if (from != address(this) && pairs[to]) { uint256 taxAmount = _transferTax(from, amount); super._transfer(from, to, amount.sub(taxAmount)); } else { if (limited && from == uniswapV2Pair) { require( super.balanceOf(to) + amount <= maxHoldingAmount && super.balanceOf(to) + amount >= minHoldingAmount, "Forbid" ); } super._transfer(from, to, amount); } } else { if (to == uniswapV2Pair || from == uniswapV2Pair) { if (from == owner() || to == owner()) { super._transfer(from, to, amount); } else { require(false, "Trading isn't open"); } } else { super._transfer(from, to, amount); } } } function _transferTax( address from, uint256 amount ) internal returns (uint256) { uint256 burnAmount = amount.mul(_burnFee).div(10 ** 3); if (burnAmount > 0) { _swapBurn(from, burnAmount); } uint256 devAmount = amount.mul(_devFee).div(10 ** 3); if (devAmount > 0) { if (!isSwapAndLp) { _swapTransfer(from, address(this), devAmount); swapTokensForEth(devAmount, devpayee); } else if (isSwapAndLp && !inSwap) { _swapTransfer(from, devpayee, devAmount); } } uint256 fundAmount = amount.mul(_fundFee).div(10 ** 3); if (fundAmount > 0) { if (!isSwapAndLp) { _swapTransfer(from, address(this), fundAmount); swapTokensForEth(fundAmount, fundpayee); } else if (isSwapAndLp && !inSwap) { _swapTransfer(from, fundpayee, fundAmount); } } uint256 lpAmount = amount.mul(_lpFee).div(10 ** 3); if (lpAmount > 0) { swapAndLiquify(lpAmount); } return burnAmount.add(devAmount).add(fundAmount).add(lpAmount); } function manualswap() external onlyOwner { uint256 contractBalance = balanceOf(address(this)); swapTokensForEth(contractBalance, devpayee); } function manualBurn(uint256 amount) public virtual onlyOwner { _burn(address(this), amount); } function swapAndLiquify(uint256 _tokenBalance) private lockTheSwap { uint256 half = _tokenBalance.div(2); uint256 otherHalf = _tokenBalance.sub(half); uint256 initialBalance = address(this).balance; swapTokensForEth(half, address(this)); addLiquidity(otherHalf, address(this).balance.sub(initialBalance)); } function swapTokensForEth( uint256 tokenAmount, address to ) private lockTheSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = WETH; _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, to, block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 _ethAmount) private { _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.addLiquidityETH{value: _ethAmount}( address(this), tokenAmount, 0, 0, lppayee, block.timestamp ); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, amount); } function setTrading(uint256 _tradingTime) external onlyOwner { tradingTime = _tradingTime; } function withdraw(address token) public onlyOwner { if (token == address(0)) { uint amount = address(this).balance; (bool success, ) = payable(owner()).call{value: amount}(""); require(success, "Failed to send Ether"); } else { uint256 amount = ERC20(token).balanceOf(address(this)); ERC20(token).transfer(owner(), amount); } } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer( address to, uint256 amount ) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve( address spender, uint256 amount ) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } /** * @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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require( fromBalance >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * * Requirements:(Validation need to be done upfront.) * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _swapTransfer( address from, address to, uint256 amount ) internal virtual { uint256 fromBalance = _balances[from]; unchecked { _balances[from] = fromBalance - amount; } _balances[to] += 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 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 _swapBurn(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; _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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(owner, spender, currentAllowance - 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 {} }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"address","name":"_devpayee","type":"address"},{"internalType":"address","name":"_fundpayee","type":"address"}],"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":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_fundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_lpFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toPair","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"}],"name":"addPairs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[{"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":[],"name":"limited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxHoldingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minHoldingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_pair","type":"address"}],"name":"pair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fundFee","type":"uint256"},{"internalType":"uint256","name":"devFee","type":"uint256"},{"internalType":"uint256","name":"lpFee","type":"uint256"},{"internalType":"uint256","name":"burnFee","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSwapAndLp","type":"bool"}],"name":"setIsSwapAndLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devpayee","type":"address"},{"internalType":"address","name":"_fundpayee","type":"address"},{"internalType":"address","name":"_lppayee","type":"address"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_limited","type":"bool"},{"internalType":"uint256","name":"_maxHoldingAmount","type":"uint256"},{"internalType":"uint256","name":"_minHoldingAmount","type":"uint256"}],"name":"setRule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tradingTime","type":"uint256"}],"name":"setTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526009805461ffff19169055636458d630600a908155600b805460ff60a01b1916600160a01b1790556000600f55601055601460118190556012553480156200004b57600080fd5b506040516200275f3803806200275f8339810160408190526200006e91620005a8565b604080518082018252600a8152692327a327902a37b5b2b760b11b602080830191825283518085019094526004845263464f464f60e01b908401528151919291620000bc91600391620004c1565b508051620000d2906004906020840190620004c1565b50506005805460ff1916905550620000f3620000ed62000325565b62000329565b620000ff338462000383565b600c80546001600160a01b038085166001600160a01b031992831617909255600d805484841690831617905560068054909116737a250d5630b4cf539739df2c5dacb4c659f2488d1790819055604080516315ab88c960e31b81529051919092169163ad5c4648916004808301926020929190829003018186803b1580156200018757600080fd5b505afa1580156200019c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c2919062000584565b600780546001600160a01b0319166001600160a01b039283161790556006546040805163c45a015560e01b81529051919092169163c45a0155916004808301926020929190829003018186803b1580156200021c57600080fd5b505afa15801562000231573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000257919062000584565b6007546040516364e329cb60e11b81526001600160a01b039283169263c9c65396926200028d92309290911690600401620005e8565b602060405180830381600087803b158015620002a857600080fd5b505af1158015620002bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e3919062000584565b600b80546001600160a01b0319166001600160a01b039283161790819055166000908152600860205260409020805460ff1916600117905550620006ce915050565b3390565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003b55760405162461bcd60e51b8152600401620003ac906200062c565b60405180910390fd5b620003c36000838362000465565b8060026000828254620003d791906200066c565b90915550506001600160a01b03821660009081526020819052604081208054839290620004069084906200066c565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200044b90859062000663565b60405180910390a3620004616000838362000487565b5050565b6200046f6200048c565b620004878383836200048760201b620009ff1760201c565b505050565b62000496620004b8565b15620004b65760405162461bcd60e51b8152600401620003ac9062000602565b565b60055460ff1690565b828054620004cf9062000691565b90600052602060002090601f016020900481019282620004f357600085556200053e565b82601f106200050e57805160ff19168380011785556200053e565b828001600101855582156200053e579182015b828111156200053e57825182559160200191906001019062000521565b506200054c92915062000550565b5090565b5b808211156200054c576000815560010162000551565b80516001600160a01b03811681146200057f57600080fd5b919050565b60006020828403121562000596578081fd5b620005a18262000567565b9392505050565b600080600060608486031215620005bd578182fd5b83519250620005cf6020850162000567565b9150620005df6040850162000567565b90509250925092565b6001600160a01b0392831681529116602082015260400190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b600082198211156200068c57634e487b7160e01b81526011600452602481fd5b500190565b600281046001821680620006a657607f821691505b60208210811415620006c857634e487b7160e01b600052602260045260246000fd5b50919050565b61208180620006de6000396000f3fe6080604052600436106102135760003560e01c8063715018a611610118578063a457c2d7116100a0578063c3c8cd801161006f578063c3c8cd80146105a6578063d07ea4e2146105bb578063d91eb81b146105db578063dd62ed3e146105f0578063f2fde38b146106105761021a565b8063a457c2d71461053c578063a9059cbb1461055c578063aa45026b1461057c578063c0b0fda2146105915761021a565b8063860a32ec116100e7578063860a32ec146104bb57806389f9a1d3146104d05780638da5cb5b146104e557806395d89b41146105075780639ed2b1711461051c5761021a565b8063715018a61461045157806379cc6790146104665780637fb992f7146104865780638456cb59146104a65761021a565b806323b872dd1161019b57806342966c681161016a57806342966c68146103bc57806351cff8d9146103dc5780635c975abb146103fc5780636fcba3771461041157806370a08231146104315761021a565b806323b872dd14610345578063313ce5671461036557806339509351146103875780633f4ba83a146103a75761021a565b806318160ddd116101e257806318160ddd146102bb5780631ab99e12146102d05780631b81cb6c146102e55780632383eb8f1461030557806323b63585146103255761021a565b806306fdde031461021f578063095ea7b31461024a57806309cd52f51461027757806315c93a7d146102995761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b50610234610630565b6040516102419190611acd565b60405180910390f35b34801561025657600080fd5b5061026a610265366004611934565b6106c2565b6040516102419190611ac2565b34801561028357600080fd5b50610297610292366004611881565b6106e4565b005b3480156102a557600080fd5b506102ae61072b565b6040516102419190611ef7565b3480156102c757600080fd5b506102ae610731565b3480156102dc57600080fd5b506102ae610737565b3480156102f157600080fd5b506102976103003660046118fe565b61073d565b34801561031157600080fd5b506102976103203660046119c9565b6107b2565b34801561033157600080fd5b506102976103403660046119c9565b6107bf565b34801561035157600080fd5b5061026a6103603660046118c3565b6107d4565b34801561037157600080fd5b5061037a610802565b6040516102419190611f70565b34801561039357600080fd5b5061026a6103a2366004611934565b610807565b3480156103b357600080fd5b50610297610833565b3480156103c857600080fd5b506102976103d73660046119c9565b610845565b3480156103e857600080fd5b506102976103f7366004611835565b610856565b34801561040857600080fd5b5061026a610a04565b34801561041d57600080fd5b5061029761042c366004611a26565b610a0d565b34801561043d57600080fd5b506102ae61044c366004611835565b610a29565b34801561045d57600080fd5b50610297610a48565b34801561047257600080fd5b50610297610481366004611934565b610a5a565b34801561049257600080fd5b5061026a6104a1366004611835565b610a7a565b3480156104b257600080fd5b50610297610aa3565b3480156104c757600080fd5b5061026a610ab3565b3480156104dc57600080fd5b506102ae610abc565b3480156104f157600080fd5b506104fa610ac2565b6040516102419190611a5a565b34801561051357600080fd5b50610234610ad6565b34801561052857600080fd5b5061029761053736600461195d565b610ae5565b34801561054857600080fd5b5061026a610557366004611934565b610b0b565b34801561056857600080fd5b5061026a610577366004611934565b610b53565b34801561058857600080fd5b506102ae610b6b565b34801561059d57600080fd5b506102ae610b71565b3480156105b257600080fd5b50610297610b77565b3480156105c757600080fd5b506102976105d6366004611995565b610ba4565b3480156105e757600080fd5b506102ae610bc6565b3480156105fc57600080fd5b506102ae61060b36600461184f565b610bcc565b34801561061c57600080fd5b5061029761062b366004611835565b610bf7565b60606003805461063f90611fec565b80601f016020809104026020016040519081016040528092919081815260200182805461066b90611fec565b80156106b85780601f1061068d576101008083540402835291602001916106b8565b820191906000526020600020905b81548152906001019060200180831161069b57829003601f168201915b5050505050905090565b6000806106cd610c2e565b90506106da818585610c32565b5060019392505050565b6106ec610ce6565b600c80546001600160a01b039485166001600160a01b031991821617909155600d805493851693821693909317909255600e8054919093169116179055565b600f5481565b60025490565b60155481565b610745610ce6565b6001600160a01b03821660009081526008602052604090205460ff16156107875760405162461bcd60e51b815260040161077e90611bd3565b60405180910390fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6107ba610ce6565b600a55565b6107c7610ce6565b6107d13082610d25565b50565b6000806107df610c2e565b90506107ec858285610e16565b6107f7858585610e60565b506001949350505050565b601290565b600080610812610c2e565b90506106da8185856108248589610bcc565b61082e9190611f7e565b610c32565b61083b610ce6565b6108436110a6565b565b6107d1610850610c2e565b82610d25565b61085e610ce6565b6001600160a01b0381166108f757476000610877610ac2565b6001600160a01b03168260405161088d90611a57565b60006040518083038185875af1925050503d80600081146108ca576040519150601f19603f3d011682016040523d82523d6000602084013e6108cf565b606091505b50509050806108f05760405162461bcd60e51b815260040161077e90611d0f565b50506107d1565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610926903090600401611a5a565b60206040518083038186803b15801561093e57600080fd5b505afa158015610952573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097691906119e1565b9050816001600160a01b031663a9059cbb61098f610ac2565b836040518363ffffffff1660e01b81526004016109ad929190611a6e565b602060405180830381600087803b1580156109c757600080fd5b505af11580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190611979565b505050565b60055460ff1690565b610a15610ce6565b601193909355601291909155600f55601055565b6001600160a01b0381166000908152602081905260409020545b919050565b610a50610ce6565b61084360006110f8565b610a6c82610a66610c2e565b83610e16565b610a768282610d25565b5050565b6000610a84610ce6565b506001600160a01b031660009081526008602052604090205460ff1690565b610aab610ce6565b610843611152565b60135460ff1681565b60145481565b60055461010090046001600160a01b031690565b60606004805461063f90611fec565b610aed610ce6565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600080610b16610c2e565b90506000610b248286610bcc565b905083811015610b465760405162461bcd60e51b815260040161077e90611eb2565b6107f78286868403610c32565b600080610b5e610c2e565b90506106da818585610e60565b60125481565b60105481565b610b7f610ce6565b6000610b8a30610a29565b600c549091506107d19082906001600160a01b0316611190565b610bac610ce6565b6013805460ff191693151593909317909255601455601555565b60115481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bff610ce6565b6001600160a01b038116610c255760405162461bcd60e51b815260040161077e90611c0a565b6107d1816110f8565b3390565b6001600160a01b038316610c585760405162461bcd60e51b815260040161077e90611e42565b6001600160a01b038216610c7e5760405162461bcd60e51b815260040161077e90611c50565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610cd9908590611ef7565b60405180910390a3505050565b610cee610c2e565b6001600160a01b0316610cff610ac2565b6001600160a01b0316146108435760405162461bcd60e51b815260040161077e90611d87565b6001600160a01b038216610d4b5760405162461bcd60e51b815260040161077e90611dbc565b610d57826000836112bf565b6001600160a01b03821660009081526020819052604090205481811015610d905760405162461bcd60e51b815260040161077e90611b91565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dbf908490611fd5565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610e02908690611ef7565b60405180910390a36109ff836000846109ff565b6000610e228484610bcc565b90506000198114610e5a5781811015610e4d5760405162461bcd60e51b815260040161077e90611c92565b610e5a8484848403610c32565b50505050565b610e686112d2565b6001600160a01b038316610e8e5760405162461bcd60e51b815260040161077e90611dfd565b6001600160a01b038216610eb45760405162461bcd60e51b815260040161077e90611b20565b6000610ebf84610a29565b905081811015610ee15760405162461bcd60e51b815260040161077e90611cc9565b600954610100900460ff16610f0957600a544210610f09576009805461ff0019166101001790555b600954610100900460ff1615611001576001600160a01b0384163014801590610f4a57506001600160a01b03831660009081526008602052604090205460ff165b15610f77576000610f5b85846112f7565b9050610f718585610f6c86856114a8565b6114bb565b50610ffc565b60135460ff168015610f965750600b546001600160a01b038581169116145b15610ff15760145482610fa885610a29565b610fb29190611f7e565b11158015610fd5575060155482610fc885610a29565b610fd29190611f7e565b10155b610ff15760405162461bcd60e51b815260040161077e90611d3d565b610ffc8484846114bb565b610e5a565b600b546001600160a01b038481169116148061102a5750600b546001600160a01b038581169116145b1561109b57611037610ac2565b6001600160a01b0316846001600160a01b0316148061106e5750611059610ac2565b6001600160a01b0316836001600160a01b0316145b156110835761107e8484846114bb565b610ffc565b60405162461bcd60e51b815260040161077e90611e86565b610e5a8484846114bb565b6110ae6115df565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110e1610c2e565b6040516110ee9190611a5a565b60405180910390a1565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61115a6112d2565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110e1610c2e565b6009805460ff1916600117905560408051600280825260608201835260009260208301908036833701905050905030816000815181106111e057634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260075482519116908290600190811061121f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546112459130911685610c32565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061127e908690600090869088904290600401611f00565b600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b50506009805460ff191690555050505050565b6112c76112d2565b6109ff8383836109ff565b6112da610a04565b156108435760405162461bcd60e51b815260040161077e90611d5d565b60008061131b6103e86113156010548661160390919063ffffffff16565b9061160f565b9050801561132d5761132d848261161b565b600061134a6103e86113156012548761160390919063ffffffff16565b905080156113c357600b54600160a01b900460ff1661138a5761136e8530836116c5565b600c546113859082906001600160a01b0316611190565b6113c3565b600b54600160a01b900460ff1680156113a6575060095460ff16155b156113c357600c546113c39086906001600160a01b0316836116c5565b60006113e06103e86113156011548861160390919063ffffffff16565b9050801561145957600b54600160a01b900460ff16611420576114048630836116c5565b600d5461141b9082906001600160a01b0316611190565b611459565b600b54600160a01b900460ff16801561143c575060095460ff16155b1561145957600d546114599087906001600160a01b0316836116c5565b60006114766103e8611315600f548961160390919063ffffffff16565b905080156114875761148781611709565b61149d8161149784818888611761565b90611761565b979650505050505050565b60006114b48284611fd5565b9392505050565b6001600160a01b0383166114e15760405162461bcd60e51b815260040161077e90611dfd565b6001600160a01b0382166115075760405162461bcd60e51b815260040161077e90611b20565b6115128383836112bf565b6001600160a01b0383166000908152602081905260409020548181101561154b5760405162461bcd60e51b815260040161077e90611cc9565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611582908490611f7e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115cc9190611ef7565b60405180910390a3610e5a8484846109ff565b6115e7610a04565b6108435760405162461bcd60e51b815260040161077e90611b63565b60006114b48284611fb6565b60006114b48284611f96565b6001600160a01b0382166116415760405162461bcd60e51b815260040161077e90611dbc565b61164d826000836112bf565b6001600160a01b038216600090815260208190526040902054818110156116865760405162461bcd60e51b815260040161077e90611b91565b6001600160a01b03831660009081526020819052604081208383039055600280548492906116b5908490611fd5565b909155506109ff90508360008483565b6001600160a01b0380841660009081526020819052604080822080548581039091559285168252812080548492906116fe908490611f7e565b909155505050505050565b6009805460ff19166001179055600061172382600261160f565b9050600061173183836114a8565b90504761173e8330611190565b6117518261174c47846114a8565b61176d565b50506009805460ff191690555050565b60006114b48284611f7e565b6006546117859030906001600160a01b031684610c32565b600654600e5460405163f305d71960e01b81526001600160a01b039283169263f305d7199285926117c59230928992600092839216904290600401611a87565b6060604051808303818588803b1580156117de57600080fd5b505af11580156117f2573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061181791906119f9565b5050505050565b80356001600160a01b0381168114610a4357600080fd5b600060208284031215611846578081fd5b6114b48261181e565b60008060408385031215611861578081fd5b61186a8361181e565b91506118786020840161181e565b90509250929050565b600080600060608486031215611895578081fd5b61189e8461181e565b92506118ac6020850161181e565b91506118ba6040850161181e565b90509250925092565b6000806000606084860312156118d7578283fd5b6118e08461181e565b92506118ee6020850161181e565b9150604084013590509250925092565b60008060408385031215611910578182fd5b6119198361181e565b915060208301356119298161203d565b809150509250929050565b60008060408385031215611946578182fd5b61194f8361181e565b946020939093013593505050565b60006020828403121561196e578081fd5b81356114b48161203d565b60006020828403121561198a578081fd5b81516114b48161203d565b6000806000606084860312156119a9578283fd5b83356119b48161203d565b95602085013595506040909401359392505050565b6000602082840312156119da578081fd5b5035919050565b6000602082840312156119f2578081fd5b5051919050565b600080600060608486031215611a0d578283fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215611a3b578081fd5b5050823594602084013594506040840135936060013592509050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b901515815260200190565b6000602080835283518082850152825b81811015611af957858101830151858201604001528201611add565b81811115611b0a5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601d908201527f54686973207061697220697320616c7265616479206578636c75646564000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b602080825260069082015265119bdc989a5960d21b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601290820152712a3930b234b7339034b9b713ba1037b832b760711b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015611f4f5784516001600160a01b031683529383019391830191600101611f2a565b50506001600160a01b03969096166060850152505050608001529392505050565b60ff91909116815260200190565b60008219821115611f9157611f91612027565b500190565b600082611fb157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fd057611fd0612027565b500290565b600082821015611fe757611fe7612027565b500390565b60028104600182168061200057607f821691505b6020821081141561202157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146107d157600080fdfea2646970667358221220b5465d7f4f6b4a98d6d07dc7e33fc4120c3cf5c7dc3bf3ec1f8e213e7f9adef964736f6c6343000801003300000000000000000000000000000000000001090ea8dd15c797843740000000000000000000000000000000e0e9665d25592ec7ba778cec92f87f01b8a7886600000000000000000000000004a7f7105246043fbe5cdea6bbdd40c82bcb4a66
Deployed Bytecode
0x6080604052600436106102135760003560e01c8063715018a611610118578063a457c2d7116100a0578063c3c8cd801161006f578063c3c8cd80146105a6578063d07ea4e2146105bb578063d91eb81b146105db578063dd62ed3e146105f0578063f2fde38b146106105761021a565b8063a457c2d71461053c578063a9059cbb1461055c578063aa45026b1461057c578063c0b0fda2146105915761021a565b8063860a32ec116100e7578063860a32ec146104bb57806389f9a1d3146104d05780638da5cb5b146104e557806395d89b41146105075780639ed2b1711461051c5761021a565b8063715018a61461045157806379cc6790146104665780637fb992f7146104865780638456cb59146104a65761021a565b806323b872dd1161019b57806342966c681161016a57806342966c68146103bc57806351cff8d9146103dc5780635c975abb146103fc5780636fcba3771461041157806370a08231146104315761021a565b806323b872dd14610345578063313ce5671461036557806339509351146103875780633f4ba83a146103a75761021a565b806318160ddd116101e257806318160ddd146102bb5780631ab99e12146102d05780631b81cb6c146102e55780632383eb8f1461030557806323b63585146103255761021a565b806306fdde031461021f578063095ea7b31461024a57806309cd52f51461027757806315c93a7d146102995761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b50610234610630565b6040516102419190611acd565b60405180910390f35b34801561025657600080fd5b5061026a610265366004611934565b6106c2565b6040516102419190611ac2565b34801561028357600080fd5b50610297610292366004611881565b6106e4565b005b3480156102a557600080fd5b506102ae61072b565b6040516102419190611ef7565b3480156102c757600080fd5b506102ae610731565b3480156102dc57600080fd5b506102ae610737565b3480156102f157600080fd5b506102976103003660046118fe565b61073d565b34801561031157600080fd5b506102976103203660046119c9565b6107b2565b34801561033157600080fd5b506102976103403660046119c9565b6107bf565b34801561035157600080fd5b5061026a6103603660046118c3565b6107d4565b34801561037157600080fd5b5061037a610802565b6040516102419190611f70565b34801561039357600080fd5b5061026a6103a2366004611934565b610807565b3480156103b357600080fd5b50610297610833565b3480156103c857600080fd5b506102976103d73660046119c9565b610845565b3480156103e857600080fd5b506102976103f7366004611835565b610856565b34801561040857600080fd5b5061026a610a04565b34801561041d57600080fd5b5061029761042c366004611a26565b610a0d565b34801561043d57600080fd5b506102ae61044c366004611835565b610a29565b34801561045d57600080fd5b50610297610a48565b34801561047257600080fd5b50610297610481366004611934565b610a5a565b34801561049257600080fd5b5061026a6104a1366004611835565b610a7a565b3480156104b257600080fd5b50610297610aa3565b3480156104c757600080fd5b5061026a610ab3565b3480156104dc57600080fd5b506102ae610abc565b3480156104f157600080fd5b506104fa610ac2565b6040516102419190611a5a565b34801561051357600080fd5b50610234610ad6565b34801561052857600080fd5b5061029761053736600461195d565b610ae5565b34801561054857600080fd5b5061026a610557366004611934565b610b0b565b34801561056857600080fd5b5061026a610577366004611934565b610b53565b34801561058857600080fd5b506102ae610b6b565b34801561059d57600080fd5b506102ae610b71565b3480156105b257600080fd5b50610297610b77565b3480156105c757600080fd5b506102976105d6366004611995565b610ba4565b3480156105e757600080fd5b506102ae610bc6565b3480156105fc57600080fd5b506102ae61060b36600461184f565b610bcc565b34801561061c57600080fd5b5061029761062b366004611835565b610bf7565b60606003805461063f90611fec565b80601f016020809104026020016040519081016040528092919081815260200182805461066b90611fec565b80156106b85780601f1061068d576101008083540402835291602001916106b8565b820191906000526020600020905b81548152906001019060200180831161069b57829003601f168201915b5050505050905090565b6000806106cd610c2e565b90506106da818585610c32565b5060019392505050565b6106ec610ce6565b600c80546001600160a01b039485166001600160a01b031991821617909155600d805493851693821693909317909255600e8054919093169116179055565b600f5481565b60025490565b60155481565b610745610ce6565b6001600160a01b03821660009081526008602052604090205460ff16156107875760405162461bcd60e51b815260040161077e90611bd3565b60405180910390fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6107ba610ce6565b600a55565b6107c7610ce6565b6107d13082610d25565b50565b6000806107df610c2e565b90506107ec858285610e16565b6107f7858585610e60565b506001949350505050565b601290565b600080610812610c2e565b90506106da8185856108248589610bcc565b61082e9190611f7e565b610c32565b61083b610ce6565b6108436110a6565b565b6107d1610850610c2e565b82610d25565b61085e610ce6565b6001600160a01b0381166108f757476000610877610ac2565b6001600160a01b03168260405161088d90611a57565b60006040518083038185875af1925050503d80600081146108ca576040519150601f19603f3d011682016040523d82523d6000602084013e6108cf565b606091505b50509050806108f05760405162461bcd60e51b815260040161077e90611d0f565b50506107d1565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610926903090600401611a5a565b60206040518083038186803b15801561093e57600080fd5b505afa158015610952573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097691906119e1565b9050816001600160a01b031663a9059cbb61098f610ac2565b836040518363ffffffff1660e01b81526004016109ad929190611a6e565b602060405180830381600087803b1580156109c757600080fd5b505af11580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff9190611979565b505050565b60055460ff1690565b610a15610ce6565b601193909355601291909155600f55601055565b6001600160a01b0381166000908152602081905260409020545b919050565b610a50610ce6565b61084360006110f8565b610a6c82610a66610c2e565b83610e16565b610a768282610d25565b5050565b6000610a84610ce6565b506001600160a01b031660009081526008602052604090205460ff1690565b610aab610ce6565b610843611152565b60135460ff1681565b60145481565b60055461010090046001600160a01b031690565b60606004805461063f90611fec565b610aed610ce6565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600080610b16610c2e565b90506000610b248286610bcc565b905083811015610b465760405162461bcd60e51b815260040161077e90611eb2565b6107f78286868403610c32565b600080610b5e610c2e565b90506106da818585610e60565b60125481565b60105481565b610b7f610ce6565b6000610b8a30610a29565b600c549091506107d19082906001600160a01b0316611190565b610bac610ce6565b6013805460ff191693151593909317909255601455601555565b60115481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bff610ce6565b6001600160a01b038116610c255760405162461bcd60e51b815260040161077e90611c0a565b6107d1816110f8565b3390565b6001600160a01b038316610c585760405162461bcd60e51b815260040161077e90611e42565b6001600160a01b038216610c7e5760405162461bcd60e51b815260040161077e90611c50565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610cd9908590611ef7565b60405180910390a3505050565b610cee610c2e565b6001600160a01b0316610cff610ac2565b6001600160a01b0316146108435760405162461bcd60e51b815260040161077e90611d87565b6001600160a01b038216610d4b5760405162461bcd60e51b815260040161077e90611dbc565b610d57826000836112bf565b6001600160a01b03821660009081526020819052604090205481811015610d905760405162461bcd60e51b815260040161077e90611b91565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dbf908490611fd5565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610e02908690611ef7565b60405180910390a36109ff836000846109ff565b6000610e228484610bcc565b90506000198114610e5a5781811015610e4d5760405162461bcd60e51b815260040161077e90611c92565b610e5a8484848403610c32565b50505050565b610e686112d2565b6001600160a01b038316610e8e5760405162461bcd60e51b815260040161077e90611dfd565b6001600160a01b038216610eb45760405162461bcd60e51b815260040161077e90611b20565b6000610ebf84610a29565b905081811015610ee15760405162461bcd60e51b815260040161077e90611cc9565b600954610100900460ff16610f0957600a544210610f09576009805461ff0019166101001790555b600954610100900460ff1615611001576001600160a01b0384163014801590610f4a57506001600160a01b03831660009081526008602052604090205460ff165b15610f77576000610f5b85846112f7565b9050610f718585610f6c86856114a8565b6114bb565b50610ffc565b60135460ff168015610f965750600b546001600160a01b038581169116145b15610ff15760145482610fa885610a29565b610fb29190611f7e565b11158015610fd5575060155482610fc885610a29565b610fd29190611f7e565b10155b610ff15760405162461bcd60e51b815260040161077e90611d3d565b610ffc8484846114bb565b610e5a565b600b546001600160a01b038481169116148061102a5750600b546001600160a01b038581169116145b1561109b57611037610ac2565b6001600160a01b0316846001600160a01b0316148061106e5750611059610ac2565b6001600160a01b0316836001600160a01b0316145b156110835761107e8484846114bb565b610ffc565b60405162461bcd60e51b815260040161077e90611e86565b610e5a8484846114bb565b6110ae6115df565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110e1610c2e565b6040516110ee9190611a5a565b60405180910390a1565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61115a6112d2565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110e1610c2e565b6009805460ff1916600117905560408051600280825260608201835260009260208301908036833701905050905030816000815181106111e057634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260075482519116908290600190811061121f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546112459130911685610c32565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061127e908690600090869088904290600401611f00565b600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b50506009805460ff191690555050505050565b6112c76112d2565b6109ff8383836109ff565b6112da610a04565b156108435760405162461bcd60e51b815260040161077e90611d5d565b60008061131b6103e86113156010548661160390919063ffffffff16565b9061160f565b9050801561132d5761132d848261161b565b600061134a6103e86113156012548761160390919063ffffffff16565b905080156113c357600b54600160a01b900460ff1661138a5761136e8530836116c5565b600c546113859082906001600160a01b0316611190565b6113c3565b600b54600160a01b900460ff1680156113a6575060095460ff16155b156113c357600c546113c39086906001600160a01b0316836116c5565b60006113e06103e86113156011548861160390919063ffffffff16565b9050801561145957600b54600160a01b900460ff16611420576114048630836116c5565b600d5461141b9082906001600160a01b0316611190565b611459565b600b54600160a01b900460ff16801561143c575060095460ff16155b1561145957600d546114599087906001600160a01b0316836116c5565b60006114766103e8611315600f548961160390919063ffffffff16565b905080156114875761148781611709565b61149d8161149784818888611761565b90611761565b979650505050505050565b60006114b48284611fd5565b9392505050565b6001600160a01b0383166114e15760405162461bcd60e51b815260040161077e90611dfd565b6001600160a01b0382166115075760405162461bcd60e51b815260040161077e90611b20565b6115128383836112bf565b6001600160a01b0383166000908152602081905260409020548181101561154b5760405162461bcd60e51b815260040161077e90611cc9565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611582908490611f7e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115cc9190611ef7565b60405180910390a3610e5a8484846109ff565b6115e7610a04565b6108435760405162461bcd60e51b815260040161077e90611b63565b60006114b48284611fb6565b60006114b48284611f96565b6001600160a01b0382166116415760405162461bcd60e51b815260040161077e90611dbc565b61164d826000836112bf565b6001600160a01b038216600090815260208190526040902054818110156116865760405162461bcd60e51b815260040161077e90611b91565b6001600160a01b03831660009081526020819052604081208383039055600280548492906116b5908490611fd5565b909155506109ff90508360008483565b6001600160a01b0380841660009081526020819052604080822080548581039091559285168252812080548492906116fe908490611f7e565b909155505050505050565b6009805460ff19166001179055600061172382600261160f565b9050600061173183836114a8565b90504761173e8330611190565b6117518261174c47846114a8565b61176d565b50506009805460ff191690555050565b60006114b48284611f7e565b6006546117859030906001600160a01b031684610c32565b600654600e5460405163f305d71960e01b81526001600160a01b039283169263f305d7199285926117c59230928992600092839216904290600401611a87565b6060604051808303818588803b1580156117de57600080fd5b505af11580156117f2573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061181791906119f9565b5050505050565b80356001600160a01b0381168114610a4357600080fd5b600060208284031215611846578081fd5b6114b48261181e565b60008060408385031215611861578081fd5b61186a8361181e565b91506118786020840161181e565b90509250929050565b600080600060608486031215611895578081fd5b61189e8461181e565b92506118ac6020850161181e565b91506118ba6040850161181e565b90509250925092565b6000806000606084860312156118d7578283fd5b6118e08461181e565b92506118ee6020850161181e565b9150604084013590509250925092565b60008060408385031215611910578182fd5b6119198361181e565b915060208301356119298161203d565b809150509250929050565b60008060408385031215611946578182fd5b61194f8361181e565b946020939093013593505050565b60006020828403121561196e578081fd5b81356114b48161203d565b60006020828403121561198a578081fd5b81516114b48161203d565b6000806000606084860312156119a9578283fd5b83356119b48161203d565b95602085013595506040909401359392505050565b6000602082840312156119da578081fd5b5035919050565b6000602082840312156119f2578081fd5b5051919050565b600080600060608486031215611a0d578283fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215611a3b578081fd5b5050823594602084013594506040840135936060013592509050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b901515815260200190565b6000602080835283518082850152825b81811015611af957858101830151858201604001528201611add565b81811115611b0a5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601d908201527f54686973207061697220697320616c7265616479206578636c75646564000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b602080825260069082015265119bdc989a5960d21b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601290820152712a3930b234b7339034b9b713ba1037b832b760711b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015611f4f5784516001600160a01b031683529383019391830191600101611f2a565b50506001600160a01b03969096166060850152505050608001529392505050565b60ff91909116815260200190565b60008219821115611f9157611f91612027565b500190565b600082611fb157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fd057611fd0612027565b500290565b600082821015611fe757611fe7612027565b500390565b60028104600182168061200057607f821691505b6020821081141561202157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80151581146107d157600080fdfea2646970667358221220b5465d7f4f6b4a98d6d07dc7e33fc4120c3cf5c7dc3bf3ec1f8e213e7f9adef964736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000001090ea8dd15c797843740000000000000000000000000000000e0e9665d25592ec7ba778cec92f87f01b8a7886600000000000000000000000004a7f7105246043fbe5cdea6bbdd40c82bcb4a66
-----Decoded View---------------
Arg [0] : _totalSupply (uint256): 21000000000000000000000000000000
Arg [1] : _devpayee (address): 0xE0E9665d25592EC7bA778CEc92F87F01b8A78866
Arg [2] : _fundpayee (address): 0x04A7f7105246043FbE5cdEa6BbDd40c82bCB4a66
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000001090ea8dd15c797843740000000
Arg [1] : 000000000000000000000000e0e9665d25592ec7ba778cec92f87f01b8a78866
Arg [2] : 00000000000000000000000004a7f7105246043fbe5cdea6bbdd40c82bcb4a66
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.