false
false
0

Contract Address Details

0x774d4c5cf4b93714Bb3806192D252DFaa5917af9

Contract Name
ICO
Creator
0xc7d98cā€“7f3521 at 0x233c36ā€“6a12a2
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
16288127
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:07.317385Z

Constructor Arguments

0x000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000b7827b3f4df1d375479adfed2f6cc90ee644fe93

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

              

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);
    function approve(address spender, 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
    address public paymentToken = 0xbf6c50889d3a620eb42C0F188b65aDe90De958c4; //BUSDT

    uint256 public unlockPercentage = 5; // percentage of initially unlocked token
    uint256 public vestingPeriod = 60 minutes;//180 days;    // vesting period (in seconds)
    uint256 public cliffPercentage = 5;        // percentage of locked tokens will be unlocked every interval (i.e. 10% per 30 days)
    uint256 public cliffInterval = 30 minutes; //30 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;
    uint256 public currentRound;
    bool public isPause;

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

    constructor (address _ICOtoken, address _vestingContract) {
        ICOtoken = _ICOtoken;
        vestingContract = _vestingContract;
        IERC20(_ICOtoken).approve(_vestingContract, type(uint256).max);
    }

    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, r.roundStarts, block.timestamp, amountToBuy);
        }

        uint256 amountToPay = amountToBuy * r.price / 1e18;
        r.totalSold += amountToBuy;
        r.totalReceived += amountToPay;
        safeTransferFrom(paymentToken, msg.sender, owner(), amountToPay);
        // set vesting
        uint256 finishVesting = block.timestamp + vestingPeriod;
        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":"starTime","internalType":"uint256","indexed":false},{"type":"uint256","name":"endTime","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
