ERC-20
Overview
Max Total Supply
73,579.225876640616836531 ROME
Holders
522
Market
Price
$0.00 @ 0.000000 S
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2.58606282917773985 ROMEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Rome
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.24; /* *@title Rome Finance Token *@author Rome Finance * telegram: https://t.me/rome_finance * dApp: https://app.romefi.com/ * twitter: https://x.com/rome_finance **/ import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/IRouter.sol"; import "./interfaces/IPairFactory.sol"; import "./interfaces/IManager.sol"; contract Rome is ERC20Burnable { address private constant DEAD = 0x000000000000000000000000000000000000dEaD; IManager private Manager; address private Staking; address private Treasury; // TAXES ARE 1- USED AGAINST SNIPERS; 2- USED TO BOOTSTRAP ROME INSTEAD OF PRESALE/ SEED uint256 private _initialTax = 60; // 10 seconds uint256 private _phaseOneTax = 40; // 30 seconds uint256 private _phaseTwoTax = 20; // 2 minutes uint256 public _finalBuyTax = 0; uint256 public _finalSellTax = 10; // can be modified from 0 to 10 // AMOUNT (in %) OF TOKEN TO BE SENT TO TREASURY INSTEAD OF LIQUIDATION - USED LATER uint256 private _feesToTreasury = 0; // ON SONIC MAINNET, 1 SECOND = 3 BLOCKS uint256 private _blockAtLaunch; uint256 private _blockRemoveInitialTax = 30; // 30 blocks = 10 seconds uint256 private _blockRemovePhaseOneTax = _blockRemoveInitialTax + 90; // 90 blocks = 30 seconds uint256 private _blockRemovePhaseTwoTax = _blockRemovePhaseOneTax + 360; // 360 blocks = 2 minutes uint256 private _tTotal = 100_000 * 1e18; uint256 private _maxWalletSize = (_tTotal * 35) / 10000; uint256 private swapThreshold = (_tTotal * 40) / 10000; IRouter private router; address public pair; bool private initialized = false; bool public tradingOpen = false; bool private inSwap = false; bool private swapEnabled = false; IRouter.route[] private routes; mapping(address => bool) private _isExcludedFromFee; mapping(address => bool) private _isMinter; constructor(address _manager) ERC20("Rome", "ROME") { router = IRouter(0x1D368773735ee1E678950B7A97bcA2CafB330CDc); routes.push(IRouter.route(address(this), router.WETH(), false)); Manager = IManager(_manager); _approve(address(this), address(router), type(uint256).max); _isExcludedFromFee[Manager.owner()] = true; _isExcludedFromFee[address(this)] = true; _mint(msg.sender, _tTotal); emit Transfer(address(0), msg.sender, _tTotal); } modifier lockTheSwap() { inSwap = true; _; inSwap = false; } modifier onlyOwner() { require(msg.sender == Manager.owner(), "Not Authorized"); _; } function initializePair() external onlyOwner { require(!initialized, "Already initialized"); pair = IPairFactory(router.factory()).createPair( address(this), router.WETH(), false ); initialized = true; _isExcludedFromFee[_getContract("Staking")] = true; } function update() external onlyOwner { Staking = _getContract("Staking"); Treasury = _getContract("Treasury"); _isMinter[_getContract("Burn")] = true; } function setPair(address _pair) external onlyOwner { pair = _pair; } function setIsInitialized(bool _initialized) external onlyOwner { initialized = _initialized; } function setManager(address _manager) external onlyOwner { Manager = IManager(_manager); } function setIsMinter(address account, bool status) external onlyOwner { _isMinter[account] = status; } function setSwapBackEnabled(bool _swapEnabled) external onlyOwner { swapEnabled = _swapEnabled; } function manageSellFee(uint256 _newFee) external onlyOwner { require(_newFee < 11, "Fee must be less than 11"); _finalSellTax = _newFee; } function manageFeeToTreasury(uint256 _newFee) external onlyOwner { require(_newFee < 100, "Share fee must be less than 100"); _feesToTreasury = _newFee; } function excludeFromFee(address[] calldata accounts) external onlyOwner { for (uint256 i = 0; i < accounts.length; i++) { _isExcludedFromFee[accounts[i]] = true; } } function rescueTokens(address token, uint256 amount) external onlyOwner { IERC20(token).transfer(msg.sender, amount); } function rescueETH(uint256 amount) external onlyOwner { bool tmpSuccess; (tmpSuccess, ) = payable(msg.sender).call{value: amount, gas: 5000000}( "" ); } function removeLimits() external onlyOwner { _maxWalletSize = _tTotal; } function openTrading() external onlyOwner { require(!tradingOpen, "trading is already open"); tradingOpen = true; swapEnabled = true; _blockAtLaunch = block.number; } function transfer( address recipient, uint256 amount ) public override returns (bool) { address sender = msg.sender; require( initialized || sender == Manager.owner(), "Not yet initialized" ); if (sender == pair) { return update(sender, recipient, amount); } else { require( block.number > _blockAtLaunch + _blockRemovePhaseOneTax || msg.sender == Manager.owner(), "Not authorized yet" ); return _basicTransfer(sender, recipient, amount); } } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { address spender = msg.sender; _spendAllowance(sender, spender, amount); update(sender, recipient, amount); return true; } function update( address sender, address recipient, uint256 amount ) internal returns (bool) { require( _isExcludedFromFee[sender] || _isExcludedFromFee[recipient] || tradingOpen, "Not authorized to trade yet" ); uint256 blockSinceLaunch = block.number - _blockAtLaunch; if (blockSinceLaunch < _blockRemovePhaseOneTax && _blockAtLaunch != 0) { address _owner = Manager.owner(); if (sender != _owner && recipient != _owner && recipient != DEAD) { if (recipient != pair) { uint256 _limit = _maxWalletSize; require( _isExcludedFromFee[recipient] || (balanceOf(recipient) + amount <= _limit), "Transfer amount exceeds the MaxWallet size." ); } } } if (shouldSwapBack() && recipient == pair) { swapBack(); } uint256 amountReceived = (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) ? amount : takeFee(sender, recipient, amount); _transfer(sender, recipient, amountReceived); return true; } function _basicTransfer( address sender, address recipient, uint256 amount ) internal returns (bool) { _transfer(sender, recipient, amount); return true; } function takeFee( address sender, address recipient, uint256 amount ) internal returns (uint256) { uint256 feeAmount = 0; uint256 blockSinceLaunch = block.number - _blockAtLaunch; uint256 tax; if (blockSinceLaunch >= _blockRemovePhaseTwoTax) { if (sender == pair && recipient != pair) { tax = _finalBuyTax; } else if (sender != pair && recipient == pair) { tax = _finalSellTax; } } else if (blockSinceLaunch >= _blockRemovePhaseOneTax) { tax = _phaseTwoTax; } else if (blockSinceLaunch >= _blockRemoveInitialTax) { tax = _phaseOneTax; } else { tax = _initialTax; } feeAmount = (amount * tax) / 100; if (feeAmount > 0) { uint256 treasuryFee = (feeAmount * _feesToTreasury) / 100; if (treasuryFee > 0) { _transfer(sender, Treasury, treasuryFee); } _transfer(sender, address(this), feeAmount - treasuryFee); } return amount - feeAmount; } function shouldSwapBack() internal view returns (bool) { return msg.sender != pair && !inSwap && swapEnabled && balanceOf(address(this)) >= swapThreshold; } function swapBack() internal lockTheSwap { uint256 amountToSwap = swapThreshold; router.swapExactTokensForETHSupportingFeeOnTransferTokens( amountToSwap, 0, routes, address(this), block.timestamp + 5 ); uint256 amountETHDev = address(this).balance; if (amountETHDev > 0) { bool tmpSuccess; (tmpSuccess, ) = payable(Treasury).call{ value: amountETHDev, gas: 30000 }(""); } } function setSwapThreshold(uint256 newTax) external onlyOwner { swapThreshold = newTax; } function mint(address to, uint256 value) external { require(_isMinter[msg.sender], "Not authorized"); _mint(to, value); } receive() external payable {} function _getContract( string memory contractName ) internal view returns (address) { return Manager.getContract(contractName); } }
// 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/ERC20Burnable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Context} from "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of tokens from `account`, deducting from * the caller's allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } }
// 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: UNLICENSED pragma solidity ^0.8.20; interface IManager { function getContract(string memory name) external view returns (address); function owner() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IPairFactory { function createPair( address tokenA, address tokenB, bool stable ) external returns (address pair); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.26; interface IRouter { error EXPIRED(); error IDENTICAL(); error ZERO_ADDRESS(); error INSUFFICIENT_AMOUNT(); error INSUFFICIENT_LIQUIDITY(); error INSUFFICIENT_OUTPUT_AMOUNT(); error INVALID_PATH(); error INSUFFICIENT_B_AMOUNT(); error INSUFFICIENT_A_AMOUNT(); error EXCESSIVE_INPUT_AMOUNT(); error ETH_TRANSFER_FAILED(); error INVALID_RESERVES(); struct route { /// @dev token from address from; /// @dev token to address to; /// @dev is stable route bool stable; } function factory() external pure returns (address); function WETH() external pure returns (address); /// @notice sorts the tokens to see what the expected LP output would be for token0 and token1 (A/B) /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @return token0 address of which becomes token0 /// @return token1 address of which becomes token1 function sortTokens( address tokenA, address tokenB ) external pure returns (address token0, address token1); /// @notice calculates the CREATE2 address for a pair without making any external calls /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @return pair address of the pair function pairFor( address tokenA, address tokenB, bool stable ) external view returns (address pair); /// @notice fetches and sorts the reserves for a pair /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @return reserveA get the reserves for tokenA /// @return reserveB get the reserves for tokenB function getReserves( address tokenA, address tokenB, bool stable ) external view returns (uint256 reserveA, uint256 reserveB); /// @notice performs chained getAmountOut calculations on any number of pairs /// @param amountIn the amount of tokens of routes[0] to swap /// @param routes the struct of the hops the swap should take /// @return amounts uint array of the amounts out function getAmountsOut( uint256 amountIn, route[] memory routes ) external view returns (uint256[] memory amounts); /// @notice performs chained getAmountOut calculations on any number of pairs /// @param amountIn amount of tokenIn /// @param tokenIn address of the token going in /// @param tokenOut address of the token coming out /// @return amount uint amount out /// @return stable if the curve used is stable or not function getAmountOut( uint256 amountIn, address tokenIn, address tokenOut ) external view returns (uint256 amount, bool stable); /// @notice performs calculations to determine the expected state when adding liquidity /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @param amountADesired amount of tokenA desired to be added /// @param amountBDesired amount of tokenB desired to be added /// @return amountA amount of tokenA added /// @return amountB amount of tokenB added /// @return liquidity liquidity value added function quoteAddLiquidity( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired ) external view returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @param liquidity liquidity value to remove /// @return amountA amount of tokenA removed /// @return amountB amount of tokenB removed function quoteRemoveLiquidity( address tokenA, address tokenB, bool stable, uint256 liquidity ) external view returns (uint256 amountA, uint256 amountB); /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @param amountADesired amount of tokenA desired to be added /// @param amountBDesired amount of tokenB desired to be added /// @param amountAMin slippage for tokenA calculated from this param /// @param amountBMin slippage for tokenB calculated from this param /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountA amount of tokenA used /// @return amountB amount of tokenB used /// @return liquidity amount of liquidity minted function addLiquidity( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @param token the address of token /// @param stable if the pair is using the stable curve /// @param amountTokenDesired desired amount for token /// @param amountTokenMin slippage for token /// @param amountETHMin minimum amount of ETH added (slippage) /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountToken amount of the token used /// @return amountETH amount of ETH used /// @return liquidity amount of liquidity minted function addLiquidityETH( address token, bool stable, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @param amountADesired amount of tokenA desired to be added /// @param amountBDesired amount of tokenB desired to be added /// @param amountAMin slippage for tokenA calculated from this param /// @param amountBMin slippage for tokenB calculated from this param /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountA amount of tokenA used /// @return amountB amount of tokenB used /// @return liquidity amount of liquidity minted function addLiquidityAndStake( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @notice adds liquidity to a legacy pair using ETH, and stakes it into a gauge on "to's" behalf /// @param token the address of token /// @param stable if the pair is using the stable curve /// @param amountTokenDesired amount of token to be used /// @param amountTokenMin slippage of token /// @param amountETHMin slippage of ETH /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountA amount of tokenA used /// @return amountB amount of tokenB used /// @return liquidity amount of liquidity minted function addLiquidityETHAndStake( address token, bool stable, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param stable if the pair is using the stable curve /// @param liquidity amount of LP tokens to remove /// @param amountAMin slippage of tokenA /// @param amountBMin slippage of tokenB /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountA amount of tokenA used /// @return amountB amount of tokenB used function removeLiquidity( address tokenA, address tokenB, bool stable, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); /// @param token address of the token /// @param stable if the pair is using the stable curve /// @param liquidity liquidity tokens to remove /// @param amountTokenMin slippage of token /// @param amountETHMin slippage of ETH /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amountToken amount of token used /// @return amountETH amount of ETH used function removeLiquidityETH( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); /// @param amountIn amount to send ideally /// @param amountOutMin slippage of amount out /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapTokensForExactTokens( uint amountOut, uint amountInMax, route[] memory routes, address to, uint deadline ) external returns (uint256[] memory amounts); /// @param amountOutMin slippage of token /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapExactETHForTokens( uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); /// @param amountOut amount of tokens to get out /// @param amountInMax max amount of tokens to put in to achieve amountOut (slippage) /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapTokensForExactETH( uint amountOut, uint amountInMax, route[] calldata routes, address to, uint deadline ) external returns (uint256[] memory amounts); /// @param amountIn amount of tokens to swap /// @param amountOutMin slippage of token /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); /// @param amountOut exact amount out or revert /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline /// @return amounts amounts returned function swapETHForExactTokens( uint amountOut, route[] calldata routes, address to, uint deadline ) external payable returns (uint256[] memory amounts); /// @param amountIn token amount to swap /// @param amountOutMin slippage of token /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external; /// @param amountOutMin slippage of token /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external payable; /// @param amountIn token amount to swap /// @param amountOutMin slippage of token /// @param routes the hops the swap should take /// @param to the address the liquidity tokens should be minted to /// @param deadline timestamp deadline function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external; /// @notice **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens)**** /// @param token address of the token /// @param stable if the swap curve is stable /// @param liquidity liquidity value (lp tokens) /// @param amountTokenMin slippage of token /// @param amountETHMin slippage of ETH /// @param to address to send to /// @param deadline timestamp deadline /// @return amountToken amount of token received /// @return amountETH amount of ETH received function removeLiquidityETHSupportingFeeOnTransferTokens( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"_finalBuyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_finalSellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"manageFeeToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"manageSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_initialized","type":"bool"}],"name":"setIsInitialized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setIsMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"}],"name":"setPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_swapEnabled","type":"bool"}],"name":"setSwapBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTax","type":"uint256"}],"name":"setSwapThreshold","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":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052603c60085560286009556014600a556000600b55600a600c556000600d55601e600f55600f54605a61003691906105ab565b6010819055610047906101686105ab565b60115569152d02c7e14af6800000601255612710601254602361006a91906105c4565b61007491906105db565b601355612710601254602861008991906105c4565b61009391906105db565b6014556016805463ffffffff60a01b191690553480156100b257600080fd5b506040516131f73803806131f78339810160408190526100d1916105fd565b60405180604001604052806004815260200163526f6d6560e01b81525060405180604001604052806004815260200163524f4d4560e01b815250816003908161011a91906106cb565b50600461012782826106cb565b5050601580546001600160a01b031916731d368773735ee1e678950b7a97bca2cafb330cdc9081179091556040805160608101825230815281516315ab88c960e31b81529151601794509092602080850193919263ad5c46489260048082019392918290030181865afa1580156101a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c691906105fd565b6001600160a01b0390811682526000602092830181905284546001818101875595825290839020845160029092020180549183166001600160a01b0319928316178155928401519290940180546040909401511515600160a01b026001600160a81b0319909416928216929092179290921790556005805484831693169290921790915560155461025c91309116600019610356565b600160186000600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d991906105fd565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff199586161790553081526018909252902080549091166001179055601254610327903390610368565b60125460405190815233906000906000805160206131d78339815191529060200160405180910390a350610789565b61036383838360016103a7565b505050565b6001600160a01b0382166103975760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b6103a36000838361047d565b5050565b6001600160a01b0384166103d15760405163e602df0560e01b81526000600482015260240161038e565b6001600160a01b0383166103fb57604051634a1406b160e11b81526000600482015260240161038e565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561047757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161046e91815260200190565b60405180910390a35b50505050565b6001600160a01b0383166104a857806002600082825461049d91906105ab565b9091555061051a9050565b6001600160a01b038316600090815260208190526040902054818110156104fb5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161038e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661053657600280548290039055610555565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03166000805160206131d78339815191528360405161058891815260200190565b60405180910390a3505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105be576105be610595565b92915050565b80820281158282048414176105be576105be610595565b6000826105f857634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561060f57600080fd5b81516001600160a01b038116811461062657600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061065757607f821691505b60208210810361067757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561036357806000526020600020601f840160051c810160208510156106a45750805b601f840160051c820191505b818110156106c457600081556001016106b0565b5050505050565b81516001600160401b038111156106e4576106e461062d565b6106f8816106f28454610643565b8461067d565b6020601f82116001811461072c57600083156107145750848201515b600019600385901b1c1916600184901b1784556106c4565b600084815260208120601f198516915b8281101561075c578785015182556020948501946001909201910161073c565b508482101561077a5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b612a3f806107986000396000f3fe6080604052600436106101dc5760003560e01c8063751039fc11610102578063a9059cbb11610095578063d0ebdbe711610064578063d0ebdbe714610543578063dd62ed3e14610563578063ee1ac0ca146105a9578063ffb54a99146105c957600080fd5b8063a9059cbb146104d8578063baeb7a7d146104f8578063c5e54cf61461050e578063c9567bf91461052e57600080fd5b80639d0014b1116100d15780639d0014b11461044b5780639e252f001461046b578063a2e620451461048b578063a8aa1b31146104a057600080fd5b8063751039fc146103e157806379cc6790146103f65780638187f5161461041657806395d89b411461043657600080fd5b80633ef947211161017a5780635737619811610149578063573761981461034b57806366eb399f1461036b57806370a082311461038b57806371b9189c146103c157600080fd5b80633ef94721146102e057806340c10f19146102f657806342966c68146103165780634fab9e4c1461033657600080fd5b806318160ddd116101b657806318160ddd146102655780631e53dbe91461028457806323b872dd146102a4578063313ce567146102c457600080fd5b8063013afd14146101e857806306fdde031461020a578063095ea7b31461023557600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610208610203366004612659565b6105ea565b005b34801561021657600080fd5b5061021f6106f0565b60405161022c919061267d565b60405180910390f35b34801561024157600080fd5b506102556102503660046126e0565b610782565b604051901515815260200161022c565b34801561027157600080fd5b506002545b60405190815260200161022c565b34801561029057600080fd5b5061020861029f366004612659565b61079c565b3480156102b057600080fd5b506102556102bf36600461270c565b61089d565b3480156102d057600080fd5b506040516012815260200161022c565b3480156102ec57600080fd5b50610276600c5481565b34801561030257600080fd5b506102086103113660046126e0565b6108c2565b34801561032257600080fd5b5061020861033136600461274d565b61092f565b34801561034257600080fd5b5061020861093c565b34801561035757600080fd5b506102086103663660046126e0565b610c83565b34801561037757600080fd5b50610208610386366004612766565b610dda565b34801561039757600080fd5b506102766103a636600461279f565b6001600160a01b031660009081526020819052604090205490565b3480156103cd57600080fd5b506102086103dc3660046127bc565b610ecd565b3480156103ed57600080fd5b50610208610ffd565b34801561040257600080fd5b506102086104113660046126e0565b6110cd565b34801561042257600080fd5b5061020861043136600461279f565b6110e2565b34801561044257600080fd5b5061021f6111d9565b34801561045757600080fd5b5061020861046636600461274d565b6111e8565b34801561047757600080fd5b5061020861048636600461274d565b6112b5565b34801561049757600080fd5b506102086113d1565b3480156104ac57600080fd5b506016546104c0906001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b3480156104e457600080fd5b506102556104f33660046126e0565b611595565b34801561050457600080fd5b50610276600b5481565b34801561051a57600080fd5b5061020861052936600461274d565b6117a9565b34801561053a57600080fd5b506102086118c6565b34801561054f57600080fd5b5061020861055e36600461279f565b611a30565b34801561056f57600080fd5b5061027661057e366004612833565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156105b557600080fd5b506102086105c436600461274d565b611b27565b3480156105d557600080fd5b5060165461025590600160a81b900460ff1681565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190612861565b6001600160a01b0316336001600160a01b0316146106b75760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b60168054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600380546106ff9061287e565b80601f016020809104026020016040519081016040528092919081815260200182805461072b9061287e565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b600033610790818585611c44565b60019150505b92915050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190612861565b6001600160a01b0316336001600160a01b0316146108645760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60168054911515600160b81b027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000336108ab858285611c51565b6108b6858585611ce8565b50600195945050505050565b3360009081526019602052604090205460ff166109215760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a656400000000000000000000000000000000000060448201526064016106ae565b61092b8282611ff7565b5050565b610939338261202d565b50565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190612861565b6001600160a01b0316336001600160a01b031614610a045760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601654600160a01b900460ff1615610a5e5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a65640000000000000000000000000060448201526064016106ae565b601560009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190612861565b6001600160a01b03166382dfdce430601560009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190612861565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152600060448201526064016020604051808303816000875af1158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb9190612861565b601680547fffffffffffffffffffffff000000000000000000000000000000000000000000166001600160a01b039290921691909117600160a01b1790556040805180820190915260078152665374616b696e6760c81b6020820152600190601890600090610c5990612063565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa9190612861565b6001600160a01b0316336001600160a01b031614610d4b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd591906128b8565b505050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190612861565b6001600160a01b0316336001600160a01b031614610ea25760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f449190612861565b6001600160a01b0316336001600160a01b031614610f955760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60005b81811015610dd557600160186000858585818110610fb857610fb86128d5565b9050602002016020810190610fcd919061279f565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101610f98565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110749190612861565b6001600160a01b0316336001600160a01b0316146110c55760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601254601355565b6110d8823383611c51565b61092b828261202d565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111599190612861565b6001600160a01b0316336001600160a01b0316146111aa5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6016805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600480546106ff9061287e565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125f9190612861565b6001600160a01b0316336001600160a01b0316146112b05760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601455565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c9190612861565b6001600160a01b0316336001600160a01b03161461137d5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6040516000903390624c4b4090849084818181858888f193505050503d80600081146113c5576040519150601f19603f3d011682016040523d82523d6000602084013e6113ca565b606091505b5050505050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190612861565b6001600160a01b0316336001600160a01b0316146114995760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6114c1604051806040016040528060078152602001665374616b696e6760c81b815250612063565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261152b90612063565b600760006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160196000610c596040518060400160405280600481526020017f4275726e00000000000000000000000000000000000000000000000000000000815250612063565b6016546000903390600160a01b900460ff16806116395750600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611600573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116249190612861565b6001600160a01b0316816001600160a01b0316145b6116855760405162461bcd60e51b815260206004820152601360248201527f4e6f742079657420696e697469616c697a65640000000000000000000000000060448201526064016106ae565b6016546001600160a01b03908116908216036116ae576116a6818585611ce8565b915050610796565b601054600e546116be9190612901565b4311806117525750600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173d9190612861565b6001600160a01b0316336001600160a01b0316145b61179e5760405162461bcd60e51b815260206004820152601260248201527f4e6f7420617574686f72697a656420796574000000000000000000000000000060448201526064016106ae565b6116a68185856120ee565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118209190612861565b6001600160a01b0316336001600160a01b0316146118715760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b600b81106118c15760405162461bcd60e51b815260206004820152601860248201527f466565206d757374206265206c657373207468616e203131000000000000000060448201526064016106ae565b600c55565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190612861565b6001600160a01b0316336001600160a01b03161461198e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601654600160a81b900460ff16156119e85760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e00000000000000000060448201526064016106ae565b601680547fffffffffffffffff00ff00ffffffffffffffffffffffffffffffffffffffffff167701000100000000000000000000000000000000000000000017905543600e55565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa79190612861565b6001600160a01b0316336001600160a01b031614611af85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9e9190612861565b6001600160a01b0316336001600160a01b031614611bef5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60648110611c3f5760405162461bcd60e51b815260206004820152601f60248201527f536861726520666565206d757374206265206c657373207468616e203130300060448201526064016106ae565b600d55565b610dd58383836001612105565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611ce25781811015611cd3576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101829052604481018390526064016106ae565b611ce284848484036000612105565b50505050565b6001600160a01b03831660009081526018602052604081205460ff1680611d2757506001600160a01b03831660009081526018602052604090205460ff165b80611d3b5750601654600160a81b900460ff165b611d875760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420617574686f72697a656420746f20747261646520796574000000000060448201526064016106ae565b6000600e5443611d979190612914565b905060105481108015611dab5750600e5415155b15611f6757600554604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015611e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e379190612861565b9050806001600160a01b0316866001600160a01b031614158015611e6d5750806001600160a01b0316856001600160a01b031614155b8015611e8457506001600160a01b03851661dead14155b15611f65576016546001600160a01b03868116911614611f65576013546001600160a01b03861660009081526018602052604090205460ff1680611ef157508085611ee4886001600160a01b031660009081526020819052604090205490565b611eee9190612901565b11155b611f635760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657220616d6f756e74206578636565647320746865204d61785760448201527f616c6c65742073697a652e00000000000000000000000000000000000000000060648201526084016106ae565b505b505b611f6f61220c565b8015611f8857506016546001600160a01b038581169116145b15611f9557611f9561226b565b6001600160a01b03851660009081526018602052604081205460ff1680611fd457506001600160a01b03851660009081526018602052604090205460ff165b611fe857611fe386868661236b565b611fea565b835b90506108b68686836124ad565b6001600160a01b0382166120215760405163ec442f0560e01b8152600060048201526024016106ae565b61092b60008383612508565b6001600160a01b03821661205757604051634b637e8f60e11b8152600060048201526024016106ae565b61092b82600083612508565b6005546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906120ad90859060040161267d565b602060405180830381865afa1580156120ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190612861565b60006120fb8484846124ad565b5060019392505050565b6001600160a01b038416612148576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016106ae565b6001600160a01b03831661218b576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016106ae565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015611ce257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516121fe91815260200190565b60405180910390a350505050565b6016546000906001600160a01b031633148015906122345750601654600160b01b900460ff16155b80156122495750601654600160b81b900460ff165b801561226657506014543060009081526020819052604090205410155b905090565b6016805460ff60b01b1916600160b01b1790556014546015546001600160a01b0316637af728c88260006017306122a3426005612901565b6040518663ffffffff1660e01b81526004016122c3959493929190612927565b600060405180830381600087803b1580156122dd57600080fd5b505af11580156122f1573d6000803e3d6000fd5b50479250508115905061235a576007546040516000916001600160a01b03169061753090849084818181858888f193505050503d8060008114612350576040519150601f19603f3d011682016040523d82523d6000602084013e612355565b606091505b505050505b50506016805460ff60b01b19169055565b600e546000908190819061237f9043612914565b9050600060115482106123ff576016546001600160a01b0388811691161480156123b757506016546001600160a01b03878116911614155b156123c55750600b54612428565b6016546001600160a01b038881169116148015906123f057506016546001600160a01b038781169116145b156123fa5750600c545b612428565b60105482106124115750600a54612428565b600f5482106124235750600954612428565b506008545b606461243482876129d0565b61243e91906129e7565b925082156124985760006064600d548561245891906129d0565b61246291906129e7565b90508015612482576007546124829089906001600160a01b0316836124ad565b61249688306124918488612914565b6124ad565b505b6124a28386612914565b979650505050505050565b6001600160a01b0383166124d757604051634b637e8f60e11b8152600060048201526024016106ae565b6001600160a01b0382166125015760405163ec442f0560e01b8152600060048201526024016106ae565b610dd58383835b6001600160a01b0383166125335780600260008282546125289190612901565b909155506125be9050565b6001600160a01b0383166000908152602081905260409020548181101561259f576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260248101829052604481018390526064016106ae565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166125da576002805482900390556125f9565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161263e91815260200190565b60405180910390a3505050565b801515811461093957600080fd5b60006020828403121561266b57600080fd5b81356126768161264b565b9392505050565b602081526000825180602084015260005b818110156126ab576020818601810151604086840101520161268e565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461093957600080fd5b600080604083850312156126f357600080fd5b82356126fe816126cb565b946020939093013593505050565b60008060006060848603121561272157600080fd5b833561272c816126cb565b9250602084013561273c816126cb565b929592945050506040919091013590565b60006020828403121561275f57600080fd5b5035919050565b6000806040838503121561277957600080fd5b8235612784816126cb565b915060208301356127948161264b565b809150509250929050565b6000602082840312156127b157600080fd5b8135612676816126cb565b600080602083850312156127cf57600080fd5b823567ffffffffffffffff8111156127e657600080fd5b8301601f810185136127f757600080fd5b803567ffffffffffffffff81111561280e57600080fd5b8560208260051b840101111561282357600080fd5b6020919091019590945092505050565b6000806040838503121561284657600080fd5b8235612851816126cb565b91506020830135612794816126cb565b60006020828403121561287357600080fd5b8151612676816126cb565b600181811c9082168061289257607f821691505b6020821081036128b257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156128ca57600080fd5b81516126768161264b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610796576107966128eb565b81810381811115610796576107966128eb565b600060a0820187835286602084015260a0604084015280865480835260c085019150876000526020600020925060005b818110156129a6576001600160a01b03845416835260018401546001600160a01b038116602085015260ff8160a01c161515604085015250606083019250600284019350600181019050612957565b50506001600160a01b038616606085015291506129c09050565b8260808301529695505050505050565b8082028115828204841417610796576107966128eb565b600082612a0457634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212200ea4b1b626d19efe9ccde382ac0acbed7e6ad16ff42756cec68e3b78b1d9a9be64736f6c634300081a0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000704bf85b18a15f8967976b81c9097e1b32afa5d4
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c8063751039fc11610102578063a9059cbb11610095578063d0ebdbe711610064578063d0ebdbe714610543578063dd62ed3e14610563578063ee1ac0ca146105a9578063ffb54a99146105c957600080fd5b8063a9059cbb146104d8578063baeb7a7d146104f8578063c5e54cf61461050e578063c9567bf91461052e57600080fd5b80639d0014b1116100d15780639d0014b11461044b5780639e252f001461046b578063a2e620451461048b578063a8aa1b31146104a057600080fd5b8063751039fc146103e157806379cc6790146103f65780638187f5161461041657806395d89b411461043657600080fd5b80633ef947211161017a5780635737619811610149578063573761981461034b57806366eb399f1461036b57806370a082311461038b57806371b9189c146103c157600080fd5b80633ef94721146102e057806340c10f19146102f657806342966c68146103165780634fab9e4c1461033657600080fd5b806318160ddd116101b657806318160ddd146102655780631e53dbe91461028457806323b872dd146102a4578063313ce567146102c457600080fd5b8063013afd14146101e857806306fdde031461020a578063095ea7b31461023557600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610208610203366004612659565b6105ea565b005b34801561021657600080fd5b5061021f6106f0565b60405161022c919061267d565b60405180910390f35b34801561024157600080fd5b506102556102503660046126e0565b610782565b604051901515815260200161022c565b34801561027157600080fd5b506002545b60405190815260200161022c565b34801561029057600080fd5b5061020861029f366004612659565b61079c565b3480156102b057600080fd5b506102556102bf36600461270c565b61089d565b3480156102d057600080fd5b506040516012815260200161022c565b3480156102ec57600080fd5b50610276600c5481565b34801561030257600080fd5b506102086103113660046126e0565b6108c2565b34801561032257600080fd5b5061020861033136600461274d565b61092f565b34801561034257600080fd5b5061020861093c565b34801561035757600080fd5b506102086103663660046126e0565b610c83565b34801561037757600080fd5b50610208610386366004612766565b610dda565b34801561039757600080fd5b506102766103a636600461279f565b6001600160a01b031660009081526020819052604090205490565b3480156103cd57600080fd5b506102086103dc3660046127bc565b610ecd565b3480156103ed57600080fd5b50610208610ffd565b34801561040257600080fd5b506102086104113660046126e0565b6110cd565b34801561042257600080fd5b5061020861043136600461279f565b6110e2565b34801561044257600080fd5b5061021f6111d9565b34801561045757600080fd5b5061020861046636600461274d565b6111e8565b34801561047757600080fd5b5061020861048636600461274d565b6112b5565b34801561049757600080fd5b506102086113d1565b3480156104ac57600080fd5b506016546104c0906001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b3480156104e457600080fd5b506102556104f33660046126e0565b611595565b34801561050457600080fd5b50610276600b5481565b34801561051a57600080fd5b5061020861052936600461274d565b6117a9565b34801561053a57600080fd5b506102086118c6565b34801561054f57600080fd5b5061020861055e36600461279f565b611a30565b34801561056f57600080fd5b5061027661057e366004612833565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156105b557600080fd5b506102086105c436600461274d565b611b27565b3480156105d557600080fd5b5060165461025590600160a81b900460ff1681565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190612861565b6001600160a01b0316336001600160a01b0316146106b75760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b60168054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600380546106ff9061287e565b80601f016020809104026020016040519081016040528092919081815260200182805461072b9061287e565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b600033610790818585611c44565b60019150505b92915050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190612861565b6001600160a01b0316336001600160a01b0316146108645760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60168054911515600160b81b027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000336108ab858285611c51565b6108b6858585611ce8565b50600195945050505050565b3360009081526019602052604090205460ff166109215760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a656400000000000000000000000000000000000060448201526064016106ae565b61092b8282611ff7565b5050565b610939338261202d565b50565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190612861565b6001600160a01b0316336001600160a01b031614610a045760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601654600160a01b900460ff1615610a5e5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a65640000000000000000000000000060448201526064016106ae565b601560009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190612861565b6001600160a01b03166382dfdce430601560009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190612861565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152600060448201526064016020604051808303816000875af1158015610bc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610beb9190612861565b601680547fffffffffffffffffffffff000000000000000000000000000000000000000000166001600160a01b039290921691909117600160a01b1790556040805180820190915260078152665374616b696e6760c81b6020820152600190601890600090610c5990612063565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa9190612861565b6001600160a01b0316336001600160a01b031614610d4b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd591906128b8565b505050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190612861565b6001600160a01b0316336001600160a01b031614610ea25760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f449190612861565b6001600160a01b0316336001600160a01b031614610f955760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60005b81811015610dd557600160186000858585818110610fb857610fb86128d5565b9050602002016020810190610fcd919061279f565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101610f98565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110749190612861565b6001600160a01b0316336001600160a01b0316146110c55760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601254601355565b6110d8823383611c51565b61092b828261202d565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111599190612861565b6001600160a01b0316336001600160a01b0316146111aa5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6016805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600480546106ff9061287e565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125f9190612861565b6001600160a01b0316336001600160a01b0316146112b05760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601455565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c9190612861565b6001600160a01b0316336001600160a01b03161461137d5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6040516000903390624c4b4090849084818181858888f193505050503d80600081146113c5576040519150601f19603f3d011682016040523d82523d6000602084013e6113ca565b606091505b5050505050565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190612861565b6001600160a01b0316336001600160a01b0316146114995760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6114c1604051806040016040528060078152602001665374616b696e6760c81b815250612063565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261152b90612063565b600760006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160196000610c596040518060400160405280600481526020017f4275726e00000000000000000000000000000000000000000000000000000000815250612063565b6016546000903390600160a01b900460ff16806116395750600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611600573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116249190612861565b6001600160a01b0316816001600160a01b0316145b6116855760405162461bcd60e51b815260206004820152601360248201527f4e6f742079657420696e697469616c697a65640000000000000000000000000060448201526064016106ae565b6016546001600160a01b03908116908216036116ae576116a6818585611ce8565b915050610796565b601054600e546116be9190612901565b4311806117525750600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173d9190612861565b6001600160a01b0316336001600160a01b0316145b61179e5760405162461bcd60e51b815260206004820152601260248201527f4e6f7420617574686f72697a656420796574000000000000000000000000000060448201526064016106ae565b6116a68185856120ee565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118209190612861565b6001600160a01b0316336001600160a01b0316146118715760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b600b81106118c15760405162461bcd60e51b815260206004820152601860248201527f466565206d757374206265206c657373207468616e203131000000000000000060448201526064016106ae565b600c55565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d9190612861565b6001600160a01b0316336001600160a01b03161461198e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b601654600160a81b900460ff16156119e85760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e00000000000000000060448201526064016106ae565b601680547fffffffffffffffff00ff00ffffffffffffffffffffffffffffffffffffffffff167701000100000000000000000000000000000000000000000017905543600e55565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa79190612861565b6001600160a01b0316336001600160a01b031614611af85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600560009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9e9190612861565b6001600160a01b0316336001600160a01b031614611bef5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016106ae565b60648110611c3f5760405162461bcd60e51b815260206004820152601f60248201527f536861726520666565206d757374206265206c657373207468616e203130300060448201526064016106ae565b600d55565b610dd58383836001612105565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611ce25781811015611cd3576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101829052604481018390526064016106ae565b611ce284848484036000612105565b50505050565b6001600160a01b03831660009081526018602052604081205460ff1680611d2757506001600160a01b03831660009081526018602052604090205460ff165b80611d3b5750601654600160a81b900460ff165b611d875760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420617574686f72697a656420746f20747261646520796574000000000060448201526064016106ae565b6000600e5443611d979190612914565b905060105481108015611dab5750600e5415155b15611f6757600554604080517f8da5cb5b00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015611e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e379190612861565b9050806001600160a01b0316866001600160a01b031614158015611e6d5750806001600160a01b0316856001600160a01b031614155b8015611e8457506001600160a01b03851661dead14155b15611f65576016546001600160a01b03868116911614611f65576013546001600160a01b03861660009081526018602052604090205460ff1680611ef157508085611ee4886001600160a01b031660009081526020819052604090205490565b611eee9190612901565b11155b611f635760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657220616d6f756e74206578636565647320746865204d61785760448201527f616c6c65742073697a652e00000000000000000000000000000000000000000060648201526084016106ae565b505b505b611f6f61220c565b8015611f8857506016546001600160a01b038581169116145b15611f9557611f9561226b565b6001600160a01b03851660009081526018602052604081205460ff1680611fd457506001600160a01b03851660009081526018602052604090205460ff165b611fe857611fe386868661236b565b611fea565b835b90506108b68686836124ad565b6001600160a01b0382166120215760405163ec442f0560e01b8152600060048201526024016106ae565b61092b60008383612508565b6001600160a01b03821661205757604051634b637e8f60e11b8152600060048201526024016106ae565b61092b82600083612508565b6005546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906120ad90859060040161267d565b602060405180830381865afa1580156120ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190612861565b60006120fb8484846124ad565b5060019392505050565b6001600160a01b038416612148576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016106ae565b6001600160a01b03831661218b576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016106ae565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015611ce257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516121fe91815260200190565b60405180910390a350505050565b6016546000906001600160a01b031633148015906122345750601654600160b01b900460ff16155b80156122495750601654600160b81b900460ff165b801561226657506014543060009081526020819052604090205410155b905090565b6016805460ff60b01b1916600160b01b1790556014546015546001600160a01b0316637af728c88260006017306122a3426005612901565b6040518663ffffffff1660e01b81526004016122c3959493929190612927565b600060405180830381600087803b1580156122dd57600080fd5b505af11580156122f1573d6000803e3d6000fd5b50479250508115905061235a576007546040516000916001600160a01b03169061753090849084818181858888f193505050503d8060008114612350576040519150601f19603f3d011682016040523d82523d6000602084013e612355565b606091505b505050505b50506016805460ff60b01b19169055565b600e546000908190819061237f9043612914565b9050600060115482106123ff576016546001600160a01b0388811691161480156123b757506016546001600160a01b03878116911614155b156123c55750600b54612428565b6016546001600160a01b038881169116148015906123f057506016546001600160a01b038781169116145b156123fa5750600c545b612428565b60105482106124115750600a54612428565b600f5482106124235750600954612428565b506008545b606461243482876129d0565b61243e91906129e7565b925082156124985760006064600d548561245891906129d0565b61246291906129e7565b90508015612482576007546124829089906001600160a01b0316836124ad565b61249688306124918488612914565b6124ad565b505b6124a28386612914565b979650505050505050565b6001600160a01b0383166124d757604051634b637e8f60e11b8152600060048201526024016106ae565b6001600160a01b0382166125015760405163ec442f0560e01b8152600060048201526024016106ae565b610dd58383835b6001600160a01b0383166125335780600260008282546125289190612901565b909155506125be9050565b6001600160a01b0383166000908152602081905260409020548181101561259f576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260248101829052604481018390526064016106ae565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166125da576002805482900390556125f9565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161263e91815260200190565b60405180910390a3505050565b801515811461093957600080fd5b60006020828403121561266b57600080fd5b81356126768161264b565b9392505050565b602081526000825180602084015260005b818110156126ab576020818601810151604086840101520161268e565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461093957600080fd5b600080604083850312156126f357600080fd5b82356126fe816126cb565b946020939093013593505050565b60008060006060848603121561272157600080fd5b833561272c816126cb565b9250602084013561273c816126cb565b929592945050506040919091013590565b60006020828403121561275f57600080fd5b5035919050565b6000806040838503121561277957600080fd5b8235612784816126cb565b915060208301356127948161264b565b809150509250929050565b6000602082840312156127b157600080fd5b8135612676816126cb565b600080602083850312156127cf57600080fd5b823567ffffffffffffffff8111156127e657600080fd5b8301601f810185136127f757600080fd5b803567ffffffffffffffff81111561280e57600080fd5b8560208260051b840101111561282357600080fd5b6020919091019590945092505050565b6000806040838503121561284657600080fd5b8235612851816126cb565b91506020830135612794816126cb565b60006020828403121561287357600080fd5b8151612676816126cb565b600181811c9082168061289257607f821691505b6020821081036128b257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156128ca57600080fd5b81516126768161264b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610796576107966128eb565b81810381811115610796576107966128eb565b600060a0820187835286602084015260a0604084015280865480835260c085019150876000526020600020925060005b818110156129a6576001600160a01b03845416835260018401546001600160a01b038116602085015260ff8160a01c161515604085015250606083019250600284019350600181019050612957565b50506001600160a01b038616606085015291506129c09050565b8260808301529695505050505050565b8082028115828204841417610796576107966128eb565b600082612a0457634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212200ea4b1b626d19efe9ccde382ac0acbed7e6ad16ff42756cec68e3b78b1d9a9be64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000704bf85b18a15f8967976b81c9097e1b32afa5d4
-----Decoded View---------------
Arg [0] : _manager (address): 0x704BF85b18A15F8967976b81C9097E1B32aFa5D4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000704bf85b18a15f8967976b81c9097e1b32afa5d4
[ 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.