Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
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:08.593356Z
Constructor Arguments
0x000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000b8977992d696964c259fe00efcf69a42439c987c
Arg [0] (address) : 0xe1a77164e5c6d9e0fc0b23d11e0874de6b328e68
Arg [1] (address) : 0xb8977992d696964c259fe00efcf69a42439c987c
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; r.totalSold += amountToBuy; r.totalReceived += amountToPay; 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
0x6080604052600380546001600160a01b031916737873d09af3d6965988831c60c7d38dbbd2eaeab01790556032600455610e10600555600f6006556107086007556365c61f7860085534801561005457600080fd5b506040516114ce3803806114ce8339810160408190526100739161010e565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600980546001908101825560009190915280546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610141565b80516001600160a01b038116811461010957600080fd5b919050565b6000806040838503121561012157600080fd5b61012a836100f2565b9150610138602084016100f2565b90509250929050565b61137e806101506000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610fdd565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610fff565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e610202366004611041565b6104a3565b610224610215366004611070565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b610259610254366004611041565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac36600461113b565b61052f565b61014e6102bf36600461117e565b610938565b61014e6102d23660046111b2565b610a65565b61014e6102e5366004610fdd565b610ab1565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e6103153660046111cf565b610baa565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b815260040161035390611204565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610ca8565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611239565b90506103f2823383610d76565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b815260040161035390611204565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b815260040161035390611204565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a54905060006009828154811061066357610663611252565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061127e565b1061075d57600281015481546107059190611297565b600a80549195506000610717836112aa565b9091555050604080518381524260208201529081018590527fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b89060600160405180910390a15b6001810154600090670de0b6b3a764000090610782906001600160801b0316876112c3565b61078c91906112da565b9050848260020160008282546107a2919061127e565b92505081905550808260030160008282546107bd919061127e565b90915550506003546107eb906001600160a01b0316336107e56000546001600160a01b031690565b84610e91565b6000600554426107fb919061127e565b9050600060646004548861080f91906112c3565b61081991906112da565b905060006108278289611297565b905080156108d65760015460025461084c916001600160a01b03908116911683610d76565b6002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050505b6001546108ed906001600160a01b03168884610d76565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b3361094b6000546001600160a01b031690565b6001600160a01b0316146109715760405162461bcd60e51b815260040161035390611204565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a786000546001600160a01b031690565b6001600160a01b031614610a9e5760405162461bcd60e51b815260040161035390611204565b600b805460ff1916911515919091179055565b33610ac46000546001600160a01b031690565b6001600160a01b031614610aea5760405162461bcd60e51b815260040161035390611204565b6001600160a01b038116610b4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610bbd6000546001600160a01b031690565b6001600160a01b031614610be35760405162461bcd60e51b815260040161035390611204565b600083118015610bf4575060095483105b610c315760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c4557610c45611252565b9060005260206000209060040201600001819055508060098481548110610c6e57610c6e611252565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610cd291906112fc565b60006040518083038185875af1925050503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b5050905080610d715760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610dd291906112fc565b6000604051808303816000865af19150503d8060008114610e0f576040519150601f19603f3d011682016040523d82523d6000602084013e610e14565b606091505b5091509150818015610e3e575080511580610e3e575080806020019051810190610e3e919061132b565b610e8a5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ef591906112fc565b6000604051808303816000865af19150503d8060008114610f32576040519150601f19603f3d011682016040523d82523d6000602084013e610f37565b606091505b5091509150818015610f61575080511580610f61575080806020019051810190610f61919061132b565b610fb95760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fd857600080fd5b919050565b600060208284031215610fef57600080fd5b610ff882610fc1565b9392505050565b600080600080600060a0868803121561101757600080fd5b61102086610fc1565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561105357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561108557600080fd5b61108e84610fc1565b925060208401359150604084013567ffffffffffffffff808211156110b257600080fd5b818601915086601f8301126110c657600080fd5b8135818111156110d8576110d861105a565b604051601f8201601f19908116603f011681019083821181831017156111005761110061105a565b8160405282815289602084870101111561111957600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561114e57600080fd5b8235915061115e60208401610fc1565b90509250929050565b80356001600160801b0381168114610fd857600080fd5b6000806040838503121561119157600080fd5b8235915061115e60208401611167565b80151581146111af57600080fd5b50565b6000602082840312156111c457600080fd5b8135610ff8816111a1565b6000806000606084860312156111e457600080fd5b83359250602084013591506111fb60408501611167565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561124b57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561129157611291611268565b92915050565b8181038181111561129157611291611268565b6000600182016112bc576112bc611268565b5060010190565b808202811582820484141761129157611291611268565b6000826112f757634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b8181101561131d5760208186018101518583015201611303565b506000920191825250919050565b60006020828403121561133d57600080fd5b8151610ff8816111a156fea26469706673582212202560c15fa0b329d57e37075548c0c348c1dc55529017c1f01d3a0d6c2be82ec664736f6c63430008130033000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68000000000000000000000000b8977992d696964c259fe00efcf69a42439c987c
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101365760003560e01c806382d95df5116100b85780639134709e1161007c5780639134709e1461029e57806396f03a43146102b1578063bedb86fb146102c4578063f2fde38b146102d7578063ff0938a7146102ea578063ff55d6f61461030757600080fd5b806382d95df5146101f45780638943ec02146102075780638a19c8bc1461023d5780638c65c81f146102465780638da5cb5b1461028d57600080fd5b80633b3fba16116100ff5780633b3fba16146101b35780633c21e595146101bc57806346ff80ee146101c55780635e6f6045146101d85780637313ee5a146101eb57600080fd5b8062ae3bf81461013b5780630b97bc861461015057806319496ca31461016c5780632a2eddde146101755780633013ce2914610188575b600080fd5b61014e610149366004610fdd565b61031a565b005b61015960085481565b6040519081526020015b60405180910390f35b61015960075481565b61014e610183366004610fff565b610438565b60035461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610163565b61015960045481565b61015960065481565b60015461019b906001600160a01b031681565b60025461019b906001600160a01b031681565b61015960055481565b61014e610202366004611041565b6104a3565b610224610215366004611070565b6344a1f60160e11b9392505050565b6040516001600160e01b03199091168152602001610163565b610159600a5481565b610259610254366004611041565b6104e1565b604080519586526001600160801b03948516602087015292909316918401919091526060830152608082015260a001610163565b6000546001600160a01b031661019b565b61014e6102ac36600461113b565b61052f565b61014e6102bf36600461117e565b610938565b61014e6102d23660046111b2565b610a65565b61014e6102e5366004610fdd565b610ab1565b600b546102f79060ff1681565b6040519015158152602001610163565b61014e6103153660046111cf565b610baa565b3361032d6000546001600160a01b031690565b6001600160a01b03161461035c5760405162461bcd60e51b815260040161035390611204565b60405180910390fd5b60006001600160a01b03821661037d5750476103783382610ca8565b6103f2565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156103c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e59190611239565b90506103f2823383610d76565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b3361044b6000546001600160a01b031690565b6001600160a01b0316146104715760405162461bcd60e51b815260040161035390611204565b600280546001600160a01b0319166001600160a01b039690961695909517909455600492909255600555600655600755565b336104b66000546001600160a01b031690565b6001600160a01b0316146104dc5760405162461bcd60e51b815260040161035390611204565b600855565b600981815481106104f157600080fd5b600091825260209091206004909102018054600182015460028301546003909301549193506001600160801b0380821693600160801b909204169185565b600954600a54106105715760405162461bcd60e51b815260206004820152600c60248201526b1250d3c8199a5b9a5cda195960a21b6044820152606401610353565b6008544210156105bc5760405162461bcd60e51b81526020600482015260166024820152751250d3c81a5cc81b9bdd081cdd185c9d1959081e595d60521b6044820152606401610353565b600b5460ff16156105ff5760405162461bcd60e51b815260206004820152600d60248201526c1250d3c81a5cc81c185d5cd959609a1b6044820152606401610353565b6001600160a01b0381166106475760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10313abcb2b960891b6044820152606401610353565b6000600a54905060006009828154811061066357610663611252565b600091825260208220600491909102016001810154909250600160801b90046001600160801b031690036106dd57816000036106c0576008546001820180546001600160801b03928316600160801b0292169190911790556106dd565b6001810180546001600160801b03428116600160801b0291161790555b805460028201546106ef90869061127e565b1061075d57600281015481546107059190611297565b600a80549195506000610717836112aa565b9091555050604080518381524260208201529081018590527fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b89060600160405180910390a15b6001810154600090670de0b6b3a764000090610782906001600160801b0316876112c3565b61078c91906112da565b9050848260020160008282546107a2919061127e565b92505081905550808260030160008282546107bd919061127e565b90915550506003546107eb906001600160a01b0316336107e56000546001600160a01b031690565b84610e91565b6000600554426107fb919061127e565b9050600060646004548861080f91906112c3565b61081991906112da565b905060006108278289611297565b905080156108d65760015460025461084c916001600160a01b03908116911683610d76565b6002546006546007546040516335ebd4bd60e11b81526001600160a01b038b81166004830152602482018690526000604483015260648201889052608482019390935260a4810191909152911690636bd7a97a9060c401600060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050505b6001546108ed906001600160a01b03168884610d76565b60408051878152602081018690529081018990527f7d4509d62a9a0bfa9f909361919a4b05ea355e5c7d2e87328e97139d415e34f99060600160405180910390a15050505050505050565b3361094b6000546001600160a01b031690565b6001600160a01b0316146109715760405162461bcd60e51b815260040161035390611204565b6040805160a0810182529283526001600160801b039182166020840190815260009184018281526060850183815260808601848152600980546001810182559552955160049094027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af810194909455915190518416600160801b029316929092177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b182015590517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b290910155565b33610a786000546001600160a01b031690565b6001600160a01b031614610a9e5760405162461bcd60e51b815260040161035390611204565b600b805460ff1916911515919091179055565b33610ac46000546001600160a01b031690565b6001600160a01b031614610aea5760405162461bcd60e51b815260040161035390611204565b6001600160a01b038116610b4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b33610bbd6000546001600160a01b031690565b6001600160a01b031614610be35760405162461bcd60e51b815260040161035390611204565b600083118015610bf4575060095483105b610c315760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c81c9bdd5b99081a5960921b6044820152606401610353565b8160098481548110610c4557610c45611252565b9060005260206000209060040201600001819055508060098481548110610c6e57610c6e611252565b906000526020600020906004020160010160006101000a8154816001600160801b0302191690836001600160801b03160217905550505050565b604080516000808252602082019092526001600160a01b038416908390604051610cd291906112fc565b60006040518083038185875af1925050503d8060008114610d0f576040519150601f19603f3d011682016040523d82523d6000602084013e610d14565b606091505b5050905080610d715760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657248656c7065723a20434c4f5f5452414e534645525f46414960448201526213115160ea1b6064820152608401610353565b505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610dd291906112fc565b6000604051808303816000865af19150503d8060008114610e0f576040519150601f19603f3d011682016040523d82523d6000602084013e610e14565b606091505b5091509150818015610e3e575080511580610e3e575080806020019051810190610e3e919061132b565b610e8a5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610353565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691610ef591906112fc565b6000604051808303816000865af19150503d8060008114610f32576040519150601f19603f3d011682016040523d82523d6000602084013e610f37565b606091505b5091509150818015610f61575080511580610f61575080806020019051810190610f61919061132b565b610fb95760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610353565b505050505050565b80356001600160a01b0381168114610fd857600080fd5b919050565b600060208284031215610fef57600080fd5b610ff882610fc1565b9392505050565b600080600080600060a0868803121561101757600080fd5b61102086610fc1565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561105357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561108557600080fd5b61108e84610fc1565b925060208401359150604084013567ffffffffffffffff808211156110b257600080fd5b818601915086601f8301126110c657600080fd5b8135818111156110d8576110d861105a565b604051601f8201601f19908116603f011681019083821181831017156111005761110061105a565b8160405282815289602084870101111561111957600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000806040838503121561114e57600080fd5b8235915061115e60208401610fc1565b90509250929050565b80356001600160801b0381168114610fd857600080fd5b6000806040838503121561119157600080fd5b8235915061115e60208401611167565b80151581146111af57600080fd5b50565b6000602082840312156111c457600080fd5b8135610ff8816111a1565b6000806000606084860312156111e457600080fd5b83359250602084013591506111fb60408501611167565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561124b57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561129157611291611268565b92915050565b8181038181111561129157611291611268565b6000600182016112bc576112bc611268565b5060010190565b808202811582820484141761129157611291611268565b6000826112f757634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b8181101561131d5760208186018101518583015201611303565b506000920191825250919050565b60006020828403121561133d57600080fd5b8151610ff8816111a156fea26469706673582212202560c15fa0b329d57e37075548c0c348c1dc55529017c1f01d3a0d6c2be82ec664736f6c63430008130033