MATIC Price: $1.03 (-0.40%)
Gas: 160 GWei
 
Transaction Hash
Method
Block
From
To
Value
Claim Token547284102024-03-16 13:16:2811 days ago1710594988IN
0x5240547F...6e6423A3D
0 MATIC0.0065519483.21403497
Claim Token543818522024-03-07 18:02:4220 days ago1709834562IN
0x5240547F...6e6423A3D
0 MATIC0.01052597133.68693231
Claim Token543373532024-03-06 15:04:2521 days ago1709737465IN
0x5240547F...6e6423A3D
0 MATIC0.01904894241.93440282
Claim Token541668382024-03-02 6:20:5026 days ago1709360450IN
0x5240547F...6e6423A3D
0 MATIC0.01204989153.04179731
Claim Token539599682024-02-26 0:46:3231 days ago1708908392IN
0x5240547F...6e6423A3D
0 MATIC0.0026163733.22976064
Claim Token537391642024-02-20 8:41:5837 days ago1708418518IN
0x5240547F...6e6423A3D
0 MATIC0.006304480.07022869
Claim Token535105722024-02-14 11:54:3442 days ago1707911674IN
0x5240547F...6e6423A3D
0 MATIC0.00747177.9561173
Claim Token524090722024-01-16 22:48:3071 days ago1705445310IN
0x5240547F...6e6423A3D
0 MATIC0.0023620830.00000012
Claim Token521334262024-01-09 19:50:3978 days ago1704829839IN
0x5240547F...6e6423A3D
0 MATIC0.0024836131.54358426
Claim Token520868402024-01-08 14:38:0579 days ago1704724685IN
0x5240547F...6e6423A3D
0 MATIC0.008194285.50235455
Claim Token518989072024-01-03 17:09:3984 days ago1704301779IN
0x5240547F...6e6423A3D
0 MATIC0.0127781162.29052752
Claim Token518525982024-01-02 12:34:1185 days ago1704198851IN
0x5240547F...6e6423A3D
0 MATIC0.0054143356.49585306
Claim Token514022222023-12-21 23:16:3497 days ago1703200594IN
0x5240547F...6e6423A3D
0 MATIC0.00811909103.11789728
Claim Token513916172023-12-21 16:43:0597 days ago1703176985IN
0x5240547F...6e6423A3D
0 MATIC0.02168977226.32181218
Claim Token513915832023-12-21 16:41:5197 days ago1703176911IN
0x5240547F...6e6423A3D
0 MATIC0.0042239184.96676186
Claim Token512991372023-12-19 5:47:30100 days ago1702964850IN
0x5240547F...6e6423A3D
0 MATIC0.0056093171.24203378
Claim Token512849932023-12-18 20:56:02100 days ago1702932962IN
0x5240547F...6e6423A3D
0 MATIC0.0048857362.05208107
Claim Token510465192023-12-12 13:23:32106 days ago1702387412IN
0x5240547F...6e6423A3D
0 MATIC0.01620246205.78223053
Claim Token509607492023-12-10 7:39:15109 days ago1702193955IN
0x5240547F...6e6423A3D
0 MATIC0.0058014873.68275225
Claim Token509604862023-12-10 7:28:04109 days ago1702193284IN
0x5240547F...6e6423A3D
0 MATIC0.0057602773.1593861
Claim Token509001662023-12-08 18:27:38110 days ago1702060058IN
0x5240547F...6e6423A3D
0 MATIC0.02040244259.12471123
Claim Token508628612023-12-07 20:18:05111 days ago1701980285IN
0x5240547F...6e6423A3D
0 MATIC0.01599617203.16209204
Claim Token507664272023-12-05 10:09:24113 days ago1701770964IN
0x5240547F...6e6423A3D
0 MATIC0.0056413371.64873913
Claim Token506986482023-12-03 16:56:01115 days ago1701622561IN
0x5240547F...6e6423A3D
0 MATIC0.0028116835.71025991
Claim Token506338882023-12-02 1:20:25117 days ago1701480025IN
0x5240547F...6e6423A3D
0 MATIC0.003936850
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
225400912021-12-15 5:07:02834 days ago1639544822  Contract Creation0 MATIC
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xcDb49253...07D1375Ee
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
KommunitasVesting

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-12-10
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


pragma solidity ^0.7.0;

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    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 safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}


pragma solidity 0.7.6;

interface IKommunitasCreator{
    event VestingCreated(address indexed project, address vesting, uint index);
    
    function owner() external  view returns (address);
    
    function allVestingsLength() external view returns(uint);
    function allVestings(uint) external view returns(address);
    function getVesting(address) external view returns(address);
    
    function createVesting(address, uint, uint) external returns (address);
    
    function transferOwnership(address) external;
}


pragma solidity 0.7.6;

