ERC-20
Overview
Max Total Supply
37,000 tBSD
Holders
7
Market
Price
$0.00 @ 0.000000 FTM
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
20,619.644613470744304818 tBSDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Based
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./lib/SafeMath8.sol"; import "./owner/Operator.sol"; import "./interfaces/IOracle.sol"; /* __________ .___ ___________.__ \______ \_____ ______ ____ __| _/ \_ _____/|__| ____ _____ ____ ____ ____ | | _/\__ \ / ___/_/ __ \ / __ | | __) | | / \ \__ \ / \ _/ ___\_/ __ \ | | \ / __ \_ \___ \ \ ___/ / /_/ | | \ | || | \ / __ \_| | \\ \___\ ___/ |______ /(____ //____ > \___ >\____ | \___ / |__||___| /(____ /|___| / \___ >\___ > \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ */ contract Based is ERC20Burnable, Operator { using SafeMath8 for uint8; using SafeMath for uint256; // Initial distribution for the first 24h genesis pools uint256 public constant INITIAL_GENESIS_POOL_DISTRIBUTION = 11400 ether; // total of based we pay to users during genesis // Initial distribution for the day 2-5 BASED-TOMB LP -> BASED pool // WE WANT THIS POOL TO RUN SAME AMOUNT OF TIME AS GENESIS REWARD POOL.... uint256 public constant INITIAL_BASED_POOL_DISTRIBUTION = 20600 ether; // native lp pool that pays in based to users // Distribution for airdrops wallet // uint256 public constant INITIAL_AIRDROP_WALLET_DISTRIBUTION = 9000 ether; // Have the rewards been distributed to the pools bool public rewardPoolDistributed = false; /* ================= Taxation =============== */ // Address of the Oracle address public basedOracle; // Address of the Tax Office address public taxOffice; // Current tax rate uint256 public taxRate; // Price threshold below which taxes will get burned uint256 public burnThreshold = 1.10e18; // Address of the tax collector wallet address public taxCollectorAddress; // Should the taxes be calculated using the tax tiers bool public autoCalculateTax; // Tax Tiers uint256[] public taxTiersTwaps = [0, 5e17, 6e17, 7e17, 8e17, 9e17, 9.5e17, 1e18, 1.05e18, 1.10e18, 1.20e18, 1.30e18, 1.40e18, 1.50e18]; uint256[] public taxTiersRates = [2000, 1900, 1800, 1700, 1600, 1500, 1500, 1500, 1500, 1400, 900, 400, 200, 100]; // Sender addresses excluded from Tax mapping(address => bool) public excludedAddresses; event TaxOfficeTransferred(address oldAddress, address newAddress); modifier onlyTaxOffice() { require(taxOffice == msg.sender, "Caller is not the tax office"); _; } modifier onlyOperatorOrTaxOffice() { require(isOperator() || taxOffice == msg.sender, "Caller is not the operator or the tax office"); _; } /** * @notice Constructs the BASED ERC-20 contract. */ constructor(uint256 _taxRate, address _taxCollectorAddress) ERC20("tBASED", "tBSD") { // Mints 1 BASED to contract creator for initial pool setup require(_taxRate < 10000, "tax equal or bigger to 100%"); require(_taxCollectorAddress != address(0), "tax collector address must be non-zero address"); excludeAddress(address(this)); _mint(msg.sender, 5000 ether); // WE MINT 5000 BASED RIGHT AWAY FOR INITIAL LP CREATION taxRate = _taxRate; taxCollectorAddress = _taxCollectorAddress; } /* ============= Taxation ============= */ function getTaxTiersTwapsCount() public view returns (uint256 count) { return taxTiersTwaps.length; } function getTaxTiersRatesCount() public view returns (uint256 count) { return taxTiersRates.length; } function isAddressExcluded(address _address) public view returns (bool) { return excludedAddresses[_address]; } function setTaxTiersTwap(uint8 _index, uint256 _value) public onlyTaxOffice returns (bool) { require(_index >= 0, "Index has to be higher than 0"); require(_index < getTaxTiersTwapsCount(), "Index has to lower than count of tax tiers"); if (_index > 0) { require(_value > taxTiersTwaps[_index - 1]); } if (_index < getTaxTiersTwapsCount().sub(1)) { require(_value < taxTiersTwaps[_index + 1]); } taxTiersTwaps[_index] = _value; return true; } function setTaxTiersRate(uint8 _index, uint256 _value) public onlyTaxOffice returns (bool) { require(_index >= 0, "Index has to be higher than 0"); require(_index < getTaxTiersRatesCount(), "Index has to lower than count of tax tiers"); taxTiersRates[_index] = _value; return true; } function setBurnThreshold(uint256 _burnThreshold) public onlyTaxOffice returns (bool) { burnThreshold = _burnThreshold; //TODO Figure out if return needed return true; } //TODO Figure out if return is correct function _getBasedPrice() internal view returns (uint256 _basedPrice) { try IOracle(basedOracle).consult(address(this), 1e18) returns (uint144 _price) { return uint256(_price); } catch { revert("Based: failed to fetch BASED price from Oracle"); } } function _updateTaxRate(uint256 _basedPrice) internal returns (uint256){ if (autoCalculateTax) { for (uint8 tierId = uint8(getTaxTiersTwapsCount()).sub(1); tierId >= 0; --tierId) { if (_basedPrice >= taxTiersTwaps[tierId]) { require(taxTiersRates[tierId] < 10000, "tax equal or bigger to 100%"); taxRate = taxTiersRates[tierId]; return taxTiersRates[tierId]; } } } } function enableAutoCalculateTax() public onlyTaxOffice { autoCalculateTax = true; } function disableAutoCalculateTax() public onlyTaxOffice { autoCalculateTax = false; } function setBasedOracle(address _basedOracle) public onlyOperatorOrTaxOffice { require(_basedOracle != address(0), "oracle address cannot be 0 address"); basedOracle = _basedOracle; } function setTaxOffice(address _taxOffice) public onlyOperatorOrTaxOffice { require(_taxOffice != address(0), "tax office address cannot be 0 address"); emit TaxOfficeTransferred(taxOffice, _taxOffice); taxOffice = _taxOffice; } function setTaxCollectorAddress(address _taxCollectorAddress) public onlyTaxOffice { require(_taxCollectorAddress != address(0), "tax collector address must be non-zero address"); taxCollectorAddress = _taxCollectorAddress; } function setTaxRate(uint256 _taxRate) public onlyTaxOffice { require(!autoCalculateTax, "auto calculate tax cannot be enabled"); require(_taxRate < 10000, "tax equal or bigger to 100%"); taxRate = _taxRate; } function excludeAddress(address _address) public onlyOperatorOrTaxOffice returns (bool) { require(!excludedAddresses[_address], "address can't be excluded"); excludedAddresses[_address] = true; return true; } function includeAddress(address _address) public onlyOperatorOrTaxOffice returns (bool) { require(excludedAddresses[_address], "address can't be included"); excludedAddresses[_address] = false; return true; } /** * @notice Operator mints BASED to a recipient * @param recipient_ The address of recipient * @param amount_ The amount of BASED to mint to * @return whether the process has been done */ function mint(address recipient_, uint256 amount_) public onlyOperator returns (bool) { uint256 balanceBefore = balanceOf(recipient_); _mint(recipient_, amount_); uint256 balanceAfter = balanceOf(recipient_); return balanceAfter > balanceBefore; } function burn(uint256 amount) public override { super.burn(amount); } function burnFrom(address account, uint256 amount) public override onlyOperator { super.burnFrom(account, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { uint256 currentTaxRate = 0; bool burnTax = false; if (autoCalculateTax) { uint256 currentBasedPrice = _getBasedPrice(); currentTaxRate = _updateTaxRate(currentBasedPrice); if (currentBasedPrice < burnThreshold) { burnTax = true; } } if (currentTaxRate == 0 || excludedAddresses[sender]) { _transfer(sender, recipient, amount); } else { _transferWithTax(sender, recipient, amount, burnTax); } _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } function _transferWithTax( address sender, address recipient, uint256 amount, bool burnTax ) internal returns (bool) { uint256 taxAmount = amount.mul(taxRate).div(10000); uint256 amountAfterTax = amount.sub(taxAmount); if(burnTax) { // Burn tax super.burnFrom(sender, taxAmount); } else { // Transfer tax to tax collector _transfer(sender, taxCollectorAddress, taxAmount); } // Transfer amount after tax to recipient _transfer(sender, recipient, amountAfterTax); return true; } /** * @notice distribute to reward pool (only once) */ function distributeReward( address _genesisPool, address _basedPool // address _airdropWallet ) external onlyOperator { require(!rewardPoolDistributed, "only can distribute once"); require(_genesisPool != address(0), "!_genesisPool"); require(_basedPool != address(0), "!_basedPool"); // require(_airdropWallet != address(0), "!_airdropWallet"); rewardPoolDistributed = true; _mint(_genesisPool, INITIAL_GENESIS_POOL_DISTRIBUTION); _mint(_basedPool, INITIAL_BASED_POOL_DISTRIBUTION); // _mint(_airdropWallet, INITIAL_AIRDROP_WALLET_DISTRIBUTION); } function governanceRecoverUnsupported( IERC20 _token, uint256 _amount, address _to ) external onlyOperator { _token.transfer(_to, _amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath8 { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint8 a, uint8 b) internal pure returns (uint8) { uint8 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint8 a, uint8 b) internal pure returns (uint8) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) { require(b <= a, errorMessage); uint8 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint8 a, uint8 b) internal pure returns (uint8) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint8 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint8 a, uint8 b) internal pure returns (uint8) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) { require(b > 0, errorMessage); uint8 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint8 a, uint8 b) internal pure returns (uint8) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOracle { function update() external; function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut); function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/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 (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 (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); } }
{ "optimizer": { "enabled": true, "runs": 50 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_taxRate","type":"uint256"},{"internalType":"address","name":"_taxCollectorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","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":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TaxOfficeTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"INITIAL_BASED_POOL_DISTRIBUTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_GENESIS_POOL_DISTRIBUTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoCalculateTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basedOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableAutoCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_genesisPool","type":"address"},{"internalType":"address","name":"_basedPool","type":"address"}],"name":"distributeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableAutoCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"excludeAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxTiersRatesCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxTiersTwapsCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"includeAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAddressExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_basedOracle","type":"address"}],"name":"setBasedOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnThreshold","type":"uint256"}],"name":"setBurnThreshold","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxCollectorAddress","type":"address"}],"name":"setTaxCollectorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxOffice","type":"address"}],"name":"setTaxOffice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersRate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersTwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersTwaps","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":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6006805460ff60a01b19169055670f43fc2c04ee0000600a819055610240604052600060809081526706f05b59d3b2000060a052670853a0d2313c000060c0526709b6e64a8ec6000060e052670b1a2bc2ec50000061010052670c7d713b49da000061012052670d2f13f7789f000061014052670de0b6b3a764000061016052670e92596fd6290000610180526101a0919091526710a741a4627800006101c05267120a871cc00200006101e05267136dcc951d8c0000610200526714d1120d7b16000061022052620000d790600c90600e620005bd565b50604080516101c0810182526107d0815261076c6020820152610708918101919091526106a4606082015261064060808201526105dc60a0820181905260c0820181905260e0820181905261010082015261057861012082015261038461014082015261019061016082015260c861018082015260646101a08201526200016390600d90600e62000618565b503480156200017157600080fd5b5060405162002a1d38038062002a1d8339810160408190526200019491620006f0565b60408051808201825260068152651d109054d15160d21b6020808301918252835180850190945260048452631d1094d160e21b908401528151919291620001de916003916200065c565b508051620001f49060049060208401906200065c565b505050620002116200020b6200036460201b60201c565b62000368565b600680546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36127108210620002a85760405162461bcd60e51b815260206004820152601b60248201527f74617820657175616c206f722062696767657220746f2031303025000000000060448201526064015b60405180910390fd5b6001600160a01b038116620003175760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b60648201526084016200029f565b6200032230620003ba565b50620003393369010f0cf064dd59200000620004d8565b600991909155600b80546001600160a01b0319166001600160a01b0390921691909117905562000793565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546000906001600160a01b0316331480620003e157506008546001600160a01b031633145b620004445760405162461bcd60e51b815260206004820152602c60248201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860448201526b6520746178206f666669636560a01b60648201526084016200029f565b6001600160a01b0382166000908152600e602052604090205460ff1615620004af5760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c756465640000000000000060448201526064016200029f565b506001600160a01b03166000908152600e60205260409020805460ff1916600190811790915590565b6001600160a01b038216620005305760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200029f565b80600260008282546200054491906200072f565b90915550506001600160a01b03821660009081526020819052604081208054839290620005739084906200072f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805482825590600052602060002090810192821562000606579160200282015b828111156200060657825182906001600160401b0316905591602001919060010190620005de565b5062000614929150620006d9565b5090565b82805482825590600052602060002090810192821562000606579160200282015b8281111562000606578251829061ffff1690559160200191906001019062000639565b8280546200066a9062000756565b90600052602060002090601f0160209004810192826200068e576000855562000606565b82601f10620006a957805160ff191683800117855562000606565b8280016001018555821562000606579182015b8281111562000606578251825591602001919060010190620006bc565b5b80821115620006145760008155600101620006da565b600080604083850312156200070457600080fd5b825160208401519092506001600160a01b03811681146200072457600080fd5b809150509250929050565b600082198211156200075157634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200076b57607f821691505b602082108114156200078d57634e487b7160e01b600052602260045260246000fd5b50919050565b61227a80620007a36000396000f3fe608060405234801561001057600080fd5b50600436106102605760003560e01c8063715018a611610147578063b87c5a4a116100be578063b87c5a4a146104e9578063c3bdf613146104fc578063c4508f051461050f578063c6d69a3014610520578063cebc0abd14610533578063cf011b2614610546578063dd62ed3e14610569578063ebca1bd9146105a2578063ee2a9535146105ce578063f2fde38b146105d6578063f4fd47cf146105e9578063ff87fc7c146105fc57600080fd5b8063715018a614610439578063771a3a1d1461044157806379cc67901461044a5780638d3cc8181461045d5780638da5cb5b1461047157806393995d4b1461047957806395d89b411461048c5780639662676c146104945780639d6b5f21146104a8578063a457c2d7146104bb578063a6431bba146104ce578063a9059cbb146104d657600080fd5b806342966c68116101db57806342966c681461037957806342c6b4f11461038c5780634456eda21461039f5780634e20a02c146103a75780634f6d38d0146103b857806354575af4146103c1578063570ca735146103d45780635c29908d146103e557806365bbacd9146103f857806366206ce91461040057806369356d471461041357806370a082311461042657600080fd5b806306fdde0314610265578063095ea7b31461028357806318160ddd146102a657806323b872dd146102b857806329605e77146102cb578063313ce567146102e05780633517c29e146102ef5780633758e6ce1461031a578063395093511461032d5780633e5f13d4146103405780633f07d76a1461035357806340c10f1914610366575b600080fd5b61026d610604565b60405161027a9190611ee1565b60405180910390f35b610296610291366004611dd2565b610696565b604051901515815260200161027a565b6002545b60405190815260200161027a565b6102966102c6366004611d91565b6106ac565b6102de6102d9366004611d3b565b610779565b005b6040516012815260200161027a565b600754610302906001600160a01b031681565b6040516001600160a01b03909116815260200161027a565b610296610328366004611d3b565b6107bd565b61029661033b366004611dd2565b61088a565b600854610302906001600160a01b031681565b6102de610361366004611d3b565b6108c1565b610296610374366004611dd2565b6109c8565b6102de610387366004611e8b565b610a23565b6102aa61039a366004611e8b565b610a2c565b610296610a4d565b6102aa690269fec7f0361d20000081565b6102aa600a5481565b6102de6103cf366004611e20565b610a5e565b6006546001600160a01b0316610302565b6102aa6103f3366004611e8b565b610b0e565b6102de610b1e565b61029661040e366004611ea4565b610b57565b6102de610421366004611d3b565b610c67565b6102aa610434366004611d3b565b610d20565b6102de610d3b565b6102aa60095481565b6102de610458366004611dd2565b610d76565b600b5461029690600160a01b900460ff1681565b610302610dae565b610296610487366004611d3b565b610dbd565b61026d610e81565b60065461029690600160a01b900460ff1681565b6102966104b6366004611e8b565b610e90565b6102966104c9366004611dd2565b610ec6565b600c546102aa565b6102966104e4366004611dd2565b610f5f565b6102966104f7366004611ea4565b610f6c565b600b54610302906001600160a01b031681565b6102aa69045cba6dc885b6e0000081565b6102de61052e366004611e8b565b610fd4565b6102de610541366004611d3b565b61108a565b610296610554366004611d3b565b600e6020526000908152604090205460ff1681565b6102aa610577366004611d58565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102966105b0366004611d3b565b6001600160a01b03166000908152600e602052604090205460ff1690565b600d546102aa565b6102de6105e4366004611d3b565b611146565b6102de6105f7366004611d58565b6111e3565b6102de611327565b60606003805461061390612186565b80601f016020809104026020016040519081016040528092919081815260200182805461063f90612186565b801561068c5780601f106106615761010080835404028352916020019161068c565b820191906000526020600020905b81548152906001019060200180831161066f57829003601f168201915b5050505050905090565b60006106a3338484611366565b50600192915050565b600b5460009081908190600160a01b900460ff16156106ed5760006106cf61148a565b90506106da8161157e565b9250600a548110156106eb57600191505b505b81158061071257506001600160a01b0386166000908152600e602052604090205460ff165b156107275761072286868661167d565b610735565b61073386868684611839565b505b61076d8633610768876040518060600160405280602881526020016121fd602891396107618c33610577565b91906118b2565b611366565b50600195945050505050565b33610782610dae565b6001600160a01b0316146107b15760405162461bcd60e51b81526004016107a890611fa2565b60405180910390fd5b6107ba816118de565b50565b60006107c7610a4d565b806107dc57506008546001600160a01b031633145b6107f85760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0382166000908152600e602052604090205460ff161561085d5760405162461bcd60e51b81526020600482015260196024820152781859191c995cdcc818d85b89dd08189948195e18db1d591959603a1b60448201526064016107a8565b506001600160a01b0381166000908152600e60205260409020805460ff191660019081179091555b919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106a39185906107689086906120b1565b6108c9610a4d565b806108de57506008546001600160a01b031633145b6108fa5760405162461bcd60e51b81526004016107a890612065565b6001600160a01b03811661095f5760405162461bcd60e51b815260206004820152602660248201527f746178206f666669636520616464726573732063616e6e6f742062652030206160448201526564647265737360d01b60648201526084016107a8565b600854604080516001600160a01b03928316815291831660208301527f75237613d1cfb394eb7979839ecbeacaca4592ef0cf96791979625803948a601910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146109f55760405162461bcd60e51b81526004016107a890611fd7565b6000610a0084610d20565b9050610a0c84846119a2565b6000610a1785610d20565b91909111949350505050565b6107ba81611a6f565b600c8181548110610a3c57600080fd5b600091825260209091200154905081565b6006546001600160a01b0316331490565b6006546001600160a01b03163314610a885760405162461bcd60e51b81526004016107a890611fd7565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb90610ab69084908690600401611ec8565b602060405180830381600087803b158015610ad057600080fd5b505af1158015610ae4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b089190611dfe565b50505050565b600d8181548110610a3c57600080fd5b6008546001600160a01b03163314610b485760405162461bcd60e51b81526004016107a890611f6b565b600b805460ff60a01b19169055565b6008546000906001600160a01b03163314610b845760405162461bcd60e51b81526004016107a890611f6b565b600c548360ff1610610ba85760405162461bcd60e51b81526004016107a89061201b565b60ff831615610be757600c610bbe600185612146565b60ff1681548110610bd157610bd16121d1565b90600052602060002001548211610be757600080fd5b610bfb6001610bf5600c5490565b90611a79565b8360ff161015610c3b57600c610c128460016120c9565b60ff1681548110610c2557610c256121d1565b90600052602060002001548210610c3b57600080fd5b81600c8460ff1681548110610c5257610c526121d1565b60009182526020909120015550600192915050565b6008546001600160a01b03163314610c915760405162461bcd60e51b81526004016107a890611f6b565b6001600160a01b038116610cfe5760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b60648201526084016107a8565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b33610d44610dae565b6001600160a01b031614610d6a5760405162461bcd60e51b81526004016107a890611fa2565b610d746000611a8c565b565b6006546001600160a01b03163314610da05760405162461bcd60e51b81526004016107a890611fd7565b610daa8282611ade565b5050565b6005546001600160a01b031690565b6000610dc7610a4d565b80610ddc57506008546001600160a01b031633145b610df85760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0382166000908152600e602052604090205460ff16610e5c5760405162461bcd60e51b81526020600482015260196024820152781859191c995cdcc818d85b89dd081899481a5b98db1d591959603a1b60448201526064016107a8565b506001600160a01b03166000908152600e60205260409020805460ff19169055600190565b60606004805461061390612186565b6008546000906001600160a01b03163314610ebd5760405162461bcd60e51b81526004016107a890611f6b565b50600a55600190565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f485760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107a8565b610f553385858403611366565b5060019392505050565b60006106a333848461167d565b6008546000906001600160a01b03163314610f995760405162461bcd60e51b81526004016107a890611f6b565b600d548360ff1610610fbd5760405162461bcd60e51b81526004016107a89061201b565b81600d8460ff1681548110610c5257610c526121d1565b6008546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016107a890611f6b565b600b54600160a01b900460ff16156110645760405162461bcd60e51b8152602060048201526024808201527f6175746f2063616c63756c617465207461782063616e6e6f7420626520656e61604482015263189b195960e21b60648201526084016107a8565b61271081106110855760405162461bcd60e51b81526004016107a890611f36565b600955565b611092610a4d565b806110a757506008546001600160a01b031633145b6110c35760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0381166111245760405162461bcd60e51b815260206004820152602260248201527f6f7261636c6520616464726573732063616e6e6f742062652030206164647265604482015261737360f01b60648201526084016107a8565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3361114f610dae565b6001600160a01b0316146111755760405162461bcd60e51b81526004016107a890611fa2565b6001600160a01b0381166111da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a8565b6107ba81611a8c565b6006546001600160a01b0316331461120d5760405162461bcd60e51b81526004016107a890611fd7565b600654600160a01b900460ff16156112625760405162461bcd60e51b81526020600482015260186024820152776f6e6c792063616e2064697374726962757465206f6e636560401b60448201526064016107a8565b6001600160a01b0382166112a85760405162461bcd60e51b815260206004820152600d60248201526c0857d9d95b995cda5cd41bdbdb609a1b60448201526064016107a8565b6001600160a01b0381166112ec5760405162461bcd60e51b815260206004820152600b60248201526a0857d8985cd959141bdbdb60aa1b60448201526064016107a8565b6006805460ff60a01b1916600160a01b17905561131382690269fec7f0361d2000006119a2565b610daa8169045cba6dc885b6e000006119a2565b6008546001600160a01b031633146113515760405162461bcd60e51b81526004016107a890611f6b565b600b805460ff60a01b1916600160a01b179055565b6001600160a01b0383166113c85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107a8565b6001600160a01b0382166114295760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107a8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600754604051633ddac95360e01b81526000916001600160a01b031690633ddac953906114c5903090670de0b6b3a764000090600401611ec8565b60206040518083038186803b1580156114dd57600080fd5b505afa92505050801561150d575060408051601f3d908101601f1916820190925261150a91810190611e62565b60015b6115705760405162461bcd60e51b815260206004820152602e60248201527f42617365643a206661696c656420746f2066657463682042415345442070726960448201526d63652066726f6d204f7261636c6560901b60648201526084016107a8565b6001600160901b0316919050565b600b54600090600160a01b900460ff16156108855760006115ac60016115a3600c5490565b60ff1690611b64565b90505b600c8160ff16815481106115c5576115c56121d1565b9060005260206000200154831061166757612710600d8260ff16815481106115ef576115ef6121d1565b9060005260206000200154106116175760405162461bcd60e51b81526004016107a890611f36565b600d8160ff168154811061162d5761162d6121d1565b9060005260206000200154600981905550600d8160ff1681548110611654576116546121d1565b9060005260206000200154915050919050565b61167081612169565b90506115af565b50919050565b6001600160a01b0383166116e15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107a8565b6001600160a01b0382166117435760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107a8565b6001600160a01b038316600090815260208190526040902054818110156117bb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107a8565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906117f29084906120b1565b92505081905550826001600160a01b0316846001600160a01b03166000805160206122258339815191528460405161182c91815260200190565b60405180910390a3610b08565b60008061185d61271061185760095487611ba690919063ffffffff16565b90611bb2565b9050600061186b8583611a79565b905083156118825761187d8783611ade565b61189a565b600b5461189a9088906001600160a01b03168461167d565b6118a587878361167d565b5060019695505050505050565b600081848411156118d65760405162461bcd60e51b81526004016107a89190611ee1565b505050900390565b6001600160a01b03811661194a5760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b60648201526084016107a8565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382166119f85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107a8565b8060026000828254611a0a91906120b1565b90915550506001600160a01b03821660009081526020819052604081208054839290611a379084906120b1565b90915550506040518181526001600160a01b038316906000906000805160206122258339815191529060200160405180910390a35050565b6107ba3382611bbe565b6000611a85828461212f565b9392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611aea8333610577565b905081811015611b485760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016107a8565b611b558333848403611366565b611b5f8383611bbe565b505050565b6000611a8583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cfa565b6000611a858284612110565b6000611a8582846120ee565b6001600160a01b038216611c1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107a8565b6001600160a01b03821660009081526020819052604090205481811015611c925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107a8565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611cc190849061212f565b90915550506040518281526000906001600160a01b038516906000805160206122258339815191529060200160405180910390a3505050565b60008360ff168360ff1611158290611d255760405162461bcd60e51b81526004016107a89190611ee1565b506000611d328486612146565b95945050505050565b600060208284031215611d4d57600080fd5b8135611a85816121e7565b60008060408385031215611d6b57600080fd5b8235611d76816121e7565b91506020830135611d86816121e7565b809150509250929050565b600080600060608486031215611da657600080fd5b8335611db1816121e7565b92506020840135611dc1816121e7565b929592945050506040919091013590565b60008060408385031215611de557600080fd5b8235611df0816121e7565b946020939093013593505050565b600060208284031215611e1057600080fd5b81518015158114611a8557600080fd5b600080600060608486031215611e3557600080fd5b8335611e40816121e7565b9250602084013591506040840135611e57816121e7565b809150509250925092565b600060208284031215611e7457600080fd5b81516001600160901b0381168114611a8557600080fd5b600060208284031215611e9d57600080fd5b5035919050565b60008060408385031215611eb757600080fd5b823560ff81168114611df057600080fd5b6001600160a01b03929092168252602082015260400190565b600060208083528351808285015260005b81811015611f0e57858101830151858201604001528201611ef2565b81811115611f20576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252601b908201527a74617820657175616c206f722062696767657220746f203130302560281b604082015260600190565b6020808252601c908201527f43616c6c6572206973206e6f742074686520746178206f666669636500000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b6020808252602a908201527f496e6465782068617320746f206c6f776572207468616e20636f756e74206f666040820152692074617820746965727360b01b606082015260800190565b6020808252602c908201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860408201526b6520746178206f666669636560a01b606082015260800190565b600082198211156120c4576120c46121bb565b500190565b600060ff821660ff84168060ff038211156120e6576120e66121bb565b019392505050565b60008261210b57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561212a5761212a6121bb565b500290565b600082821015612141576121416121bb565b500390565b600060ff821660ff841680821015612160576121606121bb565b90039392505050565b600060ff82168061217c5761217c6121bb565b6000190192915050565b600181811c9082168061219a57607f821691505b6020821081141561167757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146107ba57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122085842e4aeeac68ef6596eb587d2d1993356875b34429abc3732f3d47fbfdfe2864736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000001252e3f03e0caa840cbb35442d817a1686a62586
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102605760003560e01c8063715018a611610147578063b87c5a4a116100be578063b87c5a4a146104e9578063c3bdf613146104fc578063c4508f051461050f578063c6d69a3014610520578063cebc0abd14610533578063cf011b2614610546578063dd62ed3e14610569578063ebca1bd9146105a2578063ee2a9535146105ce578063f2fde38b146105d6578063f4fd47cf146105e9578063ff87fc7c146105fc57600080fd5b8063715018a614610439578063771a3a1d1461044157806379cc67901461044a5780638d3cc8181461045d5780638da5cb5b1461047157806393995d4b1461047957806395d89b411461048c5780639662676c146104945780639d6b5f21146104a8578063a457c2d7146104bb578063a6431bba146104ce578063a9059cbb146104d657600080fd5b806342966c68116101db57806342966c681461037957806342c6b4f11461038c5780634456eda21461039f5780634e20a02c146103a75780634f6d38d0146103b857806354575af4146103c1578063570ca735146103d45780635c29908d146103e557806365bbacd9146103f857806366206ce91461040057806369356d471461041357806370a082311461042657600080fd5b806306fdde0314610265578063095ea7b31461028357806318160ddd146102a657806323b872dd146102b857806329605e77146102cb578063313ce567146102e05780633517c29e146102ef5780633758e6ce1461031a578063395093511461032d5780633e5f13d4146103405780633f07d76a1461035357806340c10f1914610366575b600080fd5b61026d610604565b60405161027a9190611ee1565b60405180910390f35b610296610291366004611dd2565b610696565b604051901515815260200161027a565b6002545b60405190815260200161027a565b6102966102c6366004611d91565b6106ac565b6102de6102d9366004611d3b565b610779565b005b6040516012815260200161027a565b600754610302906001600160a01b031681565b6040516001600160a01b03909116815260200161027a565b610296610328366004611d3b565b6107bd565b61029661033b366004611dd2565b61088a565b600854610302906001600160a01b031681565b6102de610361366004611d3b565b6108c1565b610296610374366004611dd2565b6109c8565b6102de610387366004611e8b565b610a23565b6102aa61039a366004611e8b565b610a2c565b610296610a4d565b6102aa690269fec7f0361d20000081565b6102aa600a5481565b6102de6103cf366004611e20565b610a5e565b6006546001600160a01b0316610302565b6102aa6103f3366004611e8b565b610b0e565b6102de610b1e565b61029661040e366004611ea4565b610b57565b6102de610421366004611d3b565b610c67565b6102aa610434366004611d3b565b610d20565b6102de610d3b565b6102aa60095481565b6102de610458366004611dd2565b610d76565b600b5461029690600160a01b900460ff1681565b610302610dae565b610296610487366004611d3b565b610dbd565b61026d610e81565b60065461029690600160a01b900460ff1681565b6102966104b6366004611e8b565b610e90565b6102966104c9366004611dd2565b610ec6565b600c546102aa565b6102966104e4366004611dd2565b610f5f565b6102966104f7366004611ea4565b610f6c565b600b54610302906001600160a01b031681565b6102aa69045cba6dc885b6e0000081565b6102de61052e366004611e8b565b610fd4565b6102de610541366004611d3b565b61108a565b610296610554366004611d3b565b600e6020526000908152604090205460ff1681565b6102aa610577366004611d58565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102966105b0366004611d3b565b6001600160a01b03166000908152600e602052604090205460ff1690565b600d546102aa565b6102de6105e4366004611d3b565b611146565b6102de6105f7366004611d58565b6111e3565b6102de611327565b60606003805461061390612186565b80601f016020809104026020016040519081016040528092919081815260200182805461063f90612186565b801561068c5780601f106106615761010080835404028352916020019161068c565b820191906000526020600020905b81548152906001019060200180831161066f57829003601f168201915b5050505050905090565b60006106a3338484611366565b50600192915050565b600b5460009081908190600160a01b900460ff16156106ed5760006106cf61148a565b90506106da8161157e565b9250600a548110156106eb57600191505b505b81158061071257506001600160a01b0386166000908152600e602052604090205460ff165b156107275761072286868661167d565b610735565b61073386868684611839565b505b61076d8633610768876040518060600160405280602881526020016121fd602891396107618c33610577565b91906118b2565b611366565b50600195945050505050565b33610782610dae565b6001600160a01b0316146107b15760405162461bcd60e51b81526004016107a890611fa2565b60405180910390fd5b6107ba816118de565b50565b60006107c7610a4d565b806107dc57506008546001600160a01b031633145b6107f85760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0382166000908152600e602052604090205460ff161561085d5760405162461bcd60e51b81526020600482015260196024820152781859191c995cdcc818d85b89dd08189948195e18db1d591959603a1b60448201526064016107a8565b506001600160a01b0381166000908152600e60205260409020805460ff191660019081179091555b919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106a39185906107689086906120b1565b6108c9610a4d565b806108de57506008546001600160a01b031633145b6108fa5760405162461bcd60e51b81526004016107a890612065565b6001600160a01b03811661095f5760405162461bcd60e51b815260206004820152602660248201527f746178206f666669636520616464726573732063616e6e6f742062652030206160448201526564647265737360d01b60648201526084016107a8565b600854604080516001600160a01b03928316815291831660208301527f75237613d1cfb394eb7979839ecbeacaca4592ef0cf96791979625803948a601910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146109f55760405162461bcd60e51b81526004016107a890611fd7565b6000610a0084610d20565b9050610a0c84846119a2565b6000610a1785610d20565b91909111949350505050565b6107ba81611a6f565b600c8181548110610a3c57600080fd5b600091825260209091200154905081565b6006546001600160a01b0316331490565b6006546001600160a01b03163314610a885760405162461bcd60e51b81526004016107a890611fd7565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb90610ab69084908690600401611ec8565b602060405180830381600087803b158015610ad057600080fd5b505af1158015610ae4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b089190611dfe565b50505050565b600d8181548110610a3c57600080fd5b6008546001600160a01b03163314610b485760405162461bcd60e51b81526004016107a890611f6b565b600b805460ff60a01b19169055565b6008546000906001600160a01b03163314610b845760405162461bcd60e51b81526004016107a890611f6b565b600c548360ff1610610ba85760405162461bcd60e51b81526004016107a89061201b565b60ff831615610be757600c610bbe600185612146565b60ff1681548110610bd157610bd16121d1565b90600052602060002001548211610be757600080fd5b610bfb6001610bf5600c5490565b90611a79565b8360ff161015610c3b57600c610c128460016120c9565b60ff1681548110610c2557610c256121d1565b90600052602060002001548210610c3b57600080fd5b81600c8460ff1681548110610c5257610c526121d1565b60009182526020909120015550600192915050565b6008546001600160a01b03163314610c915760405162461bcd60e51b81526004016107a890611f6b565b6001600160a01b038116610cfe5760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b60648201526084016107a8565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b33610d44610dae565b6001600160a01b031614610d6a5760405162461bcd60e51b81526004016107a890611fa2565b610d746000611a8c565b565b6006546001600160a01b03163314610da05760405162461bcd60e51b81526004016107a890611fd7565b610daa8282611ade565b5050565b6005546001600160a01b031690565b6000610dc7610a4d565b80610ddc57506008546001600160a01b031633145b610df85760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0382166000908152600e602052604090205460ff16610e5c5760405162461bcd60e51b81526020600482015260196024820152781859191c995cdcc818d85b89dd081899481a5b98db1d591959603a1b60448201526064016107a8565b506001600160a01b03166000908152600e60205260409020805460ff19169055600190565b60606004805461061390612186565b6008546000906001600160a01b03163314610ebd5760405162461bcd60e51b81526004016107a890611f6b565b50600a55600190565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f485760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107a8565b610f553385858403611366565b5060019392505050565b60006106a333848461167d565b6008546000906001600160a01b03163314610f995760405162461bcd60e51b81526004016107a890611f6b565b600d548360ff1610610fbd5760405162461bcd60e51b81526004016107a89061201b565b81600d8460ff1681548110610c5257610c526121d1565b6008546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016107a890611f6b565b600b54600160a01b900460ff16156110645760405162461bcd60e51b8152602060048201526024808201527f6175746f2063616c63756c617465207461782063616e6e6f7420626520656e61604482015263189b195960e21b60648201526084016107a8565b61271081106110855760405162461bcd60e51b81526004016107a890611f36565b600955565b611092610a4d565b806110a757506008546001600160a01b031633145b6110c35760405162461bcd60e51b81526004016107a890612065565b6001600160a01b0381166111245760405162461bcd60e51b815260206004820152602260248201527f6f7261636c6520616464726573732063616e6e6f742062652030206164647265604482015261737360f01b60648201526084016107a8565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3361114f610dae565b6001600160a01b0316146111755760405162461bcd60e51b81526004016107a890611fa2565b6001600160a01b0381166111da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a8565b6107ba81611a8c565b6006546001600160a01b0316331461120d5760405162461bcd60e51b81526004016107a890611fd7565b600654600160a01b900460ff16156112625760405162461bcd60e51b81526020600482015260186024820152776f6e6c792063616e2064697374726962757465206f6e636560401b60448201526064016107a8565b6001600160a01b0382166112a85760405162461bcd60e51b815260206004820152600d60248201526c0857d9d95b995cda5cd41bdbdb609a1b60448201526064016107a8565b6001600160a01b0381166112ec5760405162461bcd60e51b815260206004820152600b60248201526a0857d8985cd959141bdbdb60aa1b60448201526064016107a8565b6006805460ff60a01b1916600160a01b17905561131382690269fec7f0361d2000006119a2565b610daa8169045cba6dc885b6e000006119a2565b6008546001600160a01b031633146113515760405162461bcd60e51b81526004016107a890611f6b565b600b805460ff60a01b1916600160a01b179055565b6001600160a01b0383166113c85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107a8565b6001600160a01b0382166114295760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107a8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600754604051633ddac95360e01b81526000916001600160a01b031690633ddac953906114c5903090670de0b6b3a764000090600401611ec8565b60206040518083038186803b1580156114dd57600080fd5b505afa92505050801561150d575060408051601f3d908101601f1916820190925261150a91810190611e62565b60015b6115705760405162461bcd60e51b815260206004820152602e60248201527f42617365643a206661696c656420746f2066657463682042415345442070726960448201526d63652066726f6d204f7261636c6560901b60648201526084016107a8565b6001600160901b0316919050565b600b54600090600160a01b900460ff16156108855760006115ac60016115a3600c5490565b60ff1690611b64565b90505b600c8160ff16815481106115c5576115c56121d1565b9060005260206000200154831061166757612710600d8260ff16815481106115ef576115ef6121d1565b9060005260206000200154106116175760405162461bcd60e51b81526004016107a890611f36565b600d8160ff168154811061162d5761162d6121d1565b9060005260206000200154600981905550600d8160ff1681548110611654576116546121d1565b9060005260206000200154915050919050565b61167081612169565b90506115af565b50919050565b6001600160a01b0383166116e15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107a8565b6001600160a01b0382166117435760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107a8565b6001600160a01b038316600090815260208190526040902054818110156117bb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107a8565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906117f29084906120b1565b92505081905550826001600160a01b0316846001600160a01b03166000805160206122258339815191528460405161182c91815260200190565b60405180910390a3610b08565b60008061185d61271061185760095487611ba690919063ffffffff16565b90611bb2565b9050600061186b8583611a79565b905083156118825761187d8783611ade565b61189a565b600b5461189a9088906001600160a01b03168461167d565b6118a587878361167d565b5060019695505050505050565b600081848411156118d65760405162461bcd60e51b81526004016107a89190611ee1565b505050900390565b6001600160a01b03811661194a5760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b60648201526084016107a8565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382166119f85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107a8565b8060026000828254611a0a91906120b1565b90915550506001600160a01b03821660009081526020819052604081208054839290611a379084906120b1565b90915550506040518181526001600160a01b038316906000906000805160206122258339815191529060200160405180910390a35050565b6107ba3382611bbe565b6000611a85828461212f565b9392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611aea8333610577565b905081811015611b485760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016107a8565b611b558333848403611366565b611b5f8383611bbe565b505050565b6000611a8583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cfa565b6000611a858284612110565b6000611a8582846120ee565b6001600160a01b038216611c1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107a8565b6001600160a01b03821660009081526020819052604090205481811015611c925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107a8565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611cc190849061212f565b90915550506040518281526000906001600160a01b038516906000805160206122258339815191529060200160405180910390a3505050565b60008360ff168360ff1611158290611d255760405162461bcd60e51b81526004016107a89190611ee1565b506000611d328486612146565b95945050505050565b600060208284031215611d4d57600080fd5b8135611a85816121e7565b60008060408385031215611d6b57600080fd5b8235611d76816121e7565b91506020830135611d86816121e7565b809150509250929050565b600080600060608486031215611da657600080fd5b8335611db1816121e7565b92506020840135611dc1816121e7565b929592945050506040919091013590565b60008060408385031215611de557600080fd5b8235611df0816121e7565b946020939093013593505050565b600060208284031215611e1057600080fd5b81518015158114611a8557600080fd5b600080600060608486031215611e3557600080fd5b8335611e40816121e7565b9250602084013591506040840135611e57816121e7565b809150509250925092565b600060208284031215611e7457600080fd5b81516001600160901b0381168114611a8557600080fd5b600060208284031215611e9d57600080fd5b5035919050565b60008060408385031215611eb757600080fd5b823560ff81168114611df057600080fd5b6001600160a01b03929092168252602082015260400190565b600060208083528351808285015260005b81811015611f0e57858101830151858201604001528201611ef2565b81811115611f20576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252601b908201527a74617820657175616c206f722062696767657220746f203130302560281b604082015260600190565b6020808252601c908201527f43616c6c6572206973206e6f742074686520746178206f666669636500000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b6020808252602a908201527f496e6465782068617320746f206c6f776572207468616e20636f756e74206f666040820152692074617820746965727360b01b606082015260800190565b6020808252602c908201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860408201526b6520746178206f666669636560a01b606082015260800190565b600082198211156120c4576120c46121bb565b500190565b600060ff821660ff84168060ff038211156120e6576120e66121bb565b019392505050565b60008261210b57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561212a5761212a6121bb565b500290565b600082821015612141576121416121bb565b500390565b600060ff821660ff841680821015612160576121606121bb565b90039392505050565b600060ff82168061217c5761217c6121bb565b6000190192915050565b600181811c9082168061219a57607f821691505b6020821081141561167757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146107ba57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122085842e4aeeac68ef6596eb587d2d1993356875b34429abc3732f3d47fbfdfe2864736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001252e3f03e0caa840cbb35442d817a1686a62586
-----Decoded View---------------
Arg [0] : _taxRate (uint256): 0
Arg [1] : _taxCollectorAddress (address): 0x1252E3f03E0caa840cbb35442d817a1686A62586
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000001252e3f03e0caa840cbb35442d817a1686a62586
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.