false
false
0

Contract Address Details

0x626B2C7a9147d0D10A9EF6395667e6b01d193E38

Contract Name
CLOE_ERC223
Creator
0xb7971f–a51f91 at 0xa8604f–0f99a7
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
16285732
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
CLOE_ERC223




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




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:25:16.503687Z

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;
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 *
 * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/ownership/Ownable.sol
 * This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts
 * when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the
 * build/artifacts folder) as well as the vanilla Ownable implementation from an openzeppelin version.
 */
contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor () {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @return the address of the owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(),"Not Owner");
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0),"Zero address not allowed");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract CLOE_ERC223 is Ownable, IERC223 {
  using Address for address;

  mapping (address => uint256) private _balances;

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

  uint256 private _totalSupply;
  uint8 public constant decimals = 18;
  string public constant symbol = "CLOE";
  string public constant name = "Callisto Enterprise Token";
  event SetMinter(address previousMinter, address newMinter);
  event Rescued(address to, bytes data);
  

  /**
   * @dev Migrate from old version of token to this one
   * @param amount - amount of token to migrate 
   */
  function migrate(uint256 amount) external {
    CLOE_ERC223 oldCLOE = CLOE_ERC223(0x1eAa43544dAa399b87EEcFcC6Fa579D5ea4A6187);
    oldCLOE.burnFrom(msg.sender, amount);
    _mint(msg.sender, amount);
  }

  /**
   * @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
   */
  function mint(address user, uint256 amount) external onlyOwner {
    _mint(user, amount);
  }


  /**
  * @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":"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":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"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":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOwner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"migrate","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"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":"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":"renounceOwnership","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"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x608060405234801561001057600080fd5b50600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36113c58061005f6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063a457c2d71161007c578063a457c2d714610300578063a9059cbb14610313578063be45fd6214610326578063c5ecfed714610339578063dd62ed3e1461034c578063f2fde38b1461038557600080fd5b8063715018a61461029457806379cc67901461029c5780638da5cb5b146102af5780638f32d59b146102ca57806395d89b41146102dd57600080fd5b8063395093511161010a57806339509351146101fb57806340c10f191461020e57806342966c6814610223578063454b0608146102365780635a3b7e421461024957806370a082311461026b57600080fd5b806306fdde0314610147578063095ea7b31461019957806318160ddd146101bc57806323b872dd146101ce578063313ce567146101e1575b600080fd5b6101836040518060400160405280601981526020017f43616c6c6973746f20456e746572707269736520546f6b656e0000000000000081525081565b6040516101909190610ff0565b60405180910390f35b6101ac6101a7366004611026565b610398565b6040519015158152602001610190565b6003545b604051908152602001610190565b6101ac6101dc366004611050565b6103af565b6101e9601281565b60405160ff9091168152602001610190565b6101ac610209366004611026565b61044d565b61022161021c366004611026565b610484565b005b6101ac61023136600461108c565b6104bc565b61022161024436600461108c565b6104d0565b60408051808201909152600681526565726332323360d01b6020820152610183565b6101c06102793660046110a5565b6001600160a01b031660009081526001602052604090205490565b610221610559565b6101ac6102aa366004611026565b6105cd565b6000546040516001600160a01b039091168152602001610190565b6000546001600160a01b031633146101ac565b61018360405180604001604052806004815260200163434c4f4560e01b81525081565b6101ac61030e366004611026565b6105d9565b6101ac610321366004611026565b610643565b6101ac610334366004611109565b61071a565b610221610347366004611163565b6107e0565b6101c061035a3660046111b6565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102216103933660046110a5565b6108e8565b60006103a533848461091e565b5060015b92915050565b60006103bc848484610a46565b6001600160a01b03841660009081526002602090815260408083203384529091529020548211156104085760405162461bcd60e51b81526004016103ff906111e9565b60405180910390fd5b6001600160a01b03841660009081526002602090815260408083203380855292529091205461044391869161043e908690611248565b61091e565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916103a591859061043e90869061125b565b6000546001600160a01b031633146104ae5760405162461bcd60e51b81526004016103ff9061126e565b6104b88282610c2d565b5050565b60006104c83383610d15565b506001919050565b60405163079cc67960e41b815233600482015260248101829052731eaa43544daa399b87eecfcc6fa579d5ea4a61879081906379cc6790906044016020604051808303816000875af115801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190611291565b506104b83383610c2d565b6000546001600160a01b031633146105835760405162461bcd60e51b81526004016103ff9061126e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006103a58383610e76565b6001600160a01b03821660009081526002602090815260408083203384529091528120548190831015610638573360009081526002602090815260408083206001600160a01b0388168452909152902054610635908490611248565b90505b61044333858361091e565b604080518082019091526004815260006020820181905290610666338585610a46565b6001600160a01b0384163b156106d9576040516344a1f60160e11b81526001600160a01b03851690638943ec02906106a6903390879086906004016112b3565b600060405180830381600087803b1580156106c057600080fd5b505af11580156106d4573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516107089190610ff0565b60405180910390a15060019392505050565b6000610727338686610a46565b6001600160a01b0385163b1561079c576040516344a1f60160e11b81526001600160a01b03861690638943ec029061076990339088908890889060040161130c565b600060405180830381600087803b15801561078357600080fd5b505af1158015610797573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad97683836040516107cd92919061133e565b60405180910390a1506001949350505050565b6000546001600160a01b0316331461080a5760405162461bcd60e51b81526004016103ff9061126e565b6000836001600160a01b0316838360405161082692919061135a565b6000604051808303816000865af19150503d8060008114610863576040519150601f19603f3d011682016040523d82523d6000602084013e610868565b606091505b50509050806108a75760405162461bcd60e51b815260206004820152600b60248201526a18d85b1b0819985a5b195960aa1b60448201526064016103ff565b7f013d382154512bdd40cbf8c1b0a0029dcb955c11520eb5d84b169f788711020a8484846040516108da9392919061136a565b60405180910390a150505050565b6000546001600160a01b031633146109125760405162461bcd60e51b81526004016103ff9061126e565b61091b81610ef9565b50565b6001600160a01b0383166109825760405162461bcd60e51b815260206004820152602560248201527f4552433232333a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103ff565b6001600160a01b0382166109e45760405162461bcd60e51b815260206004820152602360248201527f4552433232333a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103ff565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610aab5760405162461bcd60e51b815260206004820152602660248201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103ff565b6001600160a01b038216610b0d5760405162461bcd60e51b8152602060048201526024808201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103ff565b6001600160a01b038316600090815260016020526040902054811115610b855760405162461bcd60e51b815260206004820152602760248201527f4552433232333a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103ff565b6001600160a01b038316600090815260016020526040902054610ba9908290611248565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610bd990829061125b565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a399085815260200190565b6001600160a01b038216610c835760405162461bcd60e51b815260206004820181905260248201527f4552433232333a206d696e7420746f20746865207a65726f206164647265737360448201526064016103ff565b80600354610c91919061125b565b6003556001600160a01b038216600090815260016020526040902054610cb890829061125b565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610d099085815260200190565b60405180910390a35050565b6001600160a01b038216610d765760405162461bcd60e51b815260206004820152602260248201527f4552433232333a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103ff565b6001600160a01b038216600090815260016020526040902054811115610dea5760405162461bcd60e51b815260206004820152602360248201527f4552433232333a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103ff565b6001600160a01b038216600090815260016020526040902054610e0e908290611248565b6001600160a01b038316600090815260016020526040902055600354610e35908290611248565b6003556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610d09565b610e808282610d15565b6001600160a01b0382166000908152600260209081526040808320338452909152902054811115610ec35760405162461bcd60e51b81526004016103ff906111e9565b6001600160a01b0382166000908152600260209081526040808320338085529252909120546104b891849161043e908590611248565b6001600160a01b038116610f4f5760405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f776564000000000000000060448201526064016103ff565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000815180845260005b81811015610fd057602081850181015186830182015201610fb4565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006110036020830184610faa565b9392505050565b80356001600160a01b038116811461102157600080fd5b919050565b6000806040838503121561103957600080fd5b6110428361100a565b946020939093013593505050565b60008060006060848603121561106557600080fd5b61106e8461100a565b925061107c6020850161100a565b9150604084013590509250925092565b60006020828403121561109e57600080fd5b5035919050565b6000602082840312156110b757600080fd5b6110038261100a565b60008083601f8401126110d257600080fd5b50813567ffffffffffffffff8111156110ea57600080fd5b60208301915083602082850101111561110257600080fd5b9250929050565b6000806000806060858703121561111f57600080fd5b6111288561100a565b935060208501359250604085013567ffffffffffffffff81111561114b57600080fd5b611157878288016110c0565b95989497509550505050565b60008060006040848603121561117857600080fd5b6111818461100a565b9250602084013567ffffffffffffffff81111561119d57600080fd5b6111a9868287016110c0565b9497909650939450505050565b600080604083850312156111c957600080fd5b6111d28361100a565b91506111e06020840161100a565b90509250929050565b60208082526029908201527f4552433232333a207472616e7366657220616d6f756e74206578636565647320604082015268616c6c6f77616e636560b81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a9576103a9611232565b808201808211156103a9576103a9611232565b6020808252600990820152682737ba1027bbb732b960b91b604082015260600190565b6000602082840312156112a357600080fd5b8151801515811461100357600080fd5b60018060a01b03841681528260208201526060604082015260006112da6060830184610faa565b95945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03851681528360208201526060604082015260006113346060830184866112e3565b9695505050505050565b6020815260006113526020830184866112e3565b949350505050565b8183823760009101908152919050565b6001600160a01b03841681526040602082018190526000906112da90830184866112e356fea2646970667358221220fd08429494def3ecdc288d541229d291ead3e0d200c84368243bfb6e7c10a66664736f6c63430008120033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063a457c2d71161007c578063a457c2d714610300578063a9059cbb14610313578063be45fd6214610326578063c5ecfed714610339578063dd62ed3e1461034c578063f2fde38b1461038557600080fd5b8063715018a61461029457806379cc67901461029c5780638da5cb5b146102af5780638f32d59b146102ca57806395d89b41146102dd57600080fd5b8063395093511161010a57806339509351146101fb57806340c10f191461020e57806342966c6814610223578063454b0608146102365780635a3b7e421461024957806370a082311461026b57600080fd5b806306fdde0314610147578063095ea7b31461019957806318160ddd146101bc57806323b872dd146101ce578063313ce567146101e1575b600080fd5b6101836040518060400160405280601981526020017f43616c6c6973746f20456e746572707269736520546f6b656e0000000000000081525081565b6040516101909190610ff0565b60405180910390f35b6101ac6101a7366004611026565b610398565b6040519015158152602001610190565b6003545b604051908152602001610190565b6101ac6101dc366004611050565b6103af565b6101e9601281565b60405160ff9091168152602001610190565b6101ac610209366004611026565b61044d565b61022161021c366004611026565b610484565b005b6101ac61023136600461108c565b6104bc565b61022161024436600461108c565b6104d0565b60408051808201909152600681526565726332323360d01b6020820152610183565b6101c06102793660046110a5565b6001600160a01b031660009081526001602052604090205490565b610221610559565b6101ac6102aa366004611026565b6105cd565b6000546040516001600160a01b039091168152602001610190565b6000546001600160a01b031633146101ac565b61018360405180604001604052806004815260200163434c4f4560e01b81525081565b6101ac61030e366004611026565b6105d9565b6101ac610321366004611026565b610643565b6101ac610334366004611109565b61071a565b610221610347366004611163565b6107e0565b6101c061035a3660046111b6565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102216103933660046110a5565b6108e8565b60006103a533848461091e565b5060015b92915050565b60006103bc848484610a46565b6001600160a01b03841660009081526002602090815260408083203384529091529020548211156104085760405162461bcd60e51b81526004016103ff906111e9565b60405180910390fd5b6001600160a01b03841660009081526002602090815260408083203380855292529091205461044391869161043e908690611248565b61091e565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916103a591859061043e90869061125b565b6000546001600160a01b031633146104ae5760405162461bcd60e51b81526004016103ff9061126e565b6104b88282610c2d565b5050565b60006104c83383610d15565b506001919050565b60405163079cc67960e41b815233600482015260248101829052731eaa43544daa399b87eecfcc6fa579d5ea4a61879081906379cc6790906044016020604051808303816000875af115801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190611291565b506104b83383610c2d565b6000546001600160a01b031633146105835760405162461bcd60e51b81526004016103ff9061126e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006103a58383610e76565b6001600160a01b03821660009081526002602090815260408083203384529091528120548190831015610638573360009081526002602090815260408083206001600160a01b0388168452909152902054610635908490611248565b90505b61044333858361091e565b604080518082019091526004815260006020820181905290610666338585610a46565b6001600160a01b0384163b156106d9576040516344a1f60160e11b81526001600160a01b03851690638943ec02906106a6903390879086906004016112b3565b600060405180830381600087803b1580156106c057600080fd5b505af11580156106d4573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516107089190610ff0565b60405180910390a15060019392505050565b6000610727338686610a46565b6001600160a01b0385163b1561079c576040516344a1f60160e11b81526001600160a01b03861690638943ec029061076990339088908890889060040161130c565b600060405180830381600087803b15801561078357600080fd5b505af1158015610797573d6000803e3d6000fd5b505050505b7f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad97683836040516107cd92919061133e565b60405180910390a1506001949350505050565b6000546001600160a01b0316331461080a5760405162461bcd60e51b81526004016103ff9061126e565b6000836001600160a01b0316838360405161082692919061135a565b6000604051808303816000865af19150503d8060008114610863576040519150601f19603f3d011682016040523d82523d6000602084013e610868565b606091505b50509050806108a75760405162461bcd60e51b815260206004820152600b60248201526a18d85b1b0819985a5b195960aa1b60448201526064016103ff565b7f013d382154512bdd40cbf8c1b0a0029dcb955c11520eb5d84b169f788711020a8484846040516108da9392919061136a565b60405180910390a150505050565b6000546001600160a01b031633146109125760405162461bcd60e51b81526004016103ff9061126e565b61091b81610ef9565b50565b6001600160a01b0383166109825760405162461bcd60e51b815260206004820152602560248201527f4552433232333a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103ff565b6001600160a01b0382166109e45760405162461bcd60e51b815260206004820152602360248201527f4552433232333a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103ff565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610aab5760405162461bcd60e51b815260206004820152602660248201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103ff565b6001600160a01b038216610b0d5760405162461bcd60e51b8152602060048201526024808201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103ff565b6001600160a01b038316600090815260016020526040902054811115610b855760405162461bcd60e51b815260206004820152602760248201527f4552433232333a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103ff565b6001600160a01b038316600090815260016020526040902054610ba9908290611248565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610bd990829061125b565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a399085815260200190565b6001600160a01b038216610c835760405162461bcd60e51b815260206004820181905260248201527f4552433232333a206d696e7420746f20746865207a65726f206164647265737360448201526064016103ff565b80600354610c91919061125b565b6003556001600160a01b038216600090815260016020526040902054610cb890829061125b565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610d099085815260200190565b60405180910390a35050565b6001600160a01b038216610d765760405162461bcd60e51b815260206004820152602260248201527f4552433232333a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103ff565b6001600160a01b038216600090815260016020526040902054811115610dea5760405162461bcd60e51b815260206004820152602360248201527f4552433232333a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103ff565b6001600160a01b038216600090815260016020526040902054610e0e908290611248565b6001600160a01b038316600090815260016020526040902055600354610e35908290611248565b6003556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610d09565b610e808282610d15565b6001600160a01b0382166000908152600260209081526040808320338452909152902054811115610ec35760405162461bcd60e51b81526004016103ff906111e9565b6001600160a01b0382166000908152600260209081526040808320338085529252909120546104b891849161043e908590611248565b6001600160a01b038116610f4f5760405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f776564000000000000000060448201526064016103ff565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000815180845260005b81811015610fd057602081850181015186830182015201610fb4565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006110036020830184610faa565b9392505050565b80356001600160a01b038116811461102157600080fd5b919050565b6000806040838503121561103957600080fd5b6110428361100a565b946020939093013593505050565b60008060006060848603121561106557600080fd5b61106e8461100a565b925061107c6020850161100a565b9150604084013590509250925092565b60006020828403121561109e57600080fd5b5035919050565b6000602082840312156110b757600080fd5b6110038261100a565b60008083601f8401126110d257600080fd5b50813567ffffffffffffffff8111156110ea57600080fd5b60208301915083602082850101111561110257600080fd5b9250929050565b6000806000806060858703121561111f57600080fd5b6111288561100a565b935060208501359250604085013567ffffffffffffffff81111561114b57600080fd5b611157878288016110c0565b95989497509550505050565b60008060006040848603121561117857600080fd5b6111818461100a565b9250602084013567ffffffffffffffff81111561119d57600080fd5b6111a9868287016110c0565b9497909650939450505050565b600080604083850312156111c957600080fd5b6111d28361100a565b91506111e06020840161100a565b90509250929050565b60208082526029908201527f4552433232333a207472616e7366657220616d6f756e74206578636565647320604082015268616c6c6f77616e636560b81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a9576103a9611232565b808201808211156103a9576103a9611232565b6020808252600990820152682737ba1027bbb732b960b91b604082015260600190565b6000602082840312156112a357600080fd5b8151801515811461100357600080fd5b60018060a01b03841681528260208201526060604082015260006112da6060830184610faa565b95945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b03851681528360208201526060604082015260006113346060830184866112e3565b9695505050505050565b6020815260006113526020830184866112e3565b949350505050565b8183823760009101908152919050565b6001600160a01b03841681526040602082018190526000906112da90830184866112e356fea2646970667358221220fd08429494def3ecdc288d541229d291ead3e0d200c84368243bfb6e7c10a66664736f6c63430008120033