ERC-20
Overview
Max Total Supply
100,000,000 UNIX
Holders
4
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UniverseX
Compiler Version
v0.8.19+commit.7dd6d404
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.19; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.9/contracts/utils/Address.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.9/contracts/token/ERC20/ERC20.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.9/contracts/security/ReentrancyGuard.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./PreSale.sol"; /** * @title UniverseX * @dev The UniverseX contract is an ERC20 token contract with fee-based transfers. */ contract UniverseX is ERC20, ReentrancyGuard { uint256 constant public TOTAL_EMIT=100_000_000 ether; uint256 constant public PRESALE_EMIT=3_000_000 ether; address[2] private _feeOwners=[ 0xc46b48737D2cA939F2a0B3fCc298912312716CD4, 0x068B9b6e211766E3Bdd7211f6Adcaa327B1371a2 ]; IUniswapV2Router02 private immutable _router; address private immutable _weth9; address private immutable _pair; mapping (address => bool) private _isExcludedFromFees; mapping (address => uint256) private _lastBuyBlock; UniverseXPreSale private immutable presale_contract; constructor() ERC20("Universe X","UNIX"){ address router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; // Uniswap Mainnet _isExcludedFromFees[0xE097c249FB2B2442cCFDB6628648b2d79ee91478] = true; _isExcludedFromFees[0xc46b48737D2cA939F2a0B3fCc298912312716CD4] = true; _isExcludedFromFees[0x068B9b6e211766E3Bdd7211f6Adcaa327B1371a2] = true; _isExcludedFromFees[msg.sender] = true; _isExcludedFromFees[address(this)] = true; _router = IUniswapV2Router02(router); _weth9 = _router.WETH(); _pair = IUniswapV2Factory(_router.factory()).createPair(address(this), _weth9); _mint(0xc46b48737D2cA939F2a0B3fCc298912312716CD4, TOTAL_EMIT - PRESALE_EMIT); presale_contract=new UniverseXPreSale(address(this)); _isExcludedFromFees[address(presale_contract)] = true; _mint(address(presale_contract), PRESALE_EMIT); } function getPresaleContract() external view returns(address){ return address(presale_contract); } receive() external payable{ } function _transfer ( address sender_, address recipient_, uint256 amount_ ) internal virtual override { if (_isExcludedFromFees[sender_] || _isExcludedFromFees[recipient_]) { super._transfer(sender_, recipient_, amount_); } else { uint256 wethLiqudity = IERC20(_weth9).balanceOf(address(_pair)); uint256 fee_level=0; if ( wethLiqudity < 20 ether) { fee_level=60; }else{ fee_level=40; } uint fee = amount_ * fee_level / 1000 ; uint tokens = amount_ - fee; super._transfer(sender_, address(this), fee); if (sender_ != _pair) { _distributeFee(); } super._transfer(sender_, recipient_, tokens); } if (recipient_ != _pair){ _lastBuyBlock[recipient_]=block.number; } } function _distributeFee() internal nonReentrant { uint amount = balanceOf(address(this)); if (amount >= 0) { address[] memory path = new address[](2); path[0] = address(this); path[1] = _weth9; _approve(address(this), address(_router), amount); _router.swapExactTokensForETHSupportingFeeOnTransferTokens( amount, 0, path, address(this), block.timestamp ); } uint eth_amount=address(this).balance; if ( eth_amount> 0) { for(uint256 i;i<2;){ uint fee=eth_amount / 2; (bool success, ) = payable(_feeOwners[i]).call{value: fee}(""); if (!success) { revert("Error send ETH"); } } } } }
//SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.9/contracts/utils/Address.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.9/contracts/token/ERC20/ERC20.sol"; contract UniverseXPreSale { uint256 public constant START_SALE=1698255000; // Oct 25, 2023 17:30 uint256 public END_SALE=1698427800; // Oct 27, 2023 17:30 uint256 constant public FEE=7; uint8 constant public BOX_COUNT=4; uint256 totalSoldTokens = 0; mapping(address => uint256) _sold; mapping(address => uint256) _claimed; IERC20 private _token; uint256[BOX_COUNT] private _boxTokens=[7000 ether,15000 ether,35000 ether, 80000 ether]; uint256[BOX_COUNT] private _boxPrice=[0.05 ether,0.1 ether,0.2 ether, 0.4 ether]; address[2] private _sellers=[ 0xA49804eFef31dF1d1781644875750B2565784e3d, 0xce30CFA16478A6ef118Fd48b6eF7f5d9C021C31d ]; address private _flushAddress = 0xc46b48737D2cA939F2a0B3fCc298912312716CD4; address private _owner; event BoxSold(address indexed user, uint8 boxId, uint8 amount); event Claimed(address indexed user, uint256 amount); /** * @dev Constructor function. */ constructor(address token) { _token=IERC20(token); _owner=tx.origin; } function setSaleEnd(uint256 date) external { require(msg.sender == _owner, "Not authorized"); require(date > START_SALE, "Wrong date"); require(date < END_SALE, "Wrong date"); END_SALE=date; } function forClaim(address user) external view returns(uint256){ return _sold[user] - _claimed[user]; } function forClaimTotal() external view returns(uint256){ return _token.balanceOf(address(this)) - totalSoldTokens; } function getBNBAmount(uint8 boxId, uint8 amount) external view returns(uint256){ return _boxPrice[ boxId ] * amount; } function buy(uint8 boxId, uint8 amount, address referrer)external payable{ require( amount > 0, "Illegal amount"); require(block.timestamp >= START_SALE, "Too early"); require(block.timestamp <= END_SALE, "Too late"); require( boxId < BOX_COUNT, "Illegal box ID"); require( _boxTokens[ boxId ] * amount + totalSoldTokens <= _token.balanceOf(address(this)), "Not enough tokens"); require( _boxPrice[ boxId ] * amount == msg.value, "Not exact value"); uint256 value=msg.value; _sold[msg.sender] += _boxTokens[ boxId ] * amount; totalSoldTokens += _boxTokens[ boxId ] * amount; if (referrer != address(0) && referrer != msg.sender){ Address.sendValue( payable(referrer), msg.value / 10); value=value * 9 / 10; } Address.sendValue( payable(_sellers[0]), value/2); Address.sendValue( payable(_sellers[1]), value/2); emit BoxSold(msg.sender, boxId, amount); } function claim() external { require(block.timestamp > END_SALE, "Too early"); require( _sold[msg.sender] > _claimed[msg.sender], "No enough tokens"); if (totalSoldTokens < _token.balanceOf(address(this))){ _token.transfer(_flushAddress, _token.balanceOf(address(this)) - totalSoldTokens); totalSoldTokens=_token.balanceOf(address(this)); } uint256 amount=_sold[msg.sender] - _claimed[msg.sender]; _claimed[msg.sender]=_sold[msg.sender]; _token.transfer(msg.sender,amount); emit Claimed(msg.sender, amount); } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // 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 v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// 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 v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
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); }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"PRESALE_EMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_EMIT","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPresaleContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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
61014060405273c46b48737d2ca939f2a0b3fcc298912312716cd461010090815273068b9b6e211766e3bdd7211f6adcaa327b1371a2610120526200004990600690600262000479565b503480156200005757600080fd5b506040518060400160405280600a8152602001690aadcd2eccae4e6ca40b60b31b815250604051806040016040528060048152602001630aa9c92b60e31b8152508160039081620000a991906200059f565b506004620000b882826200059f565b505060016005819055600860209081527f9216696f23b03656d1bf68d49458702e55a45783f1c48c040f99fcf842db70b8805460ff1990811684179091557f0219af26c809c63afd3030c8491adee6ffcbe34af06e459dc3a72b2f3e117e3880548216841790557f8d3583e96c8ad1a4e8afd3f00f80f12c550e66422970baf69ef725b107c318d98054821684179055336000908152604080822080548416861790553082529081902080549092169093179055737a250d5630b4cf539739df2c5dacb4c659f2488d608081905282516315ab88c960e31b81529251909350839263ad5c46489260048083019391928290030181865afa158015620001c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001e791906200066b565b6001600160a01b031660a0816001600160a01b0316815250506080516001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026791906200066b565b60a0516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af1158015620002b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002df91906200066b565b6001600160a01b031660c0526200032c73c46b48737d2ca939f2a0b3fcc298912312716cd4620003266a027b46536c66c8e30000006a52b7d2dcc80cd2e4000000620006b3565b620003ae565b306040516200033b90620004d6565b6001600160a01b039091168152602001604051809103906000f08015801562000368573d6000803e3d6000fd5b506001600160a01b031660e08190526000818152600860205260409020805460ff19166001179055620003a7906a027b46536c66c8e3000000620003ae565b50620006e5565b6001600160a01b038216620004095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200041d9190620006cf565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b8260028101928215620004c4579160200282015b82811115620004c457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200048d565b50620004d2929150620004e4565b5090565b611014806200168283390190565b5b80821115620004d25760008155600101620004e5565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200052657607f821691505b6020821081036200054757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200047457600081815260208120601f850160051c81016020861015620005765750805b601f850160051c820191505b81811015620005975782815560010162000582565b505050505050565b81516001600160401b03811115620005bb57620005bb620004fb565b620005d381620005cc845462000511565b846200054d565b602080601f8311600181146200060b5760008415620005f25750858301515b600019600386901b1c1916600185901b17855562000597565b600085815260208120601f198616915b828110156200063c578886015182559484019460019091019084016200061b565b50858210156200065b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200067e57600080fd5b81516001600160a01b03811681146200069657600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115620006c957620006c96200069d565b92915050565b80820180821115620006c957620006c96200069d565b60805160a05160c05160e051610f476200073b60003960006102c60152600081816106b3015281816107a201526107f30152600081816106de0152610a5e015260008181610ab60152610af20152610f476000f3fe6080604052600436106100e15760003560e01c80633b77e48d1161007f578063a457c2d711610059578063a457c2d71461024c578063a9059cbb1461026c578063dd62ed3e1461028c578063f1012b45146102ac57600080fd5b80633b77e48d146101e257806370a082311461020157806395d89b411461023757600080fd5b806323b872dd116100bb57806323b872dd14610167578063313ce567146101875780633522f17d146101a357806339509351146101c257600080fd5b806306fdde03146100ed578063095ea7b31461011857806318160ddd1461014857600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b506101026102f0565b60405161010f9190610c9d565b60405180910390f35b34801561012457600080fd5b50610138610133366004610d07565b610382565b604051901515815260200161010f565b34801561015457600080fd5b506002545b60405190815260200161010f565b34801561017357600080fd5b50610138610182366004610d31565b61039c565b34801561019357600080fd5b506040516012815260200161010f565b3480156101af57600080fd5b506101596a52b7d2dcc80cd2e400000081565b3480156101ce57600080fd5b506101386101dd366004610d07565b6103c0565b3480156101ee57600080fd5b506101596a027b46536c66c8e300000081565b34801561020d57600080fd5b5061015961021c366004610d6d565b6001600160a01b031660009081526020819052604090205490565b34801561024357600080fd5b506101026103e2565b34801561025857600080fd5b50610138610267366004610d07565b6103f1565b34801561027857600080fd5b50610138610287366004610d07565b610471565b34801561029857600080fd5b506101596102a7366004610d8f565b61047f565b3480156102b857600080fd5b506040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260200161010f565b6060600380546102ff90610dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461032b90610dc2565b80156103785780601f1061034d57610100808354040283529160200191610378565b820191906000526020600020905b81548152906001019060200180831161035b57829003601f168201915b5050505050905090565b6000336103908185856104aa565b60019150505b92915050565b6000336103aa8582856105ce565b6103b5858585610648565b506001949350505050565b6000336103908185856103d3838361047f565b6103dd9190610e12565b6104aa565b6060600480546102ff90610dc2565b600033816103ff828661047f565b9050838110156104645760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6103b582868684036104aa565b600033610390818585610648565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661050c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045b565b6001600160a01b03821661056d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006105da848461047f565b9050600019811461064257818110156106355760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161045b565b61064284848484036104aa565b50505050565b6001600160a01b03831660009081526008602052604090205460ff168061068757506001600160a01b03821660009081526008602052604090205460ff165b1561069c5761069783838361084b565b6107f1565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190610e25565b905060006801158e460913d000008210156107685750603c61076c565b5060285b60006103e861077b8386610e3e565b6107859190610e55565b905060006107938286610e77565b90506107a087308461084b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b0316146107e1576107e16109ef565b6107ec87878361084b565b505050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614610846576001600160a01b03821660009081526009602052604090204390555b505050565b6001600160a01b0383166108af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045b565b6001600160a01b0382166109115760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045b565b6001600160a01b038316600090815260208190526040902054818110156109895760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610642565b6109f7610c44565b306000908152602081815260408083205481516002808252606082018452919493909290830190803683370190505090503081600081518110610a3c57610a3c610e8a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610a9057610a90610e8a565b60200260200101906001600160a01b031690816001600160a01b031681525050610adb307f0000000000000000000000000000000000000000000000000000000000000000846104aa565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790610b30908590600090869030904290600401610ea0565b600060405180830381600087803b158015610b4a57600080fd5b505af1158015610b5e573d6000803e3d6000fd5b5050505050478015610c365760005b6002811015610c34576000610b83600284610e55565b9050600060068360028110610b9a57610b9a610e8a565b01546040516001600160a01b03909116908390600081818185875af1925050503d8060008114610be6576040519150601f19603f3d011682016040523d82523d6000602084013e610beb565b606091505b5050905080610c2d5760405162461bcd60e51b815260206004820152600e60248201526d08ae4e4dee440e6cadcc8408aa8960931b604482015260640161045b565b5050610b6d565b505b5050610c426001600555565b565b600260055403610c965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045b565b6002600555565b600060208083528351808285015260005b81811015610cca57858101830151858201604001528201610cae565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d0257600080fd5b919050565b60008060408385031215610d1a57600080fd5b610d2383610ceb565b946020939093013593505050565b600080600060608486031215610d4657600080fd5b610d4f84610ceb565b9250610d5d60208501610ceb565b9150604084013590509250925092565b600060208284031215610d7f57600080fd5b610d8882610ceb565b9392505050565b60008060408385031215610da257600080fd5b610dab83610ceb565b9150610db960208401610ceb565b90509250929050565b600181811c90821680610dd657607f821691505b602082108103610df657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561039657610396610dfc565b600060208284031215610e3757600080fd5b5051919050565b808202811582820484141761039657610396610dfc565b600082610e7257634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561039657610396610dfc565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610ef05784516001600160a01b031683529383019391830191600101610ecb565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212204d9bed2d96fb60daedbd65dfa7137f08d1e56c5cddd7269193a2cd62efe0702e64736f6c6343000813003363653bf398600090815560015561010060405269017b7883c06916600000608090815269032d26d12e980b60000060a0526907695a92c20d6fe0000060c0526910f0cf064dd59200000060e0526200005c9060059060046200017f565b506040805160808101825266b1a2bc2ec50000815267016345785d8a000060208201526702c68af0bb1400009181019190915267058d15e1762800006060820152620000ad906009906004620001cd565b506040805180820190915273a49804efef31df1d1781644875750b2565784e3d815273ce30cfa16478a6ef118fd48b6ef7f5d9c021c31d6020820152620000f990600d90600262000209565b50600f80546001600160a01b03191673c46b48737d2ca939f2a0b3fcc298912312716cd41790553480156200012d57600080fd5b50604051620010143803806200101483398101604081905262000150916200026b565b600480546001600160a01b039092166001600160a01b031992831617905560108054909116321790556200029d565b8260048101928215620001bb579160200282015b82811115620001bb57825182906001600160501b031690559160200191906001019062000193565b50620001c992915062000254565b5090565b8260048101928215620001bb579160200282015b82811115620001bb57825182906001600160401b0316905591602001919060010190620001e1565b8260028101928215620001bb579160200282015b82811115620001bb57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200021d565b5b80821115620001c9576000815560010162000255565b6000602082840312156200027e57600080fd5b81516001600160a01b03811681146200029657600080fd5b9392505050565b610d6780620002ad6000396000f3fe6080604052600436106100915760003560e01c806369ac44a61161005957806369ac44a61461012057806371e39ffa14610140578063a88d796b14610160578063ae0bc0a814610187578063c57981b51461019d57600080fd5b80631515fa6e14610096578063157aff49146100b857806320df16bf146100e057806323b569a0146100f85780634e71d92d1461010b575b600080fd5b3480156100a257600080fd5b506100b66100b1366004610b94565b6101b2565b005b3480156100c457600080fd5b506100cd610285565b6040519081526020015b60405180910390f35b3480156100ec57600080fd5b506100cd636539509881565b6100b6610106366004610bda565b61030a565b34801561011757600080fd5b506100b66106a4565b34801561012c57600080fd5b506100cd61013b366004610c1d565b610a13565b34801561014c57600080fd5b506100cd61015b366004610c38565b610a47565b34801561016c57600080fd5b50610175600481565b60405160ff90911681526020016100d7565b34801561019357600080fd5b506100cd60005481565b3480156101a957600080fd5b506100cd600781565b6010546001600160a01b031633146102025760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b636539509881116102425760405162461bcd60e51b815260206004820152600a60248201526957726f6e67206461746560b01b60448201526064016101f9565b60005481106102805760405162461bcd60e51b815260206004820152600a60248201526957726f6e67206461746560b01b60448201526064016101f9565b600055565b600154600480546040516370a0823160e01b81523092810192909252600092916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610c6b565b6103059190610c9a565b905090565b60008260ff161161034e5760405162461bcd60e51b815260206004820152600e60248201526d125b1b1959d85b08185b5bdd5b9d60921b60448201526064016101f9565b636539509842101561038e5760405162461bcd60e51b8152602060048201526009602482015268546f6f206561726c7960b81b60448201526064016101f9565b6000544211156103cb5760405162461bcd60e51b8152602060048201526008602482015267546f6f206c61746560c01b60448201526064016101f9565b600460ff84161061040f5760405162461bcd60e51b815260206004820152600e60248201526d125b1b1959d85b08189bde08125160921b60448201526064016101f9565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015610458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047c9190610c6b565b6001548360ff1660058660ff166004811061049957610499610cad565b01546104a59190610cc3565b6104af9190610cda565b11156104f15760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064016101f9565b348260ff1660098560ff166004811061050c5761050c610cad565b01546105189190610cc3565b146105575760405162461bcd60e51b815260206004820152600f60248201526e4e6f742065786163742076616c756560881b60448201526064016101f9565b3460ff8084169060059086166004811061057357610573610cad565b015461057f9190610cc3565b336000908152600260205260408120805490919061059e908490610cda565b925050819055508260ff1660058560ff16600481106105bf576105bf610cad565b01546105cb9190610cc3565b600160008282546105dc9190610cda565b90915550506001600160a01b0382161580159061060257506001600160a01b0382163314155b156106355761061b82610616600a34610ced565b610a76565b600a610628826009610cc3565b6106329190610ced565b90505b610653600d60005b01546001600160a01b0316610616600284610ced565b61065f600d600161063d565b6040805160ff80871682528516602082015233917fa483aa3b55127aa141a2183438ece2f4b8bacbba580bee54c1d9c62cddbefa07910160405180910390a250505050565b60005442116106e15760405162461bcd60e51b8152602060048201526009602482015268546f6f206561726c7960b81b60448201526064016101f9565b336000908152600360209081526040808320546002909252909120541161073d5760405162461bcd60e51b815260206004820152601060248201526f4e6f20656e6f75676820746f6b656e7360801b60448201526064016101f9565b600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015610786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107aa9190610c6b565b600154101561091f5760048054600f546001546040516370a0823160e01b815230948101949094526001600160a01b039283169363a9059cbb939092169184906370a0823190602401602060405180830381865afa158015610810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108349190610c6b565b61083e9190610c9a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad9190610d0f565b50600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa1580156108f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091b9190610c6b565b6001555b3360009081526003602090815260408083205460029092528220546109449190610c9a565b336000818152600260209081526040808320546003909252918290205560048054915163a9059cbb60e01b815290810192909252602482018390529192506001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190610d0f565b5060405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a250565b6001600160a01b0381166000908152600360209081526040808320546002909252822054610a419190610c9a565b92915050565b60008160ff1660098460ff1660048110610a6357610a63610cad565b0154610a6f9190610cc3565b9392505050565b80471015610ac65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016101f9565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b13576040519150601f19603f3d011682016040523d82523d6000602084013e610b18565b606091505b5050905080610b8f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016101f9565b505050565b600060208284031215610ba657600080fd5b5035919050565b803560ff81168114610bbe57600080fd5b919050565b80356001600160a01b0381168114610bbe57600080fd5b600080600060608486031215610bef57600080fd5b610bf884610bad565b9250610c0660208501610bad565b9150610c1460408501610bc3565b90509250925092565b600060208284031215610c2f57600080fd5b610a6f82610bc3565b60008060408385031215610c4b57600080fd5b610c5483610bad565b9150610c6260208401610bad565b90509250929050565b600060208284031215610c7d57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610a4157610a41610c84565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610a4157610a41610c84565b80820180821115610a4157610a41610c84565b600082610d0a57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610d2157600080fd5b81518015158114610a6f57600080fdfea26469706673582212206031bf0c8964533d2a6963e7f23fd96f2744aa7d516da436da439c633714794a64736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100e15760003560e01c80633b77e48d1161007f578063a457c2d711610059578063a457c2d71461024c578063a9059cbb1461026c578063dd62ed3e1461028c578063f1012b45146102ac57600080fd5b80633b77e48d146101e257806370a082311461020157806395d89b411461023757600080fd5b806323b872dd116100bb57806323b872dd14610167578063313ce567146101875780633522f17d146101a357806339509351146101c257600080fd5b806306fdde03146100ed578063095ea7b31461011857806318160ddd1461014857600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b506101026102f0565b60405161010f9190610c9d565b60405180910390f35b34801561012457600080fd5b50610138610133366004610d07565b610382565b604051901515815260200161010f565b34801561015457600080fd5b506002545b60405190815260200161010f565b34801561017357600080fd5b50610138610182366004610d31565b61039c565b34801561019357600080fd5b506040516012815260200161010f565b3480156101af57600080fd5b506101596a52b7d2dcc80cd2e400000081565b3480156101ce57600080fd5b506101386101dd366004610d07565b6103c0565b3480156101ee57600080fd5b506101596a027b46536c66c8e300000081565b34801561020d57600080fd5b5061015961021c366004610d6d565b6001600160a01b031660009081526020819052604090205490565b34801561024357600080fd5b506101026103e2565b34801561025857600080fd5b50610138610267366004610d07565b6103f1565b34801561027857600080fd5b50610138610287366004610d07565b610471565b34801561029857600080fd5b506101596102a7366004610d8f565b61047f565b3480156102b857600080fd5b506040516001600160a01b037f000000000000000000000000f05a215c298f9843e3fd210ca8aad885e349092716815260200161010f565b6060600380546102ff90610dc2565b80601f016020809104026020016040519081016040528092919081815260200182805461032b90610dc2565b80156103785780601f1061034d57610100808354040283529160200191610378565b820191906000526020600020905b81548152906001019060200180831161035b57829003601f168201915b5050505050905090565b6000336103908185856104aa565b60019150505b92915050565b6000336103aa8582856105ce565b6103b5858585610648565b506001949350505050565b6000336103908185856103d3838361047f565b6103dd9190610e12565b6104aa565b6060600480546102ff90610dc2565b600033816103ff828661047f565b9050838110156104645760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6103b582868684036104aa565b600033610390818585610648565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661050c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045b565b6001600160a01b03821661056d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006105da848461047f565b9050600019811461064257818110156106355760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161045b565b61064284848484036104aa565b50505050565b6001600160a01b03831660009081526008602052604090205460ff168061068757506001600160a01b03821660009081526008602052604090205460ff165b1561069c5761069783838361084b565b6107f1565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000003e36bd85511ec94458aa8fc0bc9a52e9c2863da811660048301526000917f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2909116906370a0823190602401602060405180830381865afa158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190610e25565b905060006801158e460913d000008210156107685750603c61076c565b5060285b60006103e861077b8386610e3e565b6107859190610e55565b905060006107938286610e77565b90506107a087308461084b565b7f00000000000000000000000003e36bd85511ec94458aa8fc0bc9a52e9c2863da6001600160a01b0316876001600160a01b0316146107e1576107e16109ef565b6107ec87878361084b565b505050505b7f00000000000000000000000003e36bd85511ec94458aa8fc0bc9a52e9c2863da6001600160a01b0316826001600160a01b031614610846576001600160a01b03821660009081526009602052604090204390555b505050565b6001600160a01b0383166108af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045b565b6001600160a01b0382166109115760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045b565b6001600160a01b038316600090815260208190526040902054818110156109895760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610642565b6109f7610c44565b306000908152602081815260408083205481516002808252606082018452919493909290830190803683370190505090503081600081518110610a3c57610a3c610e8a565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610a9057610a90610e8a565b60200260200101906001600160a01b031690816001600160a01b031681525050610adb307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846104aa565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790610b30908590600090869030904290600401610ea0565b600060405180830381600087803b158015610b4a57600080fd5b505af1158015610b5e573d6000803e3d6000fd5b5050505050478015610c365760005b6002811015610c34576000610b83600284610e55565b9050600060068360028110610b9a57610b9a610e8a565b01546040516001600160a01b03909116908390600081818185875af1925050503d8060008114610be6576040519150601f19603f3d011682016040523d82523d6000602084013e610beb565b606091505b5050905080610c2d5760405162461bcd60e51b815260206004820152600e60248201526d08ae4e4dee440e6cadcc8408aa8960931b604482015260640161045b565b5050610b6d565b505b5050610c426001600555565b565b600260055403610c965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045b565b6002600555565b600060208083528351808285015260005b81811015610cca57858101830151858201604001528201610cae565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d0257600080fd5b919050565b60008060408385031215610d1a57600080fd5b610d2383610ceb565b946020939093013593505050565b600080600060608486031215610d4657600080fd5b610d4f84610ceb565b9250610d5d60208501610ceb565b9150604084013590509250925092565b600060208284031215610d7f57600080fd5b610d8882610ceb565b9392505050565b60008060408385031215610da257600080fd5b610dab83610ceb565b9150610db960208401610ceb565b90509250929050565b600181811c90821680610dd657607f821691505b602082108103610df657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561039657610396610dfc565b600060208284031215610e3757600080fd5b5051919050565b808202811582820484141761039657610396610dfc565b600082610e7257634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561039657610396610dfc565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610ef05784516001600160a01b031683529383019391830191600101610ecb565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212204d9bed2d96fb60daedbd65dfa7137f08d1e56c5cddd7269193a2cd62efe0702e64736f6c63430008130033
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.