ERC-20
Overview
Max Total Supply
1,000,000,000 DGC
Holders
50
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
125,584.857932445638995977 DGCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DegenCapital
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // hevm: flattened sources of src/DegenCapital.sol pragma solidity ^0.8.0 <0.9.0; pragma experimental ABIEncoderV2; ////// lib/openzeppelin-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.0 (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; } } ////// lib/openzeppelin-contracts/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } ////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) /* pragma solidity ^0.8.0; */ /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } ////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.0 (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); } ////// lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts v4.4.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } ////// lib/openzeppelin-contracts/contracts/utils/Address.sol // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) /* pragma solidity ^0.8.0; */ /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } ////// lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) /* pragma solidity ^0.8.0; */ // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } ////// src/IUniswapV2Factory.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } ////// src/IUniswapV2Pair.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } ////// src/IUniswapV2Router02.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } ////// src/DegenCapital.sol /** DegenCapital - Microcap DeFi 3.0 investment fund - You buy DEGEN token, we invest in micro cap coins and you receive a % of the profits Tax for Buying/Selling: 10% - 4% of each transaction sent to the treasury wallet - 3% of each transaction sent to holders as ETH dividends - 2% of each transaction sent to the Uniswap V2 liquidity pool - 1% of each tramsaction sent to the developers (treasury managers) Earning Dashboard: https://degencapital.finance */ /* pragma solidity 0.8.10; */ /* import {ERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; */ /* import {IERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; */ /* import {Ownable} from "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; */ /* import {Address} from "lib/openzeppelin-contracts/contracts/utils/Address.sol"; */ /* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */ /* import {IUniswapV2Router02} from "./IUniswapV2Router02.sol"; */ /* import {IUniswapV2Factory} from "./IUniswapV2Factory.sol"; */ /* import {IUniswapV2Pair} from "./IUniswapV2Pair.sol"; */ contract DegenCapital is Ownable, IERC20 { address UNISWAPROUTER = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address DEAD = 0x000000000000000000000000000000000000dEaD; address ZERO = 0x0000000000000000000000000000000000000000; string private _name = "Degen Capital"; string private _symbol = "DGC"; uint256 public devFeeBPS = 100; uint256 public treasuryFeeBPS = 400; uint256 public liquidityFeeBPS = 200; uint256 public dividendFeeBPS = 300; uint256 public totalFeeBPS = 1000; uint256 public swapTokensAtAmount = 100000 * (10**18); uint256 public lastSwapTime; bool swapAllToken = true; bool public swapEnabled = true; bool public taxEnabled = true; bool public compoundingEnabled = true; uint256 private _totalSupply; bool private swapping; address treasuryWallet; address liquidityWallet; address devWallet; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFees; mapping(address => bool) public automatedMarketMakerPairs; mapping(address => bool) private _whiteList; mapping(address => bool) isBlacklisted; event SwapAndAddLiquidity(uint256 tokensSwapped, uint256 nativeReceived, uint256 tokensIntoLiquidity); event SendDividends(uint256 tokensSwapped, uint256 amount); event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress); event SwapEnabled(bool enabled); event TaxEnabled(bool enabled); event CompoundingEnabled(bool enabled); event BlacklistEnabled(bool enabled); DividendTracker public dividendTracker; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; uint256 public maxTxBPS = 200; uint256 public maxWalletBPS = 200; bool isOpen = false; mapping(address => bool) private _isExcludedFromMaxTx; mapping(address => bool) private _isExcludedFromMaxWallet; constructor(address _treasuryWallet, address _liquidityWallet, address _devWallet, address[] memory whitelistAddress) { treasuryWallet = _treasuryWallet; liquidityWallet = _liquidityWallet; devWallet = _devWallet; includeToWhiteList(whitelistAddress); dividendTracker = new DividendTracker(address(this), UNISWAPROUTER); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(UNISWAPROUTER); address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; _setAutomatedMarketMakerPair(_uniswapV2Pair, true); dividendTracker.excludeFromDividends(address(dividendTracker), true); dividendTracker.excludeFromDividends(address(this), true); dividendTracker.excludeFromDividends(owner(), true); dividendTracker.excludeFromDividends(address(_uniswapV2Router), true); excludeFromFees(owner(), true); excludeFromFees(address(this), true); excludeFromFees(address(dividendTracker), true); excludeFromMaxTx(owner(), true); excludeFromMaxTx(address(this), true); excludeFromMaxTx(address(dividendTracker), true); excludeFromMaxWallet(owner(), true); excludeFromMaxWallet(address(this), true); excludeFromMaxWallet(address(dividendTracker), true); _mint(owner(), 1000000000 * (10**18)); } receive() external payable {} function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return 18; } function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "DegenCapital: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "DegenCapital: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } function openTrading() external onlyOwner { isOpen = true; } function _transfer(address sender, address recipient, uint256 amount) internal { require(isOpen || sender == owner() || recipient == owner() || _whiteList[sender] || _whiteList[recipient], "Not Open"); require(!isBlacklisted[sender], "DegenCapital: Sender is blacklisted"); require(!isBlacklisted[recipient], "DegenCapital: Recipient is blacklisted"); require(sender != address(0), "DegenCapital: transfer from the zero address"); require(recipient != address(0), "DegenCapital: transfer to the zero address"); uint256 _maxTxAmount = (totalSupply() * maxTxBPS) / 10000; uint256 _maxWallet = (totalSupply() * maxWalletBPS) / 10000; require(amount <= _maxTxAmount || _isExcludedFromMaxTx[sender], "TX Limit Exceeded"); if (sender != owner() && recipient != address(this) && recipient != address(DEAD) && recipient != uniswapV2Pair) { uint256 currentBalance = balanceOf(recipient); require(_isExcludedFromMaxWallet[recipient] || (currentBalance + amount <= _maxWallet)); } uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "DegenCapital: transfer amount exceeds balance"); uint256 contractTokenBalance = balanceOf(address(this)); uint256 contractNativeBalance = address(this).balance; bool canSwap = contractTokenBalance >= swapTokensAtAmount; if (swapEnabled && canSwap && !swapping && !automatedMarketMakerPairs[sender] && sender != address(uniswapV2Router) && sender != owner() && recipient != owner()) { swapping = true; if (!swapAllToken) { contractTokenBalance = swapTokensAtAmount; } _executeSwap(contractTokenBalance, contractNativeBalance); lastSwapTime = block.timestamp; swapping = false; } bool takeFee; if (sender == address(uniswapV2Pair) || recipient == address(uniswapV2Pair)) { takeFee = true; } if (_isExcludedFromFees[sender] || _isExcludedFromFees[recipient]) { takeFee = false; } if (swapping || !taxEnabled) { takeFee = false; } if (takeFee) { uint256 fees = (amount * totalFeeBPS) / 10000; amount -= fees; _executeTransfer(sender, address(this), fees); } _executeTransfer(sender, recipient, amount); dividendTracker.setBalance(payable(sender), balanceOf(sender)); dividendTracker.setBalance(payable(recipient), balanceOf(recipient)); } function _executeTransfer(address sender, address recipient, uint256 amount) private { require(sender != address(0), "DegenCapital: transfer from the zero address"); require(recipient != address(0), "DegenCapital: transfer to the zero address"); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "DegenCapital: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } function _approve(address owner, address spender, uint256 amount) private { require(owner != address(0), "DegenCapital: approve from the zero address"); require(spender != address(0), "DegenCapital: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _mint(address account, uint256 amount) private { require(account != address(0), "DegenCapital: mint to the zero address"); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } function _burn(address account, uint256 amount) private { require(account != address(0), "DegenCapital: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "DegenCapital: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } function swapTokensForNative(uint256 tokens) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokens); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokens, 0, // accept any amount of native path, address(this), block.timestamp ); } function addLiquidity(uint256 tokens, uint256 native) private { _approve(address(this), address(uniswapV2Router), tokens); uniswapV2Router.addLiquidityETH{value: native}( address(this), tokens, 0, // slippage unavoidable 0, // slippage unavoidable liquidityWallet, block.timestamp ); } function includeToWhiteList(address[] memory _users) private { for (uint8 i = 0; i < _users.length; i++) { _whiteList[_users[i]] = true; } } function _executeSwap(uint256 tokens, uint256 native) private { if (tokens <= 0) { return; } uint256 swapTokensTreasury; if (address(treasuryWallet) != address(0)) { swapTokensTreasury = (tokens * treasuryFeeBPS) / totalFeeBPS; } uint256 swapTokensDividends; if (dividendTracker.totalSupply() > 0) { swapTokensDividends = (tokens * dividendFeeBPS) / totalFeeBPS; } uint256 swapTokensDev; if (address(devWallet) != address(0)) { swapTokensDev = (tokens * devFeeBPS) / totalFeeBPS; } uint256 tokensForLiquidity = tokens - swapTokensTreasury - swapTokensDividends - swapTokensDev; uint256 swapTokensLiquidity = tokensForLiquidity / 2; uint256 addTokensLiquidity = tokensForLiquidity - swapTokensLiquidity; uint256 swapTokensTotal = swapTokensTreasury + swapTokensDividends + swapTokensLiquidity + swapTokensDev; uint256 initNativeBal = address(this).balance; swapTokensForNative(swapTokensTotal); uint256 nativeSwapped = (address(this).balance - initNativeBal) + native; uint256 nativeTreasury = (nativeSwapped * swapTokensTreasury) / swapTokensTotal; uint256 nativeDev = (nativeSwapped * swapTokensDev) / swapTokensTotal; uint256 nativeDividends = (nativeSwapped * swapTokensDividends) / swapTokensTotal; uint256 nativeLiquidity = nativeSwapped - nativeTreasury - nativeDev - nativeDividends; if (nativeTreasury > 0) { payable(treasuryWallet).transfer(nativeTreasury); } if (nativeDev > 0) { payable(devWallet).transfer(nativeDev); } addLiquidity(addTokensLiquidity, nativeLiquidity); emit SwapAndAddLiquidity(swapTokensLiquidity, nativeLiquidity, addTokensLiquidity); if (nativeDividends > 0) { (bool success, ) = address(dividendTracker).call{value: nativeDividends}(""); if (success) { emit SendDividends(swapTokensDividends, nativeDividends); } } } function excludeFromFees(address account, bool excluded) public onlyOwner { require(_isExcludedFromFees[account] != excluded, "DegenCapital: account is already set to requested state"); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function manualSendDividend(uint256 amount, address holder) external onlyOwner { dividendTracker.manualSendDividend(amount, holder); } function excludeFromDividends(address account, bool excluded) public onlyOwner { dividendTracker.excludeFromDividends(account, excluded); } function isExcludedFromDividends(address account) public view returns (bool) { return dividendTracker.isExcludedFromDividends(account); } function setWallet(address payable _treasuryWallet, address payable _liquidityWallet, address payable _devWallet) external onlyOwner { treasuryWallet = _treasuryWallet; liquidityWallet = _liquidityWallet; devWallet = _devWallet; } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "DegenCapital: DEX pair can not be removed"); _setAutomatedMarketMakerPair(pair, value); } function setFee(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _dividendFee, uint256 _devFee) external onlyOwner { treasuryFeeBPS = _treasuryFee; liquidityFeeBPS = _liquidityFee; dividendFeeBPS = _dividendFee; devFeeBPS = _devFee; totalFeeBPS = _treasuryFee + _liquidityFee + _dividendFee + _devFee; } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "DegenCapital: automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if (value) { dividendTracker.excludeFromDividends(pair, true); } emit SetAutomatedMarketMakerPair(pair, value); } function updateUniswapV2Router(address newAddress) public onlyOwner { require(newAddress != address(uniswapV2Router), "DegenCapital: the router is already set to the new address"); emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router)); uniswapV2Router = IUniswapV2Router02(newAddress); address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); uniswapV2Pair = _uniswapV2Pair; } function claim() public { dividendTracker.processAccount(payable(_msgSender())); } function compound() public { require(compoundingEnabled, "DegenCapital: compounding is not enabled"); dividendTracker.compoundAccount(payable(_msgSender())); } function withdrawableDividendOf(address account) public view returns (uint256) { return dividendTracker.withdrawableDividendOf(account); } function withdrawnDividendOf(address account) public view returns (uint256) { return dividendTracker.withdrawnDividendOf(account); } function accumulativeDividendOf(address account) public view returns (uint256) { return dividendTracker.accumulativeDividendOf(account); } function getAccountInfo(address account) public view returns (address, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountInfo(account); } function getLastClaimTime(address account) public view returns (uint256) { return dividendTracker.getLastClaimTime(account); } function setSwapEnabled(bool _enabled) external onlyOwner { swapEnabled = _enabled; emit SwapEnabled(_enabled); } function setTaxEnabled(bool _enabled) external onlyOwner { taxEnabled = _enabled; emit TaxEnabled(_enabled); } function setCompoundingEnabled(bool _enabled) external onlyOwner { compoundingEnabled = _enabled; emit CompoundingEnabled(_enabled); } function updateDividendSettings(bool _swapEnabled, uint256 _swapTokensAtAmount, bool _swapAllToken) external onlyOwner { swapEnabled = _swapEnabled; swapTokensAtAmount = _swapTokensAtAmount; swapAllToken = _swapAllToken; } function setMaxTxBPS(uint256 bps) external onlyOwner { require(bps >= 75 && bps <= 10000, "BPS must be between 75 and 10000"); maxTxBPS = bps; } function excludeFromMaxTx(address account, bool excluded) public onlyOwner { _isExcludedFromMaxTx[account] = excluded; } function isExcludedFromMaxTx(address account) public view returns (bool) { return _isExcludedFromMaxTx[account]; } function setMaxWalletBPS(uint256 bps) external onlyOwner { require(bps >= 175 && bps <= 10000, "BPS must be between 175 and 10000"); maxWalletBPS = bps; } function excludeFromMaxWallet(address account, bool excluded) public onlyOwner { _isExcludedFromMaxWallet[account] = excluded; } function isExcludedFromMaxWallet(address account) public view returns (bool) { return _isExcludedFromMaxWallet[account]; } function rescueToken(address _token, uint256 _amount) external onlyOwner { IERC20(_token).transfer(msg.sender, _amount); } function rescueETH(uint256 _amount) external onlyOwner { payable(msg.sender).transfer(_amount); } function blackList(address _user) public onlyOwner { require(!isBlacklisted[_user], "user already blacklisted"); isBlacklisted[_user] = true; // events? } function removeFromBlacklist(address _user) public onlyOwner { require(isBlacklisted[_user], "user already whitelisted"); isBlacklisted[_user] = false; //events? } function blackListMany(address[] memory _users) public onlyOwner { for (uint8 i = 0; i < _users.length; i++) { isBlacklisted[_users[i]] = true; } } function unBlackListMany(address[] memory _users) public onlyOwner { for (uint8 i = 0; i < _users.length; i++) { isBlacklisted[_users[i]] = false; } } } contract DividendTracker is Ownable, IERC20 { address UNISWAPROUTER; string private _name = "DegenCapital_DividendTracker"; string private _symbol = "DegenCapital_DividendTracker"; uint256 public lastProcessedIndex; uint256 private _totalSupply; mapping(address => uint256) private _balances; uint256 private constant magnitude = 2**128; uint256 public immutable minTokenBalanceForDividends; uint256 private magnifiedDividendPerShare; uint256 public totalDividendsDistributed; uint256 public totalDividendsWithdrawn; address public tokenAddress; mapping(address => bool) public excludedFromDividends; mapping(address => int256) private magnifiedDividendCorrections; mapping(address => uint256) private withdrawnDividends; mapping(address => uint256) private lastClaimTimes; event DividendsDistributed(address indexed from, uint256 weiAmount); event DividendWithdrawn(address indexed to, uint256 weiAmount); event ExcludeFromDividends(address indexed account, bool excluded); event Claim(address indexed account, uint256 amount); event Compound(address indexed account, uint256 amount, uint256 tokens); struct AccountInfo { address account; uint256 withdrawableDividends; uint256 totalDividends; uint256 lastClaimTime; } constructor(address _tokenAddress, address _uniswapRouter) { minTokenBalanceForDividends = 10000 * (10**18); tokenAddress = _tokenAddress; UNISWAPROUTER = _uniswapRouter; } receive() external payable { distributeDividends(); } function distributeDividends() public payable { require(_totalSupply > 0); if (msg.value > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare + ((msg.value * magnitude) / _totalSupply); emit DividendsDistributed(msg.sender, msg.value); totalDividendsDistributed += msg.value; } } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if (excludedFromDividends[account]) { return; } if (newBalance >= minTokenBalanceForDividends) { _setBalance(account, newBalance); } else { _setBalance(account, 0); } } function excludeFromDividends(address account, bool excluded) external onlyOwner { require( excludedFromDividends[account] != excluded, "DegenCapital_DividendTracker: account already set to requested state" ); excludedFromDividends[account] = excluded; if (excluded) { _setBalance(account, 0); } else { uint256 newBalance = IERC20(tokenAddress).balanceOf(account); if (newBalance >= minTokenBalanceForDividends) { _setBalance(account, newBalance); } else { _setBalance(account, 0); } } emit ExcludeFromDividends(account, excluded); } function isExcludedFromDividends(address account) public view returns (bool) { return excludedFromDividends[account]; } function manualSendDividend(uint256 amount, address holder) external onlyOwner { uint256 contractETHBalance = address(this).balance; payable(holder).transfer(amount > 0 ? amount : contractETHBalance); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = _balances[account]; if (newBalance > currentBalance) { uint256 addAmount = newBalance - currentBalance; _mint(account, addAmount); } else if (newBalance < currentBalance) { uint256 subAmount = currentBalance - newBalance; _burn(account, subAmount); } } function _mint(address account, uint256 amount) private { require( account != address(0), "DegenCapital_DividendTracker: mint to the zero address" ); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] - int256(magnifiedDividendPerShare * amount); } function _burn(address account, uint256 amount) private { require( account != address(0), "DegenCapital_DividendTracker: burn from the zero address" ); uint256 accountBalance = _balances[account]; require( accountBalance >= amount, "DegenCapital_DividendTracker: burn amount exceeds balance" ); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] + int256(magnifiedDividendPerShare * amount); } function processAccount(address payable account) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount); return true; } return false; } function _withdrawDividendOfUser(address payable account) private returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(account); if (_withdrawableDividend > 0) { withdrawnDividends[account] += _withdrawableDividend; totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(account, _withdrawableDividend); (bool success, ) = account.call{ value: _withdrawableDividend, gas: 3000 }(""); if (!success) { withdrawnDividends[account] -= _withdrawableDividend; totalDividendsWithdrawn -= _withdrawableDividend; return 0; } return _withdrawableDividend; } return 0; } function compoundAccount(address payable account) public onlyOwner returns (bool) { (uint256 amount, uint256 tokens) = _compoundDividendOfUser(account); if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Compound(account, amount, tokens); return true; } return false; } function _compoundDividendOfUser(address payable account) private returns (uint256, uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(account); if (_withdrawableDividend > 0) { withdrawnDividends[account] += _withdrawableDividend; totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(account, _withdrawableDividend); IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02( UNISWAPROUTER ); address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = address(tokenAddress); bool success; uint256 tokens; uint256 initTokenBal = IERC20(tokenAddress).balanceOf(account); try uniswapV2Router .swapExactETHForTokensSupportingFeeOnTransferTokens{ value: _withdrawableDividend }(0, path, address(account), block.timestamp) { success = true; tokens = IERC20(tokenAddress).balanceOf(account) - initTokenBal; } catch Error( string memory /*err*/ ) { success = false; } if (!success) { withdrawnDividends[account] -= _withdrawableDividend; totalDividendsWithdrawn -= _withdrawableDividend; return (0, 0); } return (_withdrawableDividend, tokens); } return (0, 0); } function withdrawableDividendOf(address account) public view returns (uint256) { return accumulativeDividendOf(account) - withdrawnDividends[account]; } function withdrawnDividendOf(address account) public view returns (uint256) { return withdrawnDividends[account]; } function accumulativeDividendOf(address account) public view returns (uint256) { int256 a = int256(magnifiedDividendPerShare * balanceOf(account)); int256 b = magnifiedDividendCorrections[account]; // this is an explicit int256 (signed) return uint256(a + b) / magnitude; } function getAccountInfo(address account) public view returns ( address, uint256, uint256, uint256, uint256 ) { AccountInfo memory info; info.account = account; info.withdrawableDividends = withdrawableDividendOf(account); info.totalDividends = accumulativeDividendOf(account); info.lastClaimTime = lastClaimTimes[account]; return ( info.account, info.withdrawableDividends, info.totalDividends, info.lastClaimTime, totalDividendsWithdrawn ); } function getLastClaimTime(address account) public view returns (uint256) { return lastClaimTimes[account]; } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return 18; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address, uint256) public pure override returns (bool) { revert("DegenCapital_DividendTracker: method not implemented"); } function allowance(address, address) public pure override returns (uint256) { revert("DegenCapital_DividendTracker: method not implemented"); } function approve(address, uint256) public pure override returns (bool) { revert("DegenCapital_DividendTracker: method not implemented"); } function transferFrom( address, address, uint256 ) public pure override returns (bool) { revert("DegenCapital_DividendTracker: method not implemented"); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_liquidityWallet","type":"address"},{"internalType":"address","name":"_devWallet","type":"address"},{"internalType":"address[]","name":"whitelistAddress","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"BlacklistEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"CompoundingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nativeReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndAddLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"TaxEnabled","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":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","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":"address","name":"_user","type":"address"}],"name":"blackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"blackListMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFeeBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendFeeBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLastClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isExcludedFromDividends","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":"isExcludedFromMaxTx","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromMaxWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastSwapTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"holder","type":"address"}],"name":"manualSendDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletBPS","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":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setCompoundingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_dividendFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"setMaxTxBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"setMaxWalletBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setTaxEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasuryWallet","type":"address"},{"internalType":"address payable","name":"_liquidityWallet","type":"address"},{"internalType":"address payable","name":"_devWallet","type":"address"}],"name":"setWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryFeeBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"unBlackListMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_swapEnabled","type":"bool"},{"internalType":"uint256","name":"_swapTokensAtAmount","type":"uint256"},{"internalType":"bool","name":"_swapAllToken","type":"bool"}],"name":"updateDividendSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
600180546001600160a01b0319908116737a250d5630b4cf539739df2c5dacb4c659f2488d1790915560028054821661dead17905560038054909116905560c0604052600d60808190526c111959d95b8810d85c1a5d185b609a1b60a09081526200006e916004919062000bb6565b506040805180820190915260038082526244474360e81b60209092019182526200009b9160059162000bb6565b50606460065561019060075560c8600881905561012c6009556103e8600a5569152d02c7e14af6800000600b55600d805463ffffffff19166301010101179055601b819055601c55601d805460ff19169055348015620000fa57600080fd5b5060405162006383380380620063838339810160408190526200011d9162000c9d565b620001283362000641565b600f80546001600160a01b0380871661010002610100600160a81b031990921691909117909155601080548583166001600160a01b0319918216179091556011805492851692909116919091179055620001828162000691565b60015460405130916001600160a01b0316906200019f9062000c45565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015620001d3573d6000803e3d6000fd5b50601880546001600160a01b0319166001600160a01b039283161790556001546040805163c45a015560e01b815290519190921691600091839163c45a01559160048083019260209291908290030181865afa15801562000238573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200025e919062000da8565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d2919062000da8565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000320573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000346919062000da8565b601980546001600160a01b038086166001600160a01b031992831617909255601a8054928416929091169190911790559050620003858160016200070a565b60185460405162241fbd60e51b81526001600160a01b03909116600482018190526001602483015290630483f7a090604401600060405180830381600087803b158015620003d257600080fd5b505af1158015620003e7573d6000803e3d6000fd5b505060185460405162241fbd60e51b8152306004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200043757600080fd5b505af11580156200044c573d6000803e3d6000fd5b50506018546001600160a01b03169150630483f7a09050620004766000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b158015620004bf57600080fd5b505af1158015620004d4573d6000803e3d6000fd5b505060185460405162241fbd60e51b81526001600160a01b038681166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b1580156200052657600080fd5b505af11580156200053b573d6000803e3d6000fd5b505050506200055b620005536200088660201b60201c565b600162000895565b6200056830600162000895565b60185462000581906001600160a01b0316600162000895565b620005a0620005986000546001600160a01b031690565b6001620009d6565b620005ad306001620009d6565b601854620005c6906001600160a01b03166001620009d6565b620005e5620005dd6000546001600160a01b031690565b600162000a4c565b620005f230600162000a4c565b6018546200060b906001600160a01b0316600162000a4c565b62000635620006226000546001600160a01b031690565b6b033b2e3c9fd0803ce800000062000ac2565b50505050505062000e74565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b81518160ff1610156200070657600160166000848460ff1681518110620006bf57620006bf62000dcd565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620006fd8162000df9565b91505062000694565b5050565b6001600160a01b03821660009081526015602052604090205460ff1615158115151415620007b45760405162461bcd60e51b815260206004820152604660248201527f446567656e4361706974616c3a206175746f6d61746564206d61726b6574206d60448201527f616b6572207061697220697320616c72656164792073657420746f20746861746064820152652076616c756560d01b608482015260a4015b60405180910390fd5b6001600160a01b0382166000908152601560205260409020805460ff191682158015919091179091556200084a5760185460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b1580156200083057600080fd5b505af115801562000845573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6000546001600160a01b031690565b6000546001600160a01b03163314620008e05760405162461bcd60e51b81526020600482018190526024820152600080516020620063638339815191526044820152606401620007ab565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415620009775760405162461bcd60e51b815260206004820152603760248201527f446567656e4361706974616c3a206163636f756e7420697320616c726561647960448201527f2073657420746f207265717565737465642073746174650000000000000000006064820152608401620007ab565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6000546001600160a01b0316331462000a215760405162461bcd60e51b81526020600482018190526024820152600080516020620063638339815191526044820152606401620007ab565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331462000a975760405162461bcd60e51b81526020600482018190526024820152600080516020620063638339815191526044820152606401620007ab565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6001600160a01b03821662000b295760405162461bcd60e51b815260206004820152602660248201527f446567656e4361706974616c3a206d696e7420746f20746865207a65726f206160448201526564647265737360d01b6064820152608401620007ab565b80600e600082825462000b3d919062000e1c565b90915550506001600160a01b0382166000908152601260205260408120805483929062000b6c90849062000e1c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805462000bc49062000e37565b90600052602060002090601f01602090048101928262000be8576000855562000c33565b82601f1062000c0357805160ff191683800117855562000c33565b8280016001018555821562000c33579182015b8281111562000c3357825182559160200191906001019062000c16565b5062000c4192915062000c53565b5090565b611e41806200452283390190565b5b8082111562000c41576000815560010162000c54565b80516001600160a01b038116811462000c8257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121562000cb457600080fd5b62000cbf8562000c6a565b9350602062000cd081870162000c6a565b935062000ce06040870162000c6a565b60608701519093506001600160401b038082111562000cfe57600080fd5b818801915088601f83011262000d1357600080fd5b81518181111562000d285762000d2862000c87565b8060051b604051601f19603f8301168101818110858211171562000d505762000d5062000c87565b60405291825284820192508381018501918b83111562000d6f57600080fd5b938501935b8285101562000d985762000d888562000c6a565b8452938501939285019262000d74565b989b979a50959850505050505050565b60006020828403121562000dbb57600080fd5b62000dc68262000c6a565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff81141562000e135762000e1362000de3565b60010192915050565b6000821982111562000e325762000e3262000de3565b500190565b600181811c9082168062000e4c57607f821691505b6020821081141562000e6e57634e487b7160e01b600052602260045260246000fd5b50919050565b61369e8062000e846000396000f3fe6080604052600436106103bc5760003560e01c80637b510fe8116101f2578063b80b6e891161010d578063dd62ed3e116100a0578063ebbf1ace1161006f578063ebbf1ace14610ba7578063f2fde38b14610bbd578063f4571c4914610bdd578063f69e204614610bfd57600080fd5b8063dd62ed3e14610b0b578063e01af92c14610b51578063e2f4560514610b71578063e4956ce214610b8757600080fd5b8063c705c569116100dc578063c705c56914610a96578063c9567bf914610ab6578063d2fcc00114610acb578063d4c989d314610aeb57600080fd5b8063b80b6e8914610a20578063c024666814610a36578063c3033aeb14610a56578063c6af580b14610a7657600080fd5b8063a2a957bb11610185578063a9059cbb11610154578063a9059cbb14610990578063aa4e8c4a146109b0578063aafd847a146109d0578063b62496f5146109f057600080fd5b8063a2a957bb14610910578063a457c2d714610930578063a680e0bc14610950578063a8b9d2401461097057600080fd5b80638e126944116101c15780638e1269441461089b57806395d89b41146108bb5780639a7a23d6146108d05780639e252f00146108f057600080fd5b80637b510fe8146107eb578063844496291461083d578063870bd30b1461085d5780638da5cb5b1461087d57600080fd5b80634838d165116102e2578063658c27a9116102755780636ddd1713116102445780636ddd17131461076b57806370a082311461078a578063715018a6146107c0578063744d1591146107d557600080fd5b8063658c27a9146106b957806365b8dbc0146106f257806368c51e35146107125780636dd3d39f1461073257600080fd5b8063537df3b6116102b1578063537df3b61461064d57806357777d311461066d5780635937ea6c146106835780635e843ad21461069957600080fd5b80634838d165146105bf57806349bd5a5e146105df5780634e71d92d146105ff5780634fbee1931461061457600080fd5b806327ce01471161035a57806333f3d6281161032957806333f3d62814610553578063377c27ac1461057357806337eb152814610589578063395093511461059f57600080fd5b806327ce0147146104d65780632c1f5216146104f65780632f4504ae14610516578063313ce5671461053757600080fd5b80630dd87157116103965780630dd87157146104455780631694505e1461046957806318160ddd146104a157806323b872dd146104b657600080fd5b80630483f7a0146103c857806306fdde03146103ea578063095ea7b31461041557600080fd5b366103c357005b600080fd5b3480156103d457600080fd5b506103e86103e3366004612fe7565b610c12565b005b3480156103f657600080fd5b506103ff610cb0565b60405161040c9190613020565b60405180910390f35b34801561042157600080fd5b50610435610430366004613075565b610d42565b604051901515815260200161040c565b34801561045157600080fd5b5061045b600c5481565b60405190815260200161040c565b34801561047557600080fd5b50601954610489906001600160a01b031681565b6040516001600160a01b03909116815260200161040c565b3480156104ad57600080fd5b50600e5461045b565b3480156104c257600080fd5b506104356104d13660046130a1565b610d58565b3480156104e257600080fd5b5061045b6104f13660046130e2565b610e10565b34801561050257600080fd5b50601854610489906001600160a01b031681565b34801561052257600080fd5b50600d54610435906301000000900460ff1681565b34801561054357600080fd5b506040516012815260200161040c565b34801561055f57600080fd5b506103e861056e366004613075565b610e86565b34801561057f57600080fd5b5061045b60065481565b34801561059557600080fd5b5061045b600a5481565b3480156105ab57600080fd5b506104356105ba366004613075565b610f26565b3480156105cb57600080fd5b506103e86105da3660046130e2565b610f5d565b3480156105eb57600080fd5b50601a54610489906001600160a01b031681565b34801561060b57600080fd5b506103e8611014565b34801561062057600080fd5b5061043561062f3660046130e2565b6001600160a01b031660009081526014602052604090205460ff1690565b34801561065957600080fd5b506103e86106683660046130e2565b611094565b34801561067957600080fd5b5061045b601b5481565b34801561068f57600080fd5b5061045b60075481565b3480156106a557600080fd5b506103e86106b4366004613106565b611147565b3480156106c557600080fd5b506104356106d43660046130e2565b6001600160a01b03166000908152601e602052604090205460ff1690565b3480156106fe57600080fd5b506103e861070d3660046130e2565b61119f565b34801561071e57600080fd5b506103e861072d366004613148565b611423565b34801561073e57600080fd5b5061043561074d3660046130e2565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561077757600080fd5b50600d5461043590610100900460ff1681565b34801561079657600080fd5b5061045b6107a53660046130e2565b6001600160a01b031660009081526012602052604090205490565b3480156107cc57600080fd5b506103e86114bb565b3480156107e157600080fd5b5061045b601c5481565b3480156107f757600080fd5b5061080b6108063660046130e2565b6114f1565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161040c565b34801561084957600080fd5b506103e8610858366004613161565b61157b565b34801561086957600080fd5b50600d546104359062010000900460ff1681565b34801561088957600080fd5b506000546001600160a01b0316610489565b3480156108a757600080fd5b506103e86108b63660046131a1565b6115ed565b3480156108c757600080fd5b506103ff611650565b3480156108dc57600080fd5b506103e86108eb366004612fe7565b61165f565b3480156108fc57600080fd5b506103e861090b366004613148565b611707565b34801561091c57600080fd5b506103e861092b3660046131c6565b61175e565b34801561093c57600080fd5b5061043561094b366004613075565b6117c5565b34801561095c57600080fd5b5061045b61096b3660046130e2565b611867565b34801561097c57600080fd5b5061045b61098b3660046130e2565b61189a565b34801561099c57600080fd5b506104356109ab366004613075565b6118cd565b3480156109bc57600080fd5b506103e86109cb366004613148565b6118da565b3480156109dc57600080fd5b5061045b6109eb3660046130e2565b611968565b3480156109fc57600080fd5b50610435610a0b3660046130e2565b60156020526000908152604090205460ff1681565b348015610a2c57600080fd5b5061045b60095481565b348015610a4257600080fd5b506103e8610a51366004612fe7565b61199b565b348015610a6257600080fd5b506103e8610a7136600461320e565b611ab9565b348015610a8257600080fd5b506103e8610a913660046132d3565b611b51565b348015610aa257600080fd5b50610435610ab13660046130e2565b611bd1565b348015610ac257600080fd5b506103e8611c40565b348015610ad757600080fd5b506103e8610ae6366004612fe7565b611c79565b348015610af757600080fd5b506103e8610b06366004612fe7565b611cce565b348015610b1757600080fd5b5061045b610b263660046132f0565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b348015610b5d57600080fd5b506103e8610b6c3660046132d3565b611d23565b348015610b7d57600080fd5b5061045b600b5481565b348015610b9357600080fd5b506103e8610ba23660046132d3565b611d96565b348015610bb357600080fd5b5061045b60085481565b348015610bc957600080fd5b506103e8610bd83660046130e2565b611e0d565b348015610be957600080fd5b506103e8610bf836600461320e565b611ea5565b348015610c0957600080fd5b506103e8611f3d565b6000546001600160a01b03163314610c455760405162461bcd60e51b8152600401610c3c9061331e565b60405180910390fd5b60185460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b158015610c9457600080fd5b505af1158015610ca8573d6000803e3d6000fd5b505050505050565b606060048054610cbf90613353565b80601f0160208091040260200160405190810160405280929190818152602001828054610ceb90613353565b8015610d385780601f10610d0d57610100808354040283529160200191610d38565b820191906000526020600020905b815481529060010190602001808311610d1b57829003601f168201915b5050505050905090565b6000610d4f338484611fbe565b50600192915050565b6000610d658484846120f1565b6001600160a01b038416600090815260136020908152604080832033845290915290205482811015610df15760405162461bcd60e51b815260206004820152602f60248201527f446567656e4361706974616c3a207472616e7366657220616d6f756e7420657860448201526e636565647320616c6c6f77616e636560881b6064820152608401610c3c565b610e058533610e0086856133a4565b611fbe565b506001949350505050565b6018546040516327ce014760e01b81526001600160a01b03838116600483015260009216906327ce0147906024015b602060405180830381865afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906133bb565b92915050565b6000546001600160a01b03163314610eb05760405162461bcd60e51b8152600401610c3c9061331e565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2191906133d4565b505050565b3360008181526013602090815260408083206001600160a01b03871684529091528120549091610d4f918590610e009086906133f1565b6000546001600160a01b03163314610f875760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03811660009081526017602052604090205460ff1615610ff05760405162461bcd60e51b815260206004820152601860248201527f7573657220616c726561647920626c61636b6c697374656400000000000000006044820152606401610c3c565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6018546001600160a01b031663807ab4f7335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af115801561106d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109191906133d4565b50565b6000546001600160a01b031633146110be5760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03811660009081526017602052604090205460ff166111265760405162461bcd60e51b815260206004820152601860248201527f7573657220616c72656164792077686974656c697374656400000000000000006044820152606401610c3c565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6000546001600160a01b031633146111715760405162461bcd60e51b8152600401610c3c9061331e565b600d8054600b9390935590151560ff19931515610100029390931661ffff1990921691909117919091179055565b6000546001600160a01b031633146111c95760405162461bcd60e51b8152600401610c3c9061331e565b6019546001600160a01b038281169116141561124d5760405162461bcd60e51b815260206004820152603a60248201527f446567656e4361706974616c3a2074686520726f7574657220697320616c726560448201527f6164792073657420746f20746865206e657720616464726573730000000000006064820152608401610c3c565b6019546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3601980546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa1580156112e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113089190613409565b6001600160a01b031663c9c6539630601960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e9190613409565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156113db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ff9190613409565b601a80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000546001600160a01b0316331461144d5760405162461bcd60e51b8152600401610c3c9061331e565b60af811015801561146057506127108111155b6114b65760405162461bcd60e51b815260206004820152602160248201527f425053206d757374206265206265747765656e2031373520616e6420313030306044820152600360fc1b6064820152608401610c3c565b601c55565b6000546001600160a01b031633146114e55760405162461bcd60e51b8152600401610c3c9061331e565b6114ef6000612771565b565b601854604051630f6a21fd60e31b81526001600160a01b0383811660048301526000928392839283928392911690637b510fe89060240160a060405180830381865afa158015611545573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115699190613426565b939a9299509097509550909350915050565b6000546001600160a01b031633146115a55760405162461bcd60e51b8152600401610c3c9061331e565b600f80546001600160a01b0394851661010002610100600160a81b0319909116179055601080549284166001600160a01b031993841617905560118054919093169116179055565b6000546001600160a01b031633146116175760405162461bcd60e51b8152600401610c3c9061331e565b6018546040516323849a5160e21b8152600481018490526001600160a01b03838116602483015290911690638e12694490604401610c7a565b606060058054610cbf90613353565b6000546001600160a01b031633146116895760405162461bcd60e51b8152600401610c3c9061331e565b601a546001600160a01b03838116911614156116f95760405162461bcd60e51b815260206004820152602960248201527f446567656e4361706974616c3a2044455820706169722063616e206e6f74206260448201526819481c995b5bdd995960ba1b6064820152608401610c3c565b61170382826127c1565b5050565b6000546001600160a01b031633146117315760405162461bcd60e51b8152600401610c3c9061331e565b604051339082156108fc029083906000818181858888f19350505050158015611703573d6000803e3d6000fd5b6000546001600160a01b031633146117885760405162461bcd60e51b8152600401610c3c9061331e565b600784905560088390556009829055600681905580826117a885876133f1565b6117b291906133f1565b6117bc91906133f1565b600a5550505050565b3360009081526013602090815260408083206001600160a01b03861684529091528120548281101561184e5760405162461bcd60e51b815260206004820152602c60248201527f446567656e4361706974616c3a2064656372656173656420616c6c6f77616e6360448201526b652062656c6f77207a65726f60a01b6064820152608401610c3c565b61185d3385610e0086856133a4565b5060019392505050565b6018546040516329a0382f60e21b81526001600160a01b038381166004830152600092169063a680e0bc90602401610e3f565b6018546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610e3f565b6000610d4f3384846120f1565b6000546001600160a01b031633146119045760405162461bcd60e51b8152600401610c3c9061331e565b604b811015801561191757506127108111155b6119635760405162461bcd60e51b815260206004820181905260248201527f425053206d757374206265206265747765656e20373520616e642031303030306044820152606401610c3c565b601b55565b60185460405163557ec23d60e11b81526001600160a01b038381166004830152600092169063aafd847a90602401610e3f565b6000546001600160a01b031633146119c55760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415611a5a5760405162461bcd60e51b815260206004820152603760248201527f446567656e4361706974616c3a206163636f756e7420697320616c726561647960448201527f2073657420746f207265717565737465642073746174650000000000000000006064820152608401610c3c565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6000546001600160a01b03163314611ae35760405162461bcd60e51b8152600401610c3c9061331e565b60005b81518160ff16101561170357600160176000848460ff1681518110611b0d57611b0d61346f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611b4981613485565b915050611ae6565b6000546001600160a01b03163314611b7b5760405162461bcd60e51b8152600401610c3c9061331e565b600d8054821515620100000262ff0000199091161790556040517f5bb2376cf656637e70e36c01d3da25685bf3b353f18681b8a5e48c7b2effe13390611bc690831515815260200190565b60405180910390a150565b60185460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015611c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906133d4565b6000546001600160a01b03163314611c6a5760405162461bcd60e51b8152600401610c3c9061331e565b601d805460ff19166001179055565b6000546001600160a01b03163314611ca35760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611cf85760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611d4d5760405162461bcd60e51b8152600401610c3c9061331e565b600d80548215156101000261ff00199091161790556040517fb9bbb15e341600c8d067a0cadeba219905d5ba6d422b193c9c32265d26fc51c890611bc690831515815260200190565b6000546001600160a01b03163314611dc05760405162461bcd60e51b8152600401610c3c9061331e565b600d805482151563010000000263ff000000199091161790556040517f341322866a3a2c26c27efa4c270c5ba86f6963257118897dd8196f224c002d4390611bc690831515815260200190565b6000546001600160a01b03163314611e375760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b038116611e9c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c3c565b61109181612771565b6000546001600160a01b03163314611ecf5760405162461bcd60e51b8152600401610c3c9061331e565b60005b81518160ff16101561170357600060176000848460ff1681518110611ef957611ef961346f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611f3581613485565b915050611ed2565b600d546301000000900460ff16611fa75760405162461bcd60e51b815260206004820152602860248201527f446567656e4361706974616c3a20636f6d706f756e64696e67206973206e6f7460448201526708195b98589b195960c21b6064820152608401610c3c565b6018546001600160a01b0316636de1a5a933611027565b6001600160a01b0383166120285760405162461bcd60e51b815260206004820152602b60248201527f446567656e4361706974616c3a20617070726f76652066726f6d20746865207a60448201526a65726f206164647265737360a81b6064820152608401610c3c565b6001600160a01b0382166120905760405162461bcd60e51b815260206004820152602960248201527f446567656e4361706974616c3a20617070726f766520746f20746865207a65726044820152686f206164647265737360b81b6064820152608401610c3c565b6001600160a01b0383811660008181526013602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b601d5460ff168061210f57506000546001600160a01b038481169116145b8061212757506000546001600160a01b038381169116145b8061214a57506001600160a01b03831660009081526016602052604090205460ff165b8061216d57506001600160a01b03821660009081526016602052604090205460ff165b6121a45760405162461bcd60e51b81526020600482015260086024820152672737ba1027b832b760c11b6044820152606401610c3c565b6001600160a01b03831660009081526017602052604090205460ff16156122195760405162461bcd60e51b815260206004820152602360248201527f446567656e4361706974616c3a2053656e64657220697320626c61636b6c69736044820152621d195960ea1b6064820152608401610c3c565b6001600160a01b03821660009081526017602052604090205460ff16156122915760405162461bcd60e51b815260206004820152602660248201527f446567656e4361706974616c3a20526563697069656e7420697320626c61636b6044820152651b1a5cdd195960d21b6064820152608401610c3c565b6001600160a01b0383166122b75760405162461bcd60e51b8152600401610c3c906134a5565b6001600160a01b0382166122dd5760405162461bcd60e51b8152600401610c3c906134f1565b6000612710601b546122ee600e5490565b6122f8919061353b565b612302919061355a565b90506000612710601c54612315600e5490565b61231f919061353b565b612329919061355a565b9050818311158061235257506001600160a01b0385166000908152601e602052604090205460ff165b6123925760405162461bcd60e51b8152602060048201526011602482015270151608131a5b5a5d08115e18d959591959607a1b6044820152606401610c3c565b6000546001600160a01b038681169116148015906123b957506001600160a01b0384163014155b80156123d357506002546001600160a01b03858116911614155b80156123ed5750601a546001600160a01b03858116911614155b15612439576001600160a01b038416600090815260126020908152604080832054601f9092529091205460ff168061242e57508161242b85836133f1565b11155b61243757600080fd5b505b6001600160a01b038516600090815260126020526040902054838110156124725760405162461bcd60e51b8152600401610c3c9061357c565b30600090815260126020526040902054600b54600d54479183101590610100900460ff16801561249f5750805b80156124ae5750600f5460ff16155b80156124d357506001600160a01b03891660009081526015602052604090205460ff16155b80156124ed57506019546001600160a01b038a8116911614155b801561250757506000546001600160a01b038a8116911614155b801561252157506000546001600160a01b03898116911614155b1561255c57600f805460ff19166001179055600d5460ff1661254357600b5492505b61254d8383612934565b42600c55600f805460ff191690555b601a546000906001600160a01b038b8116911614806125885750601a546001600160a01b038a81169116145b15612591575060015b6001600160a01b038a1660009081526014602052604090205460ff16806125d057506001600160a01b03891660009081526014602052604090205460ff165b156125d9575060005b600f5460ff16806125f35750600d5462010000900460ff16155b156125fc575060005b801561263a576000612710600a548a612615919061353b565b61261f919061355a565b905061262b818a6133a4565b98506126388b3083612cbd565b505b6126458a8a8a612cbd565b6018546001600160a01b031663e30443bc8b612676816001600160a01b031660009081526012602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156126bc57600080fd5b505af11580156126d0573d6000803e3d6000fd5b50506018546001600160a01b0316915063e30443bc90508a612707816001600160a01b031660009081526012602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561274d57600080fd5b505af1158015612761573d6000803e3d6000fd5b5050505050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526015602052604090205460ff16151581151514156128655760405162461bcd60e51b815260206004820152604660248201527f446567656e4361706974616c3a206175746f6d61746564206d61726b6574206d60448201527f616b6572207061697220697320616c72656164792073657420746f20746861746064820152652076616c756560d01b608482015260a401610c3c565b6001600160a01b0382166000908152601560205260409020805460ff191682158015919091179091556128f85760185460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b1580156128df57600080fd5b505af11580156128f3573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b60008211612940575050565b600f5460009061010090046001600160a01b03161561297657600a54600754612969908561353b565b612973919061355a565b90505b600080601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f091906133bb565b1115612a1357600a54600954612a06908661353b565b612a10919061355a565b90505b6011546000906001600160a01b031615612a4457600a54600654612a37908761353b565b612a41919061355a565b90505b60008183612a5286896133a4565b612a5c91906133a4565b612a6691906133a4565b90506000612a7560028361355a565b90506000612a8382846133a4565b905060008483612a93888a6133f1565b612a9d91906133f1565b612aa791906133f1565b905047612ab382612ddc565b600089612ac083476133a4565b612aca91906133f1565b9050600083612ad98b8461353b565b612ae3919061355a565b9050600084612af28a8561353b565b612afc919061355a565b9050600085612b0b8c8661353b565b612b15919061355a565b905060008183612b2586886133a4565b612b2f91906133a4565b612b3991906133a4565b90508315612b8157600f546040516101009091046001600160a01b0316906108fc8615029086906000818181858888f19350505050158015612b7f573d6000803e3d6000fd5b505b8215612bc3576011546040516001600160a01b039091169084156108fc029085906000818181858888f19350505050158015612bc1573d6000803e3d6000fd5b505b612bcd8882612f00565b604080518a8152602081018390529081018990527fb63dc6f50047533abe2d6adf180d38d524c8d98e55ad199aac8d6b9801bbe24a9060600160405180910390a18115612cac576018546040516000916001600160a01b03169084908381818185875af1925050503d8060008114612c61576040519150601f19603f3d011682016040523d82523d6000602084013e612c66565b606091505b505090508015612caa57604080518e8152602081018590527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3910160405180910390a15b505b505050505050505050505050505050565b6001600160a01b038316612ce35760405162461bcd60e51b8152600401610c3c906134a5565b6001600160a01b038216612d095760405162461bcd60e51b8152600401610c3c906134f1565b6001600160a01b03831660009081526012602052604090205481811015612d425760405162461bcd60e51b8152600401610c3c9061357c565b612d4c82826133a4565b6001600160a01b038086166000908152601260205260408082209390935590851681529081208054849290612d829084906133f1565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612dce91815260200190565b60405180910390a350505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e1157612e1161346f565b6001600160a01b03928316602091820292909201810191909152601954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612e6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8e9190613409565b81600181518110612ea157612ea161346f565b6001600160a01b039283166020918202929092010152601954612ec79130911684611fbe565b60195460405163791ac94760e01b81526001600160a01b039091169063791ac94790610c7a9085906000908690309042906004016135c9565b601954612f189030906001600160a01b031684611fbe565b60195460105460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612f88573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612fad919061363a565b5050505050565b6001600160a01b038116811461109157600080fd5b8035612fd481612fb4565b919050565b801515811461109157600080fd5b60008060408385031215612ffa57600080fd5b823561300581612fb4565b9150602083013561301581612fd9565b809150509250929050565b600060208083528351808285015260005b8181101561304d57858101830151858201604001528201613031565b8181111561305f576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561308857600080fd5b823561309381612fb4565b946020939093013593505050565b6000806000606084860312156130b657600080fd5b83356130c181612fb4565b925060208401356130d181612fb4565b929592945050506040919091013590565b6000602082840312156130f457600080fd5b81356130ff81612fb4565b9392505050565b60008060006060848603121561311b57600080fd5b833561312681612fd9565b925060208401359150604084013561313d81612fd9565b809150509250925092565b60006020828403121561315a57600080fd5b5035919050565b60008060006060848603121561317657600080fd5b833561318181612fb4565b9250602084013561319181612fb4565b9150604084013561313d81612fb4565b600080604083850312156131b457600080fd5b82359150602083013561301581612fb4565b600080600080608085870312156131dc57600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561322157600080fd5b823567ffffffffffffffff8082111561323957600080fd5b818501915085601f83011261324d57600080fd5b81358181111561325f5761325f6131f8565b8060051b604051601f19603f83011681018181108582111715613284576132846131f8565b6040529182528482019250838101850191888311156132a257600080fd5b938501935b828510156132c7576132b885612fc9565b845293850193928501926132a7565b98975050505050505050565b6000602082840312156132e557600080fd5b81356130ff81612fd9565b6000806040838503121561330357600080fd5b823561330e81612fb4565b9150602083013561301581612fb4565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061336757607f821691505b6020821081141561338857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156133b6576133b661338e565b500390565b6000602082840312156133cd57600080fd5b5051919050565b6000602082840312156133e657600080fd5b81516130ff81612fd9565b600082198211156134045761340461338e565b500190565b60006020828403121561341b57600080fd5b81516130ff81612fb4565b600080600080600060a0868803121561343e57600080fd5b855161344981612fb4565b602087015160408801516060890151608090990151929a91995097965090945092505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff81141561349c5761349c61338e565b60010192915050565b6020808252602c908201527f446567656e4361706974616c3a207472616e736665722066726f6d207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b6020808252602a908201527f446567656e4361706974616c3a207472616e7366657220746f20746865207a65604082015269726f206164647265737360b01b606082015260800190565b60008160001904831182151516156135555761355561338e565b500290565b60008261357757634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602d908201527f446567656e4361706974616c3a207472616e7366657220616d6f756e7420657860408201526c63656564732062616c616e636560981b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156136195784516001600160a01b0316835293830193918301916001016135f4565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561364f57600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212205dd4da1d2fd12415016132c4544b7244d32e980ce8f338920feaa4a1f81cf35f64736f6c634300080c003360e0604052601c60a08190527f446567656e4361706974616c5f4469766964656e64547261636b65720000000060c090815262000040916002919062000153565b5060408051808201909152601c8082527f446567656e4361706974616c5f4469766964656e64547261636b6572000000006020909201918252620000879160039162000153565b503480156200009557600080fd5b5060405162001e4138038062001e41833981016040819052620000b89162000216565b620000c33362000103565b69021e19e0c9bab2400000608052600a80546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556200028b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000161906200024e565b90600052602060002090601f016020900481019282620001855760008555620001d0565b82601f10620001a057805160ff1916838001178555620001d0565b82800160010185558215620001d0579182015b82811115620001d0578251825591602001919060010190620001b3565b50620001de929150620001e2565b5090565b5b80821115620001de5760008155600101620001e3565b80516001600160a01b03811681146200021157600080fd5b919050565b600080604083850312156200022a57600080fd5b6200023583620001f9565b91506200024560208401620001f9565b90509250929050565b600181811c908216806200026357607f821691505b602082108114156200028557634e487b7160e01b600052602260045260246000fd5b50919050565b608051611b8c620002b5600039600081816105520152818161081d0152610d360152611b8c6000f3fe6080604052600436106101d15760003560e01c806385a6b3ae116100f7578063a8b9d24011610095578063c705c56911610064578063c705c56914610574578063dd62ed3e146105ad578063e30443bc146105c8578063f2fde38b146105e857600080fd5b8063a8b9d240146104ea578063a9059cbb14610238578063aafd847a1461050a578063c49af5f01461054057600080fd5b806395d89b41116100d157806395d89b41146104695780639d76ea581461047e5780639e1e06611461049e578063a680e0bc146104b457600080fd5b806385a6b3ae146104015780638da5cb5b146104175780638e1269441461044957600080fd5b80633009a6091161016f57806370a082311161013e57806370a0823114610344578063715018a61461037a5780637b510fe81461038f578063807ab4f7146103e157600080fd5b80633009a609146102c2578063313ce567146102d85780634e7b827f146102f45780636de1a5a91461032457600080fd5b8063095ea7b3116101ab578063095ea7b31461023857806318160ddd1461026857806323b872dd1461028757806327ce0147146102a257600080fd5b806303c83302146101e55780630483f7a0146101ed57806306fdde031461020d57600080fd5b366101e0576101de610608565b005b600080fd5b6101de610608565b3480156101f957600080fd5b506101de6102083660046116d2565b610697565b34801561021957600080fd5b506102226108a7565b60405161022f9190611710565b60405180910390f35b34801561024457600080fd5b50610258610253366004611765565b610939565b604051901515815260200161022f565b34801561027457600080fd5b506005545b60405190815260200161022f565b34801561029357600080fd5b50610258610253366004611791565b3480156102ae57600080fd5b506102796102bd3660046117d2565b6109a1565b3480156102ce57600080fd5b5061027960045481565b3480156102e457600080fd5b506040516012815260200161022f565b34801561030057600080fd5b5061025861030f3660046117d2565b600b6020526000908152604090205460ff1681565b34801561033057600080fd5b5061025861033f3660046117d2565b610a05565b34801561035057600080fd5b5061027961035f3660046117d2565b6001600160a01b031660009081526006602052604090205490565b34801561038657600080fd5b506101de610ab0565b34801561039b57600080fd5b506103af6103aa3660046117d2565b610ae4565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161022f565b3480156103ed57600080fd5b506102586103fc3660046117d2565b610b8c565b34801561040d57600080fd5b5061027960085481565b34801561042357600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161022f565b34801561045557600080fd5b506101de6104643660046117f6565b610c31565b34801561047557600080fd5b50610222610ca4565b34801561048a57600080fd5b50600a54610431906001600160a01b031681565b3480156104aa57600080fd5b5061027960095481565b3480156104c057600080fd5b506102796104cf3660046117d2565b6001600160a01b03166000908152600e602052604090205490565b3480156104f657600080fd5b506102796105053660046117d2565b610cb3565b34801561051657600080fd5b506102796105253660046117d2565b6001600160a01b03166000908152600d602052604090205490565b34801561054c57600080fd5b506102797f000000000000000000000000000000000000000000000000000000000000000081565b34801561058057600080fd5b5061025861058f3660046117d2565b6001600160a01b03166000908152600b602052604090205460ff1690565b3480156105b957600080fd5b5061027961025336600461181b565b3480156105d457600080fd5b506101de6105e3366004611765565b610ce5565b3480156105f457600080fd5b506101de6106033660046117d2565b610d74565b60006005541161061757600080fd5b34156106955760055461062e600160801b3461185f565b610638919061187e565b60075461064591906118a0565b60075560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2346008600082825461068f91906118a0565b90915550505b565b6000546001600160a01b031633146106ca5760405162461bcd60e51b81526004016106c1906118b8565b60405180910390fd5b6001600160a01b0382166000908152600b602052604090205460ff161515811515141561076d5760405162461bcd60e51b8152602060048201526044602482018190527f446567656e4361706974616c5f4469766964656e64547261636b65723a206163908201527f636f756e7420616c72656164792073657420746f2072657175657374656420736064820152637461746560e01b608482015260a4016106c1565b6001600160a01b0382166000908152600b60205260409020805460ff191682158015919091179091556107aa576107a5826000610e0f565b61085e565b600a546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a0823190602401602060405180830381865afa1580156107f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081991906118ed565b90507f000000000000000000000000000000000000000000000000000000000000000081106108515761084c8382610e0f565b61085c565b61085c836000610e0f565b505b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be8260405161089b911515815260200190565b60405180910390a25050565b6060600280546108b690611906565b80601f01602080910402602001604051908101604052809291908181526020018280546108e290611906565b801561092f5780601f106109045761010080835404028352916020019161092f565b820191906000526020600020905b81548152906001019060200180831161091257829003601f168201915b5050505050905090565b60405162461bcd60e51b815260206004820152603460248201527f446567656e4361706974616c5f4469766964656e64547261636b65723a206d656044820152731d1a1bd9081b9bdd081a5b5c1b195b595b9d195960621b60648201526000906084016106c1565b6001600160a01b03811660009081526006602052604081205460075482916109c89161185f565b6001600160a01b0384166000908152600c6020526040902054909150600160801b6109f38284611941565b6109fd919061187e565b949350505050565b600080546001600160a01b03163314610a305760405162461bcd60e51b81526004016106c1906118b8565b600080610a3c84610e6d565b90925090508115610aa6576001600160a01b0384166000818152600e602090815260409182902042905581518581529081018490527f0e311a2c6dbfb0153ec3a8a5bdca09070b3e5f60768fdc10a20453f38d186873910160405180910390a25060019392505050565b5060009392505050565b6000546001600160a01b03163314610ada5760405162461bcd60e51b81526004016106c1906118b8565b61069560006111f8565b6000806000806000610b20604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610b3587610cb3565b6020820152610b43876109a1565b60408281019182526001600160a01b03989098166000908152600e6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600080546001600160a01b03163314610bb75760405162461bcd60e51b81526004016106c1906118b8565b6000610bc283611248565b90508015610c28576001600160a01b0383166000818152600e602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610c179084815260200190565b60405180910390a250600192915050565b50600092915050565b6000546001600160a01b03163314610c5b5760405162461bcd60e51b81526004016106c1906118b8565b476001600160a01b0382166108fc84610c745782610c76565b845b6040518115909202916000818181858888f19350505050158015610c9e573d6000803e3d6000fd5b50505050565b6060600380546108b690611906565b6001600160a01b0381166000908152600d6020526040812054610cd5836109a1565b610cdf9190611982565b92915050565b6000546001600160a01b03163314610d0f5760405162461bcd60e51b81526004016106c1906118b8565b6001600160a01b0382166000908152600b602052604090205460ff1615610d34575050565b7f00000000000000000000000000000000000000000000000000000000000000008110610d6957610d658282610e0f565b5050565b610d65826000610e0f565b6000546001600160a01b03163314610d9e5760405162461bcd60e51b81526004016106c1906118b8565b6001600160a01b038116610e035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106c1565b610e0c816111f8565b50565b6001600160a01b03821660009081526006602052604090205480821115610e48576000610e3c8284611982565b9050610c9e8482611397565b80821015610e68576000610e5c8383611982565b9050610c9e84826114e2565b505050565b6000806000610e7b84610cb3565b905080156111ec576001600160a01b0384166000908152600d602052604081208054839290610eab9084906118a0565b925050819055508060096000828254610ec491906118a0565b90915550506040518181526001600160a01b038516907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26001546040805160028082526060820183526001600160a01b0390931692600092602083019080368337019050509050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f999190611999565b81600081518110610fac57610fac6119b6565b6001600160a01b039283166020918202929092010152600a54825191169082906001908110610fdd57610fdd6119b6565b6001600160a01b039283166020918202929092010152600a546040516370a0823160e01b81528883166004820152600092839283929116906370a0823190602401602060405180830381865afa15801561103b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105f91906118ed565b9050846001600160a01b031663b6f9de95876000878d426040518663ffffffff1660e01b815260040161109594939291906119cc565b6000604051808303818588803b1580156110ae57600080fd5b505af1935050505080156110c0575060015b611102576110cc611a36565b806308c379a014156110f657506110e1611a8d565b806110ec57506110f8565b6000935050611181565b505b3d6000803e3d6000fd5b600a546040516370a0823160e01b81526001600160a01b038b8116600483015260019550839216906370a0823190602401602060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117491906118ed565b61117e9190611982565b91505b826111dd576001600160a01b0389166000908152600d6020526040812080548892906111ae908490611982565b9250508190555085600960008282546111c79190611982565b9091555060009a8b9a5098505050505050505050565b50939793965092945050505050565b50600093849350915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008061125483610cb3565b90508015610c28576001600160a01b0383166000908152600d6020526040812080548392906112849084906118a0565b92505081905550806009600082825461129d91906118a0565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611332576040519150601f19603f3d011682016040523d82523d6000602084013e611337565b606091505b5050905080611390576001600160a01b0384166000908152600d602052604081208054849290611368908490611982565b9250508190555081600960008282546113819190611982565b90915550600095945050505050565b5092915050565b6001600160a01b03821661140c5760405162461bcd60e51b815260206004820152603660248201527f446567656e4361706974616c5f4469766964656e64547261636b65723a206d696044820152756e7420746f20746865207a65726f206164647265737360501b60648201526084016106c1565b806005600082825461141e91906118a0565b90915550506001600160a01b0382166000908152600660205260408120805483929061144b9084906118a0565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a38060075461149f919061185f565b6001600160a01b0383166000908152600c60205260409020546114c29190611b17565b6001600160a01b039092166000908152600c602052604090209190915550565b6001600160a01b03821661155e5760405162461bcd60e51b815260206004820152603860248201527f446567656e4361706974616c5f4469766964656e64547261636b65723a20627560448201527f726e2066726f6d20746865207a65726f2061646472657373000000000000000060648201526084016106c1565b6001600160a01b038216600090815260066020526040902054818110156115ed5760405162461bcd60e51b815260206004820152603960248201527f446567656e4361706974616c5f4469766964656e64547261636b65723a20627560448201527f726e20616d6f756e7420657863656564732062616c616e63650000000000000060648201526084016106c1565b6115f78282611982565b6001600160a01b03841660009081526006602052604081209190915560058054849290611625908490611982565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a381600754611679919061185f565b6001600160a01b0384166000908152600c602052604090205461169c9190611941565b6001600160a01b039093166000908152600c60205260409020929092555050565b6001600160a01b0381168114610e0c57600080fd5b600080604083850312156116e557600080fd5b82356116f0816116bd565b91506020830135801515811461170557600080fd5b809150509250929050565b600060208083528351808285015260005b8181101561173d57858101830151858201604001528201611721565b8181111561174f576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561177857600080fd5b8235611783816116bd565b946020939093013593505050565b6000806000606084860312156117a657600080fd5b83356117b1816116bd565b925060208401356117c1816116bd565b929592945050506040919091013590565b6000602082840312156117e457600080fd5b81356117ef816116bd565b9392505050565b6000806040838503121561180957600080fd5b823591506020830135611705816116bd565b6000806040838503121561182e57600080fd5b8235611839816116bd565b91506020830135611705816116bd565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561187957611879611849565b500290565b60008261189b57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156118b3576118b3611849565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156118ff57600080fd5b5051919050565b600181811c9082168061191a57607f821691505b6020821081141561193b57634e487b7160e01b600052602260045260246000fd5b50919050565b600080821280156001600160ff1b038490038513161561196357611963611849565b600160ff1b839003841281161561197c5761197c611849565b50500190565b60008282101561199457611994611849565b500390565b6000602082840312156119ab57600080fd5b81516117ef816116bd565b634e487b7160e01b600052603260045260246000fd5b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015611a165784516001600160a01b0316835293830193918301916001016119f1565b50506001600160a01b039690961660408501525050506060015292915050565b600060033d1115611a4f5760046000803e5060005160e01c5b90565b601f8201601f1916810167ffffffffffffffff81118282101715611a8657634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d1015611a9b5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611acb57505050505090565b8285019150815181811115611ae35750505050505090565b843d8701016020828501011115611afd5750505050505090565b611b0c60208286010187611a52565b509095945050505050565b60008083128015600160ff1b850184121615611b3557611b35611849565b6001600160ff1b0384018313811615611b5057611b50611849565b5050039056fea26469706673582212202036d26b8bcd3ac905435ec0bcda9a533cbf8ff01401198bba03978e8887eca364736f6c634300080c00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000462a4bbf0975db7b297c231e06e01f4771680da6000000000000000000000000582d8dc91c0c5ab22b4e73ad9492e9434be69f2e000000000000000000000000f0b0d0f49d7cb4043a25e2267eee86045af13e1f00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000763c8d7da493916768f1e3285a1ab0d2a87db2ca
Deployed Bytecode
0x6080604052600436106103bc5760003560e01c80637b510fe8116101f2578063b80b6e891161010d578063dd62ed3e116100a0578063ebbf1ace1161006f578063ebbf1ace14610ba7578063f2fde38b14610bbd578063f4571c4914610bdd578063f69e204614610bfd57600080fd5b8063dd62ed3e14610b0b578063e01af92c14610b51578063e2f4560514610b71578063e4956ce214610b8757600080fd5b8063c705c569116100dc578063c705c56914610a96578063c9567bf914610ab6578063d2fcc00114610acb578063d4c989d314610aeb57600080fd5b8063b80b6e8914610a20578063c024666814610a36578063c3033aeb14610a56578063c6af580b14610a7657600080fd5b8063a2a957bb11610185578063a9059cbb11610154578063a9059cbb14610990578063aa4e8c4a146109b0578063aafd847a146109d0578063b62496f5146109f057600080fd5b8063a2a957bb14610910578063a457c2d714610930578063a680e0bc14610950578063a8b9d2401461097057600080fd5b80638e126944116101c15780638e1269441461089b57806395d89b41146108bb5780639a7a23d6146108d05780639e252f00146108f057600080fd5b80637b510fe8146107eb578063844496291461083d578063870bd30b1461085d5780638da5cb5b1461087d57600080fd5b80634838d165116102e2578063658c27a9116102755780636ddd1713116102445780636ddd17131461076b57806370a082311461078a578063715018a6146107c0578063744d1591146107d557600080fd5b8063658c27a9146106b957806365b8dbc0146106f257806368c51e35146107125780636dd3d39f1461073257600080fd5b8063537df3b6116102b1578063537df3b61461064d57806357777d311461066d5780635937ea6c146106835780635e843ad21461069957600080fd5b80634838d165146105bf57806349bd5a5e146105df5780634e71d92d146105ff5780634fbee1931461061457600080fd5b806327ce01471161035a57806333f3d6281161032957806333f3d62814610553578063377c27ac1461057357806337eb152814610589578063395093511461059f57600080fd5b806327ce0147146104d65780632c1f5216146104f65780632f4504ae14610516578063313ce5671461053757600080fd5b80630dd87157116103965780630dd87157146104455780631694505e1461046957806318160ddd146104a157806323b872dd146104b657600080fd5b80630483f7a0146103c857806306fdde03146103ea578063095ea7b31461041557600080fd5b366103c357005b600080fd5b3480156103d457600080fd5b506103e86103e3366004612fe7565b610c12565b005b3480156103f657600080fd5b506103ff610cb0565b60405161040c9190613020565b60405180910390f35b34801561042157600080fd5b50610435610430366004613075565b610d42565b604051901515815260200161040c565b34801561045157600080fd5b5061045b600c5481565b60405190815260200161040c565b34801561047557600080fd5b50601954610489906001600160a01b031681565b6040516001600160a01b03909116815260200161040c565b3480156104ad57600080fd5b50600e5461045b565b3480156104c257600080fd5b506104356104d13660046130a1565b610d58565b3480156104e257600080fd5b5061045b6104f13660046130e2565b610e10565b34801561050257600080fd5b50601854610489906001600160a01b031681565b34801561052257600080fd5b50600d54610435906301000000900460ff1681565b34801561054357600080fd5b506040516012815260200161040c565b34801561055f57600080fd5b506103e861056e366004613075565b610e86565b34801561057f57600080fd5b5061045b60065481565b34801561059557600080fd5b5061045b600a5481565b3480156105ab57600080fd5b506104356105ba366004613075565b610f26565b3480156105cb57600080fd5b506103e86105da3660046130e2565b610f5d565b3480156105eb57600080fd5b50601a54610489906001600160a01b031681565b34801561060b57600080fd5b506103e8611014565b34801561062057600080fd5b5061043561062f3660046130e2565b6001600160a01b031660009081526014602052604090205460ff1690565b34801561065957600080fd5b506103e86106683660046130e2565b611094565b34801561067957600080fd5b5061045b601b5481565b34801561068f57600080fd5b5061045b60075481565b3480156106a557600080fd5b506103e86106b4366004613106565b611147565b3480156106c557600080fd5b506104356106d43660046130e2565b6001600160a01b03166000908152601e602052604090205460ff1690565b3480156106fe57600080fd5b506103e861070d3660046130e2565b61119f565b34801561071e57600080fd5b506103e861072d366004613148565b611423565b34801561073e57600080fd5b5061043561074d3660046130e2565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561077757600080fd5b50600d5461043590610100900460ff1681565b34801561079657600080fd5b5061045b6107a53660046130e2565b6001600160a01b031660009081526012602052604090205490565b3480156107cc57600080fd5b506103e86114bb565b3480156107e157600080fd5b5061045b601c5481565b3480156107f757600080fd5b5061080b6108063660046130e2565b6114f1565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161040c565b34801561084957600080fd5b506103e8610858366004613161565b61157b565b34801561086957600080fd5b50600d546104359062010000900460ff1681565b34801561088957600080fd5b506000546001600160a01b0316610489565b3480156108a757600080fd5b506103e86108b63660046131a1565b6115ed565b3480156108c757600080fd5b506103ff611650565b3480156108dc57600080fd5b506103e86108eb366004612fe7565b61165f565b3480156108fc57600080fd5b506103e861090b366004613148565b611707565b34801561091c57600080fd5b506103e861092b3660046131c6565b61175e565b34801561093c57600080fd5b5061043561094b366004613075565b6117c5565b34801561095c57600080fd5b5061045b61096b3660046130e2565b611867565b34801561097c57600080fd5b5061045b61098b3660046130e2565b61189a565b34801561099c57600080fd5b506104356109ab366004613075565b6118cd565b3480156109bc57600080fd5b506103e86109cb366004613148565b6118da565b3480156109dc57600080fd5b5061045b6109eb3660046130e2565b611968565b3480156109fc57600080fd5b50610435610a0b3660046130e2565b60156020526000908152604090205460ff1681565b348015610a2c57600080fd5b5061045b60095481565b348015610a4257600080fd5b506103e8610a51366004612fe7565b61199b565b348015610a6257600080fd5b506103e8610a7136600461320e565b611ab9565b348015610a8257600080fd5b506103e8610a913660046132d3565b611b51565b348015610aa257600080fd5b50610435610ab13660046130e2565b611bd1565b348015610ac257600080fd5b506103e8611c40565b348015610ad757600080fd5b506103e8610ae6366004612fe7565b611c79565b348015610af757600080fd5b506103e8610b06366004612fe7565b611cce565b348015610b1757600080fd5b5061045b610b263660046132f0565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b348015610b5d57600080fd5b506103e8610b6c3660046132d3565b611d23565b348015610b7d57600080fd5b5061045b600b5481565b348015610b9357600080fd5b506103e8610ba23660046132d3565b611d96565b348015610bb357600080fd5b5061045b60085481565b348015610bc957600080fd5b506103e8610bd83660046130e2565b611e0d565b348015610be957600080fd5b506103e8610bf836600461320e565b611ea5565b348015610c0957600080fd5b506103e8611f3d565b6000546001600160a01b03163314610c455760405162461bcd60e51b8152600401610c3c9061331e565b60405180910390fd5b60185460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b158015610c9457600080fd5b505af1158015610ca8573d6000803e3d6000fd5b505050505050565b606060048054610cbf90613353565b80601f0160208091040260200160405190810160405280929190818152602001828054610ceb90613353565b8015610d385780601f10610d0d57610100808354040283529160200191610d38565b820191906000526020600020905b815481529060010190602001808311610d1b57829003601f168201915b5050505050905090565b6000610d4f338484611fbe565b50600192915050565b6000610d658484846120f1565b6001600160a01b038416600090815260136020908152604080832033845290915290205482811015610df15760405162461bcd60e51b815260206004820152602f60248201527f446567656e4361706974616c3a207472616e7366657220616d6f756e7420657860448201526e636565647320616c6c6f77616e636560881b6064820152608401610c3c565b610e058533610e0086856133a4565b611fbe565b506001949350505050565b6018546040516327ce014760e01b81526001600160a01b03838116600483015260009216906327ce0147906024015b602060405180830381865afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906133bb565b92915050565b6000546001600160a01b03163314610eb05760405162461bcd60e51b8152600401610c3c9061331e565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2191906133d4565b505050565b3360008181526013602090815260408083206001600160a01b03871684529091528120549091610d4f918590610e009086906133f1565b6000546001600160a01b03163314610f875760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03811660009081526017602052604090205460ff1615610ff05760405162461bcd60e51b815260206004820152601860248201527f7573657220616c726561647920626c61636b6c697374656400000000000000006044820152606401610c3c565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6018546001600160a01b031663807ab4f7335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af115801561106d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109191906133d4565b50565b6000546001600160a01b031633146110be5760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03811660009081526017602052604090205460ff166111265760405162461bcd60e51b815260206004820152601860248201527f7573657220616c72656164792077686974656c697374656400000000000000006044820152606401610c3c565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6000546001600160a01b031633146111715760405162461bcd60e51b8152600401610c3c9061331e565b600d8054600b9390935590151560ff19931515610100029390931661ffff1990921691909117919091179055565b6000546001600160a01b031633146111c95760405162461bcd60e51b8152600401610c3c9061331e565b6019546001600160a01b038281169116141561124d5760405162461bcd60e51b815260206004820152603a60248201527f446567656e4361706974616c3a2074686520726f7574657220697320616c726560448201527f6164792073657420746f20746865206e657720616464726573730000000000006064820152608401610c3c565b6019546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3601980546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa1580156112e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113089190613409565b6001600160a01b031663c9c6539630601960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e9190613409565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156113db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ff9190613409565b601a80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000546001600160a01b0316331461144d5760405162461bcd60e51b8152600401610c3c9061331e565b60af811015801561146057506127108111155b6114b65760405162461bcd60e51b815260206004820152602160248201527f425053206d757374206265206265747765656e2031373520616e6420313030306044820152600360fc1b6064820152608401610c3c565b601c55565b6000546001600160a01b031633146114e55760405162461bcd60e51b8152600401610c3c9061331e565b6114ef6000612771565b565b601854604051630f6a21fd60e31b81526001600160a01b0383811660048301526000928392839283928392911690637b510fe89060240160a060405180830381865afa158015611545573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115699190613426565b939a9299509097509550909350915050565b6000546001600160a01b031633146115a55760405162461bcd60e51b8152600401610c3c9061331e565b600f80546001600160a01b0394851661010002610100600160a81b0319909116179055601080549284166001600160a01b031993841617905560118054919093169116179055565b6000546001600160a01b031633146116175760405162461bcd60e51b8152600401610c3c9061331e565b6018546040516323849a5160e21b8152600481018490526001600160a01b03838116602483015290911690638e12694490604401610c7a565b606060058054610cbf90613353565b6000546001600160a01b031633146116895760405162461bcd60e51b8152600401610c3c9061331e565b601a546001600160a01b03838116911614156116f95760405162461bcd60e51b815260206004820152602960248201527f446567656e4361706974616c3a2044455820706169722063616e206e6f74206260448201526819481c995b5bdd995960ba1b6064820152608401610c3c565b61170382826127c1565b5050565b6000546001600160a01b031633146117315760405162461bcd60e51b8152600401610c3c9061331e565b604051339082156108fc029083906000818181858888f19350505050158015611703573d6000803e3d6000fd5b6000546001600160a01b031633146117885760405162461bcd60e51b8152600401610c3c9061331e565b600784905560088390556009829055600681905580826117a885876133f1565b6117b291906133f1565b6117bc91906133f1565b600a5550505050565b3360009081526013602090815260408083206001600160a01b03861684529091528120548281101561184e5760405162461bcd60e51b815260206004820152602c60248201527f446567656e4361706974616c3a2064656372656173656420616c6c6f77616e6360448201526b652062656c6f77207a65726f60a01b6064820152608401610c3c565b61185d3385610e0086856133a4565b5060019392505050565b6018546040516329a0382f60e21b81526001600160a01b038381166004830152600092169063a680e0bc90602401610e3f565b6018546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610e3f565b6000610d4f3384846120f1565b6000546001600160a01b031633146119045760405162461bcd60e51b8152600401610c3c9061331e565b604b811015801561191757506127108111155b6119635760405162461bcd60e51b815260206004820181905260248201527f425053206d757374206265206265747765656e20373520616e642031303030306044820152606401610c3c565b601b55565b60185460405163557ec23d60e11b81526001600160a01b038381166004830152600092169063aafd847a90602401610e3f565b6000546001600160a01b031633146119c55760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415611a5a5760405162461bcd60e51b815260206004820152603760248201527f446567656e4361706974616c3a206163636f756e7420697320616c726561647960448201527f2073657420746f207265717565737465642073746174650000000000000000006064820152608401610c3c565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6000546001600160a01b03163314611ae35760405162461bcd60e51b8152600401610c3c9061331e565b60005b81518160ff16101561170357600160176000848460ff1681518110611b0d57611b0d61346f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611b4981613485565b915050611ae6565b6000546001600160a01b03163314611b7b5760405162461bcd60e51b8152600401610c3c9061331e565b600d8054821515620100000262ff0000199091161790556040517f5bb2376cf656637e70e36c01d3da25685bf3b353f18681b8a5e48c7b2effe13390611bc690831515815260200190565b60405180910390a150565b60185460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015611c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906133d4565b6000546001600160a01b03163314611c6a5760405162461bcd60e51b8152600401610c3c9061331e565b601d805460ff19166001179055565b6000546001600160a01b03163314611ca35760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03919091166000908152601f60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611cf85760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611d4d5760405162461bcd60e51b8152600401610c3c9061331e565b600d80548215156101000261ff00199091161790556040517fb9bbb15e341600c8d067a0cadeba219905d5ba6d422b193c9c32265d26fc51c890611bc690831515815260200190565b6000546001600160a01b03163314611dc05760405162461bcd60e51b8152600401610c3c9061331e565b600d805482151563010000000263ff000000199091161790556040517f341322866a3a2c26c27efa4c270c5ba86f6963257118897dd8196f224c002d4390611bc690831515815260200190565b6000546001600160a01b03163314611e375760405162461bcd60e51b8152600401610c3c9061331e565b6001600160a01b038116611e9c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c3c565b61109181612771565b6000546001600160a01b03163314611ecf5760405162461bcd60e51b8152600401610c3c9061331e565b60005b81518160ff16101561170357600060176000848460ff1681518110611ef957611ef961346f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611f3581613485565b915050611ed2565b600d546301000000900460ff16611fa75760405162461bcd60e51b815260206004820152602860248201527f446567656e4361706974616c3a20636f6d706f756e64696e67206973206e6f7460448201526708195b98589b195960c21b6064820152608401610c3c565b6018546001600160a01b0316636de1a5a933611027565b6001600160a01b0383166120285760405162461bcd60e51b815260206004820152602b60248201527f446567656e4361706974616c3a20617070726f76652066726f6d20746865207a60448201526a65726f206164647265737360a81b6064820152608401610c3c565b6001600160a01b0382166120905760405162461bcd60e51b815260206004820152602960248201527f446567656e4361706974616c3a20617070726f766520746f20746865207a65726044820152686f206164647265737360b81b6064820152608401610c3c565b6001600160a01b0383811660008181526013602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b601d5460ff168061210f57506000546001600160a01b038481169116145b8061212757506000546001600160a01b038381169116145b8061214a57506001600160a01b03831660009081526016602052604090205460ff165b8061216d57506001600160a01b03821660009081526016602052604090205460ff165b6121a45760405162461bcd60e51b81526020600482015260086024820152672737ba1027b832b760c11b6044820152606401610c3c565b6001600160a01b03831660009081526017602052604090205460ff16156122195760405162461bcd60e51b815260206004820152602360248201527f446567656e4361706974616c3a2053656e64657220697320626c61636b6c69736044820152621d195960ea1b6064820152608401610c3c565b6001600160a01b03821660009081526017602052604090205460ff16156122915760405162461bcd60e51b815260206004820152602660248201527f446567656e4361706974616c3a20526563697069656e7420697320626c61636b6044820152651b1a5cdd195960d21b6064820152608401610c3c565b6001600160a01b0383166122b75760405162461bcd60e51b8152600401610c3c906134a5565b6001600160a01b0382166122dd5760405162461bcd60e51b8152600401610c3c906134f1565b6000612710601b546122ee600e5490565b6122f8919061353b565b612302919061355a565b90506000612710601c54612315600e5490565b61231f919061353b565b612329919061355a565b9050818311158061235257506001600160a01b0385166000908152601e602052604090205460ff165b6123925760405162461bcd60e51b8152602060048201526011602482015270151608131a5b5a5d08115e18d959591959607a1b6044820152606401610c3c565b6000546001600160a01b038681169116148015906123b957506001600160a01b0384163014155b80156123d357506002546001600160a01b03858116911614155b80156123ed5750601a546001600160a01b03858116911614155b15612439576001600160a01b038416600090815260126020908152604080832054601f9092529091205460ff168061242e57508161242b85836133f1565b11155b61243757600080fd5b505b6001600160a01b038516600090815260126020526040902054838110156124725760405162461bcd60e51b8152600401610c3c9061357c565b30600090815260126020526040902054600b54600d54479183101590610100900460ff16801561249f5750805b80156124ae5750600f5460ff16155b80156124d357506001600160a01b03891660009081526015602052604090205460ff16155b80156124ed57506019546001600160a01b038a8116911614155b801561250757506000546001600160a01b038a8116911614155b801561252157506000546001600160a01b03898116911614155b1561255c57600f805460ff19166001179055600d5460ff1661254357600b5492505b61254d8383612934565b42600c55600f805460ff191690555b601a546000906001600160a01b038b8116911614806125885750601a546001600160a01b038a81169116145b15612591575060015b6001600160a01b038a1660009081526014602052604090205460ff16806125d057506001600160a01b03891660009081526014602052604090205460ff165b156125d9575060005b600f5460ff16806125f35750600d5462010000900460ff16155b156125fc575060005b801561263a576000612710600a548a612615919061353b565b61261f919061355a565b905061262b818a6133a4565b98506126388b3083612cbd565b505b6126458a8a8a612cbd565b6018546001600160a01b031663e30443bc8b612676816001600160a01b031660009081526012602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156126bc57600080fd5b505af11580156126d0573d6000803e3d6000fd5b50506018546001600160a01b0316915063e30443bc90508a612707816001600160a01b031660009081526012602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561274d57600080fd5b505af1158015612761573d6000803e3d6000fd5b5050505050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526015602052604090205460ff16151581151514156128655760405162461bcd60e51b815260206004820152604660248201527f446567656e4361706974616c3a206175746f6d61746564206d61726b6574206d60448201527f616b6572207061697220697320616c72656164792073657420746f20746861746064820152652076616c756560d01b608482015260a401610c3c565b6001600160a01b0382166000908152601560205260409020805460ff191682158015919091179091556128f85760185460405162241fbd60e51b81526001600160a01b0384811660048301526001602483015290911690630483f7a090604401600060405180830381600087803b1580156128df57600080fd5b505af11580156128f3573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b60008211612940575050565b600f5460009061010090046001600160a01b03161561297657600a54600754612969908561353b565b612973919061355a565b90505b600080601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f091906133bb565b1115612a1357600a54600954612a06908661353b565b612a10919061355a565b90505b6011546000906001600160a01b031615612a4457600a54600654612a37908761353b565b612a41919061355a565b90505b60008183612a5286896133a4565b612a5c91906133a4565b612a6691906133a4565b90506000612a7560028361355a565b90506000612a8382846133a4565b905060008483612a93888a6133f1565b612a9d91906133f1565b612aa791906133f1565b905047612ab382612ddc565b600089612ac083476133a4565b612aca91906133f1565b9050600083612ad98b8461353b565b612ae3919061355a565b9050600084612af28a8561353b565b612afc919061355a565b9050600085612b0b8c8661353b565b612b15919061355a565b905060008183612b2586886133a4565b612b2f91906133a4565b612b3991906133a4565b90508315612b8157600f546040516101009091046001600160a01b0316906108fc8615029086906000818181858888f19350505050158015612b7f573d6000803e3d6000fd5b505b8215612bc3576011546040516001600160a01b039091169084156108fc029085906000818181858888f19350505050158015612bc1573d6000803e3d6000fd5b505b612bcd8882612f00565b604080518a8152602081018390529081018990527fb63dc6f50047533abe2d6adf180d38d524c8d98e55ad199aac8d6b9801bbe24a9060600160405180910390a18115612cac576018546040516000916001600160a01b03169084908381818185875af1925050503d8060008114612c61576040519150601f19603f3d011682016040523d82523d6000602084013e612c66565b606091505b505090508015612caa57604080518e8152602081018590527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3910160405180910390a15b505b505050505050505050505050505050565b6001600160a01b038316612ce35760405162461bcd60e51b8152600401610c3c906134a5565b6001600160a01b038216612d095760405162461bcd60e51b8152600401610c3c906134f1565b6001600160a01b03831660009081526012602052604090205481811015612d425760405162461bcd60e51b8152600401610c3c9061357c565b612d4c82826133a4565b6001600160a01b038086166000908152601260205260408082209390935590851681529081208054849290612d829084906133f1565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612dce91815260200190565b60405180910390a350505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e1157612e1161346f565b6001600160a01b03928316602091820292909201810191909152601954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612e6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8e9190613409565b81600181518110612ea157612ea161346f565b6001600160a01b039283166020918202929092010152601954612ec79130911684611fbe565b60195460405163791ac94760e01b81526001600160a01b039091169063791ac94790610c7a9085906000908690309042906004016135c9565b601954612f189030906001600160a01b031684611fbe565b60195460105460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612f88573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612fad919061363a565b5050505050565b6001600160a01b038116811461109157600080fd5b8035612fd481612fb4565b919050565b801515811461109157600080fd5b60008060408385031215612ffa57600080fd5b823561300581612fb4565b9150602083013561301581612fd9565b809150509250929050565b600060208083528351808285015260005b8181101561304d57858101830151858201604001528201613031565b8181111561305f576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561308857600080fd5b823561309381612fb4565b946020939093013593505050565b6000806000606084860312156130b657600080fd5b83356130c181612fb4565b925060208401356130d181612fb4565b929592945050506040919091013590565b6000602082840312156130f457600080fd5b81356130ff81612fb4565b9392505050565b60008060006060848603121561311b57600080fd5b833561312681612fd9565b925060208401359150604084013561313d81612fd9565b809150509250925092565b60006020828403121561315a57600080fd5b5035919050565b60008060006060848603121561317657600080fd5b833561318181612fb4565b9250602084013561319181612fb4565b9150604084013561313d81612fb4565b600080604083850312156131b457600080fd5b82359150602083013561301581612fb4565b600080600080608085870312156131dc57600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561322157600080fd5b823567ffffffffffffffff8082111561323957600080fd5b818501915085601f83011261324d57600080fd5b81358181111561325f5761325f6131f8565b8060051b604051601f19603f83011681018181108582111715613284576132846131f8565b6040529182528482019250838101850191888311156132a257600080fd5b938501935b828510156132c7576132b885612fc9565b845293850193928501926132a7565b98975050505050505050565b6000602082840312156132e557600080fd5b81356130ff81612fd9565b6000806040838503121561330357600080fd5b823561330e81612fb4565b9150602083013561301581612fb4565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061336757607f821691505b6020821081141561338857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156133b6576133b661338e565b500390565b6000602082840312156133cd57600080fd5b5051919050565b6000602082840312156133e657600080fd5b81516130ff81612fd9565b600082198211156134045761340461338e565b500190565b60006020828403121561341b57600080fd5b81516130ff81612fb4565b600080600080600060a0868803121561343e57600080fd5b855161344981612fb4565b602087015160408801516060890151608090990151929a91995097965090945092505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff81141561349c5761349c61338e565b60010192915050565b6020808252602c908201527f446567656e4361706974616c3a207472616e736665722066726f6d207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b6020808252602a908201527f446567656e4361706974616c3a207472616e7366657220746f20746865207a65604082015269726f206164647265737360b01b606082015260800190565b60008160001904831182151516156135555761355561338e565b500290565b60008261357757634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602d908201527f446567656e4361706974616c3a207472616e7366657220616d6f756e7420657860408201526c63656564732062616c616e636560981b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156136195784516001600160a01b0316835293830193918301916001016135f4565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561364f57600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212205dd4da1d2fd12415016132c4544b7244d32e980ce8f338920feaa4a1f81cf35f64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000462a4bbf0975db7b297c231e06e01f4771680da6000000000000000000000000582d8dc91c0c5ab22b4e73ad9492e9434be69f2e000000000000000000000000f0b0d0f49d7cb4043a25e2267eee86045af13e1f00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000763c8d7da493916768f1e3285a1ab0d2a87db2ca
-----Decoded View---------------
Arg [0] : _treasuryWallet (address): 0x462a4bbF0975DB7b297C231E06E01f4771680DA6
Arg [1] : _liquidityWallet (address): 0x582d8Dc91C0C5aB22b4E73AD9492E9434Be69F2e
Arg [2] : _devWallet (address): 0xf0b0D0F49D7Cb4043A25e2267eEE86045AF13E1f
Arg [3] : whitelistAddress (address[]): 0x763c8D7dA493916768f1e3285a1ab0D2a87db2ca
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000462a4bbf0975db7b297c231e06e01f4771680da6
Arg [1] : 000000000000000000000000582d8dc91c0c5ab22b4e73ad9492e9434be69f2e
Arg [2] : 000000000000000000000000f0b0d0f49d7cb4043a25e2267eee86045af13e1f
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 000000000000000000000000763c8d7da493916768f1e3285a1ab0d2a87db2ca
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.