false
false
0

Contract Address Details

0xEc038baDB02Ab74F66f7892BaDD93DDCB7987f9b

Contract Name
Vesting
Creator
0xc7d98c–7f3521 at 0x5bcd8c–66ced3
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
1 Transactions
Transfers
1 Transfers
Gas Used
47,760
Last Balance Update
16289542
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
Vesting




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




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:35:29.720236Z

Constructor Arguments

0x000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68

Arg [0] (address) : 0xe1a77164e5c6d9e0fc0b23d11e0874de6b328e68

              

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 Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @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 balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
}

abstract contract ERC223Recipient { 
    mapping(address => bool) public depositors; // address of users who has right to deposit and allocate tokens

    modifier onlyDepositor() {
        require(depositors[msg.sender], "Only depositors allowed");
        _;
    }

    /**
    * @dev Standard ERC223 function that will handle incoming token transfers.
    */
    function tokenReceived(address _from, uint256, bytes memory) external virtual returns(bytes4) {
        require(depositors[_from], "Only depositors allowed");
        return this.tokenReceived.selector;
    }

}

contract Vesting is Ownable, ERC223Recipient {
    address public vestedToken;
    uint256 public totalAllocated;
    uint256 public totalClaimed;
    
    struct Allocation {
        uint256 amount;             // amount of token
        uint256 unlockPercentage;   // percentage of initially unlocked token
        uint256 finishVesting;       // Timestamp (unix time) when finish vesting. First release 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)        
    }

    mapping(address beneficiary => Allocation[]) public beneficiaries; // beneficiary => Allocation
    mapping(address => uint256) public claimedAmount;   // beneficiary => already claimed amount

    event SetDepositor(address depositor, bool enable);
    event Claim(address indexed beneficiary, uint256 amount);
    event AddAllocation(
        address indexed to,         // beneficiary of tokens
        uint256 amount,             // amount of token
        uint256 unlockPercentage,   // percentage of initially unlocked token
        uint256 finishVesting,       // Timestamp (unix time) when finish vesting. First release 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)        
    );
    event Rescue(address _token, uint256 _amount);

    constructor (
        address _vestedToken        // vesting token
    ) {
        require(_vestedToken != address(0));
        vestedToken = _vestedToken;
    }

    // Depositor has right to transfer token to contract and allocate token to the beneficiary
    function setDepositor(address depositor, bool enable) external onlyOwner {
        depositors[depositor] = enable;
        emit SetDepositor(depositor, enable);
    }

    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
        onlyDepositor
    {
        require(beneficiaries[to].length < 100, "Too many allocations for one address, use another address");
        require(amount <= getUnallocatedAmount(), "Not enough tokens");
        beneficiaries[to].push(Allocation(amount, unlockPercentage, finishVesting, cliffPercentage, cliffInterval));
        totalAllocated += amount;
        // Check ERC223 compatibility of the beneficiary 
        if (isContract(to)) {
            ERC223Recipient(to).tokenReceived(address(this), 0, "");
        }
        emit AddAllocation(to, amount, unlockPercentage, finishVesting, cliffPercentage, cliffInterval);
    }

    function claim() external {
        claimBehalf(msg.sender);
    }

    function claimBehalf(address beneficiary) public {
        uint256 unlockedAmount = getUnlockedAmount(beneficiary);
        if(unlockedAmount != 0) {
            claimedAmount[beneficiary] += unlockedAmount;
            totalClaimed += unlockedAmount;
            safeTransfer(vestedToken, beneficiary, unlockedAmount);
        }
        emit Claim(beneficiary, unlockedAmount);
    }

    function getUnlockedAmount(address beneficiary) public view returns(uint256 unlockedAmount) {
        uint256 len = beneficiaries[beneficiary].length;
        for (uint256 i = 0; i < len; i++) {
            Allocation storage b = beneficiaries[beneficiary][i];
            uint256 amount = b.amount;
            uint256 unlocked = amount * b.unlockPercentage / 100;
            if (b.finishVesting <= block.timestamp) {
                uint256 intervals = (block.timestamp - b.finishVesting) / b.cliffInterval + 1;
                unlocked = unlocked + (amount * intervals * b.cliffPercentage / 100);
            }
            if (unlocked > amount) unlocked = amount;
            unlockedAmount += unlocked;
        }
        unlockedAmount = unlockedAmount - claimedAmount[beneficiary];
    }

    function getUnallocatedAmount() public view returns(uint256 amount) {
        amount = IERC20(vestedToken).balanceOf(address(this));
        uint256 unclaimed = totalAllocated - totalClaimed;
        amount = amount - unclaimed;
    }

    function rescueTokens(address _token) onlyOwner external {
        uint256 amount;
        if (_token == vestedToken) {
            amount = getUnallocatedAmount();
        } else {
            amount = IERC20(_token).balanceOf(address(this));
        }

        safeTransfer(_token, msg.sender, amount);
        emit Rescue(_token, amount);
    }

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
    
    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');
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_vestedToken","internalType":"address"}]},{"type":"event","name":"AddAllocation","inputs":[{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"unlockPercentage","internalType":"uint256","indexed":false},{"type":"uint256","name":"finishVesting","internalType":"uint256","indexed":false},{"type":"uint256","name":"cliffPercentage","internalType":"uint256","indexed":false},{"type":"uint256","name":"cliffInterval","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Claim","inputs":[{"type":"address","name":"beneficiary","internalType":"address","indexed":true},{"type":"uint256","name":"amount","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":"SetDepositor","inputs":[{"type":"address","name":"depositor","internalType":"address","indexed":false},{"type":"bool","name":"enable","internalType":"bool","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"allocateTokens","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"unlockPercentage","internalType":"uint256"},{"type":"uint256","name":"finishVesting","internalType":"uint256"},{"type":"uint256","name":"cliffPercentage","internalType":"uint256"},{"type":"uint256","name":"cliffInterval","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"unlockPercentage","internalType":"uint256"},{"type":"uint256","name":"finishVesting","internalType":"uint256"},{"type":"uint256","name":"cliffPercentage","internalType":"uint256"},{"type":"uint256","name":"cliffInterval","internalType":"uint256"}],"name":"beneficiaries","inputs":[{"type":"address","name":"beneficiary","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimBehalf","inputs":[{"type":"address","name":"beneficiary","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimedAmount","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"depositors","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"}],"name":"getUnallocatedAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"unlockedAmount","internalType":"uint256"}],"name":"getUnlockedAmount","inputs":[{"type":"address","name":"beneficiary","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueTokens","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDepositor","inputs":[{"type":"address","name":"depositor","internalType":"address"},{"type":"bool","name":"enable","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"tokenReceived","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocated","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalClaimed","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"vestedToken","inputs":[]}]
              

Contract Creation Code

Verify & Publish
0x608060405234801561001057600080fd5b5060405161117038038061117083398101604081905261002f916100a6565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b03811661008157600080fd5b600280546001600160a01b0319166001600160a01b03929092169190911790556100d6565b6000602082840312156100b857600080fd5b81516001600160a01b03811681146100cf57600080fd5b9392505050565b61108b806100e56000396000f3fe608060405234801561001057600080fd5b506004361061010a5760003560e01c80636bd7a97a116100a25780638943ec02116100715780638943ec021461022a5780638da5cb5b14610256578063d54ad2a114610267578063eed75f6d14610270578063f2fde38b146102a357600080fd5b80636bd7a97a146101e95780636f860d74146101fc578063715018a61461020f578063889014961461021757600080fd5b806345f7f249116100de57806345f7f249146101725780634e71d92d1461017b578063529849e9146101835780635de29741146101be57600080fd5b8062ae3bf81461010f57806304e869031461012457806328733bb714610157578063420d4a021461015f575b600080fd5b61012261011d366004610d2f565b6102b6565b005b610144610132366004610d2f565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6101446103dd565b61014461016d366004610d2f565b610470565b61014460035481565b6101226105b7565b610196610191366004610d4a565b6105c2565b604080519586526020860194909452928401919091526060830152608082015260a00161014e565b6002546101d1906001600160a01b031681565b6040516001600160a01b03909116815260200161014e565b6101226101f7366004610d74565b610610565b61012261020a366004610dcf565b6108be565b610122610953565b610122610225366004610d2f565b6109d6565b61023d610238366004610e1c565b610a8d565b6040516001600160e01b0319909116815260200161014e565b6000546001600160a01b03166101d1565b61014460045481565b61029361027e366004610d2f565b60016020526000908152604090205460ff1681565b604051901515815260200161014e565b6101226102b1366004610d2f565b610aff565b336102c96000546001600160a01b031690565b6001600160a01b0316146102f85760405162461bcd60e51b81526004016102ef90610ee7565b60405180910390fd5b6002546000906001600160a01b0390811690831603610320576103196103dd565b905061038b565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103889190610f1c565b90505b610396823383610bf8565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af291015b60405180910390a15050565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044a9190610f1c565b9050600060045460035461045e9190610f4b565b905061046a8183610f4b565b91505090565b6001600160a01b038116600090815260056020526040812054815b8181101561058c576001600160a01b03841660009081526005602052604081208054839081106104bd576104bd610f64565b6000918252602082206005909102018054600182015491935091906064906104e59084610f7a565b6104ef9190610f91565b90504283600201541161055f57600083600401548460020154426105139190610f4b565b61051d9190610f91565b610528906001610fb3565b905060648460030154828561053d9190610f7a565b6105479190610f7a565b6105519190610f91565b61055b9083610fb3565b9150505b8181111561056a5750805b6105748187610fb3565b9550505050808061058490610fc6565b91505061048b565b506001600160a01b0383166000908152600660205260409020546105b09083610f4b565b9392505050565b6105c0336109d6565b565b600560205281600052604060002081815481106105de57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b3360009081526001602052604090205460ff166106695760405162461bcd60e51b815260206004820152601760248201527613db9b1e4819195c1bdcda5d1bdc9cc8185b1b1bddd959604a1b60448201526064016102ef565b6001600160a01b0386166000908152600560205260409020546064116106f75760405162461bcd60e51b815260206004820152603960248201527f546f6f206d616e7920616c6c6f636174696f6e7320666f72206f6e652061646460448201527f726573732c2075736520616e6f7468657220616464726573730000000000000060648201526084016102ef565b6106ff6103dd565b8511156107425760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064016102ef565b6001600160a01b0386166000908152600560208181526040808420815160a0810183528a81528084018a81529281018981526060820189815260808301898152845460018181018755958a529689209351969097029092019485559251918401919091559051600283015551600380830191909155915160049091015580548792906107cf908490610fb3565b9091555050853b1561085c576040516344a1f60160e11b81523060048201526000602482018190526060604483015260648201526001600160a01b03871690638943ec02906084016020604051808303816000875af1158015610836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085a9190610fdf565b505b604080518681526020810186905290810184905260608101839052608081018290526001600160a01b038716907f585acc8130c6cd35ae5bb61237605676cd4ec0a81dc2bf91a06b37270e81c3929060a00160405180910390a2505050505050565b336108d16000546001600160a01b031690565b6001600160a01b0316146108f75760405162461bcd60e51b81526004016102ef90610ee7565b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527fb1252fa67b4c05afbdaadfae34890b205103c0212a9e062b3978e8cd573631a991016103d1565b336109666000546001600160a01b031690565b6001600160a01b03161461098c5760405162461bcd60e51b81526004016102ef90610ee7565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006109e182610470565b90508015610a46576001600160a01b03821660009081526006602052604081208054839290610a11908490610fb3565b925050819055508060046000828254610a2a9190610fb3565b9091555050600254610a46906001600160a01b03168383610bf8565b816001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d482604051610a8191815260200190565b60405180910390a25050565b6001600160a01b03831660009081526001602052604081205460ff16610aef5760405162461bcd60e51b815260206004820152601760248201527613db9b1e4819195c1bdcda5d1bdc9cc8185b1b1bddd959604a1b60448201526064016102ef565b506344a1f60160e11b9392505050565b33610b126000546001600160a01b031690565b6001600160a01b031614610b385760405162461bcd60e51b81526004016102ef90610ee7565b6001600160a01b038116610b9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ef565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610c549190611009565b6000604051808303816000865af19150503d8060008114610c91576040519150601f19603f3d011682016040523d82523d6000602084013e610c96565b606091505b5091509150818015610cc0575080511580610cc0575080806020019051810190610cc09190611038565b610d0c5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016102ef565b5050505050565b80356001600160a01b0381168114610d2a57600080fd5b919050565b600060208284031215610d4157600080fd5b6105b082610d13565b60008060408385031215610d5d57600080fd5b610d6683610d13565b946020939093013593505050565b60008060008060008060c08789031215610d8d57600080fd5b610d9687610d13565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b8015158114610dcc57600080fd5b50565b60008060408385031215610de257600080fd5b610deb83610d13565b91506020830135610dfb81610dbe565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610e3157600080fd5b610e3a84610d13565b925060208401359150604084013567ffffffffffffffff80821115610e5e57600080fd5b818601915086601f830112610e7257600080fd5b813581811115610e8457610e84610e06565b604051601f8201601f19908116603f01168101908382118183101715610eac57610eac610e06565b81604052828152896020848701011115610ec557600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610f2e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610f5e57610f5e610f35565b92915050565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610f5e57610f5e610f35565b600082610fae57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610f5e57610f5e610f35565b600060018201610fd857610fd8610f35565b5060010190565b600060208284031215610ff157600080fd5b81516001600160e01b0319811681146105b057600080fd5b6000825160005b8181101561102a5760208186018101518583015201611010565b506000920191825250919050565b60006020828403121561104a57600080fd5b81516105b081610dbe56fea2646970667358221220049d68f0ef6f76797163b7a0630280891f4d7d0646bacbbe78eb2f4fd9de3c5d64736f6c63430008130033000000000000000000000000e1a77164e5c6d9e0fc0b23d11e0874de6b328e68

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061010a5760003560e01c80636bd7a97a116100a25780638943ec02116100715780638943ec021461022a5780638da5cb5b14610256578063d54ad2a114610267578063eed75f6d14610270578063f2fde38b146102a357600080fd5b80636bd7a97a146101e95780636f860d74146101fc578063715018a61461020f578063889014961461021757600080fd5b806345f7f249116100de57806345f7f249146101725780634e71d92d1461017b578063529849e9146101835780635de29741146101be57600080fd5b8062ae3bf81461010f57806304e869031461012457806328733bb714610157578063420d4a021461015f575b600080fd5b61012261011d366004610d2f565b6102b6565b005b610144610132366004610d2f565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6101446103dd565b61014461016d366004610d2f565b610470565b61014460035481565b6101226105b7565b610196610191366004610d4a565b6105c2565b604080519586526020860194909452928401919091526060830152608082015260a00161014e565b6002546101d1906001600160a01b031681565b6040516001600160a01b03909116815260200161014e565b6101226101f7366004610d74565b610610565b61012261020a366004610dcf565b6108be565b610122610953565b610122610225366004610d2f565b6109d6565b61023d610238366004610e1c565b610a8d565b6040516001600160e01b0319909116815260200161014e565b6000546001600160a01b03166101d1565b61014460045481565b61029361027e366004610d2f565b60016020526000908152604090205460ff1681565b604051901515815260200161014e565b6101226102b1366004610d2f565b610aff565b336102c96000546001600160a01b031690565b6001600160a01b0316146102f85760405162461bcd60e51b81526004016102ef90610ee7565b60405180910390fd5b6002546000906001600160a01b0390811690831603610320576103196103dd565b905061038b565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103889190610f1c565b90505b610396823383610bf8565b604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af291015b60405180910390a15050565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044a9190610f1c565b9050600060045460035461045e9190610f4b565b905061046a8183610f4b565b91505090565b6001600160a01b038116600090815260056020526040812054815b8181101561058c576001600160a01b03841660009081526005602052604081208054839081106104bd576104bd610f64565b6000918252602082206005909102018054600182015491935091906064906104e59084610f7a565b6104ef9190610f91565b90504283600201541161055f57600083600401548460020154426105139190610f4b565b61051d9190610f91565b610528906001610fb3565b905060648460030154828561053d9190610f7a565b6105479190610f7a565b6105519190610f91565b61055b9083610fb3565b9150505b8181111561056a5750805b6105748187610fb3565b9550505050808061058490610fc6565b91505061048b565b506001600160a01b0383166000908152600660205260409020546105b09083610f4b565b9392505050565b6105c0336109d6565b565b600560205281600052604060002081815481106105de57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b3360009081526001602052604090205460ff166106695760405162461bcd60e51b815260206004820152601760248201527613db9b1e4819195c1bdcda5d1bdc9cc8185b1b1bddd959604a1b60448201526064016102ef565b6001600160a01b0386166000908152600560205260409020546064116106f75760405162461bcd60e51b815260206004820152603960248201527f546f6f206d616e7920616c6c6f636174696f6e7320666f72206f6e652061646460448201527f726573732c2075736520616e6f7468657220616464726573730000000000000060648201526084016102ef565b6106ff6103dd565b8511156107425760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064016102ef565b6001600160a01b0386166000908152600560208181526040808420815160a0810183528a81528084018a81529281018981526060820189815260808301898152845460018181018755958a529689209351969097029092019485559251918401919091559051600283015551600380830191909155915160049091015580548792906107cf908490610fb3565b9091555050853b1561085c576040516344a1f60160e11b81523060048201526000602482018190526060604483015260648201526001600160a01b03871690638943ec02906084016020604051808303816000875af1158015610836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085a9190610fdf565b505b604080518681526020810186905290810184905260608101839052608081018290526001600160a01b038716907f585acc8130c6cd35ae5bb61237605676cd4ec0a81dc2bf91a06b37270e81c3929060a00160405180910390a2505050505050565b336108d16000546001600160a01b031690565b6001600160a01b0316146108f75760405162461bcd60e51b81526004016102ef90610ee7565b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527fb1252fa67b4c05afbdaadfae34890b205103c0212a9e062b3978e8cd573631a991016103d1565b336109666000546001600160a01b031690565b6001600160a01b03161461098c5760405162461bcd60e51b81526004016102ef90610ee7565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006109e182610470565b90508015610a46576001600160a01b03821660009081526006602052604081208054839290610a11908490610fb3565b925050819055508060046000828254610a2a9190610fb3565b9091555050600254610a46906001600160a01b03168383610bf8565b816001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d482604051610a8191815260200190565b60405180910390a25050565b6001600160a01b03831660009081526001602052604081205460ff16610aef5760405162461bcd60e51b815260206004820152601760248201527613db9b1e4819195c1bdcda5d1bdc9cc8185b1b1bddd959604a1b60448201526064016102ef565b506344a1f60160e11b9392505050565b33610b126000546001600160a01b031690565b6001600160a01b031614610b385760405162461bcd60e51b81526004016102ef90610ee7565b6001600160a01b038116610b9d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ef565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691610c549190611009565b6000604051808303816000865af19150503d8060008114610c91576040519150601f19603f3d011682016040523d82523d6000602084013e610c96565b606091505b5091509150818015610cc0575080511580610cc0575080806020019051810190610cc09190611038565b610d0c5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016102ef565b5050505050565b80356001600160a01b0381168114610d2a57600080fd5b919050565b600060208284031215610d4157600080fd5b6105b082610d13565b60008060408385031215610d5d57600080fd5b610d6683610d13565b946020939093013593505050565b60008060008060008060c08789031215610d8d57600080fd5b610d9687610d13565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b8015158114610dcc57600080fd5b50565b60008060408385031215610de257600080fd5b610deb83610d13565b91506020830135610dfb81610dbe565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610e3157600080fd5b610e3a84610d13565b925060208401359150604084013567ffffffffffffffff80821115610e5e57600080fd5b818601915086601f830112610e7257600080fd5b813581811115610e8457610e84610e06565b604051601f8201601f19908116603f01168101908382118183101715610eac57610eac610e06565b81604052828152896020848701011115610ec557600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610f2e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610f5e57610f5e610f35565b92915050565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610f5e57610f5e610f35565b600082610fae57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610f5e57610f5e610f35565b600060018201610fd857610fd8610f35565b5060010190565b600060208284031215610ff157600080fd5b81516001600160e01b0319811681146105b057600080fd5b6000825160005b8181101561102a5760208186018101518583015201611010565b506000920191825250919050565b60006020828403121561104a57600080fd5b81516105b081610dbe56fea2646970667358221220049d68f0ef6f76797163b7a0630280891f4d7d0646bacbbe78eb2f4fd9de3c5d64736f6c63430008130033