ERC-20
Overview
Max Total Supply
115,792,089,237,318,195,423.570985008687907853 Meme Capital Corp
Holders
402
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
9,593.973225234905960125 Meme Capital CorpValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MCC
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {IUniswapV2Pair} from "./interfaces/IUniswapV2Pair.sol"; import {IUniswapV2Factory} from "./interfaces/IUniswapV2Factory.sol"; import {IUniswapV2Router02} from "./interfaces/IUniswapV2Router02.sol"; import {IMCC} from "./interfaces/IMCC.sol"; error ZERO_ADDRESS(); contract MCC is ERC20, AccessControl, IMCC { using SafeERC20 for IERC20; /// @dev name string private constant _name = "MCC"; /// @dev symbol string private constant _symbol = "Meme Capital Corp"; /// @dev initial supply uint256 private constant INITIAL_SUPPLY = 1000000 ether; // 1M /// @notice percent multiplier (100%) uint256 public constant MULTIPLIER = 10000; /// @notice Uniswap router IUniswapV2Router02 public router; /// @notice tax info struct TaxInfo { uint256 buyFee; uint256 sellFee; } TaxInfo public taxInfo; uint256 private pendingTax; uint256 public maxWallet; uint256 public teamShare; address public marketingAddress; address public teamAddress; address public treasury; address public staking; address public node; mapping(address => uint256) public tokenPrice; /// @notice whether a wallet excludes fees mapping(address => bool) public isExcludedFromFee; mapping(address => bool) public isDexAddress; mapping(address => bool) public _isExcludedMaxTransactionAmount; bool private inSwap; bool public canBuy; uint256 public swapThreshold; uint256 public duration; uint256 public discount; struct User { uint256 start; uint256 purchased; uint256 claimed; uint256 end; } mapping(address => User) public userInfo; /* ======== INITIALIZATION ======== */ constructor(IUniswapV2Router02 _router) ERC20(_name, _symbol) { _mint(_msgSender(), INITIAL_SUPPLY); router = _router; _approve(address(this), address(_router), type(uint256).max); isExcludedFromFee[address(this)] = true; _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); } receive() external payable {} /* ======== MODIFIERS ======== */ modifier onlyOwner() { _checkRole(DEFAULT_ADMIN_ROLE); _; } modifier onlyStaking() { require(staking != address(0) && node != address(0), "Invalid"); require( staking == _msgSender() || node == _msgSender(), "permission denied" ); _; } /* ======== POLICY FUNCTIONS ======== */ function mint(address _receiver, uint256 _amount) external onlyStaking { _mint(_receiver, _amount); } function setDuration(uint256 _duration) external onlyOwner { duration = _duration; } function setCanBuy(bool _status) external onlyOwner { canBuy = _status; } function buy(address _token, uint256 _amount) external payable { require(canBuy, "cannot buy now"); require(tokenPrice[_token] != 0, "Invalid Token"); require(treasury != address(0), "Invalid Treasury"); uint256 _price = (tokenPrice[_token] * _amount) / 1e18; if (_token == address(0)) { require(msg.value == _price, "Invalid amount"); (bool sent, ) = treasury.call{value: msg.value}(""); require(sent, "Failed to send Ether"); } else { require( IERC20(_token).transferFrom(_msgSender(), treasury, _price), "Invalid amount" ); } claim(); User storage user = userInfo[msg.sender]; user.start = block.timestamp; user.purchased += _amount; user.end = duration + block.timestamp; } function claim() public { uint256 amount = claimable(); if (amount > 0) { User storage user = userInfo[msg.sender]; user.claimed += amount; user.purchased -= amount; user.start = block.timestamp; user.end = block.timestamp + duration; } } function claimable() public view returns (uint256) { User memory user = userInfo[msg.sender]; if (user.start == 0) { return 0; } if (timePassed() >= duration) { return user.purchased; } return ((user.purchased * timePassed()) / (user.end - user.start)); } function timePassed() public view returns (uint256) { User memory user = userInfo[msg.sender]; if (user.start == 0) { return 0; } return block.timestamp - user.start; } function burn(uint256 _amount) external override { _burn(msg.sender, _amount); } function setTokenPrice( address _token, uint256 _price, uint256 _discount ) external onlyOwner { require(_price > 0, "Invalid price"); tokenPrice[_token] = _price; discount = _discount; } function setStaking(address _staking, address _node) external onlyOwner { staking = _staking; node = _node; } function setAddress( address _team, address _marketing, address _treasury ) external onlyOwner { teamAddress = _team; marketingAddress = _marketing; treasury = _treasury; } function setTaxFee(uint256 buyFee, uint256 sellFee) public onlyOwner { taxInfo.buyFee = buyFee; taxInfo.sellFee = sellFee; } function excludeFromFee(address account, bool isEx) external onlyOwner { isExcludedFromFee[account] = isEx; } function excludeFromMaxTransaction( address account, bool isEx ) public onlyOwner { require(account != address(0), "zero address"); _isExcludedMaxTransactionAmount[account] = isEx; } function includeFromDexAddresss( address updAds, bool isEx ) public onlyOwner { require(updAds != address(0), "zero address"); isDexAddress[updAds] = isEx; } function setSwapTaxSettings( uint256 _swapThreshold, uint256 _maxWallet, uint256 _teamShare ) public onlyOwner { swapThreshold = _swapThreshold; maxWallet = _maxWallet; teamShare = _teamShare; } function recoverERC20(IERC20 token) external onlyOwner { token.safeTransfer(_msgSender(), token.balanceOf(address(this))); } function recoverETH() external onlyOwner { require(teamAddress != address(0) && marketingAddress != address(0)); uint256 balance = address(this).balance; if (balance > 0) { (bool success, ) = payable(teamAddress).call{ value: (balance * teamShare) / MULTIPLIER }(""); require(success); (bool _success, ) = payable(marketingAddress).call{ value: address(this).balance }(""); require(_success); } } function setUp() external payable onlyOwner { // add liquidity _transfer( msg.sender, address(this), (INITIAL_SUPPLY * 8500) / MULTIPLIER ); router.addLiquidityETH{value: msg.value}( address(this), balanceOf(address(this)), 0, 0, msg.sender, block.timestamp ); IUniswapV2Pair pair = IUniswapV2Pair( IUniswapV2Factory(router.factory()).getPair( address(this), router.WETH() ) ); setSwapTaxSettings(1000e18, INITIAL_SUPPLY / 100, 7000); includeFromDexAddresss(address(pair), true); setTaxFee(1500, 2000); excludeFromMaxTransaction(address(pair), true); } /* ======== PUBLIC FUNCTIONS ======== */ function transfer( address to, uint256 amount ) public override returns (bool) { address owner = _msgSender(); _transferWithTax(owner, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transferWithTax(from, to, amount); return true; } /* ======== INTERNAL FUNCTIONS ======== */ function _transferWithTax( address from, address to, uint256 amount ) internal { if (amount == 0) return; if (maxWallet != 0) { if (!_isExcludedMaxTransactionAmount[to]) { require( amount + balanceOf(to) <= maxWallet, "Max wallet exceeded" ); } } if (isExcludedFromFee[from] || isExcludedFromFee[to]) { _transfer(from, to, amount); return; } if (isDexAddress[from]) { uint256 buyTax = (amount * taxInfo.buyFee) / MULTIPLIER; unchecked { amount -= buyTax; } if (buyTax > 0) { require( pendingTax + amount <= balanceOf(from), "Exceeded the balance" ); _transfer(from, address(this), buyTax); } } else if (isDexAddress[to]) { uint256 sellTax = (amount * taxInfo.sellFee) / MULTIPLIER; unchecked { amount -= sellTax; } if (sellTax > 0) { _transfer(from, address(this), sellTax); } } if ( balanceOf(address(this)) >= swapThreshold && !inSwap && swapThreshold != 0 && !isDexAddress[from] ) { swapTokensForEth(); } _transfer(from, to, amount); } function swapTokensForEth() internal { require(address(router) != address(0), "Invalid router"); address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); inSwap = true; uint256 _balance = balanceOf(address(this)); _approve(address(this), address(router), _balance); router.swapExactTokensForETHSupportingFeeOnTransferTokens( _balance, 0, path, payable(address(this)), block.timestamp ); inSwap = false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface IMCC { function burn(uint256) external; function mint(address, uint256) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface IUniswapV2Factory { function getPair( address tokenA, address tokenB ) external view returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; 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; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; 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 pragma solidity 0.8.20; 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; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"canBuy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"includeFromDexAddresss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDexAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"node","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_team","type":"address"},{"internalType":"address","name":"_marketing","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setCanBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_node","type":"address"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapThreshold","type":"uint256"},{"internalType":"uint256","name":"_maxWallet","type":"uint256"},{"internalType":"uint256","name":"_teamShare","type":"uint256"}],"name":"setSwapTaxSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyFee","type":"uint256"},{"internalType":"uint256","name":"sellFee","type":"uint256"}],"name":"setTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_discount","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxInfo","outputs":[{"internalType":"uint256","name":"buyFee","type":"uint256"},{"internalType":"uint256","name":"sellFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timePassed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"purchased","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620030a7380380620030a783398101604081905262000034916200043d565b604051806040016040528060038152602001624d434360e81b8152506040518060400160405280601181526020017004d656d65204361706974616c20436f727607c1b81525081600390816200008b919062000513565b5060046200009a828262000513565b505050620000c2620000b16200012160201b60201c565b69d3c21bcecceda100000062000125565b600680546001600160a01b0319166001600160a01b038316179055620000ec308260001962000167565b306000908152601260205260408120805460ff191660011790556200011990620001133390565b6200017b565b505062000601565b3390565b6001600160a01b038216620001555760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b62000163600083836200022e565b5050565b62000176838383600162000361565b505050565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff16620002245760008381526005602090815260408083206001600160a01b03861684529091529020805460ff19166001179055620001db3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600162000228565b5060005b92915050565b6001600160a01b0383166200025d578060026000828254620002519190620005df565b90915550620002d19050565b6001600160a01b03831660009081526020819052604090205481811015620002b25760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016200014c565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002ef576002805482900390556200030e565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200035491815260200190565b60405180910390a3505050565b6001600160a01b0384166200038d5760405163e602df0560e01b8152600060048201526024016200014c565b6001600160a01b038316620003b957604051634a1406b160e11b8152600060048201526024016200014c565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156200043757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516200042e91815260200190565b60405180910390a35b50505050565b6000602082840312156200045057600080fd5b81516001600160a01b03811681146200046857600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200049a57607f821691505b602082108103620004bb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017657600081815260208120601f850160051c81016020861015620004ea5750805b601f850160051c820191505b818110156200050b57828155600101620004f6565b505050505050565b81516001600160401b038111156200052f576200052f6200046f565b620005478162000540845462000485565b84620004c1565b602080601f8311600181146200057f5760008415620005665750858301515b600019600386901b1c1916600185901b1785556200050b565b600085815260208120601f198616915b82811015620005b0578886015182559484019460019091019084016200058f565b5085821015620005cf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200022857634e487b7160e01b600052601160045260246000fd5b612a9680620006116000396000f3fe6080604052600436106103595760003560e01c80636b6f4a9d116101bb578063cce7ec13116100f7578063eb1c031611610095578063f887ea401161006f578063f887ea4014610a3d578063f8b45b0514610a5d578063fe674e9314610a73578063ff65226c14610a9357600080fd5b8063eb1c0316146109dd578063ebe066b6146109fd578063f6be71d114610a1d57600080fd5b8063dd62ed3e116100d1578063dd62ed3e14610931578063df8408fe14610977578063e934da8c14610997578063ea6ef2fe146109c757600080fd5b8063cce7ec13146108de578063d547741f146108f1578063d70754ec1461091157600080fd5b80639e8c708e11610164578063a9059cbb1161013e578063a9059cbb14610874578063af38d75714610894578063b4454253146108a9578063c5528490146108be57600080fd5b80639e8c708e1461081f578063a217fddf1461083f578063a5ece9411461085457600080fd5b806384ba3f691161019557806384ba3f691461079757806391d14854146107c457806395d89b411461080a57600080fd5b80636b6f4a9d1461072b57806370a08231146107415780637571336a1461077757600080fd5b8063248a9ca31161029557806342966c681161023357806351b900191161020d57806351b900191461068b5780635342acb4146106bb57806357aa5ac7146106eb57806361d027b31461070b57600080fd5b806342966c68146106365780634cf088d9146106565780634e71d92d1461067657600080fd5b8063313ce5671161026f578063313ce567146105ba57806336568abe146105d65780633be08dab146105f657806340c10f191461061657600080fd5b8063248a9ca31461054a5780632c06862b1461057a5780632f2ff15d1461059a57600080fd5b80630a9254e41161030257806318160ddd116102dc57806318160ddd1461047b5780631959a002146104905780631c75f085146104f257806323b872dd1461052a57600080fd5b80630a9254e41461042d5780630fb5a6b41461043557806310d5de531461044b57600080fd5b80630614117a116103335780630614117a146103d457806306fdde03146103eb578063095ea7b31461040d57600080fd5b806301ffc9a7146103655780630445b6671461039a578063059f8b16146103be57600080fd5b3661036057005b600080fd5b34801561037157600080fd5b506103856103803660046125cf565b610ab2565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103b060165481565b604051908152602001610391565b3480156103ca57600080fd5b506103b061271081565b3480156103e057600080fd5b506103e9610b1b565b005b3480156103f757600080fd5b50610400610c39565b604051610391919061261d565b34801561041957600080fd5b50610385610428366004612665565b610ccb565b6103e9610ce3565b34801561044157600080fd5b506103b060175481565b34801561045757600080fd5b50610385610466366004612691565b60146020526000908152604090205460ff1681565b34801561048757600080fd5b506002546103b0565b34801561049c57600080fd5b506104d26104ab366004612691565b60196020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610391565b3480156104fe57600080fd5b50600d54610512906001600160a01b031681565b6040516001600160a01b039091168152602001610391565b34801561053657600080fd5b506103856105453660046126ae565b610f96565b34801561055657600080fd5b506103b06105653660046126ef565b60009081526005602052604090206001015490565b34801561058657600080fd5b506103e9610595366004612716565b610fbc565b3480156105a657600080fd5b506103e96105b5366004612733565b610fe0565b3480156105c657600080fd5b5060405160128152602001610391565b3480156105e257600080fd5b506103e96105f1366004612733565b61100b565b34801561060257600080fd5b506103e9610611366004612763565b611057565b34801561062257600080fd5b506103e9610631366004612665565b6110ad565b34801561064257600080fd5b506103e96106513660046126ef565b61119f565b34801561066257600080fd5b50600f54610512906001600160a01b031681565b34801561068257600080fd5b506103e96111a9565b34801561069757600080fd5b506103856106a6366004612691565b60136020526000908152604090205460ff1681565b3480156106c757600080fd5b506103856106d6366004612691565b60126020526000908152604090205460ff1681565b3480156106f757600080fd5b506103e96107063660046127ae565b611218565b34801561071757600080fd5b50600e54610512906001600160a01b031681565b34801561073757600080fd5b506103b060185481565b34801561074d57600080fd5b506103b061075c366004612691565b6001600160a01b031660009081526020819052604090205490565b34801561078357600080fd5b506103e96107923660046127da565b611230565b3480156107a357600080fd5b506103b06107b2366004612691565b60116020526000908152604090205481565b3480156107d057600080fd5b506103856107df366004612733565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561081657600080fd5b506104006112aa565b34801561082b57600080fd5b506103e961083a366004612691565b6112b9565b34801561084b57600080fd5b506103b0600081565b34801561086057600080fd5b50600c54610512906001600160a01b031681565b34801561088057600080fd5b5061038561088f366004612665565b611359565b3480156108a057600080fd5b506103b0611367565b3480156108b557600080fd5b506103b0611407565b3480156108ca57600080fd5b506103e96108d9366004612808565b611462565b6103e96108ec366004612665565b611477565b3480156108fd57600080fd5b506103e961090c366004612733565b6117f1565b34801561091d57600080fd5b50601054610512906001600160a01b031681565b34801561093d57600080fd5b506103b061094c36600461282a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561098357600080fd5b506103e96109923660046127da565b611816565b3480156109a357600080fd5b506007546008546109b2919082565b60408051928352602083019190915201610391565b3480156109d357600080fd5b506103b0600b5481565b3480156109e957600080fd5b506103e96109f8366004612858565b61184b565b348015610a0957600080fd5b506103e9610a1836600461282a565b6118c4565b348015610a2957600080fd5b506103e9610a383660046126ef565b611909565b348015610a4957600080fd5b50600654610512906001600160a01b031681565b348015610a6957600080fd5b506103b0600a5481565b348015610a7f57600080fd5b506103e9610a8e3660046127da565b611918565b348015610a9f57600080fd5b5060155461038590610100900460ff1681565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b1557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b610b256000611992565b600d546001600160a01b031615801590610b495750600c546001600160a01b031615155b610b5257600080fd5b478015610c3657600d54600b546000916001600160a01b03169061271090610b7a90856128a3565b610b8491906128ba565b604051600081818185875af1925050503d8060008114610bc0576040519150601f19603f3d011682016040523d82523d6000602084013e610bc5565b606091505b5050905080610bd357600080fd5b600c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610c20576040519150601f19603f3d011682016040523d82523d6000602084013e610c25565b606091505b5050905080610c3357600080fd5b50505b50565b606060038054610c48906128dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c74906128dc565b8015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b5050505050905090565b600033610cd981858561199c565b5060019392505050565b610ced6000611992565b610d1a3330612710610d0b69d3c21bcecceda10000006121346128a3565b610d1591906128ba565b6119a9565b6006546001600160a01b031663f305d7193430610d4c816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610db0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610dd59190612916565b5050506000600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190612944565b6001600160a01b031663e6a4390530600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed79190612944565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015610f22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f469190612944565b9050610f72683635c9adc5dea00000610f6a606469d3c21bcecceda10000006128ba565b611b58611218565b610f7d816001611918565b610f8b6105dc6107d0611462565b610c36816001611230565b600033610fa4858285611a08565b610faf858585611a99565b60019150505b9392505050565b610fc66000611992565b601580549115156101000261ff0019909216919091179055565b600082815260056020526040902060010154610ffb81611992565b6110058383611d2a565b50505050565b6001600160a01b038116331461104d576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c338282611dd8565b6110616000611992565b600d80546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155600c805493851693821693909317909255600e8054919093169116179055565b600f546001600160a01b0316158015906110d157506010546001600160a01b031615155b6111225760405162461bcd60e51b815260206004820152600760248201527f496e76616c69640000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600f546001600160a01b031633148061114557506010546001600160a01b031633145b6111915760405162461bcd60e51b815260206004820152601160248201527f7065726d697373696f6e2064656e6965640000000000000000000000000000006044820152606401611119565b61119b8282611e5f565b5050565b610c363382611e95565b60006111b3611367565b90508015610c3657336000908152601960205260408120600281018054919284926111df908490612961565b92505081905550818160010160008282546111fa9190612974565b90915550504280825560175461120f91612961565b60039091015550565b6112226000611992565b601692909255600a55600b55565b61123a6000611992565b6001600160a01b03821661127f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401611119565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b606060048054610c48906128dc565b6112c36000611992565b610c36336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113489190612987565b6001600160a01b0384169190611ecb565b600033610cd9818585611a99565b336000908152601960209081526040808320815160808101835281548082526001830154948201949094526002820154928101929092526003015460608201529082036113b657600091505090565b6017546113c1611407565b106113cf5760200151919050565b805160608201516113e09190612974565b6113e8611407565b82602001516113f791906128a3565b61140191906128ba565b91505090565b3360009081526019602090815260408083208151608081018352815480825260018301549482019490945260028201549281019290925260030154606082015290820361145657600091505090565b80516114019042612974565b61146c6000611992565b600791909155600855565b601554610100900460ff166114ce5760405162461bcd60e51b815260206004820152600e60248201527f63616e6e6f7420627579206e6f770000000000000000000000000000000000006044820152606401611119565b6001600160a01b03821660009081526011602052604081205490036115355760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420546f6b656e000000000000000000000000000000000000006044820152606401611119565b600e546001600160a01b031661158d5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964205472656173757279000000000000000000000000000000006044820152606401611119565b6001600160a01b038216600090815260116020526040812054670de0b6b3a7640000906115bb9084906128a3565b6115c591906128ba565b90506001600160a01b0383166116cd578034146116245760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401611119565b600e546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611671576040519150601f19603f3d011682016040523d82523d6000602084013e611676565b606091505b50509050806116c75760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401611119565b506117a4565b6001600160a01b0383166323b872dd33600e5460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015611734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175891906129a0565b6117a45760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401611119565b6117ac6111a9565b336000908152601960205260408120428155600181018054919285926117d3908490612961565b90915550506017546117e6904290612961565b600390910155505050565b60008281526005602052604090206001015461180c81611992565b6110058383611dd8565b6118206000611992565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6118556000611992565b600082116118a55760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401611119565b6001600160a01b03909216600090815260116020526040902055601855565b6118ce6000611992565b600f80546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560108054929093169116179055565b6119136000611992565b601755565b6119226000611992565b6001600160a01b0382166119675760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401611119565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b610c368133611f4b565b610c338383836001611fb9565b6001600160a01b0383166119d357604051634b637e8f60e11b815260006004820152602401611119565b6001600160a01b0382166119fd5760405163ec442f0560e01b815260006004820152602401611119565b610c338383836120c0565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146110055781811015611a8a576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401611119565b61100584848484036000611fb9565b80600003611aa657505050565b600a5415611b42576001600160a01b03821660009081526014602052604090205460ff16611b4257600a546001600160a01b038316600090815260208190526040902054611af49083612961565b1115611b425760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401611119565b6001600160a01b03831660009081526012602052604090205460ff1680611b8157506001600160a01b03821660009081526012602052604090205460ff165b15611b9157610c338383836119a9565b6001600160a01b03831660009081526013602052604090205460ff1615611c635760075460009061271090611bc690846128a3565b611bd091906128ba565b918290039190508015611c5d576001600160a01b03841660009081526020819052604090205482600954611c049190612961565b1115611c525760405162461bcd60e51b815260206004820152601460248201527f4578636565646564207468652062616c616e63650000000000000000000000006044820152606401611119565b611c5d8430836119a9565b50611cbc565b6001600160a01b03821660009081526013602052604090205460ff1615611cbc5760085460009061271090611c9890846128a3565b611ca291906128ba565b918290039190508015611cba57611cba8430836119a9565b505b6016543060009081526020819052604090205410158015611ce0575060155460ff16155b8015611ced575060165415155b8015611d1257506001600160a01b03831660009081526013602052604090205460ff16155b15611d1f57611d1f612203565b610c338383836119a9565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff16611dd05760008381526005602090815260408083206001600160a01b03861684529091529020805460ff19166001179055611d883390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610b15565b506000610b15565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff1615611dd05760008381526005602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b15565b6001600160a01b038216611e895760405163ec442f0560e01b815260006004820152602401611119565b61119b600083836120c0565b6001600160a01b038216611ebf57604051634b637e8f60e11b815260006004820152602401611119565b61119b826000836120c0565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c3390849061241a565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1661119b576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401611119565b6001600160a01b038416611ffc576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401611119565b6001600160a01b03831661203f576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401611119565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561100557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516120b291815260200190565b60405180910390a350505050565b6001600160a01b0383166120eb5780600260008282546120e09190612961565b909155506121769050565b6001600160a01b03831660009081526020819052604090205481811015612157576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401611119565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216612192576002805482900390556121b1565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516121f691815260200190565b60405180910390a3505050565b6006546001600160a01b031661225b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420726f757465720000000000000000000000000000000000006044820152606401611119565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612290576122906129bd565b6001600160a01b03928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612302573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123269190612944565b81600181518110612339576123396129bd565b6001600160a01b03929092166020928302919091018201526015805460ff191660011790553060009081529081905260408120546006549091506123889030906001600160a01b03168361199c565b6006546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906123da9084906000908790309042906004016129d3565b600060405180830381600087803b1580156123f457600080fd5b505af1158015612408573d6000803e3d6000fd5b50506015805460ff1916905550505050565b600061242f6001600160a01b03841683612496565b9050805160001415801561245457508080602001905181019061245291906129a0565b155b15610c33576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401611119565b6060610fb58383600084600080856001600160a01b031684866040516124bc9190612a44565b60006040518083038185875af1925050503d80600081146124f9576040519150601f19603f3d011682016040523d82523d6000602084013e6124fe565b606091505b509150915061250e868383612518565b9695505050505050565b60608261252d576125288261258d565b610fb5565b815115801561254457506001600160a01b0384163b155b15612586576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401611119565b5080610fb5565b80511561259d5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000602082840312156125e157600080fd5b81356001600160e01b031981168114610fb557600080fd5b60005b838110156126145781810151838201526020016125fc565b50506000910152565b602081526000825180602084015261263c8160408501602087016125f9565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610c3657600080fd5b6000806040838503121561267857600080fd5b823561268381612650565b946020939093013593505050565b6000602082840312156126a357600080fd5b8135610fb581612650565b6000806000606084860312156126c357600080fd5b83356126ce81612650565b925060208401356126de81612650565b929592945050506040919091013590565b60006020828403121561270157600080fd5b5035919050565b8015158114610c3657600080fd5b60006020828403121561272857600080fd5b8135610fb581612708565b6000806040838503121561274657600080fd5b82359150602083013561275881612650565b809150509250929050565b60008060006060848603121561277857600080fd5b833561278381612650565b9250602084013561279381612650565b915060408401356127a381612650565b809150509250925092565b6000806000606084860312156127c357600080fd5b505081359360208301359350604090920135919050565b600080604083850312156127ed57600080fd5b82356127f881612650565b9150602083013561275881612708565b6000806040838503121561281b57600080fd5b50508035926020909101359150565b6000806040838503121561283d57600080fd5b823561284881612650565b9150602083013561275881612650565b60008060006060848603121561286d57600080fd5b833561287881612650565b95602085013595506040909401359392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b1557610b1561288d565b6000826128d757634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806128f057607f821691505b60208210810361291057634e487b7160e01b600052602260045260246000fd5b50919050565b60008060006060848603121561292b57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561295657600080fd5b8151610fb581612650565b80820180821115610b1557610b1561288d565b81810381811115610b1557610b1561288d565b60006020828403121561299957600080fd5b5051919050565b6000602082840312156129b257600080fd5b8151610fb581612708565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a235784516001600160a01b0316835293830193918301916001016129fe565b50506001600160a01b03969096166060850152505050608001529392505050565b60008251612a568184602087016125f9565b919091019291505056fea2646970667358221220eec610372d348b93cd775a4b40e1cb3dc23937904d4fe06b6aff58761026bf5c64736f6c634300081400330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106103595760003560e01c80636b6f4a9d116101bb578063cce7ec13116100f7578063eb1c031611610095578063f887ea401161006f578063f887ea4014610a3d578063f8b45b0514610a5d578063fe674e9314610a73578063ff65226c14610a9357600080fd5b8063eb1c0316146109dd578063ebe066b6146109fd578063f6be71d114610a1d57600080fd5b8063dd62ed3e116100d1578063dd62ed3e14610931578063df8408fe14610977578063e934da8c14610997578063ea6ef2fe146109c757600080fd5b8063cce7ec13146108de578063d547741f146108f1578063d70754ec1461091157600080fd5b80639e8c708e11610164578063a9059cbb1161013e578063a9059cbb14610874578063af38d75714610894578063b4454253146108a9578063c5528490146108be57600080fd5b80639e8c708e1461081f578063a217fddf1461083f578063a5ece9411461085457600080fd5b806384ba3f691161019557806384ba3f691461079757806391d14854146107c457806395d89b411461080a57600080fd5b80636b6f4a9d1461072b57806370a08231146107415780637571336a1461077757600080fd5b8063248a9ca31161029557806342966c681161023357806351b900191161020d57806351b900191461068b5780635342acb4146106bb57806357aa5ac7146106eb57806361d027b31461070b57600080fd5b806342966c68146106365780634cf088d9146106565780634e71d92d1461067657600080fd5b8063313ce5671161026f578063313ce567146105ba57806336568abe146105d65780633be08dab146105f657806340c10f191461061657600080fd5b8063248a9ca31461054a5780632c06862b1461057a5780632f2ff15d1461059a57600080fd5b80630a9254e41161030257806318160ddd116102dc57806318160ddd1461047b5780631959a002146104905780631c75f085146104f257806323b872dd1461052a57600080fd5b80630a9254e41461042d5780630fb5a6b41461043557806310d5de531461044b57600080fd5b80630614117a116103335780630614117a146103d457806306fdde03146103eb578063095ea7b31461040d57600080fd5b806301ffc9a7146103655780630445b6671461039a578063059f8b16146103be57600080fd5b3661036057005b600080fd5b34801561037157600080fd5b506103856103803660046125cf565b610ab2565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103b060165481565b604051908152602001610391565b3480156103ca57600080fd5b506103b061271081565b3480156103e057600080fd5b506103e9610b1b565b005b3480156103f757600080fd5b50610400610c39565b604051610391919061261d565b34801561041957600080fd5b50610385610428366004612665565b610ccb565b6103e9610ce3565b34801561044157600080fd5b506103b060175481565b34801561045757600080fd5b50610385610466366004612691565b60146020526000908152604090205460ff1681565b34801561048757600080fd5b506002546103b0565b34801561049c57600080fd5b506104d26104ab366004612691565b60196020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610391565b3480156104fe57600080fd5b50600d54610512906001600160a01b031681565b6040516001600160a01b039091168152602001610391565b34801561053657600080fd5b506103856105453660046126ae565b610f96565b34801561055657600080fd5b506103b06105653660046126ef565b60009081526005602052604090206001015490565b34801561058657600080fd5b506103e9610595366004612716565b610fbc565b3480156105a657600080fd5b506103e96105b5366004612733565b610fe0565b3480156105c657600080fd5b5060405160128152602001610391565b3480156105e257600080fd5b506103e96105f1366004612733565b61100b565b34801561060257600080fd5b506103e9610611366004612763565b611057565b34801561062257600080fd5b506103e9610631366004612665565b6110ad565b34801561064257600080fd5b506103e96106513660046126ef565b61119f565b34801561066257600080fd5b50600f54610512906001600160a01b031681565b34801561068257600080fd5b506103e96111a9565b34801561069757600080fd5b506103856106a6366004612691565b60136020526000908152604090205460ff1681565b3480156106c757600080fd5b506103856106d6366004612691565b60126020526000908152604090205460ff1681565b3480156106f757600080fd5b506103e96107063660046127ae565b611218565b34801561071757600080fd5b50600e54610512906001600160a01b031681565b34801561073757600080fd5b506103b060185481565b34801561074d57600080fd5b506103b061075c366004612691565b6001600160a01b031660009081526020819052604090205490565b34801561078357600080fd5b506103e96107923660046127da565b611230565b3480156107a357600080fd5b506103b06107b2366004612691565b60116020526000908152604090205481565b3480156107d057600080fd5b506103856107df366004612733565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561081657600080fd5b506104006112aa565b34801561082b57600080fd5b506103e961083a366004612691565b6112b9565b34801561084b57600080fd5b506103b0600081565b34801561086057600080fd5b50600c54610512906001600160a01b031681565b34801561088057600080fd5b5061038561088f366004612665565b611359565b3480156108a057600080fd5b506103b0611367565b3480156108b557600080fd5b506103b0611407565b3480156108ca57600080fd5b506103e96108d9366004612808565b611462565b6103e96108ec366004612665565b611477565b3480156108fd57600080fd5b506103e961090c366004612733565b6117f1565b34801561091d57600080fd5b50601054610512906001600160a01b031681565b34801561093d57600080fd5b506103b061094c36600461282a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561098357600080fd5b506103e96109923660046127da565b611816565b3480156109a357600080fd5b506007546008546109b2919082565b60408051928352602083019190915201610391565b3480156109d357600080fd5b506103b0600b5481565b3480156109e957600080fd5b506103e96109f8366004612858565b61184b565b348015610a0957600080fd5b506103e9610a1836600461282a565b6118c4565b348015610a2957600080fd5b506103e9610a383660046126ef565b611909565b348015610a4957600080fd5b50600654610512906001600160a01b031681565b348015610a6957600080fd5b506103b0600a5481565b348015610a7f57600080fd5b506103e9610a8e3660046127da565b611918565b348015610a9f57600080fd5b5060155461038590610100900460ff1681565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b1557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b610b256000611992565b600d546001600160a01b031615801590610b495750600c546001600160a01b031615155b610b5257600080fd5b478015610c3657600d54600b546000916001600160a01b03169061271090610b7a90856128a3565b610b8491906128ba565b604051600081818185875af1925050503d8060008114610bc0576040519150601f19603f3d011682016040523d82523d6000602084013e610bc5565b606091505b5050905080610bd357600080fd5b600c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610c20576040519150601f19603f3d011682016040523d82523d6000602084013e610c25565b606091505b5050905080610c3357600080fd5b50505b50565b606060038054610c48906128dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c74906128dc565b8015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b5050505050905090565b600033610cd981858561199c565b5060019392505050565b610ced6000611992565b610d1a3330612710610d0b69d3c21bcecceda10000006121346128a3565b610d1591906128ba565b6119a9565b6006546001600160a01b031663f305d7193430610d4c816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610db0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610dd59190612916565b5050506000600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190612944565b6001600160a01b031663e6a4390530600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed79190612944565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015610f22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f469190612944565b9050610f72683635c9adc5dea00000610f6a606469d3c21bcecceda10000006128ba565b611b58611218565b610f7d816001611918565b610f8b6105dc6107d0611462565b610c36816001611230565b600033610fa4858285611a08565b610faf858585611a99565b60019150505b9392505050565b610fc66000611992565b601580549115156101000261ff0019909216919091179055565b600082815260056020526040902060010154610ffb81611992565b6110058383611d2a565b50505050565b6001600160a01b038116331461104d576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c338282611dd8565b6110616000611992565b600d80546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155600c805493851693821693909317909255600e8054919093169116179055565b600f546001600160a01b0316158015906110d157506010546001600160a01b031615155b6111225760405162461bcd60e51b815260206004820152600760248201527f496e76616c69640000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600f546001600160a01b031633148061114557506010546001600160a01b031633145b6111915760405162461bcd60e51b815260206004820152601160248201527f7065726d697373696f6e2064656e6965640000000000000000000000000000006044820152606401611119565b61119b8282611e5f565b5050565b610c363382611e95565b60006111b3611367565b90508015610c3657336000908152601960205260408120600281018054919284926111df908490612961565b92505081905550818160010160008282546111fa9190612974565b90915550504280825560175461120f91612961565b60039091015550565b6112226000611992565b601692909255600a55600b55565b61123a6000611992565b6001600160a01b03821661127f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401611119565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b606060048054610c48906128dc565b6112c36000611992565b610c36336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113489190612987565b6001600160a01b0384169190611ecb565b600033610cd9818585611a99565b336000908152601960209081526040808320815160808101835281548082526001830154948201949094526002820154928101929092526003015460608201529082036113b657600091505090565b6017546113c1611407565b106113cf5760200151919050565b805160608201516113e09190612974565b6113e8611407565b82602001516113f791906128a3565b61140191906128ba565b91505090565b3360009081526019602090815260408083208151608081018352815480825260018301549482019490945260028201549281019290925260030154606082015290820361145657600091505090565b80516114019042612974565b61146c6000611992565b600791909155600855565b601554610100900460ff166114ce5760405162461bcd60e51b815260206004820152600e60248201527f63616e6e6f7420627579206e6f770000000000000000000000000000000000006044820152606401611119565b6001600160a01b03821660009081526011602052604081205490036115355760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420546f6b656e000000000000000000000000000000000000006044820152606401611119565b600e546001600160a01b031661158d5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964205472656173757279000000000000000000000000000000006044820152606401611119565b6001600160a01b038216600090815260116020526040812054670de0b6b3a7640000906115bb9084906128a3565b6115c591906128ba565b90506001600160a01b0383166116cd578034146116245760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401611119565b600e546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611671576040519150601f19603f3d011682016040523d82523d6000602084013e611676565b606091505b50509050806116c75760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401611119565b506117a4565b6001600160a01b0383166323b872dd33600e5460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015611734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175891906129a0565b6117a45760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401611119565b6117ac6111a9565b336000908152601960205260408120428155600181018054919285926117d3908490612961565b90915550506017546117e6904290612961565b600390910155505050565b60008281526005602052604090206001015461180c81611992565b6110058383611dd8565b6118206000611992565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6118556000611992565b600082116118a55760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207072696365000000000000000000000000000000000000006044820152606401611119565b6001600160a01b03909216600090815260116020526040902055601855565b6118ce6000611992565b600f80546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560108054929093169116179055565b6119136000611992565b601755565b6119226000611992565b6001600160a01b0382166119675760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401611119565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b610c368133611f4b565b610c338383836001611fb9565b6001600160a01b0383166119d357604051634b637e8f60e11b815260006004820152602401611119565b6001600160a01b0382166119fd5760405163ec442f0560e01b815260006004820152602401611119565b610c338383836120c0565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146110055781811015611a8a576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401611119565b61100584848484036000611fb9565b80600003611aa657505050565b600a5415611b42576001600160a01b03821660009081526014602052604090205460ff16611b4257600a546001600160a01b038316600090815260208190526040902054611af49083612961565b1115611b425760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401611119565b6001600160a01b03831660009081526012602052604090205460ff1680611b8157506001600160a01b03821660009081526012602052604090205460ff165b15611b9157610c338383836119a9565b6001600160a01b03831660009081526013602052604090205460ff1615611c635760075460009061271090611bc690846128a3565b611bd091906128ba565b918290039190508015611c5d576001600160a01b03841660009081526020819052604090205482600954611c049190612961565b1115611c525760405162461bcd60e51b815260206004820152601460248201527f4578636565646564207468652062616c616e63650000000000000000000000006044820152606401611119565b611c5d8430836119a9565b50611cbc565b6001600160a01b03821660009081526013602052604090205460ff1615611cbc5760085460009061271090611c9890846128a3565b611ca291906128ba565b918290039190508015611cba57611cba8430836119a9565b505b6016543060009081526020819052604090205410158015611ce0575060155460ff16155b8015611ced575060165415155b8015611d1257506001600160a01b03831660009081526013602052604090205460ff16155b15611d1f57611d1f612203565b610c338383836119a9565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff16611dd05760008381526005602090815260408083206001600160a01b03861684529091529020805460ff19166001179055611d883390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610b15565b506000610b15565b60008281526005602090815260408083206001600160a01b038516845290915281205460ff1615611dd05760008381526005602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b15565b6001600160a01b038216611e895760405163ec442f0560e01b815260006004820152602401611119565b61119b600083836120c0565b6001600160a01b038216611ebf57604051634b637e8f60e11b815260006004820152602401611119565b61119b826000836120c0565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c3390849061241a565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1661119b576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401611119565b6001600160a01b038416611ffc576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401611119565b6001600160a01b03831661203f576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401611119565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561100557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516120b291815260200190565b60405180910390a350505050565b6001600160a01b0383166120eb5780600260008282546120e09190612961565b909155506121769050565b6001600160a01b03831660009081526020819052604090205481811015612157576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401611119565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216612192576002805482900390556121b1565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516121f691815260200190565b60405180910390a3505050565b6006546001600160a01b031661225b5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420726f757465720000000000000000000000000000000000006044820152606401611119565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612290576122906129bd565b6001600160a01b03928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612302573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123269190612944565b81600181518110612339576123396129bd565b6001600160a01b03929092166020928302919091018201526015805460ff191660011790553060009081529081905260408120546006549091506123889030906001600160a01b03168361199c565b6006546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906123da9084906000908790309042906004016129d3565b600060405180830381600087803b1580156123f457600080fd5b505af1158015612408573d6000803e3d6000fd5b50506015805460ff1916905550505050565b600061242f6001600160a01b03841683612496565b9050805160001415801561245457508080602001905181019061245291906129a0565b155b15610c33576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401611119565b6060610fb58383600084600080856001600160a01b031684866040516124bc9190612a44565b60006040518083038185875af1925050503d80600081146124f9576040519150601f19603f3d011682016040523d82523d6000602084013e6124fe565b606091505b509150915061250e868383612518565b9695505050505050565b60608261252d576125288261258d565b610fb5565b815115801561254457506001600160a01b0384163b155b15612586576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401611119565b5080610fb5565b80511561259d5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000602082840312156125e157600080fd5b81356001600160e01b031981168114610fb557600080fd5b60005b838110156126145781810151838201526020016125fc565b50506000910152565b602081526000825180602084015261263c8160408501602087016125f9565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610c3657600080fd5b6000806040838503121561267857600080fd5b823561268381612650565b946020939093013593505050565b6000602082840312156126a357600080fd5b8135610fb581612650565b6000806000606084860312156126c357600080fd5b83356126ce81612650565b925060208401356126de81612650565b929592945050506040919091013590565b60006020828403121561270157600080fd5b5035919050565b8015158114610c3657600080fd5b60006020828403121561272857600080fd5b8135610fb581612708565b6000806040838503121561274657600080fd5b82359150602083013561275881612650565b809150509250929050565b60008060006060848603121561277857600080fd5b833561278381612650565b9250602084013561279381612650565b915060408401356127a381612650565b809150509250925092565b6000806000606084860312156127c357600080fd5b505081359360208301359350604090920135919050565b600080604083850312156127ed57600080fd5b82356127f881612650565b9150602083013561275881612708565b6000806040838503121561281b57600080fd5b50508035926020909101359150565b6000806040838503121561283d57600080fd5b823561284881612650565b9150602083013561275881612650565b60008060006060848603121561286d57600080fd5b833561287881612650565b95602085013595506040909401359392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b1557610b1561288d565b6000826128d757634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806128f057607f821691505b60208210810361291057634e487b7160e01b600052602260045260246000fd5b50919050565b60008060006060848603121561292b57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561295657600080fd5b8151610fb581612650565b80820180821115610b1557610b1561288d565b81810381811115610b1557610b1561288d565b60006020828403121561299957600080fd5b5051919050565b6000602082840312156129b257600080fd5b8151610fb581612708565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a235784516001600160a01b0316835293830193918301916001016129fe565b50506001600160a01b03969096166060850152505050608001529392505050565b60008251612a568184602087016125f9565b919091019291505056fea2646970667358221220eec610372d348b93cd775a4b40e1cb3dc23937904d4fe06b6aff58761026bf5c64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.