Polygon Sponsored slots available. Book your slot here!
Overview
POL Balance
0 POL
POL Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 43 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 36441355 | 782 days ago | IN | 0 POL | 0.00139653 | ||||
Transfer | 36436273 | 782 days ago | IN | 0 POL | 0.00166912 | ||||
Transfer | 36435917 | 782 days ago | IN | 0 POL | 0.00185795 | ||||
Approve | 36435501 | 782 days ago | IN | 0 POL | 0.00236121 | ||||
Approve | 36433880 | 782 days ago | IN | 0 POL | 0.00146752 | ||||
Approve | 36426235 | 782 days ago | IN | 0 POL | 0.00139653 | ||||
Add System Contr... | 36424759 | 782 days ago | IN | 0 POL | 0.00426123 | ||||
Approve | 36424126 | 782 days ago | IN | 0 POL | 0.00141794 | ||||
Pause | 36423659 | 782 days ago | IN | 0 POL | 0.0014487 | ||||
Grant Role | 36423569 | 782 days ago | IN | 0 POL | 0.00557711 | ||||
Add System Contr... | 36423373 | 782 days ago | IN | 0 POL | 0.00161359 | ||||
Approve | 36413613 | 782 days ago | IN | 0 POL | 0.00139653 | ||||
Approve | 36409246 | 782 days ago | IN | 0 POL | 0.00141358 | ||||
Approve | 36397188 | 783 days ago | IN | 0 POL | 0.00094353 | ||||
Approve | 36397154 | 783 days ago | IN | 0 POL | 0.00160437 | ||||
Approve | 36382526 | 783 days ago | IN | 0 POL | 0.00174885 | ||||
Approve | 36382304 | 783 days ago | IN | 0 POL | 0.00375325 | ||||
Approve | 36359109 | 784 days ago | IN | 0 POL | 0.00139653 | ||||
Approve | 36358244 | 784 days ago | IN | 0 POL | 0.00139653 | ||||
Approve | 36357875 | 784 days ago | IN | 0 POL | 0.00139653 | ||||
Transfer | 36356979 | 784 days ago | IN | 0 POL | 0.00212364 | ||||
Add System Contr... | 36355040 | 784 days ago | IN | 0 POL | 0.00427311 | ||||
Add System Contr... | 36354532 | 784 days ago | IN | 0 POL | 0.00427311 | ||||
Set Tvl Address | 36354484 | 784 days ago | IN | 0 POL | 0.00183342 | ||||
Add System Contr... | 36354481 | 784 days ago | IN | 0 POL | 0.00427311 |
Loading...
Loading
Contract Name:
SquadToken
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 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/utils/SafeERC20.sol"; import "./libs/PancakeLibs.sol"; contract SquadToken is Ownable, IERC20, IERC20Metadata, AccessControlEnumerable, Pausable { using Address for address; using EnumerableSet for EnumerableSet.AddressSet; using SafeERC20 for IERC20; // standard ERC20 vars mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint256 private _totalBurned; string private _name; string private _symbol; // role constants 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; // Dev address address marketingWallet; // Squads contract address address tvlAddress; bool private _isSwapping; // USDC/stable coin address IERC20 stableToken; EnumerableSet.AddressSet private _amms; EnumerableSet.AddressSet private _systemContracts; EnumerableSet.AddressSet private _excludeTaxes; EnumerableSet.AddressSet private _excludeLocks; // TAX SETTINGS // Main Ttaxes // hard coded max tax limit uint256 constant _maxTax = 25; // % taxed on sells uint256 sellTax = 7; // % taxed and burned on buys uint256 buyTax = 7; // Sub-Taxes // % of post taxed amount that is sent to the squads contract uint256 tvlTax = 43; // % of post taxed amount that is sent to marketing wallet uint256 marketingTax = 29; // % of post taxed amount that used for LP uint256 lpTax = 14; // % of post taxed amount that is burned uint256 burnTax = 14; /** * 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 sold in one TX, default 1% uint256 constant maxSellPercent = 100; // min tokens to collect before swapping for fees uint256 private swapThresh; // max tokens a wallet can hold, defaults to 1% initial supply uint256 maxWallet; // seconds to lock transactions to aything but system contracts after a sell uint256 txLockTime; mapping (address => uint256) private txLock; // PCS router address public immutable lpAddress; IPancakeRouter02 private _routerAddress; address private immutable Router; constructor( string memory name_, string memory symbol_, uint256 _maxSupply, address _marketingWallet, IERC20 _stableToken, address _tvlAddress, address _router ) { require(_router != address(0), "ERC20: router not set"); require(_marketingWallet != address(0), "ERC20: marketing address not set"); _name = name_; _symbol = symbol_; Router = _router; marketingWallet = _marketingWallet; stableToken = _stableToken; tvlAddress = _tvlAddress; maxSupply = _maxSupply; _balances[msg.sender] = _maxSupply; _totalSupply = _maxSupply; maxWallet = _calculateTax(_maxSupply,1,100); swapThresh = _totalSupply / 100000; _routerAddress = IPancakeRouter02(Router); lpAddress = IPancakeFactory(_routerAddress.factory()).createPair(address(_stableToken), address(this)); _amms.add(lpAddress); require( _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(_marketingWallet)), "error adding to lists"); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(PAUSER_ROLE, msg.sender); _grantRole(CAN_TRANSFER_ROLE, msg.sender); _grantRole(CAN_TRANSFER_ROLE, address(_marketingWallet)); } // modifier for functions only the team can call modifier onlyTeam() { require(hasRole(TEAM_ROLE, msg.sender) || msg.sender == owner(), "Caller not in Team"); _; } /** * @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(uint256 _amount) external virtual { _burn(msg.sender, _amount); } /** * @dev pause the token for transfers other than addresses with the CanTransfer Role */ function pause() external { require(hasRole(PAUSER_ROLE, msg.sender), "ERC20: must have pauser role to pause"); _pause(); } /** * @dev unpause the token for anyone to transfer */ function unpause() external { 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) || sender == address(_routerAddress); uint256 postTaxAmount = amount; require(isToSystem || isSell || ( _balances[recipient] + amount) <= maxWallet, 'Max Wallet' ); require(tradingActive || isToSystem || isFromSystem || (!isSell && !isBuy), 'Trading not started' ); if(recipient == burnAddress){ _burn(sender,amount); } else { require(isFromSystem || isToSystem || txLock[sender] <= block.timestamp, "ERC20: Transactions Locked"); unchecked { _balances[sender] -= amount; } uint256 toBurn; if(tradingActive){ 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?'); } // see if we need to tax if(!_isSwapping && !isToSystem && !isFromSystem && !_excludeTaxes.contains(sender) && sellTax > 0){ // lock the sells for the cool down peirod _setTxLock(sender); (postTaxAmount, toBurn) = _takeTax(amount, sellTax, true); } } if(isBuy){ // see if we need to tax if(!_isSwapping && !isToSystem && !isFromSystem && !_excludeTaxes.contains(recipient) && buyTax > 0){ (postTaxAmount, toBurn) = _takeTax(amount, buyTax, false); } } } // burn if(toBurn > 0){ _burn(address(this),toBurn); } _balances[recipient] += postTaxAmount; emit Transfer(sender, recipient, postTaxAmount); } } function _takeTax(uint256 _amount, uint256 _tax, bool _doSwap) private returns(uint256, uint256){ // calc the taxes uint256 taxAmount = _calculateTax(_amount,_tax,100); // send the tax to the contract _balances[address(this)] += taxAmount; uint256 _postTax = _amount - taxAmount; uint256 _toBurn; uint256 _toLp; uint256 _toTvl; uint256 _toMarketing; if(_doSwap && _balances[address(this)] >= swapThresh){ uint256 remain = _balances[address(this)]; // see if we have a burn tax before we swap if(burnTax > 0){ _toBurn = _calculateTax(_balances[address(this)], burnTax, 100); remain -= _toBurn; } // pull out the LP share to swap if(lpTax > 0){ _toLp = _calculateTax(_balances[address(this)], lpTax, 100); remain -= _toLp; } // pull out the LP share to swap // get TVL share if(tvlTax > 0){ _toTvl = _calculateTax(_balances[address(this)], tvlTax, 100); remain -= _toTvl; } // get Marketing share if(marketingTax > 0){ _toMarketing = remain; } // do the swaps if(_toTvl > 0){ // send to TVL _swapTokenForStable(_toTvl, address(tvlAddress)); } if(_toMarketing > 0){ // send to Marketing _swapTokenForStable(_toMarketing, address(marketingWallet)); } if(_toLp > 0){ _transfer(address(this),address(lpAddress),_toLp); IDEXPair(lpAddress).sync(); } } return (_postTax, _toBurn); } 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 token for token function _swapTokenForStable(uint256 amount, address to) public { _isSwapping = true; _approve(address(this), address(_routerAddress), amount); address[] memory path = new address[](2); path[0] = address(this); path[1] = address(stableToken); try _routerAddress.swapExactTokensForTokensSupportingFeeOnTransferTokens( amount, 0, path, address(to), block.timestamp ){} catch{} _isSwapping = false; } /** * Set the various taxes. * No tax can ever be higher than the global max **/ event SetTaxes(uint256 sellTax, uint256 _buyTax); function setTaxes( uint256 _sellTax, uint256 _buyTax ) external onlyTeam { require( _sellTax <= _maxTax && _buyTax <= _maxTax, 'Tax too high' ); sellTax = _sellTax; buyTax = _buyTax; emit SetTaxes(_sellTax, _buyTax); } event SetSubTaxes(uint256 tvlTax, uint256 lpTax, uint256 marketingTax, uint256 burnTax); function setSubTaxes( uint256 _tvlTax, uint256 _lpTax, uint256 _marketingTax, uint256 _burnTax ) external onlyTeam { require(_tvlTax + _lpTax + _marketingTax + _burnTax <= 100,'tax too high'); tvlTax = _tvlTax; lpTax = _lpTax; marketingTax = _marketingTax; burnTax = _burnTax; emit SetSubTaxes(_tvlTax, _lpTax, _marketingTax, _burnTax ); } // update the sell protection settings event SetSellProtection(uint256 maxSell, uint256 maxSellPercent, uint256 txLock); function setSellProtection(uint256 _maxSell, uint256 _maxSellPercent, uint256 _txLockTime) external onlyTeam { // must be higher than 0.1% require(_maxSellPercent > 10, 'Sell Percent too low'); // must be lower or equal to 10% require(_maxSellPercent <= 1000, 'Sell Percent too high'); // lock time must a day or less require(_txLockTime <= 86400, 'lock time too long'); maxSell = _maxSell; txLockTime = _txLockTime; emit SetSellProtection(_maxSell, _maxSellPercent, _txLockTime); } // set max wallet to a given percent event SetMaxWallet(uint256 maxWalletPercent, uint256 maxWallet); function setMaxWallet(uint256 _maxWalletPercent) external onlyTeam { require(_maxWalletPercent <= 15, 'too high'); require(_maxWalletPercent >= 1, 'too low'); maxWallet = _calculateTax(maxSupply,_maxWalletPercent,100); emit SetMaxWallet(_maxWalletPercent, maxWallet); } event SetSwapThresh(uint256 swapThresh); function setSwapThresh(uint256 _swapThresh) external onlyTeam { swapThresh = _swapThresh; emit SetSwapThresh(_swapThresh); } // one time use, will enable trading after LP is setup event SetTradingActive(); function setTradingActive() external onlyTeam { tradingActive = true; if(paused()){ _unpause(); } emit SetTradingActive(); } event SetTvlAddress(address oldAddress, address newAddress); function setTvlAddress(address _tvlAddress) external onlyTeam { require(_tvlAddress != address(0), "Invalid Address"); emit SetTvlAddress(tvlAddress, _tvlAddress); tvlAddress = _tvlAddress; } // manage the Enumerable Sets event AddAmmAddress(address amm); function addAmmAddress(address _amm) external onlyTeam { require(_amm != address(0), "Invalid Address"); require(_amms.add(_amm), 'list error'); emit AddAmmAddress(_amm); } event RemoveAmmAddress(address amm); function removeAmmAddress(address _amm) external onlyTeam { require(_amms.remove(_amm), 'list error'); emit RemoveAmmAddress(_amm); } event AddSystemContract(address addr); function addSystemContractAddress(address _addr) external onlyTeam { require(_addr != address(0), "Invalid Address"); require(_systemContracts.add(_addr), 'list error'); emit AddSystemContract(_addr); } event RemoveSystemContract(address addr); function removeSystemContractAddress(address _addr) external onlyTeam { require(_systemContracts.remove(_addr), 'list error'); emit RemoveSystemContract(_addr); } event AddExcludeTaxes(address addr); function addExcludeTaxesAddress(address _addr) external onlyTeam { require(_addr != address(0), "Invalid Address"); require(_excludeTaxes.add(_addr), 'list error'); emit AddExcludeTaxes(_addr); } event RemoveExcludeTaxes(address addr); function removeExcludeTaxesAddress(address _addr) external onlyTeam { require(_excludeTaxes.remove(_addr), 'list error'); emit RemoveExcludeTaxes(_addr); } event AddExcludedLocks(address addr); function addExcludedLocksAddress(address _addr) external onlyTeam { require(_addr != address(0), "Invalid Address"); require(_excludeLocks.add(_addr), 'list error'); emit AddExcludedLocks(_addr); } event RemoveExcludedLocks(address addr); function removeExcludedLocksAddress(address _addr) external onlyTeam { require(_excludeLocks.remove(_addr), 'list error'); emit RemoveExcludedLocks(_addr); } event SetMarketingAddress(address oldAddress, address newAddress); function setMarketingAddress(address _marketingWallet) external onlyTeam { require(_marketingWallet != address(0), "ERC20: marketingWallet address not set"); _systemContracts.remove(address(marketingWallet)); emit SetMarketingAddress(marketingWallet, _marketingWallet); marketingWallet = _marketingWallet; _systemContracts.add(address(_marketingWallet)); } /** * @dev Returns the name of the token. */ function name() external view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() external view virtual override returns (string memory) { return _symbol; } function decimals() external view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() external view virtual override returns (uint256) { return _totalSupply; } function totalBurned() external 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) external 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) external virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) external virtual override returns (bool) { uint256 currentAllowance = _allowances[sender][msg.sender]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, msg.sender, currentAllowance - amount); } _transfer(sender, recipient, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external 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 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"); } // move any tokens sent to the contract function teamTransferToken(address tokenAddress, address recipient, uint256 amount) external onlyTeam { require(tokenAddress != address(0), "Invalid Address"); IERC20 _token = IERC20(tokenAddress); _token.safeTransfer(recipient, amount); } // pull all the eth/bnb/matic out of the contract, needed for migrations/emergencies and transfers to other chains function withdrawETH() external 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 (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 // 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 (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/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// 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 (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 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; } interface IDEXPair {function sync() external;}
{ "remappings": [], "optimizer": { "enabled": true, "runs": 11 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_marketingWallet","type":"address"},{"internalType":"contract IERC20","name":"_stableToken","type":"address"},{"internalType":"address","name":"_tvlAddress","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"amm","type":"address"}],"name":"AddAmmAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"AddExcludeTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"AddExcludedLocks","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"AddSystemContract","type":"event"},{"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":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":false,"internalType":"address","name":"amm","type":"address"}],"name":"RemoveAmmAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"RemoveExcludeTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"RemoveExcludedLocks","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"RemoveSystemContract","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":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetMarketingAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxWalletPercent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxWallet","type":"uint256"}],"name":"SetMaxWallet","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":"tvlTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marketingTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnTax","type":"uint256"}],"name":"SetSubTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapThresh","type":"uint256"}],"name":"SetSwapThresh","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"sellTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_buyTax","type":"uint256"}],"name":"SetTaxes","type":"event"},{"anonymous":false,"inputs":[],"name":"SetTradingActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetTvlAddress","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":"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":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"_swapTokenForStable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_amm","type":"address"}],"name":"addAmmAddress","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":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"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":[],"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":"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":[],"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":"address","name":"_marketingWallet","type":"address"}],"name":"setMarketingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletPercent","type":"uint256"}],"name":"setMaxWallet","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":"_tvlTax","type":"uint256"},{"internalType":"uint256","name":"_lpTax","type":"uint256"},{"internalType":"uint256","name":"_marketingTax","type":"uint256"},{"internalType":"uint256","name":"_burnTax","type":"uint256"}],"name":"setSubTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapThresh","type":"uint256"}],"name":"setSwapThresh","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"uint256","name":"_buyTax","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTradingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tvlAddress","type":"address"}],"name":"setTvlAddress","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":"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
60c060405260076017556007601855602b601955601d601a55600e601b55600e601c553480156200002f57600080fd5b50604051620042b0380380620042b083398101604081905262000052916200085d565b6200005d3362000511565b6003805460ff191690556001600160a01b038116620000c35760405162461bcd60e51b815260206004820152601560248201527f45524332303a20726f75746572206e6f7420736574000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0384166200011b5760405162461bcd60e51b815260206004820181905260248201527f45524332303a206d61726b6574696e672061646472657373206e6f74207365746044820152606401620000ba565b8651620001309060089060208a0190620006d1565b50855162000146906009906020890190620006d1565b506001600160a01b0381811660a052600c80546001600160a01b031990811687841617909155600e80548216868416179055600d8054909116918416919091179055600b8590553360009081526004602052604090208590556006859055620001b3856001606462000561565b601f55600654620001c990620186a09062000928565b601e5560a051602280546001600160a01b0319166001600160a01b0390921691821790556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000229573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024f91906200094b565b6040516364e329cb60e11b81526001600160a01b038581166004830152306024830152919091169063c9c65396906044016020604051808303816000875af1158015620002a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c691906200094b565b6001600160a01b03166080819052620002ee90600f9062000593602090811b62001f0d17901c565b506200030b600060136200059360201b62001f0d1790919060201c565b80156200032e57506200032e3360136200059360201b62001f0d1790919060201c565b8015620003515750620003513060136200059360201b62001f0d1790919060201c565b801562000375575062000375600060156200059360201b62001f0d1790919060201c565b8015620003985750620003983360156200059360201b62001f0d1790919060201c565b8015620003bb5750620003bb3060156200059360201b62001f0d1790919060201c565b8015620003df5750620003df600060116200059360201b62001f0d1790919060201c565b8015620004025750620004023060116200059360201b62001f0d1790919060201c565b8015620004255750620004258460116200059360201b62001f0d1790919060201c565b620004735760405162461bcd60e51b815260206004820152601560248201527f6572726f7220616464696e6720746f206c6973747300000000000000000000006044820152606401620000ba565b62000480600033620005b3565b620004ac7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620005b3565b620004d87f1c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa330733620005b3565b620005047f1c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa330785620005b3565b50505050505050620009dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006127108262000573858762000972565b6200057f919062000972565b6200058b919062000928565b949350505050565b6000620005aa836001600160a01b038416620005f6565b90505b92915050565b620005ca82826200064860201b62001f221760201c565b6000828152600260209081526040909120620005f191839062001f0d62000593821b17901c565b505050565b60008181526001830160205260408120546200063f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620005ad565b506000620005ad565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620006cd5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b828054620006df90620009a0565b90600052602060002090601f0160209004810192826200070357600085556200074e565b82601f106200071e57805160ff19168380011785556200074e565b828001600101855582156200074e579182015b828111156200074e57825182559160200191906001019062000731565b506200075c92915062000760565b5090565b5b808211156200075c576000815560010162000761565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200079f57600080fd5b81516001600160401b0380821115620007bc57620007bc62000777565b604051601f8301601f19908116603f01168101908282118183101715620007e757620007e762000777565b816040528381526020925086838588010111156200080457600080fd5b600091505b8382101562000828578582018301518183018401529082019062000809565b838211156200083a5760008385830101525b9695505050505050565b6001600160a01b03811681146200085a57600080fd5b50565b600080600080600080600060e0888a0312156200087957600080fd5b87516001600160401b03808211156200089157600080fd5b6200089f8b838c016200078d565b985060208a0151915080821115620008b657600080fd5b50620008c58a828b016200078d565b965050604088015194506060880151620008df8162000844565b6080890151909450620008f28162000844565b60a0890151909350620009058162000844565b60c0890151909250620009188162000844565b8091505092959891949750929550565b6000826200094657634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156200095e57600080fd5b81516200096b8162000844565b9392505050565b60008160001904831182151516156200099b57634e487b7160e01b600052601160045260246000fd5b500290565b600181811c90821680620009b557607f821691505b60208210811415620009d757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516138a262000a0e600039600050506000818161068101528181612db50152612ddc01526138a26000f3fe60806040526004361061025e5760003560e01c806301ffc9a71461026a57806306fdde031461029f578063095ea7b3146102c15780630acb1a30146102e1578063135548541461030357806315bbd7d41461031857806318160ddd1461033857806323b872dd14610357578063248a9ca3146103775780632b7d9fb3146103975780632f2ff15d146103b7578063313ce567146103d757806336568abe146103f357806339509351146104135780633f4ba83a1461043357806342966c681461044857806349d5e604146104685780635bcd94411461048a5780635c975abb146104aa5780635d0044ca146104c25780636dff09a4146104e257806370a082311461050257806370d5ae0514610538578063715018a61461055b5780637411e0f9146105705780638456cb5914610590578063890d1814146105a55780638da5cb5b146105c55780638e3f1988146105da5780639010d07c146105fa578063906e9dd01461061a57806391d148541461063a57806395d89b411461065a5780639b4dc8cc1461066f578063a0d2baec146106a3578063a217fddf146106c3578063a457c2d7146106d8578063a9059cbb146106f8578063be4d0da114610718578063c5486f1514610738578063c647b20e14610758578063ca15c87314610778578063d547741f14610798578063d5abeb01146107b8578063d89135cd146107ce578063d9939797146107e3578063dc25704f14610803578063dd62ed3e14610823578063e086e5ec14610869578063e63ab1e91461087e578063ee6411c3146108a0578063f2fde38b146108c2578063f676949a146108e257600080fd5b3661026557005b600080fd5b34801561027657600080fd5b5061028a6102853660046132a3565b610902565b60405190151581526020015b60405180910390f35b3480156102ab57600080fd5b506102b461092d565b60405161029691906132f9565b3480156102cd57600080fd5b5061028a6102dc366004613348565b6109bf565b3480156102ed57600080fd5b506103016102fc366004613372565b6109d5565b005b34801561030f57600080fd5b50610301610abc565b34801561032457600080fd5b5061030161033336600461338d565b610b64565b34801561034457600080fd5b506006545b604051908152602001610296565b34801561036357600080fd5b5061028a61037236600461338d565b610bfc565b34801561038357600080fd5b506103496103923660046133c9565b610ca6565b3480156103a357600080fd5b506103016103b23660046133c9565b610cbc565b3480156103c357600080fd5b506103016103d23660046133e2565b610d48565b3480156103e357600080fd5b5060405160128152602001610296565b3480156103ff57600080fd5b5061030161040e3660046133e2565b610d6a565b34801561041f57600080fd5b5061028a61042e366004613348565b610de8565b34801561043f57600080fd5b50610301610e24565b34801561045457600080fd5b506103016104633660046133c9565b610e90565b34801561047457600080fd5b5061034960008051602061382d83398151915281565b34801561049657600080fd5b506103016104a536600461340e565b610e9d565b3480156104b657600080fd5b5060035460ff1661028a565b3480156104ce57600080fd5b506103016104dd3660046133c9565b61101c565b3480156104ee57600080fd5b506103016104fd366004613372565b611134565b34801561050e57600080fd5b5061034961051d366004613372565b6001600160a01b031660009081526004602052604090205490565b34801561054457600080fd5b5061054e61dead81565b604051610296919061343a565b34801561056757600080fd5b5061030161121a565b34801561057c57600080fd5b5061030161058b366004613372565b611253565b34801561059c57600080fd5b50610301611326565b3480156105b157600080fd5b506103016105c0366004613372565b61138e565b3480156105d157600080fd5b5061054e61143b565b3480156105e657600080fd5b506103016105f5366004613372565b61144a565b34801561060657600080fd5b5061054e61061536600461344e565b6114f7565b34801561062657600080fd5b50610301610635366004613372565b61150f565b34801561064657600080fd5b5061028a6106553660046133e2565b611651565b34801561066657600080fd5b506102b461167c565b34801561067b57600080fd5b5061054e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106af57600080fd5b506103016106be366004613470565b61168b565b3480156106cf57600080fd5b50610349600081565b3480156106e457600080fd5b5061028a6106f3366004613348565b6117a3565b34801561070457600080fd5b5061028a610713366004613348565b61183c565b34801561072457600080fd5b50610301610733366004613372565b611849565b34801561074457600080fd5b50610301610753366004613372565b61191c565b34801561076457600080fd5b5061030161077336600461344e565b6119c9565b34801561078457600080fd5b506103496107933660046133c9565b611ab4565b3480156107a457600080fd5b506103016107b33660046133e2565b611acb565b3480156107c457600080fd5b50610349600b5481565b3480156107da57600080fd5b50600754610349565b3480156107ef57600080fd5b506103016107fe366004613372565b611ae8565b34801561080f57600080fd5b5061030161081e3660046133e2565b611b95565b34801561082f57600080fd5b5061034961083e3660046134a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561087557600080fd5b50610301611caa565b34801561088a57600080fd5b506103496000805160206137ed83398151915281565b3480156108ac57600080fd5b5061034960008051602061384d83398151915281565b3480156108ce57600080fd5b506103016108dd366004613372565b611d9d565b3480156108ee57600080fd5b506103016108fd366004613372565b611e3a565b60006001600160e01b03198216635a05180f60e01b1480610927575061092782611f8d565b92915050565b60606008805461093c906134cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610968906134cc565b80156109b55780601f1061098a576101008083540402835291602001916109b5565b820191906000526020600020905b81548152906001019060200180831161099857829003601f168201915b5050505050905090565b60006109cc338484611fc2565b50600192915050565b6109ed60008051602061382d83398151915233611651565b80610a1057506109fb61143b565b6001600160a01b0316336001600160a01b0316145b610a355760405162461bcd60e51b8152600401610a2c90613507565b60405180910390fd5b6001600160a01b038116610a5b5760405162461bcd60e51b8152600401610a2c90613533565b610a66601582611f0d565b610a825760405162461bcd60e51b8152600401610a2c9061355c565b7fd731c194f3f3886e0a99a8d2b60cc784bf4cf866dc3302024444145a8fdfb55e81604051610ab1919061343a565b60405180910390a150565b610ad460008051602061382d83398151915233611651565b80610af75750610ae261143b565b6001600160a01b0316336001600160a01b0316145b610b135760405162461bcd60e51b8152600401610a2c90613507565b600a805460ff19166001179055610b2c60035460ff1690565b15610b3957610b396120e6565b6040517f60b73267bb6bb049c99fda5b778a6b505f6149ace766e509237964afab62d00690600090a1565b610b7c60008051602061382d83398151915233611651565b80610b9f5750610b8a61143b565b6001600160a01b0316336001600160a01b0316145b610bbb5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b038316610be15760405162461bcd60e51b8152600401610a2c90613533565b82610bf66001600160a01b0382168484612173565b50505050565b6001600160a01b038316600090815260056020908152604080832033845290915281205482811015610c815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610a2c565b610c8e8533858403611fc2565b610c998585856121c5565b60019150505b9392505050565b6000908152600160208190526040909120015490565b610cd460008051602061382d83398151915233611651565b80610cf75750610ce261143b565b6001600160a01b0316336001600160a01b0316145b610d135760405162461bcd60e51b8152600401610a2c90613507565b601e8190556040518181527fc2c0a514d86de06d9f6e9fabea696697e14be793d578200e64212e81a353160590602001610ab1565b610d5182610ca6565b610d5b8133612696565b610d6583836126fa565b505050565b6001600160a01b0381163314610dda5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2c565b610de4828261271c565b5050565b3360008181526005602090815260408083206001600160a01b038716845290915281205490916109cc918590610e1f908690613596565b611fc2565b610e3c6000805160206137ed83398151915233611651565b610e865760405162461bcd60e51b815260206004820152602760248201526000805160206137cd833981519152604482015266756e706175736560c81b6064820152608401610a2c565b610e8e6120e6565b565b610e9a338261273e565b50565b610eb560008051602061382d83398151915233611651565b80610ed85750610ec361143b565b6001600160a01b0316336001600160a01b0316145b610ef45760405162461bcd60e51b8152600401610a2c90613507565b600a8211610f3b5760405162461bcd60e51b815260206004820152601460248201527353656c6c2050657263656e7420746f6f206c6f7760601b6044820152606401610a2c565b6103e8821115610f855760405162461bcd60e51b81526020600482015260156024820152740a6cad8d840a0cae4c6cadce840e8dede40d0d2ced605b1b6044820152606401610a2c565b62015180811115610fcd5760405162461bcd60e51b81526020600482015260126024820152716c6f636b2074696d6520746f6f206c6f6e6760701b6044820152606401610a2c565b601d83905560208181556040805185815291820184905281018290527fc1a96eb7ea0ae72ef0e921b27cd1e23aaa37323375b5c6aa5e0d9f0f6a892679906060015b60405180910390a1505050565b61103460008051602061382d83398151915233611651565b80611057575061104261143b565b6001600160a01b0316336001600160a01b0316145b6110735760405162461bcd60e51b8152600401610a2c90613507565b600f8111156110af5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610a2c565b60018110156110ea5760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a2c565b6110f8600b548260646128e0565b601f8190556040805183815260208101929092527fceba48249b9d547af461cb58ff47a80584b3eb92ca0641f9bf766e30106585c69101610ab1565b61114c60008051602061382d83398151915233611651565b8061116f575061115a61143b565b6001600160a01b0316336001600160a01b0316145b61118b5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166111b15760405162461bcd60e51b8152600401610a2c90613533565b600d546040517f5207fd21e4593d7d01f2649ca03a95fa8ab6c5515518d336ca1d92a24a0f1bc8916111f0916001600160a01b039091169084906135ae565b60405180910390a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3361122361143b565b6001600160a01b0316146112495760405162461bcd60e51b8152600401610a2c906135c8565b610e8e600061290c565b61126b60008051602061382d83398151915233611651565b8061128e575061127961143b565b6001600160a01b0316336001600160a01b0316145b6112aa5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166112d05760405162461bcd60e51b8152600401610a2c90613533565b6112db601182611f0d565b6112f75760405162461bcd60e51b8152600401610a2c9061355c565b7f2faf0e80a61c24a3f7a4011bcf04f73910fa240a04cca7c3e077339e99916bcd81604051610ab1919061343a565b61133e6000805160206137ed83398151915233611651565b6113865760405162461bcd60e51b815260206004820152602560248201526000805160206137cd833981519152604482015264706175736560d81b6064820152608401610a2c565b610e8e61295c565b6113a660008051602061382d83398151915233611651565b806113c957506113b461143b565b6001600160a01b0316336001600160a01b0316145b6113e55760405162461bcd60e51b8152600401610a2c90613507565b6113f06011826129d7565b61140c5760405162461bcd60e51b8152600401610a2c9061355c565b7f3359107a59f9a89f658936b149d223895f00902bb4faec9f786cc5be14d623ce81604051610ab1919061343a565b6000546001600160a01b031690565b61146260008051602061382d83398151915233611651565b80611485575061147061143b565b6001600160a01b0316336001600160a01b0316145b6114a15760405162461bcd60e51b8152600401610a2c90613507565b6114ac600f826129d7565b6114c85760405162461bcd60e51b8152600401610a2c9061355c565b7f1892f08f44af71da3b66084e669d040126d95db5203a2326672ae05cb27c3dd881604051610ab1919061343a565b6000828152600260205260408120610c9f90836129ec565b61152760008051602061382d83398151915233611651565b8061154a575061153561143b565b6001600160a01b0316336001600160a01b0316145b6115665760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166115cb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a206d61726b6574696e6757616c6c65742061646472657373206e6044820152651bdd081cd95d60d21b6064820152608401610a2c565b600c546115e3906011906001600160a01b03166129d7565b50600c546040517fdc6927fe2f511bd6fa2cc62912f3046832afc8894311dec2f167afdefba06c9591611623916001600160a01b039091169084906135ae565b60405180910390a1600c80546001600160a01b0319166001600160a01b038316179055610de4601182611f0d565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606009805461093c906134cc565b6116a360008051602061382d83398151915233611651565b806116c657506116b161143b565b6001600160a01b0316336001600160a01b0316145b6116e25760405162461bcd60e51b8152600401610a2c90613507565b606481836116f08688613596565b6116fa9190613596565b6117049190613596565b11156117415760405162461bcd60e51b815260206004820152600c60248201526b0e8c2f040e8dede40d0d2ced60a31b6044820152606401610a2c565b6019849055601b839055601a829055601c8190556040805185815260208101859052908101839052606081018290527fdfdea664b28e3fb7747a9cb0c5ada096ad110ab20a2f1282444c79a966525a599060800160405180910390a150505050565b3360009081526005602090815260408083206001600160a01b0386168452909152812054828110156118255760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a2c565b6118323385858403611fc2565b5060019392505050565b60006109cc3384846121c5565b61186160008051602061382d83398151915233611651565b80611884575061186f61143b565b6001600160a01b0316336001600160a01b0316145b6118a05760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166118c65760405162461bcd60e51b8152600401610a2c90613533565b6118d1600f82611f0d565b6118ed5760405162461bcd60e51b8152600401610a2c9061355c565b7febd5cfa0af29d448e0b79bd91f7d209608495ebfdb6afadf079df7caf31f184481604051610ab1919061343a565b61193460008051602061382d83398151915233611651565b80611957575061194261143b565b6001600160a01b0316336001600160a01b0316145b6119735760405162461bcd60e51b8152600401610a2c90613507565b61197e6015826129d7565b61199a5760405162461bcd60e51b8152600401610a2c9061355c565b7f9ca12a51ad9c9d540d296a416dc1ec9dd5d6e54854f0f0003d828745f93450b481604051610ab1919061343a565b6119e160008051602061382d83398151915233611651565b80611a0457506119ef61143b565b6001600160a01b0316336001600160a01b0316145b611a205760405162461bcd60e51b8152600401610a2c90613507565b60198211158015611a32575060198111155b611a6d5760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a2c565b6017829055601881905560408051838152602081018390527f6e68ff80c8a733d820beab4573027f8791c8d94bd982d6b253d92cefd8e4833d910160405180910390a15050565b6000818152600260205260408120610927906129f8565b611ad482610ca6565b611ade8133612696565b610d65838361271c565b611b0060008051602061382d83398151915233611651565b80611b235750611b0e61143b565b6001600160a01b0316336001600160a01b0316145b611b3f5760405162461bcd60e51b8152600401610a2c90613507565b611b4a6013826129d7565b611b665760405162461bcd60e51b8152600401610a2c9061355c565b7fc3d7bc52aeef965781cae9bda9a6aaf0133258edeb0b8eaa79db594cc3f1ddb481604051610ab1919061343a565b600d805460ff60a01b1916600160a01b179055602254611bc09030906001600160a01b031684611fc2565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611bf557611bf5613613565b6001600160a01b039283166020918202929092010152600e54825191169082906001908110611c2657611c26613613565b6001600160a01b039283166020918202929092010152602254604051635c11d79560e01b8152911690635c11d79590611c6c908690600090869088904290600401613629565b600060405180830381600087803b158015611c8657600080fd5b505af1925050508015611c97575060015b505050600d805460ff60a01b1916905550565b611cc260008051602061382d83398151915233611651565b80611ce55750611cd061143b565b6001600160a01b0316336001600160a01b0316145b611d015760405162461bcd60e51b8152600401610a2c90613507565b6000611d0b61143b565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611d55576040519150601f19603f3d011682016040523d82523d6000602084013e611d5a565b606091505b5050905080610e9a5760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606401610a2c565b33611da661143b565b6001600160a01b031614611dcc5760405162461bcd60e51b8152600401610a2c906135c8565b6001600160a01b038116611e315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2c565b610e9a8161290c565b611e5260008051602061382d83398151915233611651565b80611e755750611e6061143b565b6001600160a01b0316336001600160a01b0316145b611e915760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b038116611eb75760405162461bcd60e51b8152600401610a2c90613533565b611ec2601382611f0d565b611ede5760405162461bcd60e51b8152600401610a2c9061355c565b7f713efbaa344ed02deb65f9ad8c867059cb659962d9eba542264e68b0a490520481604051610ab1919061343a565b6000610c9f836001600160a01b038416612a02565b611f2c8282611651565b610de45760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60006001600160e01b03198216637965db0b60e01b148061092757506301ffc9a760e01b6001600160e01b0319831614610927565b6001600160a01b0383166120245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a2c565b6001600160a01b0382166120855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a2c565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60035460ff1661212f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a2c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612169919061343a565b60405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d65908490612a4c565b6001600160a01b0382166122275760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a2c565b612232838383612b1e565b6001600160a01b038316600090815260046020526040902054818110156122aa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a2c565b60006122b7600f86612be2565b905060006122c6600f86612be2565b905060006122d5601187612be2565b905060006122e4601189612be2565b806122fc57506022546001600160a01b038981169116145b90508582806123085750835b806123385750601f546001600160a01b038916600090815260046020526040902054612335908990613596565b11155b6123715760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610a2c565b600a5460ff168061237f5750825b806123875750815b80612399575083158015612399575084155b6123db5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd081cdd185c9d1959606a1b6044820152606401610a2c565b6001600160a01b03881661dead14156123fd576123f8898861273e565b61268b565b81806124065750825b8061242957506001600160a01b0389166000908152602160205260409020544210155b6124725760405162461bcd60e51b815260206004820152601a602482015279115490cc8c0e88151c985b9cd858dd1a5bdb9cc8131bd8dad95960321b6044820152606401610a2c565b6001600160a01b038916600090815260046020526040812080548990039055600a5460ff161561260f5784156125ac57831580156124ae575082155b1561254657600061271060646006546124c7919061369a565b6124d191906136b9565b9050601d548110156124e25750601d545b601d5415806124f35750601d548911155b801561250757508015806125075750808911155b6125445760405162461bcd60e51b815260206004820152600e60248201526d45524332303a20592044756d703f60901b6044820152606401610a2c565b505b600d54600160a01b900460ff1615801561255e575083155b8015612568575082155b801561257c575061257a60138b612be2565b155b801561258a57506000601754115b156125ac576125988a612bf7565b6125a6886017546001612c3f565b90925090505b851561260f57600d54600160a01b900460ff161580156125ca575083155b80156125d4575082155b80156125e857506125e660138a612be2565b155b80156125f657506000601854115b1561260f57612609886018546000612c3f565b90925090505b801561261f5761261f308261273e565b6001600160a01b03891660009081526004602052604081208054849290612647908490613596565b92505081905550886001600160a01b03168a6001600160a01b031660008051602061380d8339815191528460405161268191815260200190565b60405180910390a3505b505050505050505050565b6126a08282611651565b610de4576126b8816001600160a01b03166014612e61565b6126c3836020612e61565b6040516020016126d49291906136db565b60408051601f198184030181529082905262461bcd60e51b8252610a2c916004016132f9565b6127048282611f22565b6000828152600260205260409020610d659082611f0d565b6127268282612ffc565b6000828152600260205260409020610d6590826129d7565b6001600160a01b03821661279e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a2c565b6127aa82600083612b1e565b6001600160a01b0382166000908152600460205260409020548181101561281e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a2c565b6001600160a01b038316600090815260046020526040812083830390556006805484929061284d90849061374a565b9250508190555081600760008282546128669190613596565b90915550506040518281526000906001600160a01b0385169060008051602061380d8339815191529060200160405180910390a3604080513381526001600160a01b03851660208201529081018390527fa02fa7af120761e5cdeff8bc117c44fd425d0f51fd27155746f84421d87d18e69060600161100f565b6000612710826128f0858761369a565b6128fa919061369a565b61290491906136b9565b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60035460ff16156129a25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861215c3390565b6000610c9f836001600160a01b038416613063565b6000610c9f8383613156565b6000610927825490565b6000612a0e8383613180565b612a4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610927565b506000610927565b6000612aa1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131989092919063ffffffff16565b805190915015610d655780806020019051810190612abf9190613761565b610d655760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a2c565b60035460ff161580612b435750612b4360008051602061384d83398151915284611651565b80612b615750612b6160008051602061384d83398151915283611651565b80612b725750612b72601184612be2565b80612b835750612b83601183612be2565b610d655760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610a2c565b6000610c9f836001600160a01b038416613180565b612c02601582612be2565b158015612c1157506000602054115b15610e9a57602054612c239042613596565b6001600160a01b03821660009081526021602052604090205550565b6000806000612c50868660646128e0565b30600090815260046020526040812080549293508392909190612c74908490613596565b9091555060009050612c86828861374a565b9050600080600080888015612cac5750601e543060009081526004602052604090205410155b15612e505730600090815260046020526040902054601c5415612cf75730600090815260046020526040902054601c54612ce8919060646128e0565b9450612cf4858261374a565b90505b601b5415612d2d5730600090815260046020526040902054601b54612d1e919060646128e0565b9350612d2a848261374a565b90505b60195415612d635730600090815260046020526040902054601954612d54919060646128e0565b9250612d60838261374a565b90505b601a5415612d6f578091505b8215612d8c57600d54612d8c9084906001600160a01b0316611b95565b8115612da957600c54612da99083906001600160a01b0316611b95565b8315612e4e57612dda307f0000000000000000000000000000000000000000000000000000000000000000866121c5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b505b509299919850909650505050505050565b60606000612e7083600261369a565b612e7b906002613596565b6001600160401b03811115612e9257612e926135fd565b6040519080825280601f01601f191660200182016040528015612ebc576020820181803683370190505b509050600360fc1b81600081518110612ed757612ed7613613565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f0657612f06613613565b60200101906001600160f81b031916908160001a9053506000612f2a84600261369a565b612f35906001613596565b90505b6001811115612fad576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612f6957612f69613613565b1a60f81b828281518110612f7f57612f7f613613565b60200101906001600160f81b031916908160001a90535060049490941c93612fa681613783565b9050612f38565b508315610c9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2c565b6130068282611651565b15610de45760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561314c57600061308760018361374a565b855490915060009061309b9060019061374a565b90508181146131005760008660000182815481106130bb576130bb613613565b90600052602060002001549050808760000184815481106130de576130de613613565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806131115761311161379a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610927565b6000915050610927565b600082600001828154811061316d5761316d613613565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6060612904848460008585843b6131f15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a2c565b600080866001600160a01b0316858760405161320d91906137b0565b60006040518083038185875af1925050503d806000811461324a576040519150601f19603f3d011682016040523d82523d6000602084013e61324f565b606091505b509150915061325f82828661326a565b979650505050505050565b60608315613279575081610c9f565b8251156132895782518084602001fd5b8160405162461bcd60e51b8152600401610a2c91906132f9565b6000602082840312156132b557600080fd5b81356001600160e01b031981168114610c9f57600080fd5b60005b838110156132e85781810151838201526020016132d0565b83811115610bf65750506000910152565b60208152600082518060208401526133188160408501602087016132cd565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461334357600080fd5b919050565b6000806040838503121561335b57600080fd5b6133648361332c565b946020939093013593505050565b60006020828403121561338457600080fd5b610c9f8261332c565b6000806000606084860312156133a257600080fd5b6133ab8461332c565b92506133b96020850161332c565b9150604084013590509250925092565b6000602082840312156133db57600080fd5b5035919050565b600080604083850312156133f557600080fd5b823591506134056020840161332c565b90509250929050565b60008060006060848603121561342357600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0391909116815260200190565b6000806040838503121561346157600080fd5b50508035926020909101359150565b6000806000806080858703121561348657600080fd5b5050823594602084013594506040840135936060013592509050565b600080604083850312156134b557600080fd5b6134be8361332c565b91506134056020840161332c565b600181811c908216806134e057607f821691505b6020821081141561350157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527143616c6c6572206e6f7420696e205465616d60701b604082015260600190565b6020808252600f908201526e496e76616c6964204164647265737360881b604082015260600190565b6020808252600a90820152693634b9ba1032b93937b960b11b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156135a9576135a9613580565b500190565b6001600160a01b0392831681529116602082015260400190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156136795784516001600160a01b031683529383019391830191600101613654565b50506001600160a01b03969096166060850152505050608001529392505050565b60008160001904831182151516156136b4576136b4613580565b500290565b6000826136d657634e487b7160e01b600052601260045260246000fd5b500490565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161370d8160178501602088016132cd565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161373e8160288401602088016132cd565b01602801949350505050565b60008282101561375c5761375c613580565b500390565b60006020828403121561377357600080fd5b81518015158114610c9f57600080fd5b60008161379257613792613580565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600082516137c28184602087016132cd565b919091019291505056fe45524332303a206d75737420686176652070617573657220726f6c6520746f2065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862addf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5146a08baf902532d0ee2f909971144f12ca32651cd70cbee1117cddfb3b3b331c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa3307a26469706673582212207b3d499fbe28a3a2e751f0feff0bc9469012315dd6dba0b544a347f1467acb4864736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000cb49b44ba602d800000000000000000000000000000051f1cfe6155c20cf7b414cea3810eaa460a9a5960000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000022091ebf6864a71fdd4493e87bbb855410a7a2d3000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff000000000000000000000000000000000000000000000000000000000000000c53717561647320546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055351554144000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061025e5760003560e01c806301ffc9a71461026a57806306fdde031461029f578063095ea7b3146102c15780630acb1a30146102e1578063135548541461030357806315bbd7d41461031857806318160ddd1461033857806323b872dd14610357578063248a9ca3146103775780632b7d9fb3146103975780632f2ff15d146103b7578063313ce567146103d757806336568abe146103f357806339509351146104135780633f4ba83a1461043357806342966c681461044857806349d5e604146104685780635bcd94411461048a5780635c975abb146104aa5780635d0044ca146104c25780636dff09a4146104e257806370a082311461050257806370d5ae0514610538578063715018a61461055b5780637411e0f9146105705780638456cb5914610590578063890d1814146105a55780638da5cb5b146105c55780638e3f1988146105da5780639010d07c146105fa578063906e9dd01461061a57806391d148541461063a57806395d89b411461065a5780639b4dc8cc1461066f578063a0d2baec146106a3578063a217fddf146106c3578063a457c2d7146106d8578063a9059cbb146106f8578063be4d0da114610718578063c5486f1514610738578063c647b20e14610758578063ca15c87314610778578063d547741f14610798578063d5abeb01146107b8578063d89135cd146107ce578063d9939797146107e3578063dc25704f14610803578063dd62ed3e14610823578063e086e5ec14610869578063e63ab1e91461087e578063ee6411c3146108a0578063f2fde38b146108c2578063f676949a146108e257600080fd5b3661026557005b600080fd5b34801561027657600080fd5b5061028a6102853660046132a3565b610902565b60405190151581526020015b60405180910390f35b3480156102ab57600080fd5b506102b461092d565b60405161029691906132f9565b3480156102cd57600080fd5b5061028a6102dc366004613348565b6109bf565b3480156102ed57600080fd5b506103016102fc366004613372565b6109d5565b005b34801561030f57600080fd5b50610301610abc565b34801561032457600080fd5b5061030161033336600461338d565b610b64565b34801561034457600080fd5b506006545b604051908152602001610296565b34801561036357600080fd5b5061028a61037236600461338d565b610bfc565b34801561038357600080fd5b506103496103923660046133c9565b610ca6565b3480156103a357600080fd5b506103016103b23660046133c9565b610cbc565b3480156103c357600080fd5b506103016103d23660046133e2565b610d48565b3480156103e357600080fd5b5060405160128152602001610296565b3480156103ff57600080fd5b5061030161040e3660046133e2565b610d6a565b34801561041f57600080fd5b5061028a61042e366004613348565b610de8565b34801561043f57600080fd5b50610301610e24565b34801561045457600080fd5b506103016104633660046133c9565b610e90565b34801561047457600080fd5b5061034960008051602061382d83398151915281565b34801561049657600080fd5b506103016104a536600461340e565b610e9d565b3480156104b657600080fd5b5060035460ff1661028a565b3480156104ce57600080fd5b506103016104dd3660046133c9565b61101c565b3480156104ee57600080fd5b506103016104fd366004613372565b611134565b34801561050e57600080fd5b5061034961051d366004613372565b6001600160a01b031660009081526004602052604090205490565b34801561054457600080fd5b5061054e61dead81565b604051610296919061343a565b34801561056757600080fd5b5061030161121a565b34801561057c57600080fd5b5061030161058b366004613372565b611253565b34801561059c57600080fd5b50610301611326565b3480156105b157600080fd5b506103016105c0366004613372565b61138e565b3480156105d157600080fd5b5061054e61143b565b3480156105e657600080fd5b506103016105f5366004613372565b61144a565b34801561060657600080fd5b5061054e61061536600461344e565b6114f7565b34801561062657600080fd5b50610301610635366004613372565b61150f565b34801561064657600080fd5b5061028a6106553660046133e2565b611651565b34801561066657600080fd5b506102b461167c565b34801561067b57600080fd5b5061054e7f0000000000000000000000003a521c5fdbd72a5efac0f796197ad47d5ab53abe81565b3480156106af57600080fd5b506103016106be366004613470565b61168b565b3480156106cf57600080fd5b50610349600081565b3480156106e457600080fd5b5061028a6106f3366004613348565b6117a3565b34801561070457600080fd5b5061028a610713366004613348565b61183c565b34801561072457600080fd5b50610301610733366004613372565b611849565b34801561074457600080fd5b50610301610753366004613372565b61191c565b34801561076457600080fd5b5061030161077336600461344e565b6119c9565b34801561078457600080fd5b506103496107933660046133c9565b611ab4565b3480156107a457600080fd5b506103016107b33660046133e2565b611acb565b3480156107c457600080fd5b50610349600b5481565b3480156107da57600080fd5b50600754610349565b3480156107ef57600080fd5b506103016107fe366004613372565b611ae8565b34801561080f57600080fd5b5061030161081e3660046133e2565b611b95565b34801561082f57600080fd5b5061034961083e3660046134a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561087557600080fd5b50610301611caa565b34801561088a57600080fd5b506103496000805160206137ed83398151915281565b3480156108ac57600080fd5b5061034960008051602061384d83398151915281565b3480156108ce57600080fd5b506103016108dd366004613372565b611d9d565b3480156108ee57600080fd5b506103016108fd366004613372565b611e3a565b60006001600160e01b03198216635a05180f60e01b1480610927575061092782611f8d565b92915050565b60606008805461093c906134cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610968906134cc565b80156109b55780601f1061098a576101008083540402835291602001916109b5565b820191906000526020600020905b81548152906001019060200180831161099857829003601f168201915b5050505050905090565b60006109cc338484611fc2565b50600192915050565b6109ed60008051602061382d83398151915233611651565b80610a1057506109fb61143b565b6001600160a01b0316336001600160a01b0316145b610a355760405162461bcd60e51b8152600401610a2c90613507565b60405180910390fd5b6001600160a01b038116610a5b5760405162461bcd60e51b8152600401610a2c90613533565b610a66601582611f0d565b610a825760405162461bcd60e51b8152600401610a2c9061355c565b7fd731c194f3f3886e0a99a8d2b60cc784bf4cf866dc3302024444145a8fdfb55e81604051610ab1919061343a565b60405180910390a150565b610ad460008051602061382d83398151915233611651565b80610af75750610ae261143b565b6001600160a01b0316336001600160a01b0316145b610b135760405162461bcd60e51b8152600401610a2c90613507565b600a805460ff19166001179055610b2c60035460ff1690565b15610b3957610b396120e6565b6040517f60b73267bb6bb049c99fda5b778a6b505f6149ace766e509237964afab62d00690600090a1565b610b7c60008051602061382d83398151915233611651565b80610b9f5750610b8a61143b565b6001600160a01b0316336001600160a01b0316145b610bbb5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b038316610be15760405162461bcd60e51b8152600401610a2c90613533565b82610bf66001600160a01b0382168484612173565b50505050565b6001600160a01b038316600090815260056020908152604080832033845290915281205482811015610c815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610a2c565b610c8e8533858403611fc2565b610c998585856121c5565b60019150505b9392505050565b6000908152600160208190526040909120015490565b610cd460008051602061382d83398151915233611651565b80610cf75750610ce261143b565b6001600160a01b0316336001600160a01b0316145b610d135760405162461bcd60e51b8152600401610a2c90613507565b601e8190556040518181527fc2c0a514d86de06d9f6e9fabea696697e14be793d578200e64212e81a353160590602001610ab1565b610d5182610ca6565b610d5b8133612696565b610d6583836126fa565b505050565b6001600160a01b0381163314610dda5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2c565b610de4828261271c565b5050565b3360008181526005602090815260408083206001600160a01b038716845290915281205490916109cc918590610e1f908690613596565b611fc2565b610e3c6000805160206137ed83398151915233611651565b610e865760405162461bcd60e51b815260206004820152602760248201526000805160206137cd833981519152604482015266756e706175736560c81b6064820152608401610a2c565b610e8e6120e6565b565b610e9a338261273e565b50565b610eb560008051602061382d83398151915233611651565b80610ed85750610ec361143b565b6001600160a01b0316336001600160a01b0316145b610ef45760405162461bcd60e51b8152600401610a2c90613507565b600a8211610f3b5760405162461bcd60e51b815260206004820152601460248201527353656c6c2050657263656e7420746f6f206c6f7760601b6044820152606401610a2c565b6103e8821115610f855760405162461bcd60e51b81526020600482015260156024820152740a6cad8d840a0cae4c6cadce840e8dede40d0d2ced605b1b6044820152606401610a2c565b62015180811115610fcd5760405162461bcd60e51b81526020600482015260126024820152716c6f636b2074696d6520746f6f206c6f6e6760701b6044820152606401610a2c565b601d83905560208181556040805185815291820184905281018290527fc1a96eb7ea0ae72ef0e921b27cd1e23aaa37323375b5c6aa5e0d9f0f6a892679906060015b60405180910390a1505050565b61103460008051602061382d83398151915233611651565b80611057575061104261143b565b6001600160a01b0316336001600160a01b0316145b6110735760405162461bcd60e51b8152600401610a2c90613507565b600f8111156110af5760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401610a2c565b60018110156110ea5760405162461bcd60e51b8152602060048201526007602482015266746f6f206c6f7760c81b6044820152606401610a2c565b6110f8600b548260646128e0565b601f8190556040805183815260208101929092527fceba48249b9d547af461cb58ff47a80584b3eb92ca0641f9bf766e30106585c69101610ab1565b61114c60008051602061382d83398151915233611651565b8061116f575061115a61143b565b6001600160a01b0316336001600160a01b0316145b61118b5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166111b15760405162461bcd60e51b8152600401610a2c90613533565b600d546040517f5207fd21e4593d7d01f2649ca03a95fa8ab6c5515518d336ca1d92a24a0f1bc8916111f0916001600160a01b039091169084906135ae565b60405180910390a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3361122361143b565b6001600160a01b0316146112495760405162461bcd60e51b8152600401610a2c906135c8565b610e8e600061290c565b61126b60008051602061382d83398151915233611651565b8061128e575061127961143b565b6001600160a01b0316336001600160a01b0316145b6112aa5760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166112d05760405162461bcd60e51b8152600401610a2c90613533565b6112db601182611f0d565b6112f75760405162461bcd60e51b8152600401610a2c9061355c565b7f2faf0e80a61c24a3f7a4011bcf04f73910fa240a04cca7c3e077339e99916bcd81604051610ab1919061343a565b61133e6000805160206137ed83398151915233611651565b6113865760405162461bcd60e51b815260206004820152602560248201526000805160206137cd833981519152604482015264706175736560d81b6064820152608401610a2c565b610e8e61295c565b6113a660008051602061382d83398151915233611651565b806113c957506113b461143b565b6001600160a01b0316336001600160a01b0316145b6113e55760405162461bcd60e51b8152600401610a2c90613507565b6113f06011826129d7565b61140c5760405162461bcd60e51b8152600401610a2c9061355c565b7f3359107a59f9a89f658936b149d223895f00902bb4faec9f786cc5be14d623ce81604051610ab1919061343a565b6000546001600160a01b031690565b61146260008051602061382d83398151915233611651565b80611485575061147061143b565b6001600160a01b0316336001600160a01b0316145b6114a15760405162461bcd60e51b8152600401610a2c90613507565b6114ac600f826129d7565b6114c85760405162461bcd60e51b8152600401610a2c9061355c565b7f1892f08f44af71da3b66084e669d040126d95db5203a2326672ae05cb27c3dd881604051610ab1919061343a565b6000828152600260205260408120610c9f90836129ec565b61152760008051602061382d83398151915233611651565b8061154a575061153561143b565b6001600160a01b0316336001600160a01b0316145b6115665760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166115cb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a206d61726b6574696e6757616c6c65742061646472657373206e6044820152651bdd081cd95d60d21b6064820152608401610a2c565b600c546115e3906011906001600160a01b03166129d7565b50600c546040517fdc6927fe2f511bd6fa2cc62912f3046832afc8894311dec2f167afdefba06c9591611623916001600160a01b039091169084906135ae565b60405180910390a1600c80546001600160a01b0319166001600160a01b038316179055610de4601182611f0d565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606009805461093c906134cc565b6116a360008051602061382d83398151915233611651565b806116c657506116b161143b565b6001600160a01b0316336001600160a01b0316145b6116e25760405162461bcd60e51b8152600401610a2c90613507565b606481836116f08688613596565b6116fa9190613596565b6117049190613596565b11156117415760405162461bcd60e51b815260206004820152600c60248201526b0e8c2f040e8dede40d0d2ced60a31b6044820152606401610a2c565b6019849055601b839055601a829055601c8190556040805185815260208101859052908101839052606081018290527fdfdea664b28e3fb7747a9cb0c5ada096ad110ab20a2f1282444c79a966525a599060800160405180910390a150505050565b3360009081526005602090815260408083206001600160a01b0386168452909152812054828110156118255760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a2c565b6118323385858403611fc2565b5060019392505050565b60006109cc3384846121c5565b61186160008051602061382d83398151915233611651565b80611884575061186f61143b565b6001600160a01b0316336001600160a01b0316145b6118a05760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b0381166118c65760405162461bcd60e51b8152600401610a2c90613533565b6118d1600f82611f0d565b6118ed5760405162461bcd60e51b8152600401610a2c9061355c565b7febd5cfa0af29d448e0b79bd91f7d209608495ebfdb6afadf079df7caf31f184481604051610ab1919061343a565b61193460008051602061382d83398151915233611651565b80611957575061194261143b565b6001600160a01b0316336001600160a01b0316145b6119735760405162461bcd60e51b8152600401610a2c90613507565b61197e6015826129d7565b61199a5760405162461bcd60e51b8152600401610a2c9061355c565b7f9ca12a51ad9c9d540d296a416dc1ec9dd5d6e54854f0f0003d828745f93450b481604051610ab1919061343a565b6119e160008051602061382d83398151915233611651565b80611a0457506119ef61143b565b6001600160a01b0316336001600160a01b0316145b611a205760405162461bcd60e51b8152600401610a2c90613507565b60198211158015611a32575060198111155b611a6d5760405162461bcd60e51b815260206004820152600c60248201526b0a8c2f040e8dede40d0d2ced60a31b6044820152606401610a2c565b6017829055601881905560408051838152602081018390527f6e68ff80c8a733d820beab4573027f8791c8d94bd982d6b253d92cefd8e4833d910160405180910390a15050565b6000818152600260205260408120610927906129f8565b611ad482610ca6565b611ade8133612696565b610d65838361271c565b611b0060008051602061382d83398151915233611651565b80611b235750611b0e61143b565b6001600160a01b0316336001600160a01b0316145b611b3f5760405162461bcd60e51b8152600401610a2c90613507565b611b4a6013826129d7565b611b665760405162461bcd60e51b8152600401610a2c9061355c565b7fc3d7bc52aeef965781cae9bda9a6aaf0133258edeb0b8eaa79db594cc3f1ddb481604051610ab1919061343a565b600d805460ff60a01b1916600160a01b179055602254611bc09030906001600160a01b031684611fc2565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611bf557611bf5613613565b6001600160a01b039283166020918202929092010152600e54825191169082906001908110611c2657611c26613613565b6001600160a01b039283166020918202929092010152602254604051635c11d79560e01b8152911690635c11d79590611c6c908690600090869088904290600401613629565b600060405180830381600087803b158015611c8657600080fd5b505af1925050508015611c97575060015b505050600d805460ff60a01b1916905550565b611cc260008051602061382d83398151915233611651565b80611ce55750611cd061143b565b6001600160a01b0316336001600160a01b0316145b611d015760405162461bcd60e51b8152600401610a2c90613507565b6000611d0b61143b565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611d55576040519150601f19603f3d011682016040523d82523d6000602084013e611d5a565b606091505b5050905080610e9a5760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606401610a2c565b33611da661143b565b6001600160a01b031614611dcc5760405162461bcd60e51b8152600401610a2c906135c8565b6001600160a01b038116611e315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2c565b610e9a8161290c565b611e5260008051602061382d83398151915233611651565b80611e755750611e6061143b565b6001600160a01b0316336001600160a01b0316145b611e915760405162461bcd60e51b8152600401610a2c90613507565b6001600160a01b038116611eb75760405162461bcd60e51b8152600401610a2c90613533565b611ec2601382611f0d565b611ede5760405162461bcd60e51b8152600401610a2c9061355c565b7f713efbaa344ed02deb65f9ad8c867059cb659962d9eba542264e68b0a490520481604051610ab1919061343a565b6000610c9f836001600160a01b038416612a02565b611f2c8282611651565b610de45760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60006001600160e01b03198216637965db0b60e01b148061092757506301ffc9a760e01b6001600160e01b0319831614610927565b6001600160a01b0383166120245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a2c565b6001600160a01b0382166120855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a2c565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60035460ff1661212f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a2c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612169919061343a565b60405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d65908490612a4c565b6001600160a01b0382166122275760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a2c565b612232838383612b1e565b6001600160a01b038316600090815260046020526040902054818110156122aa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a2c565b60006122b7600f86612be2565b905060006122c6600f86612be2565b905060006122d5601187612be2565b905060006122e4601189612be2565b806122fc57506022546001600160a01b038981169116145b90508582806123085750835b806123385750601f546001600160a01b038916600090815260046020526040902054612335908990613596565b11155b6123715760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610a2c565b600a5460ff168061237f5750825b806123875750815b80612399575083158015612399575084155b6123db5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd081cdd185c9d1959606a1b6044820152606401610a2c565b6001600160a01b03881661dead14156123fd576123f8898861273e565b61268b565b81806124065750825b8061242957506001600160a01b0389166000908152602160205260409020544210155b6124725760405162461bcd60e51b815260206004820152601a602482015279115490cc8c0e88151c985b9cd858dd1a5bdb9cc8131bd8dad95960321b6044820152606401610a2c565b6001600160a01b038916600090815260046020526040812080548990039055600a5460ff161561260f5784156125ac57831580156124ae575082155b1561254657600061271060646006546124c7919061369a565b6124d191906136b9565b9050601d548110156124e25750601d545b601d5415806124f35750601d548911155b801561250757508015806125075750808911155b6125445760405162461bcd60e51b815260206004820152600e60248201526d45524332303a20592044756d703f60901b6044820152606401610a2c565b505b600d54600160a01b900460ff1615801561255e575083155b8015612568575082155b801561257c575061257a60138b612be2565b155b801561258a57506000601754115b156125ac576125988a612bf7565b6125a6886017546001612c3f565b90925090505b851561260f57600d54600160a01b900460ff161580156125ca575083155b80156125d4575082155b80156125e857506125e660138a612be2565b155b80156125f657506000601854115b1561260f57612609886018546000612c3f565b90925090505b801561261f5761261f308261273e565b6001600160a01b03891660009081526004602052604081208054849290612647908490613596565b92505081905550886001600160a01b03168a6001600160a01b031660008051602061380d8339815191528460405161268191815260200190565b60405180910390a3505b505050505050505050565b6126a08282611651565b610de4576126b8816001600160a01b03166014612e61565b6126c3836020612e61565b6040516020016126d49291906136db565b60408051601f198184030181529082905262461bcd60e51b8252610a2c916004016132f9565b6127048282611f22565b6000828152600260205260409020610d659082611f0d565b6127268282612ffc565b6000828152600260205260409020610d6590826129d7565b6001600160a01b03821661279e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a2c565b6127aa82600083612b1e565b6001600160a01b0382166000908152600460205260409020548181101561281e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a2c565b6001600160a01b038316600090815260046020526040812083830390556006805484929061284d90849061374a565b9250508190555081600760008282546128669190613596565b90915550506040518281526000906001600160a01b0385169060008051602061380d8339815191529060200160405180910390a3604080513381526001600160a01b03851660208201529081018390527fa02fa7af120761e5cdeff8bc117c44fd425d0f51fd27155746f84421d87d18e69060600161100f565b6000612710826128f0858761369a565b6128fa919061369a565b61290491906136b9565b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60035460ff16156129a25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861215c3390565b6000610c9f836001600160a01b038416613063565b6000610c9f8383613156565b6000610927825490565b6000612a0e8383613180565b612a4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610927565b506000610927565b6000612aa1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131989092919063ffffffff16565b805190915015610d655780806020019051810190612abf9190613761565b610d655760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a2c565b60035460ff161580612b435750612b4360008051602061384d83398151915284611651565b80612b615750612b6160008051602061384d83398151915283611651565b80612b725750612b72601184612be2565b80612b835750612b83601183612be2565b610d655760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610a2c565b6000610c9f836001600160a01b038416613180565b612c02601582612be2565b158015612c1157506000602054115b15610e9a57602054612c239042613596565b6001600160a01b03821660009081526021602052604090205550565b6000806000612c50868660646128e0565b30600090815260046020526040812080549293508392909190612c74908490613596565b9091555060009050612c86828861374a565b9050600080600080888015612cac5750601e543060009081526004602052604090205410155b15612e505730600090815260046020526040902054601c5415612cf75730600090815260046020526040902054601c54612ce8919060646128e0565b9450612cf4858261374a565b90505b601b5415612d2d5730600090815260046020526040902054601b54612d1e919060646128e0565b9350612d2a848261374a565b90505b60195415612d635730600090815260046020526040902054601954612d54919060646128e0565b9250612d60838261374a565b90505b601a5415612d6f578091505b8215612d8c57600d54612d8c9084906001600160a01b0316611b95565b8115612da957600c54612da99083906001600160a01b0316611b95565b8315612e4e57612dda307f0000000000000000000000003a521c5fdbd72a5efac0f796197ad47d5ab53abe866121c5565b7f0000000000000000000000003a521c5fdbd72a5efac0f796197ad47d5ab53abe6001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b505b509299919850909650505050505050565b60606000612e7083600261369a565b612e7b906002613596565b6001600160401b03811115612e9257612e926135fd565b6040519080825280601f01601f191660200182016040528015612ebc576020820181803683370190505b509050600360fc1b81600081518110612ed757612ed7613613565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f0657612f06613613565b60200101906001600160f81b031916908160001a9053506000612f2a84600261369a565b612f35906001613596565b90505b6001811115612fad576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612f6957612f69613613565b1a60f81b828281518110612f7f57612f7f613613565b60200101906001600160f81b031916908160001a90535060049490941c93612fa681613783565b9050612f38565b508315610c9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2c565b6130068282611651565b15610de45760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561314c57600061308760018361374a565b855490915060009061309b9060019061374a565b90508181146131005760008660000182815481106130bb576130bb613613565b90600052602060002001549050808760000184815481106130de576130de613613565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806131115761311161379a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610927565b6000915050610927565b600082600001828154811061316d5761316d613613565b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6060612904848460008585843b6131f15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a2c565b600080866001600160a01b0316858760405161320d91906137b0565b60006040518083038185875af1925050503d806000811461324a576040519150601f19603f3d011682016040523d82523d6000602084013e61324f565b606091505b509150915061325f82828661326a565b979650505050505050565b60608315613279575081610c9f565b8251156132895782518084602001fd5b8160405162461bcd60e51b8152600401610a2c91906132f9565b6000602082840312156132b557600080fd5b81356001600160e01b031981168114610c9f57600080fd5b60005b838110156132e85781810151838201526020016132d0565b83811115610bf65750506000910152565b60208152600082518060208401526133188160408501602087016132cd565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461334357600080fd5b919050565b6000806040838503121561335b57600080fd5b6133648361332c565b946020939093013593505050565b60006020828403121561338457600080fd5b610c9f8261332c565b6000806000606084860312156133a257600080fd5b6133ab8461332c565b92506133b96020850161332c565b9150604084013590509250925092565b6000602082840312156133db57600080fd5b5035919050565b600080604083850312156133f557600080fd5b823591506134056020840161332c565b90509250929050565b60008060006060848603121561342357600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0391909116815260200190565b6000806040838503121561346157600080fd5b50508035926020909101359150565b6000806000806080858703121561348657600080fd5b5050823594602084013594506040840135936060013592509050565b600080604083850312156134b557600080fd5b6134be8361332c565b91506134056020840161332c565b600181811c908216806134e057607f821691505b6020821081141561350157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527143616c6c6572206e6f7420696e205465616d60701b604082015260600190565b6020808252600f908201526e496e76616c6964204164647265737360881b604082015260600190565b6020808252600a90820152693634b9ba1032b93937b960b11b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156135a9576135a9613580565b500190565b6001600160a01b0392831681529116602082015260400190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156136795784516001600160a01b031683529383019391830191600101613654565b50506001600160a01b03969096166060850152505050608001529392505050565b60008160001904831182151516156136b4576136b4613580565b500290565b6000826136d657634e487b7160e01b600052601260045260246000fd5b500490565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161370d8160178501602088016132cd565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161373e8160288401602088016132cd565b01602801949350505050565b60008282101561375c5761375c613580565b500390565b60006020828403121561377357600080fd5b81518015158114610c9f57600080fd5b60008161379257613792613580565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600082516137c28184602087016132cd565b919091019291505056fe45524332303a206d75737420686176652070617573657220726f6c6520746f2065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862addf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5146a08baf902532d0ee2f909971144f12ca32651cd70cbee1117cddfb3b3b331c2a00747007f601713457e5a560c86948074da1a56d79c9354b2fe7f8fa3307a26469706673582212207b3d499fbe28a3a2e751f0feff0bc9469012315dd6dba0b544a347f1467acb4864736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000cb49b44ba602d800000000000000000000000000000051f1cfe6155c20cf7b414cea3810eaa460a9a5960000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000022091ebf6864a71fdd4493e87bbb855410a7a2d3000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff000000000000000000000000000000000000000000000000000000000000000c53717561647320546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055351554144000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Squads Token
Arg [1] : symbol_ (string): SQUAD
Arg [2] : _maxSupply (uint256): 960000000000000000000000
Arg [3] : _marketingWallet (address): 0x51f1cFe6155C20cf7B414cea3810eAA460a9A596
Arg [4] : _stableToken (address): 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
Arg [5] : _tvlAddress (address): 0x22091ebf6864A71FDd4493e87bbB855410A7A2D3
Arg [6] : _router (address): 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000cb49b44ba602d8000000
Arg [3] : 00000000000000000000000051f1cfe6155c20cf7b414cea3810eaa460a9a596
Arg [4] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [5] : 00000000000000000000000022091ebf6864a71fdd4493e87bbb855410a7a2d3
Arg [6] : 000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [8] : 53717561647320546f6b656e0000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 5351554144000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.