contract KommunitasVesting{
    using SafeMath for uint;
    
    bool public initialized;
    bool public isPaused;
    
    address public owner;
    IKommunitasCreator public creator;
    
    address public project;
    address public tokenProject; // token project address
    address public senderProject; // sender project address
    uint public tge; // Token Generation Event
    uint public sold; // sold token
    uint public distributed; // token sent to contract
    uint public completed; // token sent to contract in percent
    uint public period; // token sent period in month
    address[] public buyers;
    
    struct Bought{
        uint buyerIndex;
        uint purchased;
        uint progress; // in percent
        uint claimed;
    }
    
    mapping(address => Bought) public invoice;
    
    modifier onlyOwner{
        require(msg.sender == owner, "You are not the owner");
        _;
    }
    
    modifier onlyCreator{
        require(msg.sender == address(creator), "You are not the creator");
        _;
    }
    
    modifier onlySenderProject{
        require(msg.sender == senderProject, "You are not the sender project");
        _;
    }
    
    modifier onlyBuyer(address _target){
        require(invoice[_target].purchased > 0, "You never bought anything");
        _;
    }
    
    modifier isNotInitialized{
        require(!initialized, "Already initialized");
        _;
    }
    
    modifier isNotPaused{
        require(!isPaused, "Vesting Paused");
        _;
    }
    
    constructor(){
        creator = IKommunitasCreator(msg.sender);
        initialized = false;
        isPaused = false;
        owner = tx.origin;
        tokenProject = address(0);
        distributed = 0;
        completed = 0;
        period = 0;
    }
    
    /**
     * @dev Initialize vesting token distribution
     * @param _project Launchpad project address
     * @param _tge Epoch date to start TGE (Token Generation Event)
     * @param _sold Sold token in launchpad before
     */
    function initialize(
        address _project,
        uint _tge,
        uint _sold
    ) public onlyCreator isNotInitialized {
        require(_project != address(0), "Can't set to address(0)");
        require(_tge != 0 && _sold != 0, "TGE & Sold can't be 0");
        
        initialized = true;
        
        project = _project;
        tge = _tge;
        sold = _sold;
    }
    
    /**
     * @dev Get length of buyer
     */
    function getBuyerLength() public view returns (uint length){
        length = buyers.length;
    }
    
    /**
     * @dev Insert buyer purchase in launchpad
     * @param _buyer Buyer address
     * @param _purchase Buyer purchase
     */
    function migratePurchase(address _buyer, uint _purchase) public onlyOwner {
        require(_buyer != address(0), "Not buyer");
        require(_purchase != 0, "Buyer bought nothing");
        
        if(invoice[_buyer].purchased == 0){
            buyers.push(_buyer);
            
            invoice[_buyer].buyerIndex = buyers.length;
            invoice[_buyer].progress = 0;
            invoice[_buyer].claimed = 0;
        }
        
        invoice[_buyer].purchased = invoice[_buyer].purchased.add(_purchase);
    }
    
    /**
     * @dev Remove buyer purchase in vesting
     * @param _buyer Buyer address
     */
    function removeBuyer(address _buyer) public onlyOwner {
        require(_buyer != address(0), "Address incorrect");
        require(invoice[_buyer].purchased > 0, "Buyer not found");
        
        uint indexToDelete = invoice[_buyer].buyerIndex;
        address addressToMove = buyers[buyers.length-1];
        
        buyers[indexToDelete] = addressToMove;
        invoice[addressToMove].buyerIndex = indexToDelete;
        
        buyers.pop();
        delete invoice[_buyer];
    }
    
    
    /**
     * @dev Distribute token to contract
     * @param _amount Token amount to distribute
     * @param _percent Token amount distributed in percent
     */
    function distributeToken(uint _amount, uint _percent) public onlySenderProject isNotPaused {
        require(_amount != 0 && _percent != 0, "Amount & percent can't be 0");
        require(tokenProject != address(0), "Token project not set");
        require(completed < 100, "Distributed 100% token");
        
        TransferHelper.safeTransferFrom(tokenProject, msg.sender, address(this), _amount);
        
        distributed = distributed.add(_amount);
        completed = completed.add(_percent);
        period = period.add(1);
    }
    
    /**
     * @dev Token claim
     */
    function claimToken() public onlyBuyer(msg.sender) isNotPaused {
        require(block.timestamp >= tge, "TGE haven't started yet");
        require(completed > 0, "Token hasn't been distributed");
        require(invoice[msg.sender].progress < completed, "You have claimed before");
        
        uint amountToClaim;
        if(invoice[msg.sender].progress == 0){
            amountToClaim = invoice[msg.sender].purchased.mul(completed).div(100);
        } else{
            amountToClaim = (invoice[msg.sender].claimed.mul(completed).div(invoice[msg.sender].progress)).sub(invoice[msg.sender].claimed);
        }
        
        TransferHelper.safeTransfer(tokenProject, msg.sender, amountToClaim);
        
        invoice[msg.sender].progress = completed;
        invoice[msg.sender].claimed = invoice[msg.sender].claimed.add(amountToClaim);
    }
    
    /**
     * @dev Emergency condition to withdraw token
     * @param _target Target address
     */
    function emergencyWithdraw(address _target) public onlyOwner {
        require(_target != address(0), "Can't set to address(0)");
        
        TransferHelper.safeTransfer(tokenProject, _target, ERC20(tokenProject).balanceOf(address(this)));
    }
    
    /**
     * @dev Set token project
     * @param _tokenProject Token project address
     */
    function setTokenProject(address _tokenProject) public onlyOwner {
        require(_tokenProject != address(0) && _tokenProject != tokenProject, "tokenProject incorrect");
        tokenProject = _tokenProject;
    }
    
    /**
     * @dev Set sender project
     * @param _senderProject Sender project address
     */
    function setSenderProject(address _senderProject) public onlyOwner {
        require(_senderProject != address(0) && _senderProject != senderProject, "senderProject incorrect");
        senderProject = _senderProject;
    }
    
    /**
     * @dev Set TGE
     * @param _tge Token Generation Event in epoch
     */
    function setTge(uint _tge) public onlyOwner {
        require(_tge != 0 && _tge != tge, "TGE incorrect");
        tge = _tge;        
    }
    
    /**
     * @dev Pause vesting activity
     */
    function togglePause() public onlyOwner {
        isPaused = !isPaused;
    }
    
    /**
     * @dev Transfer ownership
     * @param _newOwner New owner address
     */
    function transferOwnership(address _newOwner) public onlyOwner {
        require(_newOwner != address(0) && _newOwner != owner, "Ownership incorrect");
        owner = _newOwner;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"buyers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"contract IKommunitasCreator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"distributeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBuyerLength","outputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_project","type":"address"},{"internalType":"uint256","name":"_tge","type":"uint256"},{"internalType":"uint256","name":"_sold","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"invoice","outputs":[{"internalType":"uint256","name":"buyerIndex","type":"uint256"},{"internalType":"uint256","name":"purchased","type":"uint256"},{"internalType":"uint256","name":"progress","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"uint256","name":"_purchase","type":"uint256"}],"name":"migratePurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"project","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_buyer","type":"address"}],"name":"removeBuyer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"senderProject","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_senderProject","type":"address"}],"name":"setSenderProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tge","type":"uint256"}],"name":"setTge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenProject","type":"address"}],"name":"setTokenProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenProject","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80639d9a7fe9116100de578063c4ae316811610097578063f2fde38b11610071578063f2fde38b146103d6578063f60ca60d146103fc578063f84b903e14610404578063ff7e436e1461040c5761018e565b8063c4ae3168146103a9578063ef78d4fd146103b1578063f2aa8218146103b95761018e565b80639d9a7fe91461031c578063a216966514610324578063a7497fa514610347578063acc863831461034f578063af3caced1461037b578063b187bd26146103a15761018e565b80636f75b00c1161014b5780638da5cb5b116101255780638da5cb5b146102b85780638e70d412146102c05780638f0164f6146102c857806396fe0582146103145761018e565b80636f75b00c1461023a5780636ff1c9bc146102605780637a1ac61e146102865761018e565b806302c7e7af1461019357806302d05d3f146101ad578063158ef93e146101d1578063341581de146101ed5780634451d89f146102155780636baa21ce1461021d575b600080fd5b61019b610414565b60408051918252519081900360200190f35b6101b561041a565b604080516001600160a01b039092168252519081900360200190f35b6101d9610429565b604080519115158252519081900360200190f35b6102136004803603602081101561020357600080fd5b50356001600160a01b0316610432565b005b61021361051e565b6102136004803603602081101561023357600080fd5b50356107c0565b6102136004803603602081101561025057600080fd5b50356001600160a01b031661086a565b6102136004803603602081101561027657600080fd5b50356001600160a01b0316610a5c565b6102136004803603606081101561029c57600080fd5b506001600160a01b038135169060208101359060400135610b88565b6101b5610d18565b6101b5610d2d565b6102ee600480360360208110156102de57600080fd5b50356001600160a01b0316610d3c565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61019b610d63565b61019b610d69565b6102136004803603604081101561033a57600080fd5b5080359060200135610d6f565b61019b610f6d565b6102136004803603604081101561036557600080fd5b506001600160a01b038135169060200135610f73565b6102136004803603602081101561039157600080fd5b50356001600160a01b0316611126565b6101d961120b565b610213611219565b61019b611289565b6101b5600480360360208110156103cf57600080fd5b503561128f565b610213600480360360208110156103ec57600080fd5b50356001600160a01b03166112b9565b6101b56113a9565b61019b6113b8565b6101b56113be565b60065481565b6001546001600160a01b031681565b60005460ff1681565b6000546201000090046001600160a01b03163314610485576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b038116158015906104ab57506004546001600160a01b03828116911614155b6104fc576040805162461bcd60e51b815260206004820152601760248201527f73656e64657250726f6a65637420696e636f7272656374000000000000000000604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b336000818152600b6020526040902060010154610582576040805162461bcd60e51b815260206004820152601960248201527f596f75206e6576657220626f7567687420616e797468696e6700000000000000604482015290519081900360640190fd5b600054610100900460ff16156105d0576040805162461bcd60e51b815260206004820152600e60248201526d15995cdd1a5b99c814185d5cd95960921b604482015290519081900360640190fd5b600554421015610627576040805162461bcd60e51b815260206004820152601760248201527f54474520686176656e2774207374617274656420796574000000000000000000604482015290519081900360640190fd5b60006008541161067e576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e206861736e2774206265656e206469737472696275746564000000604482015290519081900360640190fd5b600854336000908152600b6020526040902060020154106106e6576040805162461bcd60e51b815260206004820152601760248201527f596f75206861766520636c61696d6564206265666f7265000000000000000000604482015290519081900360640190fd5b336000908152600b602052604081206002015461073057600854336000908152600b602052604090206001015461072991606491610723916113cd565b9061142f565b905061076a565b336000908152600b6020526040902060038101546002909101546008546107679291610761916107239084906113cd565b90611471565b90505b600354610781906001600160a01b031633836114b3565b600854336000908152600b602052604090206002810191909155600301546107a9908261161c565b336000908152600b60205260409020600301555050565b6000546201000090046001600160a01b03163314610813576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b801580159061082457506005548114155b610865576040805162461bcd60e51b815260206004820152600d60248201526c1511d1481a5b98dbdc9c9958dd609a1b604482015290519081900360640190fd5b600555565b6000546201000090046001600160a01b031633146108bd576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b03811661090c576040805162461bcd60e51b81526020600482015260116024820152701059191c995cdcc81a5b98dbdc9c9958dd607a1b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b602052604090206001015461096b576040805162461bcd60e51b815260206004820152600f60248201526e109d5e595c881b9bdd08199bdd5b99608a1b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b6020526040812054600a8054919291600019810190811061099957fe5b600091825260209091200154600a80546001600160a01b0390921692508291849081106109c257fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559183168152600b90915260409020829055600a805480610a0657fe5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03949094168152600b909352505060408120818155600181018290556002810182905560030155565b6000546201000090046001600160a01b03163314610aaf576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b038116610b04576040805162461bcd60e51b815260206004820152601760248201527643616e27742073657420746f206164647265737328302960481b604482015290519081900360640190fd5b600354604080516370a0823160e01b81523060048201529051610b85926001600160a01b031691849183916370a08231916024808301926020929190829003018186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d6020811015610b7e57600080fd5b50516114b3565b50565b6001546001600160a01b03163314610be7576040805162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f74207468652063726561746f72000000000000000000604482015290519081900360640190fd5b60005460ff1615610c35576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6001600160a01b038316610c8a576040805162461bcd60e51b815260206004820152601760248201527643616e27742073657420746f206164647265737328302960481b604482015290519081900360640190fd5b8115801590610c9857508015155b610ce1576040805162461bcd60e51b81526020600482015260156024820152740544745202620536f6c642063616e2774206265203605c1b604482015290519081900360640190fd5b6000805460ff19166001179055600280546001600160a01b039094166001600160a01b031990941693909317909255600555600655565b6000546201000090046001600160a01b031681565b6004546001600160a01b031681565b600b6020526000908152604090208054600182015460028301546003909301549192909184565b600a5490565b60085481565b6004546001600160a01b03163314610dce576040805162461bcd60e51b815260206004820152601e60248201527f596f7520617265206e6f74207468652073656e6465722070726f6a6563740000604482015290519081900360640190fd5b600054610100900460ff1615610e1c576040805162461bcd60e51b815260206004820152600e60248201526d15995cdd1a5b99c814185d5cd95960921b604482015290519081900360640190fd5b8115801590610e2a57508015155b610e7b576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420262070657263656e742063616e277420626520300000000000604482015290519081900360640190fd5b6003546001600160a01b0316610ed0576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b881c1c9bda9958dd081b9bdd081cd95d605a1b604482015290519081900360640190fd5b606460085410610f20576040805162461bcd60e51b81526020600482015260166024820152752234b9ba3934b13aba32b21018981812903a37b5b2b760511b604482015290519081900360640190fd5b600354610f38906001600160a01b0316333085611676565b600754610f45908361161c565b600755600854610f55908261161c565b600855600954610f6690600161161c565b6009555050565b60055481565b6000546201000090046001600160a01b03163314610fc6576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b03821661100d576040805162461bcd60e51b81526020600482015260096024820152682737ba10313abcb2b960b91b604482015290519081900360640190fd5b80611056576040805162461bcd60e51b8152602060048201526014602482015273427579657220626f75676874206e6f7468696e6760601b604482015290519081900360640190fd5b6001600160a01b0382166000908152600b60205260409020600101546110dd57600a80546001810182557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b03851690811790915590546000918252600b6020526040822090815560028101829055600301555b6001600160a01b0382166000908152600b6020526040902060010154611103908261161c565b6001600160a01b039092166000908152600b602052604090206001019190915550565b6000546201000090046001600160a01b03163314611179576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b0381161580159061119f57506003546001600160a01b03828116911614155b6111e9576040805162461bcd60e51b81526020600482015260166024820152751d1bdad95b941c9bda9958dd081a5b98dbdc9c9958dd60521b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1681565b6000546201000090046001600160a01b0316331461126c576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6000805461ff001981166101009182900460ff1615909102179055565b60095481565b600a818154811061129f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546201000090046001600160a01b0316331461130c576040805162461bcd60e51b815260206004820152601560248201526000805160206118cf833981519152604482015290519081900360640190fd5b6001600160a01b0381161580159061133857506000546001600160a01b03828116620100009092041614155b61137f576040805162461bcd60e51b815260206004820152601360248201527213dddb995c9cda1a5c081a5b98dbdc9c9958dd606a1b604482015290519081900360640190fd5b600080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6002546001600160a01b031681565b60075481565b6003546001600160a01b031681565b6000826113dc57506000611429565b828202828482816113e957fe5b04146114265760405162461bcd60e51b81526004018080602001828103825260218152602001806118ef6021913960400191505060405180910390fd5b90505b92915050565b600061142683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506117d2565b600061142683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611874565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b6020831061152f5780518252601f199092019160209182019101611510565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611591576040519150601f19603f3d011682016040523d82523d6000602084013e611596565b606091505b50915091508180156115c45750805115806115c457508080602001905160208110156115c157600080fd5b50515b611615576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b600082820183811015611426576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000948594938a169392918291908083835b602083106116fa5780518252601f1990920191602091820191016116db565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461175c576040519150601f19603f3d011682016040523d82523d6000602084013e611761565b606091505b509150915081801561178f57508051158061178f575080806020019051602081101561178c57600080fd5b50515b6117ca5760405162461bcd60e51b81526004018080602001828103825260248152602001806119106024913960400191505060405180910390fd5b505050505050565b6000818361185e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561182357818101518382015260200161180b565b50505050905090810190601f1680156118505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161186a57fe5b0495945050505050565b600081848411156118c65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561182357818101518382015260200161180b565b50505090039056fe596f7520617265206e6f7420746865206f776e65720000000000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544a2646970667358221220a5d5bfe0063a6f2644d20d73c7506e39157c9d9ecc1df9aeb6b8743aa4f6d5a364736f6c63430007060033

