Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60c06040 | 20484711 | 89 days ago | IN | 0.05 ETH | 0.0608211 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20484711 | 89 days ago | 0.05 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CSWToken
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/AntiWhaleToken.sol"; import "../libraries/ERC20Base.sol"; import "../libraries/ERC20Burnable.sol"; import "../libraries/ERC20Pausable.sol"; import "../libraries/Recoverable.sol"; import "../libraries/TaxableToken.sol"; /* https://x.com/crosswalktoken https://www.crosswalk.pro/ */ /** * @dev ERC20Token implementation with Burn, Pause, Recover, AntiWhale, Tax capabilities */ contract CSWToken is ERC20Base, AntiWhaleToken, ERC20Burnable, ERC20Pausable, Ownable, Recoverable, TaxableToken { mapping(address => bool) private _excludedFromAntiWhale; event ExcludedFromAntiWhale(address indexed account, bool excluded); constructor( uint256 initialSupply_, address feeReceiver_, address swapRouter_, FeeConfiguration memory feeConfiguration_, address[] memory collectors_, uint256[] memory shares_ ) payable ERC20Base("Cross Walk", "CSW", 18, 0x312f313732333133302f4f2f422f522f502f572f54) AntiWhaleToken(initialSupply_ / 100) // 1% of supply TaxableToken(true, initialSupply_ / 10000, swapRouter_, feeConfiguration_) TaxDistributor(collectors_, shares_) { require(initialSupply_ > 0, "Initial supply cannot be zero"); payable(feeReceiver_).transfer(msg.value); _excludedFromAntiWhale[_msgSender()] = true; _excludedFromAntiWhale[swapPair] = true; _excludedFromAntiWhale[BURN_ADDRESS] = true; _mint(_msgSender(), initialSupply_); } /** * @dev Update the max token allowed per wallet. * only callable by `owner()` */ function setMaxTokenPerWallet(uint256 amount) external onlyOwner { _setMaxTokenPerWallet(amount); } /** * @dev returns true if address is excluded from anti whale */ function isExcludedFromAntiWhale(address account) public view override returns (bool) { return _excludedFromAntiWhale[account]; } /** * @dev Include/Exclude an address from anti whale * only callable by `owner()` */ function setIsExcludedFromAntiWhale(address account, bool excluded) external onlyOwner { _excludedFromAntiWhale[account] = excluded; emit ExcludedFromAntiWhale(account, excluded); } /** * @dev Destroys `amount` tokens from the caller. * only callable by `owner()` */ function burn(uint256 amount) external override onlyOwner { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * only callable by `owner()` */ function burnFrom(address account, uint256 amount) external override onlyOwner { _burnFrom(account, amount); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20, ERC20Pausable, AntiWhaleToken) { super._beforeTokenTransfer(from, to, amount); } /** * @dev Pause the contract * only callable by `owner()` */ function pause() external override onlyOwner { _pause(); } /** * @dev Resume the contract * only callable by `owner()` */ function resume() external override onlyOwner { _unpause(); } /** * @dev Recover ETH stored in the contract * @param to The destination address * @param amount Amount to be sent * only callable by `owner()` */ function recoverEth(address payable to, uint256 amount) external override onlyOwner { _recoverEth(to, amount); } /** * @dev Recover tokens stored in the contract * @param tokenAddress The token contract address * @param to The destination address * @param tokenAmount Number of tokens to be sent * only callable by `owner()` */ function recoverTokens(address tokenAddress, address to, uint256 tokenAmount) external override onlyOwner { _recoverTokens(tokenAddress, to, tokenAmount); } /** * @dev Enable/Disable autoProcessFees on transfer * only callable by `owner()` */ function setAutoprocessFees(bool autoProcess) external override onlyOwner { require(autoProcessFees != autoProcess, "Already set"); autoProcessFees = autoProcess; } /** * @dev add a fee collector * only callable by `owner()` */ function addFeeCollector(address account, uint256 share) external override onlyOwner { _addFeeCollector(account, share); } /** * @dev add/remove a LP * only callable by `owner()` */ function setIsLpPool(address pairAddress, bool isLp) external override onlyOwner { _setIsLpPool(pairAddress, isLp); } /** * @dev add/remove an address to the tax exclusion list * only callable by `owner()` */ function setIsExcludedFromFees(address account, bool excluded) external override onlyOwner { _setIsExcludedFromFees(account, excluded); } /** * @dev manually distribute fees to collectors * only callable by `owner()` */ function distributeFees(uint256 amount, bool inToken) external override onlyOwner { if (inToken) { require(balanceOf(address(this)) >= amount, "Not enough balance"); } else { require(address(this).balance >= amount, "Not enough balance"); } _distributeFees(amount, inToken); } /** * @dev process fees * only callable by `owner()` */ function processFees(uint256 amount, uint256 minAmountOut) external override onlyOwner { require(amount <= balanceOf(address(this)), "Amount too high"); _processFees(amount, minAmountOut); } /** * @dev remove a fee collector * only callable by `owner()` */ function removeFeeCollector(address account) external override onlyOwner { _removeFeeCollector(account); } /** * @dev set the liquidity owner * only callable by `owner()` */ function setLiquidityOwner(address newOwner) external override onlyOwner { liquidityOwner = newOwner; } /** * @dev set the number of tokens to swap * only callable by `owner()` */ function setNumTokensToSwap(uint256 amount) external override onlyOwner { numTokensToSwap = amount; } /** * @dev update a fee collector share * only callable by `owner()` */ function updateFeeCollectorShare(address account, uint256 share) external override onlyOwner { _updateFeeCollectorShare(account, share); } /** * @dev update the fee configurations * only callable by `owner()` */ function setFeeConfiguration(FeeConfiguration calldata configuration) external override onlyOwner { _setFeeConfiguration(configuration); } /** * @dev update the swap router * only callable by `owner()` */ function setSwapRouter(address newRouter) external override onlyOwner { _setSwapRouter(newRouter); } function _transfer(address from, address to, uint256 amount) internal override(ERC20, TaxableToken) { super._transfer(from, to, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * 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}. * * 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 default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. 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. * * ```solidity * 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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ 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) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // 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; /// @solidity memory-safe-assembly 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 in 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; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20Base.sol"; /* * AntiWhaleToken: Limit the max wallet size */ abstract contract AntiWhaleToken is ERC20Base { uint256 public maxTokenPerWallet; // anti whale: max token per wallet (default to 1% of supply) event MaxTokenPerWalletUpdated(uint256 amount); modifier antiWhale( address sender, address recipient, uint256 amount ) { if (maxTokenPerWallet != 0 && !isExcludedFromAntiWhale(recipient)) { require(balanceOf(recipient) + amount <= maxTokenPerWallet, "Wallet exceeds max"); } _; } constructor(uint256 maxTokenPerWallet_) { maxTokenPerWallet = maxTokenPerWallet_; } function isExcludedFromAntiWhale(address account) public view virtual returns (bool); /** * @dev Update the max token per wallet * set to 0 to disable */ function _setMaxTokenPerWallet(uint256 amount) internal { require(amount == 0 || amount > (totalSupply() * 5) / 1000, "Amount too low"); // min 0.5% of supply maxTokenPerWallet = amount; emit MaxTokenPerWalletUpdated(amount); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override antiWhale(from, to, amount) { super._beforeTokenTransfer(from, to, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract ERC20Base is ERC20 { uint8 private immutable _decimals; uint256 public immutable TOKEN_CODE; constructor( string memory name_, string memory symbol_, uint8 decimals_, uint256 token_code_ ) ERC20(name_, symbol_) { _decimals = decimals_; TOKEN_CODE = token_code_; } function decimals() public view override returns (uint8) { return _decimals; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "./ERC20Base.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, ERC20Base { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) external 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) internal virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20Burnable: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. */ function burnFrom(address account, uint256 amount) external virtual { _burnFrom(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "./ERC20Base.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20Base, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { require(!paused(), "ERC20Pausable: transfer paused"); super._beforeTokenTransfer(from, to, amount); } /** * @dev Pause the contract * Access restriction must be overriden in derived class */ function pause() external virtual { _pause(); } /** * @dev Resume the contract * Access restriction must be overriden in derived class */ function resume() external virtual { _unpause(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title TokenRecover * @dev Allow to recover any ERC20 and ETH sent to the contract */ contract Recoverable { event TokenRecovered(address indexed token, address indexed to, uint256 amount); event EthRecovered(address indexed to, uint256 amount); /** * @dev Recover ETH stored in the contract * @param to The destination address * @param amount Amount to be sent */ function _recoverEth(address payable to, uint256 amount) internal { require(address(this).balance >= amount, "Invalid amount"); to.transfer(amount); emit EthRecovered(to, amount); } /** * @dev Recover tokens stored in the contract * @param tokenAddress The token contract address * @param to The destination address * @param tokenAmount Number of tokens to be sent */ function _recoverTokens(address tokenAddress, address to, uint256 tokenAmount) internal { require(IERC20(tokenAddress).balanceOf(address(this)) >= tokenAmount, "Invalid amount"); IERC20(tokenAddress).transfer(to, tokenAmount); emit TokenRecovered(tokenAddress, to, tokenAmount); } /** * @dev Recover ETH stored in the contract * @param to The destination address * @param amount Amount to be sent * Access restriction must be overriden in derived class */ function recoverEth(address payable to, uint256 amount) external virtual { _recoverEth(to, amount); } /** * @dev Recover tokens stored in the contract * @param tokenAddress The token contract address * @param to The destination address * @param tokenAmount Number of tokens to be sent * Access restriction must be overriden in derived class */ function recoverTokens(address tokenAddress, address to, uint256 tokenAmount) external virtual { _recoverTokens(tokenAddress, to, tokenAmount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "./ERC20Base.sol"; abstract contract TaxDistributor is ERC20Base { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private _collectors; mapping(address => uint256) private _shares; uint256 public totalFeeCollectorsShares; event FeeCollectorAdded(address indexed account, uint256 share); event FeeCollectorUpdated(address indexed account, uint256 oldShare, uint256 newShare); event FeeCollectorRemoved(address indexed account); event FeeCollected(address indexed receiver, uint256 amount); constructor(address[] memory collectors_, uint256[] memory shares_) { require(collectors_.length == shares_.length, "Invalid fee collectors"); for (uint256 i = 0; i < collectors_.length; i++) { _addFeeCollector(collectors_[i], shares_[i]); } } function isFeeCollector(address account) public view returns (bool) { return _collectors.contains(account); } function feeCollectorShare(address account) public view returns (uint256) { return _shares[account]; } function _addFeeCollector(address account, uint256 share) internal { require(!_collectors.contains(account), "Already fee collector"); require(share > 0, "Invalid share"); _collectors.add(account); _shares[account] = share; totalFeeCollectorsShares += share; emit FeeCollectorAdded(account, share); } function _removeFeeCollector(address account) internal { require(_collectors.contains(account), "Not fee collector"); _collectors.remove(account); totalFeeCollectorsShares -= _shares[account]; delete _shares[account]; emit FeeCollectorRemoved(account); } function _updateFeeCollectorShare(address account, uint256 share) internal { require(_collectors.contains(account), "Not fee collector"); require(share > 0, "Invalid share"); uint256 oldShare = _shares[account]; totalFeeCollectorsShares -= oldShare; _shares[account] = share; totalFeeCollectorsShares += share; emit FeeCollectorUpdated(account, oldShare, share); } function _distributeFees(uint256 amount, bool inToken) internal returns (bool) { if (amount == 0) return false; if (totalFeeCollectorsShares == 0) return false; uint256 distributed = 0; uint256 len = _collectors.length(); for (uint256 i = 0; i < len; i++) { address collector = _collectors.at(i); uint256 share = i == len - 1 ? amount - distributed : (amount * _shares[collector]) / totalFeeCollectorsShares; if (inToken) { _transfer(address(this), collector, share); } else { payable(collector).transfer(share); } emit FeeCollected(collector, share); distributed += share; } return true; } function addFeeCollector(address account, uint256 share) external virtual; function removeFeeCollector(address account) external virtual; function updateFeeCollectorShare(address account, uint256 share) external virtual; function distributeFees(uint256 amount, bool inToken) external virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./ERC20Base.sol"; import "./TaxDistributor.sol"; /* * TaxableToken: Add a tax on buy, sell or transfer */ abstract contract TaxableToken is ERC20Base, TaxDistributor { struct FeeConfiguration { bool feesInToken; // if set to true, collectors will get tokens, if false collector the fee will be swapped for the native currency uint16 buyFees; // fees applied during buys, from 0 to 2000 (ie, 100 = 1%) uint16 sellFees; // fees applied during sells, from 0 to 2000 (ie, 100 = 1%) uint16 transferFees; // fees applied during transfers, from 0 to 2000 (ie, 100 = 1%) uint16 burnFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are burned) uint16 liquidityFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are added back to liquidity) uint16 collectorsFeeRatio; // from 0 to 10000 (ie 8000 = 80% of the fee collected are sent to fee collectors) } address public constant BURN_ADDRESS = address(0x000000000000000000000000000000000000dEaD); uint16 public constant MAX_FEE = 2000; // max 20% fees uint16 public constant FEE_PRECISION = 10000; // swap config IUniswapV2Router02 public swapRouter; address public swapPair; address public liquidityOwner; // fees bool private _processingFees; bool public autoProcessFees; uint256 public numTokensToSwap; // amount of tokens to collect before processing fees (default to 0.05% of supply) FeeConfiguration public feeConfiguration; mapping(address => bool) private _excludedFromFees; mapping(address => bool) private _lpPools; event FeeConfigurationUpdated(FeeConfiguration configuration); event SwapRouterUpdated(address indexed router, address indexed pair); event ExcludedFromFees(address indexed account, bool excluded); event SetLpPool(address indexed pairAddress, bool isLp); modifier lockTheSwap() { _processingFees = true; _; _processingFees = false; } constructor( bool autoProcessFees_, uint256 numTokensToSwap_, address swapRouter_, FeeConfiguration memory feeConfiguration_ ) { numTokensToSwap = numTokensToSwap_; autoProcessFees = autoProcessFees_; liquidityOwner = _msgSender(); // Create a uniswap pair for this new token swapRouter = IUniswapV2Router02(swapRouter_); swapPair = _pairFor(swapRouter.factory(), address(this), swapRouter.WETH()); _lpPools[swapPair] = true; // configure addresses excluded from fee _setIsExcludedFromFees(_msgSender(), true); _setIsExcludedFromFees(address(this), true); // configure fees _setFeeConfiguration(feeConfiguration_); } // receive ETH when swaping receive() external payable {} function isExcludedFromFees(address account) public view returns (bool) { return _excludedFromFees[account]; } function _setIsExcludedFromFees(address account, bool excluded) internal { require(_excludedFromFees[account] != excluded, "Already set"); _excludedFromFees[account] = excluded; emit ExcludedFromFees(account, excluded); } function _setIsLpPool(address pairAddress, bool isLp) internal { require(_lpPools[pairAddress] != isLp, "Already set"); _lpPools[pairAddress] = isLp; emit SetLpPool(pairAddress, isLp); } function isLpPool(address pairAddress) public view returns (bool) { return _lpPools[pairAddress]; } function _setSwapRouter(address _newRouter) internal { require(_newRouter != address(0), "Invalid router"); swapRouter = IUniswapV2Router02(_newRouter); IUniswapV2Factory factory = IUniswapV2Factory(swapRouter.factory()); require(address(factory) != address(0), "Invalid factory"); address weth = swapRouter.WETH(); swapPair = factory.getPair(address(this), weth); if (swapPair == address(0)) { swapPair = factory.createPair(address(this), weth); } require(swapPair != address(0), "Invalid pair address."); emit SwapRouterUpdated(address(swapRouter), swapPair); } function _setFeeConfiguration(FeeConfiguration memory configuration) internal { require(configuration.buyFees <= MAX_FEE, "Invalid buy fee"); require(configuration.sellFees <= MAX_FEE, "Invalid sell fee"); require(configuration.transferFees <= MAX_FEE, "Invalid transfer fee"); uint16 totalShare = configuration.burnFeeRatio + configuration.liquidityFeeRatio + configuration.collectorsFeeRatio; require(totalShare == 0 || totalShare == FEE_PRECISION, "Invalid fee share"); feeConfiguration = configuration; emit FeeConfigurationUpdated(configuration); } function _processFees(uint256 tokenAmount, uint256 minAmountOut) internal lockTheSwap { uint256 contractTokenBalance = balanceOf(address(this)); if (contractTokenBalance >= tokenAmount) { uint256 liquidityAmount = (tokenAmount * feeConfiguration.liquidityFeeRatio) / (FEE_PRECISION - feeConfiguration.burnFeeRatio); uint256 liquidityTokens = liquidityAmount / 2; uint256 collectorsAmount = tokenAmount - liquidityAmount; uint256 liquifyAmount = liquidityAmount - liquidityTokens; if (!feeConfiguration.feesInToken) { liquifyAmount += collectorsAmount; } // swap tokens if (liquifyAmount > 0) { if (balanceOf(swapPair) == 0) { // do not swap before the pair has liquidity return; } // capture the contract's current balance. uint256 initialBalance = address(this).balance; _swapTokensForEth(liquifyAmount, minAmountOut); // how much did we just swap into? uint256 swapBalance = address(this).balance - initialBalance; // add liquidity uint256 liquidityETH = (swapBalance * liquidityTokens) / liquifyAmount; if (liquidityETH > 0) { _addLiquidity(liquidityTokens, liquidityETH); } } if (feeConfiguration.feesInToken) { // send tokens to fee collectors _distributeFees(collectorsAmount, true); } else { // send remaining ETH to fee collectors _distributeFees(address(this).balance, false); } } } /// @dev Swap tokens for eth function _swapTokensForEth(uint256 tokenAmount, uint256 minAmountOut) private { // generate the swap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = swapRouter.WETH(); _approve(address(this), address(swapRouter), tokenAmount); // make the swap swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, minAmountOut, path, address(this), block.timestamp ); } /// @dev Add liquidity function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(swapRouter), tokenAmount); // add the liquidity swapRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable liquidityOwner, block.timestamp ); } // calculates the CREATE2 address for a pair without making any external calls function _pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); pair = address( uint160( uint( keccak256( abi.encodePacked( hex"ff", factory, keccak256(abi.encodePacked(token0, token1)), hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash ) ) ) ) ); } function _transfer(address from, address to, uint256 amount) internal virtual override { require(amount > 0, "Transfer <= 0"); uint256 taxFee = 0; bool processFee = !_processingFees && autoProcessFees; if (!_processingFees) { bool fromExcluded = isExcludedFromFees(from); bool toExcluded = isExcludedFromFees(to); bool fromLP = isLpPool(from); bool toLP = isLpPool(to); if (fromLP && !toLP && !toExcluded && to != address(swapRouter)) { // buy fee taxFee = feeConfiguration.buyFees; } else if (toLP && !fromExcluded && !toExcluded) { // sell fee taxFee = feeConfiguration.sellFees; } else if (!fromLP && !toLP && from != address(swapRouter) && !fromExcluded) { // transfer fee taxFee = feeConfiguration.transferFees; } } // process fees if (processFee && taxFee > 0 && !_lpPools[from]) { uint256 contractTokenBalance = balanceOf(address(this)); if (contractTokenBalance >= numTokensToSwap) { _processFees(numTokensToSwap, 0); } } if (taxFee > 0) { uint256 taxAmount = (amount * taxFee) / FEE_PRECISION; uint256 sendAmount = amount - taxAmount; uint256 burnAmount = (taxAmount * feeConfiguration.burnFeeRatio) / FEE_PRECISION; if (burnAmount > 0) { taxAmount -= burnAmount; super._transfer(from, BURN_ADDRESS, burnAmount); } if (taxAmount > 0) { super._transfer(from, address(this), taxAmount); } if (sendAmount > 0) { super._transfer(from, to, sendAmount); } } else { super._transfer(from, to, amount); } } function setAutoprocessFees(bool autoProcess) external virtual; function setIsLpPool(address pairAddress, bool isLp) external virtual; function setIsExcludedFromFees(address account, bool excluded) external virtual; function processFees(uint256 amount, uint256 minAmountOut) external virtual; function setLiquidityOwner(address newOwner) external virtual; function setNumTokensToSwap(uint256 amount) external virtual; function setFeeConfiguration(FeeConfiguration calldata configuration) external virtual; function setSwapRouter(address newRouter) external virtual; }
{ "evmVersion": "cancun", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"address","name":"feeReceiver_","type":"address"},{"internalType":"address","name":"swapRouter_","type":"address"},{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"internalType":"struct TaxableToken.FeeConfiguration","name":"feeConfiguration_","type":"tuple"},{"internalType":"address[]","name":"collectors_","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"payable","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromAntiWhale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"FeeCollectorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"FeeCollectorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newShare","type":"uint256"}],"name":"FeeCollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"indexed":false,"internalType":"struct TaxableToken.FeeConfiguration","name":"configuration","type":"tuple"}],"name":"FeeConfigurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxTokenPerWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pairAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"isLp","type":"bool"}],"name":"SetLpPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"SwapRouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovered","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_PRECISION","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CODE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"addFeeCollector","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":[],"name":"autoProcessFees","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":[{"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":"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":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"inToken","type":"bool"}],"name":"distributeFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"feeCollectorShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeConfiguration","outputs":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromAntiWhale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isFeeCollector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pairAddress","type":"address"}],"name":"isLpPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenPerWallet","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":"numTokensToSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"processFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoProcess","type":"bool"}],"name":"setAutoprocessFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"feesInToken","type":"bool"},{"internalType":"uint16","name":"buyFees","type":"uint16"},{"internalType":"uint16","name":"sellFees","type":"uint16"},{"internalType":"uint16","name":"transferFees","type":"uint16"},{"internalType":"uint16","name":"burnFeeRatio","type":"uint16"},{"internalType":"uint16","name":"liquidityFeeRatio","type":"uint16"},{"internalType":"uint16","name":"collectorsFeeRatio","type":"uint16"}],"internalType":"struct TaxableToken.FeeConfiguration","name":"configuration","type":"tuple"}],"name":"setFeeConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"setIsExcludedFromAntiWhale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"setIsExcludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pairAddress","type":"address"},{"internalType":"bool","name":"isLp","type":"bool"}],"name":"setIsLpPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setLiquidityOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokenPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumTokensToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"setSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeCollectorsShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"updateFeeCollectorShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405260405161436038038061436083398101604081905261002291610e00565b600161003061271088610f3a565b8585858561003f60648d610f3a565b6040518060400160405280600a81526020016943726f73732057616c6b60b01b8152506040518060400160405280600381526020016243535760e81b815250601274312f313732333133302f4f2f422f522f502f572f54838381600390816100a79190610fdc565b5060046100b48282610fdc565b50505060ff90911660805260a05250506005556006805460ff191690556100e06100db3390565b61040f565b80518251146101365760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066656520636f6c6c6563746f72730000000000000000000060448201526064015b60405180910390fd5b5f5b825181101561018b5761018383828151811061015657610156611097565b602002602001015183838151811061017057610170611097565b602002602001015161046860201b60201c565b600101610138565b505050600e839055600d805460ff60a81b1916600160a81b861515021790556101b13390565b600d80546001600160a01b039283166001600160a01b031991821617909155600b805492851692909116821790556040805163c45a015560e01b815290516102b0929163c45a01559160048083019260209291908290030181865afa15801561021c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024091906110ab565b600b54604080516315ab88c960e31b8152905130926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015610287573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ab91906110ab565b61057f565b600c80546001600160a01b0319166001600160a01b039290921691821790555f908152601160205260409020805460ff191660011790556102f86102f13390565b600161067d565b61030330600161067d565b61030c81610731565b505050505f861161035f5760405162461bcd60e51b815260206004820152601d60248201527f496e697469616c20737570706c792063616e6e6f74206265207a65726f000000604482015260640161012d565b6040516001600160a01b038616903480156108fc02915f818181858888f19350505050158015610391573d5f803e3d5ffd5b50335f818152601260205260408082208054600160ff199182168117909255600c546001600160a01b03168452918320805483168217905561dead9092527f1120e10407cab1193d7c5139d9aae5536deb3d83e855f25f8e42f811c01f56f7805490911690911790556104049087610a17565b5050505050506110f9565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610473600783610adf565b156104c05760405162461bcd60e51b815260206004820152601560248201527f416c72656164792066656520636f6c6c6563746f720000000000000000000000604482015260640161012d565b5f81116104ff5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b604482015260640161012d565b61050a600783610b05565b506001600160a01b0382165f908152600960205260408120829055600a80548392906105379084906110c4565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb23906020015b60405180910390a25050565b5f805f836001600160a01b0316856001600160a01b0316106105a25783856105a5565b84845b6040516001600160601b0319606084811b8216602084015283901b166034820152919350915086906048016040516020818303038152906040528051906020012060405160200161065b9291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6001600160601b031916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6001600160a01b0382165f9081526010602052604090205481151560ff9091161515036106da5760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b604482015260640161012d565b6001600160a01b0382165f81815260106020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb9101610573565b6107d061ffff16816020015161ffff1611156107815760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b604482015260640161012d565b6107d061ffff16816040015161ffff1611156107d25760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b604482015260640161012d565b6107d061ffff16816060015161ffff1611156108305760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964207472616e7366657220666565000000000000000000000000604482015260640161012d565b5f8160c001518260a00151836080015161084a91906110d7565b61085491906110d7565b905061ffff8116158061086c575061ffff8116612710145b6108ac5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b604482015260640161012d565b8151600f805460208501516040808701516060880151608089015160a08a015160c08b015161ffff9081166b0100000000000000000000000261ffff60581b1992821669010000000000000000000261ffff60481b19948316670100000000000000029490941663ffffffff60381b19958316650100000000000261ffff60281b199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd90610a0b9084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b6001600160a01b038216610a6d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161012d565b610a785f8383610b19565b8060025f828254610a8991906110c4565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0381165f90815260018301602052604081205415155b90505b92915050565b5f610afc836001600160a01b038416610b29565b610b24838383610b75565b505050565b5f818152600183016020526040812054610b6e57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610aff565b505f610aff565b60065460ff1615610bc85760405162461bcd60e51b815260206004820152601e60248201527f45524332305061757361626c653a207472616e73666572207061757365640000604482015260640161012d565b610b248383838282826005545f14158015610bfb57506001600160a01b0382165f9081526012602052604090205460ff16155b15610c6f5760055481610c22846001600160a01b03165f9081526020819052604090205490565b610c2c91906110c4565b1115610c6f5760405162461bcd60e51b81526020600482015260126024820152710aec2d8d8cae840caf0c6cacac8e640dac2f60731b604482015260640161012d565b505050505050565b80516001600160a01b0381168114610c8d575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b0381118282101715610cc857610cc8610c92565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610cf657610cf6610c92565b604052919050565b805161ffff81168114610c8d575f80fd5b5f6001600160401b03821115610d2757610d27610c92565b5060051b60200190565b5f82601f830112610d40575f80fd5b81516020610d55610d5083610d0f565b610cce565b8083825260208201915060208460051b870101935086841115610d76575f80fd5b602086015b84811015610d9957610d8c81610c77565b8352918301918301610d7b565b509695505050505050565b5f82601f830112610db3575f80fd5b81516020610dc3610d5083610d0f565b8083825260208201915060208460051b870101935086841115610de4575f80fd5b602086015b84811015610d995780518352918301918301610de9565b5f805f805f80868803610180811215610e17575f80fd5b87519650610e2760208901610c77565b9550610e3560408901610c77565b945060e0605f1982011215610e48575f80fd5b50610e51610ca6565b60608801518015158114610e63575f80fd5b8152610e7160808901610cfe565b6020820152610e8260a08901610cfe565b6040820152610e9360c08901610cfe565b6060820152610ea460e08901610cfe565b6080820152610eb66101008901610cfe565b60a0820152610ec86101208901610cfe565b60c08201526101408801519093506001600160401b0380821115610eea575f80fd5b610ef68a838b01610d31565b9350610160890151915080821115610f0c575f80fd5b50610f1989828a01610da4565b9150509295509295509295565b634e487b7160e01b5f52601160045260245ffd5b5f82610f5457634e487b7160e01b5f52601260045260245ffd5b500490565b600181811c90821680610f6d57607f821691505b602082108103610f8b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610b2457805f5260205f20601f840160051c81016020851015610fb65750805b601f840160051c820191505b81811015610fd5575f8155600101610fc2565b5050505050565b81516001600160401b03811115610ff557610ff5610c92565b611009816110038454610f59565b84610f91565b602080601f83116001811461103c575f84156110255750858301515b5f19600386901b1c1916600185901b178555610c6f565b5f85815260208120601f198616915b8281101561106a5788860151825594840194600190910190840161104b565b508582101561108757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156110bb575f80fd5b610afc82610c77565b80820180821115610aff57610aff610f26565b61ffff8181168382160190808211156110f2576110f2610f26565b5092915050565b60805160a05161324661111a5f395f6103de01525f6104d301526132465ff3fe6080604052600436106102f6575f3560e01c8063715018a611610189578063adf18693116100d8578063e55096b011610092578063f2fde38b1161006d578063f2fde38b146109c0578063f4232d25146109df578063f725101d146109fe578063fccc281314610a1d575f80fd5b8063e55096b01461096d578063e63a391f1461098c578063e72c5717146109a1575f80fd5b8063adf18693146108b4578063b3c6e9ee146108d3578063bc063e1a146108e8578063bd82394314610910578063c31c9c071461092f578063dd62ed3e1461094e575f80fd5b80638da5cb5b1161014357806398c47e8c1161011e57806398c47e8c146107bc5780639b61f1d014610856578063a457c2d714610876578063a9059cbb14610895575f80fd5b80638da5cb5b1461075257806394b8a7031461077457806395d89b41146107a8575f80fd5b8063715018a6146106b857806372bc5583146106cc57806379cc6790146106eb5780637a8baf521461070a5780637f5bbb2c1461071f5780638456cb591461073e575f80fd5b80633502628a116102455780634569c445116101ff5780635c975abb116101da5780635c975abb1461062c5780635f3e849f146106435780636f741f2a1461066257806370a0823114610699575f80fd5b80634569c445146105b7578063490e5147146105d65780634fbee193146105f5575f80fd5b80633502628a146104fd5780633935ebf91461051c578063395093511461053b5780633b90b9bf1461055a578063412736571461057957806342966c6814610598575f80fd5b806312363f4a116102b057806323b872dd1161028b57806323b872dd1461043357806326991cc814610452578063269f534c14610489578063313ce567146104c0575f80fd5b806312363f4a146103cd57806318160ddd146104005780631fa67b4d14610414575f80fd5b806301a6c43b14610301578063046f7da21461032957806306fdde031461033f578063095ea7b3146103605780630a4e42ef1461038f5780630f569dad146103ae575f80fd5b366102fd57005b5f80fd5b34801561030c575f80fd5b50610316600e5481565b6040519081526020015b60405180910390f35b348015610334575f80fd5b5061033d610a32565b005b34801561034a575f80fd5b50610353610a44565b6040516103209190612d60565b34801561036b575f80fd5b5061037f61037a366004612da9565b610ad4565b6040519015158152602001610320565b34801561039a575f80fd5b5061033d6103a9366004612dd3565b610aed565b3480156103b9575f80fd5b5061033d6103c8366004612df3565b610b52565b3480156103d8575f80fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561040b575f80fd5b50600254610316565b34801561041f575f80fd5b5061033d61042e366004612e0a565b610b5f565b34801561043e575f80fd5b5061037f61044d366004612e25565b610b73565b34801561045d575f80fd5b50600c54610471906001600160a01b031681565b6040516001600160a01b039091168152602001610320565b348015610494575f80fd5b5061037f6104a3366004612e0a565b6001600160a01b03165f9081526012602052604090205460ff1690565b3480156104cb575f80fd5b5060405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610320565b348015610508575f80fd5b5061033d610517366004612da9565b610b96565b348015610527575f80fd5b50600d54610471906001600160a01b031681565b348015610546575f80fd5b5061037f610555366004612da9565b610ba8565b348015610565575f80fd5b5061037f610574366004612e0a565b610bc9565b348015610584575f80fd5b5061033d610593366004612e0a565b610bd5565b3480156105a3575f80fd5b5061033d6105b2366004612df3565b610be6565b3480156105c2575f80fd5b5061033d6105d1366004612e80565b610bf8565b3480156105e1575f80fd5b5061033d6105f0366004612eae565b610cac565b348015610600575f80fd5b5061037f61060f366004612e0a565b6001600160a01b03165f9081526010602052604090205460ff1690565b348015610637575f80fd5b5060065460ff1661037f565b34801561064e575f80fd5b5061033d61065d366004612e25565b610ccb565b34801561066d575f80fd5b5061037f61067c366004612e0a565b6001600160a01b03165f9081526011602052604090205460ff1690565b3480156106a4575f80fd5b506103166106b3366004612e0a565b610cde565b3480156106c3575f80fd5b5061033d610cf8565b3480156106d7575f80fd5b5061033d6106e6366004612e0a565b610d09565b3480156106f6575f80fd5b5061033d610705366004612da9565b610d33565b348015610715575f80fd5b5061031660055481565b34801561072a575f80fd5b5061033d610739366004612ec4565b610d45565b348015610749575f80fd5b5061033d610d9d565b34801561075d575f80fd5b5060065461010090046001600160a01b0316610471565b34801561077f575f80fd5b5061031661078e366004612e0a565b6001600160a01b03165f9081526009602052604090205490565b3480156107b3575f80fd5b50610353610dad565b3480156107c7575f80fd5b50600f546108149060ff81169061ffff610100820481169163010000008104821691650100000000008204811691600160381b8104821691600160481b8204811691600160581b90041687565b60408051971515885261ffff968716602089015294861694870194909452918416606086015283166080850152821660a08401521660c082015260e001610320565b348015610861575f80fd5b50600d5461037f90600160a81b900460ff1681565b348015610881575f80fd5b5061037f610890366004612da9565b610dbc565b3480156108a0575f80fd5b5061037f6108af366004612da9565b610e36565b3480156108bf575f80fd5b5061033d6108ce366004612edf565b610e43565b3480156108de575f80fd5b50610316600a5481565b3480156108f3575f80fd5b506108fd6107d081565b60405161ffff9091168152602001610320565b34801561091b575f80fd5b5061033d61092a366004612df3565b610e55565b34801561093a575f80fd5b50600b54610471906001600160a01b031681565b348015610959575f80fd5b50610316610968366004612f0b565b610e66565b348015610978575f80fd5b5061033d610987366004612edf565b610e90565b348015610997575f80fd5b506108fd61271081565b3480156109ac575f80fd5b5061033d6109bb366004612da9565b610ea2565b3480156109cb575f80fd5b5061033d6109da366004612e0a565b610eb4565b3480156109ea575f80fd5b5061033d6109f9366004612da9565b610f2a565b348015610a09575f80fd5b5061033d610a18366004612edf565b610f3c565b348015610a28575f80fd5b5061047161dead81565b610a3a610fa3565b610a42611003565b565b606060038054610a5390612f37565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f90612f37565b8015610aca5780601f10610aa157610100808354040283529160200191610aca565b820191905f5260205f20905b815481529060010190602001808311610aad57829003601f168201915b5050505050905090565b5f33610ae1818585611055565b60019150505b92915050565b610af5610fa3565b610afe30610cde565b821115610b445760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b60448201526064015b60405180910390fd5b610b4e8282611179565b5050565b610b5a610fa3565b600e55565b610b67610fa3565b610b70816112d2565b50565b5f33610b8085828561139c565b610b8b858585611414565b506001949350505050565b610b9e610fa3565b610b4e828261141f565b5f33610ae1818585610bba8383610e66565b610bc49190612f7d565b611055565b5f610ae7600783611526565b610bdd610fa3565b610b708161154a565b610bee610fa3565b610b70338261187b565b610c00610fa3565b8015610c585781610c1030610cde565b1015610c535760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610b3b565b610c9d565b81471015610c9d5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610b3b565b610ca782826119b6565b505050565b610cb4610fa3565b610b70610cc636839003830183612fa1565b611afd565b610cd3610fa3565b610ca7838383611dd4565b6001600160a01b03165f9081526020819052604090205490565b610d00610fa3565b610a425f611f31565b610d11610fa3565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610d3b610fa3565b610b4e8282611f8a565b610d4d610fa3565b801515600d60159054906101000a900460ff16151503610d7f5760405162461bcd60e51b8152600401610b3b9061305b565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610da5610fa3565b610a42612013565b606060048054610a5390612f37565b5f3381610dc98286610e66565b905083811015610e295760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b3b565b610b8b8286868403611055565b5f33610ae1818585611414565b610e4b610fa3565b610b4e8282612050565b610e5d610fa3565b610b70816120e6565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610e98610fa3565b610b4e828261218a565b610eaa610fa3565b610b4e8282612220565b610ebc610fa3565b6001600160a01b038116610f215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b3b565b610b7081611f31565b610f32610fa3565b610b4e82826122d0565b610f44610fa3565b6001600160a01b0382165f81815260126020908152604091829020805460ff191685151590811790915591519182527f46e542c7dcc512f9d4c5ef6470efcb6729025d935367e1c2c8dc49d8e35eaa8891015b60405180910390a25050565b6006546001600160a01b03610100909104163314610a425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3b565b61100b612404565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0383166110b75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b3b565b6001600160a01b0382166111185760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b3b565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600d805460ff60a01b1916600160a01b1790555f61119630610cde565b90508281106112bf57600f545f906111bb90600160381b900461ffff16612710613080565b600f5461ffff918216916111d791600160481b9004168661309b565b6111e191906130b2565b90505f6111ef6002836130b2565b90505f6111fc83876130d1565b90505f61120983856130d1565b600f5490915060ff16611223576112208282612f7d565b90505b801561129257600c5461123e906001600160a01b0316610cde565b5f0361124e5750505050506112c1565b47611259828861244d565b5f61126482476130d1565b90505f83611272878461309b565b61127c91906130b2565b9050801561128e5761128e868261259e565b5050505b600f5460ff16156112ae576112a88260016119b6565b506112ba565b6112b8475f6119b6565b505b505050505b505b5050600d805460ff60a01b19169055565b6112dd600782611526565b61131d5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b6044820152606401610b3b565b61132860078261264f565b506001600160a01b0381165f90815260096020526040812054600a8054919290916113549084906130d1565b90915550506001600160a01b0381165f81815260096020526040808220829055517f904316769e154356a5e4aad5d41591b55913c7717fab281d818c1fed7d80e8149190a250565b5f6113a78484610e66565b90505f19811461140e57818110156114015760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b3b565b61140e8484848403611055565b50505050565b610ca7838383612663565b61142a600783611526565b1561146f5760405162461bcd60e51b815260206004820152601560248201527420b63932b0b23c903332b29031b7b63632b1ba37b960591b6044820152606401610b3b565b5f81116114ae5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b6044820152606401610b3b565b6114b96007836128ec565b506001600160a01b0382165f908152600960205260408120829055600a80548392906114e6908490612f7d565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb2390602001610f97565b6001600160a01b0381165f90815260018301602052604081205415155b9392505050565b6001600160a01b0381166115915760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b6044820152606401610b3b565b600b80546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa1580156115ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061160e91906130e4565b90506001600160a01b0381166116585760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420666163746f727960881b6044820152606401610b3b565b600b54604080516315ab88c960e31b815290515f926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa15801561169f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116c391906130e4565b60405163e6a4390560e01b81523060048201526001600160a01b0380831660248301529192509083169063e6a4390590604401602060405180830381865afa158015611711573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061173591906130e4565b600c80546001600160a01b0319166001600160a01b039290921691821790556117e8576040516364e329cb60e11b81523060048201526001600160a01b03828116602483015283169063c9c65396906044016020604051808303815f875af11580156117a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117c791906130e4565b600c80546001600160a01b0319166001600160a01b03929092169190911790555b600c546001600160a01b03166118385760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103830b4b91030b2323932b9b99760591b6044820152606401610b3b565b600c54600b546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b905f90a3505050565b6001600160a01b0382166118db5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b3b565b6118e6825f83612900565b6001600160a01b0382165f90815260208190526040902054818110156119595760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b3b565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b5f825f036119c557505f610ae7565b600a545f036119d557505f610ae7565b5f806119e1600761290b565b90505f5b81811015611af1575f6119f9600783612914565b90505f611a076001856130d1565b8314611a4157600a546001600160a01b0383165f90815260096020526040902054611a32908a61309b565b611a3c91906130b2565b611a4b565b611a4b85896130d1565b90508615611a6357611a5e308383611414565b611a98565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015611a96573d5f803e3d5ffd5b505b816001600160a01b03167f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df82604051611ad391815260200190565b60405180910390a2611ae58186612f7d565b945050506001016119e5565b50600195945050505050565b6107d061ffff16816020015161ffff161115611b4d5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b6044820152606401610b3b565b6107d061ffff16816040015161ffff161115611b9e5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b6044820152606401610b3b565b6107d061ffff16816060015161ffff161115611bf35760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964207472616e736665722066656560601b6044820152606401610b3b565b5f8160c001518260a001518360800151611c0d91906130ff565b611c1791906130ff565b905061ffff81161580611c2f575061ffff8116612710145b611c6f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b6044820152606401610b3b565b8151600f805460208501516040808701516060880151608089015160a08a015160c08b015161ffff908116600160581b0261ffff60581b19928216600160481b026affff00000000000000000019948316600160381b02949094166affffffff0000000000000019958316650100000000000266ffff0000000000199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd90611dc89084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a0823190602401602060405180830381865afa158015611e18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e3c919061311a565b1015611e7b5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610b3b565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303815f875af1158015611ec7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eeb9190613131565b50816001600160a01b0316836001600160a01b03167f879f92dded0f26b83c3e00b12e0395dc72cfc3077343d1854ed6988edd1f90968360405161116c91815260200190565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f611f958333610e66565b905081811015611ffc5760405162461bcd60e51b815260206004820152602c60248201527f45524332304275726e61626c653a206275726e20616d6f756e7420657863656560448201526b647320616c6c6f77616e636560a01b6064820152608401610b3b565b6120098333848403611055565b610ca7838361187b565b61201b61291f565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110383390565b6001600160a01b0382165f9081526010602052604090205481151560ff90911615150361208f5760405162461bcd60e51b8152600401610b3b9061305b565b6001600160a01b0382165f81815260106020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb9101610f97565b80158061211257506103e86120fa60025490565b61210590600561309b565b61210f91906130b2565b81115b61214f5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f206c6f7760901b6044820152606401610b3b565b60058190556040518181527f0271c3ca991d8fa13fc3df55bfd888e9347a178a375ef6e0f63afa9639d144f49060200160405180910390a150565b6001600160a01b0382165f9081526011602052604090205481151560ff9091161515036121c95760405162461bcd60e51b8152600401610b3b9061305b565b6001600160a01b0382165f81815260116020908152604091829020805460ff191685151590811790915591519182527f902b2ea0acdec5a260e398590d055fe29bd61ef5dd41e45db54a4cd98d5569e09101610f97565b804710156122615760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610b3b565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015612294573d5f803e3d5ffd5b50816001600160a01b03167fd01205615e35ba1dd087bd6dac5922e0370961b3726c247c078cd59baae5770e82604051610f9791815260200190565b6122db600783611526565b61231b5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b6044820152606401610b3b565b5f811161235a5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b6044820152606401610b3b565b6001600160a01b0382165f90815260096020526040812054600a8054919283926123859084906130d1565b90915550506001600160a01b0383165f908152600960205260408120839055600a80548492906123b6908490612f7d565b909155505060408051828152602081018490526001600160a01b038516917fd350c3685bdab1285c0b97ffb6e96d96ed0ad4578a135c38250e771e7cb831aa910160405180910390a2505050565b60065460ff16610a425760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b3b565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106124805761248061314c565b6001600160a01b03928316602091820292909201810191909152600b54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156124d7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124fb91906130e4565b8160018151811061250e5761250e61314c565b6001600160a01b039283166020918202929092010152600b546125349130911685611055565b600b5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061256c9086908690869030904290600401613160565b5f604051808303815f87803b158015612583575f80fd5b505af1158015612595573d5f803e3d5ffd5b50505050505050565b600b546125b69030906001600160a01b031684611055565b600b54600d5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612623573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061264891906131d1565b5050505050565b5f611543836001600160a01b038416612965565b5f81116126a25760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b6044820152606401610b3b565b600d545f908190600160a01b900460ff161580156126c95750600d54600160a81b900460ff165b600d54909150600160a01b900460ff166127e8576001600160a01b038581165f81815260106020908152604080832054948916808452818420549484526011909252808320549183529091205460ff93841693928316929182169116818015612730575080155b801561273a575082155b80156127545750600b546001600160a01b03898116911614155b1561276c57600f54610100900461ffff1695506127e3565b808015612777575083155b8015612781575082155b1561279b57600f546301000000900461ffff1695506127e3565b811580156127a7575080155b80156127c15750600b546001600160a01b038a8116911614155b80156127cb575083155b156127e357600f5465010000000000900461ffff1695505b505050505b8080156127f457505f82115b801561281857506001600160a01b0385165f9081526011602052604090205460ff16155b15612840575f61282730610cde565b9050600e54811061283e5761283e600e545f611179565b505b81156128e1575f612710612854848661309b565b61285e91906130b2565b90505f61286b82866130d1565b600f549091505f906127109061288c90600160381b900461ffff168561309b565b61289691906130b2565b905080156128b7576128a881846130d1565b92506128b78861dead83612a4f565b82156128c8576128c8883085612a4f565b81156128d9576128d9888884612a4f565b505050612648565b612648858585612a4f565b5f611543836001600160a01b038416612bfc565b610ca7838383612c48565b5f610ae7825490565b5f6115438383612ca6565b60065460ff1615610a425760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b3b565b5f8181526001830160205260408120548015612a3f575f6129876001836130d1565b85549091505f9061299a906001906130d1565b90508181146129f9575f865f0182815481106129b8576129b861314c565b905f5260205f200154905080875f0184815481106129d8576129d861314c565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080612a0a57612a0a6131fc565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ae7565b5f915050610ae7565b5092915050565b6001600160a01b038316612ab35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b3b565b6001600160a01b038216612b155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b3b565b612b20838383612900565b6001600160a01b0383165f9081526020819052604090205481811015612b975760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b3b565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361140e565b5f818152600183016020526040812054612c4157508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ae7565b505f610ae7565b60065460ff1615612c9b5760405162461bcd60e51b815260206004820152601e60248201527f45524332305061757361626c653a207472616e736665722070617573656400006044820152606401610b3b565b610ca7838383612ccc565b5f825f018281548110612cbb57612cbb61314c565b905f5260205f200154905092915050565b8282826005545f14158015612cf957506001600160a01b0382165f9081526012602052604090205460ff16155b15612d585760055481612d0b84610cde565b612d159190612f7d565b1115612d585760405162461bcd60e51b81526020600482015260126024820152710aec2d8d8cae840caf0c6cacac8e640dac2f60731b6044820152606401610b3b565b505050505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610b70575f80fd5b5f8060408385031215612dba575f80fd5b8235612dc581612d95565b946020939093013593505050565b5f8060408385031215612de4575f80fd5b50508035926020909101359150565b5f60208284031215612e03575f80fd5b5035919050565b5f60208284031215612e1a575f80fd5b813561154381612d95565b5f805f60608486031215612e37575f80fd5b8335612e4281612d95565b92506020840135612e5281612d95565b929592945050506040919091013590565b8015158114610b70575f80fd5b8035612e7b81612e63565b919050565b5f8060408385031215612e91575f80fd5b823591506020830135612ea381612e63565b809150509250929050565b5f60e08284031215612ebe575f80fd5b50919050565b5f60208284031215612ed4575f80fd5b813561154381612e63565b5f8060408385031215612ef0575f80fd5b8235612efb81612d95565b91506020830135612ea381612e63565b5f8060408385031215612f1c575f80fd5b8235612f2781612d95565b91506020830135612ea381612d95565b600181811c90821680612f4b57607f821691505b602082108103612ebe57634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ae757610ae7612f69565b803561ffff81168114612e7b575f80fd5b5f60e08284031215612fb1575f80fd5b60405160e0810181811067ffffffffffffffff82111715612fe057634e487b7160e01b5f52604160045260245ffd5b604052612fec83612e70565b8152612ffa60208401612f90565b602082015261300b60408401612f90565b604082015261301c60608401612f90565b606082015261302d60808401612f90565b608082015261303e60a08401612f90565b60a082015261304f60c08401612f90565b60c08201529392505050565b6020808252600b908201526a105b1c9958591e481cd95d60aa1b604082015260600190565b61ffff828116828216039080821115612a4857612a48612f69565b8082028115828204841417610ae757610ae7612f69565b5f826130cc57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610ae757610ae7612f69565b5f602082840312156130f4575f80fd5b815161154381612d95565b61ffff818116838216019080821115612a4857612a48612f69565b5f6020828403121561312a575f80fd5b5051919050565b5f60208284031215613141575f80fd5b815161154381612e63565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156131b05784516001600160a01b03168352938301939183019160010161318b565b50506001600160a01b03969096166060850152505050608001529392505050565b5f805f606084860312156131e3575f80fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b5f52603160045260245ffdfea26469706673582212201fbb4c5befbfc3a32d703442f31c0ce4b644c325aaa79d90018b448e06a549f764736f6c6343000819003300000000000000000000000000000000000018a6e32246c99c60ad850000000000000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a3760000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dbee05026c75f0d7f4b546a43b8a3e06cdc71e7e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode
0x6080604052600436106102f6575f3560e01c8063715018a611610189578063adf18693116100d8578063e55096b011610092578063f2fde38b1161006d578063f2fde38b146109c0578063f4232d25146109df578063f725101d146109fe578063fccc281314610a1d575f80fd5b8063e55096b01461096d578063e63a391f1461098c578063e72c5717146109a1575f80fd5b8063adf18693146108b4578063b3c6e9ee146108d3578063bc063e1a146108e8578063bd82394314610910578063c31c9c071461092f578063dd62ed3e1461094e575f80fd5b80638da5cb5b1161014357806398c47e8c1161011e57806398c47e8c146107bc5780639b61f1d014610856578063a457c2d714610876578063a9059cbb14610895575f80fd5b80638da5cb5b1461075257806394b8a7031461077457806395d89b41146107a8575f80fd5b8063715018a6146106b857806372bc5583146106cc57806379cc6790146106eb5780637a8baf521461070a5780637f5bbb2c1461071f5780638456cb591461073e575f80fd5b80633502628a116102455780634569c445116101ff5780635c975abb116101da5780635c975abb1461062c5780635f3e849f146106435780636f741f2a1461066257806370a0823114610699575f80fd5b80634569c445146105b7578063490e5147146105d65780634fbee193146105f5575f80fd5b80633502628a146104fd5780633935ebf91461051c578063395093511461053b5780633b90b9bf1461055a578063412736571461057957806342966c6814610598575f80fd5b806312363f4a116102b057806323b872dd1161028b57806323b872dd1461043357806326991cc814610452578063269f534c14610489578063313ce567146104c0575f80fd5b806312363f4a146103cd57806318160ddd146104005780631fa67b4d14610414575f80fd5b806301a6c43b14610301578063046f7da21461032957806306fdde031461033f578063095ea7b3146103605780630a4e42ef1461038f5780630f569dad146103ae575f80fd5b366102fd57005b5f80fd5b34801561030c575f80fd5b50610316600e5481565b6040519081526020015b60405180910390f35b348015610334575f80fd5b5061033d610a32565b005b34801561034a575f80fd5b50610353610a44565b6040516103209190612d60565b34801561036b575f80fd5b5061037f61037a366004612da9565b610ad4565b6040519015158152602001610320565b34801561039a575f80fd5b5061033d6103a9366004612dd3565b610aed565b3480156103b9575f80fd5b5061033d6103c8366004612df3565b610b52565b3480156103d8575f80fd5b506103167f0000000000000000000000312f313732333133302f4f2f422f522f502f572f5481565b34801561040b575f80fd5b50600254610316565b34801561041f575f80fd5b5061033d61042e366004612e0a565b610b5f565b34801561043e575f80fd5b5061037f61044d366004612e25565b610b73565b34801561045d575f80fd5b50600c54610471906001600160a01b031681565b6040516001600160a01b039091168152602001610320565b348015610494575f80fd5b5061037f6104a3366004612e0a565b6001600160a01b03165f9081526012602052604090205460ff1690565b3480156104cb575f80fd5b5060405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152602001610320565b348015610508575f80fd5b5061033d610517366004612da9565b610b96565b348015610527575f80fd5b50600d54610471906001600160a01b031681565b348015610546575f80fd5b5061037f610555366004612da9565b610ba8565b348015610565575f80fd5b5061037f610574366004612e0a565b610bc9565b348015610584575f80fd5b5061033d610593366004612e0a565b610bd5565b3480156105a3575f80fd5b5061033d6105b2366004612df3565b610be6565b3480156105c2575f80fd5b5061033d6105d1366004612e80565b610bf8565b3480156105e1575f80fd5b5061033d6105f0366004612eae565b610cac565b348015610600575f80fd5b5061037f61060f366004612e0a565b6001600160a01b03165f9081526010602052604090205460ff1690565b348015610637575f80fd5b5060065460ff1661037f565b34801561064e575f80fd5b5061033d61065d366004612e25565b610ccb565b34801561066d575f80fd5b5061037f61067c366004612e0a565b6001600160a01b03165f9081526011602052604090205460ff1690565b3480156106a4575f80fd5b506103166106b3366004612e0a565b610cde565b3480156106c3575f80fd5b5061033d610cf8565b3480156106d7575f80fd5b5061033d6106e6366004612e0a565b610d09565b3480156106f6575f80fd5b5061033d610705366004612da9565b610d33565b348015610715575f80fd5b5061031660055481565b34801561072a575f80fd5b5061033d610739366004612ec4565b610d45565b348015610749575f80fd5b5061033d610d9d565b34801561075d575f80fd5b5060065461010090046001600160a01b0316610471565b34801561077f575f80fd5b5061031661078e366004612e0a565b6001600160a01b03165f9081526009602052604090205490565b3480156107b3575f80fd5b50610353610dad565b3480156107c7575f80fd5b50600f546108149060ff81169061ffff610100820481169163010000008104821691650100000000008204811691600160381b8104821691600160481b8204811691600160581b90041687565b60408051971515885261ffff968716602089015294861694870194909452918416606086015283166080850152821660a08401521660c082015260e001610320565b348015610861575f80fd5b50600d5461037f90600160a81b900460ff1681565b348015610881575f80fd5b5061037f610890366004612da9565b610dbc565b3480156108a0575f80fd5b5061037f6108af366004612da9565b610e36565b3480156108bf575f80fd5b5061033d6108ce366004612edf565b610e43565b3480156108de575f80fd5b50610316600a5481565b3480156108f3575f80fd5b506108fd6107d081565b60405161ffff9091168152602001610320565b34801561091b575f80fd5b5061033d61092a366004612df3565b610e55565b34801561093a575f80fd5b50600b54610471906001600160a01b031681565b348015610959575f80fd5b50610316610968366004612f0b565b610e66565b348015610978575f80fd5b5061033d610987366004612edf565b610e90565b348015610997575f80fd5b506108fd61271081565b3480156109ac575f80fd5b5061033d6109bb366004612da9565b610ea2565b3480156109cb575f80fd5b5061033d6109da366004612e0a565b610eb4565b3480156109ea575f80fd5b5061033d6109f9366004612da9565b610f2a565b348015610a09575f80fd5b5061033d610a18366004612edf565b610f3c565b348015610a28575f80fd5b5061047161dead81565b610a3a610fa3565b610a42611003565b565b606060038054610a5390612f37565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f90612f37565b8015610aca5780601f10610aa157610100808354040283529160200191610aca565b820191905f5260205f20905b815481529060010190602001808311610aad57829003601f168201915b5050505050905090565b5f33610ae1818585611055565b60019150505b92915050565b610af5610fa3565b610afe30610cde565b821115610b445760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b60448201526064015b60405180910390fd5b610b4e8282611179565b5050565b610b5a610fa3565b600e55565b610b67610fa3565b610b70816112d2565b50565b5f33610b8085828561139c565b610b8b858585611414565b506001949350505050565b610b9e610fa3565b610b4e828261141f565b5f33610ae1818585610bba8383610e66565b610bc49190612f7d565b611055565b5f610ae7600783611526565b610bdd610fa3565b610b708161154a565b610bee610fa3565b610b70338261187b565b610c00610fa3565b8015610c585781610c1030610cde565b1015610c535760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610b3b565b610c9d565b81471015610c9d5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610b3b565b610ca782826119b6565b505050565b610cb4610fa3565b610b70610cc636839003830183612fa1565b611afd565b610cd3610fa3565b610ca7838383611dd4565b6001600160a01b03165f9081526020819052604090205490565b610d00610fa3565b610a425f611f31565b610d11610fa3565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610d3b610fa3565b610b4e8282611f8a565b610d4d610fa3565b801515600d60159054906101000a900460ff16151503610d7f5760405162461bcd60e51b8152600401610b3b9061305b565b600d8054911515600160a81b0260ff60a81b19909216919091179055565b610da5610fa3565b610a42612013565b606060048054610a5390612f37565b5f3381610dc98286610e66565b905083811015610e295760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b3b565b610b8b8286868403611055565b5f33610ae1818585611414565b610e4b610fa3565b610b4e8282612050565b610e5d610fa3565b610b70816120e6565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610e98610fa3565b610b4e828261218a565b610eaa610fa3565b610b4e8282612220565b610ebc610fa3565b6001600160a01b038116610f215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b3b565b610b7081611f31565b610f32610fa3565b610b4e82826122d0565b610f44610fa3565b6001600160a01b0382165f81815260126020908152604091829020805460ff191685151590811790915591519182527f46e542c7dcc512f9d4c5ef6470efcb6729025d935367e1c2c8dc49d8e35eaa8891015b60405180910390a25050565b6006546001600160a01b03610100909104163314610a425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3b565b61100b612404565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0383166110b75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b3b565b6001600160a01b0382166111185760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b3b565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600d805460ff60a01b1916600160a01b1790555f61119630610cde565b90508281106112bf57600f545f906111bb90600160381b900461ffff16612710613080565b600f5461ffff918216916111d791600160481b9004168661309b565b6111e191906130b2565b90505f6111ef6002836130b2565b90505f6111fc83876130d1565b90505f61120983856130d1565b600f5490915060ff16611223576112208282612f7d565b90505b801561129257600c5461123e906001600160a01b0316610cde565b5f0361124e5750505050506112c1565b47611259828861244d565b5f61126482476130d1565b90505f83611272878461309b565b61127c91906130b2565b9050801561128e5761128e868261259e565b5050505b600f5460ff16156112ae576112a88260016119b6565b506112ba565b6112b8475f6119b6565b505b505050505b505b5050600d805460ff60a01b19169055565b6112dd600782611526565b61131d5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b6044820152606401610b3b565b61132860078261264f565b506001600160a01b0381165f90815260096020526040812054600a8054919290916113549084906130d1565b90915550506001600160a01b0381165f81815260096020526040808220829055517f904316769e154356a5e4aad5d41591b55913c7717fab281d818c1fed7d80e8149190a250565b5f6113a78484610e66565b90505f19811461140e57818110156114015760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b3b565b61140e8484848403611055565b50505050565b610ca7838383612663565b61142a600783611526565b1561146f5760405162461bcd60e51b815260206004820152601560248201527420b63932b0b23c903332b29031b7b63632b1ba37b960591b6044820152606401610b3b565b5f81116114ae5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b6044820152606401610b3b565b6114b96007836128ec565b506001600160a01b0382165f908152600960205260408120829055600a80548392906114e6908490612f7d565b90915550506040518181526001600160a01b038316907f918584c21fe4a093f5014c0dabaed3e43b642781e27984aef122cae8245fbb2390602001610f97565b6001600160a01b0381165f90815260018301602052604081205415155b9392505050565b6001600160a01b0381166115915760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b6044820152606401610b3b565b600b80546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa1580156115ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061160e91906130e4565b90506001600160a01b0381166116585760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420666163746f727960881b6044820152606401610b3b565b600b54604080516315ab88c960e31b815290515f926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa15801561169f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116c391906130e4565b60405163e6a4390560e01b81523060048201526001600160a01b0380831660248301529192509083169063e6a4390590604401602060405180830381865afa158015611711573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061173591906130e4565b600c80546001600160a01b0319166001600160a01b039290921691821790556117e8576040516364e329cb60e11b81523060048201526001600160a01b03828116602483015283169063c9c65396906044016020604051808303815f875af11580156117a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117c791906130e4565b600c80546001600160a01b0319166001600160a01b03929092169190911790555b600c546001600160a01b03166118385760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103830b4b91030b2323932b9b99760591b6044820152606401610b3b565b600c54600b546040516001600160a01b0392831692909116907fca394f95d8dbf1e8b2e76b9a8da90cacce1da85181a65508dab13212dc1df53b905f90a3505050565b6001600160a01b0382166118db5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b3b565b6118e6825f83612900565b6001600160a01b0382165f90815260208190526040902054818110156119595760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b3b565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b5f825f036119c557505f610ae7565b600a545f036119d557505f610ae7565b5f806119e1600761290b565b90505f5b81811015611af1575f6119f9600783612914565b90505f611a076001856130d1565b8314611a4157600a546001600160a01b0383165f90815260096020526040902054611a32908a61309b565b611a3c91906130b2565b611a4b565b611a4b85896130d1565b90508615611a6357611a5e308383611414565b611a98565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015611a96573d5f803e3d5ffd5b505b816001600160a01b03167f06c5efeff5c320943d265dc4e5f1af95ad523555ce0c1957e367dda5514572df82604051611ad391815260200190565b60405180910390a2611ae58186612f7d565b945050506001016119e5565b50600195945050505050565b6107d061ffff16816020015161ffff161115611b4d5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206275792066656560881b6044820152606401610b3b565b6107d061ffff16816040015161ffff161115611b9e5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642073656c6c2066656560801b6044820152606401610b3b565b6107d061ffff16816060015161ffff161115611bf35760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964207472616e736665722066656560601b6044820152606401610b3b565b5f8160c001518260a001518360800151611c0d91906130ff565b611c1791906130ff565b905061ffff81161580611c2f575061ffff8116612710145b611c6f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642066656520736861726560781b6044820152606401610b3b565b8151600f805460208501516040808701516060880151608089015160a08a015160c08b015161ffff908116600160581b0261ffff60581b19928216600160481b026affff00000000000000000019948316600160381b02949094166affffffff0000000000000019958316650100000000000266ffff0000000000199784166301000000029790971666ffffffff00000019939099166101000262ffff00199c15159c909c1662ffffff19909a16999099179a909a1716959095179290921716939093179290921716929092179055517ff34b49a91d91598b7774795175736ebf4db4fa5a4edf72772cf50fb27c135efd90611dc89084905f60e082019050825115158252602083015161ffff80821660208501528060408601511660408501528060608601511660608501528060808601511660808501528060a08601511660a08501528060c08601511660c0850152505092915050565b60405180910390a15050565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a0823190602401602060405180830381865afa158015611e18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e3c919061311a565b1015611e7b5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610b3b565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303815f875af1158015611ec7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eeb9190613131565b50816001600160a01b0316836001600160a01b03167f879f92dded0f26b83c3e00b12e0395dc72cfc3077343d1854ed6988edd1f90968360405161116c91815260200190565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f611f958333610e66565b905081811015611ffc5760405162461bcd60e51b815260206004820152602c60248201527f45524332304275726e61626c653a206275726e20616d6f756e7420657863656560448201526b647320616c6c6f77616e636560a01b6064820152608401610b3b565b6120098333848403611055565b610ca7838361187b565b61201b61291f565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110383390565b6001600160a01b0382165f9081526010602052604090205481151560ff90911615150361208f5760405162461bcd60e51b8152600401610b3b9061305b565b6001600160a01b0382165f81815260106020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb9101610f97565b80158061211257506103e86120fa60025490565b61210590600561309b565b61210f91906130b2565b81115b61214f5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f206c6f7760901b6044820152606401610b3b565b60058190556040518181527f0271c3ca991d8fa13fc3df55bfd888e9347a178a375ef6e0f63afa9639d144f49060200160405180910390a150565b6001600160a01b0382165f9081526011602052604090205481151560ff9091161515036121c95760405162461bcd60e51b8152600401610b3b9061305b565b6001600160a01b0382165f81815260116020908152604091829020805460ff191685151590811790915591519182527f902b2ea0acdec5a260e398590d055fe29bd61ef5dd41e45db54a4cd98d5569e09101610f97565b804710156122615760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610b3b565b6040516001600160a01b0383169082156108fc029083905f818181858888f19350505050158015612294573d5f803e3d5ffd5b50816001600160a01b03167fd01205615e35ba1dd087bd6dac5922e0370961b3726c247c078cd59baae5770e82604051610f9791815260200190565b6122db600783611526565b61231b5760405162461bcd60e51b81526020600482015260116024820152702737ba103332b29031b7b63632b1ba37b960791b6044820152606401610b3b565b5f811161235a5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420736861726560981b6044820152606401610b3b565b6001600160a01b0382165f90815260096020526040812054600a8054919283926123859084906130d1565b90915550506001600160a01b0383165f908152600960205260408120839055600a80548492906123b6908490612f7d565b909155505060408051828152602081018490526001600160a01b038516917fd350c3685bdab1285c0b97ffb6e96d96ed0ad4578a135c38250e771e7cb831aa910160405180910390a2505050565b60065460ff16610a425760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b3b565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106124805761248061314c565b6001600160a01b03928316602091820292909201810191909152600b54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156124d7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124fb91906130e4565b8160018151811061250e5761250e61314c565b6001600160a01b039283166020918202929092010152600b546125349130911685611055565b600b5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061256c9086908690869030904290600401613160565b5f604051808303815f87803b158015612583575f80fd5b505af1158015612595573d5f803e3d5ffd5b50505050505050565b600b546125b69030906001600160a01b031684611055565b600b54600d5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612623573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061264891906131d1565b5050505050565b5f611543836001600160a01b038416612965565b5f81116126a25760405162461bcd60e51b815260206004820152600d60248201526c05472616e73666572203c3d203609c1b6044820152606401610b3b565b600d545f908190600160a01b900460ff161580156126c95750600d54600160a81b900460ff165b600d54909150600160a01b900460ff166127e8576001600160a01b038581165f81815260106020908152604080832054948916808452818420549484526011909252808320549183529091205460ff93841693928316929182169116818015612730575080155b801561273a575082155b80156127545750600b546001600160a01b03898116911614155b1561276c57600f54610100900461ffff1695506127e3565b808015612777575083155b8015612781575082155b1561279b57600f546301000000900461ffff1695506127e3565b811580156127a7575080155b80156127c15750600b546001600160a01b038a8116911614155b80156127cb575083155b156127e357600f5465010000000000900461ffff1695505b505050505b8080156127f457505f82115b801561281857506001600160a01b0385165f9081526011602052604090205460ff16155b15612840575f61282730610cde565b9050600e54811061283e5761283e600e545f611179565b505b81156128e1575f612710612854848661309b565b61285e91906130b2565b90505f61286b82866130d1565b600f549091505f906127109061288c90600160381b900461ffff168561309b565b61289691906130b2565b905080156128b7576128a881846130d1565b92506128b78861dead83612a4f565b82156128c8576128c8883085612a4f565b81156128d9576128d9888884612a4f565b505050612648565b612648858585612a4f565b5f611543836001600160a01b038416612bfc565b610ca7838383612c48565b5f610ae7825490565b5f6115438383612ca6565b60065460ff1615610a425760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b3b565b5f8181526001830160205260408120548015612a3f575f6129876001836130d1565b85549091505f9061299a906001906130d1565b90508181146129f9575f865f0182815481106129b8576129b861314c565b905f5260205f200154905080875f0184815481106129d8576129d861314c565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080612a0a57612a0a6131fc565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ae7565b5f915050610ae7565b5092915050565b6001600160a01b038316612ab35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b3b565b6001600160a01b038216612b155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b3b565b612b20838383612900565b6001600160a01b0383165f9081526020819052604090205481811015612b975760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b3b565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361140e565b5f818152600183016020526040812054612c4157508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ae7565b505f610ae7565b60065460ff1615612c9b5760405162461bcd60e51b815260206004820152601e60248201527f45524332305061757361626c653a207472616e736665722070617573656400006044820152606401610b3b565b610ca7838383612ccc565b5f825f018281548110612cbb57612cbb61314c565b905f5260205f200154905092915050565b8282826005545f14158015612cf957506001600160a01b0382165f9081526012602052604090205460ff16155b15612d585760055481612d0b84610cde565b612d159190612f7d565b1115612d585760405162461bcd60e51b81526020600482015260126024820152710aec2d8d8cae840caf0c6cacac8e640dac2f60731b6044820152606401610b3b565b505050505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610b70575f80fd5b5f8060408385031215612dba575f80fd5b8235612dc581612d95565b946020939093013593505050565b5f8060408385031215612de4575f80fd5b50508035926020909101359150565b5f60208284031215612e03575f80fd5b5035919050565b5f60208284031215612e1a575f80fd5b813561154381612d95565b5f805f60608486031215612e37575f80fd5b8335612e4281612d95565b92506020840135612e5281612d95565b929592945050506040919091013590565b8015158114610b70575f80fd5b8035612e7b81612e63565b919050565b5f8060408385031215612e91575f80fd5b823591506020830135612ea381612e63565b809150509250929050565b5f60e08284031215612ebe575f80fd5b50919050565b5f60208284031215612ed4575f80fd5b813561154381612e63565b5f8060408385031215612ef0575f80fd5b8235612efb81612d95565b91506020830135612ea381612e63565b5f8060408385031215612f1c575f80fd5b8235612f2781612d95565b91506020830135612ea381612d95565b600181811c90821680612f4b57607f821691505b602082108103612ebe57634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ae757610ae7612f69565b803561ffff81168114612e7b575f80fd5b5f60e08284031215612fb1575f80fd5b60405160e0810181811067ffffffffffffffff82111715612fe057634e487b7160e01b5f52604160045260245ffd5b604052612fec83612e70565b8152612ffa60208401612f90565b602082015261300b60408401612f90565b604082015261301c60608401612f90565b606082015261302d60808401612f90565b608082015261303e60a08401612f90565b60a082015261304f60c08401612f90565b60c08201529392505050565b6020808252600b908201526a105b1c9958591e481cd95d60aa1b604082015260600190565b61ffff828116828216039080821115612a4857612a48612f69565b8082028115828204841417610ae757610ae7612f69565b5f826130cc57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610ae757610ae7612f69565b5f602082840312156130f4575f80fd5b815161154381612d95565b61ffff818116838216019080821115612a4857612a48612f69565b5f6020828403121561312a575f80fd5b5051919050565b5f60208284031215613141575f80fd5b815161154381612e63565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156131b05784516001600160a01b03168352938301939183019160010161318b565b50506001600160a01b03969096166060850152505050608001529392505050565b5f805f606084860312156131e3575f80fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b5f52603160045260245ffdfea26469706673582212201fbb4c5befbfc3a32d703442f31c0ce4b644c325aaa79d90018b448e06a549f764736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000018a6e32246c99c60ad850000000000000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a3760000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dbee05026c75f0d7f4b546a43b8a3e06cdc71e7e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
-----Decoded View---------------
Arg [0] : initialSupply_ (uint256): 500000000000000000000000000000000
Arg [1] : feeReceiver_ (address): 0x66f2e5F3bBeEF5E20792AE26162134961b00a376
Arg [2] : swapRouter_ (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : feeConfiguration_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [4] : collectors_ (address[]): 0xdbee05026C75f0D7F4b546a43B8a3e06cdc71E7E
Arg [5] : shares_ (uint256[]): 10000
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000018a6e32246c99c60ad8500000000
Arg [1] : 00000000000000000000000066f2e5f3bbeef5e20792ae26162134961b00a376
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [9] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [11] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 000000000000000000000000dbee05026c75f0d7f4b546a43b8a3e06cdc71e7e
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [15] : 0000000000000000000000000000000000000000000000000000000000002710
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.