ERC-20
Overview
Max Total Supply
100,000,000 CHADSTER
Holders
54
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
356,129.831967878785958217 CHADSTERValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Chadster
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /** * $CHADSTER * * Website: https://www.chadster.xyz/ * Twitter: https://twitter.com/ChadsterInu * Tg: https://t.me/chadsterinu */ pragma solidity 0.8.7; import "IUniswapV2Factory.sol"; import "IUniswapV2Pair.sol"; import "IUniswapV2Router02.sol"; import "IERC721A.sol"; import "Address.sol"; import "Ownable.sol"; import "ERC20.sol"; import "ERC721Holder.sol"; import "Pausable.sol"; contract Chadster is ERC20, Ownable, Pausable, ERC721Holder { struct NftStake { uint256 startBlock; uint256 id; } struct UserStake { mapping(uint256 => NftStake) stakes; uint256[] stakedNfts; } // Optimize variables for packing bool private _inSwap = false; bool private _tradeOpen = false; bool private _swapEnabled = false; address public _marketingWallet; IUniswapV2Router02 public router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IERC721A private _NFT; uint256 private _buyFee = 30; uint256 private _sellFee = 30; uint256 public maxTxAmount; uint256 public maxWalletAmount; uint256 private _stakingReward; uint256 private _stakingbReward = 1 * 10 ** 18; uint256[] private _rarityModifierPerBlock; mapping(address => bool) public pairs; mapping(address => bool) public exempts; mapping(address => UserStake) private _stakes; event LimitsUpdated(uint256 indexed maxTx, uint256 indexed maxWallet); event FeesUpdated(uint256 indexed buyFee, uint256 indexed sellFee); event PairAdded(address indexed pair); constructor() ERC20("Chadster", "CHADSTER"){ address admin = _msgSender(); _marketingWallet = admin; uint256 supply = 100_000_000 * 10 ** 18; uint256 forLiquidity = supply / 2; uint256 forStaking = supply - forLiquidity; _stakingReward = forStaking; // Set limits maxTxAmount = (20 * supply) / 1000; maxWalletAmount = (20 * supply) / 1000; // Setup fee exempts exempts[address(this)] = true; exempts[admin] = true; exempts[_marketingWallet] = true; // Mint the total supply, by 50-50 goes for liquidity and the other half for staking reward _mint(address(this), forStaking); _mint(admin, forLiquidity); // Pause staking _pause(); } /********************************************************** * Modifiers ***********************************************************/ modifier withSwap() { _swapEnabled = true; if(!_inSwap) { _inSwap = true; _; _inSwap = false; } } /********************************************************** * Admin functions ***********************************************************/ /** * @dev Enable trading */ function openTrading() external onlyOwner() { _tradeOpen = true; } /** * @dev Remove contract limits */ function removeLimits() external onlyOwner { uint256 supply = totalSupply(); maxTxAmount = supply; maxWalletAmount = supply; emit LimitsUpdated(maxTxAmount, maxWalletAmount); } /** * @dev Update max TX and max wallet */ function setLimits(uint256 maxTxPercentage, uint256 maxWalletPercentage) external onlyOwner { require(maxTxPercentage >= 10, "too low"); // Minimum 1% require(maxWalletPercentage >= 10, "too low"); // Minimum 1% uint256 supply = totalSupply(); maxTxAmount = (maxTxPercentage * supply) / 1000; maxWalletAmount = (maxWalletPercentage * supply) / 1000; emit LimitsUpdated(maxTxAmount, maxWalletAmount); } /** * @dev Reduce taxes */ function setFees(uint256 buyTaxPercentage, uint256 sellTaxPercentage) external onlyOwner { require(buyTaxPercentage <= 150, "too high"); // Maximum 15% require(sellTaxPercentage <= 150, "too high"); // Maximum 15% _buyFee = buyTaxPercentage; _sellFee = sellTaxPercentage; emit FeesUpdated(buyTaxPercentage, sellTaxPercentage); } /** * @dev Register new trading pair */ function registerPair(address newPair) external onlyOwner { pairs[newPair] = true; emit PairAdded(newPair); } /** * @dev Send stucked ETH from wallet */ function manualSend() external { _sendEth(); } /** * @dev Initiate a manual swap of tax tokens */ function manualSwap() external { _convertToEth(balanceOf(address(this)) - _stakingReward); } /** * @dev Set the NFT address */ function setNft(address nftAddress) external onlyOwner { _NFT = IERC721A(nftAddress); } /** * @dev Update the staking parameters */ function setStakeModifiers(uint256 stakingReward, uint256[] memory rarityModifier) external onlyOwner { _stakingReward = stakingReward; for (uint256 i = 0; i < rarityModifier.length; ++i) { _rarityModifierPerBlock[i] = rarityModifier[i]; } } /** * @dev Toggle pause for staking */ function togglePause() external onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } /********************************************************** * Internal functions ***********************************************************/ function _transfer(address from, address to, uint256 amount) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "too less"); uint256 fees = 0; if (!(exempts[to] || exempts[from] || exempts[tx.origin])) { if (!_tradeOpen) { require(exempts[from], "not open yet"); } if (pairs[from] && to != address(router) && !exempts[to]) { require(amount <= maxTxAmount, "tx limit"); require((balanceOf(to) + amount) <= maxWalletAmount, "wallet limit"); } if (pairs[to]) { uint256 tokens = balanceOf(address(this)) - _stakingReward; if (tokens > 0 && _swapEnabled) { _convertToEth(tokens); } fees = (amount * _sellFee) / 1000; } else if (pairs[from]) { fees = (amount * _buyFee) / 1000; } else {} if (fees > 0) { super._transfer(from, address(this), fees); } } super._transfer(from, to, amount - fees); } function _convertToEth(uint256 amount) private withSwap { if (amount == 0) return; address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), amount); router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount, 0, path, _marketingWallet, block.timestamp); _sendEth(); } function _sendEth() private { uint256 balance = address(this).balance; if (balance > 0) { payable(_marketingWallet).transfer(balance); } } /********************************************************** * Stake and earn functions ***********************************************************/ event NftStaked(address indexed owner, uint256 indexed id); event NftWithdrawn(address indexed owner, uint256 indexed id); event RewardClaimed(address indexed owner, uint256 indexed id, uint256 amount); /** * @dev Stake nft */ function stake(uint256 id) external whenNotPaused { address sender = _msgSender(); UserStake storage stakeInfo = _stakes[sender]; require(_NFT.ownerOf(id) == sender, "not owner"); // Try to transfer the token ID, if not approved safeTransferFrom will revert _NFT.safeTransferFrom(sender, address(this), id); // Store the staking data stakeInfo.stakes[id].id = id; stakeInfo.stakes[id].startBlock = block.number; stakeInfo.stakedNfts.push(id); emit NftStaked(sender, id); } /** * @dev Withdraw staked nft */ function withdraw(uint256 id) external whenNotPaused { address sender = _msgSender(); UserStake storage stakeInfo = _stakes[sender]; NftStake memory nftInfo = stakeInfo.stakes[id]; // Prevent unstaking of other users nft require(nftInfo.id == id && nftInfo.startBlock != 0, "not found"); // Remove the unstaked NFT from the list for(uint256 i = 0; i < stakeInfo.stakedNfts.length; ++i) { if (i == id) { stakeInfo.stakedNfts[i] = stakeInfo.stakedNfts[stakeInfo.stakedNfts.length - 1]; stakeInfo.stakedNfts.pop(); } } // Transfer pending rewards claimReward(id); // Remove the NFT from the mapping stakeInfo.stakes[id].id = 0; stakeInfo.stakes[id].startBlock = 0; emit NftWithdrawn(sender, id); } /** * @dev Collect pending rewards */ function claimReward(uint256 id) public whenNotPaused { address sender = _msgSender(); UserStake storage stakeInfo = _stakes[sender]; NftStake memory nftInfo = stakeInfo.stakes[id]; // Prevent claiming reward of other users require(nftInfo.id == id && nftInfo.startBlock != 0, "not found"); // Get reward amount uint256 reward = pendingReward(sender, id); // Reset startBlock stakeInfo.stakes[id].startBlock = block.number; if (reward > 0) { // Transfer reward transfer(sender, reward); _stakingReward -= reward; emit RewardClaimed(sender, id, reward); } } /** * @dev Check how much pending reward */ function pendingReward(address user, uint256 id) public view returns(uint256) { UserStake storage stakeInfo = _stakes[user]; uint256 currentBlock = block.number; uint256 startBlock = stakeInfo.stakes[id].startBlock; uint256 multiplier = 0; // Calculate rarity for (uint256 i = 0; i < _rarityModifierPerBlock.length; ++i ) { if (id % (i + 1) == 0) { multiplier += _rarityModifierPerBlock[i]; } } multiplier = _stakingbReward * (multiplier / 2); uint256 possibleReward = (currentBlock - startBlock) * multiplier; return possibleReward > _stakingReward ? _stakingReward : possibleReward; } /** * @dev Return with the list of staked NFTs */ function getStakedNfts(address user) external view returns(uint256[] memory) { UserStake storage stakeInfo = _stakes[user]; return stakeInfo.stakedNfts; } }
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; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; 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.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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 * ==== * * [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://diligence.consensys.net/posts/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.5.11/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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "IERC20.sol"; import "IERC20Metadata.sol"; import "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]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "ChadsterToken.sol": {} }, "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":"uint256","name":"buyFee","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"sellFee","type":"uint256"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"maxTx","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"maxWallet","type":"uint256"}],"name":"LimitsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"NftStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"NftWithdrawn","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":"pair","type":"address"}],"name":"PairAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exempts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getStakedNfts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newPair","type":"address"}],"name":"registerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyTaxPercentage","type":"uint256"},{"internalType":"uint256","name":"sellTaxPercentage","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxPercentage","type":"uint256"},{"internalType":"uint256","name":"maxWalletPercentage","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"}],"name":"setNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakingReward","type":"uint256"},{"internalType":"uint256[]","name":"rarityModifier","type":"uint256[]"}],"name":"setStakeModifiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526005805462ffffff60a81b19169055600780546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055601e6009819055600a55670de0b6b3a7640000600e553480156200005c57600080fd5b506040518060400160405280600881526020016721b430b239ba32b960c11b8152506040518060400160405280600881526020016721a420a229aa22a960c11b8152508160039080519060200190620000b7929190620003cb565b508051620000cd906004906020840190620003cb565b505050620000ea620000e4620001f360201b60201c565b620001f7565b6005805460ff60a01b19169055600680546001600160a01b031916339081179091556a52b7d2dcc80cd2e40000006000620001276002836200048c565b90506000620001378284620004d1565b600d81905590506103e86200014e846014620004af565b6200015a91906200048c565b600b556103e86200016d846014620004af565b6200017991906200048c565b600c55306000818152601160205260408082208054600160ff1991821681179092556001600160a01b03898116855283852080548316841790556006541684529190922080549091169091179055620001d3908262000249565b620001df848362000249565b620001e962000310565b505050506200053e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002a55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620002b9919062000471565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6200031a62000373565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003563390565b6040516001600160a01b03909116815260200160405180910390a1565b62000387600554600160a01b900460ff1690565b15620003c95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200029c565b565b828054620003d990620004eb565b90600052602060002090601f016020900481019282620003fd576000855562000448565b82601f106200041857805160ff191683800117855562000448565b8280016001018555821562000448579182015b82811115620004485782518255916020019190600101906200042b565b50620004569291506200045a565b5090565b5b808211156200045657600081556001016200045b565b6000821982111562000487576200048762000528565b500190565b600082620004aa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615620004cc57620004cc62000528565b500290565b600082821015620004e657620004e662000528565b500390565b600181811c908216806200050057607f821691505b602082108114156200052257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b612019806200054e6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806395d89b4111610130578063c9567bf9116100b8578063f42938901161007c578063f4293890146104a9578063f430cf0d146104b1578063f887ea40146104c4578063fe33b302146104d7578063feece0ab146104fa57600080fd5b8063c9567bf914610455578063dc314b441461045d578063dd62ed3e14610470578063f2fde38b14610483578063f3c133871461049657600080fd5b8063a9059cbb116100ff578063a9059cbb1461040b578063aa4bde281461041e578063ae169a5014610427578063c4590d3f1461043a578063c4ae31681461044d57600080fd5b806395d89b41146103ca578063962dfc75146103d2578063a457c2d7146103e5578063a694fc3a146103f857600080fd5b806343aa5a5e116101b3578063715018a611610182578063715018a614610379578063751039fc14610381578063869b9981146103895780638c0b5e221461039c5780638da5cb5b146103a557600080fd5b806343aa5a5e1461031357806351bc3c85146103365780635c975abb1461033e57806370a082311461035057600080fd5b806318160ddd116101fa57806318160ddd146102b957806323b872dd146102cb5780632e1a7d4d146102de578063313ce567146102f1578063395093511461030057600080fd5b806306fdde031461022c578063095ea7b31461024a5780630b78f9c01461026d578063150b7a0214610282575b600080fd5b61023461051a565b6040516102419190611d15565b60405180910390f35b61025d610258366004611bb1565b6105ac565b6040519015158152602001610241565b61028061027b366004611caf565b6105c4565b005b6102a0610290366004611aed565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610241565b6002545b604051908152602001610241565b61025d6102d9366004611aac565b610684565b6102806102ec366004611bdd565b6106a8565b60405160128152602001610241565b61025d61030e366004611bb1565b610823565b61025d610321366004611a32565b60116020526000908152604090205460ff1681565b610280610845565b600554600160a01b900460ff1661025d565b6102bd61035e366004611a32565b6001600160a01b031660009081526020819052604090205490565b61028061086c565b61028061087e565b610280610397366004611bf6565b6108ce565b6102bd600b5481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610241565b610234610935565b6006546103b2906001600160a01b031681565b61025d6103f3366004611bb1565b610944565b610280610406366004611bdd565b6109bf565b61025d610419366004611bb1565b610b70565b6102bd600c5481565b610280610435366004611bdd565b610b7e565b610280610448366004611caf565b610c8e565b610280610d80565b610280610daa565b61028061046b366004611a32565b610dc7565b6102bd61047e366004611a73565b610e1b565b610280610491366004611a32565b610e46565b6102806104a4366004611a32565b610ebf565b610280610ee9565b6102bd6104bf366004611bb1565b610ef1565b6007546103b2906001600160a01b031681565b61025d6104e5366004611a32565b60106020526000908152604090205460ff1681565b61050d610508366004611a32565b610fcd565b6040516102419190611cd1565b60606003805461052990611ef6565b80601f016020809104026020016040519081016040528092919081815260200182805461055590611ef6565b80156105a25780601f10610577576101008083540402835291602001916105a2565b820191906000526020600020905b81548152906001019060200180831161058557829003601f168201915b5050505050905090565b6000336105ba81858561103f565b5060019392505050565b6105cc611163565b609682111561060d5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064015b60405180910390fd5b60968111156106495760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610604565b6009829055600a819055604051819083907f5c6323bf1c2d7aaea2c091a4751c1c87af7f2864650c336507a77d0557af37a190600090a35050565b6000336106928582856111bd565b61069d858585611237565b506001949350505050565b6106b0611579565b336000818152601260209081526040808320858452808352928190208151808301909252805482526001015491810182905290841480156106f15750805115155b6107295760405162461bcd60e51b81526020600482015260096024820152681b9bdd08199bdd5b9960ba1b6044820152606401610604565b60005b60018301548110156107c857848114156107b85760018084018054909161075291611edf565b8154811061076257610762611fa2565b906000526020600020015483600101828154811061078257610782611fa2565b600091825260209091200155600183018054806107a1576107a1611f8c565b600190038181906000526020600020016000905590555b6107c181611f31565b905061072c565b506107d284610b7e565b600084815260208390526040808220600181018390558290555185916001600160a01b038616917f44614d032e1206ebcd60b94fac608a2020b2899d5314b9e5c3a40c3592cbd1869190a350505050565b6000336105ba8185856108368383610e1b565b6108409190611e94565b61103f565b600d543060009081526020819052604090205461086a9161086591611edf565b6115c6565b565b610874611163565b61086a6000611789565b610886611163565b600061089160025490565b600b819055600c819055604051909150819081907f4d4981437d0211f9e6843eb024d9ada1fa3a99514d4343d4aece106dd11524bb90600090a350565b6108d6611163565b600d82905560005b8151811015610930578181815181106108f9576108f9611fa2565b6020026020010151600f828154811061091457610914611fa2565b60009182526020909120015561092981611f31565b90506108de565b505050565b60606004805461052990611ef6565b600033816109528286610e1b565b9050838110156109b25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610604565b61069d828686840361103f565b6109c7611579565b6000336001600160a01b038181166000818152601260205260409081902060085491516331a9108f60e11b8152600481018890529495509391921690636352211e9060240160206040518083038186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5c9190611a56565b6001600160a01b031614610a9e5760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610604565b600854604051632142170760e11b81526001600160a01b03848116600483015230602483015260448201869052909116906342842e0e90606401600060405180830381600087803b158015610af257600080fd5b505af1158015610b06573d6000803e3d6000fd5b505050600084815260208381526040808320600180820189905543909155808601805491820181558452918320909101869055518592506001600160a01b038516917f67fdef29b4d3c5f8e8a10bc5f9797626d078010bb98360a511e7cde7db9d9f0691a3505050565b6000336105ba818585611237565b610b86611579565b33600081815260126020908152604080832085845280835292819020815180830190925280548252600101549181018290529084148015610bc75750805115155b610bff5760405162461bcd60e51b81526020600482015260096024820152681b9bdd08199bdd5b9960ba1b6044820152606401610604565b6000610c0b8486610ef1565b600086815260208590526040902043905590508015610c8757610c2e8482610b70565b5080600d6000828254610c419190611edf565b909155505060405181815285906001600160a01b038616907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a35b5050505050565b610c96611163565b600a821015610cd15760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610604565b600a811015610d0c5760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610604565b6000610d1760025490565b90506103e8610d268285611ec0565b610d309190611eac565b600b556103e8610d408284611ec0565b610d4a9190611eac565b600c819055600b546040517f4d4981437d0211f9e6843eb024d9ada1fa3a99514d4343d4aece106dd11524bb90600090a3505050565b610d88611163565b600554600160a01b900460ff1615610da25761086a6117db565b61086a611830565b610db2611163565b6005805460ff60b01b1916600160b01b179055565b610dcf611163565b6001600160a01b038116600081815260106020526040808220805460ff19166001179055517f0d887d6750d996ace85ff35e7af4ff7f229bd111350121e552876ac01011ad099190a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610e4e611163565b6001600160a01b038116610eb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610604565b610ebc81611789565b50565b610ec7611163565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b61086a611873565b6001600160a01b038216600090815260126020908152604080832084845291829052822054439083805b600f54811015610f7a57610f30816001611e94565b610f3a9088611f4c565b610f6a57600f8181548110610f5157610f51611fa2565b906000526020600020015482610f679190611e94565b91505b610f7381611f31565b9050610f1b565b50610f86600282611eac565b600e54610f939190611ec0565b9050600081610fa28486611edf565b610fac9190611ec0565b9050600d548111610fbd5780610fc1565b600d545b98975050505050505050565b6001600160a01b038116600090815260126020908152604091829020600181018054845181850281018501909552808552606094929383018282801561103257602002820191906000526020600020905b81548152602001906001019080831161101e575b5050505050915050919050565b6001600160a01b0383166110a15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610604565b6001600160a01b0382166111025760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610604565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b0316331461086a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610604565b60006111c98484610e1b565b9050600019811461123157818110156112245760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610604565b611231848484840361103f565b50505050565b6001600160a01b03831661125d5760405162461bcd60e51b815260040161060490611dad565b6001600160a01b0382166112835760405162461bcd60e51b815260040161060490611d6a565b600081116112be5760405162461bcd60e51b8152602060048201526008602482015267746f6f206c65737360c01b6044820152606401610604565b6001600160a01b03821660009081526011602052604081205460ff16806112fd57506001600160a01b03841660009081526011602052604090205460ff165b8061131757503260009081526011602052604090205460ff165b61156557600554600160b01b900460ff16611383576001600160a01b03841660009081526011602052604090205460ff166113835760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081bdc195b881e595d60a21b6044820152606401610604565b6001600160a01b03841660009081526010602052604090205460ff1680156113b957506007546001600160a01b03848116911614155b80156113de57506001600160a01b03831660009081526011602052604090205460ff16155b1561148a57600b548211156114205760405162461bcd60e51b81526020600482015260086024820152671d1e081b1a5b5a5d60c21b6044820152606401610604565b600c5482611443856001600160a01b031660009081526020819052604090205490565b61144d9190611e94565b111561148a5760405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606401610604565b6001600160a01b03831660009081526010602052604090205460ff161561151557600d543060009081526020819052604081205490916114c991611edf565b90506000811180156114e45750600554600160b81b900460ff165b156114f2576114f2816115c6565b6103e8600a54846115039190611ec0565b61150d9190611eac565b915050611554565b6001600160a01b03841660009081526010602052604090205460ff1615611554576103e8600954836115479190611ec0565b6115519190611eac565b90505b8015611565576115658430836118b8565b61123184846115748486611edf565b6118b8565b600554600160a01b900460ff161561086a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610604565b6005805460ff60b81b1916600160b81b1790819055600160a81b900460ff16610ebc576005805460ff60a81b1916600160a81b1790558061160657611779565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061163b5761163b611fa2565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561168f57600080fd5b505afa1580156116a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c79190611a56565b816001815181106116da576116da611fa2565b6001600160a01b039283166020918202929092010152600754611700913091168461103f565b60075460065460405163791ac94760e01b81526001600160a01b039283169263791ac9479261173d92879260009288929116904290600401611df2565b600060405180830381600087803b15801561175757600080fd5b505af115801561176b573d6000803e3d6000fd5b50505050611777611873565b505b6005805460ff60a81b1916905550565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6117e36119e2565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611838611579565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118133390565b478015610ebc576006546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156118b4573d6000803e3d6000fd5b5050565b6001600160a01b0383166118de5760405162461bcd60e51b815260040161060490611dad565b6001600160a01b0382166119045760405162461bcd60e51b815260040161060490611d6a565b6001600160a01b0383166000908152602081905260409020548181101561197c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610604565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611231565b600554600160a01b900460ff1661086a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610604565b600060208284031215611a4457600080fd5b8135611a4f81611fce565b9392505050565b600060208284031215611a6857600080fd5b8151611a4f81611fce565b60008060408385031215611a8657600080fd5b8235611a9181611fce565b91506020830135611aa181611fce565b809150509250929050565b600080600060608486031215611ac157600080fd5b8335611acc81611fce565b92506020840135611adc81611fce565b929592945050506040919091013590565b60008060008060808587031215611b0357600080fd5b8435611b0e81611fce565b9350602085810135611b1f81611fce565b935060408601359250606086013567ffffffffffffffff80821115611b4357600080fd5b818801915088601f830112611b5757600080fd5b813581811115611b6957611b69611fb8565b611b7b601f8201601f19168501611e63565b91508082528984828501011115611b9157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611bc457600080fd5b8235611bcf81611fce565b946020939093013593505050565b600060208284031215611bef57600080fd5b5035919050565b60008060408385031215611c0957600080fd5b8235915060208084013567ffffffffffffffff80821115611c2957600080fd5b818601915086601f830112611c3d57600080fd5b813581811115611c4f57611c4f611fb8565b8060051b9150611c60848301611e63565b8181528481019084860184860187018b1015611c7b57600080fd5b600095505b83861015611c9e578035835260019590950194918601918601611c80565b508096505050505050509250929050565b60008060408385031215611cc257600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015611d0957835183529284019291840191600101611ced565b50909695505050505050565b600060208083528351808285015260005b81811015611d4257858101830151858201604001528201611d26565b81811115611d54576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611e425784516001600160a01b031683529383019391830191600101611e1d565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e8c57611e8c611fb8565b604052919050565b60008219821115611ea757611ea7611f60565b500190565b600082611ebb57611ebb611f76565b500490565b6000816000190483118215151615611eda57611eda611f60565b500290565b600082821015611ef157611ef1611f60565b500390565b600181811c90821680611f0a57607f821691505b60208210811415611f2b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f4557611f45611f60565b5060010190565b600082611f5b57611f5b611f76565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ebc57600080fdfea26469706673582212200f612dcf799c8cdccc1126cd4c248039e6c65d10fd0f81d18bb37e93c920c05c64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c806395d89b4111610130578063c9567bf9116100b8578063f42938901161007c578063f4293890146104a9578063f430cf0d146104b1578063f887ea40146104c4578063fe33b302146104d7578063feece0ab146104fa57600080fd5b8063c9567bf914610455578063dc314b441461045d578063dd62ed3e14610470578063f2fde38b14610483578063f3c133871461049657600080fd5b8063a9059cbb116100ff578063a9059cbb1461040b578063aa4bde281461041e578063ae169a5014610427578063c4590d3f1461043a578063c4ae31681461044d57600080fd5b806395d89b41146103ca578063962dfc75146103d2578063a457c2d7146103e5578063a694fc3a146103f857600080fd5b806343aa5a5e116101b3578063715018a611610182578063715018a614610379578063751039fc14610381578063869b9981146103895780638c0b5e221461039c5780638da5cb5b146103a557600080fd5b806343aa5a5e1461031357806351bc3c85146103365780635c975abb1461033e57806370a082311461035057600080fd5b806318160ddd116101fa57806318160ddd146102b957806323b872dd146102cb5780632e1a7d4d146102de578063313ce567146102f1578063395093511461030057600080fd5b806306fdde031461022c578063095ea7b31461024a5780630b78f9c01461026d578063150b7a0214610282575b600080fd5b61023461051a565b6040516102419190611d15565b60405180910390f35b61025d610258366004611bb1565b6105ac565b6040519015158152602001610241565b61028061027b366004611caf565b6105c4565b005b6102a0610290366004611aed565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610241565b6002545b604051908152602001610241565b61025d6102d9366004611aac565b610684565b6102806102ec366004611bdd565b6106a8565b60405160128152602001610241565b61025d61030e366004611bb1565b610823565b61025d610321366004611a32565b60116020526000908152604090205460ff1681565b610280610845565b600554600160a01b900460ff1661025d565b6102bd61035e366004611a32565b6001600160a01b031660009081526020819052604090205490565b61028061086c565b61028061087e565b610280610397366004611bf6565b6108ce565b6102bd600b5481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610241565b610234610935565b6006546103b2906001600160a01b031681565b61025d6103f3366004611bb1565b610944565b610280610406366004611bdd565b6109bf565b61025d610419366004611bb1565b610b70565b6102bd600c5481565b610280610435366004611bdd565b610b7e565b610280610448366004611caf565b610c8e565b610280610d80565b610280610daa565b61028061046b366004611a32565b610dc7565b6102bd61047e366004611a73565b610e1b565b610280610491366004611a32565b610e46565b6102806104a4366004611a32565b610ebf565b610280610ee9565b6102bd6104bf366004611bb1565b610ef1565b6007546103b2906001600160a01b031681565b61025d6104e5366004611a32565b60106020526000908152604090205460ff1681565b61050d610508366004611a32565b610fcd565b6040516102419190611cd1565b60606003805461052990611ef6565b80601f016020809104026020016040519081016040528092919081815260200182805461055590611ef6565b80156105a25780601f10610577576101008083540402835291602001916105a2565b820191906000526020600020905b81548152906001019060200180831161058557829003601f168201915b5050505050905090565b6000336105ba81858561103f565b5060019392505050565b6105cc611163565b609682111561060d5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064015b60405180910390fd5b60968111156106495760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610604565b6009829055600a819055604051819083907f5c6323bf1c2d7aaea2c091a4751c1c87af7f2864650c336507a77d0557af37a190600090a35050565b6000336106928582856111bd565b61069d858585611237565b506001949350505050565b6106b0611579565b336000818152601260209081526040808320858452808352928190208151808301909252805482526001015491810182905290841480156106f15750805115155b6107295760405162461bcd60e51b81526020600482015260096024820152681b9bdd08199bdd5b9960ba1b6044820152606401610604565b60005b60018301548110156107c857848114156107b85760018084018054909161075291611edf565b8154811061076257610762611fa2565b906000526020600020015483600101828154811061078257610782611fa2565b600091825260209091200155600183018054806107a1576107a1611f8c565b600190038181906000526020600020016000905590555b6107c181611f31565b905061072c565b506107d284610b7e565b600084815260208390526040808220600181018390558290555185916001600160a01b038616917f44614d032e1206ebcd60b94fac608a2020b2899d5314b9e5c3a40c3592cbd1869190a350505050565b6000336105ba8185856108368383610e1b565b6108409190611e94565b61103f565b600d543060009081526020819052604090205461086a9161086591611edf565b6115c6565b565b610874611163565b61086a6000611789565b610886611163565b600061089160025490565b600b819055600c819055604051909150819081907f4d4981437d0211f9e6843eb024d9ada1fa3a99514d4343d4aece106dd11524bb90600090a350565b6108d6611163565b600d82905560005b8151811015610930578181815181106108f9576108f9611fa2565b6020026020010151600f828154811061091457610914611fa2565b60009182526020909120015561092981611f31565b90506108de565b505050565b60606004805461052990611ef6565b600033816109528286610e1b565b9050838110156109b25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610604565b61069d828686840361103f565b6109c7611579565b6000336001600160a01b038181166000818152601260205260409081902060085491516331a9108f60e11b8152600481018890529495509391921690636352211e9060240160206040518083038186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5c9190611a56565b6001600160a01b031614610a9e5760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606401610604565b600854604051632142170760e11b81526001600160a01b03848116600483015230602483015260448201869052909116906342842e0e90606401600060405180830381600087803b158015610af257600080fd5b505af1158015610b06573d6000803e3d6000fd5b505050600084815260208381526040808320600180820189905543909155808601805491820181558452918320909101869055518592506001600160a01b038516917f67fdef29b4d3c5f8e8a10bc5f9797626d078010bb98360a511e7cde7db9d9f0691a3505050565b6000336105ba818585611237565b610b86611579565b33600081815260126020908152604080832085845280835292819020815180830190925280548252600101549181018290529084148015610bc75750805115155b610bff5760405162461bcd60e51b81526020600482015260096024820152681b9bdd08199bdd5b9960ba1b6044820152606401610604565b6000610c0b8486610ef1565b600086815260208590526040902043905590508015610c8757610c2e8482610b70565b5080600d6000828254610c419190611edf565b909155505060405181815285906001600160a01b038616907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a35b5050505050565b610c96611163565b600a821015610cd15760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610604565b600a811015610d0c5760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610604565b6000610d1760025490565b90506103e8610d268285611ec0565b610d309190611eac565b600b556103e8610d408284611ec0565b610d4a9190611eac565b600c819055600b546040517f4d4981437d0211f9e6843eb024d9ada1fa3a99514d4343d4aece106dd11524bb90600090a3505050565b610d88611163565b600554600160a01b900460ff1615610da25761086a6117db565b61086a611830565b610db2611163565b6005805460ff60b01b1916600160b01b179055565b610dcf611163565b6001600160a01b038116600081815260106020526040808220805460ff19166001179055517f0d887d6750d996ace85ff35e7af4ff7f229bd111350121e552876ac01011ad099190a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610e4e611163565b6001600160a01b038116610eb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610604565b610ebc81611789565b50565b610ec7611163565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b61086a611873565b6001600160a01b038216600090815260126020908152604080832084845291829052822054439083805b600f54811015610f7a57610f30816001611e94565b610f3a9088611f4c565b610f6a57600f8181548110610f5157610f51611fa2565b906000526020600020015482610f679190611e94565b91505b610f7381611f31565b9050610f1b565b50610f86600282611eac565b600e54610f939190611ec0565b9050600081610fa28486611edf565b610fac9190611ec0565b9050600d548111610fbd5780610fc1565b600d545b98975050505050505050565b6001600160a01b038116600090815260126020908152604091829020600181018054845181850281018501909552808552606094929383018282801561103257602002820191906000526020600020905b81548152602001906001019080831161101e575b5050505050915050919050565b6001600160a01b0383166110a15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610604565b6001600160a01b0382166111025760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610604565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b0316331461086a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610604565b60006111c98484610e1b565b9050600019811461123157818110156112245760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610604565b611231848484840361103f565b50505050565b6001600160a01b03831661125d5760405162461bcd60e51b815260040161060490611dad565b6001600160a01b0382166112835760405162461bcd60e51b815260040161060490611d6a565b600081116112be5760405162461bcd60e51b8152602060048201526008602482015267746f6f206c65737360c01b6044820152606401610604565b6001600160a01b03821660009081526011602052604081205460ff16806112fd57506001600160a01b03841660009081526011602052604090205460ff165b8061131757503260009081526011602052604090205460ff165b61156557600554600160b01b900460ff16611383576001600160a01b03841660009081526011602052604090205460ff166113835760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081bdc195b881e595d60a21b6044820152606401610604565b6001600160a01b03841660009081526010602052604090205460ff1680156113b957506007546001600160a01b03848116911614155b80156113de57506001600160a01b03831660009081526011602052604090205460ff16155b1561148a57600b548211156114205760405162461bcd60e51b81526020600482015260086024820152671d1e081b1a5b5a5d60c21b6044820152606401610604565b600c5482611443856001600160a01b031660009081526020819052604090205490565b61144d9190611e94565b111561148a5760405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606401610604565b6001600160a01b03831660009081526010602052604090205460ff161561151557600d543060009081526020819052604081205490916114c991611edf565b90506000811180156114e45750600554600160b81b900460ff165b156114f2576114f2816115c6565b6103e8600a54846115039190611ec0565b61150d9190611eac565b915050611554565b6001600160a01b03841660009081526010602052604090205460ff1615611554576103e8600954836115479190611ec0565b6115519190611eac565b90505b8015611565576115658430836118b8565b61123184846115748486611edf565b6118b8565b600554600160a01b900460ff161561086a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610604565b6005805460ff60b81b1916600160b81b1790819055600160a81b900460ff16610ebc576005805460ff60a81b1916600160a81b1790558061160657611779565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061163b5761163b611fa2565b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561168f57600080fd5b505afa1580156116a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c79190611a56565b816001815181106116da576116da611fa2565b6001600160a01b039283166020918202929092010152600754611700913091168461103f565b60075460065460405163791ac94760e01b81526001600160a01b039283169263791ac9479261173d92879260009288929116904290600401611df2565b600060405180830381600087803b15801561175757600080fd5b505af115801561176b573d6000803e3d6000fd5b50505050611777611873565b505b6005805460ff60a81b1916905550565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6117e36119e2565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611838611579565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118133390565b478015610ebc576006546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156118b4573d6000803e3d6000fd5b5050565b6001600160a01b0383166118de5760405162461bcd60e51b815260040161060490611dad565b6001600160a01b0382166119045760405162461bcd60e51b815260040161060490611d6a565b6001600160a01b0383166000908152602081905260409020548181101561197c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610604565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611231565b600554600160a01b900460ff1661086a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610604565b600060208284031215611a4457600080fd5b8135611a4f81611fce565b9392505050565b600060208284031215611a6857600080fd5b8151611a4f81611fce565b60008060408385031215611a8657600080fd5b8235611a9181611fce565b91506020830135611aa181611fce565b809150509250929050565b600080600060608486031215611ac157600080fd5b8335611acc81611fce565b92506020840135611adc81611fce565b929592945050506040919091013590565b60008060008060808587031215611b0357600080fd5b8435611b0e81611fce565b9350602085810135611b1f81611fce565b935060408601359250606086013567ffffffffffffffff80821115611b4357600080fd5b818801915088601f830112611b5757600080fd5b813581811115611b6957611b69611fb8565b611b7b601f8201601f19168501611e63565b91508082528984828501011115611b9157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611bc457600080fd5b8235611bcf81611fce565b946020939093013593505050565b600060208284031215611bef57600080fd5b5035919050565b60008060408385031215611c0957600080fd5b8235915060208084013567ffffffffffffffff80821115611c2957600080fd5b818601915086601f830112611c3d57600080fd5b813581811115611c4f57611c4f611fb8565b8060051b9150611c60848301611e63565b8181528481019084860184860187018b1015611c7b57600080fd5b600095505b83861015611c9e578035835260019590950194918601918601611c80565b508096505050505050509250929050565b60008060408385031215611cc257600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015611d0957835183529284019291840191600101611ced565b50909695505050505050565b600060208083528351808285015260005b81811015611d4257858101830151858201604001528201611d26565b81811115611d54576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611e425784516001600160a01b031683529383019391830191600101611e1d565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e8c57611e8c611fb8565b604052919050565b60008219821115611ea757611ea7611f60565b500190565b600082611ebb57611ebb611f76565b500490565b6000816000190483118215151615611eda57611eda611f60565b500290565b600082821015611ef157611ef1611f60565b500390565b600181811c90821680611f0a57607f821691505b60208210811415611f2b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f4557611f45611f60565b5060010190565b600082611f5b57611f5b611f76565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ebc57600080fdfea26469706673582212200f612dcf799c8cdccc1126cd4c248039e6c65d10fd0f81d18bb37e93c920c05c64736f6c63430008070033
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.