Deployed Bytecode Sourcemap

22035:7365:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22437:16;;;:::i;:::-;;;;;;;;;;;;;;;;22194:33;;;:::i;:::-;;;;-1:-1:-1;;;;;22194:33:0;;;;;;;;;;;;;;22104:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;28489:226;;;;;;;;;;;;;;;;-1:-1:-1;28489:226:0;-1:-1:-1;;;;;28489:226:0;;:::i;:::-;;26800:871;;;:::i;28818:142::-;;;;;;;;;;;;;;;;-1:-1:-1;28818:142:0;;:::i;25505:501::-;;;;;;;;;;;;;;;;-1:-1:-1;25505:501:0;-1:-1:-1;;;;;25505:501:0;;:::i;27790:254::-;;;;;;;;;;;;;;;;-1:-1:-1;27790:254:0;-1:-1:-1;;;;;27790:254:0;;:::i;24140:398::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24140:398:0;;;;;;;;;;;;;:::i;22167:20::-;;;:::i;22328:28::-;;;:::i;22831:41::-;;;;;;;;;;;;;;;;-1:-1:-1;22831:41:0;-1:-1:-1;;;;;22831:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24601:100;;;:::i;22530:21::-;;;:::i;26194:551::-;;;;;;;;;;;;;;;;-1:-1:-1;26194:551:0;;;;;;;:::i;22389:15::-;;;:::i;24855:538::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24855:538:0;;;;;;;;:::i;28156:218::-;;;;;;;;;;;;;;;;-1:-1:-1;28156:218:0;-1:-1:-1;;;;;28156:218:0;;:::i;22134:20::-;;;:::i;29026:79::-;;;:::i;22595:18::-;;;:::i;22650:23::-;;;;;;;;;;;;;;;;-1:-1:-1;22650:23:0;;:::i;29210:187::-;;;;;;;;;;;;;;;;-1:-1:-1;29210:187:0;-1:-1:-1;;;;;29210:187:0;;:::i;22240:22::-;;;:::i;22474:23::-;;;:::i;22269:27::-;;;:::i;22437:16::-;;;;:::o;22194:33::-;;;-1:-1:-1;;;;;22194:33:0;;:::o;22104:23::-;;;;;;:::o;28489:226::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28575:28:0;::::1;::::0;;::::1;::::0;:63:::1;;-1:-1:-1::0;28625:13:0::1;::::0;-1:-1:-1;;;;;28607:31:0;;::::1;28625:13:::0;::::1;28607:31;;28575:63;28567:99;;;::::0;;-1:-1:-1;;;28567:99:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28677:13;:30:::0;;-1:-1:-1;;;;;;28677:30:0::1;-1:-1:-1::0;;;;;28677:30:0;;;::::1;::::0;;;::::1;::::0;;28489:226::o;26800:871::-;26839:10;23350:1;23321:16;;;:7;:16;;;;;:26;;;23313:68;;;;;-1:-1:-1;;;23313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23565:8:::1;::::0;::::1;::::0;::::1;;;23564:9;23556:36;;;::::0;;-1:-1:-1;;;23556:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;23556:36:0;;;;;;;;;;;;;::::1;;26901:3:::2;;26882:15;:22;;26874:58;;;::::0;;-1:-1:-1;;;26874:58:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;26963:1;26951:9;;:13;26943:55;;;::::0;;-1:-1:-1;;;26943:55:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;27048:9;::::0;27025:10:::2;27017:19;::::0;;;:7:::2;:19;::::0;;;;:28:::2;;::::0;:40:::2;27009:76;;;::::0;;-1:-1:-1;;;27009:76:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;27146:10;27106:18;27138:19:::0;;;:7:::2;:19;::::0;;;;:28:::2;;::::0;27135:292:::2;;27237:9;::::0;27211:10:::2;27203:19;::::0;;;:7:::2;:19;::::0;;;;:29:::2;;::::0;:53:::2;::::0;27252:3:::2;::::0;27203:44:::2;::::0;:33:::2;:44::i;:::-;:48:::0;::::2;:53::i;:::-;27187:69;;27135:292;;;27395:10;27387:19;::::0;;;:7:::2;:19;::::0;;;;:27:::2;::::0;::::2;::::0;27352:28:::2;::::0;;::::2;::::0;27337:9:::2;::::0;27304:111:::2;::::0;27387:27;27305:76:::2;::::0;:42:::2;::::0;27387:27;;27305:31:::2;:42::i;:76::-;27304:82:::0;::::2;:111::i;:::-;27288:127;;27135:292;27475:12;::::0;27447:68:::2;::::0;-1:-1:-1;;;;;27475:12:0::2;27489:10;27501:13:::0;27447:27:::2;:68::i;:::-;27567:9;::::0;27544:10:::2;27536:19;::::0;;;:7:::2;:19;::::0;;;;:28:::2;::::0;::::2;:40:::0;;;;27617:27:::2;;::::0;:46:::2;::::0;27649:13;27617:31:::2;:46::i;:::-;27595:10;27587:19;::::0;;;:7:::2;:19;::::0;;;;:27:::2;;:76:::0;-1:-1:-1;;26800:871:0:o;28818:142::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;28881:9;;;::::1;::::0;:24:::1;;;28902:3;;28894:4;:11;;28881:24;28873:50;;;::::0;;-1:-1:-1;;;28873:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28873:50:0;;;;;;;;;;;;;::::1;;28934:3;:10:::0;28818:142::o;25505:501::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25578:20:0;::::1;25570:50;;;::::0;;-1:-1:-1;;;25570:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;25570:50:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;25639:15:0;::::1;25667:1;25639:15:::0;;;:7:::1;:15;::::0;;;;:25:::1;;::::0;25631:57:::1;;;::::0;;-1:-1:-1;;;25631:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;25631:57:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;25730:15:0;::::1;25709:18;25730:15:::0;;;:7:::1;:15;::::0;;;;:26;25791:6:::1;25798:13:::0;;25730:26;;25709:18;-1:-1:-1;;25798:15:0;;;25791:23;::::1;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;25835:6:::1;:21:::0;;-1:-1:-1;;;;;25791:23:0;;::::1;::::0;-1:-1:-1;25791:23:0;;25842:13;;25835:21;::::1;;;;;;::::0;;;::::1;::::0;;;;;;::::1;:37:::0;;-1:-1:-1;;;;;;25835:37:0::1;-1:-1:-1::0;;;;;25835:37:0;;::::1;;::::0;;25883:22;;::::1;::::0;;:7:::1;:22:::0;;;;;;:49;;;25953:6:::1;:12:::0;;;::::1;;;;;::::0;;;::::1;::::0;;;;;-1:-1:-1;;25953:12:0;;;;;-1:-1:-1;;;;;;25953:12:0::1;::::0;;;;;;;;-1:-1:-1;;;;;25983:15:0;;;::::1;::::0;;:7:::1;:15:::0;;;-1:-1:-1;;25983:15:0;;;25976:22;;;25953:12:::1;25976:22:::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;;::::0;25505:501::o;27790:254::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;27870:21:0;::::1;27862:57;;;::::0;;-1:-1:-1;;;27862:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;27862:57:0;;;;;;;;;;;;;::::1;;27968:12;::::0;27991:44:::1;::::0;;-1:-1:-1;;;27991:44:0;;28029:4:::1;27991:44;::::0;::::1;::::0;;;27940:96:::1;::::0;-1:-1:-1;;;;;27968:12:0::1;::::0;27982:7;;27968:12;;27991:29:::1;::::0;:44;;;;;::::1;::::0;;;;;;;;27968:12;27991:44;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27991:44:0;27940:27:::1;:96::i;:::-;27790:254:::0;:::o;24140:398::-;23060:7;;-1:-1:-1;;;;;23060:7:0;23038:10;:30;23030:66;;;;;-1:-1:-1;;;23030:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23458:11:::1;::::0;::::1;;23457:12;23449:44;;;::::0;;-1:-1:-1;;;23449:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;23449:44:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;24290:22:0;::::2;24282:58;;;::::0;;-1:-1:-1;;;24282:58:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24282:58:0;;;;;;;;;;;;;::::2;;24359:9:::0;;;::::2;::::0;:23:::2;;-1:-1:-1::0;24372:10:0;;::::2;24359:23;24351:57;;;::::0;;-1:-1:-1;;;24351:57:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24351:57:0;;;;;;;;;;;;;::::2;;24429:11;:18:::0;;-1:-1:-1;;24429:18:0::2;24443:4;24429:18;::::0;;24468:7:::2;:18:::0;;-1:-1:-1;;;;;24468:18:0;;::::2;-1:-1:-1::0;;;;;;24468:18:0;;::::2;::::0;;;::::2;::::0;;;24497:3:::2;:10:::0;24518:4:::2;:12:::0;24140:398::o;22167:20::-;;;;;;-1:-1:-1;;;;;22167:20:0;;:::o;22328:28::-;;;-1:-1:-1;;;;;22328:28:0;;:::o;22831:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24601:100::-;24680:6;:13;;24601:100::o;22530:21::-;;;;:::o;26194:551::-;23187:13;;-1:-1:-1;;;;;23187:13:0;23173:10;:27;23165:70;;;;;-1:-1:-1;;;23165:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23565:8:::1;::::0;::::1;::::0;::::1;;;23564:9;23556:36;;;::::0;;-1:-1:-1;;;23556:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;23556:36:0;;;;;;;;;;;;;::::1;;26304:12:::0;;;::::2;::::0;:29:::2;;-1:-1:-1::0;26320:13:0;;::::2;26304:29;26296:69;;;::::0;;-1:-1:-1;;;26296:69:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;26384:12;::::0;-1:-1:-1;;;;;26384:12:0::2;26376:60;;;::::0;;-1:-1:-1;;;26376:60:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;26376:60:0;;;;;;;;;;;;;::::2;;26467:3;26455:9;;:15;26447:50;;;::::0;;-1:-1:-1;;;26447:50:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;26447:50:0;;;;;;;;;;;;;::::2;;26550:12;::::0;26518:81:::2;::::0;-1:-1:-1;;;;;26550:12:0::2;26564:10;26584:4;26591:7:::0;26518:31:::2;:81::i;:::-;26634:11;::::0;:24:::2;::::0;26650:7;26634:15:::2;:24::i;:::-;26620:11;:38:::0;26681:9:::2;::::0;:23:::2;::::0;26695:8;26681:13:::2;:23::i;:::-;26669:9;:35:::0;26724:6:::2;::::0;:13:::2;::::0;26735:1:::2;26724:10;:13::i;:::-;26715:6;:22:::0;-1:-1:-1;;26194:551:0:o;22389:15::-;;;;:::o;24855:538::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24948:20:0;::::1;24940:42;;;::::0;;-1:-1:-1;;;24940:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24940:42:0;;;;;;;;;;;;;::::1;;25001:14:::0;24993:47:::1;;;::::0;;-1:-1:-1;;;24993:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24993:47:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;25064:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;:25:::1;;::::0;25061:236:::1;;25110:6;:19:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;;;;25110:19:0::1;-1:-1:-1::0;;;;;25110:19:0;::::1;::::0;;::::1;::::0;;;25187:13;;-1:-1:-1;25158:15:0;;;:7:::1;25110:19;25158:15:::0;;;;:42;;;25215:24:::1;::::0;::::1;:28:::0;;;25258:23:::1;;:27:::0;25061:236:::1;-1:-1:-1::0;;;;;25345:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;:25:::1;;::::0;:40:::1;::::0;25375:9;25345:29:::1;:40::i;:::-;-1:-1:-1::0;;;;;25317:15:0;;::::1;;::::0;;;:7:::1;:15;::::0;;;;:25:::1;;:68:::0;;;;-1:-1:-1;24855:538:0:o;28156:218::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28240:27:0;::::1;::::0;;::::1;::::0;:60:::1;;-1:-1:-1::0;28288:12:0::1;::::0;-1:-1:-1;;;;;28271:29:0;;::::1;28288:12:::0;::::1;28271:29;;28240:60;28232:95;;;::::0;;-1:-1:-1;;;28232:95:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28232:95:0;;;;;;;;;;;;;::::1;;28338:12;:28:::0;;-1:-1:-1;;;;;;28338:28:0::1;-1:-1:-1::0;;;;;28338:28:0;;;::::1;::::0;;;::::1;::::0;;28156:218::o;22134:20::-;;;;;;;;;:::o;29026:79::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;29089:8:::1;::::0;;-1:-1:-1;;29077:20:0;::::1;29089:8;::::0;;;::::1;;;29088:9;29077:20:::0;;::::1;;::::0;;29026:79::o;22595:18::-;;;;:::o;22650:23::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22650:23:0;;-1:-1:-1;22650:23:0;:::o;29210:187::-;22936:5;;;;;-1:-1:-1;;;;;22936:5:0;22922:10;:19;22914:53;;;;;-1:-1:-1;;;22914:53:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22914:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29292:23:0;::::1;::::0;;::::1;::::0;:45:::1;;-1:-1:-1::0;29332:5:0::1;::::0;-1:-1:-1;;;;;29319:18:0;;::::1;29332:5:::0;;;::::1;;29319:18;;29292:45;29284:77;;;::::0;;-1:-1:-1;;;29284:77:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29284:77:0;;;;;;;;;;;;;::::1;;29372:5;:17:::0;;-1:-1:-1;;;;;29372:17:0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;;29372:17:0;;::::1;::::0;;;::::1;::::0;;29210:187::o;22240:22::-;;;-1:-1:-1;;;;;22240:22:0;;:::o;22474:23::-;;;;:::o;22269:27::-;;;-1:-1:-1;;;;;22269:27:0;;:::o;5924:471::-;5982:7;6227:6;6223:47;;-1:-1:-1;6257:1:0;6250:8;;6223:47;6294:5;;;6298:1;6294;:5;:1;6318:5;;;;;:10;6310:56;;;;-1:-1:-1;;;6310:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6386:1;-1:-1:-1;5924:471:0;;;;;:::o;6871:132::-;6929:7;6956:39;6960:1;6963;6956:39;;;;;;;;;;;;;;;;;:3;:39::i;5034:136::-;5092:7;5119:43;5123:1;5126;5119:43;;;;;;;;;;;;;;;;;:3;:43::i;20480:361::-;20675:45;;;-1:-1:-1;;;;;20675:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20675:45:0;-1:-1:-1;;;20675:45:0;;;20664:57;;;;20629:12;;;;20664:10;;;;20675:45;20664:57;;;20675:45;20664:57;;20675:45;20664:57;;;;;;;;;;-1:-1:-1;;20664:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20628:93;;;;20740:7;:57;;;;-1:-1:-1;20752:11:0;;:16;;:44;;;20783:4;20772:24;;;;;;;;;;;;;;;-1:-1:-1;20772:24:0;20752:44;20732:101;;;;;-1:-1:-1;;;20732:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20480:361;;;;;:::o;4570:181::-;4628:7;4660:5;;;4684:6;;;;4676:46;;;;;-1:-1:-1;;;4676:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20849:402;21074:51;;;-1:-1:-1;;;;;21074:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21074:51:0;-1:-1:-1;;;21074:51:0;;;21063:63;;;;21028:12;;;;21063:10;;;;21074:51;21063:63;;;21074:51;21063:63;;21074:51;21063:63;;;;;;;;;;-1:-1:-1;;21063:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21027:99;;;;21145:7;:57;;;;-1:-1:-1;21157:11:0;;:16;;:44;;;21188:4;21177:24;;;;;;;;;;;;;;;-1:-1:-1;21177:24:0;21157:44;21137:106;;;;-1:-1:-1;;;21137:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20849:402;;;;;;:::o;7499:278::-;7585:7;7620:12;7613:5;7605:28;;;;-1:-1:-1;;;7605:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7644:9;7660:1;7656;:5;;;;;;;7499:278;-1:-1:-1;;;;;7499:278:0:o;5473:192::-;5559:7;5595:12;5587:6;;;;5579:29;;;;-1:-1:-1;;;5579:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5631:5:0;;;5473:192::o

Swarm Source

ipfs://a5d5bfe0063a6f2644d20d73c7506e39157c9d9ecc1df9aeb6b8743aa4f6d5a3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.