false
false
0

Contract Address Details

0xE1A77164e5C6d9E0fc0b23D11e0874De6B328e68

Token
test1 (test1)
Creator
0xc7d98c–7f3521 at 0x8eecf0–d743b1
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
62 Transactions
Transfers
0 Transfers
Gas Used
5,626,013
Last Balance Update
16287130
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
ERC223TokenCloned




Optimization enabled
true
Compiler version
v0.8.18+commit.87f61d96




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:31:48.401442Z

Contract source code

// SPDX-License-Identifier: No License (None)
pragma solidity 0.8.18;

library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

interface IERC223 {
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

  /**
   * @dev Returns the token decimals.
   */
  function decimals() external view returns (uint8);

  /**
   * @dev Returns the token symbol.
   */
  function symbol() external view returns (string memory);

  /**
  * @dev Returns the token name.
  */
  function name() external view returns (string memory);

  /**
  * @dev Returns the token standard.
  */
  function standard() external pure returns (string memory);

  /**
   * @dev Returns the amount of tokens owned by `account`.
   */
  function balanceOf(address account) external view returns (uint256);

  /**
   * @dev Moves `amount` tokens from the caller's account to `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, uint256 amount) external returns (bool);

  function transfer(address recipient, uint256 amount, bytes calldata data) external returns (bool);

  /**
   * @dev Returns the remaining number of tokens that `spender` will be
   * allowed to spend on behalf of `owner` through {transferFrom}. This is
   * zero by default.
   *
   * This value changes when {approve} or {transferFrom} are called.
   */
  function allowance(address _owner, address spender) external view returns (uint256);

  /**
   * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * IMPORTANT: Beware that changing an allowance with this method brings the risk
   * that someone may use both the old and the new allowance by unfortunate
   * transaction ordering. One possible solution to mitigate this race
   * condition is to first reduce the spender's allowance to 0 and set the
   * desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   *
   * Emits an {Approval} event.
   */
  function approve(address spender, uint256 amount) external returns (bool);

