Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000 REFINE
Holders
644
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.00787945953286434 REFINEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ERC315Token
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// The RefinERC represents an endeavor aimed at developing the Ethereum ecosystem through the implementation of the innovative ERC-315 standard. // Website: https://refinerc.com // Docs: https://docs.refinerc.com // Twitter: https://x.com/refinerc // Telegram: https://t.me/Refinerc // Mail: [email protected] // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {ERC315} from "./ERC315.sol"; contract ERC315Token is ERC315, Ownable, ReentrancyGuard { event FeeAddressChanged(address newAddress); event LimitRemoved(); // ERC315 publicly opens the "addLiquidity" function to all liquidity providers (an improvement to ERC314). // Liquidity providers will receive LP-ERC315 tokens when addLiquidity, // it is like dividend tokens so 0.3% trading fee can be easily allocated, // liquidity providers receive this fee by calling the function collect fees. uint256 public constant LIQUIDITY_PROVIDE_SHARE = 300; // 0.3% uint256 public immutable TOTAL_SUPPLY; uint256 public immutable BUY_TAX; uint256 public immutable SELL_TAX; uint256 public MAX_WALLET; mapping(address => bool) private _isExcludedFromFees; address public feeAddress; constructor( uint256 _buyTax, uint256 _sellTax, string memory _name, string memory _symbol, uint256 _initSupply, address _initOwner, uint256 _maxBuyAmount ) ERC315(_name, _symbol, _initSupply, _initOwner) Ownable(_initOwner) { require(_buyTax <= 5, "Buy tax too high"); require(_sellTax <= 5, "Sell tax too high"); feeAddress = _initOwner; BUY_TAX = _buyTax; SELL_TAX = _sellTax; TOTAL_SUPPLY = _initSupply; MAX_WALLET = _maxBuyAmount; } function excludedFromFees( address _address, bool _value ) external onlyOwner { _isExcludedFromFees[_address] = _value; } function removeLimits() external onlyOwner { require(MAX_WALLET != TOTAL_SUPPLY, "Limits already removed"); MAX_WALLET = TOTAL_SUPPLY; emit LimitRemoved(); } function getExcludedFromFees(address _address) public view returns (bool) { return _isExcludedFromFees[_address]; } function getEthLPInitAmount( uint256 tokenAmount, uint256 tokenEthPrice ) public pure returns (uint256) { return _getEthLPInitAmount(tokenAmount, tokenEthPrice); } function getAmountOut( uint256 value, bool isbuy ) public view returns (uint256) { return _getAmountOut(value, isbuy, 0); } function getLPAmount(uint256 amountTokenIn) public view returns (uint256) { return _getLPAmount(amountTokenIn); } function initiateLiquidity( uint256 _tokenAmount, uint256 _tokenEthPrice, uint256 _x ) public payable override onlyOwner { super.initiateLiquidity(_tokenAmount, _tokenEthPrice, _x); } function addLiquidity( uint256 _tokenAmount, uint256 _amountOutMin ) public payable override nonReentrant { super.addLiquidity(_tokenAmount, _amountOutMin); } function removeLiquidity( uint256 _lpAmount, uint256 _tokenAmountMin, uint256 _ethAmountMin ) public override nonReentrant { super.removeLiquidity(_lpAmount, _tokenAmountMin, _ethAmountMin); } function sellAntiBot( uint256 _amountToken, uint256 _amountOutMin ) external nonReentrant { uint256 ethAmount = _getAmountOut(_amountToken, false, 0); if (_amountOutMin > 0) { require(ethAmount >= _amountOutMin, "Slippage limit exceeded"); } _sell(_amountToken, _msgSender()); } function buyAntiBot(uint256 _amountOutMin) external payable nonReentrant { require(X > 0, "Liquidity not initiated"); uint256 token_amount = _getAmountOut(msg.value, true, msg.value); if (_amountOutMin > 0) { require(token_amount >= _amountOutMin, "Slippage limit exceeded"); } _buy(msg.value, _msgSender()); } function _transfer( address from, address to, uint256 value ) internal override { if (from == address(this)) { require(value + balanceOf(to) < MAX_WALLET, "Max amount exceeded"); } super._transfer(from, to, value); } function _buy(uint256 ethAmount, address to) internal override { if (!_isExcludedFromFees[to] && BUY_TAX > 0) { uint256 fee = (ethAmount * BUY_TAX) / 100; if (fee > 0) { _safeTransferETH(feeAddress, fee); } uint256 LPS = (ethAmount * LIQUIDITY_PROVIDE_SHARE) / 100000; if (LPS > 0) { _safeTransferETH(lp, LPS); } ethAmount = ethAmount - fee - LPS; } super._buy(ethAmount, to); } function _sell(uint256 tokenAmount, address to) internal override { require(tokenAmount > 0, "token amount too low"); _transfer(to, address(this), tokenAmount); uint256 ethAmount = _getAmountOut(tokenAmount, false, 0); require(ethAmount > 0, "Sell amount too low"); if (address(this).balance < ethAmount) { ethAmount = address(this).balance; } emit RSwap(to, 0, tokenAmount, ethAmount, 0); if (!_isExcludedFromFees[to] && SELL_TAX > 0) { uint256 fee = (ethAmount * SELL_TAX) / 100; if (fee > 0) { _safeTransferETH(feeAddress, fee); } uint256 LPS = (ethAmount * LIQUIDITY_PROVIDE_SHARE) / 100000; if (LPS > 0) { _safeTransferETH(lp, LPS); } ethAmount = ethAmount - fee - LPS; } _safeTransferETH(to, ethAmount); } function transfer( address to, uint256 value ) public override returns (bool) { if (to == address(this)) { _sell(value, _msgSender()); } else { super.transfer(to, value); } return true; } function changeFeeAddress(address _newAddress) external { require( _msgSender() == owner() || _msgSender() == feeAddress, "caller is not the owner" ); feeAddress = _newAddress; emit FeeAddressChanged(_newAddress); } receive() external payable { uint256 ethAmount = msg.value; _buy(ethAmount, _msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {IDividendTracker} from "./interfaces/IDividendTracker.sol"; import {SafeMath, SafeMathUint, SafeMathInt} from "./libs/SafeMath.sol"; abstract contract DividendTracker is ERC20, IDividendTracker { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 internal constant magnitude = 2 ** 128; uint256 internal magnifiedDividendPerShare; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; uint256 public totalDividendsWithdrawn; constructor( string memory _name, string memory _symbol ) ERC20(_name, _symbol) {} function _distribute(uint256 amount) internal virtual { require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (amount).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser( address payable user ) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add( _withdrawableDividend ); totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(user, _withdrawableDividend); (bool success, ) = user.call{value: _withdrawableDividend}(""); if (!success) { withdrawnDividends[user] = withdrawnDividends[user].sub( _withdrawableDividend ); totalDividendsWithdrawn -= _withdrawableDividend; return 0; } return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) public view override returns (uint256) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf( address _owner ) public view override returns (uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf( address _owner ) public view override returns (uint256) { return withdrawnDividends[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf( address _owner ) public view override returns (uint256) { return magnifiedDividendPerShare .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividendCorrections[_owner]) .toUint256Safe() / magnitude; } function transfer( address to, uint256 value ) public override returns (bool) { super.transfer(to, value); address from = _msgSender(); int256 _magCorrection = magnifiedDividendPerShare .mul(value) .toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from] .add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub( _magCorrection ); return true; } function transferFrom( address from, address to, uint256 value ) public override returns (bool) { super.transferFrom(from, to, value); int256 _magCorrection = magnifiedDividendPerShare .mul(value) .toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from] .add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub( _magCorrection ); return true; } function mint(address account, uint256 value) public virtual { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[ account ].sub((magnifiedDividendPerShare.mul(value)).toInt256Safe()); } function burn(address account, uint256 value) public virtual { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[ account ].add((magnifiedDividendPerShare.mul(value)).toInt256Safe()); } }
// SPDX-License-Identifier: UNLICENSED // The RefinERC represents an endeavor aimed at developing the Ethereum ecosystem through the implementation of the innovative ERC-315 standard. pragma solidity ^0.8.23; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; import {IERC315} from "./interfaces/IERC315.sol"; import {ERC315LPToken} from "./ERC315LPToken.sol"; abstract contract ERC315 is IERC315, Context { uint256 private _totalSupply; string private _name; string private _symbol; address payable public lp; uint256 public X; mapping(address account => uint256) private _balances; mapping(address account => uint32) private lastTransaction; constructor( string memory name_, string memory symbol_, uint256 totalSupply_, address _initTransferAddr ) { _name = name_; _symbol = symbol_; _totalSupply = totalSupply_; _balances[_initTransferAddr] = totalSupply_; emit Transfer(address(0), _initTransferAddr, totalSupply_); } function name() public view virtual returns (string memory) { return _name; } function symbol() public view virtual returns (string memory) { return _symbol; } function decimals() public view virtual returns (uint8) { return 18; } function totalSupply() public view virtual returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } function transfer(address to, uint256 value) public virtual returns (bool) { require(value > 0, "invalid amount"); _transfer(_msgSender(), to, value); return true; } function _transfer( address from, address to, uint256 value ) internal virtual { require( lastTransaction[_msgSender()] != block.number, "You can't make two transactions in the same block" ); lastTransaction[_msgSender()] = uint32(block.number); require( _balances[from] >= value, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] = _balances[from] - value; } if (to == address(0)) { unchecked { _totalSupply -= value; } } else { unchecked { _balances[to] += value; } } emit Transfer(from, to, value); } function getReserves() public view returns (uint256, uint256) { return (address(this).balance, _balances[address(this)]); } function _getAmountOut( uint256 value, bool isbuy, uint256 msgValue ) internal view returns (uint256) { require(X > 0, "Liquidity not init"); (uint256 reserveETH, uint256 reserveToken) = getReserves(); reserveETH = reserveETH - msgValue; if (isbuy) { return (value * reserveToken) / (X * value + X * reserveETH); } else { return (value * X * reserveETH) / (value + reserveToken); } } function _getEthLPInitAmount( uint256 tokenAmount, uint256 tokenEthPrice ) internal pure returns (uint256) { return (tokenAmount / tokenEthPrice); } function _getLPAmount( uint256 amountTokenIn ) internal view returns (uint256 liquidity) { liquidity = (amountTokenIn * ERC315LPToken(lp).totalSupply()) / _balances[address(this)]; } function initiateLiquidity( uint256 _tokenAmount, uint256 _tokenEthPrice, uint256 _x ) public payable virtual { require(_x > 0, "Invalid X"); require(X == 0, "Liquidity already initiated"); require(_tokenAmount > 0, "Invalid token amount"); require(_tokenEthPrice > 0, "Invalid token price"); _transfer(_msgSender(), address(this), _tokenAmount); X = _x; uint256 ethAmount = _getEthLPInitAmount(_tokenAmount, _tokenEthPrice); require(msg.value >= ethAmount, "Invalid ETH amount"); if (msg.value > ethAmount) { _safeTransferETH(_msgSender(), msg.value - ethAmount); } lp = payable(address(new ERC315LPToken())); ERC315LPToken(lp).mint(_msgSender(), _tokenAmount); } function getETHInputAddLP( uint256 tokenAmount ) public view returns (uint256) { return _getETHInputAddLP(tokenAmount, 0); } function _getETHInputAddLP( uint256 tokenAmount, uint256 msgValue ) internal view returns (uint256) { (uint256 reserveETH, uint256 reserveToken) = getReserves(); reserveETH = reserveETH - msgValue; return (tokenAmount * reserveETH) / reserveToken; } function getOutputRemoveLP( uint256 lpAmount ) public view returns (uint256 token, uint256 eth) { (uint256 reserveETH, uint256 reserveToken) = getReserves(); token = (lpAmount * reserveToken) / ERC315LPToken(lp).totalSupply(); eth = (lpAmount * reserveETH) / ERC315LPToken(lp).totalSupply(); } function addLiquidity( uint256 _tokenAmount, uint256 _amountOutMin ) public payable virtual { require(X > 0, "Liquidity not initiated"); require(_tokenAmount > 0, "Invalid token amount"); uint256 ethRequired = _getETHInputAddLP(_tokenAmount, msg.value); require( msg.value > 0 && msg.value >= ethRequired, "invalid ETH amount" ); uint256 amountLp = _getLPAmount(_tokenAmount); _transfer(_msgSender(), address(this), _tokenAmount); if (_amountOutMin > 0) { require(amountLp >= _amountOutMin, "Slippage limit exceeded"); } ERC315LPToken(lp).mint(_msgSender(), amountLp); if (msg.value > ethRequired) { _safeTransferETH(_msgSender(), msg.value - ethRequired); } emit RAddLiquidity(_msgSender(), _tokenAmount, ethRequired, amountLp); } function removeLiquidity( uint256 _lpAmount, uint256 _amountTokenMin, uint256 _amountEthMin ) public virtual { require(X > 0, "Liquidity not initiated"); require(_lpAmount > 0, "Invalid LP amount"); (uint256 amountToken, uint256 amountEth) = getOutputRemoveLP(_lpAmount); if (_amountTokenMin > 0) { require( amountToken >= _amountTokenMin, "Slippage limit exceeded Token amount" ); } if (_amountEthMin > 0) { require( amountEth >= _amountEthMin, "Slippage limit exceeded ETH amount" ); } ERC315LPToken(lp).burn(_msgSender(), _lpAmount); _transfer(address(this), _msgSender(), amountToken); _safeTransferETH(_msgSender(), amountEth); emit RRemoveLiquidity(_msgSender(), _lpAmount, amountToken, amountEth); } function _buy(uint256 _amountEth, address _to) internal virtual { require(_amountEth > 0, "eth amount too low"); uint256 token_amount = _getAmountOut(_amountEth, true, _amountEth); _transfer(address(this), _to, token_amount); emit RSwap(_to, _amountEth, 0, 0, token_amount); } function _sell(uint256 _amountToken, address _to) internal virtual { require(_amountToken > 0, "token amount too low"); uint256 ethAmount = _getAmountOut(_amountToken, false, 0); require(ethAmount > 0, "Sell amount too low"); require( address(this).balance >= ethAmount, "Insufficient ETH in reserves" ); _transfer(_to, address(this), _amountToken); _safeTransferETH(_to, ethAmount); emit RSwap(_to, 0, _amountToken, ethAmount, 0); } function _safeTransferETH(address to, uint256 amount) internal { (bool sent, ) = payable(to).call{value: amount}(""); require(sent, "Failed to send Ether"); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {DividendTracker} from "./DividendTracker.sol"; contract ERC315LPToken is DividendTracker, Ownable { event Claim(address indexed account, uint256 amount); struct AccountInfo { address account; uint256 withdrawableDividends; uint256 totalDividends; uint256 lastClaimTime; } constructor() DividendTracker("Liquidity Provide ERC315s", "LP-ERC315") Ownable(_msgSender()) {} mapping(address => uint256) public lastClaimTimes; uint private unlocked = 1; modifier lock() { require(unlocked == 1, "LPToken: LOCKED"); unlocked = 0; _; unlocked = 1; } function claimRewards() external { uint256 amount = _withdrawDividendOfUser(payable(_msgSender())); if (amount > 0) { lastClaimTimes[_msgSender()] = block.timestamp; emit Claim(_msgSender(), amount); } } function getAccount( address account ) public view returns (address, uint256, uint256, uint256, uint256) { AccountInfo memory info; info.account = account; info.withdrawableDividends = withdrawableDividendOf(account); info.totalDividends = accumulativeDividendOf(account); info.lastClaimTime = lastClaimTimes[account]; return ( info.account, info.withdrawableDividends, info.totalDividends, info.lastClaimTime, totalDividendsWithdrawn ); } function mint(address to, uint256 amount) public override lock onlyOwner { super.mint(to, amount); } function burn(address from, uint256 amount) public override lock onlyOwner { super.burn(from, amount); } function burnLP(uint256 amount) public lock { super.burn(_msgSender(), amount); } receive() external payable { uint256 totalAmount = msg.value; if (totalSupply() > 0) { _distribute(totalAmount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; interface IDividendTracker { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns (uint256); /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf( address _owner ) external view returns (uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf( address _owner ) external view returns (uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf( address _owner ) external view returns (uint256); /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed(address indexed from, uint256 weiAmount); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn(address indexed to, uint256 weiAmount); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; interface IERC315 { event Transfer(address indexed from, address indexed to, uint256 value); event RAddLiquidity( address indexed from, uint256 token, uint256 eth, uint256 liquidity ); event RRemoveLiquidity( address indexed from, uint256 token, uint256 eth, uint256 liquidity ); event RSwap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(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; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( 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; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ 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); } } /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_buyTax","type":"uint256"},{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_initSupply","type":"uint256"},{"internalType":"address","name":"_initOwner","type":"address"},{"internalType":"uint256","name":"_maxBuyAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"FeeAddressChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"LimitRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"RAddLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"RRemoveLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"}],"name":"RSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BUY_TAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIQUIDITY_PROVIDE_SHARE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SELL_TAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"X","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"}],"name":"addLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOutMin","type":"uint256"}],"name":"buyAntiBot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"excludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bool","name":"isbuy","type":"bool"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"getETHInputAddLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"tokenEthPrice","type":"uint256"}],"name":"getEthLPInitAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountTokenIn","type":"uint256"}],"name":"getLPAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lpAmount","type":"uint256"}],"name":"getOutputRemoveLP","outputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"eth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_tokenEthPrice","type":"uint256"},{"internalType":"uint256","name":"_x","type":"uint256"}],"name":"initiateLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"lp","outputs":[{"internalType":"address payable","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":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpAmount","type":"uint256"},{"internalType":"uint256","name":"_tokenAmountMin","type":"uint256"},{"internalType":"uint256","name":"_ethAmountMin","type":"uint256"}],"name":"removeLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountToken","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"}],"name":"sellAntiBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162003cfa38038062003cfa8339810160408190526200003491620002d2565b8185858583600162000047858262000418565b50600262000056848262000418565b5060008281556001600160a01b038216808252600560209081526040808420869055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050506001600160a01b0382169050620000df57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000ea81620001b8565b5060016008556005871115620001365760405162461bcd60e51b815260206004820152601060248201526f084eaf240e8c2f040e8dede40d0d2ced60831b6044820152606401620000d6565b60058611156200017d5760405162461bcd60e51b81526020600482015260116024820152700a6cad8d840e8c2f040e8dede40d0d2ced607b1b6044820152606401620000d6565b600b80546001600160a01b0319166001600160a01b03939093169290921790915560a09590955260c0939093525050608052600955620004e4565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023257600080fd5b81516001600160401b03808211156200024f576200024f6200020a565b604051601f8301601f19908116603f011681019082821181831017156200027a576200027a6200020a565b81604052838152602092508660208588010111156200029857600080fd5b600091505b83821015620002bc57858201830151818301840152908201906200029d565b6000602085830101528094505050505092915050565b600080600080600080600060e0888a031215620002ee57600080fd5b8751602089015160408a015191985096506001600160401b03808211156200031557600080fd5b620003238b838c0162000220565b965060608a01519150808211156200033a57600080fd5b50620003498a828b0162000220565b60808a015160a08b0151919650945090506001600160a01b03811681146200037057600080fd5b8092505060c0880151905092959891949750929550565b600181811c908216806200039c57607f821691505b602082108103620003bd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000413576000816000526020600020601f850160051c81016020861015620003ee5750805b601f850160051c820191505b818110156200040f57828155600101620003fa565b5050505b505050565b81516001600160401b038111156200043457620004346200020a565b6200044c8162000445845462000387565b84620003c3565b602080601f8311600181146200048457600084156200046b5750858301515b600019600386901b1c1916600185901b1785556200040f565b600085815260208120601f198616915b82811015620004b55788860151825594840194600190910190840162000494565b5085821015620004d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c0516137bc6200053e6000396000818161049f015281816118fb015261192c01526000818161023d01528181610710015261074101526000818161058401528181610bf20152610c5e01526137bc6000f3fe6080604052600436106200020f5760003560e01c806354ad8aee116200011757806395d89b4111620000a1578063b42f2f3c116200006c578063b42f2f3c146200066d578063c1599bd91462000692578063df7787a414620006aa578063f2fde38b14620006c257600080fd5b806395d89b4114620005f45780639cd441da146200060c578063a9059cbb1462000623578063b1677ad9146200064857600080fd5b8063857620e111620000e2578063857620e1146200052b5780638da5cb5b1462000550578063902d55a5146200057057806391ce351c14620005a657600080fd5b806354ad8aee146200048b57806370a0823114620004c1578063715018a614620004fb578063751039fc146200051357600080fd5b80632bc291bf11620001995780633471b2f411620001645780633471b2f414620004085780633cf77116146200042d578063412753581462000452578063540eae01146200047457600080fd5b80632bc291bf1462000373578063313c06a01462000398578063313ce56714620003d3578063335f93fb14620003f157600080fd5b806311106ee211620001da57806311106ee214620002ed57806316697fc5146200031257806318160ddd1462000337578063285e1406146200034e57600080fd5b806302af37bb146200022957806306fdde0314620002725780630902f1ac14620002995780630dc6a61c14620002d557600080fd5b36620002245734620002228133620006e7565b005b600080fd5b3480156200023657600080fd5b506200025f7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156200027f57600080fd5b506200028a62000803565b60405162000269919062001d2c565b348015620002a657600080fd5b50620002bf306000908152600560205260409020544791565b6040805192835260208301919091520162000269565b348015620002e257600080fd5b506200025f61012c81565b348015620002fa57600080fd5b506200025f6200030c36600462001d93565b6200089d565b3480156200031f57600080fd5b50620002226200033136600462001dda565b620008b6565b3480156200034457600080fd5b506000546200025f565b3480156200035b57600080fd5b50620002226200036d36600462001e09565b620008eb565b3480156200038057600080fd5b506200025f6200039236600462001e27565b620009be565b348015620003a557600080fd5b50600354620003ba906001600160a01b031681565b6040516001600160a01b03909116815260200162000269565b348015620003e057600080fd5b506040516012815260200162000269565b620002226200040236600462001e4a565b620009cc565b3480156200041557600080fd5b506200025f6200042736600462001e77565b620009e8565b3480156200043a57600080fd5b50620002bf6200044c36600462001e77565b620009f7565b3480156200045f57600080fd5b50600b54620003ba906001600160a01b031681565b620002226200048536600462001e77565b62000b48565b3480156200049857600080fd5b506200025f7f000000000000000000000000000000000000000000000000000000000000000081565b348015620004ce57600080fd5b506200025f620004e036600462001e09565b6001600160a01b031660009081526005602052604090205490565b3480156200050857600080fd5b506200022262000bce565b3480156200052057600080fd5b506200022262000be6565b3480156200053857600080fd5b50620002226200054a36600462001e4a565b62000cab565b3480156200055d57600080fd5b506007546001600160a01b0316620003ba565b3480156200057d57600080fd5b506200025f7f000000000000000000000000000000000000000000000000000000000000000081565b348015620005b357600080fd5b50620005e3620005c536600462001e09565b6001600160a01b03166000908152600a602052604090205460ff1690565b604051901515815260200162000269565b3480156200060157600080fd5b506200028a62000ccd565b620002226200061d36600462001e27565b62000cde565b3480156200063057600080fd5b50620005e36200064236600462001e91565b62000cff565b3480156200065557600080fd5b50620002226200066736600462001e27565b62000d3b565b3480156200067a57600080fd5b506200025f6200068c36600462001e77565b62000d99565b3480156200069f57600080fd5b506200025f60045481565b348015620006b757600080fd5b506200025f60095481565b348015620006cf57600080fd5b5062000222620006e136600462001e09565b62000da6565b6001600160a01b0381166000908152600a602052604090205460ff1615801562000731575060007f0000000000000000000000000000000000000000000000000000000000000000115b15620007f35760006064620007677f00000000000000000000000000000000000000000000000000000000000000008562001ed4565b62000773919062001eee565b905080156200079457600b5462000794906001600160a01b03168262000de7565b6000620186a0620007a861012c8662001ed4565b620007b4919062001eee565b90508015620007d557600354620007d5906001600160a01b03168262000de7565b80620007e2838662001f11565b620007ee919062001f11565b935050505b620007ff828262000e85565b5050565b606060018054620008149062001f27565b80601f0160208091040260200160405190810160405280929190818152602001828054620008429062001f27565b8015620008935780601f10620008675761010080835404028352916020019162000893565b820191906000526020600020905b8154815290600101906020018083116200087557829003601f168201915b5050505050905090565b6000620008ad8383600062000f43565b90505b92915050565b620008c062001040565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6007546001600160a01b0316331480620009185750600b546001600160a01b0316336001600160a01b0316145b6200096a5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064015b60405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fd1e93c69f2847f79bfa4d71704aaa84a581729b4b1706d922ee42ba1848a45c99060200160405180910390a150565b6000620008ad83836200106f565b620009d662001040565b620009e38383836200107d565b505050565b6000620008b0826000620012e0565b60008060008062000a15306000908152600560205260409020544791565b91509150600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000a6d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a93919062001f63565b62000a9f828762001ed4565b62000aab919062001eee565b9350600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000b01573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b27919062001f63565b62000b33838762001ed4565b62000b3f919062001eee565b92505050915091565b62000b5262001332565b60006004541162000b775760405162461bcd60e51b8152600401620009619062001f7d565b600062000b873460013462000f43565b9050811562000bb3578181101562000bb35760405162461bcd60e51b8152600401620009619062001fb4565b62000bbf3433620006e7565b5062000bcb6001600855565b50565b62000bd862001040565b62000be460006200135d565b565b62000bf062001040565b7f00000000000000000000000000000000000000000000000000000000000000006009540362000c5c5760405162461bcd60e51b8152602060048201526016602482015275131a5b5a5d1cc8185b1c9958591e481c995b5bdd995960521b604482015260640162000961565b7f00000000000000000000000000000000000000000000000000000000000000006009556040517fb376fd6b9b3ab68eb910bb1a8ad220eb88f9c95ae961d97d684d116c5332bd6790600090a1565b62000cb562001332565b62000cc2838383620013af565b620009e36001600855565b606060028054620008149062001f27565b62000ce862001332565b62000cf48282620015d4565b620007ff6001600855565b6000306001600160a01b0384160362000d245762000d1e8233620017c3565b62000d32565b62000d308383620019ea565b505b50600192915050565b62000d4562001332565b600062000d558360008062000f43565b9050811562000d81578181101562000d815760405162461bcd60e51b8152600401620009619062001fb4565b62000d8d8333620017c3565b50620007ff6001600855565b6000620008b08262001a3b565b62000db062001040565b6001600160a01b03811662000ddc57604051631e4fbdf760e01b81526000600482015260240162000961565b62000bcb816200135d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811462000e36576040519150601f19603f3d011682016040523d82523d6000602084013e62000e3b565b606091505b5050905080620009e35760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640162000961565b6000821162000ecc5760405162461bcd60e51b815260206004820152601260248201527165746820616d6f756e7420746f6f206c6f7760701b604482015260640162000961565b600062000edc8360018562000f43565b905062000eeb30838362001ad2565b60408051848152600060208201819052818301526060810183905290516001600160a01b038416917fbad29cb7019fcb53dab2f4fdd10643a87ad4eb344eafd31a4fd37d902b466d54919081900360800190a2505050565b6000806004541162000f8d5760405162461bcd60e51b8152602060048201526012602482015271131a5c5d5a591a5d1e481b9bdd081a5b9a5d60721b604482015260640162000961565b60008062000fa8306000908152600560205260409020544791565b909250905062000fb9848362001f11565b9150841562001010578160045462000fd2919062001ed4565b8660045462000fe2919062001ed4565b62000fee919062001feb565b62000ffa828862001ed4565b62001006919062001eee565b9250505062001039565b6200101c818762001feb565b82600454886200102d919062001ed4565b62000ffa919062001ed4565b9392505050565b6007546001600160a01b0316331462000be45760405163118cdaa760e01b815233600482015260240162000961565b6000620008ad828462001eee565b60008111620010bb5760405162461bcd60e51b8152602060048201526009602482015268092dcecc2d8d2c840b60bb1b604482015260640162000961565b600454156200110d5760405162461bcd60e51b815260206004820152601b60248201527f4c697175696469747920616c726561647920696e697469617465640000000000604482015260640162000961565b60008311620011565760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015260640162000961565b600082116200119e5760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746f6b656e20707269636560681b604482015260640162000961565b620011ab33308562001ad2565b60048190556000620011be84846200106f565b905080341015620012075760405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a590811551208185b5bdd5b9d60721b604482015260640162000961565b803411156200122757620012273362001221833462001f11565b62000de7565b604051620012359062001d1e565b604051809103906000f08015801562001252573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691821790556340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b158015620012c157600080fd5b505af1158015620012d6573d6000803e3d6000fd5b5050505050505050565b6000806000620012fd306000908152600560205260409020544791565b90925090506200130e848362001f11565b9150806200131d838762001ed4565b62001329919062001eee565b95945050505050565b6002600854036200135657604051633ee5aeb560e01b815260040160405180910390fd5b6002600855565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060045411620013d45760405162461bcd60e51b8152600401620009619062001f7d565b600083116200141a5760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a5908131408185b5bdd5b9d607a1b604482015260640162000961565b6000806200142885620009f7565b90925090508315620014925783821015620014925760405162461bcd60e51b8152602060048201526024808201527f536c697070616765206c696d697420657863656564656420546f6b656e20616d6044820152631bdd5b9d60e21b606482015260840162000961565b8215620014f65782811015620014f65760405162461bcd60e51b815260206004820152602260248201527f536c697070616765206c696d69742065786365656465642045544820616d6f756044820152611b9d60f21b606482015260840162000961565b6003546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b1580156200155157600080fd5b505af115801562001566573d6000803e3d6000fd5b505050506200157e30620015773390565b8462001ad2565b6200158a338262000de7565b6040805186815260208101849052808201839052905133917f5199beb8ab60d9dc6e469f3c6ab4ccca674413e02e0257117729c0bbf51c3aa5919081900360600190a25050505050565b600060045411620015f95760405162461bcd60e51b8152600401620009619062001f7d565b60008211620016425760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015260640162000961565b6000620016508334620012e0565b9050600034118015620016635750803410155b620016a65760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a590811551208185b5bdd5b9d60721b604482015260640162000961565b6000620016b38462001a3b565b9050620016c233308662001ad2565b8215620016ec5782811015620016ec5760405162461bcd60e51b8152600401620009619062001fb4565b6003546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156200174757600080fd5b505af11580156200175c573d6000803e3d6000fd5b50505050813411156200177a576200177a3362001221843462001f11565b6040805185815260208101849052808201839052905133917f45054fcaa1489c31dcd65facefb44a1ebf34387219fa3b27ba26deceec439908919081900360600190a250505050565b600082116200180c5760405162461bcd60e51b8152602060048201526014602482015273746f6b656e20616d6f756e7420746f6f206c6f7760601b604482015260640162000961565b6200181981308462001ad2565b6000620018298360008062000f43565b905060008111620018735760405162461bcd60e51b815260206004820152601360248201527253656c6c20616d6f756e7420746f6f206c6f7760681b604482015260640162000961565b804710156200187f5750475b60408051600080825260208201869052818301849052606082015290516001600160a01b038416917fbad29cb7019fcb53dab2f4fdd10643a87ad4eb344eafd31a4fd37d902b466d54919081900360800190a26001600160a01b0382166000908152600a602052604090205460ff161580156200191c575060007f0000000000000000000000000000000000000000000000000000000000000000115b15620019de5760006064620019527f00000000000000000000000000000000000000000000000000000000000000008462001ed4565b6200195e919062001eee565b905080156200197f57600b546200197f906001600160a01b03168262000de7565b6000620186a06200199361012c8562001ed4565b6200199f919062001eee565b90508015620019c057600354620019c0906001600160a01b03168262000de7565b80620019cd838562001f11565b620019d9919062001f11565b925050505b620009e3828262000de7565b600080821162001a2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640162000961565b62000d3233848462001ad2565b3060009081526005602090815260408083205460035482516318160ddd60e01b8152925191936001600160a01b03909116926318160ddd92600480830193928290030181865afa15801562001a94573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001aba919062001f63565b62001ac6908462001ed4565b620008b0919062001eee565b306001600160a01b0384160362001b50576009546001600160a01b03831660009081526005602052604090205462001b0b908362001feb565b1062001b505760405162461bcd60e51b815260206004820152601360248201527213585e08185b5bdd5b9d08195e18d959591959606a1b604482015260640162000961565b33600090815260066020526040902054620009e3908490849084904363ffffffff9091160362001bdd5760405162461bcd60e51b815260206004820152603160248201527f596f752063616e2774206d616b652074776f207472616e73616374696f6e7320604482015270696e207468652073616d6520626c6f636b60781b606482015260840162000961565b336000908152600660209081526040808320805463ffffffff19164363ffffffff161790556001600160a01b0386168352600590915290205481111562001c765760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840162000961565b6001600160a01b03808416600090815260056020526040902080548390039055821662001cac5760008054829003905562001ccb565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162001d1191815260200190565b60405180910390a3505050565b611785806200200283390190565b60006020808352835180602085015260005b8181101562001d5c5785810183015185820160400152820162001d3e565b506000604082860101526040601f19601f8301168501019250505092915050565b8035801515811462001d8e57600080fd5b919050565b6000806040838503121562001da757600080fd5b8235915062001db96020840162001d7d565b90509250929050565b80356001600160a01b038116811462001d8e57600080fd5b6000806040838503121562001dee57600080fd5b62001df98362001dc2565b915062001db96020840162001d7d565b60006020828403121562001e1c57600080fd5b620008ad8262001dc2565b6000806040838503121562001e3b57600080fd5b50508035926020909101359150565b60008060006060848603121562001e6057600080fd5b505081359360208301359350604090920135919050565b60006020828403121562001e8a57600080fd5b5035919050565b6000806040838503121562001ea557600080fd5b62001eb08362001dc2565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620008b057620008b062001ebe565b60008262001f0c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115620008b057620008b062001ebe565b600181811c9082168062001f3c57607f821691505b60208210810362001f5d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121562001f7657600080fd5b5051919050565b60208082526017908201527f4c6971756964697479206e6f7420696e69746961746564000000000000000000604082015260600190565b60208082526017908201527f536c697070616765206c696d6974206578636565646564000000000000000000604082015260600190565b80820180821115620008b057620008b062001ebe56fe60806040526001600c553480156200001657600080fd5b50336040518060400160405280601981526020017f4c69717569646974792050726f76696465204552433331357300000000000000815250604051806040016040528060098152602001684c502d45524333313560b81b81525081818160039081620000839190620001d3565b506004620000928282620001d3565b5050506001600160a01b0383169150620000c8905057604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000d381620000da565b506200029f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015757607f821691505b6020821081036200017857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001ce576000816000526020600020601f850160051c81016020861015620001a95750805b601f850160051c820191505b81811015620001ca57828155600101620001b5565b5050505b505050565b81516001600160401b03811115620001ef57620001ef6200012c565b620002078162000200845462000142565b846200017e565b602080601f8311600181146200023f5760008415620002265750858301515b600019600386901b1c1916600185901b178555620001ca565b600085815260208120601f198616915b8281101562000270578886015182559484019460019091019084016200024f565b50858210156200028f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6114d680620002af6000396000f3fe60806040526004361061014f5760003560e01c80638da5cb5b116100b6578063a9059cbb1161006f578063a9059cbb146103c2578063aafd847a146103e2578063c6ef206114610418578063dd62ed3e14610438578063f2fde38b1461047e578063fbcbc0f11461049e57600080fd5b80638da5cb5b1461030f57806391b89fba1461033757806395d89b41146103575780639dc29fac1461036c5780639e1e06611461038c578063a8b9d240146103a257600080fd5b8063313ce56711610108578063313ce5671461025d578063372500ab1461027957806340c10f191461028e57806370a08231146102ae578063715018a6146102e457806385a6b3ae146102f957600080fd5b806306fdde0314610176578063095ea7b3146101a157806318160ddd146101d1578063226cfa3d146101f057806323b872dd1461021d57806327ce01471461023d57600080fd5b366101715734600061016060025490565b111561016f5761016f816104f0565b005b600080fd5b34801561018257600080fd5b5061018b610584565b6040516101989190611248565b60405180910390f35b3480156101ad57600080fd5b506101c16101bc3660046112b3565b610616565b6040519015158152602001610198565b3480156101dd57600080fd5b506002545b604051908152602001610198565b3480156101fc57600080fd5b506101e261020b3660046112dd565b600b6020526000908152604090205481565b34801561022957600080fd5b506101c16102383660046112f8565b610630565b34801561024957600080fd5b506101e26102583660046112dd565b6106d7565b34801561026957600080fd5b5060405160128152602001610198565b34801561028557600080fd5b5061016f61072e565b34801561029a57600080fd5b5061016f6102a93660046112b3565b61078a565b3480156102ba57600080fd5b506101e26102c93660046112dd565b6001600160a01b031660009081526020819052604090205490565b3480156102f057600080fd5b5061016f6107d5565b34801561030557600080fd5b506101e260085481565b34801561031b57600080fd5b50600a546040516001600160a01b039091168152602001610198565b34801561034357600080fd5b506101e26103523660046112dd565b6107e9565b34801561036357600080fd5b5061018b6107f4565b34801561037857600080fd5b5061016f6103873660046112b3565b610803565b34801561039857600080fd5b506101e260095481565b3480156103ae57600080fd5b506101e26103bd3660046112dd565b61083c565b3480156103ce57600080fd5b506101c16103dd3660046112b3565b610868565b3480156103ee57600080fd5b506101e26103fd3660046112dd565b6001600160a01b031660009081526007602052604090205490565b34801561042457600080fd5b5061016f610433366004611334565b610905565b34801561044457600080fd5b506101e261045336600461134d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561048a57600080fd5b5061016f6104993660046112dd565b61093e565b3480156104aa57600080fd5b506104be6104b93660046112dd565b610979565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610198565b60006104fb60025490565b1161050557600080fd5b80156105815761053861051760025490565b61052583600160801b610a21565b61052f9190611396565b60055490610aaa565b60055560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461057d9082610aaa565b6008555b50565b606060038054610593906113b8565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf906113b8565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600033610624818585610b09565b60019150505b92915050565b600061063d848484610b1b565b50600061065d61065884600554610a2190919063ffffffff16565b610b3f565b6001600160a01b0386166000908152600660205260409020549091506106839082610b4f565b6001600160a01b0380871660009081526006602052604080822093909355908616815220546106b29082610b8d565b6001600160a01b03851660009081526006602052604090205550600190509392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b926107249261071f92610719916106589190610a21565b90610b4f565b610bca565b61062a9190611396565b600061073933610bdd565b9050801561058157336000818152600b602090815260409182902042905590518381527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a250565b600c546001146107b55760405162461bcd60e51b81526004016107ac906113f2565b60405180910390fd5b6000600c556107c2610d50565b6107cc8282610d7d565b50506001600c55565b6107dd610d50565b6107e76000610de1565b565b600061062a8261083c565b606060048054610593906113b8565b600c546001146108255760405162461bcd60e51b81526004016107ac906113f2565b6000600c55610832610d50565b6107cc8282610e33565b6001600160a01b03811660009081526007602052604081205461062a90610862846106d7565b90610e77565b60006108748383610eb9565b50600554339060009061088b906106589086610a21565b6001600160a01b0383166000908152600660205260409020549091506108b19082610b4f565b6001600160a01b0380841660009081526006602052604080822093909355908716815220546108e09082610b8d565b6001600160a01b03861660009081526006602052604090205550600191505092915050565b600c546001146109275760405162461bcd60e51b81526004016107ac906113f2565b6000600c556109363382610e33565b506001600c55565b610946610d50565b6001600160a01b03811661097057604051631e4fbdf760e01b8152600060048201526024016107ac565b61058181610de1565b60008060008060006109b5604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b03871681526109ca8761083c565b60208201526109d8876106d7565b60408281019182526001600160a01b03989098166000908152600b6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600082600003610a335750600061062a565b6000610a3f838561141b565b905082610a4c8583611396565b14610aa35760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016107ac565b9392505050565b600080610ab78385611432565b905083811015610aa35760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016107ac565b610b168383836001610ec7565b505050565b600033610b29858285610f9d565b610b34858585611015565b506001949350505050565b6000818181121561062a57600080fd5b600080610b5c8385611445565b905060008312158015610b6f5750838112155b80610b845750600083128015610b8457508381125b610aa357600080fd5b600080610b9a838561146d565b905060008312158015610bad5750838113155b80610b845750600083128015610b845750838113610aa357600080fd5b600080821215610bd957600080fd5b5090565b600080610be98361083c565b90508015610d47576001600160a01b038316600090815260076020526040902054610c149082610aaa565b6001600160a01b03841660009081526007602052604081209190915560098054839290610c42908490611432565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cd2576040519150601f19603f3d011682016040523d82523d6000602084013e610cd7565b606091505b5050905080610d40576001600160a01b038416600090815260076020526040902054610d039083610e77565b6001600160a01b03851660009081526007602052604081209190915560098054849290610d3190849061148d565b90915550600095945050505050565b5092915050565b50600092915050565b600a546001600160a01b031633146107e75760405163118cdaa760e01b81523360048201526024016107ac565b610d878282611074565b610dc1610da261065883600554610a2190919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610b8d565b6001600160a01b0390921660009081526006602052604090209190915550565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e3d82826110ae565b610dc1610e5861065883600554610a2190919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610b4f565b6000610aa383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110e4565b600033610624818585611015565b6001600160a01b038416610ef15760405163e602df0560e01b8152600060048201526024016107ac565b6001600160a01b038316610f1b57604051634a1406b160e11b8152600060048201526024016107ac565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610f9757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f8e91815260200190565b60405180910390a35b50505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610f97578181101561100657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107ac565b610f9784848484036000610ec7565b6001600160a01b03831661103f57604051634b637e8f60e11b8152600060048201526024016107ac565b6001600160a01b0382166110695760405163ec442f0560e01b8152600060048201526024016107ac565b610b1683838361111e565b6001600160a01b03821661109e5760405163ec442f0560e01b8152600060048201526024016107ac565b6110aa6000838361111e565b5050565b6001600160a01b0382166110d857604051634b637e8f60e11b8152600060048201526024016107ac565b6110aa8260008361111e565b600081848411156111085760405162461bcd60e51b81526004016107ac9190611248565b506000611115848661148d565b95945050505050565b6001600160a01b03831661114957806002600082825461113e9190611432565b909155506111bb9050565b6001600160a01b0383166000908152602081905260409020548181101561119c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016107ac565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166111d7576002805482900390556111f6565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161123b91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b818110156112765785810183015185820160400152820161125a565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112ae57600080fd5b919050565b600080604083850312156112c657600080fd5b6112cf83611297565b946020939093013593505050565b6000602082840312156112ef57600080fd5b610aa382611297565b60008060006060848603121561130d57600080fd5b61131684611297565b925061132460208501611297565b9150604084013590509250925092565b60006020828403121561134657600080fd5b5035919050565b6000806040838503121561136057600080fd5b61136983611297565b915061137760208401611297565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000826113b357634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806113cc57607f821691505b6020821081036113ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e1314151bdad95b8e881313d0d2d151608a1b604082015260600190565b808202811582820484141761062a5761062a611380565b8082018082111561062a5761062a611380565b808201828112600083128015821682158216171561146557611465611380565b505092915050565b8181036000831280158383131683831282161715610d4057610d40611380565b8181038181111561062a5761062a61138056fea26469706673582212206102936611c2f36b907d12d81356536aa1cb2ee7a62489783166b9126d69f2c464736f6c63430008170033a26469706673582212203fd89639677fa61fa23d37d79971d2b89bc5b7b2f1d9bb4431fdad03185c6b5d64736f6c634300081700330000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000062153f2e24fb1472d35968c2e262375638d2bece00000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000000000008526566696e4552430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006524546494e450000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106200020f5760003560e01c806354ad8aee116200011757806395d89b4111620000a1578063b42f2f3c116200006c578063b42f2f3c146200066d578063c1599bd91462000692578063df7787a414620006aa578063f2fde38b14620006c257600080fd5b806395d89b4114620005f45780639cd441da146200060c578063a9059cbb1462000623578063b1677ad9146200064857600080fd5b8063857620e111620000e2578063857620e1146200052b5780638da5cb5b1462000550578063902d55a5146200057057806391ce351c14620005a657600080fd5b806354ad8aee146200048b57806370a0823114620004c1578063715018a614620004fb578063751039fc146200051357600080fd5b80632bc291bf11620001995780633471b2f411620001645780633471b2f414620004085780633cf77116146200042d578063412753581462000452578063540eae01146200047457600080fd5b80632bc291bf1462000373578063313c06a01462000398578063313ce56714620003d3578063335f93fb14620003f157600080fd5b806311106ee211620001da57806311106ee214620002ed57806316697fc5146200031257806318160ddd1462000337578063285e1406146200034e57600080fd5b806302af37bb146200022957806306fdde0314620002725780630902f1ac14620002995780630dc6a61c14620002d557600080fd5b36620002245734620002228133620006e7565b005b600080fd5b3480156200023657600080fd5b506200025f7f000000000000000000000000000000000000000000000000000000000000000381565b6040519081526020015b60405180910390f35b3480156200027f57600080fd5b506200028a62000803565b60405162000269919062001d2c565b348015620002a657600080fd5b50620002bf306000908152600560205260409020544791565b6040805192835260208301919091520162000269565b348015620002e257600080fd5b506200025f61012c81565b348015620002fa57600080fd5b506200025f6200030c36600462001d93565b6200089d565b3480156200031f57600080fd5b50620002226200033136600462001dda565b620008b6565b3480156200034457600080fd5b506000546200025f565b3480156200035b57600080fd5b50620002226200036d36600462001e09565b620008eb565b3480156200038057600080fd5b506200025f6200039236600462001e27565b620009be565b348015620003a557600080fd5b50600354620003ba906001600160a01b031681565b6040516001600160a01b03909116815260200162000269565b348015620003e057600080fd5b506040516012815260200162000269565b620002226200040236600462001e4a565b620009cc565b3480156200041557600080fd5b506200025f6200042736600462001e77565b620009e8565b3480156200043a57600080fd5b50620002bf6200044c36600462001e77565b620009f7565b3480156200045f57600080fd5b50600b54620003ba906001600160a01b031681565b620002226200048536600462001e77565b62000b48565b3480156200049857600080fd5b506200025f7f000000000000000000000000000000000000000000000000000000000000000381565b348015620004ce57600080fd5b506200025f620004e036600462001e09565b6001600160a01b031660009081526005602052604090205490565b3480156200050857600080fd5b506200022262000bce565b3480156200052057600080fd5b506200022262000be6565b3480156200053857600080fd5b50620002226200054a36600462001e4a565b62000cab565b3480156200055d57600080fd5b506007546001600160a01b0316620003ba565b3480156200057d57600080fd5b506200025f7f00000000000000000000000000000000000000000052b7d2dcc80cd2e400000081565b348015620005b357600080fd5b50620005e3620005c536600462001e09565b6001600160a01b03166000908152600a602052604090205460ff1690565b604051901515815260200162000269565b3480156200060157600080fd5b506200028a62000ccd565b620002226200061d36600462001e27565b62000cde565b3480156200063057600080fd5b50620005e36200064236600462001e91565b62000cff565b3480156200065557600080fd5b50620002226200066736600462001e27565b62000d3b565b3480156200067a57600080fd5b506200025f6200068c36600462001e77565b62000d99565b3480156200069f57600080fd5b506200025f60045481565b348015620006b757600080fd5b506200025f60095481565b348015620006cf57600080fd5b5062000222620006e136600462001e09565b62000da6565b6001600160a01b0381166000908152600a602052604090205460ff1615801562000731575060007f0000000000000000000000000000000000000000000000000000000000000003115b15620007f35760006064620007677f00000000000000000000000000000000000000000000000000000000000000038562001ed4565b62000773919062001eee565b905080156200079457600b5462000794906001600160a01b03168262000de7565b6000620186a0620007a861012c8662001ed4565b620007b4919062001eee565b90508015620007d557600354620007d5906001600160a01b03168262000de7565b80620007e2838662001f11565b620007ee919062001f11565b935050505b620007ff828262000e85565b5050565b606060018054620008149062001f27565b80601f0160208091040260200160405190810160405280929190818152602001828054620008429062001f27565b8015620008935780601f10620008675761010080835404028352916020019162000893565b820191906000526020600020905b8154815290600101906020018083116200087557829003601f168201915b5050505050905090565b6000620008ad8383600062000f43565b90505b92915050565b620008c062001040565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6007546001600160a01b0316331480620009185750600b546001600160a01b0316336001600160a01b0316145b6200096a5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064015b60405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fd1e93c69f2847f79bfa4d71704aaa84a581729b4b1706d922ee42ba1848a45c99060200160405180910390a150565b6000620008ad83836200106f565b620009d662001040565b620009e38383836200107d565b505050565b6000620008b0826000620012e0565b60008060008062000a15306000908152600560205260409020544791565b91509150600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000a6d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a93919062001f63565b62000a9f828762001ed4565b62000aab919062001eee565b9350600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000b01573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b27919062001f63565b62000b33838762001ed4565b62000b3f919062001eee565b92505050915091565b62000b5262001332565b60006004541162000b775760405162461bcd60e51b8152600401620009619062001f7d565b600062000b873460013462000f43565b9050811562000bb3578181101562000bb35760405162461bcd60e51b8152600401620009619062001fb4565b62000bbf3433620006e7565b5062000bcb6001600855565b50565b62000bd862001040565b62000be460006200135d565b565b62000bf062001040565b7f00000000000000000000000000000000000000000052b7d2dcc80cd2e40000006009540362000c5c5760405162461bcd60e51b8152602060048201526016602482015275131a5b5a5d1cc8185b1c9958591e481c995b5bdd995960521b604482015260640162000961565b7f00000000000000000000000000000000000000000052b7d2dcc80cd2e40000006009556040517fb376fd6b9b3ab68eb910bb1a8ad220eb88f9c95ae961d97d684d116c5332bd6790600090a1565b62000cb562001332565b62000cc2838383620013af565b620009e36001600855565b606060028054620008149062001f27565b62000ce862001332565b62000cf48282620015d4565b620007ff6001600855565b6000306001600160a01b0384160362000d245762000d1e8233620017c3565b62000d32565b62000d308383620019ea565b505b50600192915050565b62000d4562001332565b600062000d558360008062000f43565b9050811562000d81578181101562000d815760405162461bcd60e51b8152600401620009619062001fb4565b62000d8d8333620017c3565b50620007ff6001600855565b6000620008b08262001a3b565b62000db062001040565b6001600160a01b03811662000ddc57604051631e4fbdf760e01b81526000600482015260240162000961565b62000bcb816200135d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811462000e36576040519150601f19603f3d011682016040523d82523d6000602084013e62000e3b565b606091505b5050905080620009e35760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640162000961565b6000821162000ecc5760405162461bcd60e51b815260206004820152601260248201527165746820616d6f756e7420746f6f206c6f7760701b604482015260640162000961565b600062000edc8360018562000f43565b905062000eeb30838362001ad2565b60408051848152600060208201819052818301526060810183905290516001600160a01b038416917fbad29cb7019fcb53dab2f4fdd10643a87ad4eb344eafd31a4fd37d902b466d54919081900360800190a2505050565b6000806004541162000f8d5760405162461bcd60e51b8152602060048201526012602482015271131a5c5d5a591a5d1e481b9bdd081a5b9a5d60721b604482015260640162000961565b60008062000fa8306000908152600560205260409020544791565b909250905062000fb9848362001f11565b9150841562001010578160045462000fd2919062001ed4565b8660045462000fe2919062001ed4565b62000fee919062001feb565b62000ffa828862001ed4565b62001006919062001eee565b9250505062001039565b6200101c818762001feb565b82600454886200102d919062001ed4565b62000ffa919062001ed4565b9392505050565b6007546001600160a01b0316331462000be45760405163118cdaa760e01b815233600482015260240162000961565b6000620008ad828462001eee565b60008111620010bb5760405162461bcd60e51b8152602060048201526009602482015268092dcecc2d8d2c840b60bb1b604482015260640162000961565b600454156200110d5760405162461bcd60e51b815260206004820152601b60248201527f4c697175696469747920616c726561647920696e697469617465640000000000604482015260640162000961565b60008311620011565760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015260640162000961565b600082116200119e5760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746f6b656e20707269636560681b604482015260640162000961565b620011ab33308562001ad2565b60048190556000620011be84846200106f565b905080341015620012075760405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a590811551208185b5bdd5b9d60721b604482015260640162000961565b803411156200122757620012273362001221833462001f11565b62000de7565b604051620012359062001d1e565b604051809103906000f08015801562001252573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691821790556340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401600060405180830381600087803b158015620012c157600080fd5b505af1158015620012d6573d6000803e3d6000fd5b5050505050505050565b6000806000620012fd306000908152600560205260409020544791565b90925090506200130e848362001f11565b9150806200131d838762001ed4565b62001329919062001eee565b95945050505050565b6002600854036200135657604051633ee5aeb560e01b815260040160405180910390fd5b6002600855565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060045411620013d45760405162461bcd60e51b8152600401620009619062001f7d565b600083116200141a5760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a5908131408185b5bdd5b9d607a1b604482015260640162000961565b6000806200142885620009f7565b90925090508315620014925783821015620014925760405162461bcd60e51b8152602060048201526024808201527f536c697070616765206c696d697420657863656564656420546f6b656e20616d6044820152631bdd5b9d60e21b606482015260840162000961565b8215620014f65782811015620014f65760405162461bcd60e51b815260206004820152602260248201527f536c697070616765206c696d69742065786365656465642045544820616d6f756044820152611b9d60f21b606482015260840162000961565b6003546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b1580156200155157600080fd5b505af115801562001566573d6000803e3d6000fd5b505050506200157e30620015773390565b8462001ad2565b6200158a338262000de7565b6040805186815260208101849052808201839052905133917f5199beb8ab60d9dc6e469f3c6ab4ccca674413e02e0257117729c0bbf51c3aa5919081900360600190a25050505050565b600060045411620015f95760405162461bcd60e51b8152600401620009619062001f7d565b60008211620016425760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015260640162000961565b6000620016508334620012e0565b9050600034118015620016635750803410155b620016a65760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a590811551208185b5bdd5b9d60721b604482015260640162000961565b6000620016b38462001a3b565b9050620016c233308662001ad2565b8215620016ec5782811015620016ec5760405162461bcd60e51b8152600401620009619062001fb4565b6003546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156200174757600080fd5b505af11580156200175c573d6000803e3d6000fd5b50505050813411156200177a576200177a3362001221843462001f11565b6040805185815260208101849052808201839052905133917f45054fcaa1489c31dcd65facefb44a1ebf34387219fa3b27ba26deceec439908919081900360600190a250505050565b600082116200180c5760405162461bcd60e51b8152602060048201526014602482015273746f6b656e20616d6f756e7420746f6f206c6f7760601b604482015260640162000961565b6200181981308462001ad2565b6000620018298360008062000f43565b905060008111620018735760405162461bcd60e51b815260206004820152601360248201527253656c6c20616d6f756e7420746f6f206c6f7760681b604482015260640162000961565b804710156200187f5750475b60408051600080825260208201869052818301849052606082015290516001600160a01b038416917fbad29cb7019fcb53dab2f4fdd10643a87ad4eb344eafd31a4fd37d902b466d54919081900360800190a26001600160a01b0382166000908152600a602052604090205460ff161580156200191c575060007f0000000000000000000000000000000000000000000000000000000000000003115b15620019de5760006064620019527f00000000000000000000000000000000000000000000000000000000000000038462001ed4565b6200195e919062001eee565b905080156200197f57600b546200197f906001600160a01b03168262000de7565b6000620186a06200199361012c8562001ed4565b6200199f919062001eee565b90508015620019c057600354620019c0906001600160a01b03168262000de7565b80620019cd838562001f11565b620019d9919062001f11565b925050505b620009e3828262000de7565b600080821162001a2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640162000961565b62000d3233848462001ad2565b3060009081526005602090815260408083205460035482516318160ddd60e01b8152925191936001600160a01b03909116926318160ddd92600480830193928290030181865afa15801562001a94573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001aba919062001f63565b62001ac6908462001ed4565b620008b0919062001eee565b306001600160a01b0384160362001b50576009546001600160a01b03831660009081526005602052604090205462001b0b908362001feb565b1062001b505760405162461bcd60e51b815260206004820152601360248201527213585e08185b5bdd5b9d08195e18d959591959606a1b604482015260640162000961565b33600090815260066020526040902054620009e3908490849084904363ffffffff9091160362001bdd5760405162461bcd60e51b815260206004820152603160248201527f596f752063616e2774206d616b652074776f207472616e73616374696f6e7320604482015270696e207468652073616d6520626c6f636b60781b606482015260840162000961565b336000908152600660209081526040808320805463ffffffff19164363ffffffff161790556001600160a01b0386168352600590915290205481111562001c765760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840162000961565b6001600160a01b03808416600090815260056020526040902080548390039055821662001cac5760008054829003905562001ccb565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162001d1191815260200190565b60405180910390a3505050565b611785806200200283390190565b60006020808352835180602085015260005b8181101562001d5c5785810183015185820160400152820162001d3e565b506000604082860101526040601f19601f8301168501019250505092915050565b8035801515811462001d8e57600080fd5b919050565b6000806040838503121562001da757600080fd5b8235915062001db96020840162001d7d565b90509250929050565b80356001600160a01b038116811462001d8e57600080fd5b6000806040838503121562001dee57600080fd5b62001df98362001dc2565b915062001db96020840162001d7d565b60006020828403121562001e1c57600080fd5b620008ad8262001dc2565b6000806040838503121562001e3b57600080fd5b50508035926020909101359150565b60008060006060848603121562001e6057600080fd5b505081359360208301359350604090920135919050565b60006020828403121562001e8a57600080fd5b5035919050565b6000806040838503121562001ea557600080fd5b62001eb08362001dc2565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620008b057620008b062001ebe565b60008262001f0c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115620008b057620008b062001ebe565b600181811c9082168062001f3c57607f821691505b60208210810362001f5d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121562001f7657600080fd5b5051919050565b60208082526017908201527f4c6971756964697479206e6f7420696e69746961746564000000000000000000604082015260600190565b60208082526017908201527f536c697070616765206c696d6974206578636565646564000000000000000000604082015260600190565b80820180821115620008b057620008b062001ebe56fe60806040526001600c553480156200001657600080fd5b50336040518060400160405280601981526020017f4c69717569646974792050726f76696465204552433331357300000000000000815250604051806040016040528060098152602001684c502d45524333313560b81b81525081818160039081620000839190620001d3565b506004620000928282620001d3565b5050506001600160a01b0383169150620000c8905057604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000d381620000da565b506200029f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015757607f821691505b6020821081036200017857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001ce576000816000526020600020601f850160051c81016020861015620001a95750805b601f850160051c820191505b81811015620001ca57828155600101620001b5565b5050505b505050565b81516001600160401b03811115620001ef57620001ef6200012c565b620002078162000200845462000142565b846200017e565b602080601f8311600181146200023f5760008415620002265750858301515b600019600386901b1c1916600185901b178555620001ca565b600085815260208120601f198616915b8281101562000270578886015182559484019460019091019084016200024f565b50858210156200028f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6114d680620002af6000396000f3fe60806040526004361061014f5760003560e01c80638da5cb5b116100b6578063a9059cbb1161006f578063a9059cbb146103c2578063aafd847a146103e2578063c6ef206114610418578063dd62ed3e14610438578063f2fde38b1461047e578063fbcbc0f11461049e57600080fd5b80638da5cb5b1461030f57806391b89fba1461033757806395d89b41146103575780639dc29fac1461036c5780639e1e06611461038c578063a8b9d240146103a257600080fd5b8063313ce56711610108578063313ce5671461025d578063372500ab1461027957806340c10f191461028e57806370a08231146102ae578063715018a6146102e457806385a6b3ae146102f957600080fd5b806306fdde0314610176578063095ea7b3146101a157806318160ddd146101d1578063226cfa3d146101f057806323b872dd1461021d57806327ce01471461023d57600080fd5b366101715734600061016060025490565b111561016f5761016f816104f0565b005b600080fd5b34801561018257600080fd5b5061018b610584565b6040516101989190611248565b60405180910390f35b3480156101ad57600080fd5b506101c16101bc3660046112b3565b610616565b6040519015158152602001610198565b3480156101dd57600080fd5b506002545b604051908152602001610198565b3480156101fc57600080fd5b506101e261020b3660046112dd565b600b6020526000908152604090205481565b34801561022957600080fd5b506101c16102383660046112f8565b610630565b34801561024957600080fd5b506101e26102583660046112dd565b6106d7565b34801561026957600080fd5b5060405160128152602001610198565b34801561028557600080fd5b5061016f61072e565b34801561029a57600080fd5b5061016f6102a93660046112b3565b61078a565b3480156102ba57600080fd5b506101e26102c93660046112dd565b6001600160a01b031660009081526020819052604090205490565b3480156102f057600080fd5b5061016f6107d5565b34801561030557600080fd5b506101e260085481565b34801561031b57600080fd5b50600a546040516001600160a01b039091168152602001610198565b34801561034357600080fd5b506101e26103523660046112dd565b6107e9565b34801561036357600080fd5b5061018b6107f4565b34801561037857600080fd5b5061016f6103873660046112b3565b610803565b34801561039857600080fd5b506101e260095481565b3480156103ae57600080fd5b506101e26103bd3660046112dd565b61083c565b3480156103ce57600080fd5b506101c16103dd3660046112b3565b610868565b3480156103ee57600080fd5b506101e26103fd3660046112dd565b6001600160a01b031660009081526007602052604090205490565b34801561042457600080fd5b5061016f610433366004611334565b610905565b34801561044457600080fd5b506101e261045336600461134d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561048a57600080fd5b5061016f6104993660046112dd565b61093e565b3480156104aa57600080fd5b506104be6104b93660046112dd565b610979565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610198565b60006104fb60025490565b1161050557600080fd5b80156105815761053861051760025490565b61052583600160801b610a21565b61052f9190611396565b60055490610aaa565b60055560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461057d9082610aaa565b6008555b50565b606060038054610593906113b8565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf906113b8565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600033610624818585610b09565b60019150505b92915050565b600061063d848484610b1b565b50600061065d61065884600554610a2190919063ffffffff16565b610b3f565b6001600160a01b0386166000908152600660205260409020549091506106839082610b4f565b6001600160a01b0380871660009081526006602052604080822093909355908616815220546106b29082610b8d565b6001600160a01b03851660009081526006602052604090205550600190509392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b926107249261071f92610719916106589190610a21565b90610b4f565b610bca565b61062a9190611396565b600061073933610bdd565b9050801561058157336000818152600b602090815260409182902042905590518381527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a250565b600c546001146107b55760405162461bcd60e51b81526004016107ac906113f2565b60405180910390fd5b6000600c556107c2610d50565b6107cc8282610d7d565b50506001600c55565b6107dd610d50565b6107e76000610de1565b565b600061062a8261083c565b606060048054610593906113b8565b600c546001146108255760405162461bcd60e51b81526004016107ac906113f2565b6000600c55610832610d50565b6107cc8282610e33565b6001600160a01b03811660009081526007602052604081205461062a90610862846106d7565b90610e77565b60006108748383610eb9565b50600554339060009061088b906106589086610a21565b6001600160a01b0383166000908152600660205260409020549091506108b19082610b4f565b6001600160a01b0380841660009081526006602052604080822093909355908716815220546108e09082610b8d565b6001600160a01b03861660009081526006602052604090205550600191505092915050565b600c546001146109275760405162461bcd60e51b81526004016107ac906113f2565b6000600c556109363382610e33565b506001600c55565b610946610d50565b6001600160a01b03811661097057604051631e4fbdf760e01b8152600060048201526024016107ac565b61058181610de1565b60008060008060006109b5604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b03871681526109ca8761083c565b60208201526109d8876106d7565b60408281019182526001600160a01b03989098166000908152600b6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600082600003610a335750600061062a565b6000610a3f838561141b565b905082610a4c8583611396565b14610aa35760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016107ac565b9392505050565b600080610ab78385611432565b905083811015610aa35760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016107ac565b610b168383836001610ec7565b505050565b600033610b29858285610f9d565b610b34858585611015565b506001949350505050565b6000818181121561062a57600080fd5b600080610b5c8385611445565b905060008312158015610b6f5750838112155b80610b845750600083128015610b8457508381125b610aa357600080fd5b600080610b9a838561146d565b905060008312158015610bad5750838113155b80610b845750600083128015610b845750838113610aa357600080fd5b600080821215610bd957600080fd5b5090565b600080610be98361083c565b90508015610d47576001600160a01b038316600090815260076020526040902054610c149082610aaa565b6001600160a01b03841660009081526007602052604081209190915560098054839290610c42908490611432565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cd2576040519150601f19603f3d011682016040523d82523d6000602084013e610cd7565b606091505b5050905080610d40576001600160a01b038416600090815260076020526040902054610d039083610e77565b6001600160a01b03851660009081526007602052604081209190915560098054849290610d3190849061148d565b90915550600095945050505050565b5092915050565b50600092915050565b600a546001600160a01b031633146107e75760405163118cdaa760e01b81523360048201526024016107ac565b610d878282611074565b610dc1610da261065883600554610a2190919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610b8d565b6001600160a01b0390921660009081526006602052604090209190915550565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e3d82826110ae565b610dc1610e5861065883600554610a2190919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610b4f565b6000610aa383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110e4565b600033610624818585611015565b6001600160a01b038416610ef15760405163e602df0560e01b8152600060048201526024016107ac565b6001600160a01b038316610f1b57604051634a1406b160e11b8152600060048201526024016107ac565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610f9757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f8e91815260200190565b60405180910390a35b50505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610f97578181101561100657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107ac565b610f9784848484036000610ec7565b6001600160a01b03831661103f57604051634b637e8f60e11b8152600060048201526024016107ac565b6001600160a01b0382166110695760405163ec442f0560e01b8152600060048201526024016107ac565b610b1683838361111e565b6001600160a01b03821661109e5760405163ec442f0560e01b8152600060048201526024016107ac565b6110aa6000838361111e565b5050565b6001600160a01b0382166110d857604051634b637e8f60e11b8152600060048201526024016107ac565b6110aa8260008361111e565b600081848411156111085760405162461bcd60e51b81526004016107ac9190611248565b506000611115848661148d565b95945050505050565b6001600160a01b03831661114957806002600082825461113e9190611432565b909155506111bb9050565b6001600160a01b0383166000908152602081905260409020548181101561119c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016107ac565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166111d7576002805482900390556111f6565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161123b91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b818110156112765785810183015185820160400152820161125a565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146112ae57600080fd5b919050565b600080604083850312156112c657600080fd5b6112cf83611297565b946020939093013593505050565b6000602082840312156112ef57600080fd5b610aa382611297565b60008060006060848603121561130d57600080fd5b61131684611297565b925061132460208501611297565b9150604084013590509250925092565b60006020828403121561134657600080fd5b5035919050565b6000806040838503121561136057600080fd5b61136983611297565b915061137760208401611297565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000826113b357634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806113cc57607f821691505b6020821081036113ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e1314151bdad95b8e881313d0d2d151608a1b604082015260600190565b808202811582820484141761062a5761062a611380565b8082018082111561062a5761062a611380565b808201828112600083128015821682158216171561146557611465611380565b505092915050565b8181036000831280158383131683831282161715610d4057610d40611380565b8181038181111561062a5761062a61138056fea26469706673582212206102936611c2f36b907d12d81356536aa1cb2ee7a62489783166b9126d69f2c464736f6c63430008170033a26469706673582212203fd89639677fa61fa23d37d79971d2b89bc5b7b2f1d9bb4431fdad03185c6b5d64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000062153f2e24fb1472d35968c2e262375638d2bece00000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000000000000000000000000008526566696e4552430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006524546494e450000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _buyTax (uint256): 3
Arg [1] : _sellTax (uint256): 3
Arg [2] : _name (string): RefinERC
Arg [3] : _symbol (string): REFINE
Arg [4] : _initSupply (uint256): 100000000000000000000000000
Arg [5] : _initOwner (address): 0x62153f2E24Fb1472d35968c2e262375638d2BEce
Arg [6] : _maxBuyAmount (uint256): 1000000000000000000000000
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [5] : 00000000000000000000000062153f2e24fb1472d35968c2e262375638d2bece
Arg [6] : 00000000000000000000000000000000000000000000d3c21bcecceda1000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 526566696e455243000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [10] : 524546494e450000000000000000000000000000000000000000000000000000
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.