Source Code
Overview
MATIC Balance
0 MATIC
More Info
ContractCreator:
Multichain Info
N/A
Loading...
Loading
Contract Name:
mPCKT
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 11 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /// @author MrD pragma solidity >=0.8.11; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./libs/PancakeLibs.sol"; contract mPCKT is Ownable, IERC20, IERC20Metadata, AccessControlEnumerable, Pausable { using Address for address; using EnumerableSet for EnumerableSet.AddressSet; // standard ERC20 vars mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _totalMinted; uint256 private _totalBurned; string private _name; string private _symbol; // role constants bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 public constant CAN_TRANSFER_ROLE = keccak256("CAN_TRANSFER_ROLE"); bytes32 public constant TEAM_ROLE = keccak256("TEAM_ROLE"); // flag to stop swaps before there is LP bool tradingActive; // The burn address address public constant burnAddress = address(0xdead); // the max tokens that can ever exist uint256 public maxSupply; // Vault Contract address address vault; // Partner Token Addresses // the partner token contract address partnerToken; // the address to send the purchased partner token to address partnerTokenFeeAddress; EnumerableSet.AddressSet private _amms; EnumerableSet.AddressSet private _whitelist; EnumerableSet.AddressSet private _blacklist; EnumerableSet.AddressSet private _systemContracts; EnumerableSet.AddressSet private _excludeTaxes; EnumerableSet.AddressSet private _excludeLocks; // TAX SETTINGS // Main Ttaxes // hard coded max tax limit uint256 _maxTax = 25; // % taxed on sells uint256 sellTax = 7; // % taxed and burned on buys uint256 buyBurnTax = 7; // Sub-Sell-Taxes // % of post taxed amount that is burned uint256 burnTax = 10; // % of post taxed amount that goes to swap for the partner token uint256 partnerTax; /** * Anti-Dump & Anti-Bot Settings **/ // a hard capped number on the max tokens that can be sold in one TX uint256 maxSell; // max % sell of total supply that can be sole in one TX, default 1% uint256 maxSellPercent = 100; // seconds to lock transactions to aything but system contracts after a sell uint256 txLockTime; mapping (address => uint256) private txLock; // max gas limit to avoid front running and sniper bots bool private gasLimitActive = false; uint256 private gasPriceLimit = 75 * 1 gwei; // PCS router address public lpAddress; IPancakeRouter02 private _pancakeRouter; // TODO: Change to Mainnet // TestNet // address private constant PancakeRouter=0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3; // MainNet // address private constant PancakeRouter=0x10ED43C718714eb63d5aA57B78B54704E256024E; // polygon testnet // address private constant PancakeRouter=0xbdd4e5660839a088573191A9889A262c0Efc0983; address private PancakeRouter; constructor( string memory name_, string memory symbol_, uint256 _maxSupply, address _vault, address _router ) { _name = name_; _symbol = symbol_; PancakeRouter = _router; vault = _vault; maxSupply = _maxSupply; _pancakeRouter = IPancakeRouter02(PancakeRouter); lpAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this), _pancakeRouter.WETH()); _amms.add(lpAddress); _excludeTaxes.add(address(0)); _excludeTaxes.add(msg.sender); _excludeTaxes.add(address(this)); _excludeLocks.add(address(0)); _excludeLocks.add(msg.sender); _excludeLocks.add(address(this)); _systemContracts.add(address(0)); _systemContracts.add(address(this)); _systemContracts.add(address(_vault)); // _systemContracts.add(address(_pancakeRouter)); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); _grantRole(PAUSER_ROLE, msg.sender); _grantRole(CAN_TRANSFER_ROLE, msg.sender); _grantRole(CAN_TRANSFER_ROLE, address(_vault)); _approve(address(this), address(_pancakeRouter), type(uint256).max); } // modifier for functions only the team can call modifier onlyTeam() { require(hasRole(TEAM_ROLE, msg.sender) || msg.sender == owner(), "Caller not in Team"); _; } /* modifier onlyBridge { require(msg.sender == bridge, "only bridge has access to this function"); _; }*/ /// @notice Creates `_amount` token to `_to`. Must only be called by the a minter. function mint(address _to, uint256 _amount) public onlyRole(MINTER_ROLE) { require(hasRole(MINTER_ROLE, msg.sender), "ERC20: must have minter role to mint"); require(totalSupply() + _amount <= maxSupply, 'ERC20: Max Supply Reached'); _mint(_to, _amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function burn(address _account, uint256 _amount) external virtual onlyRole(MINTER_ROLE) { _burn(_account, _amount); } /** * @dev pause the token for transfers other than addresses with the CanTransfer Role */ function pause() public onlyOwner { require(hasRole(PAUSER_ROLE, msg.sender), "ERC20: must have pauser role to pause"); _pause(); } /** * @dev unpause the token for anyone to transfer */ function unpause() public onlyOwner { require(hasRole(PAUSER_ROLE, msg.sender), "ERC20: must have pauser role to unpause"); _unpause(); } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); bool isBuy = _amms.contains(sender); bool isSell = _amms.contains(recipient); bool isToSystem = _systemContracts.contains(recipient); bool isFromSystem = _systemContracts.contains(sender); uint256 postTaxAmount = amount; // use to prevent front running assh.. er, bots if (gasLimitActive && isBuy) { require(tx.gasprice <= gasPriceLimit, "Gas price exceeds limit."); } if(recipient == burnAddress){ _burn(sender,amount); } else { require(isToSystem || txLock[sender] <= block.timestamp, "ERC20: Transactions Locked"); unchecked { _balances[sender] = senderBalance - amount; } uint256 toBurn; uint256 toPartner; if(isSell){ // make sure we we aren't getting dumpped on if(!isToSystem && !isFromSystem){ uint256 maxPercentAmount = (totalSupply() * maxSellPercent)/10000; if(maxPercentAmount < maxSell){ maxPercentAmount = maxSell; } require( (maxSell == 0 || amount <= maxSell) && (maxPercentAmount == 0 || amount <= maxPercentAmount), 'ERC20: Y Dump?'); } if(tradingActive) { // see if we need to tax if(!isToSystem && !isFromSystem && !_excludeTaxes.contains(sender) && sellTax > 0){ // calc the taxes uint256 taxAmount =_calculateTax(amount,sellTax,100); // send the tax to the contract _balances[address(this)] += taxAmount; postTaxAmount = amount - taxAmount; // see if we have a burn tax before we swap if(burnTax > 0){ toBurn = _calculateTax(taxAmount, burnTax, 100); } // swap the taxed amount uint256 initialBalance = address(this).balance; _swapTokenForBNB(taxAmount - toBurn); uint256 newBalance = address(this).balance - initialBalance; // split the bnb // set aside the partner tax if(partnerTax > 0 && address(partnerToken) != address(0)){ toPartner = _calculateTax(newBalance, partnerTax, 100); } // lock the sells for the cool down peirod _setTxLock(sender); if(toPartner > 0){ // swap for the partner token and send directly to the fee address _swapBNBForToken(toPartner, partnerToken, partnerTokenFeeAddress); } // send the rest to the vault uint256 toVault = newBalance - toPartner; if(toVault > 0) { (bool sent, ) = payable(address(vault)).call{value: toVault}(""); require(sent, "Failed to send"); } } } } if(isBuy){ if(tradingActive) { // see if we need to tax if(!isToSystem && !isFromSystem && !_excludeTaxes.contains(recipient) && buyBurnTax > 0){ // calc the burn tax toBurn =_calculateTax(amount,buyBurnTax,100); // send the tax to the contract _balances[address(this)] += toBurn; postTaxAmount = amount - toBurn; } } } // burn if(toBurn > 0){ _burn(address(this),toBurn); } _balances[recipient] += postTaxAmount; emit Transfer(sender, recipient, postTaxAmount); } } function _setTxLock(address _addr) private { if(!_excludeLocks.contains(_addr) && txLockTime > 0){ txLock[_addr] = block.timestamp + txLockTime; } } //Calculates the token that should be taxed function _calculateTax(uint256 amount, uint256 tax, uint256 taxPercent) private pure returns (uint256) { return (amount*tax*taxPercent) / 10000; } //swaps tokens for BNB function _swapTokenForBNB(uint256 amount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = _pancakeRouter.WETH(); _approve(address(this), address(_pancakeRouter), amount); _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( amount, 0, path, address(this), block.timestamp ); } //swaps BNB for tokens function _swapBNBForToken(uint256 amount, address _token, address _to) private { // isSwapping = true; address[] memory path = new address[](2); path[0] = _pancakeRouter.WETH(); path[1] = address(_token); _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}( 0, path, address(_to), block.timestamp ); // isSwapping = false; } /** * Set the various taxes. * No tax can ever be higher than the global max **/ event SetTaxes(uint256 sellTax, uint256 _buyBurnTax); function setTaxes( uint256 _sellTax, uint256 _buyBurnTax ) public onlyTeam { require( _sellTax <= _maxTax && _buyBurnTax <= _maxTax, 'Tax too high' ); sellTax = _sellTax; buyBurnTax = _buyBurnTax; emit SetTaxes(_sellTax, _buyBurnTax); } event SetBurnTax(uint256 burnTax); function setBurnTax( uint256 _burnTax ) public onlyTeam { burnTax = _burnTax; emit SetBurnTax(_burnTax); } // update the partner token settings event SetPartnerToken(address indexed _partnerToken, address indexed _partnerTokenFeeAddress, uint256 _partnerTax); function setPartnerToken(address _partnerToken, address _partnerTokenFeeAddress, uint256 _partnerTax) public onlyTeam { partnerToken = _partnerToken; partnerTokenFeeAddress = _partnerTokenFeeAddress; partnerTax = _partnerTax; emit SetPartnerToken(_partnerToken, _partnerTokenFeeAddress, _partnerTax); } // update the sell protection settings event SetSellProtection(uint256 maxSell, uint256 maxSellPercent, uint256 txLock); function setSellProtection(uint256 _maxSell, uint256 _maxSellPercent, uint256 _txLockTime) public onlyTeam { // must be higher than 0.1% require(_maxSellPercent > 10, 'Sell Percent too low'); maxSell = _maxSell; txLockTime = _txLockTime; emit SetSellProtection(_maxSell, _maxSellPercent, _txLockTime); } // when we want to push any loose change in the contract to the vault // we want to pause it while we do this function cleanupLeftovers() public onlyTeam { _pause(); (bool sent, ) = payable(address(vault)).call{value: address(this).balance}(""); require(sent, "Failed to send"); _unpause(); } // one time use, will enable trading after LP is setup event SetTradingActive(); function setTradingActive() public onlyTeam { tradingActive = true; _unpause(); emit SetTradingActive(); } function setGasLimitActive(bool _gasLimitActive) public onlyTeam { gasLimitActive = _gasLimitActive; } function setGasPriceLimit(uint256 _gasPriceLimit) public onlyTeam { // make sure we can never set this too low require(_gasPriceLimit > (10 * 1 gwei ), "Gas Limit too low"); gasPriceLimit = _gasPriceLimit; } // manage the Enumerable Sets function addAmmAddress(address _amm) public onlyTeam { _amms.add(_amm); } function removeAmmAddress(address _amm) public onlyTeam { _amms.remove(_amm); } function addWhitelistAddress(address _addr) public onlyTeam { _whitelist.add(_addr); } function removeWhitelistAddress(address _addr) public onlyTeam { _whitelist.remove(_addr); } function addBlacklistAddress(address _addr) public onlyTeam { _blacklist.add(_addr); } function removeBlacklistAddress(address _addr) public onlyTeam { _blacklist.remove(_addr); } function addSystemContractAddress(address _addr) public onlyTeam { _systemContracts.add(_addr); } function removeSystemContractAddress(address _addr) public onlyTeam { _systemContracts.remove(_addr); } function addExcludeTaxesAddress(address _addr) public onlyTeam { _excludeTaxes.add(_addr); } function removeExcludeTaxesAddress(address _addr) public onlyTeam { _excludeTaxes.remove(_addr); } function addExcludedLocksAddress(address _addr) public onlyTeam { _excludeLocks.add(_addr); } function removeExcludedLocksAddress(address _addr) public onlyTeam { _excludeLocks.remove(_addr); } function setVaultContract(address _vault) public onlyTeam { vault = _vault; _systemContracts.add(address(_vault)); } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function totalMinted() public view returns (uint256) { return _totalMinted; } function totalBurned() public view returns (uint256) { return _totalBurned; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][msg.sender]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, msg.sender, currentAllowance - amount); } return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[msg.sender][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(msg.sender, spender, currentAllowance - subtractedValue); } return true; } event MintTokens(address from, address to, uint256 amount); function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _totalMinted += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); emit MintTokens(msg.sender, account, amount); } event BurnTokens(address from, address to, uint256 amount); function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; _totalBurned += amount; emit Transfer(account, address(0), amount); emit BurnTokens(msg.sender, account, amount); } function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _beforeTokenTransfer( address from, address to, uint256 ) internal virtual { // super._beforeTokenTransfer(from, to, amount); require(!paused() || hasRole(CAN_TRANSFER_ROLE, from) || hasRole(CAN_TRANSFER_ROLE, to) || _systemContracts.contains(from) || _systemContracts.contains(to), "ERC20Pausable: token transfer while paused"); require(!_blacklist.contains(from) && !_blacklist.contains(to), 'No ser, you can not'); } // move any tokens sent to the contract function teamTransferToken(address tokenAddress, address recipient, uint256 amount) public onlyTeam { IERC20 _token = IERC20(tokenAddress); _token.transfer(recipient, amount); } // pull all the eth/bnb/matic out of the contract, needed for migrations/emergencies and transfers to other chains function withdrawETH() public onlyTeam { (bool sent,) =address(owner()).call{value: (address(this).balance)}(""); require(sent,"withdraw failed"); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./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); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @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 // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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. * * _Available since v3.1._ */ 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 `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../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: * * ``` * 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}: * * ``` * 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. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @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 override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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. */ function grantRole(bytes32 role, address account) public virtual override 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. */ function revokeRole(bytes32 role, address account) public virtual override 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 `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @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 Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.11; interface IPancakeERC20 { 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; } interface IPancakeFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IPancakeRouter01 { 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 factory() external pure returns (address); function WETH() external pure returns (address); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getamountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getamountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getamountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getamountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IPancakeRouter02 is IPancakeRouter01 { 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; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 11 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"uint256","name":"burnTax","type":"uint256"}],"name":"SetBurnTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_partnerToken","type":"address"},{"indexed":true,"internalType":"address","name":"_partnerTokenFeeAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_partnerTax","type":"uint256"}],"name":"SetPartnerToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSell","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSellPercent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txLock","type":"uint256"}],"name":"SetSellProtection","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"sellTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_buyBurnTax","type":"uint256"}],"name":"SetTaxes","type":"event"},{"anonymous":false,"inputs":[],"name":"SetTradingActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CAN_TRANSFER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_amm","type":"address"}],"name":"addAmmAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addBlacklistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addExcludeTaxesAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addExcludedLocksAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addSystemContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addWhitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cleanupLeftovers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_amm","type":"address"}],"name":"removeAmmAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeBlacklistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeExcludeTaxesAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeExcludedLocksAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeSystemContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeWhitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","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":[{"internalType":"uint256","name":"_burnTax","type":"uint256"}],"name":"setBurnTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_gasLimitActive","type":"bool"}],"name":"setGasLimitActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasPriceLimit","type":"uint256"}],"name":"setGasPriceLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partnerToken","type":"address"},{"internalType":"address","name":"_partnerTokenFeeAddress","type":"address"},{"internalType":"uint256","name":"_partnerTax","type":"uint256"}],"name":"setPartnerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSell","type":"uint256"},{"internalType":"uint256","name":"_maxSellPercent","type":"uint256"},{"internalType":"uint256","name":"_txLockTime","type":"uint256"}],"name":"setSellProtection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"uint256","name":"_buyBurnTax","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTradingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVaultContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamTransferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526019601c556007601d819055601e55600a601f5560646022556025805460ff19169055641176592e006026553480156200003d57600080fd5b5060405162004191380380620041918339810160408190526200006091620008a7565b6200006b336200045d565b6003805460ff1916905584516200008a90600990602088019062000717565b508351620000a090600a90602087019062000717565b50602980546001600160a01b038084166001600160a01b03199283168117909355600d8054918616918316919091179055600c85905560288054909116821790556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156200011d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000143919062000940565b6001600160a01b031663c9c6539630602860009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001cc919062000940565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000240919062000940565b602780546001600160a01b0319166001600160a01b039290921691821790556200027990601090620004ad602090811b62001d7d17901c565b506200029660006018620004ad60201b62001d7d1790919060201c565b50620002b2336018620004ad60201b62001d7d1790919060201c565b50620002ce306018620004ad60201b62001d7d1790919060201c565b50620002eb6000601a620004ad60201b62001d7d1790919060201c565b506200030733601a620004ad60201b62001d7d1790919060201c565b506200032330601a620004ad60201b62001d7d1790919060201c565b506200034060006016620004ad60201b62001d7d1790919060201c565b506200035c306016620004ad60201b62001d7d1790919060201c565b5062000378826016620004ad60201b62001d7d1790919060201c565b5062000386600033620004cd565b620003b27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620004cd565b620003de7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620004cd565b6200040a7f1c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa330733620004cd565b620004367f1c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa330783620004cd565b602854620004529030906001600160a01b031660001962000510565b50505050506200099b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620004c4836001600160a01b0384166200063c565b90505b92915050565b620004e482826200068e60201b62001d921760201c565b60008281526002602090815260409091206200050b91839062001d7d620004ad821b17901c565b505050565b6001600160a01b038316620005785760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620005db5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016200056f565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008181526001830160205260408120546200068557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004c7565b506000620004c7565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620007135760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b82805462000725906200095e565b90600052602060002090601f01602090048101928262000749576000855562000794565b82601f106200076457805160ff191683800117855562000794565b8280016001018555821562000794579182015b828111156200079457825182559160200191906001019062000777565b50620007a2929150620007a6565b5090565b5b80821115620007a25760008155600101620007a7565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620007e557600080fd5b81516001600160401b0380821115620008025762000802620007bd565b604051601f8301601f19908116603f011681019082821181831017156200082d576200082d620007bd565b816040528381526020925086838588010111156200084a57600080fd5b600091505b838210156200086e57858201830151818301840152908201906200084f565b83821115620008805760008385830101525b9695505050505050565b80516001600160a01b0381168114620008a257600080fd5b919050565b600080600080600060a08688031215620008c057600080fd5b85516001600160401b0380821115620008d857600080fd5b620008e689838a01620007d3565b96506020880151915080821115620008fd57600080fd5b506200090c88828901620007d3565b9450506040860151925062000924606087016200088a565b915062000934608087016200088a565b90509295509295909350565b6000602082840312156200095357600080fd5b620004c4826200088a565b600181811c908216806200097357607f821691505b602082108114156200099557634e487b7160e01b600052602260045260246000fd5b50919050565b6137e680620009ab6000396000f3fe6080604052600436106102bb5760003560e01c8063900ce6ba1161016c578063900ce6ba146106775780639010d07c1461069757806391d14854146106b757806394a7ef15146106d757806395d89b41146106f757806396f4ada61461070c5780639b4dc8cc1461072c5780639dc29fac1461074c578063a217fddf1461076c578063a2309ff814610781578063a457c2d714610796578063a68bea08146107b6578063a9059cbb146107d6578063aaaabf35146107f6578063b7ecbaae1461080b578063be4d0da11461082b578063c5486f151461084b578063c647b20e1461086b578063ca15c8731461088b578063d5391393146108ab578063d547741f146108cd578063d5abeb01146108ed578063d89135cd14610903578063d993979714610918578063dd62ed3e14610938578063e086e5ec1461097e578063e63ab1e914610993578063ee6411c3146109b5578063f2fde38b146109d7578063f676949a146109f757600080fd5b806301ffc9a7146102c757806306fdde03146102fc578063092316021461031e578063095ea7b3146103405780630acb1a3014610360578063135548541461038057806315bbd7d41461039557806318160ddd146103b55780631fb0383e146103d457806323b872dd146103f4578063248a9ca3146104145780632d405ede146104345780632f2ff15d14610454578063313ce5671461047457806336568abe1461049057806339509351146104b05780633f4ba83a146104d057806340c10f19146104e557806344ef1c941461050557806349d5e604146105255780635bcd9441146105475780635c975abb1461056757806370a082311461057f57806370d5ae05146105b5578063715018a6146105d85780637411e0f9146105ed5780638456cb591461060d578063890d1814146106225780638da5cb5b146106425780638e3f19881461065757600080fd5b366102c257005b600080fd5b3480156102d357600080fd5b506102e76102e236600461319b565b610a17565b60405190151581526020015b60405180910390f35b34801561030857600080fd5b50610311610a42565b6040516102f391906131f5565b34801561032a57600080fd5b5061033e610339366004613228565b610ad4565b005b34801561034c57600080fd5b506102e761035b366004613256565b610b81565b34801561036c57600080fd5b5061033e61037b366004613282565b610b97565b34801561038c57600080fd5b5061033e610bfd565b3480156103a157600080fd5b5061033e6103b036600461329f565b610c94565b3480156103c157600080fd5b506006545b6040519081526020016102f3565b3480156103e057600080fd5b5061033e6103ef366004613228565b610d68565b34801561040057600080fd5b506102e761040f36600461329f565b610dfa565b34801561042057600080fd5b506103c661042f366004613228565b610ea4565b34801561044057600080fd5b5061033e61044f366004613282565b610eba565b34801561046057600080fd5b5061033e61046f3660046132e0565b610f1c565b34801561048057600080fd5b50604051601281526020016102f3565b34801561049c57600080fd5b5061033e6104ab3660046132e0565b610f3e565b3480156104bc57600080fd5b506102e76104cb366004613256565b610fb8565b3480156104dc57600080fd5b5061033e610ff4565b3480156104f157600080fd5b5061033e610500366004613256565b61108f565b34801561051157600080fd5b5061033e61052036600461329f565b611183565b34801561053157600080fd5b506103c660008051602061377183398151915281565b34801561055357600080fd5b5061033e610562366004613310565b611247565b34801561057357600080fd5b5060035460ff166102e7565b34801561058b57600080fd5b506103c661059a366004613282565b6001600160a01b031660009081526004602052604090205490565b3480156105c157600080fd5b506105cb61dead81565b6040516102f3919061333c565b3480156105e457600080fd5b5061033e611336565b3480156105f957600080fd5b5061033e610608366004613282565b61136f565b34801561061957600080fd5b5061033e6113d1565b34801561062e57600080fd5b5061033e61063d366004613282565b611468565b34801561064e57600080fd5b506105cb6114ca565b34801561066357600080fd5b5061033e610672366004613282565b6114d9565b34801561068357600080fd5b5061033e610692366004613282565b61153b565b3480156106a357600080fd5b506105cb6106b2366004613350565b61159d565b3480156106c357600080fd5b506102e76106d23660046132e0565b6115bc565b3480156106e357600080fd5b5061033e6106f2366004613282565b6115e7565b34801561070357600080fd5b50610311611649565b34801561071857600080fd5b5061033e610727366004613282565b611658565b34801561073857600080fd5b506027546105cb906001600160a01b031681565b34801561075857600080fd5b5061033e610767366004613256565b6116d5565b34801561077857600080fd5b506103c6600081565b34801561078d57600080fd5b506007546103c6565b3480156107a257600080fd5b506102e76107b1366004613256565b6116f8565b3480156107c257600080fd5b5061033e6107d1366004613380565b611791565b3480156107e257600080fd5b506102e76107f1366004613256565b6117fb565b34801561080257600080fd5b5061033e611808565b34801561081757600080fd5b5061033e610826366004613282565b6118e5565b34801561083757600080fd5b5061033e610846366004613282565b611947565b34801561085757600080fd5b5061033e610866366004613282565b6119a9565b34801561087757600080fd5b5061033e610886366004613350565b611a0b565b34801561089757600080fd5b506103c66108a6366004613228565b611af9565b3480156108b757600080fd5b506103c660008051602061373183398151915281565b3480156108d957600080fd5b5061033e6108e83660046132e0565b611b10565b3480156108f957600080fd5b506103c6600c5481565b34801561090f57600080fd5b506008546103c6565b34801561092457600080fd5b5061033e610933366004613282565b611b2d565b34801561094457600080fd5b506103c661095336600461339d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561098a57600080fd5b5061033e611b8f565b34801561099f57600080fd5b506103c660008051602061371183398151915281565b3480156109c157600080fd5b506103c660008051602061379183398151915281565b3480156109e357600080fd5b5061033e6109f2366004613282565b611c82565b348015610a0357600080fd5b5061033e610a12366004613282565b611d1f565b60006001600160e01b03198216635a05180f60e01b1480610a3c5750610a3c82611dfd565b92915050565b606060098054610a51906133cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7d906133cb565b8015610aca5780601f10610a9f57610100808354040283529160200191610aca565b820191906000526020600020905b815481529060010190602001808311610aad57829003601f168201915b5050505050905090565b610aec600080516020613771833981519152336115bc565b80610b0f5750610afa6114ca565b6001600160a01b0316336001600160a01b0316145b610b345760405162461bcd60e51b8152600401610b2b90613406565b60405180910390fd5b6402540be4008111610b7c5760405162461bcd60e51b8152602060048201526011602482015270476173204c696d697420746f6f206c6f7760781b6044820152606401610b2b565b602655565b6000610b8e338484611e32565b50600192915050565b610baf600080516020613771833981519152336115bc565b80610bd25750610bbd6114ca565b6001600160a01b0316336001600160a01b0316145b610bee5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601a82611d7d565b5050565b610c15600080516020613771833981519152336115bc565b80610c385750610c236114ca565b6001600160a01b0316336001600160a01b0316145b610c545760405162461bcd60e51b8152600401610b2b90613406565b600b805460ff19166001179055610c69611f4e565b6040517f60b73267bb6bb049c99fda5b778a6b505f6149ace766e509237964afab62d00690600090a1565b610cac600080516020613771833981519152336115bc565b80610ccf5750610cba6114ca565b6001600160a01b0316336001600160a01b0316145b610ceb5760405162461bcd60e51b8152600401610b2b90613406565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284919082169063a9059cbb906044016020604051808303816000875af1158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d619190613432565b5050505050565b610d80600080516020613771833981519152336115bc565b80610da35750610d8e6114ca565b6001600160a01b0316336001600160a01b0316145b610dbf5760405162461bcd60e51b8152600401610b2b90613406565b601f8190556040518181527f41a86d08a241f8b4cb572cb8583089a3cc47618dfb2e09d7dccd4f65ccc161179060200160405180910390a150565b6000610e07848484611fdb565b6001600160a01b038416600090815260056020908152604080832033845290915290205482811015610e8c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b2b565b610e998533858403611e32565b506001949350505050565b6000908152600160208190526040909120015490565b610ed2600080516020613771833981519152336115bc565b80610ef55750610ee06114ca565b6001600160a01b0316336001600160a01b0316145b610f115760405162461bcd60e51b8152600401610b2b90613406565b610bf960148261257b565b610f2582610ea4565b610f2f8133612590565b610f3983836125f4565b505050565b6001600160a01b0381163314610fae5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b2b565b610bf98282612616565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610b8e918590610fef908690613465565b611e32565b33610ffd6114ca565b6001600160a01b0316146110235760405162461bcd60e51b8152600401610b2b9061347d565b61103b600080516020613711833981519152336115bc565b6110855760405162461bcd60e51b815260206004820152602760248201526000805160206136f1833981519152604482015266756e706175736560c81b6064820152608401610b2b565b61108d611f4e565b565b6000805160206137318339815191526110a88133612590565b6110c0600080516020613731833981519152336115bc565b6111185760405162461bcd60e51b8152602060048201526024808201527f45524332303a206d7573742068617665206d696e74657220726f6c6520746f206044820152631b5a5b9d60e21b6064820152608401610b2b565b600c548261112560065490565b61112f9190613465565b11156111795760405162461bcd60e51b8152602060048201526019602482015278115490cc8c0e8813585e0814dd5c1c1b1e4814995858da1959603a1b6044820152606401610b2b565b610f398383612638565b61119b600080516020613771833981519152336115bc565b806111be57506111a96114ca565b6001600160a01b0316336001600160a01b0316145b6111da5760405162461bcd60e51b8152600401610b2b90613406565b600e80546001600160a01b03199081166001600160a01b03868116918217909355600f805490921692851692831790915560208381556040518481527f98a50085ef9c0de5a60b6c4595c172739bc91fdc0f5a8fa42797be1a9d853f6c91015b60405180910390a3505050565b61125f600080516020613771833981519152336115bc565b80611282575061126d6114ca565b6001600160a01b0316336001600160a01b0316145b61129e5760405162461bcd60e51b8152600401610b2b90613406565b600a82116112e55760405162461bcd60e51b815260206004820152601460248201527353656c6c2050657263656e7420746f6f206c6f7760601b6044820152606401610b2b565b6021839055602381905560408051848152602081018490529081018290527fc1a96eb7ea0ae72ef0e921b27cd1e23aaa37323375b5c6aa5e0d9f0f6a892679906060015b60405180910390a1505050565b3361133f6114ca565b6001600160a01b0316146113655760405162461bcd60e51b8152600401610b2b9061347d565b61108d6000612759565b611387600080516020613771833981519152336115bc565b806113aa57506113956114ca565b6001600160a01b0316336001600160a01b0316145b6113c65760405162461bcd60e51b8152600401610b2b90613406565b610bf9601682611d7d565b336113da6114ca565b6001600160a01b0316146114005760405162461bcd60e51b8152600401610b2b9061347d565b611418600080516020613711833981519152336115bc565b6114605760405162461bcd60e51b815260206004820152602560248201526000805160206136f1833981519152604482015264706175736560d81b6064820152608401610b2b565b61108d6127a9565b611480600080516020613771833981519152336115bc565b806114a3575061148e6114ca565b6001600160a01b0316336001600160a01b0316145b6114bf5760405162461bcd60e51b8152600401610b2b90613406565b610bf960168261257b565b6000546001600160a01b031690565b6114f1600080516020613771833981519152336115bc565b8061151457506114ff6114ca565b6001600160a01b0316336001600160a01b0316145b6115305760405162461bcd60e51b8152600401610b2b90613406565b610bf960108261257b565b611553600080516020613771833981519152336115bc565b8061157657506115616114ca565b6001600160a01b0316336001600160a01b0316145b6115925760405162461bcd60e51b8152600401610b2b90613406565b610bf9601482611d7d565b60008281526002602052604081206115b59083612824565b9392505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6115ff600080516020613771833981519152336115bc565b80611622575061160d6114ca565b6001600160a01b0316336001600160a01b0316145b61163e5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601282611d7d565b6060600a8054610a51906133cb565b611670600080516020613771833981519152336115bc565b80611693575061167e6114ca565b6001600160a01b0316336001600160a01b0316145b6116af5760405162461bcd60e51b8152600401610b2b90613406565b600d80546001600160a01b0319166001600160a01b038316179055610bf9601682611d7d565b6000805160206137318339815191526116ee8133612590565b610f398383612830565b3360009081526005602090815260408083206001600160a01b03861684529091528120548281101561177a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b2b565b6117873385858403611e32565b5060019392505050565b6117a9600080516020613771833981519152336115bc565b806117cc57506117b76114ca565b6001600160a01b0316336001600160a01b0316145b6117e85760405162461bcd60e51b8152600401610b2b90613406565b6025805460ff1916911515919091179055565b6000610b8e338484611fdb565b611820600080516020613771833981519152336115bc565b80611843575061182e6114ca565b6001600160a01b0316336001600160a01b0316145b61185f5760405162461bcd60e51b8152600401610b2b90613406565b6118676127a9565b600d546040516000916001600160a01b03169047908381818185875af1925050503d80600081146118b4576040519150601f19603f3d011682016040523d82523d6000602084013e6118b9565b606091505b50509050806118da5760405162461bcd60e51b8152600401610b2b906134b2565b6118e2611f4e565b50565b6118fd600080516020613771833981519152336115bc565b80611920575061190b6114ca565b6001600160a01b0316336001600160a01b0316145b61193c5760405162461bcd60e51b8152600401610b2b90613406565b610bf960128261257b565b61195f600080516020613771833981519152336115bc565b80611982575061196d6114ca565b6001600160a01b0316336001600160a01b0316145b61199e5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601082611d7d565b6119c1600080516020613771833981519152336115bc565b806119e457506119cf6114ca565b6001600160a01b0316336001600160a01b0316145b611a005760405162461bcd60e51b8152600401610b2b90613406565b610bf9601a8261257b565b611a23600080516020613771833981519152336115bc565b80611a465750611a316114ca565b6001600160a01b0316336001600160a01b0316145b611a625760405162461bcd60e51b8152600401610b2b90613406565b601c548211158015611a765750601c548111155b611ab15760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610b2b565b601d829055601e81905560408051838152602081018390527f6e68ff80c8a733d820beab4573027f8791c8d94bd982d6b253d92cefd8e4833d91015b60405180910390a15050565b6000818152600260205260408120610a3c906129bf565b611b1982610ea4565b611b238133612590565b610f398383612616565b611b45600080516020613771833981519152336115bc565b80611b685750611b536114ca565b6001600160a01b0316336001600160a01b0316145b611b845760405162461bcd60e51b8152600401610b2b90613406565b610bf960188261257b565b611ba7600080516020613771833981519152336115bc565b80611bca5750611bb56114ca565b6001600160a01b0316336001600160a01b0316145b611be65760405162461bcd60e51b8152600401610b2b90613406565b6000611bf06114ca565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611c3a576040519150601f19603f3d011682016040523d82523d6000602084013e611c3f565b606091505b50509050806118e25760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606401610b2b565b33611c8b6114ca565b6001600160a01b031614611cb15760405162461bcd60e51b8152600401610b2b9061347d565b6001600160a01b038116611d165760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b2b565b6118e281612759565b611d37600080516020613771833981519152336115bc565b80611d5a5750611d456114ca565b6001600160a01b0316336001600160a01b0316145b611d765760405162461bcd60e51b8152600401610b2b90613406565b610bf96018825b60006115b5836001600160a01b0384166129c9565b611d9c82826115bc565b610bf95760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60006001600160e01b03198216637965db0b60e01b1480610a3c57506301ffc9a760e01b6001600160e01b0319831614610a3c565b6001600160a01b038316611e945760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b2b565b6001600160a01b038216611ef55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b2b565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161123a565b60035460ff16611f975760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b2b565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051611fd1919061333c565b60405180910390a1565b6001600160a01b03821661203d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b2b565b612048838383612a13565b6001600160a01b038316600090815260046020526040902054818110156120c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b2b565b60006120cd601086612b39565b905060006120dc601086612b39565b905060006120eb601687612b39565b905060006120fa601689612b39565b602554909150869060ff16801561210e5750845b15612160576026543a11156121605760405162461bcd60e51b815260206004820152601860248201527723b0b990383934b1b29032bc31b2b2b239903634b6b4ba1760411b6044820152606401610b2b565b6001600160a01b03881661dead14156121825761217d8988612830565b612570565b82806121a657506001600160a01b0389166000908152602460205260409020544210155b6121ef5760405162461bcd60e51b815260206004820152601a602482015279115490cc8c0e88151c985b9cd858dd1a5bdb9cc8131bd8dad95960321b6044820152606401610b2b565b6001600160a01b0389166000908152600460205260408120888803905580851561246a578415801561221f575083155b156122be57600061271060225461223560065490565b61223f91906134da565b61224991906134f9565b905060215481101561225a57506021545b602154158061226b57506021548a11155b801561227f575080158061227f5750808a11155b6122bc5760405162461bcd60e51b815260206004820152600e60248201526d45524332303a20592044756d703f60901b6044820152606401610b2b565b505b600b5460ff161561246a57841580156122d5575083155b80156122e957506122e760188c612b39565b155b80156122f757506000601d54115b1561246a57600061230c8a601d546064612b4e565b30600090815260046020526040812080549293508392909190612330908490613465565b909155506123409050818b61351b565b601f549094501561235c5761235981601f546064612b4e565b92505b4761236f61236a858461351b565b612b7a565b600061237b824761351b565b905060006020541180156123995750600e546001600160a01b031615155b156123af576123ac816020546064612b4e565b93505b6123b88e612cd4565b83156123dc57600e54600f546123dc9186916001600160a01b039182169116612d1c565b60006123e8858361351b565b9050801561246557600d546040516000916001600160a01b03169083908381818185875af1925050503d806000811461243d576040519150601f19603f3d011682016040523d82523d6000602084013e612442565b606091505b50509050806124635760405162461bcd60e51b8152600401610b2b906134b2565b505b505050505b86156124f357600b5460ff16156124f35784158015612487575083155b801561249b575061249960188b612b39565b155b80156124a957506000601e54115b156124f3576124bc89601e546064612b4e565b306000908152600460205260408120805492945084929091906124e0908490613465565b909155506124f09050828a61351b565b92505b8115612503576125033083612830565b6001600160a01b038a166000908152600460205260408120805485929061252b908490613465565b92505081905550896001600160a01b03168b6001600160a01b03166000805160206137518339815191528560405161256591815260200190565b60405180910390a350505b505050505050505050565b60006115b5836001600160a01b038416612e64565b61259a82826115bc565b610bf9576125b2816001600160a01b03166014612f57565b6125bd836020612f57565b6040516020016125ce929190613532565b60408051601f198184030181529082905262461bcd60e51b8252610b2b916004016131f5565b6125fe8282611d92565b6000828152600260205260409020610f399082611d7d565b61262082826130f2565b6000828152600260205260409020610f39908261257b565b6001600160a01b03821661268e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b2b565b61269a60008383612a13565b80600660008282546126ac9190613465565b9250508190555080600760008282546126c59190613465565b90915550506001600160a01b038216600090815260046020526040812080548392906126f2908490613465565b90915550506040518181526001600160a01b038316906000906000805160206137518339815191529060200160405180910390a37f21f9c9a1a1f9a311a50f15fec5c1faa9e21fc9edf964f0fdecba5bd490484c5e338383604051611aed939291906135a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60035460ff16156127ef5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b2b565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611fc43390565b60006115b58383613159565b6001600160a01b0382166128905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b2b565b61289c82600083612a13565b6001600160a01b038216600090815260046020526040902054818110156129105760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b2b565b6001600160a01b038316600090815260046020526040812083830390556006805484929061293f90849061351b565b9250508190555081600860008282546129589190613465565b90915550506040518281526000906001600160a01b038516906000805160206137518339815191529060200160405180910390a37fa02fa7af120761e5cdeff8bc117c44fd425d0f51fd27155746f84421d87d18e6338484604051611329939291906135a1565b6000610a3c825490565b60006129d58383613183565b612a0b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a3c565b506000610a3c565b60035460ff161580612a385750612a38600080516020613791833981519152846115bc565b80612a565750612a56600080516020613791833981519152836115bc565b80612a675750612a67601684612b39565b80612a785750612a78601683612b39565b612ad75760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610b2b565b612ae2601484612b39565b158015612af75750612af5601483612b39565b155b610f395760405162461bcd60e51b8152602060048201526013602482015272139bc81cd95c8b081e5bdd4818d85b881b9bdd606a1b6044820152606401610b2b565b60006115b5836001600160a01b038416613183565b600061271082612b5e85876134da565b612b6891906134da565b612b7291906134f9565b949350505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612baf57612baf6135db565b6001600160a01b03928316602091820292909201810191909152602854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2c91906135f1565b81600181518110612c3f57612c3f6135db565b6001600160a01b039283166020918202929092010152602854612c659130911684611e32565b60285460405163791ac94760e01b81526001600160a01b039091169063791ac94790612c9e908590600090869030904290600401613652565b600060405180830381600087803b158015612cb857600080fd5b505af1158015612ccc573d6000803e3d6000fd5b505050505050565b612cdf601a82612b39565b158015612cee57506000602354115b156118e257602354612d009042613465565b6001600160a01b03821660009081526024602052604090205550565b6040805160028082526060820183526000926020830190803683375050602854604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015612d86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612daa91906135f1565b81600081518110612dbd57612dbd6135db565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110612df157612df16135db565b6001600160a01b03928316602091820292909201015260285460405163b6f9de9560e01b815291169063b6f9de95908690612e379060009086908890429060040161368e565b6000604051808303818588803b158015612e5057600080fd5b505af1158015612570573d6000803e3d6000fd5b60008181526001830160205260408120548015612f4d576000612e8860018361351b565b8554909150600090612e9c9060019061351b565b9050818114612f01576000866000018281548110612ebc57612ebc6135db565b9060005260206000200154905080876000018481548110612edf57612edf6135db565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612f1257612f126136c3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a3c565b6000915050610a3c565b60606000612f668360026134da565b612f71906002613465565b6001600160401b03811115612f8857612f886135c5565b6040519080825280601f01601f191660200182016040528015612fb2576020820181803683370190505b509050600360fc1b81600081518110612fcd57612fcd6135db565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ffc57612ffc6135db565b60200101906001600160f81b031916908160001a90535060006130208460026134da565b61302b906001613465565b90505b60018111156130a3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061305f5761305f6135db565b1a60f81b828281518110613075576130756135db565b60200101906001600160f81b031916908160001a90535060049490941c9361309c816136d9565b905061302e565b5083156115b55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b2b565b6130fc82826115bc565b15610bf95760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000826000018281548110613170576131706135db565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6000602082840312156131ad57600080fd5b81356001600160e01b0319811681146115b557600080fd5b60005b838110156131e05781810151838201526020016131c8565b838111156131ef576000848401525b50505050565b60208152600082518060208401526132148160408501602087016131c5565b601f01601f19169190910160400192915050565b60006020828403121561323a57600080fd5b5035919050565b6001600160a01b03811681146118e257600080fd5b6000806040838503121561326957600080fd5b823561327481613241565b946020939093013593505050565b60006020828403121561329457600080fd5b81356115b581613241565b6000806000606084860312156132b457600080fd5b83356132bf81613241565b925060208401356132cf81613241565b929592945050506040919091013590565b600080604083850312156132f357600080fd5b82359150602083013561330581613241565b809150509250929050565b60008060006060848603121561332557600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0391909116815260200190565b6000806040838503121561336357600080fd5b50508035926020909101359150565b80151581146118e257600080fd5b60006020828403121561339257600080fd5b81356115b581613372565b600080604083850312156133b057600080fd5b82356133bb81613241565b9150602083013561330581613241565b600181811c908216806133df57607f821691505b6020821081141561340057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527143616c6c6572206e6f7420696e205465616d60701b604082015260600190565b60006020828403121561344457600080fd5b81516115b581613372565b634e487b7160e01b600052601160045260246000fd5b600082198211156134785761347861344f565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d11985a5b1959081d1bc81cd95b9960921b604082015260600190565b60008160001904831182151516156134f4576134f461344f565b500290565b60008261351657634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561352d5761352d61344f565b500390565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516135648160178501602088016131c5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516135958160288401602088016131c5565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561360357600080fd5b81516115b581613241565b600081518084526020808501945080840160005b838110156136475781516001600160a01b031687529582019590820190600101613622565b509495945050505050565b85815284602082015260a06040820152600061367160a083018661360e565b6001600160a01b0394909416606083015250608001529392505050565b8481526080602082015260006136a7608083018661360e565b6001600160a01b03949094166040830152506060015292915050565b634e487b7160e01b600052603160045260246000fd5b6000816136e8576136e861344f565b50600019019056fe45524332303a206d75737420686176652070617573657220726f6c6520746f2065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5146a08baf902532d0ee2f909971144f12ca32651cd70cbee1117cddfb3b3b331c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa3307a2646970667358221220d2cfd3218875b75a9dfd1b9cdcda91c9c3c287d2ab3c19b286959881b47b63a964736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008954afa98594b838bda56fe4c12a09d7739d179b000000000000000000000000000000000000000000000000000000000000000a4d657461506f636b65740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056d50434b54000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102bb5760003560e01c8063900ce6ba1161016c578063900ce6ba146106775780639010d07c1461069757806391d14854146106b757806394a7ef15146106d757806395d89b41146106f757806396f4ada61461070c5780639b4dc8cc1461072c5780639dc29fac1461074c578063a217fddf1461076c578063a2309ff814610781578063a457c2d714610796578063a68bea08146107b6578063a9059cbb146107d6578063aaaabf35146107f6578063b7ecbaae1461080b578063be4d0da11461082b578063c5486f151461084b578063c647b20e1461086b578063ca15c8731461088b578063d5391393146108ab578063d547741f146108cd578063d5abeb01146108ed578063d89135cd14610903578063d993979714610918578063dd62ed3e14610938578063e086e5ec1461097e578063e63ab1e914610993578063ee6411c3146109b5578063f2fde38b146109d7578063f676949a146109f757600080fd5b806301ffc9a7146102c757806306fdde03146102fc578063092316021461031e578063095ea7b3146103405780630acb1a3014610360578063135548541461038057806315bbd7d41461039557806318160ddd146103b55780631fb0383e146103d457806323b872dd146103f4578063248a9ca3146104145780632d405ede146104345780632f2ff15d14610454578063313ce5671461047457806336568abe1461049057806339509351146104b05780633f4ba83a146104d057806340c10f19146104e557806344ef1c941461050557806349d5e604146105255780635bcd9441146105475780635c975abb1461056757806370a082311461057f57806370d5ae05146105b5578063715018a6146105d85780637411e0f9146105ed5780638456cb591461060d578063890d1814146106225780638da5cb5b146106425780638e3f19881461065757600080fd5b366102c257005b600080fd5b3480156102d357600080fd5b506102e76102e236600461319b565b610a17565b60405190151581526020015b60405180910390f35b34801561030857600080fd5b50610311610a42565b6040516102f391906131f5565b34801561032a57600080fd5b5061033e610339366004613228565b610ad4565b005b34801561034c57600080fd5b506102e761035b366004613256565b610b81565b34801561036c57600080fd5b5061033e61037b366004613282565b610b97565b34801561038c57600080fd5b5061033e610bfd565b3480156103a157600080fd5b5061033e6103b036600461329f565b610c94565b3480156103c157600080fd5b506006545b6040519081526020016102f3565b3480156103e057600080fd5b5061033e6103ef366004613228565b610d68565b34801561040057600080fd5b506102e761040f36600461329f565b610dfa565b34801561042057600080fd5b506103c661042f366004613228565b610ea4565b34801561044057600080fd5b5061033e61044f366004613282565b610eba565b34801561046057600080fd5b5061033e61046f3660046132e0565b610f1c565b34801561048057600080fd5b50604051601281526020016102f3565b34801561049c57600080fd5b5061033e6104ab3660046132e0565b610f3e565b3480156104bc57600080fd5b506102e76104cb366004613256565b610fb8565b3480156104dc57600080fd5b5061033e610ff4565b3480156104f157600080fd5b5061033e610500366004613256565b61108f565b34801561051157600080fd5b5061033e61052036600461329f565b611183565b34801561053157600080fd5b506103c660008051602061377183398151915281565b34801561055357600080fd5b5061033e610562366004613310565b611247565b34801561057357600080fd5b5060035460ff166102e7565b34801561058b57600080fd5b506103c661059a366004613282565b6001600160a01b031660009081526004602052604090205490565b3480156105c157600080fd5b506105cb61dead81565b6040516102f3919061333c565b3480156105e457600080fd5b5061033e611336565b3480156105f957600080fd5b5061033e610608366004613282565b61136f565b34801561061957600080fd5b5061033e6113d1565b34801561062e57600080fd5b5061033e61063d366004613282565b611468565b34801561064e57600080fd5b506105cb6114ca565b34801561066357600080fd5b5061033e610672366004613282565b6114d9565b34801561068357600080fd5b5061033e610692366004613282565b61153b565b3480156106a357600080fd5b506105cb6106b2366004613350565b61159d565b3480156106c357600080fd5b506102e76106d23660046132e0565b6115bc565b3480156106e357600080fd5b5061033e6106f2366004613282565b6115e7565b34801561070357600080fd5b50610311611649565b34801561071857600080fd5b5061033e610727366004613282565b611658565b34801561073857600080fd5b506027546105cb906001600160a01b031681565b34801561075857600080fd5b5061033e610767366004613256565b6116d5565b34801561077857600080fd5b506103c6600081565b34801561078d57600080fd5b506007546103c6565b3480156107a257600080fd5b506102e76107b1366004613256565b6116f8565b3480156107c257600080fd5b5061033e6107d1366004613380565b611791565b3480156107e257600080fd5b506102e76107f1366004613256565b6117fb565b34801561080257600080fd5b5061033e611808565b34801561081757600080fd5b5061033e610826366004613282565b6118e5565b34801561083757600080fd5b5061033e610846366004613282565b611947565b34801561085757600080fd5b5061033e610866366004613282565b6119a9565b34801561087757600080fd5b5061033e610886366004613350565b611a0b565b34801561089757600080fd5b506103c66108a6366004613228565b611af9565b3480156108b757600080fd5b506103c660008051602061373183398151915281565b3480156108d957600080fd5b5061033e6108e83660046132e0565b611b10565b3480156108f957600080fd5b506103c6600c5481565b34801561090f57600080fd5b506008546103c6565b34801561092457600080fd5b5061033e610933366004613282565b611b2d565b34801561094457600080fd5b506103c661095336600461339d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561098a57600080fd5b5061033e611b8f565b34801561099f57600080fd5b506103c660008051602061371183398151915281565b3480156109c157600080fd5b506103c660008051602061379183398151915281565b3480156109e357600080fd5b5061033e6109f2366004613282565b611c82565b348015610a0357600080fd5b5061033e610a12366004613282565b611d1f565b60006001600160e01b03198216635a05180f60e01b1480610a3c5750610a3c82611dfd565b92915050565b606060098054610a51906133cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7d906133cb565b8015610aca5780601f10610a9f57610100808354040283529160200191610aca565b820191906000526020600020905b815481529060010190602001808311610aad57829003601f168201915b5050505050905090565b610aec600080516020613771833981519152336115bc565b80610b0f5750610afa6114ca565b6001600160a01b0316336001600160a01b0316145b610b345760405162461bcd60e51b8152600401610b2b90613406565b60405180910390fd5b6402540be4008111610b7c5760405162461bcd60e51b8152602060048201526011602482015270476173204c696d697420746f6f206c6f7760781b6044820152606401610b2b565b602655565b6000610b8e338484611e32565b50600192915050565b610baf600080516020613771833981519152336115bc565b80610bd25750610bbd6114ca565b6001600160a01b0316336001600160a01b0316145b610bee5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601a82611d7d565b5050565b610c15600080516020613771833981519152336115bc565b80610c385750610c236114ca565b6001600160a01b0316336001600160a01b0316145b610c545760405162461bcd60e51b8152600401610b2b90613406565b600b805460ff19166001179055610c69611f4e565b6040517f60b73267bb6bb049c99fda5b778a6b505f6149ace766e509237964afab62d00690600090a1565b610cac600080516020613771833981519152336115bc565b80610ccf5750610cba6114ca565b6001600160a01b0316336001600160a01b0316145b610ceb5760405162461bcd60e51b8152600401610b2b90613406565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284919082169063a9059cbb906044016020604051808303816000875af1158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d619190613432565b5050505050565b610d80600080516020613771833981519152336115bc565b80610da35750610d8e6114ca565b6001600160a01b0316336001600160a01b0316145b610dbf5760405162461bcd60e51b8152600401610b2b90613406565b601f8190556040518181527f41a86d08a241f8b4cb572cb8583089a3cc47618dfb2e09d7dccd4f65ccc161179060200160405180910390a150565b6000610e07848484611fdb565b6001600160a01b038416600090815260056020908152604080832033845290915290205482811015610e8c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b2b565b610e998533858403611e32565b506001949350505050565b6000908152600160208190526040909120015490565b610ed2600080516020613771833981519152336115bc565b80610ef55750610ee06114ca565b6001600160a01b0316336001600160a01b0316145b610f115760405162461bcd60e51b8152600401610b2b90613406565b610bf960148261257b565b610f2582610ea4565b610f2f8133612590565b610f3983836125f4565b505050565b6001600160a01b0381163314610fae5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b2b565b610bf98282612616565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610b8e918590610fef908690613465565b611e32565b33610ffd6114ca565b6001600160a01b0316146110235760405162461bcd60e51b8152600401610b2b9061347d565b61103b600080516020613711833981519152336115bc565b6110855760405162461bcd60e51b815260206004820152602760248201526000805160206136f1833981519152604482015266756e706175736560c81b6064820152608401610b2b565b61108d611f4e565b565b6000805160206137318339815191526110a88133612590565b6110c0600080516020613731833981519152336115bc565b6111185760405162461bcd60e51b8152602060048201526024808201527f45524332303a206d7573742068617665206d696e74657220726f6c6520746f206044820152631b5a5b9d60e21b6064820152608401610b2b565b600c548261112560065490565b61112f9190613465565b11156111795760405162461bcd60e51b8152602060048201526019602482015278115490cc8c0e8813585e0814dd5c1c1b1e4814995858da1959603a1b6044820152606401610b2b565b610f398383612638565b61119b600080516020613771833981519152336115bc565b806111be57506111a96114ca565b6001600160a01b0316336001600160a01b0316145b6111da5760405162461bcd60e51b8152600401610b2b90613406565b600e80546001600160a01b03199081166001600160a01b03868116918217909355600f805490921692851692831790915560208381556040518481527f98a50085ef9c0de5a60b6c4595c172739bc91fdc0f5a8fa42797be1a9d853f6c91015b60405180910390a3505050565b61125f600080516020613771833981519152336115bc565b80611282575061126d6114ca565b6001600160a01b0316336001600160a01b0316145b61129e5760405162461bcd60e51b8152600401610b2b90613406565b600a82116112e55760405162461bcd60e51b815260206004820152601460248201527353656c6c2050657263656e7420746f6f206c6f7760601b6044820152606401610b2b565b6021839055602381905560408051848152602081018490529081018290527fc1a96eb7ea0ae72ef0e921b27cd1e23aaa37323375b5c6aa5e0d9f0f6a892679906060015b60405180910390a1505050565b3361133f6114ca565b6001600160a01b0316146113655760405162461bcd60e51b8152600401610b2b9061347d565b61108d6000612759565b611387600080516020613771833981519152336115bc565b806113aa57506113956114ca565b6001600160a01b0316336001600160a01b0316145b6113c65760405162461bcd60e51b8152600401610b2b90613406565b610bf9601682611d7d565b336113da6114ca565b6001600160a01b0316146114005760405162461bcd60e51b8152600401610b2b9061347d565b611418600080516020613711833981519152336115bc565b6114605760405162461bcd60e51b815260206004820152602560248201526000805160206136f1833981519152604482015264706175736560d81b6064820152608401610b2b565b61108d6127a9565b611480600080516020613771833981519152336115bc565b806114a3575061148e6114ca565b6001600160a01b0316336001600160a01b0316145b6114bf5760405162461bcd60e51b8152600401610b2b90613406565b610bf960168261257b565b6000546001600160a01b031690565b6114f1600080516020613771833981519152336115bc565b8061151457506114ff6114ca565b6001600160a01b0316336001600160a01b0316145b6115305760405162461bcd60e51b8152600401610b2b90613406565b610bf960108261257b565b611553600080516020613771833981519152336115bc565b8061157657506115616114ca565b6001600160a01b0316336001600160a01b0316145b6115925760405162461bcd60e51b8152600401610b2b90613406565b610bf9601482611d7d565b60008281526002602052604081206115b59083612824565b9392505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6115ff600080516020613771833981519152336115bc565b80611622575061160d6114ca565b6001600160a01b0316336001600160a01b0316145b61163e5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601282611d7d565b6060600a8054610a51906133cb565b611670600080516020613771833981519152336115bc565b80611693575061167e6114ca565b6001600160a01b0316336001600160a01b0316145b6116af5760405162461bcd60e51b8152600401610b2b90613406565b600d80546001600160a01b0319166001600160a01b038316179055610bf9601682611d7d565b6000805160206137318339815191526116ee8133612590565b610f398383612830565b3360009081526005602090815260408083206001600160a01b03861684529091528120548281101561177a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b2b565b6117873385858403611e32565b5060019392505050565b6117a9600080516020613771833981519152336115bc565b806117cc57506117b76114ca565b6001600160a01b0316336001600160a01b0316145b6117e85760405162461bcd60e51b8152600401610b2b90613406565b6025805460ff1916911515919091179055565b6000610b8e338484611fdb565b611820600080516020613771833981519152336115bc565b80611843575061182e6114ca565b6001600160a01b0316336001600160a01b0316145b61185f5760405162461bcd60e51b8152600401610b2b90613406565b6118676127a9565b600d546040516000916001600160a01b03169047908381818185875af1925050503d80600081146118b4576040519150601f19603f3d011682016040523d82523d6000602084013e6118b9565b606091505b50509050806118da5760405162461bcd60e51b8152600401610b2b906134b2565b6118e2611f4e565b50565b6118fd600080516020613771833981519152336115bc565b80611920575061190b6114ca565b6001600160a01b0316336001600160a01b0316145b61193c5760405162461bcd60e51b8152600401610b2b90613406565b610bf960128261257b565b61195f600080516020613771833981519152336115bc565b80611982575061196d6114ca565b6001600160a01b0316336001600160a01b0316145b61199e5760405162461bcd60e51b8152600401610b2b90613406565b610bf9601082611d7d565b6119c1600080516020613771833981519152336115bc565b806119e457506119cf6114ca565b6001600160a01b0316336001600160a01b0316145b611a005760405162461bcd60e51b8152600401610b2b90613406565b610bf9601a8261257b565b611a23600080516020613771833981519152336115bc565b80611a465750611a316114ca565b6001600160a01b0316336001600160a01b0316145b611a625760405162461bcd60e51b8152600401610b2b90613406565b601c548211158015611a765750601c548111155b611ab15760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610b2b565b601d829055601e81905560408051838152602081018390527f6e68ff80c8a733d820beab4573027f8791c8d94bd982d6b253d92cefd8e4833d91015b60405180910390a15050565b6000818152600260205260408120610a3c906129bf565b611b1982610ea4565b611b238133612590565b610f398383612616565b611b45600080516020613771833981519152336115bc565b80611b685750611b536114ca565b6001600160a01b0316336001600160a01b0316145b611b845760405162461bcd60e51b8152600401610b2b90613406565b610bf960188261257b565b611ba7600080516020613771833981519152336115bc565b80611bca5750611bb56114ca565b6001600160a01b0316336001600160a01b0316145b611be65760405162461bcd60e51b8152600401610b2b90613406565b6000611bf06114ca565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611c3a576040519150601f19603f3d011682016040523d82523d6000602084013e611c3f565b606091505b50509050806118e25760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606401610b2b565b33611c8b6114ca565b6001600160a01b031614611cb15760405162461bcd60e51b8152600401610b2b9061347d565b6001600160a01b038116611d165760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b2b565b6118e281612759565b611d37600080516020613771833981519152336115bc565b80611d5a5750611d456114ca565b6001600160a01b0316336001600160a01b0316145b611d765760405162461bcd60e51b8152600401610b2b90613406565b610bf96018825b60006115b5836001600160a01b0384166129c9565b611d9c82826115bc565b610bf95760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60006001600160e01b03198216637965db0b60e01b1480610a3c57506301ffc9a760e01b6001600160e01b0319831614610a3c565b6001600160a01b038316611e945760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b2b565b6001600160a01b038216611ef55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b2b565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161123a565b60035460ff16611f975760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b2b565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051611fd1919061333c565b60405180910390a1565b6001600160a01b03821661203d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b2b565b612048838383612a13565b6001600160a01b038316600090815260046020526040902054818110156120c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b2b565b60006120cd601086612b39565b905060006120dc601086612b39565b905060006120eb601687612b39565b905060006120fa601689612b39565b602554909150869060ff16801561210e5750845b15612160576026543a11156121605760405162461bcd60e51b815260206004820152601860248201527723b0b990383934b1b29032bc31b2b2b239903634b6b4ba1760411b6044820152606401610b2b565b6001600160a01b03881661dead14156121825761217d8988612830565b612570565b82806121a657506001600160a01b0389166000908152602460205260409020544210155b6121ef5760405162461bcd60e51b815260206004820152601a602482015279115490cc8c0e88151c985b9cd858dd1a5bdb9cc8131bd8dad95960321b6044820152606401610b2b565b6001600160a01b0389166000908152600460205260408120888803905580851561246a578415801561221f575083155b156122be57600061271060225461223560065490565b61223f91906134da565b61224991906134f9565b905060215481101561225a57506021545b602154158061226b57506021548a11155b801561227f575080158061227f5750808a11155b6122bc5760405162461bcd60e51b815260206004820152600e60248201526d45524332303a20592044756d703f60901b6044820152606401610b2b565b505b600b5460ff161561246a57841580156122d5575083155b80156122e957506122e760188c612b39565b155b80156122f757506000601d54115b1561246a57600061230c8a601d546064612b4e565b30600090815260046020526040812080549293508392909190612330908490613465565b909155506123409050818b61351b565b601f549094501561235c5761235981601f546064612b4e565b92505b4761236f61236a858461351b565b612b7a565b600061237b824761351b565b905060006020541180156123995750600e546001600160a01b031615155b156123af576123ac816020546064612b4e565b93505b6123b88e612cd4565b83156123dc57600e54600f546123dc9186916001600160a01b039182169116612d1c565b60006123e8858361351b565b9050801561246557600d546040516000916001600160a01b03169083908381818185875af1925050503d806000811461243d576040519150601f19603f3d011682016040523d82523d6000602084013e612442565b606091505b50509050806124635760405162461bcd60e51b8152600401610b2b906134b2565b505b505050505b86156124f357600b5460ff16156124f35784158015612487575083155b801561249b575061249960188b612b39565b155b80156124a957506000601e54115b156124f3576124bc89601e546064612b4e565b306000908152600460205260408120805492945084929091906124e0908490613465565b909155506124f09050828a61351b565b92505b8115612503576125033083612830565b6001600160a01b038a166000908152600460205260408120805485929061252b908490613465565b92505081905550896001600160a01b03168b6001600160a01b03166000805160206137518339815191528560405161256591815260200190565b60405180910390a350505b505050505050505050565b60006115b5836001600160a01b038416612e64565b61259a82826115bc565b610bf9576125b2816001600160a01b03166014612f57565b6125bd836020612f57565b6040516020016125ce929190613532565b60408051601f198184030181529082905262461bcd60e51b8252610b2b916004016131f5565b6125fe8282611d92565b6000828152600260205260409020610f399082611d7d565b61262082826130f2565b6000828152600260205260409020610f39908261257b565b6001600160a01b03821661268e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b2b565b61269a60008383612a13565b80600660008282546126ac9190613465565b9250508190555080600760008282546126c59190613465565b90915550506001600160a01b038216600090815260046020526040812080548392906126f2908490613465565b90915550506040518181526001600160a01b038316906000906000805160206137518339815191529060200160405180910390a37f21f9c9a1a1f9a311a50f15fec5c1faa9e21fc9edf964f0fdecba5bd490484c5e338383604051611aed939291906135a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60035460ff16156127ef5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b2b565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611fc43390565b60006115b58383613159565b6001600160a01b0382166128905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b2b565b61289c82600083612a13565b6001600160a01b038216600090815260046020526040902054818110156129105760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b2b565b6001600160a01b038316600090815260046020526040812083830390556006805484929061293f90849061351b565b9250508190555081600860008282546129589190613465565b90915550506040518281526000906001600160a01b038516906000805160206137518339815191529060200160405180910390a37fa02fa7af120761e5cdeff8bc117c44fd425d0f51fd27155746f84421d87d18e6338484604051611329939291906135a1565b6000610a3c825490565b60006129d58383613183565b612a0b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a3c565b506000610a3c565b60035460ff161580612a385750612a38600080516020613791833981519152846115bc565b80612a565750612a56600080516020613791833981519152836115bc565b80612a675750612a67601684612b39565b80612a785750612a78601683612b39565b612ad75760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610b2b565b612ae2601484612b39565b158015612af75750612af5601483612b39565b155b610f395760405162461bcd60e51b8152602060048201526013602482015272139bc81cd95c8b081e5bdd4818d85b881b9bdd606a1b6044820152606401610b2b565b60006115b5836001600160a01b038416613183565b600061271082612b5e85876134da565b612b6891906134da565b612b7291906134f9565b949350505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612baf57612baf6135db565b6001600160a01b03928316602091820292909201810191909152602854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2c91906135f1565b81600181518110612c3f57612c3f6135db565b6001600160a01b039283166020918202929092010152602854612c659130911684611e32565b60285460405163791ac94760e01b81526001600160a01b039091169063791ac94790612c9e908590600090869030904290600401613652565b600060405180830381600087803b158015612cb857600080fd5b505af1158015612ccc573d6000803e3d6000fd5b505050505050565b612cdf601a82612b39565b158015612cee57506000602354115b156118e257602354612d009042613465565b6001600160a01b03821660009081526024602052604090205550565b6040805160028082526060820183526000926020830190803683375050602854604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015612d86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612daa91906135f1565b81600081518110612dbd57612dbd6135db565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110612df157612df16135db565b6001600160a01b03928316602091820292909201015260285460405163b6f9de9560e01b815291169063b6f9de95908690612e379060009086908890429060040161368e565b6000604051808303818588803b158015612e5057600080fd5b505af1158015612570573d6000803e3d6000fd5b60008181526001830160205260408120548015612f4d576000612e8860018361351b565b8554909150600090612e9c9060019061351b565b9050818114612f01576000866000018281548110612ebc57612ebc6135db565b9060005260206000200154905080876000018481548110612edf57612edf6135db565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612f1257612f126136c3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a3c565b6000915050610a3c565b60606000612f668360026134da565b612f71906002613465565b6001600160401b03811115612f8857612f886135c5565b6040519080825280601f01601f191660200182016040528015612fb2576020820181803683370190505b509050600360fc1b81600081518110612fcd57612fcd6135db565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ffc57612ffc6135db565b60200101906001600160f81b031916908160001a90535060006130208460026134da565b61302b906001613465565b90505b60018111156130a3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061305f5761305f6135db565b1a60f81b828281518110613075576130756135db565b60200101906001600160f81b031916908160001a90535060049490941c9361309c816136d9565b905061302e565b5083156115b55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b2b565b6130fc82826115bc565b15610bf95760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000826000018281548110613170576131706135db565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6000602082840312156131ad57600080fd5b81356001600160e01b0319811681146115b557600080fd5b60005b838110156131e05781810151838201526020016131c8565b838111156131ef576000848401525b50505050565b60208152600082518060208401526132148160408501602087016131c5565b601f01601f19169190910160400192915050565b60006020828403121561323a57600080fd5b5035919050565b6001600160a01b03811681146118e257600080fd5b6000806040838503121561326957600080fd5b823561327481613241565b946020939093013593505050565b60006020828403121561329457600080fd5b81356115b581613241565b6000806000606084860312156132b457600080fd5b83356132bf81613241565b925060208401356132cf81613241565b929592945050506040919091013590565b600080604083850312156132f357600080fd5b82359150602083013561330581613241565b809150509250929050565b60008060006060848603121561332557600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0391909116815260200190565b6000806040838503121561336357600080fd5b50508035926020909101359150565b80151581146118e257600080fd5b60006020828403121561339257600080fd5b81356115b581613372565b600080604083850312156133b057600080fd5b82356133bb81613241565b9150602083013561330581613241565b600181811c908216806133df57607f821691505b6020821081141561340057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527143616c6c6572206e6f7420696e205465616d60701b604082015260600190565b60006020828403121561344457600080fd5b81516115b581613372565b634e487b7160e01b600052601160045260246000fd5b600082198211156134785761347861344f565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d11985a5b1959081d1bc81cd95b9960921b604082015260600190565b60008160001904831182151516156134f4576134f461344f565b500290565b60008261351657634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561352d5761352d61344f565b500390565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516135648160178501602088016131c5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516135958160288401602088016131c5565b01602801949350505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561360357600080fd5b81516115b581613241565b600081518084526020808501945080840160005b838110156136475781516001600160a01b031687529582019590820190600101613622565b509495945050505050565b85815284602082015260a06040820152600061367160a083018661360e565b6001600160a01b0394909416606083015250608001529392505050565b8481526080602082015260006136a7608083018661360e565b6001600160a01b03949094166040830152506060015292915050565b634e487b7160e01b600052603160045260246000fd5b6000816136e8576136e861344f565b50600019019056fe45524332303a206d75737420686176652070617573657220726f6c6520746f2065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5146a08baf902532d0ee2f909971144f12ca32651cd70cbee1117cddfb3b3b331c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa3307a2646970667358221220d2cfd3218875b75a9dfd1b9cdcda91c9c3c287d2ab3c19b286959881b47b63a964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008954afa98594b838bda56fe4c12a09d7739d179b000000000000000000000000000000000000000000000000000000000000000a4d657461506f636b65740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056d50434b54000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): MetaPocket
Arg [1] : symbol_ (string): mPCKT
Arg [2] : _maxSupply (uint256): 1000000000000000000000000000
Arg [3] : _vault (address): 0x0000000000000000000000000000000000000000
Arg [4] : _router (address): 0x8954AfA98594b838bda56FE4C12a09D7739D179b
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000008954afa98594b838bda56fe4c12a09d7739d179b
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 4d657461506f636b657400000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 6d50434b54000000000000000000000000000000000000000000000000000000
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.