  /**
   * @dev Moves `amount` tokens from `sender` to `recipient` using the
   * allowance mechanism. `amount` is then deducted from the caller's
   * allowance.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);
  
  event TransferData(bytes data);

  /**
   * @dev Emitted when the allowance of a `spender` for an `owner` is set by
   * a call to {approve}. `value` is the new allowance.
   */
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC223Recipient {
    function tokenReceived(address _from, uint _value, bytes calldata _data) external;
}

interface IBridge {
  function owner() external view returns(address);
}

contract ERC223TokenCloned is IERC223 {
  using Address for address;

  mapping (address => uint256) private _balances;

  mapping (address => mapping (address => uint256)) private _allowances;

  uint256 private _totalSupply;
  uint8 private _decimals;
  string private _symbol;
  string private _name;
  address public minter;
  event SetMinter(address previousMinter, address newMinter);
  event Rescued(address to, bytes data);
  
  /**
   * @dev Throws if called by any account other than the minter.
   */
  modifier onlyMinter() {
    require(msg.sender == minter, "Caller is not admin");
    _;
  }

  /**
   * @dev Throws if called by any account other than the bridge owner.
   */
  modifier onlyOwner() {
    require(owner() == msg.sender, "Caller is not bridge owner");
    _;
  }

  // owner is a bridge owner
  function owner() public view returns(address) {
    return IBridge(minter).owner();
  }

  // set minter to bridge contract to avoid initialize this implementation contract
  constructor() {
    //minter = msg.sender; //address(0x9a1fc8C0369D49f3040bF49c1490E7006657ea56);
  }


  // initialize contract. Used instead of constructor in cloned contract
  function initialize(string calldata name_, string calldata symbol_, uint8 decimals_) external {
    require(minter == address(0), "Already Initialized");
    minter = msg.sender;  // set bridge as minter
    emit SetMinter(address(0), minter);
    _name = name_;
    _symbol = symbol_;
    _decimals = decimals_;
  }

/* 
  // allow owner to change minter (bridge)
  function setMinter(address newMinter) external onlyOwner {
    minter = newMinter;
    emit SetMinter(address(0), minter);
  }
*/  
  /**
   * @dev Mint tokens to user in amount of his deposit. Used by bridge to mint wrapped tokens
   * @param user - address of user's wallet
   * @param amount - amount of token to mint (should be equivalent of USDT amount of deposit)
   */
  function mint(address user, uint256 amount) external onlyMinter {
    _mint(user, amount);
  }

  /**
   * @dev Returns the token decimals.
   */
  function decimals() external view override returns (uint8) {
    return _decimals;
  }

  /**
   * @dev Returns the token symbol.
   */
  function symbol() external view override returns (string memory) {
    return _symbol;
  }

  /**
  * @dev Returns the token name.
  */
  function name() external view override returns (string memory) {
    return _name;
  }

  /**
  * @dev Returns the token standard.
  */
  function standard() external pure override returns (string memory) {
    return "erc223";
  }

  /**
   * @dev See {ERC223-totalSupply}.
   */
  function totalSupply() external view override returns (uint256) {
    return _totalSupply;
  }

  /**
   * @dev See {ERC223-balanceOf}.
   */
  function balanceOf(address account) external view override returns (uint256) {
    return _balances[account];
  }

  /**
   * @dev See {ERC223-transfer}.
   *
   * Requirements:
   *
   * - `recipient` cannot be the zero address.
   * - the caller must have a balance of at least `amount`.
   */
  function transfer(address recipient, uint amount) external override returns (bool) {
    bytes memory _empty = hex"00000000";
    _transfer(msg.sender, recipient, amount);
    
    if(recipient.isContract()) {
      IERC223Recipient(recipient).tokenReceived(msg.sender, amount, _empty);
    }
    emit TransferData(_empty);
    return true;
  }
  
  function transfer(address recipient, uint amount, bytes calldata data) external override returns (bool) {
    _transfer(msg.sender, recipient, amount);
    if(recipient.isContract()) {
      IERC223Recipient(recipient).tokenReceived(msg.sender, amount, data);
    }
    emit TransferData(data);
    return true;
  }
  
  /**
   * @dev See {ERC223-allowance}.
   */
  function allowance(address owner, address spender) external view override returns (uint256) {
    return _allowances[owner][spender];
  }

  /**
   * @dev See {ERC223-approve}.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   */
  function approve(address spender, uint256 amount) external override returns (bool) {
    _approve(msg.sender, spender, amount);
    return true;
  }

  /**
   * @dev See {ERC223-transferFrom}.
   *
   * Emits an {Approval} event indicating the updated allowance. This is not
   * required by the EIP. See the note at the beginning of {ERC223};
   *
   * Requirements:
   * - `sender` and `recipient` cannot be the zero address.
   * - `sender` must have a balance of at least `amount`.
   * - the caller must have allowance for `sender`'s tokens of at least
   * `amount`.
   */
  function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) {
    _transfer(sender, recipient, amount);
    require(_allowances[sender][msg.sender] >= amount, "ERC223: transfer amount exceeds allowance");
    _approve(sender, msg.sender, _allowances[sender][msg.sender] - amount);
    return true;
  }

