false
false
0

Contract Address Details

0x8Be89CeE33e065072A753b240F9D694b373E289A

Contract Name
ICO
Creator
0xc7d98c–7f3521 at 0x06465d–27abc2
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
16289170
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
ICO




Optimization enabled
true
Compiler version
v0.8.19+commit.7dd6d404




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:32:09.941536Z

Constructor Arguments

0x000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000ec038badb02ab74f66f7892badd93ddcb7987f9b

Arg [0] (address) : 0xe1a77164e5c6d9e0fc0b23d11e0874de6b328e68
Arg [1] (address) : 0xec038badb02ab74f66f7892badd93ddcb7987f9b

              

Contract source code

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function decimals() external view returns (uint8);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
}

interface IVesting {
    function allocateTokens(
        address to, // beneficiary of tokens
        uint256 amount, // amount of token
        uint256 unlockPercentage,   // percentage of initially unlocked token
        uint256 finishVesting,       // Timestamp (unix time) when starts vesting. First vesting will be at this time
        uint256 cliffPercentage,  // percentage of tokens will be unlocked every interval (i.e. 10% per 30 days)
        uint256 cliffInterval     // interval (in seconds) of vesting (i.e. 30 days)
    ) external;
}

contract ICO is Ownable {
    address public ICOtoken;    // ICO token and receiving token must have 18 decimals
    address public vestingContract; 
    address public paymentToken = 0x7873d09AF3d6965988831C60c7D38DBbd2eAEAB0; // test4 //0xbf6c50889d3a620eb42C0F188b65aDe90De958c4; //BUSDT

    uint256 public unlockPercentage = 50; // percentage of initially unlocked token
    uint256 public vestingPeriod = 60 minutes;//days;    // vesting period (in seconds)
    uint256 public cliffPercentage = 15;        // percentage of locked tokens will be unlocked every interval (i.e. 10% per 30 days)
    uint256 public cliffInterval = 30 minutes; //days;     // interval (in seconds) of vesting (i.e. 30 days)
    uint256 public startDate = 1707483000;

    struct Round {
        uint256 amount;     // amount of tokens to sell in this round
        uint128 price;      // price per token (in payTokens value)
        uint128 roundStarts; // timestamp when round starts
        uint256 totalSold;  // amount of tokens sold 
        uint256 totalReceived;  // total payments received in round
    }

    Round[] public rounds;  // starts from round 1
    uint256 public currentRound;
    bool public isPause;

    event BuyToken(uint256 round, uint256 amountToPay, uint256 amountToBuy);
    event RoundEnds(uint256 round, uint256 timestamp, uint256 lastSoldAmount);

    constructor (address _ICOtoken, address _vestingContract) {
        rounds.push();  // starts from round 1
        ICOtoken = _ICOtoken;
        vestingContract = _vestingContract;
    }

    modifier checkRound() {
        require(currentRound < rounds.length, "ICO finished");
        require(block.timestamp >= startDate, "ICO is not started yet");
        require(!isPause, "ICO is paused");
        _;
    }

    // Buy ICO tokens
    function buyToken(
        uint256 amountToBuy,    // amount of token to buy
        address buyer           // buyer address
    ) public checkRound {
        require(buyer != address(0), "Incorrect buyer");
        uint256 _currentRound = currentRound;   // use local variable to save gas
        Round storage r = rounds[_currentRound];
        if(r.roundStarts == 0) {
            if(_currentRound == 0) r.roundStarts = uint128(startDate);
            else r.roundStarts = uint128(block.timestamp);
        }

        if(r.totalSold + amountToBuy >= r.amount) {
            amountToBuy = r.amount - r.totalSold;
            currentRound++;
            emit RoundEnds(_currentRound, block.timestamp, amountToBuy);
        }

        uint256 amountToPay = amountToBuy * r.price / 1e18;
        safeTransferFrom(paymentToken, msg.sender, owner(), amountToPay);
        // set vesting
        uint256 finishVesting = block.timestamp + vestingPeriod;    //r.roundStarts
        uint256 unlockedAmount = amountToBuy * unlockPercentage / 100;
        uint256 lockedAmount = amountToBuy - unlockedAmount;
        if (lockedAmount != 0) {
            safeTransfer(ICOtoken, vestingContract, lockedAmount);
            IVesting(vestingContract).allocateTokens(buyer, lockedAmount, 0, finishVesting, cliffPercentage, cliffInterval);
        }
        safeTransfer(ICOtoken, buyer, unlockedAmount);
        emit BuyToken(_currentRound, amountToPay, amountToBuy);
    }

    function addRound(
        uint256 amount,     // amount of tokens to sell in this round
        uint128 price       // price per token (in USD with 18 decimals)     
    ) external onlyOwner {
        rounds.push(Round(amount, price, 0, 0, 0));
    }

    function changRound(
        uint256 roundId,    // round to change
        uint256 amount,     // amount of tokens to sell in this round
        uint128 price       // price per token (in USD with 18 decimals) 
    ) external onlyOwner {
        require(roundId > 0 && roundId < rounds.length, "wrong round id");
        rounds[roundId].amount = amount;
        rounds[roundId].price = price;
    }

    function setPause(bool pause) external onlyOwner {
        isPause = pause;
    }

    function setStartDate(uint256 _startDate) external onlyOwner {
        startDate = _startDate;
    }

    function setVesting(
        address _vestingContract,  // address of vesting contract
        uint256 _unlockPercentage, // percentage of initially unlocked token
        uint256 _vestingPeriod,    // vesting period (in seconds)
        uint256 _cliffPercentage,  // percentage of locked tokens will be unlocked every interval (i.e. 10% per 30 days)
        uint256 _cliffInterval     // interval (in seconds) of vesting (i.e. 30 days)
    ) external onlyOwner {
        vestingContract = _vestingContract;
        unlockPercentage = _unlockPercentage;
        vestingPeriod = _vestingPeriod;
        cliffPercentage = _cliffPercentage;
        cliffInterval = _cliffInterval;
    }

    // allow to receive ERC223 tokens
    function tokenReceived(address, uint256, bytes memory) external virtual returns(bytes4) {
        return this.tokenReceived.selector;
    }

    event Rescue(address _token, uint256 _amount);
    function rescueTokens(address _token) onlyOwner external {
        uint256 amount;
        if (_token == address(0)) {
            amount = address(this).balance;
            safeTransferCLO(msg.sender, amount);
        } else {
            amount = IERC20(_token).balanceOf(address(this));
            safeTransfer(_token, msg.sender, amount);
        }
        emit Rescue(_token, amount);
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferCLO(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: CLO_TRANSFER_FAILED');
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_ICOtoken","internalType":"address"},{"type":"address","name":"_vestingContract","internalType":"address"}]},{"type":"event","name":"BuyToken","inputs":[{"type":"uint256","name":"round","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountToPay","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountToBuy","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":"Rescue","inputs":[{"type":"address","name":"_token","internalType":"address","indexed":false},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoundEnds","inputs":[{"type":"uint256","name":"round","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false},{"type":"uint256","name":"lastSoldAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ICOtoken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addRound","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint128","name":"price","internalType":"uint128"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"buyToken","inputs":[{"type":"uint256","name":"amountToBuy","internalType":"uint256"},{"type":"address","name":"buyer","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changRound","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint128","name":"price","internalType":"uint128"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cliffInterval","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cliffPercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentRound","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"paymentToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueTokens","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint128","name":"price","internalType":"uint128"},{"type":"uint128","name":"roundStarts","internalType":"uint128"},{"type":"uint256","name":"totalSold","internalType":"uint256"},{"type":"uint256","name":"totalReceived","internalType":"uint256"}],"name":"rounds","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPause","inputs":[{"type":"bool","name":"pause","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStartDate","inputs":[{"type":"uint256","name":"_startDate","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setVesting","inputs":[{"type":"address","name":"_vestingContract","internalType":"address"},{"type":"uint256","name":"_unlockPercentage","internalType":"uint256"},{"type":"uint256","name":"_vestingPeriod","internalType":"uint256"},{"type":"uint256","name":"_cliffPercentage","internalType":"uint256"},{"type":"uint256","name":"_cliffInterval","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startDate","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"tokenReceived","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"unlockPercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"vestingContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"vestingPeriod","inputs":[]}]
              

Contract Creation Code

Verify & Publish
0x6080604052600380546001600160a01b031916737873d09af3d6965988831c60c7d38dbbd2eaeab01790556032600455610e10600555600f6006556107086007556365c61f7860085534801561005457600080fd5b5060405161149b38038061149b8339810160408190526100739161010e565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600980546001908101825560009190915280546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610141565b80516001600160a01b038116811461010957600080fd5b919050565b6000806040838503121561012157600080fd5b61012a836100f2565b9150610138602084016100f2565b90509250929050565b61134b806101506000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610faa565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610fcc565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e61020236600461100e565b6104a3565b61022461021536600461103d565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b61025961025436600461100e565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac366004611108565b61052f565b61014e6102bf36600461114b565b610905565b61014e6102d236600461117f565b610a32565b61014e6102e5366004610faa565b610a7e565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e61031536600461119c565b610b77565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b8152600401610353906111d1565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610c75565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611206565b90506103f2823383610d43565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b8152600401610353906111d1565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b8152600401610353906111d1565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a5490506000600982815481106106635761066361121f565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061124b565b1061075d57600281015481546107059190611264565b600a8054919550600061071783611277565b9091555050604080518381524260208201529081018590527fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b89060600160405180910390a15b6001810154600090670de0b6b3a764000090610782906001600160801b031687611290565b61078c91906112a7565b6003549091506107b8906001600160a01b0316336107b26000546001600160a01b031690565b84610e5e565b6000600554426107c8919061124b565b905060006064600454886107dc9190611290565b6107e691906112a7565b905060006107f48289611264565b905080156108a357600154600254610819916001600160a01b03908116911683610d43565b6002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b15801561088a57600080fd5b505af115801561089e573d6000803e3d6000fd5b505050505b6001546108ba906001600160a01b03168884610d43565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b336109186000546001600160a01b031690565b6001600160a01b03161461093e5760405162461bcd60e51b8152600401610353906111d1565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a456000546001600160a01b031690565b6001600160a01b031614610a6b5760405162461bcd60e51b8152600401610353906111d1565b600b805460ff1916911515919091179055565b33610a916000546001600160a01b031690565b6001600160a01b031614610ab75760405162461bcd60e51b8152600401610353906111d1565b6001600160a01b038116610b1c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610b8a6000546001600160a01b031690565b6001600160a01b031614610bb05760405162461bcd60e51b8152600401610353906111d1565b600083118015610bc1575060095483105b610bfe5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c1257610c1261121f565b9060005260206000209060040201600001819055508060098481548110610c3b57610c3b61121f565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610c9f91906112c9565b60006040518083038185875af1925050503d8060008114610cdc576040519150601f19603f3d011682016040523d82523d6000602084013e610ce1565b606091505b5050905080610d3e5760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610d9f91906112c9565b6000604051808303816000865af19150503d8060008114610ddc576040519150601f19603f3d011682016040523d82523d6000602084013e610de1565b606091505b5091509150818015610e0b575080511580610e0b575080806020019051810190610e0b91906112f8565b610e575760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ec291906112c9565b6000604051808303816000865af19150503d8060008114610eff576040519150601f19603f3d011682016040523d82523d6000602084013e610f04565b606091505b5091509150818015610f2e575080511580610f2e575080806020019051810190610f2e91906112f8565b610f865760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fa557600080fd5b919050565b600060208284031215610fbc57600080fd5b610fc582610f8e565b9392505050565b600080600080600060a08688031215610fe457600080fd5b610fed86610f8e565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561102057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561105257600080fd5b61105b84610f8e565b925060208401359150604084013567ffffffffffffffff8082111561107f57600080fd5b818601915086601f83011261109357600080fd5b8135818111156110a5576110a5611027565b604051601f8201601f19908116603f011681019083821181831017156110cd576110cd611027565b816040528281528960208487010111156110e657600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561111b57600080fd5b8235915061112b60208401610f8e565b90509250929050565b80356001600160801b0381168114610fa557600080fd5b6000806040838503121561115e57600080fd5b8235915061112b60208401611134565b801515811461117c57600080fd5b50565b60006020828403121561119157600080fd5b8135610fc58161116e565b6000806000606084860312156111b157600080fd5b83359250602084013591506111c860408501611134565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561121857600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561125e5761125e611235565b92915050565b8181038181111561125e5761125e611235565b60006001820161128957611289611235565b5060010190565b808202811582820484141761125e5761125e611235565b6000826112c457634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b818110156112ea57602081860181015185830152016112d0565b506000920191825250919050565b60006020828403121561130a57600080fd5b8151610fc58161116e56fea2646970667358221220a8a59ac3862c225f36c93ae41305bf872bd7730d63dac0add718cc6b88b1a0c264736f6c63430008130033000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000ec038badb02ab74f66f7892badd93ddcb7987f9b

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610faa565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610fcc565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e61020236600461100e565b6104a3565b61022461021536600461103d565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b61025961025436600461100e565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac366004611108565b61052f565b61014e6102bf36600461114b565b610905565b61014e6102d236600461117f565b610a32565b61014e6102e5366004610faa565b610a7e565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e61031536600461119c565b610b77565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b8152600401610353906111d1565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610c75565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611206565b90506103f2823383610d43565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b8152600401610353906111d1565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b8152600401610353906111d1565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a5490506000600982815481106106635761066361121f565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061124b565b1061075d57600281015481546107059190611264565b600a8054919550600061071783611277565b9091555050604080518381524260208201529081018590527fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b89060600160405180910390a15b6001810154600090670de0b6b3a764000090610782906001600160801b031687611290565b61078c91906112a7565b6003549091506107b8906001600160a01b0316336107b26000546001600160a01b031690565b84610e5e565b6000600554426107c8919061124b565b905060006064600454886107dc9190611290565b6107e691906112a7565b905060006107f48289611264565b905080156108a357600154600254610819916001600160a01b03908116911683610d43565b6002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b15801561088a57600080fd5b505af115801561089e573d6000803e3d6000fd5b505050505b6001546108ba906001600160a01b03168884610d43565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b336109186000546001600160a01b031690565b6001600160a01b03161461093e5760405162461bcd60e51b8152600401610353906111d1565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a456000546001600160a01b031690565b6001600160a01b031614610a6b5760405162461bcd60e51b8152600401610353906111d1565b600b805460ff1916911515919091179055565b33610a916000546001600160a01b031690565b6001600160a01b031614610ab75760405162461bcd60e51b8152600401610353906111d1565b6001600160a01b038116610b1c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610b8a6000546001600160a01b031690565b6001600160a01b031614610bb05760405162461bcd60e51b8152600401610353906111d1565b600083118015610bc1575060095483105b610bfe5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c1257610c1261121f565b9060005260206000209060040201600001819055508060098481548110610c3b57610c3b61121f565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610c9f91906112c9565b60006040518083038185875af1925050503d8060008114610cdc576040519150601f19603f3d011682016040523d82523d6000602084013e610ce1565b606091505b5050905080610d3e5760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610d9f91906112c9565b6000604051808303816000865af19150503d8060008114610ddc576040519150601f19603f3d011682016040523d82523d6000602084013e610de1565b606091505b5091509150818015610e0b575080511580610e0b575080806020019051810190610e0b91906112f8565b610e575760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ec291906112c9565b6000604051808303816000865af19150503d8060008114610eff576040519150601f19603f3d011682016040523d82523d6000602084013e610f04565b606091505b5091509150818015610f2e575080511580610f2e575080806020019051810190610f2e91906112f8565b610f865760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fa557600080fd5b919050565b600060208284031215610fbc57600080fd5b610fc582610f8e565b9392505050565b600080600080600060a08688031215610fe457600080fd5b610fed86610f8e565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561102057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561105257600080fd5b61105b84610f8e565b925060208401359150604084013567ffffffffffffffff8082111561107f57600080fd5b818601915086601f83011261109357600080fd5b8135818111156110a5576110a5611027565b604051601f8201601f19908116603f011681019083821181831017156110cd576110cd611027565b816040528281528960208487010111156110e657600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561111b57600080fd5b8235915061112b60208401610f8e565b90509250929050565b80356001600160801b0381168114610fa557600080fd5b6000806040838503121561115e57600080fd5b8235915061112b60208401611134565b801515811461117c57600080fd5b50565b60006020828403121561119157600080fd5b8135610fc58161116e565b6000806000606084860312156111b157600080fd5b83359250602084013591506111c860408501611134565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561121857600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561125e5761125e611235565b92915050565b8181038181111561125e5761125e611235565b60006001820161128957611289611235565b5060010190565b808202811582820484141761125e5761125e611235565b6000826112c457634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b818110156112ea57602081860181015185830152016112d0565b506000920191825250919050565b60006020828403121561130a57600080fd5b8151610fc58161116e56fea2646970667358221220a8a59ac3862c225f36c93ae41305bf872bd7730d63dac0add718cc6b88b1a0c264736f6c63430008130033