ERC-20
DeFi
Overview
Max Total Supply
11,000,000 $0xGas
Holders
994 (0.00%)
Market
Price
$0.06 @ 0.000021 ETH (+2.42%)
Onchain Market Cap
$629,420.00
Circulating Supply Market Cap
$629,415.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
91.915157272989268313 $0xGasValue
$5.26 ( ~0.00195224894921088 Eth) [0.0008%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OxGasless
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.20; // SPDX-License-Identifier: MIT /** Website: https://0xgasless.com X (Twitter): https://x.com/0xGasless TG: https://t.me/Gasless0x **/ import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } 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); } 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); } contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); } /** @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"); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } } contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() external virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } library Address { function isContract(address account) internal view returns (bool) { return account.code.length > 0; } 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"); } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } 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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function _callOptionalReturn(IERC20 token, bytes memory data) private { bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } } interface ILpPair { function sync() external; } interface IDexRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IDexFactory { function createPair(address tokenA, address tokenB) external returns (address pair); } library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, 'SafeMath: addition overflow'); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, 'SafeMath: subtraction overflow'); } function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, 'SafeMath: multiplication overflow'); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, 'SafeMath: division by zero'); } function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, 'SafeMath: modulo by zero'); } function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function min(uint256 x, uint256 y) internal pure returns (uint256 z) { z = x < y ? x : y; } function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } } interface DividendPayingContractOptionalInterface { function withdrawableDividendOf(address _owner) external view returns(uint256); function withdrawnDividendOf(address _owner) external view returns(uint256); function accumulativeDividendOf(address _owner) external view returns(uint256); } interface DividendPayingContractInterface { function dividendOf(address _owner) external view returns(uint256); function distributeDividends() external payable; function withdrawDividend() external; event DividendsDistributed( address indexed from, uint256 weiAmount ); event DividendWithdrawn( address indexed to, uint256 weiAmount ); } contract DividendPayingContract is DividendPayingContractInterface, DividendPayingContractOptionalInterface, Ownable { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; mapping (address => uint256) public holderBalance; uint256 public totalBalance; uint256 public totalDividendsDistributed; receive() external payable { distributeDividends(); } function distributeDividends() public override payable { if(totalBalance > 0 && msg.value > 0){ magnifiedDividendPerShare = magnifiedDividendPerShare.add( (msg.value).mul(magnitude) / totalBalance ); emit DividendsDistributed(msg.sender, msg.value); totalDividendsDistributed = totalDividendsDistributed.add(msg.value); } } function withdrawDividend() external virtual override { _withdrawDividendOfUser(payable(msg.sender)); } function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); (bool success,) = user.call{value: _withdrawableDividend}(""); if(!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } return _withdrawableDividend; } return 0; } function withdrawDividendOfUserForCompound(address payable user) external onlyOwner returns (uint256 _withdrawableDividend) { _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user] + _withdrawableDividend; emit DividendWithdrawn(user, _withdrawableDividend); } (bool success,) = owner().call{value: _withdrawableDividend}(""); if(!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } } function dividendOf(address _owner) external view override returns(uint256) { return withdrawableDividendOf(_owner); } function withdrawableDividendOf(address _owner) public view override returns(uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } function withdrawnDividendOf(address _owner) external view override returns(uint256) { return withdrawnDividends[_owner]; } function accumulativeDividendOf(address _owner) public view override returns(uint256) { return magnifiedDividendPerShare.mul(holderBalance[_owner]).toInt256Safe() .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude; } function _increase(address account, uint256 value) internal { magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _reduce(address account, uint256 value) internal { magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = holderBalance[account]; holderBalance[account] = newBalance; if(newBalance > currentBalance) { uint256 increaseAmount = newBalance.sub(currentBalance); _increase(account, increaseAmount); totalBalance += increaseAmount; } else if(newBalance < currentBalance) { uint256 reduceAmount = currentBalance.sub(newBalance); _reduce(account, reduceAmount); totalBalance -= reduceAmount; } } } contract RevShare is DividendPayingContract { event Claim(address indexed account, uint256 amount, bool indexed automatic); mapping (address => bool) public excludedFromDividends; constructor() {} function getAccount(address _account) public view returns ( address account, uint256 withdrawableDividends, uint256 totalDividends, uint256 balance) { account = _account; withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); balance = holderBalance[account]; } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if(excludedFromDividends[account]) { return; } _setBalance(account, newBalance); processAccount(account, true); } function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if(amount > 0) { emit Claim(account, amount, automatic); return true; } return false; } function getTotalDividendsDistributed() external view returns (uint256) { return totalDividendsDistributed; } function dividendTokenBalanceOf(address account) public view returns (uint256) { return holderBalance[account]; } function getNumberOfDividends() external view returns(uint256) { return totalBalance; } function excludeFromDividends(address account) external onlyOwner { excludedFromDividends[account] = true; _setBalance(account, 0); } function includeInDividends(address account) external onlyOwner { require(excludedFromDividends[account]); excludedFromDividends[account] = false; _setBalance(account, IERC20(owner()).balanceOf(account)); // sets balance back to token balance } } contract OxGasless is ERC20, Ownable, EIP712 { mapping (address => bool) public excludedFromFees; mapping (address => bool) public excludedFromLimits; string private constant SIGNING_DOMAIN = "0xGasless"; string private constant SIGNATURE_VERSION = "1"; bool public launched; mapping (address => bool) public isAMMPair; address public mktingAddress; address public devAddress; Tax public buyTax; Tax public sellTax; RevShare public revShare; TokenDistributionForTax public tokensForTax; TxLimits public txLimits; bool public txLimitsActive = true; mapping(address => uint256) private _holderLastTransferBlock; // MEV protection bool public antiSandwichEnabled = true; uint256 public swapTokensAtAmount; address public pair; IDexRouter public dexRouter; address public immutable WETH; uint64 public constant FEE_DIVISOR = 10000; // structs struct TxLimits { uint128 transactionLimit; uint128 walletLimit; } struct Tax { uint48 mktingTax; uint48 devTax; uint48 lpTax; uint48 revShareTax; uint48 totalTax; } struct TokenDistributionForTax { uint64 tokensForMkting; uint64 tokensForLP; uint64 tokensForDev; uint64 tokensForRevShare; bool gasSaver; } // events event UpdatedTransactionLimit(uint newMax); event UpdatedWalletLimit(uint newMax); event SetExcludedFromFees(address _address, bool _isExcluded); event SetExcludedFromLimits(address _address, bool _isExcluded); event RemovedLimits(); event BuyTaxUpdated(uint newAmount); event SellTaxUpdated(uint newAmount); // constructor constructor() ERC20("0xGasless", "$0xGas") EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) { _mint(msg.sender, 11_000_000 * 1e18); address _v2Router; // @dev assumes WETH pair if(block.chainid == 1){ _v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; } else if(block.chainid == 5){ _v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; } else { revert("Chain not configured"); } revShare = new RevShare(); dexRouter = IDexRouter(_v2Router); txLimits.transactionLimit = uint128(totalSupply() * 20 / 1000); txLimits.walletLimit = uint128(totalSupply() * 2 / 100); swapTokensAtAmount = totalSupply() * 25 / 100000; mktingAddress = 0x87369cf387905EAB08A832F05a36E442C6EaE1A5; // update devAddress = 0x87369cf387905EAB08A832F05a36E442C6EaE1A5; // update buyTax.mktingTax = 400; buyTax.lpTax = 100; buyTax.devTax = 0; buyTax.revShareTax = 0; buyTax.totalTax = buyTax.mktingTax + buyTax.lpTax + buyTax.devTax + buyTax.revShareTax; sellTax.mktingTax = 400; sellTax.lpTax = 100; sellTax.devTax = 0; sellTax.revShareTax = 0; sellTax.totalTax = sellTax.mktingTax + sellTax.lpTax + sellTax.devTax + buyTax.revShareTax + sellTax.revShareTax; tokensForTax.gasSaver = true; WETH = dexRouter.WETH(); pair = IDexFactory(dexRouter.factory()).createPair(address(this), WETH); isAMMPair[pair] = true; excludedFromLimits[pair] = true; excludedFromLimits[msg.sender] = true; excludedFromLimits[address(this)] = true; excludedFromLimits[_v2Router] = true; excludedFromFees[msg.sender] = true; excludedFromFees[address(this)] = true; excludedFromFees[address(0xdead)] = true; excludedFromFees[_v2Router] = true; revShare.excludeFromDividends(address(this)); revShare.excludeFromDividends(address(pair)); revShare.excludeFromDividends(address(0xdead)); _approve(address(this), address(dexRouter), type(uint256).max); _approve(address(msg.sender), address(dexRouter), totalSupply()); } function _transfer( address from, address to, uint256 amount ) internal virtual override { if(!excludedFromFees[from] && !excludedFromFees[to]){ require(launched, "Trading not active"); checkLimits(from, to, amount); amount -= handleTax(from, to, amount); } super._transfer(from,to,amount); revShare.setBalance(payable(to), balanceOf(to)); revShare.setBalance(payable(from), balanceOf(from)); } function checkLimits(address from, address to, uint256 amount) internal { if(txLimitsActive){ bool exFromLimitsTo = excludedFromLimits[to]; uint256 balanceOfTo = balanceOf(to); TxLimits memory _txLimits = txLimits; // buy if (isAMMPair[from] && !exFromLimitsTo) { require(amount <= _txLimits.transactionLimit, "Max Txn"); require(amount + balanceOfTo <= _txLimits.walletLimit, "Max Wallet"); } // sell else if (isAMMPair[to] && !excludedFromLimits[from]) { require(amount <= _txLimits.transactionLimit, "Max Txn"); } else if(!exFromLimitsTo) { require(amount + balanceOfTo <= _txLimits.walletLimit, "Max Wallet"); } } if (antiSandwichEnabled){ if(isAMMPair[to]){ require(_holderLastTransferBlock[from] < block.number, "Anti MEV"); } else { _holderLastTransferBlock[to] = block.number; _holderLastTransferBlock[tx.origin] = block.number; } } } function handleTax(address from, address to, uint256 amount) internal returns (uint256){ if(balanceOf(address(this)) >= swapTokensAtAmount && !isAMMPair[from]) { convertTax(); } uint128 tax = 0; Tax memory taxes; if (isAMMPair[to]){ taxes = sellTax; } else if(isAMMPair[from]){ taxes = buyTax; } if(taxes.totalTax > 0){ TokenDistributionForTax memory tokensForTaxUpdate = tokensForTax; tax = uint128(amount * taxes.totalTax / FEE_DIVISOR); tokensForTaxUpdate.tokensForLP += uint64(tax * taxes.lpTax / taxes.totalTax / 1e9); tokensForTaxUpdate.tokensForMkting += uint64(tax * taxes.mktingTax / taxes.totalTax / 1e9); tokensForTaxUpdate.tokensForDev += uint64(tax * taxes.devTax / taxes.totalTax / 1e9); tokensForTaxUpdate.tokensForRevShare += uint64(tax * taxes.revShareTax / taxes.totalTax / 1e9); tokensForTax = tokensForTaxUpdate; super._transfer(from, address(this), tax); } return tax; } function swapTokensForETH(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = WETH; dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function convertTax() private { uint256 contractBalance = balanceOf(address(this)); TokenDistributionForTax memory tokensForTaxMem = tokensForTax; uint256 totalTokensToSwap = tokensForTaxMem.tokensForLP + tokensForTaxMem.tokensForMkting + tokensForTaxMem.tokensForDev + tokensForTaxMem.tokensForRevShare; if(contractBalance == 0 || totalTokensToSwap == 0) {return;} if(contractBalance > swapTokensAtAmount * 20){ contractBalance = swapTokensAtAmount * 20; } if(tokensForTaxMem.tokensForLP > 0){ uint256 lpTokens = contractBalance * tokensForTaxMem.tokensForLP / totalTokensToSwap; super._transfer(address(this), pair, lpTokens); try ILpPair(pair).sync(){} catch {} contractBalance -= lpTokens; totalTokensToSwap -= tokensForTaxMem.tokensForLP; } if(contractBalance > 0){ swapTokensForETH(contractBalance); uint256 ethBalance = address(this).balance; bool success; if(tokensForTaxMem.tokensForDev > 0){ (success,) = devAddress.call{value: ethBalance * tokensForTaxMem.tokensForDev / totalTokensToSwap}(""); } if(tokensForTaxMem.tokensForRevShare > 0){ (success,) = address(revShare).call{value: ethBalance * tokensForTaxMem.tokensForRevShare/ totalTokensToSwap}(""); } ethBalance = address(this).balance; if(ethBalance > 0){ (success,) = mktingAddress.call{value: ethBalance}(""); } } tokensForTaxMem.tokensForLP = 0; tokensForTaxMem.tokensForMkting = 0; tokensForTaxMem.tokensForDev = 0; tokensForTaxMem.tokensForRevShare = 0; tokensForTax = tokensForTaxMem; } // owner functions function setExcludedFromFee(address _address, bool _isExcluded) external onlyOwner { require(_address != address(0), "Zero Address"); require(_address != address(this), "Cannot unexcluded contract"); excludedFromFees[_address] = _isExcluded; emit SetExcludedFromFees(_address, _isExcluded); } function setExcludedFromLimit(address _address, bool _isExcluded) external onlyOwner { require(_address != address(0), "Zero Address"); if(!_isExcluded){ require(_address != pair, "Cannot remove pair"); } excludedFromLimits[_address] = _isExcluded; emit SetExcludedFromLimits(_address, _isExcluded); } function changeTransactionLimit(uint128 newNumInTokens) external onlyOwner { require(newNumInTokens >= (totalSupply() * 1 / 1000)/(10**decimals()), "Too low"); txLimits.transactionLimit = uint128(newNumInTokens * (10**decimals())); emit UpdatedTransactionLimit(txLimits.transactionLimit); } function changeWalletLimit(uint128 newNumInTokens) external onlyOwner { require(newNumInTokens >= (totalSupply() * 1 / 1000)/(10**decimals()), "Too low"); txLimits.walletLimit = uint128(newNumInTokens * (10**decimals())); emit UpdatedWalletLimit(txLimits.walletLimit); } function changeSwapTokensAmount(uint256 newAmount) external onlyOwner { require(newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply."); require(newAmount <= (totalSupply() * 5) / 1000, "Swap amount cannot be higher than 0.5% total supply."); swapTokensAtAmount = newAmount; } function changeSellTax(uint48 _mktingTax, uint48 _lpTax, uint48 _devTax, uint48 _revShareTax) external onlyOwner { Tax memory taxes; taxes.mktingTax = _mktingTax; taxes.lpTax = _lpTax; taxes.devTax = _devTax; taxes.revShareTax = _revShareTax; taxes.totalTax = _mktingTax + _lpTax + _devTax + _revShareTax; require(taxes.totalTax <= 1000, "Keep tax below 10%"); emit SellTaxUpdated(taxes.totalTax); sellTax = taxes; } function changeBuyTax(uint48 _mktingTax, uint48 _lpTax, uint48 _devTax, uint48 _revShareTax) external onlyOwner { Tax memory taxes; taxes.mktingTax = _mktingTax; taxes.lpTax = _lpTax; taxes.devTax = _devTax; taxes.revShareTax = _revShareTax; taxes.totalTax = _mktingTax + _lpTax + _devTax + _revShareTax; require(taxes.totalTax <= 1000, "Keep tax below 10%"); emit BuyTaxUpdated(taxes.totalTax); buyTax = taxes; } function setLaunched() external onlyOwner { require(!launched, "Trading already live"); launched = true; } function removeTxLimits() external onlyOwner { txLimitsActive = false; TxLimits memory _txLimits; uint256 supply = totalSupply(); _txLimits.transactionLimit = uint128(supply); _txLimits.walletLimit = uint128(supply); txLimits = _txLimits; emit RemovedLimits(); } function updateSandwichBlockerEnabled(bool _enabled) external onlyOwner { antiSandwichEnabled = _enabled; } function updateMktingAddress(address _address) external onlyOwner { require(_address != address(0), "zero address"); mktingAddress = _address; } function updateDevAddress(address _address) external onlyOwner { require(_address != address(0), "zero address"); devAddress = _address; } receive() payable external {} // dividend functions function claim() external { revShare.processAccount(payable(msg.sender), false); } function getTotalDividendsDistributed() external view returns (uint256) { return revShare.totalDividendsDistributed(); } function withdrawableDividendOf(address account) public view returns(uint256) { return revShare.withdrawableDividendOf(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return revShare.holderBalance(account); } function getAccountDividendsInfo(address account) external view returns ( address, uint256, uint256, uint256) { return revShare.getAccount(account); } function getNumberOfDividends() external view returns(uint256) { return revShare.totalBalance(); } function excludeFromDividends(address _wallet) external onlyOwner { revShare.excludeFromDividends(_wallet); } function includeInDividends(address _wallet) external onlyOwner { revShare.includeInDividends(_wallet); } function compound(uint256 minOutput) external { uint256 amountEthForCompound = revShare.withdrawDividendOfUserForCompound(payable(msg.sender)); if(amountEthForCompound > 0){ buyBackTokens(amountEthForCompound, minOutput, msg.sender); } else { revert("No rewards"); } } function buyBackTokens(uint256 ethAmountInWei, uint256 minOut, address to) internal { // generate the uniswap pair path of weth -> eth address[] memory path = new address[](2); path[0] = dexRouter.WETH(); path[1] = address(this); // make the swap dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmountInWei}( minOut, path, address(to), block.timestamp ); } // helper views function getCompoundOutputByEthAmount(uint256 rewardAmount) external view returns(uint256) { address[] memory path = new address[](2); path[0] = dexRouter.WETH(); path[1] = address(this); uint256[] memory amounts = dexRouter.getAmountsOut(rewardAmount, path); return amounts[1] - (amounts[1] * (buyTax.totalTax + 50) / FEE_DIVISOR); } function getCompoundOutputByWallet(address wallet) external view returns(uint256) { uint256 rewardAmount = withdrawableDividendOf(wallet); address[] memory path = new address[](2); path[0] = dexRouter.WETH(); path[1] = address(this); uint256[] memory amounts = dexRouter.getAmountsOut(rewardAmount, path); return amounts[1] - (amounts[1] * (buyTax.totalTax + 50) / FEE_DIVISOR); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; // EIP-712 is Final as of 2022-08-11. This file is deprecated. import "./EIP712.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.20; import {MessageHashUtils} from "./MessageHashUtils.sol"; import {ShortStrings, ShortString} from "../ShortStrings.sol"; import {IERC5267} from "../../interfaces/IERC5267.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * @custom:oz-upgrades-unsafe-allow state-variable-immutable */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {IERC-5267}. */ function eip712Domain() public view virtual returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _EIP712Name(), _EIP712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev The name parameter for the EIP712 domain. * * NOTE: By default this function reads _name which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Name() internal view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } /** * @dev The version parameter for the EIP712 domain. * * NOTE: By default this function reads _version which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Version() internal view returns (string memory) { return _version.toStringWithFallback(_versionFallback); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.20; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol) pragma solidity ^0.8.20; import {StorageSlot} from "./StorageSlot.sol"; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using * {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol) pragma solidity ^0.8.20; import {Strings} from "../Strings.sol"; /** * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. * * The library provides methods for generating a hash of a message that conforms to the * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] * specifications. */ library MessageHashUtils { /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing a bytes32 `messageHash` with * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with * keccak256, although any bytes32 value can be safely used because the final digest will * be re-hashed. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20) } } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing an arbitrary `message` with * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { return keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message)); } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x00` (data with intended validator). * * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended * `validator` address. Then hashing the result. * * See {ECDSA-recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked(hex"19_00", validator, data)); } /** * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`). * * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with * `\x19\x01` and hashing the result. It corresponds to the hash signed by the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712. * * See {ECDSA-recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, hex"19_01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) digest := keccak256(ptr, 0x42) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ 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 subtraction of two unsigned integers, with an overflow flag. */ 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. */ 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. */ 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. */ 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 largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"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":"uint256","name":"newAmount","type":"uint256"}],"name":"BuyTaxUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","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":[],"name":"RemovedLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"SellTaxUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"SetExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"SetExcludedFromLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"UpdatedTransactionLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"UpdatedWalletLimit","type":"event"},{"inputs":[],"name":"FEE_DIVISOR","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"antiSandwichEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTax","outputs":[{"internalType":"uint48","name":"mktingTax","type":"uint48"},{"internalType":"uint48","name":"devTax","type":"uint48"},{"internalType":"uint48","name":"lpTax","type":"uint48"},{"internalType":"uint48","name":"revShareTax","type":"uint48"},{"internalType":"uint48","name":"totalTax","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint48","name":"_mktingTax","type":"uint48"},{"internalType":"uint48","name":"_lpTax","type":"uint48"},{"internalType":"uint48","name":"_devTax","type":"uint48"},{"internalType":"uint48","name":"_revShareTax","type":"uint48"}],"name":"changeBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"_mktingTax","type":"uint48"},{"internalType":"uint48","name":"_lpTax","type":"uint48"},{"internalType":"uint48","name":"_devTax","type":"uint48"},{"internalType":"uint48","name":"_revShareTax","type":"uint48"}],"name":"changeSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"changeSwapTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newNumInTokens","type":"uint128"}],"name":"changeTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newNumInTokens","type":"uint128"}],"name":"changeWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minOutput","type":"uint256"}],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexRouter","outputs":[{"internalType":"contract IDexRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"getCompoundOutputByEthAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getCompoundOutputByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"includeInDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAMMPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mktingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeTxLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revShare","outputs":[{"internalType":"contract RevShare","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint48","name":"mktingTax","type":"uint48"},{"internalType":"uint48","name":"devTax","type":"uint48"},{"internalType":"uint48","name":"lpTax","type":"uint48"},{"internalType":"uint48","name":"revShareTax","type":"uint48"},{"internalType":"uint48","name":"totalTax","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"setExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"setExcludedFromLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setLaunched","outputs":[],"stateMutability":"nonpayable","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":"tokensForTax","outputs":[{"internalType":"uint64","name":"tokensForMkting","type":"uint64"},{"internalType":"uint64","name":"tokensForLP","type":"uint64"},{"internalType":"uint64","name":"tokensForDev","type":"uint64"},{"internalType":"uint64","name":"tokensForRevShare","type":"uint64"},{"internalType":"bool","name":"gasSaver","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txLimits","outputs":[{"internalType":"uint128","name":"transactionLimit","type":"uint128"},{"internalType":"uint128","name":"walletLimit","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txLimitsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"updateDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"updateMktingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"updateSandwichBlockerEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
61018060405260148054600160ff1991821681179092556016805490911690911790553480156200002e575f80fd5b5060408051808201825260098082526830784761736c65737360b81b60208084018290528451808601865260018152603160f81b8183015285518087018752938452838201929092528451808601909552600685526524307847617360d01b9085015291926003620000a1838262000ba9565b506004620000b0828262000ba9565b5050505f620000c46200089560201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200011e82600662000899565b610120526200012f81600762000899565b61014052815160208084019190912060e052815190820120610100524660a052620001bc60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c052620001dc336a09195731e2ce35eb000000620008d1565b5f46600103620002025750737a250d5630b4cf539739df2c5dacb4c659f2488d62000274565b46600503620002275750737a250d5630b4cf539739df2c5dacb4c659f2488d62000274565b60405162461bcd60e51b815260206004820152601460248201527f436861696e206e6f7420636f6e6669677572656400000000000000000000000060448201526064015b60405180910390fd5b604051620002829062000afb565b604051809103905ff0801580156200029c573d5f803e3d5ffd5b50601080546001600160a01b03199081166001600160a01b0393841617909155601980549091169183169190911790556103e8620002d960025490565b620002e690601462000c85565b620002f2919062000c9f565b601380546001600160801b0319166001600160801b039290921691909117905560646200031e60025490565b6200032b90600262000c85565b62000337919062000c9f565b601380546001600160801b03928316600160801b029216919091179055620186a06200036260025490565b6200036f90601962000c85565b6200037b919062000c9f565b601755600c80546001600160a01b03199081167387369cf387905eab08a832f05a36e442c6eae1a5908117909255600d80549091169091179055600e80546001600160c01b0319166c640000000000000000000001901790819055600160901b810465ffffffffffff908116916601000000000000810482169162000414916c0100000000000000000000000090041661019062000cbf565b62000420919062000cbf565b6200042c919062000cbf565b600e805465ffffffffffff928316600160c01b0265ffffffffffff60c01b199091161790819055600f80546001600160c01b0319166c640000000000000000000001901790819055600160901b808204841693920482169166010000000000008204811691620004b1916c010000000000000000000000009091041661019062000cbf565b620004bd919062000cbf565b620004c9919062000cbf565b620004d5919062000cbf565b600f805465ffffffffffff92909216600160c01b0265ffffffffffff60c01b199092169190911790556012805460ff19166001179055601954604080516315ab88c960e31b815290516001600160a01b039092169163ad5c4648916004808201926020929091908290030181865afa15801562000554573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200057a919062000ce8565b6001600160a01b03908116610160526019546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa158015620005ca573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620005f0919062000ce8565b610160516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303815f875af115801562000640573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000666919062000ce8565b601880546001600160a01b0319166001600160a01b0392831690811782555f908152600b60209081526040808320805460ff19908116600190811790925594548616845260098352818420805486168217905533808552828520805487168317905530808652838620805488168417905588881680875284872080548916851790559186526008909452828520805487168317905583855282852080548716831790557f046fee3d77c34a6c5e10c3be6dc4b132c30449dbf4f0bc07684896dd0933429980548716831790558452928190208054909416909217909255601054905163031e79db60e41b81526004810192909252909116906331e79db0906024015f604051808303815f87803b1580156200077f575f80fd5b505af115801562000792573d5f803e3d5ffd5b505060105460185460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db091506024015f604051808303815f87803b158015620007dd575f80fd5b505af1158015620007f0573d5f803e3d5ffd5b505060105460405163031e79db60e41b815261dead60048201526001600160a01b0390911692506331e79db091506024015f604051808303815f87803b15801562000839575f80fd5b505af11580156200084c573d5f803e3d5ffd5b50506019546200086b92503091506001600160a01b03165f1962000992565b6019546200088e9033906001600160a01b03166200088860025490565b62000992565b5062000d9e565b3390565b5f602083511015620008b857620008b08362000ab9565b9050620008cb565b81620008c5848262000ba9565b5060ff90505b92915050565b6001600160a01b038216620009295760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200026b565b8060025f8282546200093c919062000d17565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316620009f65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016200026b565b6001600160a01b03821662000a595760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016200026b565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f80829050601f8151111562000ae6578260405163305a27a960e01b81526004016200026b919062000d2d565b805162000af38262000d7a565b179392505050565b61114c8062004a9c83390190565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168062000b3257607f821691505b60208210810362000b5157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000ba4575f81815260208120601f850160051c8101602086101562000b7f5750805b601f850160051c820191505b8181101562000ba05782815560010162000b8b565b5050505b505050565b81516001600160401b0381111562000bc55762000bc562000b09565b62000bdd8162000bd6845462000b1d565b8462000b57565b602080601f83116001811462000c13575f841562000bfb5750858301515b5f19600386901b1c1916600185901b17855562000ba0565b5f85815260208120601f198616915b8281101562000c435788860151825594840194600190910190840162000c22565b508582101562000c6157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417620008cb57620008cb62000c71565b5f8262000cba57634e487b7160e01b5f52601260045260245ffd5b500490565b65ffffffffffff81811683821601908082111562000ce15762000ce162000c71565b5092915050565b5f6020828403121562000cf9575f80fd5b81516001600160a01b038116811462000d10575f80fd5b9392505050565b80820180821115620008cb57620008cb62000c71565b5f6020808352835180828501525f5b8181101562000d5a5785810183015185820160400152820162000d3c565b505f604082860101526040601f19601f8301168501019250505092915050565b8051602080830151919081101562000b51575f1960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051613caa62000df25f395f8181610978015261345001525f61261201525f6125e501525f50505f50505f50505f50505f5050613caa5ff3fe60806040526004361061035e575f3560e01c806380dee257116101bd578063b0249cc6116100f2578063d8fb9cc411610092578063e2f456051161006d578063e2f4560514610b11578063e8cd2fec14610b26578063f270fde414610b3f578063f2fde38b14610b89575f80fd5b8063d8fb9cc414610aab578063dbe66ca014610ac4578063dd62ed3e14610af2575f80fd5b8063bf78019b116100cd578063bf78019b14610a06578063c0f306ef14610a25578063ca13a70e14610a44578063cc1776d314610a63575f80fd5b8063b0249cc61461099a578063b2a9c0c0146109c8578063bd9dfecc146109e7575f80fd5b8063a457c2d71161015d578063a9059cbb11610138578063a9059cbb146108e0578063aa5f7e26146108ff578063ad56c13c1461091e578063ad5c464814610967575f80fd5b8063a457c2d714610883578063a8aa1b31146108a2578063a8b9d240146108c1575f80fd5b80638da5cb5b116101985780638da5cb5b146108115780639507b19b1461082e57806395d89b41146108425780639e93ad8e14610856575f80fd5b806380dee257146107ac57806384b0196e146107cb57806385033762146107f2575f80fd5b806339509351116102935780636843cd8411610233578063715018a61161020e578063715018a61461073d57806371778e7d146107515780637b812b41146107655780638091f3bf14610793575f80fd5b80636843cd84146106695780636d7adcad1461068857806370a0823114610709575f80fd5b80634b833d641161026e5780634b833d64146105965780634e71d92d146105b55780634f7041a5146105c95780636612e66f1461064a575f80fd5b806339509351146105395780633ad10ef6146105585780634008c2f014610577575f80fd5b806318160ddd116102fe57806323b872dd116102d957806323b872dd146104cc57806330bb4cff146104eb578063313ce567146104ff57806331e79db01461051a575f80fd5b806318160ddd1461047a5780631b03ddc11461048e5780631f903dfa146104ad575f80fd5b80630758d924116103395780630758d924146103c8578063095ea7b3146103ff57806313a351b51461042e57806314bb4edd1461044d575f80fd5b80630106aaef1461036957806304816a4e1461037f57806306fdde031461039e575f80fd5b3661036557005b5f80fd5b348015610374575f80fd5b5061037d610ba8565b005b34801561038a575f80fd5b5061037d61039936600461351f565b610c50565b3480156103a9575f80fd5b506103b2610d6b565b6040516103bf919061358f565b60405180910390f35b3480156103d3575f80fd5b506019546103e7906001600160a01b031681565b6040516001600160a01b0390911681526020016103bf565b34801561040a575f80fd5b5061041e6104193660046135b5565b610dfb565b60405190151581526020016103bf565b348015610439575f80fd5b5061037d61044836600461351f565b610e14565b348015610458575f80fd5b5061046c6104673660046135df565b610f25565b6040519081526020016103bf565b348015610485575f80fd5b5060025461046c565b348015610499575f80fd5b506010546103e7906001600160a01b031681565b3480156104b8575f80fd5b50600c546103e7906001600160a01b031681565b3480156104d7575f80fd5b5061041e6104e63660046135fa565b611113565b3480156104f6575f80fd5b5061046c611136565b34801561050a575f80fd5b50604051601281526020016103bf565b348015610525575f80fd5b5061037d6105343660046135df565b6111a6565b348015610544575f80fd5b5061041e6105533660046135b5565b61122e565b348015610563575f80fd5b50600d546103e7906001600160a01b031681565b348015610582575f80fd5b5061046c610591366004613638565b61124f565b3480156105a1575f80fd5b5061037d6105b03660046135df565b611430565b3480156105c0575f80fd5b5061037d6114c1565b3480156105d4575f80fd5b50600e546106119065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103bf565b348015610655575f80fd5b5061037d61066436600461365c565b611535565b348015610674575f80fd5b5061046c6106833660046135df565b61165f565b348015610693575f80fd5b506011546012546106ce916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b909104169060ff1685565b604080516001600160401b0396871681529486166020860152928516928401929092529092166060820152901515608082015260a0016103bf565b348015610714575f80fd5b5061046c6107233660046135df565b6001600160a01b03165f9081526020819052604090205490565b348015610748575f80fd5b5061037d6116cc565b34801561075c575f80fd5b5061046c61173f565b348015610770575f80fd5b5061041e61077f3660046135df565b60096020525f908152604090205460ff1681565b34801561079e575f80fd5b50600a5461041e9060ff1681565b3480156107b7575f80fd5b5061037d6107c63660046136ad565b611786565b3480156107d6575f80fd5b506107df611943565b6040516103bf97969594939291906136fe565b3480156107fd575f80fd5b5061037d61080c3660046135df565b611985565b34801561081c575f80fd5b506005546001600160a01b03166103e7565b348015610839575f80fd5b5061037d611a16565b34801561084d575f80fd5b506103b2611a99565b348015610861575f80fd5b5061086b61271081565b6040516001600160401b0390911681526020016103bf565b34801561088e575f80fd5b5061041e61089d3660046135b5565b611aa8565b3480156108ad575f80fd5b506018546103e7906001600160a01b031681565b3480156108cc575f80fd5b5061046c6108db3660046135df565b611b22565b3480156108eb575f80fd5b5061041e6108fa3660046135b5565b611b54565b34801561090a575f80fd5b5061037d610919366004613638565b611b61565b348015610929575f80fd5b5061093d6109383660046135df565b611c18565b604080516001600160a01b03909516855260208501939093529183015260608201526080016103bf565b348015610972575f80fd5b506103e77f000000000000000000000000000000000000000000000000000000000000000081565b3480156109a5575f80fd5b5061041e6109b43660046135df565b600b6020525f908152604090205460ff1681565b3480156109d3575f80fd5b5061037d6109e2366004613638565b611c99565b3480156109f2575f80fd5b5061037d610a013660046136ad565b611de4565b348015610a11575f80fd5b5061037d610a2036600461365c565b611fa1565b348015610a30575f80fd5b5061037d610a3f3660046135df565b6120c3565b348015610a4f575f80fd5b5061037d610a5e366004613792565b61211f565b348015610a6e575f80fd5b50600f546106119065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b348015610ab6575f80fd5b5060165461041e9060ff1681565b348015610acf575f80fd5b5061041e610ade3660046135df565b60086020525f908152604090205460ff1681565b348015610afd575f80fd5b5061046c610b0c3660046137ad565b61215c565b348015610b1c575f80fd5b5061046c60175481565b348015610b31575f80fd5b5060145461041e9060ff1681565b348015610b4a575f80fd5b50601354610b69906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016103bf565b348015610b94575f80fd5b5061037d610ba33660046135df565b612186565b6005546001600160a01b03163314610bdb5760405162461bcd60e51b8152600401610bd2906137d9565b60405180910390fd5b6014805460ff19169055604080518082019091525f80825260208201525f610c0260025490565b6001600160801b03811680845260208401819052600160801b8102176013556040519091507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c905f90a15050565b6005546001600160a01b03163314610c7a5760405162461bcd60e51b8152600401610bd2906137d9565b610c866012600a613902565b6103e8610c9260025490565b610c9d906001613910565b610ca7919061393b565b610cb1919061393b565b816001600160801b03161015610cf35760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610bd2565b610cff6012600a613902565b610d12906001600160801b038316613910565b601380546001600160801b03908116600160801b93821684021791829055604051929091041681527fde064515fae8f8bb6d8ff19d2c6ba704322def7494147d8a971266430ade0788906020015b60405180910390a150565b606060038054610d7a9061394e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da69061394e565b8015610df15780601f10610dc857610100808354040283529160200191610df1565b820191905f5260205f20905b815481529060010190602001808311610dd457829003601f168201915b5050505050905090565b5f33610e08818585612270565b60019150505b92915050565b6005546001600160a01b03163314610e3e5760405162461bcd60e51b8152600401610bd2906137d9565b610e4a6012600a613902565b6103e8610e5660025490565b610e61906001613910565b610e6b919061393b565b610e75919061393b565b816001600160801b03161015610eb75760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610bd2565b610ec36012600a613902565b610ed6906001600160801b038316613910565b601380546001600160801b0319166001600160801b039290921691821790556040519081527f6710da7d4acedae09cb83751ae24c150719ef67dcbc1e02049f171d13c6b44e690602001610d60565b5f80610f3083611b22565b6040805160028082526060820183529293505f9290916020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610f9c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fc0919061399a565b815f81518110610fd257610fd26139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611006576110066139b5565b6001600160a01b03928316602091820292909201015260195460405163d06ca61f60e01b81525f92919091169063d06ca61f906110499086908690600401613a0b565b5f60405180830381865afa158015611063573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261108a9190810190613a23565b600e54909150612710906110ae90600160c01b900465ffffffffffff166032613adb565b65ffffffffffff16826001815181106110c9576110c96139b5565b60200260200101516110db9190613910565b6110e5919061393b565b816001815181106110f8576110f86139b5565b602002602001015161110a9190613b01565b95945050505050565b5f33611120858285612393565b61112b85858561240b565b506001949350505050565b601054604080516342d359d760e11b815290515f926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa15801561117d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111a19190613b14565b905090565b6005546001600160a01b031633146111d05760405162461bcd60e51b8152600401610bd2906137d9565b60105460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b5f604051808303815f87803b158015611215575f80fd5b505af1158015611227573d5f803e3d5ffd5b5050505050565b5f33610e08818585611240838361215c565b61124a9190613b2b565b612270565b6040805160028082526060820183525f92839291906020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156112ba573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112de919061399a565b815f815181106112f0576112f06139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611324576113246139b5565b6001600160a01b03928316602091820292909201015260195460405163d06ca61f60e01b81525f92919091169063d06ca61f906113679087908690600401613a0b565b5f60405180830381865afa158015611381573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526113a89190810190613a23565b600e54909150612710906113cc90600160c01b900465ffffffffffff166032613adb565b65ffffffffffff16826001815181106113e7576113e76139b5565b60200260200101516113f99190613910565b611403919061393b565b81600181518110611416576114166139b5565b60200260200101516114289190613b01565b949350505050565b6005546001600160a01b0316331461145a5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b03811661149f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610bd2565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60105460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af115801561150e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115329190613b3e565b50565b6005546001600160a01b0316331461155f5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0382166115a45760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610bd2565b306001600160a01b038316036115fc5760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f7420756e6578636c7564656420636f6e74726163740000000000006044820152606401610bd2565b6001600160a01b0382165f81815260086020908152604091829020805460ff19168515159081179091558251938452908301527fc4eea32423e96d678d53f47ddd9b7a5103eea02606d7daa81c77038c54dc8edb91015b60405180910390a15050565b60105460405163156dbbf560e31b81526001600160a01b0383811660048301525f92169063ab6ddfa8906024015b602060405180830381865afa1580156116a8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e0e9190613b14565b6005546001600160a01b031633146116f65760405162461bcd60e51b8152600401610bd2906137d9565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6010546040805163ad7a672f60e01b815290515f926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa15801561117d573d5f803e3d5ffd5b6005546001600160a01b031633146117b05760405162461bcd60e51b8152600401610bd2906137d9565b6040805160a0810182525f608082015265ffffffffffff8681168252858116928201929092528382166020820152908216606082015281836117f28688613adb565b6117fc9190613adb565b6118069190613adb565b65ffffffffffff16608082018190526103e8101561185b5760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610bd2565b608081015160405165ffffffffffff90911681527f7a758dc8e99047b028278b3e2ff1416d8493a7aacee7a5dc30b6bf93270eccce9060200160405180910390a18051600e805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b5f6060805f805f60606119546125de565b61195c61260b565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6005546001600160a01b031633146119af5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0381166119f45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610bd2565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611a405760405162461bcd60e51b8152600401610bd2906137d9565b600a5460ff1615611a8a5760405162461bcd60e51b815260206004820152601460248201527354726164696e6720616c7265616479206c69766560601b6044820152606401610bd2565b600a805460ff19166001179055565b606060048054610d7a9061394e565b5f3381611ab5828661215c565b905083811015611b155760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bd2565b61112b8286868403612270565b6010546040516302a2e74960e61b81526001600160a01b0383811660048301525f92169063a8b9d2409060240161168d565b5f33610e0881858561240b565b60105460405163dcb95ed960e01b81523360048201525f916001600160a01b03169063dcb95ed9906024016020604051808303815f875af1158015611ba8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bcc9190613b14565b90508015611be357611bdf818333612638565b5050565b60405162461bcd60e51b815260206004820152600a6024820152694e6f207265776172647360b01b6044820152606401610bd2565b60105460405163fbcbc0f160e01b81526001600160a01b0383811660048301525f92839283928392169063fbcbc0f190602401608060405180830381865afa158015611c66573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c8a9190613b59565b93509350935093509193509193565b6005546001600160a01b03163314611cc35760405162461bcd60e51b8152600401610bd2906137d9565b620186a0611cd060025490565b611cdb906001613910565b611ce5919061393b565b811015611d525760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610bd2565b6103e8611d5e60025490565b611d69906005613910565b611d73919061393b565b811115611ddf5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610bd2565b601755565b6005546001600160a01b03163314611e0e5760405162461bcd60e51b8152600401610bd2906137d9565b6040805160a0810182525f608082015265ffffffffffff868116825285811692820192909252838216602082015290821660608201528183611e508688613adb565b611e5a9190613adb565b611e649190613adb565b65ffffffffffff16608082018190526103e81015611eb95760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610bd2565b608081015160405165ffffffffffff90911681527fa6255338a5f732d64ceba7f4c18182567f9d1067eb984b46d478b37d72a52d119060200160405180910390a18051600f805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b6005546001600160a01b03163314611fcb5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0382166120105760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610bd2565b80612068576018546001600160a01b03908116908316036120685760405162461bcd60e51b815260206004820152601260248201527121b0b73737ba103932b6b7bb32903830b4b960711b6044820152606401610bd2565b6001600160a01b0382165f81815260096020908152604091829020805460ff19168515159081179091558251938452908301527f0712a8411c7892e205c3d35c5d2beabe76bb0b484bec43945f2024cd28eaae8d9101611653565b6005546001600160a01b031633146120ed5760405162461bcd60e51b8152600401610bd2906137d9565b60105460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef906024016111fe565b6005546001600160a01b031633146121495760405162461bcd60e51b8152600401610bd2906137d9565b6016805460ff1916911515919091179055565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6005546001600160a01b031633146121b05760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0381166122155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd2565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166122d25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bd2565b6001600160a01b0382166123335760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bd2565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61239e848461215c565b90505f19811461240557818110156123f85760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bd2565b6124058484848403612270565b50505050565b6001600160a01b0383165f9081526008602052604090205460ff1615801561244b57506001600160a01b0382165f9081526008602052604090205460ff16155b156124ba57600a5460ff166124975760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610bd2565b6124a2838383612782565b6124ad838383612a20565b6124b79082613b01565b90505b6124c5838383612e0c565b6010546001600160a01b031663e30443bc836124f5816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b158015612538575f80fd5b505af115801561254a573d5f803e3d5ffd5b50506010546001600160a01b0316915063e30443bc905084612580816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b1580156125c3575f80fd5b505af11580156125d5573d5f803e3d5ffd5b50505050505050565b60606111a17f00000000000000000000000000000000000000000000000000000000000000006006612faf565b60606111a17f00000000000000000000000000000000000000000000000000000000000000006007612faf565b6040805160028082526060820183525f926020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa15801561269f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126c3919061399a565b815f815181106126d5576126d56139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110612709576127096139b5565b6001600160a01b03928316602091820292909201015260195460405163b6f9de9560e01b815291169063b6f9de9590869061274e908790869088904290600401613b95565b5f604051808303818588803b158015612765575f80fd5b505af1158015612777573d5f803e3d5ffd5b505050505050505050565b60145460ff1615612979576001600160a01b038281165f9081526009602090815260408083205483835281842054825180840184526013546001600160801b038082168352600160801b90910416818601529589168552600b90935292205460ff9283169391921680156127f4575082155b156128955780516001600160801b031684111561283d5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610bd2565b60208101516001600160801b03166128558386613b2b565b11156128905760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610bd2565b612975565b6001600160a01b0385165f908152600b602052604090205460ff1680156128d457506001600160a01b0386165f9081526009602052604090205460ff16155b1561291d5780516001600160801b03168411156128905760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610bd2565b826129755760208101516001600160801b031661293a8386613b2b565b11156129755760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610bd2565b5050505b60165460ff16156129f5576001600160a01b0382165f908152600b602052604090205460ff16156129fa576001600160a01b0383165f9081526015602052604090205443116129f55760405162461bcd60e51b815260206004820152600860248201526720b73a349026a2ab60c11b6044820152606401610bd2565b505050565b506001600160a01b03165f90815260156020526040808220439081905532835291205550565b601754305f90815260208190526040812054909111158015612a5a57506001600160a01b0384165f908152600b602052604090205460ff16155b15612a6757612a67613058565b6040805160a0810182525f808252602080830182905282840182905260608301829052608083018290526001600160a01b0387168252600b90529182205460ff1615612b0757506040805160a081018252600f5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b90049091166080820152612b7d565b6001600160a01b0386165f908152600b602052604090205460ff1615612b7d57506040805160a081018252600e5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b900490911660808201525b608081015165ffffffffffff1615612dfa576040805160a0810182526011546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b9004909116606082015260125460ff16151560808083019190915282015161271090612c009065ffffffffffff1687613910565b612c0a919061393b565b9250633b9aca00826080015165ffffffffffff16836040015165ffffffffffff1685612c369190613bc9565b612c409190613bf4565b612c4a9190613bf4565b81602001818151612c5b9190613c19565b6001600160401b031690525060808201518251633b9aca009165ffffffffffff90811691612c8a911686613bc9565b612c949190613bf4565b612c9e9190613bf4565b81518290612cad908390613c19565b6001600160401b031690525060808201516020830151633b9aca009165ffffffffffff90811691612cdf911686613bc9565b612ce99190613bf4565b612cf39190613bf4565b81604001818151612d049190613c19565b6001600160401b031690525060808201516060830151633b9aca009165ffffffffffff90811691612d36911686613bc9565b612d409190613bf4565b612d4a9190613bf4565b81606001818151612d5b9190613c19565b6001600160401b039081169091528251601180546020860151604087015160608801518616600160c01b026001600160c01b03918716600160801b02919091166001600160801b03928716600160401b026001600160801b031990941695909616949094179190911781169390931791909117905560808301516012805491151560ff19909216919091179055612df89150889030908616612e0c565b505b506001600160801b0316949350505050565b6001600160a01b038316612e705760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bd2565b6001600160a01b038216612ed25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bd2565b6001600160a01b0383165f9081526020819052604090205481811015612f495760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610bd2565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b606060ff8314612fc957612fc2836133be565b9050610e0e565b818054612fd59061394e565b80601f01602080910402602001604051908101604052809291908181526020018280546130019061394e565b801561304c5780601f106130235761010080835404028352916020019161304c565b820191905f5260205f20905b81548152906001019060200180831161302f57829003601f168201915b50505050509050610e0e565b305f9081526020818152604080832054815160a0810183526011546001600160401b03808216808452600160401b83048216968401879052600160801b83048216958401869052600160c01b909204166060830181905260125460ff1615156080840152929591949193916130cd9190613c19565b6130d79190613c19565b6130e19190613c19565b6001600160401b031690508215806130f7575080155b1561310157505050565b60175461310f906014613910565b83111561312757601754613124906014613910565b92505b60208201516001600160401b031615613201575f8183602001516001600160401b0316856131559190613910565b61315f919061393b565b60185490915061317a9030906001600160a01b031683612e0c565b60185f9054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156131c6575f80fd5b505af19250505080156131d7575060015b506131e28185613b01565b935082602001516001600160401b0316826131fd9190613b01565b9150505b821561338957613210836133fb565b604082015147905f906001600160401b03161561329e57600d5460408501516001600160a01b03909116908490613250906001600160401b031685613910565b61325a919061393b565b6040515f81818185875af1925050503d805f8114613293576040519150601f19603f3d011682016040523d82523d5f602084013e613298565b606091505b50909150505b60608401516001600160401b0316156133285760105460608501516001600160a01b039091169084906132da906001600160401b031685613910565b6132e4919061393b565b6040515f81818185875af1925050503d805f811461331d576040519150601f19603f3d011682016040523d82523d5f602084013e613322565b606091505b50909150505b479150811561338657600c546040516001600160a01b039091169083905f81818185875af1925050503d805f811461337b576040519150601f19603f3d011682016040523d82523d5f602084013e613380565b606091505b50909150505b50505b505f602082018190528082526040820181905260608201819052601155608001516012805460ff191691151591909117905550565b60605f6133ca836134f8565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061342e5761342e6139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110613482576134826139b5565b6001600160a01b03928316602091820292909201015260195460405163791ac94760e01b815291169063791ac947906134c79085905f90869030904290600401613c39565b5f604051808303815f87803b1580156134de575f80fd5b505af11580156134f0573d5f803e3d5ffd5b505050505050565b5f60ff8216601f811115610e0e57604051632cd44ac360e21b815260040160405180910390fd5b5f6020828403121561352f575f80fd5b81356001600160801b0381168114613545575f80fd5b9392505050565b5f81518084525f5b8181101561357057602081850181015186830182015201613554565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f613545602083018461354c565b6001600160a01b0381168114611532575f80fd5b5f80604083850312156135c6575f80fd5b82356135d1816135a1565b946020939093013593505050565b5f602082840312156135ef575f80fd5b8135613545816135a1565b5f805f6060848603121561360c575f80fd5b8335613617816135a1565b92506020840135613627816135a1565b929592945050506040919091013590565b5f60208284031215613648575f80fd5b5035919050565b8015158114611532575f80fd5b5f806040838503121561366d575f80fd5b8235613678816135a1565b915060208301356136888161364f565b809150509250929050565b803565ffffffffffff811681146136a8575f80fd5b919050565b5f805f80608085870312156136c0575f80fd5b6136c985613693565b93506136d760208601613693565b92506136e560408601613693565b91506136f360608601613693565b905092959194509250565b60ff60f81b881681525f602060e08184015261371d60e084018a61354c565b838103604085015261372f818a61354c565b606085018990526001600160a01b038816608086015260a0850187905284810360c086015285518082528387019250908301905f5b8181101561378057835183529284019291840191600101613764565b50909c9b505050505050505050505050565b5f602082840312156137a2575f80fd5b81356135458161364f565b5f80604083850312156137be575f80fd5b82356137c9816135a1565b91506020830135613688816135a1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561385c57815f19048211156138425761384261380e565b8085161561384f57918102915b93841c9390800290613827565b509250929050565b5f8261387257506001610e0e565b8161387e57505f610e0e565b8160018114613894576002811461389e576138ba565b6001915050610e0e565b60ff8411156138af576138af61380e565b50506001821b610e0e565b5060208310610133831016604e8410600b84101617156138dd575081810a610e0e565b6138e78383613822565b805f19048211156138fa576138fa61380e565b029392505050565b5f61354560ff841683613864565b8082028115828204841417610e0e57610e0e61380e565b634e487b7160e01b5f52601260045260245ffd5b5f8261394957613949613927565b500490565b600181811c9082168061396257607f821691505b60208210810361398057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b5f602082840312156139aa575f80fd5b8151613545816135a1565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452602080850194508084015f5b83811015613a005781516001600160a01b0316875295820195908201906001016139db565b509495945050505050565b828152604060208201525f61142860408301846139c9565b5f6020808385031215613a34575f80fd5b82516001600160401b0380821115613a4a575f80fd5b818501915085601f830112613a5d575f80fd5b815181811115613a6f57613a6f613986565b8060051b604051601f19603f83011681018181108582111715613a9457613a94613986565b604052918252848201925083810185019188831115613ab1575f80fd5b938501935b82851015613acf57845184529385019392850192613ab6565b98975050505050505050565b65ffffffffffff818116838216019080821115613afa57613afa61380e565b5092915050565b81810381811115610e0e57610e0e61380e565b5f60208284031215613b24575f80fd5b5051919050565b80820180821115610e0e57610e0e61380e565b5f60208284031215613b4e575f80fd5b81516135458161364f565b5f805f8060808587031215613b6c575f80fd5b8451613b77816135a1565b60208601516040870151606090970151919890975090945092505050565b848152608060208201525f613bad60808301866139c9565b6001600160a01b03949094166040830152506060015292915050565b6001600160801b03818116838216028082169190828114613bec57613bec61380e565b505092915050565b5f6001600160801b0380841680613c0d57613c0d613927565b92169190910492915050565b6001600160401b03818116838216019080821115613afa57613afa61380e565b85815284602082015260a060408201525f613c5760a08301866139c9565b6001600160a01b039490941660608301525060800152939250505056fea26469706673582212209717935b1e19528ddffb12b575fa3d8c60f60bf1cd4c3d3302d68dc97503a07464736f6c63430008140033608060405234801561000f575f80fd5b505f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506110ef8061005d5f395ff3fe608060405260043610610134575f3560e01c806391b89fba116100a8578063bc4c4b371161006d578063bc4c4b371461034f578063c0f306ef1461036e578063dcb95ed91461038d578063e30443bc146103ac578063f2fde38b146103cb578063fbcbc0f1146103ea575f80fd5b806391b89fba1461029d578063a8b9d240146102bc578063aafd847a146102db578063ab6ddfa81461030f578063ad7a672f1461033a575f80fd5b80636843cd84116100f95780636843cd84146101f25780636a47400214610226578063715018a61461023a57806371778e7d1461024e57806385a6b3ae146102625780638da5cb5b14610277575f80fd5b806303c833021461014757806327ce01471461014f57806330bb4cff1461018157806331e79db0146101955780634e7b827f146101b4575f80fd5b3661014357610141610433565b005b5f80fd5b610141610433565b34801561015a575f80fd5b5061016e610169366004610eec565b6104bb565b6040519081526020015b60405180910390f35b34801561018c575f80fd5b5060065461016e565b3480156101a0575f80fd5b506101416101af366004610eec565b61051d565b3480156101bf575f80fd5b506101e26101ce366004610eec565b60076020525f908152604090205460ff1681565b6040519015158152602001610178565b3480156101fd575f80fd5b5061016e61020c366004610eec565b6001600160a01b03165f9081526004602052604090205490565b348015610231575f80fd5b5061014161057f565b348015610245575f80fd5b50610141610588565b348015610259575f80fd5b5060055461016e565b34801561026d575f80fd5b5061016e60065481565b348015610282575f80fd5b505f546040516001600160a01b039091168152602001610178565b3480156102a8575f80fd5b5061016e6102b7366004610eec565b6105f9565b3480156102c7575f80fd5b5061016e6102d6366004610eec565b6105ff565b3480156102e6575f80fd5b5061016e6102f5366004610eec565b6001600160a01b03165f9081526003602052604090205490565b34801561031a575f80fd5b5061016e610329366004610eec565b60046020525f908152604090205481565b348015610345575f80fd5b5061016e60055481565b34801561035a575f80fd5b506101e2610369366004610f07565b61062a565b348015610379575f80fd5b50610141610388366004610eec565b6106bf565b348015610398575f80fd5b5061016e6103a7366004610eec565b6107ae565b3480156103b7575f80fd5b506101416103c6366004610f42565b610908565b3480156103d6575f80fd5b506101416103e5366004610eec565b61096b565b3480156103f5575f80fd5b50610409610404366004610eec565b610a52565b604080516001600160a01b0390951685526020850193909352918301526060820152608001610178565b5f60055411801561044357505f34115b156104b9576005546104709061045d34600160801b610a8e565b6104679190610f80565b60015490610b13565b60015560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26006546104b59034610b13565b6006555b565b6001600160a01b0381165f908152600260209081526040808320546004909252822054600154600160801b9261050d9261050892610502916104fd9190610a8e565b610b71565b90610b7f565b610bb9565b6105179190610f80565b92915050565b5f546001600160a01b0316331461054f5760405162461bcd60e51b815260040161054690610f9f565b60405180910390fd5b6001600160a01b0381165f908152600760205260408120805460ff1916600117905561057c908290610bca565b50565b61057c33610c5e565b5f546001600160a01b031633146105b15760405162461bcd60e51b815260040161054690610f9f565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f610517825b6001600160a01b0381165f9081526003602052604081205461051790610624846104bb565b90610d95565b5f80546001600160a01b031633146106545760405162461bcd60e51b815260040161054690610f9f565b5f61065e84610c5e565b905080156106b657821515846001600160a01b03167fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf092836040516106a491815260200190565b60405180910390a36001915050610517565b505f9392505050565b5f546001600160a01b031633146106e85760405162461bcd60e51b815260040161054690610f9f565b6001600160a01b0381165f9081526007602052604090205460ff1661070b575f80fd5b6001600160a01b0381165f908152600760205260409020805460ff1916905561057c8161073f5f546001600160a01b031690565b6040516370a0823160e01b81526001600160a01b03858116600483015291909116906370a0823190602401602060405180830381865afa158015610785573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107a99190610fd4565b610bca565b5f80546001600160a01b031633146107d85760405162461bcd60e51b815260040161054690610f9f565b6107e1826105ff565b90508015610863576001600160a01b0382165f9081526003602052604090205461080c908290610feb565b6001600160a01b0383165f81815260036020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9061085a9084815260200190565b60405180910390a25b5f80546040516001600160a01b039091169083908381818185875af1925050503d805f81146108ad576040519150601f19603f3d011682016040523d82523d5f602084013e6108b2565b606091505b5050905080610901576001600160a01b0383165f908152600360205260409020546108dd9083610d95565b6001600160a01b0384165f9081526003602052604081209190915591506109039050565b505b919050565b5f546001600160a01b031633146109315760405162461bcd60e51b815260040161054690610f9f565b6001600160a01b0382165f9081526007602052604090205460ff166109675761095a8282610bca565b61096582600161062a565b505b5050565b5f546001600160a01b031633146109945760405162461bcd60e51b815260040161054690610f9f565b6001600160a01b0381166109f95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610546565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b805f8080610a5f846105ff565b9250610a6a846104bb565b6001600160a01b0385165f9081526004602052604090205494969395509392915050565b5f825f03610a9d57505f610517565b5f610aa88385610ffe565b905082610ab58583610f80565b14610b0c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610546565b9392505050565b5f80610b1f8385610feb565b905083811015610b0c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610546565b5f8181811215610517575f80fd5b5f80610b8b8385611015565b90505f8312158015610b9d5750838112155b80610bb157505f83128015610bb157508381125b610b0c575f80fd5b5f80821215610bc6575f80fd5b5090565b6001600160a01b0382165f90815260046020526040902080549082905580821115610c23575f610bfa8383610d95565b9050610c068482610dd6565b8060055f828254610c179190610feb565b90915550610965915050565b80821015610965575f610c368284610d95565b9050610c428482610e2e565b8060055f828254610c53919061103c565b909155505050505050565b5f80610c69836105ff565b90508015610d8d576001600160a01b0383165f90815260036020526040902054610c939082610b13565b6001600160a01b0384165f81815260036020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90610ce19084815260200190565b60405180910390a25f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610d32576040519150601f19603f3d011682016040523d82523d5f602084013e610d37565b606091505b5050905080610d86576001600160a01b0384165f90815260036020526040902054610d629083610d95565b6001600160a01b039094165f90815260036020526040812094909455509192915050565b5092915050565b505f92915050565b5f610b0c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e67565b610e0f610df16104fd83600154610a8e90919063ffffffff16565b6001600160a01b0384165f9081526002602052604090205490610e9f565b6001600160a01b039092165f9081526002602052604090209190915550565b610e0f610e496104fd83600154610a8e90919063ffffffff16565b6001600160a01b0384165f9081526002602052604090205490610b7f565b5f8184841115610e8a5760405162461bcd60e51b8152600401610546919061104f565b505f610e96848661103c565b95945050505050565b5f80610eab838561109a565b90505f8312158015610ebd5750838113155b80610bb157505f83128015610bb15750838113610b0c575f80fd5b6001600160a01b038116811461057c575f80fd5b5f60208284031215610efc575f80fd5b8135610b0c81610ed8565b5f8060408385031215610f18575f80fd5b8235610f2381610ed8565b915060208301358015158114610f37575f80fd5b809150509250929050565b5f8060408385031215610f53575f80fd5b8235610f5e81610ed8565b946020939093013593505050565b634e487b7160e01b5f52601160045260245ffd5b5f82610f9a57634e487b7160e01b5f52601260045260245ffd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f60208284031215610fe4575f80fd5b5051919050565b8082018082111561051757610517610f6c565b808202811582820484141761051757610517610f6c565b8082018281125f83128015821682158216171561103457611034610f6c565b505092915050565b8181038181111561051757610517610f6c565b5f6020808352835180828501525f5b8181101561107a5785810183015185820160400152820161105e565b505f604082860101526040601f19601f8301168501019250505092915050565b8181035f831280158383131683831282161715610d8657610d86610f6c56fea26469706673582212206a8962971f1c3cec81d23996f8186f9183abc1dc07c93c82522694bbae2b8bb464736f6c63430008140033
Deployed Bytecode
0x60806040526004361061035e575f3560e01c806380dee257116101bd578063b0249cc6116100f2578063d8fb9cc411610092578063e2f456051161006d578063e2f4560514610b11578063e8cd2fec14610b26578063f270fde414610b3f578063f2fde38b14610b89575f80fd5b8063d8fb9cc414610aab578063dbe66ca014610ac4578063dd62ed3e14610af2575f80fd5b8063bf78019b116100cd578063bf78019b14610a06578063c0f306ef14610a25578063ca13a70e14610a44578063cc1776d314610a63575f80fd5b8063b0249cc61461099a578063b2a9c0c0146109c8578063bd9dfecc146109e7575f80fd5b8063a457c2d71161015d578063a9059cbb11610138578063a9059cbb146108e0578063aa5f7e26146108ff578063ad56c13c1461091e578063ad5c464814610967575f80fd5b8063a457c2d714610883578063a8aa1b31146108a2578063a8b9d240146108c1575f80fd5b80638da5cb5b116101985780638da5cb5b146108115780639507b19b1461082e57806395d89b41146108425780639e93ad8e14610856575f80fd5b806380dee257146107ac57806384b0196e146107cb57806385033762146107f2575f80fd5b806339509351116102935780636843cd8411610233578063715018a61161020e578063715018a61461073d57806371778e7d146107515780637b812b41146107655780638091f3bf14610793575f80fd5b80636843cd84146106695780636d7adcad1461068857806370a0823114610709575f80fd5b80634b833d641161026e5780634b833d64146105965780634e71d92d146105b55780634f7041a5146105c95780636612e66f1461064a575f80fd5b806339509351146105395780633ad10ef6146105585780634008c2f014610577575f80fd5b806318160ddd116102fe57806323b872dd116102d957806323b872dd146104cc57806330bb4cff146104eb578063313ce567146104ff57806331e79db01461051a575f80fd5b806318160ddd1461047a5780631b03ddc11461048e5780631f903dfa146104ad575f80fd5b80630758d924116103395780630758d924146103c8578063095ea7b3146103ff57806313a351b51461042e57806314bb4edd1461044d575f80fd5b80630106aaef1461036957806304816a4e1461037f57806306fdde031461039e575f80fd5b3661036557005b5f80fd5b348015610374575f80fd5b5061037d610ba8565b005b34801561038a575f80fd5b5061037d61039936600461351f565b610c50565b3480156103a9575f80fd5b506103b2610d6b565b6040516103bf919061358f565b60405180910390f35b3480156103d3575f80fd5b506019546103e7906001600160a01b031681565b6040516001600160a01b0390911681526020016103bf565b34801561040a575f80fd5b5061041e6104193660046135b5565b610dfb565b60405190151581526020016103bf565b348015610439575f80fd5b5061037d61044836600461351f565b610e14565b348015610458575f80fd5b5061046c6104673660046135df565b610f25565b6040519081526020016103bf565b348015610485575f80fd5b5060025461046c565b348015610499575f80fd5b506010546103e7906001600160a01b031681565b3480156104b8575f80fd5b50600c546103e7906001600160a01b031681565b3480156104d7575f80fd5b5061041e6104e63660046135fa565b611113565b3480156104f6575f80fd5b5061046c611136565b34801561050a575f80fd5b50604051601281526020016103bf565b348015610525575f80fd5b5061037d6105343660046135df565b6111a6565b348015610544575f80fd5b5061041e6105533660046135b5565b61122e565b348015610563575f80fd5b50600d546103e7906001600160a01b031681565b348015610582575f80fd5b5061046c610591366004613638565b61124f565b3480156105a1575f80fd5b5061037d6105b03660046135df565b611430565b3480156105c0575f80fd5b5061037d6114c1565b3480156105d4575f80fd5b50600e546106119065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103bf565b348015610655575f80fd5b5061037d61066436600461365c565b611535565b348015610674575f80fd5b5061046c6106833660046135df565b61165f565b348015610693575f80fd5b506011546012546106ce916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b909104169060ff1685565b604080516001600160401b0396871681529486166020860152928516928401929092529092166060820152901515608082015260a0016103bf565b348015610714575f80fd5b5061046c6107233660046135df565b6001600160a01b03165f9081526020819052604090205490565b348015610748575f80fd5b5061037d6116cc565b34801561075c575f80fd5b5061046c61173f565b348015610770575f80fd5b5061041e61077f3660046135df565b60096020525f908152604090205460ff1681565b34801561079e575f80fd5b50600a5461041e9060ff1681565b3480156107b7575f80fd5b5061037d6107c63660046136ad565b611786565b3480156107d6575f80fd5b506107df611943565b6040516103bf97969594939291906136fe565b3480156107fd575f80fd5b5061037d61080c3660046135df565b611985565b34801561081c575f80fd5b506005546001600160a01b03166103e7565b348015610839575f80fd5b5061037d611a16565b34801561084d575f80fd5b506103b2611a99565b348015610861575f80fd5b5061086b61271081565b6040516001600160401b0390911681526020016103bf565b34801561088e575f80fd5b5061041e61089d3660046135b5565b611aa8565b3480156108ad575f80fd5b506018546103e7906001600160a01b031681565b3480156108cc575f80fd5b5061046c6108db3660046135df565b611b22565b3480156108eb575f80fd5b5061041e6108fa3660046135b5565b611b54565b34801561090a575f80fd5b5061037d610919366004613638565b611b61565b348015610929575f80fd5b5061093d6109383660046135df565b611c18565b604080516001600160a01b03909516855260208501939093529183015260608201526080016103bf565b348015610972575f80fd5b506103e77f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156109a5575f80fd5b5061041e6109b43660046135df565b600b6020525f908152604090205460ff1681565b3480156109d3575f80fd5b5061037d6109e2366004613638565b611c99565b3480156109f2575f80fd5b5061037d610a013660046136ad565b611de4565b348015610a11575f80fd5b5061037d610a2036600461365c565b611fa1565b348015610a30575f80fd5b5061037d610a3f3660046135df565b6120c3565b348015610a4f575f80fd5b5061037d610a5e366004613792565b61211f565b348015610a6e575f80fd5b50600f546106119065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b348015610ab6575f80fd5b5060165461041e9060ff1681565b348015610acf575f80fd5b5061041e610ade3660046135df565b60086020525f908152604090205460ff1681565b348015610afd575f80fd5b5061046c610b0c3660046137ad565b61215c565b348015610b1c575f80fd5b5061046c60175481565b348015610b31575f80fd5b5060145461041e9060ff1681565b348015610b4a575f80fd5b50601354610b69906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016103bf565b348015610b94575f80fd5b5061037d610ba33660046135df565b612186565b6005546001600160a01b03163314610bdb5760405162461bcd60e51b8152600401610bd2906137d9565b60405180910390fd5b6014805460ff19169055604080518082019091525f80825260208201525f610c0260025490565b6001600160801b03811680845260208401819052600160801b8102176013556040519091507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c905f90a15050565b6005546001600160a01b03163314610c7a5760405162461bcd60e51b8152600401610bd2906137d9565b610c866012600a613902565b6103e8610c9260025490565b610c9d906001613910565b610ca7919061393b565b610cb1919061393b565b816001600160801b03161015610cf35760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610bd2565b610cff6012600a613902565b610d12906001600160801b038316613910565b601380546001600160801b03908116600160801b93821684021791829055604051929091041681527fde064515fae8f8bb6d8ff19d2c6ba704322def7494147d8a971266430ade0788906020015b60405180910390a150565b606060038054610d7a9061394e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da69061394e565b8015610df15780601f10610dc857610100808354040283529160200191610df1565b820191905f5260205f20905b815481529060010190602001808311610dd457829003601f168201915b5050505050905090565b5f33610e08818585612270565b60019150505b92915050565b6005546001600160a01b03163314610e3e5760405162461bcd60e51b8152600401610bd2906137d9565b610e4a6012600a613902565b6103e8610e5660025490565b610e61906001613910565b610e6b919061393b565b610e75919061393b565b816001600160801b03161015610eb75760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610bd2565b610ec36012600a613902565b610ed6906001600160801b038316613910565b601380546001600160801b0319166001600160801b039290921691821790556040519081527f6710da7d4acedae09cb83751ae24c150719ef67dcbc1e02049f171d13c6b44e690602001610d60565b5f80610f3083611b22565b6040805160028082526060820183529293505f9290916020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610f9c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fc0919061399a565b815f81518110610fd257610fd26139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611006576110066139b5565b6001600160a01b03928316602091820292909201015260195460405163d06ca61f60e01b81525f92919091169063d06ca61f906110499086908690600401613a0b565b5f60405180830381865afa158015611063573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261108a9190810190613a23565b600e54909150612710906110ae90600160c01b900465ffffffffffff166032613adb565b65ffffffffffff16826001815181106110c9576110c96139b5565b60200260200101516110db9190613910565b6110e5919061393b565b816001815181106110f8576110f86139b5565b602002602001015161110a9190613b01565b95945050505050565b5f33611120858285612393565b61112b85858561240b565b506001949350505050565b601054604080516342d359d760e11b815290515f926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa15801561117d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111a19190613b14565b905090565b6005546001600160a01b031633146111d05760405162461bcd60e51b8152600401610bd2906137d9565b60105460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b5f604051808303815f87803b158015611215575f80fd5b505af1158015611227573d5f803e3d5ffd5b5050505050565b5f33610e08818585611240838361215c565b61124a9190613b2b565b612270565b6040805160028082526060820183525f92839291906020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156112ba573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112de919061399a565b815f815181106112f0576112f06139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611324576113246139b5565b6001600160a01b03928316602091820292909201015260195460405163d06ca61f60e01b81525f92919091169063d06ca61f906113679087908690600401613a0b565b5f60405180830381865afa158015611381573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526113a89190810190613a23565b600e54909150612710906113cc90600160c01b900465ffffffffffff166032613adb565b65ffffffffffff16826001815181106113e7576113e76139b5565b60200260200101516113f99190613910565b611403919061393b565b81600181518110611416576114166139b5565b60200260200101516114289190613b01565b949350505050565b6005546001600160a01b0316331461145a5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b03811661149f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610bd2565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60105460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af115801561150e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115329190613b3e565b50565b6005546001600160a01b0316331461155f5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0382166115a45760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610bd2565b306001600160a01b038316036115fc5760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f7420756e6578636c7564656420636f6e74726163740000000000006044820152606401610bd2565b6001600160a01b0382165f81815260086020908152604091829020805460ff19168515159081179091558251938452908301527fc4eea32423e96d678d53f47ddd9b7a5103eea02606d7daa81c77038c54dc8edb91015b60405180910390a15050565b60105460405163156dbbf560e31b81526001600160a01b0383811660048301525f92169063ab6ddfa8906024015b602060405180830381865afa1580156116a8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e0e9190613b14565b6005546001600160a01b031633146116f65760405162461bcd60e51b8152600401610bd2906137d9565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6010546040805163ad7a672f60e01b815290515f926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa15801561117d573d5f803e3d5ffd5b6005546001600160a01b031633146117b05760405162461bcd60e51b8152600401610bd2906137d9565b6040805160a0810182525f608082015265ffffffffffff8681168252858116928201929092528382166020820152908216606082015281836117f28688613adb565b6117fc9190613adb565b6118069190613adb565b65ffffffffffff16608082018190526103e8101561185b5760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610bd2565b608081015160405165ffffffffffff90911681527f7a758dc8e99047b028278b3e2ff1416d8493a7aacee7a5dc30b6bf93270eccce9060200160405180910390a18051600e805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b5f6060805f805f60606119546125de565b61195c61260b565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6005546001600160a01b031633146119af5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0381166119f45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610bd2565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611a405760405162461bcd60e51b8152600401610bd2906137d9565b600a5460ff1615611a8a5760405162461bcd60e51b815260206004820152601460248201527354726164696e6720616c7265616479206c69766560601b6044820152606401610bd2565b600a805460ff19166001179055565b606060048054610d7a9061394e565b5f3381611ab5828661215c565b905083811015611b155760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bd2565b61112b8286868403612270565b6010546040516302a2e74960e61b81526001600160a01b0383811660048301525f92169063a8b9d2409060240161168d565b5f33610e0881858561240b565b60105460405163dcb95ed960e01b81523360048201525f916001600160a01b03169063dcb95ed9906024016020604051808303815f875af1158015611ba8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bcc9190613b14565b90508015611be357611bdf818333612638565b5050565b60405162461bcd60e51b815260206004820152600a6024820152694e6f207265776172647360b01b6044820152606401610bd2565b60105460405163fbcbc0f160e01b81526001600160a01b0383811660048301525f92839283928392169063fbcbc0f190602401608060405180830381865afa158015611c66573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c8a9190613b59565b93509350935093509193509193565b6005546001600160a01b03163314611cc35760405162461bcd60e51b8152600401610bd2906137d9565b620186a0611cd060025490565b611cdb906001613910565b611ce5919061393b565b811015611d525760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610bd2565b6103e8611d5e60025490565b611d69906005613910565b611d73919061393b565b811115611ddf5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610bd2565b601755565b6005546001600160a01b03163314611e0e5760405162461bcd60e51b8152600401610bd2906137d9565b6040805160a0810182525f608082015265ffffffffffff868116825285811692820192909252838216602082015290821660608201528183611e508688613adb565b611e5a9190613adb565b611e649190613adb565b65ffffffffffff16608082018190526103e81015611eb95760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610bd2565b608081015160405165ffffffffffff90911681527fa6255338a5f732d64ceba7f4c18182567f9d1067eb984b46d478b37d72a52d119060200160405180910390a18051600f805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b6005546001600160a01b03163314611fcb5760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0382166120105760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610bd2565b80612068576018546001600160a01b03908116908316036120685760405162461bcd60e51b815260206004820152601260248201527121b0b73737ba103932b6b7bb32903830b4b960711b6044820152606401610bd2565b6001600160a01b0382165f81815260096020908152604091829020805460ff19168515159081179091558251938452908301527f0712a8411c7892e205c3d35c5d2beabe76bb0b484bec43945f2024cd28eaae8d9101611653565b6005546001600160a01b031633146120ed5760405162461bcd60e51b8152600401610bd2906137d9565b60105460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef906024016111fe565b6005546001600160a01b031633146121495760405162461bcd60e51b8152600401610bd2906137d9565b6016805460ff1916911515919091179055565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6005546001600160a01b031633146121b05760405162461bcd60e51b8152600401610bd2906137d9565b6001600160a01b0381166122155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd2565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166122d25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bd2565b6001600160a01b0382166123335760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bd2565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61239e848461215c565b90505f19811461240557818110156123f85760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bd2565b6124058484848403612270565b50505050565b6001600160a01b0383165f9081526008602052604090205460ff1615801561244b57506001600160a01b0382165f9081526008602052604090205460ff16155b156124ba57600a5460ff166124975760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610bd2565b6124a2838383612782565b6124ad838383612a20565b6124b79082613b01565b90505b6124c5838383612e0c565b6010546001600160a01b031663e30443bc836124f5816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b158015612538575f80fd5b505af115801561254a573d5f803e3d5ffd5b50506010546001600160a01b0316915063e30443bc905084612580816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b1580156125c3575f80fd5b505af11580156125d5573d5f803e3d5ffd5b50505050505050565b60606111a17f30784761736c65737300000000000000000000000000000000000000000000096006612faf565b60606111a17f31000000000000000000000000000000000000000000000000000000000000016007612faf565b6040805160028082526060820183525f926020830190803683375050601954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa15801561269f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126c3919061399a565b815f815181106126d5576126d56139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110612709576127096139b5565b6001600160a01b03928316602091820292909201015260195460405163b6f9de9560e01b815291169063b6f9de9590869061274e908790869088904290600401613b95565b5f604051808303818588803b158015612765575f80fd5b505af1158015612777573d5f803e3d5ffd5b505050505050505050565b60145460ff1615612979576001600160a01b038281165f9081526009602090815260408083205483835281842054825180840184526013546001600160801b038082168352600160801b90910416818601529589168552600b90935292205460ff9283169391921680156127f4575082155b156128955780516001600160801b031684111561283d5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610bd2565b60208101516001600160801b03166128558386613b2b565b11156128905760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610bd2565b612975565b6001600160a01b0385165f908152600b602052604090205460ff1680156128d457506001600160a01b0386165f9081526009602052604090205460ff16155b1561291d5780516001600160801b03168411156128905760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610bd2565b826129755760208101516001600160801b031661293a8386613b2b565b11156129755760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610bd2565b5050505b60165460ff16156129f5576001600160a01b0382165f908152600b602052604090205460ff16156129fa576001600160a01b0383165f9081526015602052604090205443116129f55760405162461bcd60e51b815260206004820152600860248201526720b73a349026a2ab60c11b6044820152606401610bd2565b505050565b506001600160a01b03165f90815260156020526040808220439081905532835291205550565b601754305f90815260208190526040812054909111158015612a5a57506001600160a01b0384165f908152600b602052604090205460ff16155b15612a6757612a67613058565b6040805160a0810182525f808252602080830182905282840182905260608301829052608083018290526001600160a01b0387168252600b90529182205460ff1615612b0757506040805160a081018252600f5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b90049091166080820152612b7d565b6001600160a01b0386165f908152600b602052604090205460ff1615612b7d57506040805160a081018252600e5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b900490911660808201525b608081015165ffffffffffff1615612dfa576040805160a0810182526011546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b9004909116606082015260125460ff16151560808083019190915282015161271090612c009065ffffffffffff1687613910565b612c0a919061393b565b9250633b9aca00826080015165ffffffffffff16836040015165ffffffffffff1685612c369190613bc9565b612c409190613bf4565b612c4a9190613bf4565b81602001818151612c5b9190613c19565b6001600160401b031690525060808201518251633b9aca009165ffffffffffff90811691612c8a911686613bc9565b612c949190613bf4565b612c9e9190613bf4565b81518290612cad908390613c19565b6001600160401b031690525060808201516020830151633b9aca009165ffffffffffff90811691612cdf911686613bc9565b612ce99190613bf4565b612cf39190613bf4565b81604001818151612d049190613c19565b6001600160401b031690525060808201516060830151633b9aca009165ffffffffffff90811691612d36911686613bc9565b612d409190613bf4565b612d4a9190613bf4565b81606001818151612d5b9190613c19565b6001600160401b039081169091528251601180546020860151604087015160608801518616600160c01b026001600160c01b03918716600160801b02919091166001600160801b03928716600160401b026001600160801b031990941695909616949094179190911781169390931791909117905560808301516012805491151560ff19909216919091179055612df89150889030908616612e0c565b505b506001600160801b0316949350505050565b6001600160a01b038316612e705760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bd2565b6001600160a01b038216612ed25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bd2565b6001600160a01b0383165f9081526020819052604090205481811015612f495760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610bd2565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b606060ff8314612fc957612fc2836133be565b9050610e0e565b818054612fd59061394e565b80601f01602080910402602001604051908101604052809291908181526020018280546130019061394e565b801561304c5780601f106130235761010080835404028352916020019161304c565b820191905f5260205f20905b81548152906001019060200180831161302f57829003601f168201915b50505050509050610e0e565b305f9081526020818152604080832054815160a0810183526011546001600160401b03808216808452600160401b83048216968401879052600160801b83048216958401869052600160c01b909204166060830181905260125460ff1615156080840152929591949193916130cd9190613c19565b6130d79190613c19565b6130e19190613c19565b6001600160401b031690508215806130f7575080155b1561310157505050565b60175461310f906014613910565b83111561312757601754613124906014613910565b92505b60208201516001600160401b031615613201575f8183602001516001600160401b0316856131559190613910565b61315f919061393b565b60185490915061317a9030906001600160a01b031683612e0c565b60185f9054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156131c6575f80fd5b505af19250505080156131d7575060015b506131e28185613b01565b935082602001516001600160401b0316826131fd9190613b01565b9150505b821561338957613210836133fb565b604082015147905f906001600160401b03161561329e57600d5460408501516001600160a01b03909116908490613250906001600160401b031685613910565b61325a919061393b565b6040515f81818185875af1925050503d805f8114613293576040519150601f19603f3d011682016040523d82523d5f602084013e613298565b606091505b50909150505b60608401516001600160401b0316156133285760105460608501516001600160a01b039091169084906132da906001600160401b031685613910565b6132e4919061393b565b6040515f81818185875af1925050503d805f811461331d576040519150601f19603f3d011682016040523d82523d5f602084013e613322565b606091505b50909150505b479150811561338657600c546040516001600160a01b039091169083905f81818185875af1925050503d805f811461337b576040519150601f19603f3d011682016040523d82523d5f602084013e613380565b606091505b50909150505b50505b505f602082018190528082526040820181905260608201819052601155608001516012805460ff191691151591909117905550565b60605f6133ca836134f8565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061342e5761342e6139b5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110613482576134826139b5565b6001600160a01b03928316602091820292909201015260195460405163791ac94760e01b815291169063791ac947906134c79085905f90869030904290600401613c39565b5f604051808303815f87803b1580156134de575f80fd5b505af11580156134f0573d5f803e3d5ffd5b505050505050565b5f60ff8216601f811115610e0e57604051632cd44ac360e21b815260040160405180910390fd5b5f6020828403121561352f575f80fd5b81356001600160801b0381168114613545575f80fd5b9392505050565b5f81518084525f5b8181101561357057602081850181015186830182015201613554565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f613545602083018461354c565b6001600160a01b0381168114611532575f80fd5b5f80604083850312156135c6575f80fd5b82356135d1816135a1565b946020939093013593505050565b5f602082840312156135ef575f80fd5b8135613545816135a1565b5f805f6060848603121561360c575f80fd5b8335613617816135a1565b92506020840135613627816135a1565b929592945050506040919091013590565b5f60208284031215613648575f80fd5b5035919050565b8015158114611532575f80fd5b5f806040838503121561366d575f80fd5b8235613678816135a1565b915060208301356136888161364f565b809150509250929050565b803565ffffffffffff811681146136a8575f80fd5b919050565b5f805f80608085870312156136c0575f80fd5b6136c985613693565b93506136d760208601613693565b92506136e560408601613693565b91506136f360608601613693565b905092959194509250565b60ff60f81b881681525f602060e08184015261371d60e084018a61354c565b838103604085015261372f818a61354c565b606085018990526001600160a01b038816608086015260a0850187905284810360c086015285518082528387019250908301905f5b8181101561378057835183529284019291840191600101613764565b50909c9b505050505050505050505050565b5f602082840312156137a2575f80fd5b81356135458161364f565b5f80604083850312156137be575f80fd5b82356137c9816135a1565b91506020830135613688816135a1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561385c57815f19048211156138425761384261380e565b8085161561384f57918102915b93841c9390800290613827565b509250929050565b5f8261387257506001610e0e565b8161387e57505f610e0e565b8160018114613894576002811461389e576138ba565b6001915050610e0e565b60ff8411156138af576138af61380e565b50506001821b610e0e565b5060208310610133831016604e8410600b84101617156138dd575081810a610e0e565b6138e78383613822565b805f19048211156138fa576138fa61380e565b029392505050565b5f61354560ff841683613864565b8082028115828204841417610e0e57610e0e61380e565b634e487b7160e01b5f52601260045260245ffd5b5f8261394957613949613927565b500490565b600181811c9082168061396257607f821691505b60208210810361398057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b5f602082840312156139aa575f80fd5b8151613545816135a1565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452602080850194508084015f5b83811015613a005781516001600160a01b0316875295820195908201906001016139db565b509495945050505050565b828152604060208201525f61142860408301846139c9565b5f6020808385031215613a34575f80fd5b82516001600160401b0380821115613a4a575f80fd5b818501915085601f830112613a5d575f80fd5b815181811115613a6f57613a6f613986565b8060051b604051601f19603f83011681018181108582111715613a9457613a94613986565b604052918252848201925083810185019188831115613ab1575f80fd5b938501935b82851015613acf57845184529385019392850192613ab6565b98975050505050505050565b65ffffffffffff818116838216019080821115613afa57613afa61380e565b5092915050565b81810381811115610e0e57610e0e61380e565b5f60208284031215613b24575f80fd5b5051919050565b80820180821115610e0e57610e0e61380e565b5f60208284031215613b4e575f80fd5b81516135458161364f565b5f805f8060808587031215613b6c575f80fd5b8451613b77816135a1565b60208601516040870151606090970151919890975090945092505050565b848152608060208201525f613bad60808301866139c9565b6001600160a01b03949094166040830152506060015292915050565b6001600160801b03818116838216028082169190828114613bec57613bec61380e565b505092915050565b5f6001600160801b0380841680613c0d57613c0d613927565b92169190910492915050565b6001600160401b03818116838216019080821115613afa57613afa61380e565b85815284602082015260a060408201525f613c5760a08301866139c9565b6001600160a01b039490941660608301525060800152939250505056fea26469706673582212209717935b1e19528ddffb12b575fa3d8c60f60bf1cd4c3d3302d68dc97503a07464736f6c63430008140033
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.