  /**
   * @dev Atomically increases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {ERC223-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   */
  function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
    _approve(msg.sender, spender, _allowances[msg.sender][spender] + addedValue);
    return true;
  }

  /**
   * @dev Atomically decreases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {ERC223-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   * - `spender` must have allowance for the caller of at least
   * `subtractedValue`.
   */
  function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
    uint256 newAllawnce;
    if(_allowances[spender][msg.sender] > subtractedValue) {
      newAllawnce = _allowances[msg.sender][spender] - subtractedValue;
    }
    _approve(msg.sender, spender, newAllawnce);
    return true;
  }

  /**
   * @dev Moves tokens `amount` from `sender` to `recipient`.
   *
   * This is internal function is equivalent to {transfer}, and can be used to
   * e.g. implement automatic token fees, slashing mechanisms, etc.
   *
   * Emits a {Transfer} event.
   *
   * Requirements:
   *
   * - `sender` cannot be the zero address.
   * - `recipient` cannot be the zero address.
   * - `sender` must have a balance of at least `amount`.
   */
  function _transfer(address sender, address recipient, uint256 amount) internal {
    require(sender != address(0), "ERC223: transfer from the zero address");
    require(recipient != address(0), "ERC223: transfer to the zero address");
    require(_balances[sender] >= amount, "ERC223: transfer amount exceeds balance");
    _balances[sender] = _balances[sender] - amount;
    _balances[recipient] = _balances[recipient] + amount;
    emit Transfer(sender, recipient, amount);
  }

  /** @dev Creates `amount` tokens and assigns them to `account`, increasing
   * the total supply.
   *
   * Emits a {Transfer} event with `from` set to the zero address.
   *
   * Requirements
   *
   * - `to` cannot be the zero address.
   */
  function _mint(address account, uint256 amount) internal {
    require(account != address(0), "ERC223: mint to the zero address");

    _totalSupply = _totalSupply + amount;
    _balances[account] = _balances[account] + amount;
    emit Transfer(address(0), account, amount);
  }

  /**
   * @dev Destroys `amount` tokens from `account`, reducing the
   * total supply.
   *
   * Emits a {Transfer} event with `to` set to the zero address.
   *
   * Requirements
   *
   * - `account` cannot be the zero address.
   * - `account` must have at least `amount` tokens.
   */
  function _burn(address account, uint256 amount) internal {
    require(account != address(0), "ERC223: burn from the zero address");
    require(_balances[account] >= amount, "ERC223: burn amount exceeds balance");
    _balances[account] = _balances[account] - amount;
    _totalSupply = _totalSupply - amount;
    emit Transfer(account, address(0), amount);
  }

  /**
   * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
   *
   * This is internal function is equivalent to `approve`, and can be used to
   * e.g. set automatic allowances for certain subsystems, etc.
   *
   * Emits an {Approval} event.
   *
   * Requirements:
   *
   * - `owner` cannot be the zero address.
   * - `spender` cannot be the zero address.
   */
  function _approve(address owner, address spender, uint256 amount) internal {
    require(owner != address(0), "ERC223: approve from the zero address");
    require(spender != address(0), "ERC223: approve to the zero address");

    _allowances[owner][spender] = amount;
    emit Approval(owner, spender, amount);
  }

  /**
   * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
   * from the caller's allowance.
   *
   * See {_burn} and {_approve}.
   */
  function _burnFrom(address account, uint256 amount) internal {
    _burn(account, amount);
    require(_allowances[account][msg.sender] >= amount, "ERC223: transfer amount exceeds allowance");
    _approve(account, msg.sender, _allowances[account][msg.sender] - amount);
  }

  function burnFrom(address account, uint256 amount) external returns(bool) {
    _burnFrom(account, amount);
    return true;
  }

  function burn(uint256 amount) external returns(bool) {
    _burn(msg.sender, amount);
    return true;
  }

  function rescue(address to, bytes calldata data) external onlyOwner {
    (bool success,) = to.call(data);
    require(success, "call failed");
    emit Rescued(to, data);
  }

}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Rescued","inputs":[{"type":"address","name":"to","internalType":"address","indexed":false},{"type":"bytes","name":"data","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"SetMinter","inputs":[{"type":"address","name":"previousMinter","internalType":"address","indexed":false},{"type":"address","name":"newMinter","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TransferData","inputs":[{"type":"bytes","name":"data","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"minter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescue","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"standard","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
              

Contract Creation Code

Verify & Publish
0x608060405234801561001057600080fd5b50611568806100206000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635a3b7e42116100ad578063a457c2d711610071578063a457c2d714610293578063a9059cbb146102a6578063be45fd62146102b9578063c5ecfed7146102cc578063dd62ed3e146102df57600080fd5b80635a3b7e421461022557806370a082311461024757806379cc6790146102705780638da5cb5b1461028357806395d89b411461028b57600080fd5b806323b872dd116100f457806323b872dd146101c4578063313ce567146101d757806339509351146101ec57806340c10f19146101ff57806342966c681461021257600080fd5b806306fdde0314610131578063075461721461014f578063095ea7b31461017a5780631624f6c61461019d57806318160ddd146101b2575b600080fd5b610139610318565b6040516101469190610fc2565b60405180910390f35b600654610162906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b61018d610188366004610ff4565b6103aa565b6040519015158152602001610146565b6101b06101ab366004611069565b6103c1565b005b6002545b604051908152602001610146565b61018d6101d23660046110f3565b61049b565b60035460405160ff9091168152602001610146565b61018d6101fa366004610ff4565b610530565b6101b061020d366004610ff4565b610567565b61018d610220366004611134565b6105c5565b60408051808201909152600681526565726332323360d01b6020820152610139565b6101b661025536600461114d565b6001600160a01b031660009081526020819052604090205490565b61018d61027e366004610ff4565b6105d9565b6101626105e5565b610139610658565b61018d6102a1366004610ff4565b610667565b61018d6102b4366004610ff4565b6106d1565b61018d6102c736600461116a565b6107a8565b6101b06102da3660046111c6565b61086e565b6101b66102ed36600461121b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606005805461032790611254565b80601f016020809104026020016040519081016040528092919081815260200182805461035390611254565b80156103a05780601f10610375576101008083540402835291602001916103a0565b820191906000526020600020905b81548152906001019060200180831161038357829003601f168201915b5050505050905090565b60006103b73384846109ab565b5060015b92915050565b6006546001600160a01b0316156104155760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48125b9a5d1a585b1a5e9959606a1b60448201526064015b60405180910390fd5b600680546001600160a01b03191633908117909155604080516000815260208101929092527fe490d3138e32f1f66ef3971a3c73c7f7704ba0c1d1000f1e2c3df6fc0376610b910160405180910390a160056104728587836112f3565b5060046104808385836112f3565b506003805460ff191660ff9290921691909117905550505050565b60006104a8848484610ad3565b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156104eb5760405162461bcd60e51b815260040161040c906113b4565b6001600160a01b038416600090815260016020908152604080832033808552925290912054610526918691610521908690611413565b6109ab565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103b7918590610521908690611426565b6006546001600160a01b031633146105b75760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b604482015260640161040c565b6105c18282610cb7565b5050565b60006105d13383610d98565b506001919050565b60006103b78383610ef9565b60065460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561062f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106539190611439565b905090565b60606004805461032790611254565b6001600160a01b038216600090815260016020908152604080832033845290915281205481908310156106c6573360009081526001602090815260408083206001600160a01b03881684529091529020546106c3908490611413565b90505b6105263385836109ab565b6040805180820190915260048152600060208201819052906106f4338585610ad3565b6001600160a01b0384163b15610767576040516344a1f60160e11b81526001600160a01b03851690638943ec029061073490339087908690600401611456565b600060405180830381600087803b15801561074e57600080fd5b505af1158015610762573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516107969190610fc2565b60405180910390a15060019392505050565b60006107b5338686610ad3565b6001600160a01b0385163b1561082a576040516344a1f60160e11b81526001600160a01b03861690638943ec02906107f79033908890889088906004016114af565b600060405180830381600087803b15801561081157600080fd5b505af1158015610825573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976838360405161085b9291906114e1565b60405180910390a1506001949350505050565b336108776105e5565b6001600160a01b0316146108cd5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f7420627269646765206f776e6572000000000000604482015260640161040c565b6000836001600160a01b031683836040516108e99291906114fd565b6000604051808303816000865af19150503d8060008114610926576040519150601f19603f3d011682016040523d82523d6000602084013e61092b565b606091505b505090508061096a5760405162461bcd60e51b815260206004820152600b60248201526a18d85b1b0819985a5b195960aa1b604482015260640161040c565b7f013d382154512bdd40cbf8c1b0a0029dcb955c11520eb5d84b169f788711020a84848460405161099d9392919061150d565b60405180910390a150505050565b6001600160a01b038316610a0f5760405162461bcd60e51b815260206004820152602560248201527f4552433232333a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040c565b6001600160a01b038216610a715760405162461bcd60e51b815260206004820152602360248201527f4552433232333a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610b385760405162461bcd60e51b815260206004820152602660248201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b606482015260840161040c565b6001600160a01b038216610b9a5760405162461bcd60e51b8152602060048201526024808201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161040c565b6001600160a01b038316600090815260208190526040902054811115610c125760405162461bcd60e51b815260206004820152602760248201527f4552433232333a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b606482015260840161040c565b6001600160a01b038316600090815260208190526040902054610c36908290611413565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610c66908290611426565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610ac6565b6001600160a01b038216610d0d5760405162461bcd60e51b815260206004820181905260248201527f4552433232333a206d696e7420746f20746865207a65726f2061646472657373604482015260640161040c565b80600254610d1b9190611426565b6002556001600160a01b038216600090815260208190526040902054610d42908290611426565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216610df95760405162461bcd60e51b815260206004820152602260248201527f4552433232333a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054811115610e6d5760405162461bcd60e51b815260206004820152602360248201527f4552433232333a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054610e91908290611413565b6001600160a01b038316600090815260208190526040902055600254610eb8908290611413565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610d8c565b610f038282610d98565b6001600160a01b0382166000908152600160209081526040808320338452909152902054811115610f465760405162461bcd60e51b815260040161040c906113b4565b6001600160a01b0382166000908152600160209081526040808320338085529252909120546105c1918491610521908590611413565b6000815180845260005b81811015610fa257602081850181015186830182015201610f86565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610fd56020830184610f7c565b9392505050565b6001600160a01b0381168114610ff157600080fd5b50565b6000806040838503121561100757600080fd5b823561101281610fdc565b946020939093013593505050565b60008083601f84011261103257600080fd5b50813567ffffffffffffffff81111561104a57600080fd5b60208301915083602082850101111561106257600080fd5b9250929050565b60008060008060006060868803121561108157600080fd5b853567ffffffffffffffff8082111561109957600080fd5b6110a589838a01611020565b909750955060208801359150808211156110be57600080fd5b506110cb88828901611020565b909450925050604086013560ff811681146110e557600080fd5b809150509295509295909350565b60008060006060848603121561110857600080fd5b833561111381610fdc565b9250602084013561112381610fdc565b929592945050506040919091013590565b60006020828403121561114657600080fd5b5035919050565b60006020828403121561115f57600080fd5b8135610fd581610fdc565b6000806000806060858703121561118057600080fd5b843561118b81610fdc565b935060208501359250604085013567ffffffffffffffff8111156111ae57600080fd5b6111ba87828801611020565b95989497509550505050565b6000806000604084860312156111db57600080fd5b83356111e681610fdc565b9250602084013567ffffffffffffffff81111561120257600080fd5b61120e86828701611020565b9497909650939450505050565b6000806040838503121561122e57600080fd5b823561123981610fdc565b9150602083013561124981610fdc565b809150509250929050565b600181811c9082168061126857607f821691505b60208210810361128857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b601f8211156112ee57600081815260208120601f850160051c810160208610156112cb5750805b601f850160051c820191505b818110156112ea578281556001016112d7565b5050505b505050565b67ffffffffffffffff83111561130b5761130b61128e565b61131f836113198354611254565b836112a4565b6000601f841160018114611353576000851561133b5750838201355b600019600387901b1c1916600186901b1783556113ad565b600083815260209020601f19861690835b828110156113845786850135825560209485019460019092019101611364565b50868210156113a15760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208082526029908201527f4552433232333a207472616e7366657220616d6f756e74206578636565647320604082015268616c6c6f77616e636560b81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b818103818111156103bb576103bb6113fd565b808201808211156103bb576103bb6113fd565b60006020828403121561144b57600080fd5b8151610fd581610fdc565b60018060a01b038416815282602082015260606040820152600061147d6060830184610f7c565b95945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03851681528360208201526060604082015260006114d7606083018486611486565b9695505050505050565b6020815260006114f5602083018486611486565b949350505050565b8183823760009101908152919050565b6001600160a01b038416815260406020820181905260009061147d908301848661148656fea26469706673582212204b21f2e5ebc3d751c12cff14f384a11307869cfc6cce54cb77a3a98ba8a2039264736f6c63430008120033

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635a3b7e42116100ad578063a457c2d711610071578063a457c2d714610293578063a9059cbb146102a6578063be45fd62146102b9578063c5ecfed7146102cc578063dd62ed3e146102df57600080fd5b80635a3b7e421461022557806370a082311461024757806379cc6790146102705780638da5cb5b1461028357806395d89b411461028b57600080fd5b806323b872dd116100f457806323b872dd146101c4578063313ce567146101d757806339509351146101ec57806340c10f19146101ff57806342966c681461021257600080fd5b806306fdde0314610131578063075461721461014f578063095ea7b31461017a5780631624f6c61461019d57806318160ddd146101b2575b600080fd5b610139610318565b6040516101469190610fc2565b60405180910390f35b600654610162906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b61018d610188366004610ff4565b6103aa565b6040519015158152602001610146565b6101b06101ab366004611069565b6103c1565b005b6002545b604051908152602001610146565b61018d6101d23660046110f3565b61049b565b60035460405160ff9091168152602001610146565b61018d6101fa366004610ff4565b610530565b6101b061020d366004610ff4565b610567565b61018d610220366004611134565b6105c5565b60408051808201909152600681526565726332323360d01b6020820152610139565b6101b661025536600461114d565b6001600160a01b031660009081526020819052604090205490565b61018d61027e366004610ff4565b6105d9565b6101626105e5565b610139610658565b61018d6102a1366004610ff4565b610667565b61018d6102b4366004610ff4565b6106d1565b61018d6102c736600461116a565b6107a8565b6101b06102da3660046111c6565b61086e565b6101b66102ed36600461121b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606005805461032790611254565b80601f016020809104026020016040519081016040528092919081815260200182805461035390611254565b80156103a05780601f10610375576101008083540402835291602001916103a0565b820191906000526020600020905b81548152906001019060200180831161038357829003601f168201915b5050505050905090565b60006103b73384846109ab565b5060015b92915050565b6006546001600160a01b0316156104155760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48125b9a5d1a585b1a5e9959606a1b60448201526064015b60405180910390fd5b600680546001600160a01b03191633908117909155604080516000815260208101929092527fe490d3138e32f1f66ef3971a3c73c7f7704ba0c1d1000f1e2c3df6fc0376610b910160405180910390a160056104728587836112f3565b5060046104808385836112f3565b506003805460ff191660ff9290921691909117905550505050565b60006104a8848484610ad3565b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156104eb5760405162461bcd60e51b815260040161040c906113b4565b6001600160a01b038416600090815260016020908152604080832033808552925290912054610526918691610521908690611413565b6109ab565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103b7918590610521908690611426565b6006546001600160a01b031633146105b75760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b604482015260640161040c565b6105c18282610cb7565b5050565b60006105d13383610d98565b506001919050565b60006103b78383610ef9565b60065460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561062f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106539190611439565b905090565b60606004805461032790611254565b6001600160a01b038216600090815260016020908152604080832033845290915281205481908310156106c6573360009081526001602090815260408083206001600160a01b03881684529091529020546106c3908490611413565b90505b6105263385836109ab565b6040805180820190915260048152600060208201819052906106f4338585610ad3565b6001600160a01b0384163b15610767576040516344a1f60160e11b81526001600160a01b03851690638943ec029061073490339087908690600401611456565b600060405180830381600087803b15801561074e57600080fd5b505af1158015610762573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516107969190610fc2565b60405180910390a15060019392505050565b60006107b5338686610ad3565b6001600160a01b0385163b1561082a576040516344a1f60160e11b81526001600160a01b03861690638943ec02906107f79033908890889088906004016114af565b600060405180830381600087803b15801561081157600080fd5b505af1158015610825573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976838360405161085b9291906114e1565b60405180910390a1506001949350505050565b336108776105e5565b6001600160a01b0316146108cd5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f7420627269646765206f776e6572000000000000604482015260640161040c565b6000836001600160a01b031683836040516108e99291906114fd565b6000604051808303816000865af19150503d8060008114610926576040519150601f19603f3d011682016040523d82523d6000602084013e61092b565b606091505b505090508061096a5760405162461bcd60e51b815260206004820152600b60248201526a18d85b1b0819985a5b195960aa1b604482015260640161040c565b7f013d382154512bdd40cbf8c1b0a0029dcb955c11520eb5d84b169f788711020a84848460405161099d9392919061150d565b60405180910390a150505050565b6001600160a01b038316610a0f5760405162461bcd60e51b815260206004820152602560248201527f4552433232333a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040c565b6001600160a01b038216610a715760405162461bcd60e51b815260206004820152602360248201527f4552433232333a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610b385760405162461bcd60e51b815260206004820152602660248201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b606482015260840161040c565b6001600160a01b038216610b9a5760405162461bcd60e51b8152602060048201526024808201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161040c565b6001600160a01b038316600090815260208190526040902054811115610c125760405162461bcd60e51b815260206004820152602760248201527f4552433232333a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b606482015260840161040c565b6001600160a01b038316600090815260208190526040902054610c36908290611413565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610c66908290611426565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610ac6565b6001600160a01b038216610d0d5760405162461bcd60e51b815260206004820181905260248201527f4552433232333a206d696e7420746f20746865207a65726f2061646472657373604482015260640161040c565b80600254610d1b9190611426565b6002556001600160a01b038216600090815260208190526040902054610d42908290611426565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216610df95760405162461bcd60e51b815260206004820152602260248201527f4552433232333a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054811115610e6d5760405162461bcd60e51b815260206004820152602360248201527f4552433232333a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054610e91908290611413565b6001600160a01b038316600090815260208190526040902055600254610eb8908290611413565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610d8c565b610f038282610d98565b6001600160a01b0382166000908152600160209081526040808320338452909152902054811115610f465760405162461bcd60e51b815260040161040c906113b4565b6001600160a01b0382166000908152600160209081526040808320338085529252909120546105c1918491610521908590611413565b6000815180845260005b81811015610fa257602081850181015186830182015201610f86565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610fd56020830184610f7c565b9392505050565b6001600160a01b0381168114610ff157600080fd5b50565b6000806040838503121561100757600080fd5b823561101281610fdc565b946020939093013593505050565b60008083601f84011261103257600080fd5b50813567ffffffffffffffff81111561104a57600080fd5b60208301915083602082850101111561106257600080fd5b9250929050565b60008060008060006060868803121561108157600080fd5b853567ffffffffffffffff8082111561109957600080fd5b6110a589838a01611020565b909750955060208801359150808211156110be57600080fd5b506110cb88828901611020565b909450925050604086013560ff811681146110e557600080fd5b809150509295509295909350565b60008060006060848603121561110857600080fd5b833561111381610fdc565b9250602084013561112381610fdc565b929592945050506040919091013590565b60006020828403121561114657600080fd5b5035919050565b60006020828403121561115f57600080fd5b8135610fd581610fdc565b6000806000806060858703121561118057600080fd5b843561118b81610fdc565b935060208501359250604085013567ffffffffffffffff8111156111ae57600080fd5b6111ba87828801611020565b95989497509550505050565b6000806000604084860312156111db57600080fd5b83356111e681610fdc565b9250602084013567ffffffffffffffff81111561120257600080fd5b61120e86828701611020565b9497909650939450505050565b6000806040838503121561122e57600080fd5b823561123981610fdc565b9150602083013561124981610fdc565b809150509250929050565b600181811c9082168061126857607f821691505b60208210810361128857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b601f8211156112ee57600081815260208120601f850160051c810160208610156112cb5750805b601f850160051c820191505b818110156112ea578281556001016112d7565b5050505b505050565b67ffffffffffffffff83111561130b5761130b61128e565b61131f836113198354611254565b836112a4565b6000601f841160018114611353576000851561133b5750838201355b600019600387901b1c1916600186901b1783556113ad565b600083815260209020601f19861690835b828110156113845786850135825560209485019460019092019101611364565b50868210156113a15760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208082526029908201527f4552433232333a207472616e7366657220616d6f756e74206578636565647320604082015268616c6c6f77616e636560b81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b818103818111156103bb576103bb6113fd565b808201808211156103bb576103bb6113fd565b60006020828403121561144b57600080fd5b8151610fd581610fdc565b60018060a01b038416815282602082015260606040820152600061147d6060830184610f7c565b95945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03851681528360208201526060604082015260006114d7606083018486611486565b9695505050505050565b6020815260006114f5602083018486611486565b949350505050565b8183823760009101908152919050565b6001600160a01b038416815260406020820181905260009061147d908301848661148656fea26469706673582212204b21f2e5ebc3d751c12cff14f384a11307869cfc6cce54cb77a3a98ba8a2039264736f6c63430008120033