0x6080604052600380546001600160a01b03191673bf6c50889d3a620eb42c0f188b65ade90de958c417905560056004819055610e1081556006556107086007556365c61f786008553480156200005457600080fd5b506040516200156738038062001567833981016040819052620000779162000178565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600180546001600160a01b038481166001600160a01b031992831681179093556002805491851691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b3906044016020604051808303816000875af11580156200012c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001529190620001b0565b505050620001db565b80516001600160a01b03811681146200017357600080fd5b919050565b600080604083850312156200018c57600080fd5b62000197836200015b565b9150620001a7602084016200015b565b90509250929050565b600060208284031215620001c357600080fd5b81518015158114620001d457600080fd5b9392505050565b61137c80620001eb6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610fdb565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610ffd565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e61020236600461103f565b6104a3565b61022461021536600461106e565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b61025961025436600461103f565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac366004611139565b61052f565b61014e6102bf36600461117c565b610936565b61014e6102d23660046111b0565b610a63565b61014e6102e5366004610fdb565b610aaf565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e6103153660046111cd565b610ba8565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b815260040161035390611202565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610ca6565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611237565b90506103f2823383610d74565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b815260040161035390611202565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b815260040161035390611202565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a54905060006009828154811061066357610663611250565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061127c565b1061077857600281015481546107059190611295565b600a80549195506000610717836112a8565b9091555050600181015460408051848152600160801b9092046001600160801b031660208301524290820152606081018590527fd973376a4b0ebcb1d15c59c5c42583e7edb997119e5246d6888e26c5d0229ad99060800160405180910390a15b6001810154600090670de0b6b3a76400009061079d906001600160801b0316876112c1565b6107a791906112d8565b9050848260020160008282546107bd919061127c565b92505081905550808260030160008282546107d8919061127c565b9091555050600354610806906001600160a01b0316336108006000546001600160a01b031690565b84610e8f565b600060055442610816919061127c565b9050600060646004548861082a91906112c1565b61083491906112d8565b905060006108428289611295565b905080156108d4576002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b1580156108bb57600080fd5b505af11580156108cf573d6000803e3d6000fd5b505050505b6001546108eb906001600160a01b03168884610d74565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b336109496000546001600160a01b031690565b6001600160a01b03161461096f5760405162461bcd60e51b815260040161035390611202565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a766000546001600160a01b031690565b6001600160a01b031614610a9c5760405162461bcd60e51b815260040161035390611202565b600b805460ff1916911515919091179055565b33610ac26000546001600160a01b031690565b6001600160a01b031614610ae85760405162461bcd60e51b815260040161035390611202565b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610bbb6000546001600160a01b031690565b6001600160a01b031614610be15760405162461bcd60e51b815260040161035390611202565b600083118015610bf2575060095483105b610c2f5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c4357610c43611250565b9060005260206000209060040201600001819055508060098481548110610c6c57610c6c611250565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610cd091906112fa565b60006040518083038185875af1925050503d8060008114610d0d576040519150601f19603f3d011682016040523d82523d6000602084013e610d12565b606091505b5050905080610d6f5760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610dd091906112fa565b6000604051808303816000865af19150503d8060008114610e0d576040519150601f19603f3d011682016040523d82523d6000602084013e610e12565b606091505b5091509150818015610e3c575080511580610e3c575080806020019051810190610e3c9190611329565b610e885760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ef391906112fa565b6000604051808303816000865af19150503d8060008114610f30576040519150601f19603f3d011682016040523d82523d6000602084013e610f35565b606091505b5091509150818015610f5f575080511580610f5f575080806020019051810190610f5f9190611329565b610fb75760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fd657600080fd5b919050565b600060208284031215610fed57600080fd5b610ff682610fbf565b9392505050565b600080600080600060a0868803121561101557600080fd5b61101e86610fbf565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561105157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561108357600080fd5b61108c84610fbf565b925060208401359150604084013567ffffffffffffffff808211156110b057600080fd5b818601915086601f8301126110c457600080fd5b8135818111156110d6576110d6611058565b604051601f8201601f19908116603f011681019083821181831017156110fe576110fe611058565b8160405282815289602084870101111561111757600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561114c57600080fd5b8235915061115c60208401610fbf565b90509250929050565b80356001600160801b0381168114610fd657600080fd5b6000806040838503121561118f57600080fd5b8235915061115c60208401611165565b80151581146111ad57600080fd5b50565b6000602082840312156111c257600080fd5b8135610ff68161119f565b6000806000606084860312156111e257600080fd5b83359250602084013591506111f960408501611165565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561124957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561128f5761128f611266565b92915050565b8181038181111561128f5761128f611266565b6000600182016112ba576112ba611266565b5060010190565b808202811582820484141761128f5761128f611266565b6000826112f557634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b8181101561131b5760208186018101518583015201611301565b506000920191825250919050565b60006020828403121561133b57600080fd5b8151610ff68161119f56fea2646970667358221220f68c706f0c0ffa25c59f69db7c7da30bdfacb55edc543f7ca979b2227c375fca64736f6c63430008130033000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000b7827b3f4df1d375479adfed2f6cc90ee644fe93

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610fdb565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610ffd565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e61020236600461103f565b6104a3565b61022461021536600461106e565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b61025961025436600461103f565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac366004611139565b61052f565b61014e6102bf36600461117c565b610936565b61014e6102d23660046111b0565b610a63565b61014e6102e5366004610fdb565b610aaf565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e6103153660046111cd565b610ba8565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b815260040161035390611202565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610ca6565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611237565b90506103f2823383610d74565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b815260040161035390611202565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b815260040161035390611202565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a54905060006009828154811061066357610663611250565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061127c565b1061077857600281015481546107059190611295565b600a80549195506000610717836112a8565b9091555050600181015460408051848152600160801b9092046001600160801b031660208301524290820152606081018590527fd973376a4b0ebcb1d15c59c5c42583e7edb997119e5246d6888e26c5d0229ad99060800160405180910390a15b6001810154600090670de0b6b3a76400009061079d906001600160801b0316876112c1565b6107a791906112d8565b9050848260020160008282546107bd919061127c565b92505081905550808260030160008282546107d8919061127c565b9091555050600354610806906001600160a01b0316336108006000546001600160a01b031690565b84610e8f565b600060055442610816919061127c565b9050600060646004548861082a91906112c1565b61083491906112d8565b905060006108428289611295565b905080156108d4576002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b1580156108bb57600080fd5b505af11580156108cf573d6000803e3d6000fd5b505050505b6001546108eb906001600160a01b03168884610d74565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b336109496000546001600160a01b031690565b6001600160a01b03161461096f5760405162461bcd60e51b815260040161035390611202565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a766000546001600160a01b031690565b6001600160a01b031614610a9c5760405162461bcd60e51b815260040161035390611202565b600b805460ff1916911515919091179055565b33610ac26000546001600160a01b031690565b6001600160a01b031614610ae85760405162461bcd60e51b815260040161035390611202565b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610bbb6000546001600160a01b031690565b6001600160a01b031614610be15760405162461bcd60e51b815260040161035390611202565b600083118015610bf2575060095483105b610c2f5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c4357610c43611250565b9060005260206000209060040201600001819055508060098481548110610c6c57610c6c611250565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610cd091906112fa565b60006040518083038185875af1925050503d8060008114610d0d576040519150601f19603f3d011682016040523d82523d6000602084013e610d12565b606091505b5050905080610d6f5760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610dd091906112fa565b6000604051808303816000865af19150503d8060008114610e0d576040519150601f19603f3d011682016040523d82523d6000602084013e610e12565b606091505b5091509150818015610e3c575080511580610e3c575080806020019051810190610e3c9190611329565b610e885760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ef391906112fa565b6000604051808303816000865af19150503d8060008114610f30576040519150601f19603f3d011682016040523d82523d6000602084013e610f35565b606091505b5091509150818015610f5f575080511580610f5f575080806020019051810190610f5f9190611329565b610fb75760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fd657600080fd5b919050565b600060208284031215610fed57600080fd5b610ff682610fbf565b9392505050565b600080600080600060a0868803121561101557600080fd5b61101e86610fbf565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561105157600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561108357600080fd5b61108c84610fbf565b925060208401359150604084013567ffffffffffffffff808211156110b057600080fd5b818601915086601f8301126110c457600080fd5b8135818111156110d6576110d6611058565b604051601f8201601f19908116603f011681019083821181831017156110fe576110fe611058565b8160405282815289602084870101111561111757600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561114c57600080fd5b8235915061115c60208401610fbf565b90509250929050565b80356001600160801b0381168114610fd657600080fd5b6000806040838503121561118f57600080fd5b8235915061115c60208401611165565b80151581146111ad57600080fd5b50565b6000602082840312156111c257600080fd5b8135610ff68161119f565b6000806000606084860312156111e257600080fd5b83359250602084013591506111f960408501611165565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561124957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561128f5761128f611266565b92915050565b8181038181111561128f5761128f611266565b6000600182016112ba576112ba611266565b5060010190565b808202811582820484141761128f5761128f611266565b6000826112f557634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b8181101561131b5760208186018101518583015201611301565b506000920191825250919050565b60006020828403121561133b57600080fd5b8151610ff68161119f56fea2646970667358221220f68c706f0c0ffa25c59f69db7c7da30bdfacb55edc543f7ca979b2227c375fca64736f6c63430008130033