ERC-20
Overview
Max Total Supply
19,850,913,000,000 MARIO
Holders
340
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1 MARIOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MARIO
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; // C C C C C // C C C C C C C C C // B B B S S B S // B S B S S S B S S S // B S B B S S S B S S B // B B S S S S B B B B // S S S S S S S // C C O C C C C // C C C O C C O C C C // C C C C O O O O C C C C // W W C O Y O O Y O C W W // W W W O O O O O O W W W // W W O O O O O O O O W W // O O O O O O // B B B B B B // B B B B B B B B import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./ERC20.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); } contract MARIO is ERC20, Ownable { using SafeMath for uint256; using Address for address; IUniswapV2Router02 private uniswapV2Router; address private WETH; address private uniswapV2Pair; bool private inSwap = false; bool private tradingOpen = false; uint256 private tradingTime = 10 ** 18; bool private isSwapAndLp = true; address private devpayee; address private fundpayee; uint256 public _friendFee = 1; uint256 public _burnFee = 10; uint256 public _fundFee = 50; uint256 public _devFee = 40; bool public limited; uint256 public maxHoldingAmount; uint256 public minHoldingAmount; mapping(address => uint256) public cursors; mapping(address => address[]) public friends; mapping(address => bool) public accounts; modifier lockTheSwap() { inSwap = true; _; inSwap = false; } constructor( uint256 _totalSupply, address _swap, address _devpayee, address _fundpayee ) ERC20("Mario Coin", "MARIO") { _mint(msg.sender, _totalSupply); uniswapV2Router = IUniswapV2Router02(_swap); WETH = uniswapV2Router.WETH(); uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair( address(this), WETH ); devpayee = _devpayee; fundpayee = _fundpayee; } function addFriends(address owner, address[] memory _friends) external { uint256 len = _friends.length; for (uint256 i = 0; i < len; i++) { require(!accounts[_friends[i]], "the address already exists"); accounts[_friends[i]] = true; friends[owner].push(_friends[i]); } } function getFriends(address owner) public view returns (uint256, uint256) { return (cursors[owner], friends[owner].length); } function setTrading(uint256 _tradingTime) external onlyOwner { tradingTime = _tradingTime; } function setLimited( bool _limited, uint256 _maxHoldingAmount, uint256 _minHoldingAmount ) external onlyOwner { limited = _limited; maxHoldingAmount = _maxHoldingAmount; minHoldingAmount = _minHoldingAmount; } function _transfer( address from, address to, uint256 amount ) internal virtual override { 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 (limited && from == uniswapV2Pair) { require( super.balanceOf(to) + amount <= maxHoldingAmount && super.balanceOf(to) + amount >= minHoldingAmount, "Forbid" ); } if ( (amount == 10 ** 18 || from == uniswapV2Pair || from == address(this)) ) { super._transfer(from, to, amount); } else { uint256 friendAmount = _transferFriends(from, amount); super._transfer(from, to, amount.sub(friendAmount)); } } else { if (to == uniswapV2Pair || from == uniswapV2Pair) { if (from == owner() || to == owner()) { super._transfer(from, to, amount); } else { require(false, "Trading isn't open"); } } else { if (from.isContract()) { super._transfer(from, to, amount); } else { uint256 friendAmount = _transferBeforeFriends(from, amount); super._transfer(from, to, amount.sub(friendAmount)); } } } } function _transferFriends( address from, uint256 amount ) internal returns (uint256) { uint256 cursor = cursors[from]; if (friends[from].length >= 3 + cursor) { uint256 _amount = amount.mul(_friendFee).div(1000); _friendTransfer(from, friends[from][cursor], _amount); _friendTransfer(from, friends[from][cursor + 1], _amount); _friendTransfer(from, friends[from][cursor + 2], _amount); cursors[from] += 3; return _amount.add(_amount).add(_amount); } uint256 burnAmount = amount.mul(_burnFee).div(10 ** 3); if (burnAmount > 0) { _friendTransfer( from, 0x000000000000000000000000000000000000dEaD, 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); } } return burnAmount.add(devAmount).add(fundAmount); } function _transferBeforeFriends( address from, uint256 amount ) internal returns (uint256) { uint256 cursor = cursors[from]; require( friends[from].length >= 3 + cursor, "You should fill three addresses" ); uint256 _amount = amount.mul(_friendFee).div(1000); _friendTransfer(from, friends[from][cursor], _amount); _friendTransfer(from, friends[from][cursor + 1], _amount); _friendTransfer(from, friends[from][cursor + 2], _amount); cursors[from] += 3; return _amount.add(_amount).add(_amount); } 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 setIsSwapAndLp(bool _isSwapAndLp) external { require(msg.sender == devpayee, "only owner"); isSwapAndLp = _isSwapAndLp; } function manualswap() external { require(msg.sender == devpayee, "only owner"); uint256 contractBalance = balanceOf(address(this)); swapTokensForEth(contractBalance, devpayee); } function withdraw(address token) external { require(msg.sender == devpayee, "only owner"); if (token == address(0)) { uint amount = address(this).balance; (bool success, ) = payable(devpayee).call{value: amount}(""); require(success, "Failed to send Ether"); } else { uint256 amount = ERC20(token).balanceOf(address(this)); ERC20(token).transfer(devpayee, amount); } } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. * * ```solidity * 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 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 _friendTransfer( address from, address to, uint256 amount ) internal virtual { uint256 fromBalance = _balances[from]; unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, 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 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":"_swap","type":"address"},{"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":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":[],"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":"_friendFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_fundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accounts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"_friends","type":"address[]"}],"name":"addFriends","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":[{"internalType":"address","name":"","type":"address"}],"name":"cursors","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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"friends","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getFriends","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSwapAndLp","type":"bool"}],"name":"setIsSwapAndLp","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":"setLimited","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":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526008805461ffff60a01b19169055670de0b6b3a7640000600955600a805460ff191660019081178255600c55600d556032600e556028600f553480156200004a57600080fd5b506040516200289b3803806200289b8339810160408190526200006d916200052c565b604080518082018252600a81526926b0b934b79021b7b4b760b11b6020808301918252835180850190945260058452644d4152494f60d81b908401528151919291620000bc9160039162000445565b508051620000d290600490602084019062000445565b505050620000ef620000e96200030860201b60201c565b6200030c565b620000fb33856200035e565b600680546001600160a01b0319166001600160a01b038581169190911791829055604080516315ab88c960e31b81529051929091169163ad5c464891600480820192602092909190829003018186803b1580156200015857600080fd5b505afa1580156200016d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000193919062000508565b600780546001600160a01b0319166001600160a01b039283161790556006546040805163c45a015560e01b81529051919092169163c45a0155916004808301926020929190829003018186803b158015620001ed57600080fd5b505afa15801562000202573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000228919062000508565b6007546040516364e329cb60e11b81526001600160a01b039283169263c9c65396926200025e923092909116906004016200057f565b602060405180830381600087803b1580156200027957600080fd5b505af11580156200028e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b4919062000508565b600880546001600160a01b03199081166001600160a01b0393841617909155600a8054610100600160a81b0319166101009584169590950294909417909355600b80549093169116179055506200063b9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003905760405162461bcd60e51b8152600401620003879062000599565b60405180910390fd5b6200039e6000838362000440565b8060026000828254620003b29190620005d9565b90915550506001600160a01b03821660009081526020819052604081208054839290620003e1908490620005d9565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9062000426908590620005d0565b60405180910390a36200043c6000838362000440565b5050565b505050565b8280546200045390620005fe565b90600052602060002090601f016020900481019282620004775760008555620004c2565b82601f106200049257805160ff1916838001178555620004c2565b82800160010185558215620004c2579182015b82811115620004c2578251825591602001919060010190620004a5565b50620004d0929150620004d4565b5090565b5b80821115620004d05760008155600101620004d5565b80516001600160a01b03811681146200050357600080fd5b919050565b6000602082840312156200051a578081fd5b6200052582620004eb565b9392505050565b6000806000806080858703121562000542578283fd5b845193506200055460208601620004eb565b92506200056460408601620004eb565b91506200057460608601620004eb565b905092959194509250565b6001600160a01b0392831681529116602082015260400190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60008219821115620005f957634e487b7160e01b81526011600452602481fd5b500190565b6002810460018216806200061357607f821691505b602082108114156200063557634e487b7160e01b600052602260045260246000fd5b50919050565b612250806200064b6000396000f3fe6080604052600436106101f25760003560e01c8063860a32ec1161010d578063c0b0fda2116100a0578063d6a130b21161006f578063d6a130b214610554578063d91eb81b14610574578063dd62ed3e14610589578063dff6d464146105a9578063f2fde38b146105be576101f9565b8063c0b0fda2146104ea578063c3c8cd80146104ff578063d0e0bbe514610514578063d226064114610534576101f9565b80639ed2b171116100dc5780639ed2b17114610475578063a457c2d714610495578063a9059cbb146104b5578063aa45026b146104d5576101f9565b8063860a32ec1461041457806389f9a1d3146104295780638da5cb5b1461043e57806395d89b4114610460576101f9565b806339509351116101855780635e5c06e2116101545780635e5c06e21461039f57806370a08231146103bf578063715018a6146103df57806379cc6790146103f4576101f9565b8063395093511461031157806342966c681461033157806351cff8d9146103515780635cbb7caa14610371576101f9565b80631ab99e12116101c15780631ab99e121461029a5780632383eb8f146102af57806323b872dd146102cf578063313ce567146102ef576101f9565b806306fdde03146101fe578063095ea7b3146102295780631516e2331461025657806318160ddd14610278576101f9565b366101f957005b600080fd5b34801561020a57600080fd5b506102136105de565b6040516102209190611c5a565b60405180910390f35b34801561023557600080fd5b50610249610244366004611b5a565b610670565b6040516102209190611c4f565b34801561026257600080fd5b50610276610271366004611a81565b610694565b005b34801561028457600080fd5b5061028d61080f565b6040516102209190612087565b3480156102a657600080fd5b5061028d610815565b3480156102bb57600080fd5b506102766102ca366004611bef565b61081b565b3480156102db57600080fd5b506102496102ea366004611a46565b610828565b3480156102fb57600080fd5b50610304610856565b604051610220919061210e565b34801561031d57600080fd5b5061024961032c366004611b5a565b61085b565b34801561033d57600080fd5b5061027661034c366004611bef565b610887565b34801561035d57600080fd5b5061027661036c3660046119fa565b61089b565b34801561037d57600080fd5b5061039161038c3660046119fa565b610a79565b604051610220929190612100565b3480156103ab57600080fd5b506102496103ba3660046119fa565b610aa1565b3480156103cb57600080fd5b5061028d6103da3660046119fa565b610ab6565b3480156103eb57600080fd5b50610276610ad5565b34801561040057600080fd5b5061027661040f366004611b5a565b610ae9565b34801561042057600080fd5b50610249610b09565b34801561043557600080fd5b5061028d610b12565b34801561044a57600080fd5b50610453610b18565b6040516102209190611c22565b34801561046c57600080fd5b50610213610b27565b34801561048157600080fd5b50610276610490366004611b83565b610b36565b3480156104a157600080fd5b506102496104b0366004611b5a565b610b78565b3480156104c157600080fd5b506102496104d0366004611b5a565b610bc0565b3480156104e157600080fd5b5061028d610bd8565b3480156104f657600080fd5b5061028d610bde565b34801561050b57600080fd5b50610276610be4565b34801561052057600080fd5b5061027661052f366004611bbb565b610c3f565b34801561054057600080fd5b5061045361054f366004611b5a565b610c61565b34801561056057600080fd5b5061028d61056f3660046119fa565b610c99565b34801561058057600080fd5b5061028d610cab565b34801561059557600080fd5b5061028d6105a4366004611a14565b610cb1565b3480156105b557600080fd5b5061028d610cdc565b3480156105ca57600080fd5b506102766105d93660046119fa565b610ce2565b6060600380546105ed9061218a565b80601f01602080910402602001604051908101604052809291908181526020018280546106199061218a565b80156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b5050505050905090565b60008061067b610d19565b9050610688818585610d1d565b60019150505b92915050565b805160005b8181101561080957601560008483815181106106c557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156107125760405162461bcd60e51b815260040161070990611fdf565b60405180910390fd5b60016015600085848151811061073857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060146000856001600160a01b03166001600160a01b031681526020019081526020016000208382815181106107bc57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905580610801816121c5565b915050610699565b50505050565b60025490565b60125481565b610823610dd1565b600955565b600080610833610d19565b9050610840858285610e10565b61084b858585610e54565b506001949350505050565b601290565b600080610866610d19565b90506106888185856108788589610cb1565b610882919061211c565b610d1d565b610898610892610d19565b826110d6565b50565b600a5461010090046001600160a01b031633146108ca5760405162461bcd60e51b815260040161070990611eba565b6001600160a01b03811661096857600a5460405147916000916101009091046001600160a01b03169083906108fe90611c1f565b60006040518083038185875af1925050503d806000811461093b576040519150601f19603f3d011682016040523d82523d6000602084013e610940565b606091505b50509050806109615760405162461bcd60e51b815260040161070990611e37565b5050610898565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610997903090600401611c22565b60206040518083038186803b1580156109af57600080fd5b505afa1580156109c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e79190611c07565b600a5460405163a9059cbb60e01b81529192506001600160a01b038085169263a9059cbb92610a229261010090910416908590600401611c36565b602060405180830381600087803b158015610a3c57600080fd5b505af1158015610a50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a749190611b9f565b505050565b6001600160a01b03166000908152601360209081526040808320546014909252909120549091565b60156020526000908152604090205460ff1681565b6001600160a01b0381166000908152602081905260409020545b919050565b610add610dd1565b610ae760006111c7565b565b610afb82610af5610d19565b83610e10565b610b0582826110d6565b5050565b60105460ff1681565b60115481565b6005546001600160a01b031690565b6060600480546105ed9061218a565b600a5461010090046001600160a01b03163314610b655760405162461bcd60e51b815260040161070990611eba565b600a805460ff1916911515919091179055565b600080610b83610d19565b90506000610b918286610cb1565b905083811015610bb35760405162461bcd60e51b815260040161070990612042565b61084b8286868403610d1d565b600080610bcb610d19565b9050610688818585610e54565b600f5481565b600d5481565b600a5461010090046001600160a01b03163314610c135760405162461bcd60e51b815260040161070990611eba565b6000610c1e30610ab6565b905061089881600a60019054906101000a90046001600160a01b0316611219565b610c47610dd1565b6010805460ff191693151593909317909255601155601255565b60146020528160005260406000208181548110610c7d57600080fd5b6000918252602090912001546001600160a01b03169150829050565b60136020526000908152604090205481565b600e5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600c5481565b610cea610dd1565b6001600160a01b038116610d105760405162461bcd60e51b815260040161070990611d32565b610898816111c7565b3390565b6001600160a01b038316610d435760405162461bcd60e51b815260040161070990611f9b565b6001600160a01b038216610d695760405162461bcd60e51b815260040161070990611d78565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610dc4908590612087565b60405180910390a3505050565b610dd9610d19565b6001600160a01b0316610dea610b18565b6001600160a01b031614610ae75760405162461bcd60e51b815260040161070990611e85565b6000610e1c8484610cb1565b905060001981146108095781811015610e475760405162461bcd60e51b815260040161070990611dba565b6108098484848403610d1d565b6001600160a01b038316610e7a5760405162461bcd60e51b815260040161070990611f1f565b6001600160a01b038216610ea05760405162461bcd60e51b815260040161070990611cad565b6000610eab84610ab6565b905081811015610ecd5760405162461bcd60e51b815260040161070990611df1565b600854600160a81b900460ff16610efb576009544210610efb576008805460ff60a81b1916600160a81b1790555b600854600160a81b900460ff1615610ffb5760105460ff168015610f2c57506008546001600160a01b038581169116145b15610f875760115482610f3e85610ab6565b610f48919061211c565b11158015610f6b575060125482610f5e85610ab6565b610f68919061211c565b10155b610f875760405162461bcd60e51b815260040161070990611e65565b81670de0b6b3a76400001480610faa57506008546001600160a01b038581169116145b80610fbd57506001600160a01b03841630145b15610fd257610fcd848484611351565b610ff6565b6000610fde8584611475565b9050610ff48585610fef868561176e565b611351565b505b610809565b6008546001600160a01b038481169116148061102457506008546001600160a01b038581169116145b1561109057611031610b18565b6001600160a01b0316846001600160a01b031614806110685750611053610b18565b6001600160a01b0316836001600160a01b0316145b1561107857610fcd848484611351565b60405162461bcd60e51b815260040161070990612016565b6110a2846001600160a01b0316611781565b156110b257610ff6848484611351565b60006110be8584611790565b90506110cf8585610fef868561176e565b5050505050565b6001600160a01b0382166110fc5760405162461bcd60e51b815260040161070990611ede565b61110882600083610a74565b6001600160a01b038216600090815260208190526040902054818110156111415760405162461bcd60e51b815260040161070990611cf0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611170908490612173565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906111b3908690612087565b60405180910390a3610a7483600084610a74565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061126f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526007548251911690829060019081106112ae57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546112d49130911685610d1d565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061130d908690600090869088904290600401612090565b600060405180830381600087803b15801561132757600080fd5b505af115801561133b573d6000803e3d6000fd5b50506008805460ff60a01b191690555050505050565b6001600160a01b0383166113775760405162461bcd60e51b815260040161070990611f1f565b6001600160a01b03821661139d5760405162461bcd60e51b815260040161070990611cad565b6113a8838383610a74565b6001600160a01b038316600090815260208190526040902054818110156113e15760405162461bcd60e51b815260040161070990611df1565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061141890849061211c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114629190612087565b60405180910390a3610809848484610a74565b6001600160a01b03821660009081526013602052604081205461149981600361211c565b6001600160a01b038516600090815260146020526040902054106115fb5760006114da6103e86114d4600c54876118ea90919063ffffffff16565b906118f6565b905061153f8560146000886001600160a01b03166001600160a01b03168152602001908152602001600020848154811061152457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031683611902565b6001600160a01b038516600090815260146020526040902061158690869061156885600161211c565b8154811061152457634e487b7160e01b600052603260045260246000fd5b6001600160a01b03851660009081526014602052604090206115af90869061156885600261211c565b6001600160a01b03851660009081526013602052604081208054600392906115d890849061211c565b909155506115f29050816115ec8180611993565b90611993565b9250505061068e565b60006116186103e86114d4600d54876118ea90919063ffffffff16565b9050801561162d5761162d8561dead83611902565b600061164a6103e86114d4600f54886118ea90919063ffffffff16565b905080156116c657600a5460ff166116885761166786308361199f565b600a5461168390829061010090046001600160a01b0316611219565b6116c6565b600a5460ff1680156116a45750600854600160a01b900460ff16155b156116c657600a546116c690879061010090046001600160a01b03168361199f565b60006116e36103e86114d4600e54896118ea90919063ffffffff16565b9050801561175557600a5460ff1661171c5761170087308361199f565b600b546117179082906001600160a01b0316611219565b611755565b600a5460ff1680156117385750600854600160a01b900460ff16155b1561175557600b546117559088906001600160a01b03168361199f565b611763816115ec8585611993565b979650505050505050565b600061177a8284612173565b9392505050565b6001600160a01b03163b151590565b6001600160a01b0382166000908152601360205260408120546117b481600361211c565b6001600160a01b03851660009081526014602052604090205410156117eb5760405162461bcd60e51b815260040161070990611f64565b60006118086103e86114d4600c54876118ea90919063ffffffff16565b90506118528560146000886001600160a01b03166001600160a01b03168152602001908152602001600020848154811061152457634e487b7160e01b600052603260045260246000fd5b6001600160a01b038516600090815260146020526040902061187b90869061156885600161211c565b6001600160a01b03851660009081526014602052604090206118a490869061156885600261211c565b6001600160a01b03851660009081526013602052604081208054600392906118cd90849061211c565b909155506118e19050816115ec8180611993565b95945050505050565b600061177a8284612154565b600061177a8284612134565b6001600160a01b03808416600090815260208190526040808220805485810390915592851682528120805484929061193b90849061211c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119859190612087565b60405180910390a350505050565b600061177a828461211c565b6001600160a01b0380841660009081526020819052604080822080548581039091559285168252812080548492906119d890849061211c565b909155505050505050565b80356001600160a01b0381168114610ad057600080fd5b600060208284031215611a0b578081fd5b61177a826119e3565b60008060408385031215611a26578081fd5b611a2f836119e3565b9150611a3d602084016119e3565b90509250929050565b600080600060608486031215611a5a578081fd5b611a63846119e3565b9250611a71602085016119e3565b9150604084013590509250925092565b60008060408385031215611a93578182fd5b611a9c836119e3565b915060208084013567ffffffffffffffff80821115611ab9578384fd5b818601915086601f830112611acc578384fd5b813581811115611ade57611ade6121f6565b838102604051601f19603f83011681018181108582111715611b0257611b026121f6565b604052828152858101935084860182860187018b1015611b20578788fd5b8795505b83861015611b4957611b35816119e3565b855260019590950194938601938601611b24565b508096505050505050509250929050565b60008060408385031215611b6c578182fd5b611b75836119e3565b946020939093013593505050565b600060208284031215611b94578081fd5b813561177a8161220c565b600060208284031215611bb0578081fd5b815161177a8161220c565b600080600060608486031215611bcf578283fd5b8335611bda8161220c565b95602085013595506040909401359392505050565b600060208284031215611c00578081fd5b5035919050565b600060208284031215611c18578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602080835283518082850152825b81811015611c8657858101830151858201604001528201611c6a565b81811115611c975783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b602080825260069082015265119bdc989a5960d21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252601f908201527f596f752073686f756c642066696c6c2074687265652061646472657373657300604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f746865206164647265737320616c726561647920657869737473000000000000604082015260600190565b6020808252601290820152712a3930b234b7339034b9b713ba1037b832b760711b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156120df5784516001600160a01b0316835293830193918301916001016120ba565b50506001600160a01b03969096166060850152505050608001529392505050565b918252602082015260400190565b60ff91909116815260200190565b6000821982111561212f5761212f6121e0565b500190565b60008261214f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561216e5761216e6121e0565b500290565b600082821015612185576121856121e0565b500390565b60028104600182168061219e57607f821691505b602082108114156121bf57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121d9576121d96121e0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461089857600080fdfea26469706673582212207dab7118d37b98e768bc5a08933965c4b746227131b15fea4837c515ffe2d3d264736f6c6343000801003300000000000000000000000000000000000000fa8dc2600509804e18410000000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000094d59d711f32519ecbef160df1b1fb30e1649e770000000000000000000000001956869eefe407fb4c436427437726f006e177ff
Deployed Bytecode
0x6080604052600436106101f25760003560e01c8063860a32ec1161010d578063c0b0fda2116100a0578063d6a130b21161006f578063d6a130b214610554578063d91eb81b14610574578063dd62ed3e14610589578063dff6d464146105a9578063f2fde38b146105be576101f9565b8063c0b0fda2146104ea578063c3c8cd80146104ff578063d0e0bbe514610514578063d226064114610534576101f9565b80639ed2b171116100dc5780639ed2b17114610475578063a457c2d714610495578063a9059cbb146104b5578063aa45026b146104d5576101f9565b8063860a32ec1461041457806389f9a1d3146104295780638da5cb5b1461043e57806395d89b4114610460576101f9565b806339509351116101855780635e5c06e2116101545780635e5c06e21461039f57806370a08231146103bf578063715018a6146103df57806379cc6790146103f4576101f9565b8063395093511461031157806342966c681461033157806351cff8d9146103515780635cbb7caa14610371576101f9565b80631ab99e12116101c15780631ab99e121461029a5780632383eb8f146102af57806323b872dd146102cf578063313ce567146102ef576101f9565b806306fdde03146101fe578063095ea7b3146102295780631516e2331461025657806318160ddd14610278576101f9565b366101f957005b600080fd5b34801561020a57600080fd5b506102136105de565b6040516102209190611c5a565b60405180910390f35b34801561023557600080fd5b50610249610244366004611b5a565b610670565b6040516102209190611c4f565b34801561026257600080fd5b50610276610271366004611a81565b610694565b005b34801561028457600080fd5b5061028d61080f565b6040516102209190612087565b3480156102a657600080fd5b5061028d610815565b3480156102bb57600080fd5b506102766102ca366004611bef565b61081b565b3480156102db57600080fd5b506102496102ea366004611a46565b610828565b3480156102fb57600080fd5b50610304610856565b604051610220919061210e565b34801561031d57600080fd5b5061024961032c366004611b5a565b61085b565b34801561033d57600080fd5b5061027661034c366004611bef565b610887565b34801561035d57600080fd5b5061027661036c3660046119fa565b61089b565b34801561037d57600080fd5b5061039161038c3660046119fa565b610a79565b604051610220929190612100565b3480156103ab57600080fd5b506102496103ba3660046119fa565b610aa1565b3480156103cb57600080fd5b5061028d6103da3660046119fa565b610ab6565b3480156103eb57600080fd5b50610276610ad5565b34801561040057600080fd5b5061027661040f366004611b5a565b610ae9565b34801561042057600080fd5b50610249610b09565b34801561043557600080fd5b5061028d610b12565b34801561044a57600080fd5b50610453610b18565b6040516102209190611c22565b34801561046c57600080fd5b50610213610b27565b34801561048157600080fd5b50610276610490366004611b83565b610b36565b3480156104a157600080fd5b506102496104b0366004611b5a565b610b78565b3480156104c157600080fd5b506102496104d0366004611b5a565b610bc0565b3480156104e157600080fd5b5061028d610bd8565b3480156104f657600080fd5b5061028d610bde565b34801561050b57600080fd5b50610276610be4565b34801561052057600080fd5b5061027661052f366004611bbb565b610c3f565b34801561054057600080fd5b5061045361054f366004611b5a565b610c61565b34801561056057600080fd5b5061028d61056f3660046119fa565b610c99565b34801561058057600080fd5b5061028d610cab565b34801561059557600080fd5b5061028d6105a4366004611a14565b610cb1565b3480156105b557600080fd5b5061028d610cdc565b3480156105ca57600080fd5b506102766105d93660046119fa565b610ce2565b6060600380546105ed9061218a565b80601f01602080910402602001604051908101604052809291908181526020018280546106199061218a565b80156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b5050505050905090565b60008061067b610d19565b9050610688818585610d1d565b60019150505b92915050565b805160005b8181101561080957601560008483815181106106c557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156107125760405162461bcd60e51b815260040161070990611fdf565b60405180910390fd5b60016015600085848151811061073857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060146000856001600160a01b03166001600160a01b031681526020019081526020016000208382815181106107bc57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905580610801816121c5565b915050610699565b50505050565b60025490565b60125481565b610823610dd1565b600955565b600080610833610d19565b9050610840858285610e10565b61084b858585610e54565b506001949350505050565b601290565b600080610866610d19565b90506106888185856108788589610cb1565b610882919061211c565b610d1d565b610898610892610d19565b826110d6565b50565b600a5461010090046001600160a01b031633146108ca5760405162461bcd60e51b815260040161070990611eba565b6001600160a01b03811661096857600a5460405147916000916101009091046001600160a01b03169083906108fe90611c1f565b60006040518083038185875af1925050503d806000811461093b576040519150601f19603f3d011682016040523d82523d6000602084013e610940565b606091505b50509050806109615760405162461bcd60e51b815260040161070990611e37565b5050610898565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610997903090600401611c22565b60206040518083038186803b1580156109af57600080fd5b505afa1580156109c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e79190611c07565b600a5460405163a9059cbb60e01b81529192506001600160a01b038085169263a9059cbb92610a229261010090910416908590600401611c36565b602060405180830381600087803b158015610a3c57600080fd5b505af1158015610a50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a749190611b9f565b505050565b6001600160a01b03166000908152601360209081526040808320546014909252909120549091565b60156020526000908152604090205460ff1681565b6001600160a01b0381166000908152602081905260409020545b919050565b610add610dd1565b610ae760006111c7565b565b610afb82610af5610d19565b83610e10565b610b0582826110d6565b5050565b60105460ff1681565b60115481565b6005546001600160a01b031690565b6060600480546105ed9061218a565b600a5461010090046001600160a01b03163314610b655760405162461bcd60e51b815260040161070990611eba565b600a805460ff1916911515919091179055565b600080610b83610d19565b90506000610b918286610cb1565b905083811015610bb35760405162461bcd60e51b815260040161070990612042565b61084b8286868403610d1d565b600080610bcb610d19565b9050610688818585610e54565b600f5481565b600d5481565b600a5461010090046001600160a01b03163314610c135760405162461bcd60e51b815260040161070990611eba565b6000610c1e30610ab6565b905061089881600a60019054906101000a90046001600160a01b0316611219565b610c47610dd1565b6010805460ff191693151593909317909255601155601255565b60146020528160005260406000208181548110610c7d57600080fd5b6000918252602090912001546001600160a01b03169150829050565b60136020526000908152604090205481565b600e5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600c5481565b610cea610dd1565b6001600160a01b038116610d105760405162461bcd60e51b815260040161070990611d32565b610898816111c7565b3390565b6001600160a01b038316610d435760405162461bcd60e51b815260040161070990611f9b565b6001600160a01b038216610d695760405162461bcd60e51b815260040161070990611d78565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610dc4908590612087565b60405180910390a3505050565b610dd9610d19565b6001600160a01b0316610dea610b18565b6001600160a01b031614610ae75760405162461bcd60e51b815260040161070990611e85565b6000610e1c8484610cb1565b905060001981146108095781811015610e475760405162461bcd60e51b815260040161070990611dba565b6108098484848403610d1d565b6001600160a01b038316610e7a5760405162461bcd60e51b815260040161070990611f1f565b6001600160a01b038216610ea05760405162461bcd60e51b815260040161070990611cad565b6000610eab84610ab6565b905081811015610ecd5760405162461bcd60e51b815260040161070990611df1565b600854600160a81b900460ff16610efb576009544210610efb576008805460ff60a81b1916600160a81b1790555b600854600160a81b900460ff1615610ffb5760105460ff168015610f2c57506008546001600160a01b038581169116145b15610f875760115482610f3e85610ab6565b610f48919061211c565b11158015610f6b575060125482610f5e85610ab6565b610f68919061211c565b10155b610f875760405162461bcd60e51b815260040161070990611e65565b81670de0b6b3a76400001480610faa57506008546001600160a01b038581169116145b80610fbd57506001600160a01b03841630145b15610fd257610fcd848484611351565b610ff6565b6000610fde8584611475565b9050610ff48585610fef868561176e565b611351565b505b610809565b6008546001600160a01b038481169116148061102457506008546001600160a01b038581169116145b1561109057611031610b18565b6001600160a01b0316846001600160a01b031614806110685750611053610b18565b6001600160a01b0316836001600160a01b0316145b1561107857610fcd848484611351565b60405162461bcd60e51b815260040161070990612016565b6110a2846001600160a01b0316611781565b156110b257610ff6848484611351565b60006110be8584611790565b90506110cf8585610fef868561176e565b5050505050565b6001600160a01b0382166110fc5760405162461bcd60e51b815260040161070990611ede565b61110882600083610a74565b6001600160a01b038216600090815260208190526040902054818110156111415760405162461bcd60e51b815260040161070990611cf0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611170908490612173565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906111b3908690612087565b60405180910390a3610a7483600084610a74565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061126f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526007548251911690829060019081106112ae57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546112d49130911685610d1d565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061130d908690600090869088904290600401612090565b600060405180830381600087803b15801561132757600080fd5b505af115801561133b573d6000803e3d6000fd5b50506008805460ff60a01b191690555050505050565b6001600160a01b0383166113775760405162461bcd60e51b815260040161070990611f1f565b6001600160a01b03821661139d5760405162461bcd60e51b815260040161070990611cad565b6113a8838383610a74565b6001600160a01b038316600090815260208190526040902054818110156113e15760405162461bcd60e51b815260040161070990611df1565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061141890849061211c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114629190612087565b60405180910390a3610809848484610a74565b6001600160a01b03821660009081526013602052604081205461149981600361211c565b6001600160a01b038516600090815260146020526040902054106115fb5760006114da6103e86114d4600c54876118ea90919063ffffffff16565b906118f6565b905061153f8560146000886001600160a01b03166001600160a01b03168152602001908152602001600020848154811061152457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031683611902565b6001600160a01b038516600090815260146020526040902061158690869061156885600161211c565b8154811061152457634e487b7160e01b600052603260045260246000fd5b6001600160a01b03851660009081526014602052604090206115af90869061156885600261211c565b6001600160a01b03851660009081526013602052604081208054600392906115d890849061211c565b909155506115f29050816115ec8180611993565b90611993565b9250505061068e565b60006116186103e86114d4600d54876118ea90919063ffffffff16565b9050801561162d5761162d8561dead83611902565b600061164a6103e86114d4600f54886118ea90919063ffffffff16565b905080156116c657600a5460ff166116885761166786308361199f565b600a5461168390829061010090046001600160a01b0316611219565b6116c6565b600a5460ff1680156116a45750600854600160a01b900460ff16155b156116c657600a546116c690879061010090046001600160a01b03168361199f565b60006116e36103e86114d4600e54896118ea90919063ffffffff16565b9050801561175557600a5460ff1661171c5761170087308361199f565b600b546117179082906001600160a01b0316611219565b611755565b600a5460ff1680156117385750600854600160a01b900460ff16155b1561175557600b546117559088906001600160a01b03168361199f565b611763816115ec8585611993565b979650505050505050565b600061177a8284612173565b9392505050565b6001600160a01b03163b151590565b6001600160a01b0382166000908152601360205260408120546117b481600361211c565b6001600160a01b03851660009081526014602052604090205410156117eb5760405162461bcd60e51b815260040161070990611f64565b60006118086103e86114d4600c54876118ea90919063ffffffff16565b90506118528560146000886001600160a01b03166001600160a01b03168152602001908152602001600020848154811061152457634e487b7160e01b600052603260045260246000fd5b6001600160a01b038516600090815260146020526040902061187b90869061156885600161211c565b6001600160a01b03851660009081526014602052604090206118a490869061156885600261211c565b6001600160a01b03851660009081526013602052604081208054600392906118cd90849061211c565b909155506118e19050816115ec8180611993565b95945050505050565b600061177a8284612154565b600061177a8284612134565b6001600160a01b03808416600090815260208190526040808220805485810390915592851682528120805484929061193b90849061211c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119859190612087565b60405180910390a350505050565b600061177a828461211c565b6001600160a01b0380841660009081526020819052604080822080548581039091559285168252812080548492906119d890849061211c565b909155505050505050565b80356001600160a01b0381168114610ad057600080fd5b600060208284031215611a0b578081fd5b61177a826119e3565b60008060408385031215611a26578081fd5b611a2f836119e3565b9150611a3d602084016119e3565b90509250929050565b600080600060608486031215611a5a578081fd5b611a63846119e3565b9250611a71602085016119e3565b9150604084013590509250925092565b60008060408385031215611a93578182fd5b611a9c836119e3565b915060208084013567ffffffffffffffff80821115611ab9578384fd5b818601915086601f830112611acc578384fd5b813581811115611ade57611ade6121f6565b838102604051601f19603f83011681018181108582111715611b0257611b026121f6565b604052828152858101935084860182860187018b1015611b20578788fd5b8795505b83861015611b4957611b35816119e3565b855260019590950194938601938601611b24565b508096505050505050509250929050565b60008060408385031215611b6c578182fd5b611b75836119e3565b946020939093013593505050565b600060208284031215611b94578081fd5b813561177a8161220c565b600060208284031215611bb0578081fd5b815161177a8161220c565b600080600060608486031215611bcf578283fd5b8335611bda8161220c565b95602085013595506040909401359392505050565b600060208284031215611c00578081fd5b5035919050565b600060208284031215611c18578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602080835283518082850152825b81811015611c8657858101830151858201604001528201611c6a565b81811115611c975783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601d908201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b602080825260069082015265119bdc989a5960d21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252601f908201527f596f752073686f756c642066696c6c2074687265652061646472657373657300604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f746865206164647265737320616c726561647920657869737473000000000000604082015260600190565b6020808252601290820152712a3930b234b7339034b9b713ba1037b832b760711b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156120df5784516001600160a01b0316835293830193918301916001016120ba565b50506001600160a01b03969096166060850152505050608001529392505050565b918252602082015260400190565b60ff91909116815260200190565b6000821982111561212f5761212f6121e0565b500190565b60008261214f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561216e5761216e6121e0565b500290565b600082821015612185576121856121e0565b500390565b60028104600182168061219e57607f821691505b602082108114156121bf57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121d9576121d96121e0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461089857600080fdfea26469706673582212207dab7118d37b98e768bc5a08933965c4b746227131b15fea4837c515ffe2d3d264736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000fa8dc2600509804e18410000000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000094d59d711f32519ecbef160df1b1fb30e1649e770000000000000000000000001956869eefe407fb4c436427437726f006e177ff
-----Decoded View---------------
Arg [0] : _totalSupply (uint256): 19850913000000000000000000000000
Arg [1] : _swap (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : _devpayee (address): 0x94d59D711f32519eCbEf160DF1b1fB30e1649E77
Arg [3] : _fundpayee (address): 0x1956869EEFE407fb4c436427437726f006e177FF
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000fa8dc2600509804e1841000000
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 00000000000000000000000094d59d711f32519ecbef160df1b1fb30e1649e77
Arg [3] : 0000000000000000000000001956869eefe407fb4c436427437726f006e177ff
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.