ERC-20
Overview
Max Total Supply
180,000,000,000 ODG
Holders
55
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
4,918,880 ODGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OceanDoge
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.21; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract OceanDoge is ERC20, Ownable, ReentrancyGuard { using SafeMath for uint256; address public fundsReceiver; uint256 public currentStage; uint256 public constant TOTAL_SUPPLY = 180_000_000_000 * 10**18; // 180 billion tokens uint256 public constant PRESALE_SUPPLY = 54_000_000_000 * 10**18; // 54 billion tokens uint256 public constant LISTING_SUPPLY = 126_000_000_000 * 10**18; // 126 billion tokens uint256 public tokensSold; bool public tradingEnabled; // Flag to control trading, initially set to false uint256 public ethToUsdtRate = 3371 * 10**18; // ETH to USDT conversion rate struct PresaleStage { uint256 price; // Price in USDT per token uint256 tokensAvailable; } PresaleStage[] public presaleStages; mapping (address => bool) private _isExcludedFromFees; event TokensPurchased(address indexed purchaser, uint256 amount, uint256 cost); event TradingEnabled(bool enabled); constructor(address _fundsReceiver) ERC20("OceanDoge", "ODG") Ownable(_fundsReceiver) { require(_fundsReceiver != address(0), "Invalid funds receiver address"); fundsReceiver = _fundsReceiver; // Set presale stages with price in USDT presaleStages.push(PresaleStage({price: 0.0001 * 10**18, tokensAvailable: 13500000000 * 10**18})); // 1 ODG = 0.0001 USDT presaleStages.push(PresaleStage({price: 0.0002 * 10**18, tokensAvailable: 27000000000 * 10**18})); // 1 ODG = 0.0002 USDT presaleStages.push(PresaleStage({price: 0.0004 * 10**18, tokensAvailable: 6750000000 * 10**18})); // 1 ODG = 0.0004 USDT presaleStages.push(PresaleStage({price: 0.0008 * 10**18, tokensAvailable: 3375000000 * 10**18})); // 1 ODG = 0.0008 USDT presaleStages.push(PresaleStage({price: 0.0016 * 10**18, tokensAvailable: 3375000000 * 10**18})); // 1 ODG = 0.0016 USDT _isExcludedFromFees[address(this)] = true; _isExcludedFromFees[address(fundsReceiver)] = true; _isExcludedFromFees[address(owner())] = true; // Mint total supply to contract _mint(address(this), TOTAL_SUPPLY); _transfer(address(this), fundsReceiver, TOTAL_SUPPLY.sub(PRESALE_SUPPLY)); // Allocate remaining tokens } function buyTokens() public payable nonReentrant { require(currentStage < presaleStages.length, "Presale has ended"); require(msg.value > 0, "No ETH sent"); uint256 usdtAmount = msg.value.mul(ethToUsdtRate).div(10**18); // Convert ETH to USDT uint256 tokensToBuy = usdtAmount.mul(10**18).div(presaleStages[currentStage].price); // Adjusting for decimal places require(tokensToBuy <= presaleStages[currentStage].tokensAvailable, "Not enough tokens available in current stage"); presaleStages[currentStage].tokensAvailable = presaleStages[currentStage].tokensAvailable.sub(tokensToBuy); tokensSold = tokensSold.add(tokensToBuy); if (presaleStages[currentStage].tokensAvailable == 0 && currentStage < presaleStages.length - 1) { currentStage++; } _transfer(address(this), msg.sender, tokensToBuy); payable(fundsReceiver).transfer(msg.value); emit TokensPurchased(msg.sender, tokensToBuy, usdtAmount); } function getPresaleStage(uint256 stage) public view returns (uint256 price, uint256 tokensAvailable) { require(stage < presaleStages.length, "Stage does not exist"); PresaleStage memory presaleStage = presaleStages[stage]; return (presaleStage.price, presaleStage.tokensAvailable); } receive() external payable nonReentrant { require(currentStage < presaleStages.length, "Presale has ended"); require(msg.value > 0, "No ETH sent"); uint256 usdtAmount = msg.value.mul(ethToUsdtRate).div(10**18); // Convert ETH to USDT uint256 tokensToBuy = usdtAmount.mul(10**18).div(presaleStages[currentStage].price); // Adjusting for decimal places require(tokensToBuy <= presaleStages[currentStage].tokensAvailable, "Not enough tokens available in current stage"); presaleStages[currentStage].tokensAvailable = presaleStages[currentStage].tokensAvailable.sub(tokensToBuy); tokensSold = tokensSold.add(tokensToBuy); if (presaleStages[currentStage].tokensAvailable == 0 && currentStage < presaleStages.length - 1) { currentStage++; } _transfer(address(this), msg.sender, tokensToBuy); payable(fundsReceiver).transfer(msg.value); emit TokensPurchased(msg.sender, tokensToBuy, usdtAmount); } function withdrawETH() external onlyOwner nonReentrant { payable(fundsReceiver).transfer(address(this).balance); } function excludeFromFees(address account, bool excluded) external onlyOwner { require(_isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'"); _isExcludedFromFees[account] = excluded; } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function enableTrading() external onlyOwner { require(!tradingEnabled, "Trading already enabled."); tradingEnabled = true; } function _update(address from, address to, uint256 amount) internal override { require(tradingEnabled || _isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading not yet enabled!"); super._update(from, to, amount); } }
// 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) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 default value returned by this function, unless * it's 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_fundsReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"purchaser","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"TradingEnabled","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":"LISTING_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"currentStage","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":[],"name":"ethToUsdtRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundsReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stage","type":"uint256"}],"name":"getPresaleStage","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokensAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"presaleStages","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokensAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405268b6be05cfad31cc0000600b553480156200001d575f80fd5b5060405162001cfe38038062001cfe83398101604081905262000040916200067b565b80604051806040016040528060098152602001684f6365616e446f676560b81b815250604051806040016040528060038152602001624f444760e81b815250816003908162000090919062000749565b5060046200009f828262000749565b5050506001600160a01b038116620000d157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620000dc81620003a0565b5060016006556001600160a01b0381166200013a5760405162461bcd60e51b815260206004820152601e60248201527f496e76616c69642066756e6473207265636569766572206164647265737300006044820152606401620000c8565b600780546001600160a01b038084166001600160a01b0319909216919091178255604080518082018252655af3107a400081526b2b9ef0326d7ec3363c0000006020808301918252600c8054600181810183555f838152955160029283027fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c78181019290925595517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c8968701558751808901895265b5e620f4800081526b573de064dafd866c7800000081870190815285548085018755868a5291519185028084019290925551908701558751808901895266016bcc41e9000081526b15cf781936bf619b1e00000081870190815285548085018755868a529151918502808401929092555190870155875180890189526602d79883d2000081526b0ae7bc0c9b5fb0cd8f00000081870181815286548086018855878b5292519286028085019390935551918801919091558851808a018a526605af3107a4000081528087019182528554808501875595895251949093029081019390935590519190930155308352600d90819052838320805460ff1990811684179091559554909416825291812080549094168217909355916200031b6005546001600160a01b031690565b6001600160a01b0316815260208101919091526040015f20805460ff19169115159190911790556200035b306c02459c82a05e9a2ad320000000620003f1565b600754620003999030906001600160a01b0316620003936c02459c82a05e9a2ad3200000006bae7bc0c9b5fb0cd8f00000006200042d565b62000443565b5062000851565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166200041c5760405163ec442f0560e01b81525f6004820152602401620000c8565b620004295f8383620004ab565b5050565b5f6200043a828462000825565b90505b92915050565b6001600160a01b0383166200046e57604051634b637e8f60e11b81525f6004820152602401620000c8565b6001600160a01b038216620004995760405163ec442f0560e01b81525f6004820152602401620000c8565b620004a6838383620004ab565b505050565b600a5460ff1680620004d457506001600160a01b0383165f908152600d602052604090205460ff165b80620004f757506001600160a01b0382165f908152600d602052604090205460ff165b620005455760405162461bcd60e51b815260206004820152601860248201527f54726164696e67206e6f742079657420656e61626c65642100000000000000006044820152606401620000c8565b620004a68383836001600160a01b0383166200057a578060025f8282546200056e91906200083b565b90915550620005ec9050565b6001600160a01b0383165f9081526020819052604090205481811015620005ce5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000c8565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200060a5760028054829003905562000628565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200066e91815260200190565b60405180910390a3505050565b5f602082840312156200068c575f80fd5b81516001600160a01b0381168114620006a3575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620006d357607f821691505b602082108103620006f257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620004a6575f81815260208120601f850160051c81016020861015620007205750805b601f850160051c820191505b8181101562000741578281556001016200072c565b505050505050565b81516001600160401b03811115620007655762000765620006aa565b6200077d81620007768454620006be565b84620006f8565b602080601f831160018114620007b3575f84156200079b5750858301515b5f19600386901b1c1916600185901b17855562000741565b5f85815260208120601f198616915b82811015620007e357888601518255948401946001909101908401620007c2565b50858210156200080157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b818103818111156200043d576200043d62000811565b808201808211156200043d576200043d62000811565b61149f806200085f5f395ff3fe608060405260043610610198575f3560e01c806370a08231116100e757806395d89b4111610087578063d0febe4c11610062578063d0febe4c1461072a578063dd62ed3e14610732578063e086e5ec14610776578063f2fde38b1461078a575f80fd5b806395d89b41146106d8578063a9059cbb146106ec578063c02466681461070b575f80fd5b80637dc304e6116100c25780637dc304e6146106685780638a8c523c146106875780638da5cb5b1461069b578063902d55a5146106b8575f80fd5b806370a0823114610601578063715018a61461063557806373138e4f14610649575f80fd5b8063313ce56711610152578063518ab2a81161012d578063518ab2a81461058e5780635bf5d54c146105a35780636ca490b9146105b85780636f584da0146105ec575f80fd5b8063313ce567146105235780634ada218b1461053e5780634fbee19314610557575f80fd5b806306e02fbc1461043657806306fdde0314610469578063095ea7b31461048a57806318160ddd146104b957806323b872dd146104cd57806323c7e09c146104ec575f80fd5b36610432576101a56107a9565b600c54600854106101f15760405162461bcd60e51b8152602060048201526011602482015270141c995cd85b19481a185cc8195b991959607a1b60448201526064015b60405180910390fd5b5f341161022e5760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b60448201526064016101e8565b5f610256670de0b6b3a7640000610250600b543461080290919063ffffffff16565b90610816565b90505f610293600c60085481548110610271576102716111e8565b5f91825260209091206002909102015461025084670de0b6b3a7640000610802565b9050600c600854815481106102aa576102aa6111e8565b905f5260205f209060020201600101548111156102d95760405162461bcd60e51b81526004016101e8906111fc565b61031081600c600854815481106102f2576102f26111e8565b905f5260205f2090600202016001015461082190919063ffffffff16565b600c60085481548110610325576103256111e8565b5f918252602090912060016002909202010155600954610345908261082c565b600981905550600c60085481548110610360576103606111e8565b905f5260205f209060020201600101545f14801561038d5750600c546103889060019061125c565b600854105b156103a75760088054905f6103a18361126f565b91905055505b6103b2303383610837565b6007546040516001600160a01b03909116903480156108fc02915f818181858888f193505050501580156103e8573d5f803e3d5ffd5b50604080518281526020810184905233917f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f33910160405180910390a250506104306001600655565b005b5f80fd5b348015610441575f80fd5b506104566c019720c1d6a89f1dfa3000000081565b6040519081526020015b60405180910390f35b348015610474575f80fd5b5061047d610899565b6040516104609190611287565b348015610495575f80fd5b506104a96104a43660046112ed565b610929565b6040519015158152602001610460565b3480156104c4575f80fd5b50600254610456565b3480156104d8575f80fd5b506104a96104e7366004611315565b610940565b3480156104f7575f80fd5b5060075461050b906001600160a01b031681565b6040516001600160a01b039091168152602001610460565b34801561052e575f80fd5b5060405160128152602001610460565b348015610549575f80fd5b50600a546104a99060ff1681565b348015610562575f80fd5b506104a961057136600461134e565b6001600160a01b03165f908152600d602052604090205460ff1690565b348015610599575f80fd5b5061045660095481565b3480156105ae575f80fd5b5061045660085481565b3480156105c3575f80fd5b506105d76105d2366004611367565b610963565b60408051928352602083019190915201610460565b3480156105f7575f80fd5b50610456600b5481565b34801561060c575f80fd5b5061045661061b36600461134e565b6001600160a01b03165f9081526020819052604090205490565b348015610640575f80fd5b506104306109fa565b348015610654575f80fd5b506104566bae7bc0c9b5fb0cd8f000000081565b348015610673575f80fd5b506105d7610682366004611367565b610a0d565b348015610692575f80fd5b50610430610a39565b3480156106a6575f80fd5b506005546001600160a01b031661050b565b3480156106c3575f80fd5b506104566c02459c82a05e9a2ad32000000081565b3480156106e3575f80fd5b5061047d610aa3565b3480156106f7575f80fd5b506104a96107063660046112ed565b610ab2565b348015610716575f80fd5b5061043061072536600461137e565b610abf565b610430610b73565b34801561073d575f80fd5b5061045661074c3660046113b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610781575f80fd5b50610430610dbb565b348015610795575f80fd5b506104306107a436600461134e565b610e0c565b6002600654036107fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101e8565b6002600655565b5f61080d82846113e8565b90505b92915050565b5f61080d82846113ff565b5f61080d828461125c565b5f61080d828461141e565b6001600160a01b03831661086057604051634b637e8f60e11b81525f60048201526024016101e8565b6001600160a01b0382166108895760405163ec442f0560e01b81525f60048201526024016101e8565b610894838383610e49565b505050565b6060600380546108a890611431565b80601f01602080910402602001604051908101604052809291908181526020018280546108d490611431565b801561091f5780601f106108f65761010080835404028352916020019161091f565b820191905f5260205f20905b81548152906001019060200180831161090257829003601f168201915b5050505050905090565b5f33610936818585610eea565b5060019392505050565b5f3361094d858285610ef7565b610958858585610837565b506001949350505050565b600c545f90819083106109af5760405162461bcd60e51b815260206004820152601460248201527314dd1859d948191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016101e8565b5f600c84815481106109c3576109c36111e8565b5f91825260209182902060408051808201909152600290920201805480835260019091015491909201819052909590945092505050565b610a02610f72565b610a0b5f610f9f565b565b600c8181548110610a1c575f80fd5b5f9182526020909120600290910201805460019091015490915082565b610a41610f72565b600a5460ff1615610a945760405162461bcd60e51b815260206004820152601860248201527f54726164696e6720616c726561647920656e61626c65642e000000000000000060448201526064016101e8565b600a805460ff19166001179055565b6060600480546108a890611431565b5f33610936818585610837565b610ac7610f72565b6001600160a01b0382165f908152600d602052604090205481151560ff909116151503610b495760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b60648201526084016101e8565b6001600160a01b03919091165f908152600d60205260409020805460ff1916911515919091179055565b610b7b6107a9565b600c5460085410610bc25760405162461bcd60e51b8152602060048201526011602482015270141c995cd85b19481a185cc8195b991959607a1b60448201526064016101e8565b5f3411610bff5760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b60448201526064016101e8565b5f610c21670de0b6b3a7640000610250600b543461080290919063ffffffff16565b90505f610c3c600c60085481548110610271576102716111e8565b9050600c60085481548110610c5357610c536111e8565b905f5260205f20906002020160010154811115610c825760405162461bcd60e51b81526004016101e8906111fc565b610c9b81600c600854815481106102f2576102f26111e8565b600c60085481548110610cb057610cb06111e8565b5f918252602090912060016002909202010155600954610cd0908261082c565b600981905550600c60085481548110610ceb57610ceb6111e8565b905f5260205f209060020201600101545f148015610d185750600c54610d139060019061125c565b600854105b15610d325760088054905f610d2c8361126f565b91905055505b610d3d303383610837565b6007546040516001600160a01b03909116903480156108fc02915f818181858888f19350505050158015610d73573d5f803e3d5ffd5b50604080518281526020810184905233917f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f33910160405180910390a25050610a0b6001600655565b610dc3610f72565b610dcb6107a9565b6007546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610e01573d5f803e3d5ffd5b50610a0b6001600655565b610e14610f72565b6001600160a01b038116610e3d57604051631e4fbdf760e01b81525f60048201526024016101e8565b610e4681610f9f565b50565b600a5460ff1680610e7157506001600160a01b0383165f908152600d602052604090205460ff165b80610e9357506001600160a01b0382165f908152600d602052604090205460ff165b610edf5760405162461bcd60e51b815260206004820152601860248201527f54726164696e67206e6f742079657420656e61626c656421000000000000000060448201526064016101e8565b610894838383610ff0565b6108948383836001611116565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610f6c5781811015610f5e57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101e8565b610f6c84848484035f611116565b50505050565b6005546001600160a01b03163314610a0b5760405163118cdaa760e01b81523360048201526024016101e8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03831661101a578060025f82825461100f919061141e565b9091555061108a9050565b6001600160a01b0383165f908152602081905260409020548181101561106c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101e8565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166110a6576002805482900390556110c4565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161110991815260200190565b60405180910390a3505050565b6001600160a01b03841661113f5760405163e602df0560e01b81525f60048201526024016101e8565b6001600160a01b03831661116857604051634a1406b160e11b81525f60048201526024016101e8565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610f6c57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111da91815260200190565b60405180910390a350505050565b634e487b7160e01b5f52603260045260245ffd5b6020808252602c908201527f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520696e206360408201526b757272656e7420737461676560a01b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561081057610810611248565b5f6001820161128057611280611248565b5060010190565b5f6020808352835180828501525f5b818110156112b257858101830151858201604001528201611296565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112e8575f80fd5b919050565b5f80604083850312156112fe575f80fd5b611307836112d2565b946020939093013593505050565b5f805f60608486031215611327575f80fd5b611330846112d2565b925061133e602085016112d2565b9150604084013590509250925092565b5f6020828403121561135e575f80fd5b61080d826112d2565b5f60208284031215611377575f80fd5b5035919050565b5f806040838503121561138f575f80fd5b611398836112d2565b9150602083013580151581146113ac575f80fd5b809150509250929050565b5f80604083850312156113c8575f80fd5b6113d1836112d2565b91506113df602084016112d2565b90509250929050565b808202811582820484141761081057610810611248565b5f8261141957634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561081057610810611248565b600181811c9082168061144557607f821691505b60208210810361146357634e487b7160e01b5f52602260045260245ffd5b5091905056fea26469706673582212209be41bc0a6b9152b2edd89c2ee530caf6e6a55ecd72e0d0ccb8ca1432485afeb64736f6c63430008150033000000000000000000000000bff466b688828df783a4188760d7e493732e36c6
Deployed Bytecode
0x608060405260043610610198575f3560e01c806370a08231116100e757806395d89b4111610087578063d0febe4c11610062578063d0febe4c1461072a578063dd62ed3e14610732578063e086e5ec14610776578063f2fde38b1461078a575f80fd5b806395d89b41146106d8578063a9059cbb146106ec578063c02466681461070b575f80fd5b80637dc304e6116100c25780637dc304e6146106685780638a8c523c146106875780638da5cb5b1461069b578063902d55a5146106b8575f80fd5b806370a0823114610601578063715018a61461063557806373138e4f14610649575f80fd5b8063313ce56711610152578063518ab2a81161012d578063518ab2a81461058e5780635bf5d54c146105a35780636ca490b9146105b85780636f584da0146105ec575f80fd5b8063313ce567146105235780634ada218b1461053e5780634fbee19314610557575f80fd5b806306e02fbc1461043657806306fdde0314610469578063095ea7b31461048a57806318160ddd146104b957806323b872dd146104cd57806323c7e09c146104ec575f80fd5b36610432576101a56107a9565b600c54600854106101f15760405162461bcd60e51b8152602060048201526011602482015270141c995cd85b19481a185cc8195b991959607a1b60448201526064015b60405180910390fd5b5f341161022e5760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b60448201526064016101e8565b5f610256670de0b6b3a7640000610250600b543461080290919063ffffffff16565b90610816565b90505f610293600c60085481548110610271576102716111e8565b5f91825260209091206002909102015461025084670de0b6b3a7640000610802565b9050600c600854815481106102aa576102aa6111e8565b905f5260205f209060020201600101548111156102d95760405162461bcd60e51b81526004016101e8906111fc565b61031081600c600854815481106102f2576102f26111e8565b905f5260205f2090600202016001015461082190919063ffffffff16565b600c60085481548110610325576103256111e8565b5f918252602090912060016002909202010155600954610345908261082c565b600981905550600c60085481548110610360576103606111e8565b905f5260205f209060020201600101545f14801561038d5750600c546103889060019061125c565b600854105b156103a75760088054905f6103a18361126f565b91905055505b6103b2303383610837565b6007546040516001600160a01b03909116903480156108fc02915f818181858888f193505050501580156103e8573d5f803e3d5ffd5b50604080518281526020810184905233917f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f33910160405180910390a250506104306001600655565b005b5f80fd5b348015610441575f80fd5b506104566c019720c1d6a89f1dfa3000000081565b6040519081526020015b60405180910390f35b348015610474575f80fd5b5061047d610899565b6040516104609190611287565b348015610495575f80fd5b506104a96104a43660046112ed565b610929565b6040519015158152602001610460565b3480156104c4575f80fd5b50600254610456565b3480156104d8575f80fd5b506104a96104e7366004611315565b610940565b3480156104f7575f80fd5b5060075461050b906001600160a01b031681565b6040516001600160a01b039091168152602001610460565b34801561052e575f80fd5b5060405160128152602001610460565b348015610549575f80fd5b50600a546104a99060ff1681565b348015610562575f80fd5b506104a961057136600461134e565b6001600160a01b03165f908152600d602052604090205460ff1690565b348015610599575f80fd5b5061045660095481565b3480156105ae575f80fd5b5061045660085481565b3480156105c3575f80fd5b506105d76105d2366004611367565b610963565b60408051928352602083019190915201610460565b3480156105f7575f80fd5b50610456600b5481565b34801561060c575f80fd5b5061045661061b36600461134e565b6001600160a01b03165f9081526020819052604090205490565b348015610640575f80fd5b506104306109fa565b348015610654575f80fd5b506104566bae7bc0c9b5fb0cd8f000000081565b348015610673575f80fd5b506105d7610682366004611367565b610a0d565b348015610692575f80fd5b50610430610a39565b3480156106a6575f80fd5b506005546001600160a01b031661050b565b3480156106c3575f80fd5b506104566c02459c82a05e9a2ad32000000081565b3480156106e3575f80fd5b5061047d610aa3565b3480156106f7575f80fd5b506104a96107063660046112ed565b610ab2565b348015610716575f80fd5b5061043061072536600461137e565b610abf565b610430610b73565b34801561073d575f80fd5b5061045661074c3660046113b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610781575f80fd5b50610430610dbb565b348015610795575f80fd5b506104306107a436600461134e565b610e0c565b6002600654036107fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101e8565b6002600655565b5f61080d82846113e8565b90505b92915050565b5f61080d82846113ff565b5f61080d828461125c565b5f61080d828461141e565b6001600160a01b03831661086057604051634b637e8f60e11b81525f60048201526024016101e8565b6001600160a01b0382166108895760405163ec442f0560e01b81525f60048201526024016101e8565b610894838383610e49565b505050565b6060600380546108a890611431565b80601f01602080910402602001604051908101604052809291908181526020018280546108d490611431565b801561091f5780601f106108f65761010080835404028352916020019161091f565b820191905f5260205f20905b81548152906001019060200180831161090257829003601f168201915b5050505050905090565b5f33610936818585610eea565b5060019392505050565b5f3361094d858285610ef7565b610958858585610837565b506001949350505050565b600c545f90819083106109af5760405162461bcd60e51b815260206004820152601460248201527314dd1859d948191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016101e8565b5f600c84815481106109c3576109c36111e8565b5f91825260209182902060408051808201909152600290920201805480835260019091015491909201819052909590945092505050565b610a02610f72565b610a0b5f610f9f565b565b600c8181548110610a1c575f80fd5b5f9182526020909120600290910201805460019091015490915082565b610a41610f72565b600a5460ff1615610a945760405162461bcd60e51b815260206004820152601860248201527f54726164696e6720616c726561647920656e61626c65642e000000000000000060448201526064016101e8565b600a805460ff19166001179055565b6060600480546108a890611431565b5f33610936818585610837565b610ac7610f72565b6001600160a01b0382165f908152600d602052604090205481151560ff909116151503610b495760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b60648201526084016101e8565b6001600160a01b03919091165f908152600d60205260409020805460ff1916911515919091179055565b610b7b6107a9565b600c5460085410610bc25760405162461bcd60e51b8152602060048201526011602482015270141c995cd85b19481a185cc8195b991959607a1b60448201526064016101e8565b5f3411610bff5760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b60448201526064016101e8565b5f610c21670de0b6b3a7640000610250600b543461080290919063ffffffff16565b90505f610c3c600c60085481548110610271576102716111e8565b9050600c60085481548110610c5357610c536111e8565b905f5260205f20906002020160010154811115610c825760405162461bcd60e51b81526004016101e8906111fc565b610c9b81600c600854815481106102f2576102f26111e8565b600c60085481548110610cb057610cb06111e8565b5f918252602090912060016002909202010155600954610cd0908261082c565b600981905550600c60085481548110610ceb57610ceb6111e8565b905f5260205f209060020201600101545f148015610d185750600c54610d139060019061125c565b600854105b15610d325760088054905f610d2c8361126f565b91905055505b610d3d303383610837565b6007546040516001600160a01b03909116903480156108fc02915f818181858888f19350505050158015610d73573d5f803e3d5ffd5b50604080518281526020810184905233917f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f33910160405180910390a25050610a0b6001600655565b610dc3610f72565b610dcb6107a9565b6007546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610e01573d5f803e3d5ffd5b50610a0b6001600655565b610e14610f72565b6001600160a01b038116610e3d57604051631e4fbdf760e01b81525f60048201526024016101e8565b610e4681610f9f565b50565b600a5460ff1680610e7157506001600160a01b0383165f908152600d602052604090205460ff165b80610e9357506001600160a01b0382165f908152600d602052604090205460ff165b610edf5760405162461bcd60e51b815260206004820152601860248201527f54726164696e67206e6f742079657420656e61626c656421000000000000000060448201526064016101e8565b610894838383610ff0565b6108948383836001611116565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610f6c5781811015610f5e57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101e8565b610f6c84848484035f611116565b50505050565b6005546001600160a01b03163314610a0b5760405163118cdaa760e01b81523360048201526024016101e8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03831661101a578060025f82825461100f919061141e565b9091555061108a9050565b6001600160a01b0383165f908152602081905260409020548181101561106c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101e8565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166110a6576002805482900390556110c4565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161110991815260200190565b60405180910390a3505050565b6001600160a01b03841661113f5760405163e602df0560e01b81525f60048201526024016101e8565b6001600160a01b03831661116857604051634a1406b160e11b81525f60048201526024016101e8565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610f6c57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111da91815260200190565b60405180910390a350505050565b634e487b7160e01b5f52603260045260245ffd5b6020808252602c908201527f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6520696e206360408201526b757272656e7420737461676560a01b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561081057610810611248565b5f6001820161128057611280611248565b5060010190565b5f6020808352835180828501525f5b818110156112b257858101830151858201604001528201611296565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112e8575f80fd5b919050565b5f80604083850312156112fe575f80fd5b611307836112d2565b946020939093013593505050565b5f805f60608486031215611327575f80fd5b611330846112d2565b925061133e602085016112d2565b9150604084013590509250925092565b5f6020828403121561135e575f80fd5b61080d826112d2565b5f60208284031215611377575f80fd5b5035919050565b5f806040838503121561138f575f80fd5b611398836112d2565b9150602083013580151581146113ac575f80fd5b809150509250929050565b5f80604083850312156113c8575f80fd5b6113d1836112d2565b91506113df602084016112d2565b90509250929050565b808202811582820484141761081057610810611248565b5f8261141957634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561081057610810611248565b600181811c9082168061144557607f821691505b60208210810361146357634e487b7160e01b5f52602260045260245ffd5b5091905056fea26469706673582212209be41bc0a6b9152b2edd89c2ee530caf6e6a55ecd72e0d0ccb8ca1432485afeb64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bff466b688828df783a4188760d7e493732e36c6
-----Decoded View---------------
Arg [0] : _fundsReceiver (address): 0xbFf466b688828DF783a4188760d7e493732e36C6
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000bff466b688828df783a4188760d7e493732e36c6
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.