ETH Price: $3,640.96 (-0.51%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stakekgc103859412020-07-03 10:29:131647 days ago1593772153IN
0x2E0bacB0...7729aF6e2
0 ETH0.0067818827
Transfer103852442020-07-03 7:55:561647 days ago1593762956IN
0x2E0bacB0...7729aF6e2
0 ETH0.00096646
Stakekgc103235442020-06-23 18:05:331657 days ago1592935533IN
0x2E0bacB0...7729aF6e2
0 ETH0.0070854330
Stakekgc103234662020-06-23 17:47:251657 days ago1592934445IN
0x2E0bacB0...7729aF6e2
0 ETH0.0115543246
Stakekgc101594832020-05-29 8:06:511682 days ago1590739611IN
0x2E0bacB0...7729aF6e2
0 ETH0.0080377932
Stakekgc101482582020-05-27 14:04:341684 days ago1590588274IN
0x2E0bacB0...7729aF6e2
0 ETH0.0085025136
Stakekgc100099262020-05-06 2:09:181705 days ago1588730958IN
0x2E0bacB0...7729aF6e2
0 ETH0.001406615.6
Stakekgc100008092020-05-04 16:26:281707 days ago1588609588IN
0x2E0bacB0...7729aF6e2
0 ETH0.0025118110
Stakekgc99954412020-05-03 20:48:511708 days ago1588538931IN
0x2E0bacB0...7729aF6e2
0 ETH0.000753543
Stakekgc99848992020-05-02 5:29:201709 days ago1588397360IN
0x2E0bacB0...7729aF6e2
0 ETH0.000753543
Stakekgc99768312020-04-30 23:30:061710 days ago1588289406IN
0x2E0bacB0...7729aF6e2
0 ETH0.00125595
Stakekgc99767642020-04-30 23:19:151710 days ago1588288755IN
0x2E0bacB0...7729aF6e2
0 ETH0.001298995.50000023
Stakekgc99750332020-04-30 16:29:301711 days ago1588264170IN
0x2E0bacB0...7729aF6e2
0 ETH0.0027629911
Stakekgc99746842020-04-30 15:17:411711 days ago1588259861IN
0x2E0bacB0...7729aF6e2
0 ETH0.0037788916
Stakekgc99746612020-04-30 15:12:201711 days ago1588259540IN
0x2E0bacB0...7729aF6e2
0 ETH0.0040188916
Withdraw Share98512332020-04-11 13:26:001730 days ago1586611560IN
0x2E0bacB0...7729aF6e2
0 ETH0.000232473
Withdraw Share97160642020-03-21 16:25:371751 days ago1584807937IN
0x2E0bacB0...7729aF6e2
0 ETH0.000124982
Withdraw Share97156472020-03-21 14:56:051751 days ago1584802565IN
0x2E0bacB0...7729aF6e2
0 ETH0.000154982
Withdraw Share97155312020-03-21 14:25:481751 days ago1584800748IN
0x2E0bacB0...7729aF6e2
0 ETH0.000077491
Withdraw Share97152032020-03-21 13:13:261751 days ago1584796406IN
0x2E0bacB0...7729aF6e2
0 ETH0.000410715.3
Withdraw Share97100362020-03-20 17:59:431752 days ago1584727183IN
0x2E0bacB0...7729aF6e2
0 ETH0.000171792.21689507
Withdraw Share96259932020-03-07 18:57:151765 days ago1583607435IN
0x2E0bacB0...7729aF6e2
0 ETH0.000124982
Withdraw Share96249762020-03-07 15:09:431765 days ago1583593783IN
0x2E0bacB0...7729aF6e2
0 ETH0.000124982
Withdraw Share96142702020-03-06 0:00:531766 days ago1583452853IN
0x2E0bacB0...7729aF6e2
0 ETH0.000062491
Withdraw Share95922752020-03-02 14:29:141770 days ago1583159354IN
0x2E0bacB0...7729aF6e2
0 ETH0.000312465
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KGCStake

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-08-03
*/

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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-solidity/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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see `ERC20Detailed`.
 */
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.
     *
     * > 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);
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @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.
     *
     * > Note that 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;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.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 `ERC20Mintable`.
 *
 * *For a detailed writeup see our guide [How to implement supply
 * mechanisms](https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226).*
 *
 * 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 IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev See `IERC20.balanceOf`.
     */
    function balanceOf(address account) public view 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 returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

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

    /**
     * @dev See `IERC20.approve`.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        _approve(msg.sender, spender, value);
        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 `value`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount));
        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 returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][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 returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue));
        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 {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount);
        _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 {
        require(account != address(0), "ERC20: mint to the zero address");

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

     /**
     * @dev Destoys `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 value) internal {
        require(account != address(0), "ERC20: burn from the zero address");

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 value) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Destoys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See `_burn` and `_approve`.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount));
    }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

// File: openzeppelin-solidity/contracts/access/roles/PauserRole.sol

pragma solidity ^0.5.0;


contract PauserRole {
    using Roles for Roles.Role;

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

    constructor () internal {
        _addPauser(msg.sender);
    }

    modifier onlyPauser() {
        require(isPauser(msg.sender), "PauserRole: caller does not have the Pauser role");
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(msg.sender);
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }
}

// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol

pragma solidity ^0.5.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is PauserRole {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by a pauser (`account`).
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyPauser whenNotPaused {
        _paused = true;
        emit Paused(msg.sender);
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyPauser whenPaused {
        _paused = false;
        emit Unpaused(msg.sender);
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Pausable.sol

pragma solidity ^0.5.0;



/**
 * @title Pausable token
 * @dev ERC20 modified with pausable transfers.
 */
contract ERC20Pausable is ERC20, Pausable {
    function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
        return super.transfer(to, value);
    }

    function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
        return super.transferFrom(from, to, value);
    }

    function approve(address spender, uint256 value) public whenNotPaused returns (bool) {
        return super.approve(spender, value);
    }

    function increaseAllowance(address spender, uint addedValue) public whenNotPaused returns (bool) {
        return super.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint subtractedValue) public whenNotPaused returns (bool) {
        return super.decreaseAllowance(spender, subtractedValue);
    }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @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.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be aplied to your functions to restrict their use to
 * the owner.
 */
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 () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/KGCStake.sol

pragma solidity >=0.4.21 <0.6.0;

//import 'github.com/OpenZeppelin/zeppelin-solidity/contracts/math/SafeMath.sol';





contract ERC20Interface {
    function totalSupply() public view returns (uint);
    function balanceOf(address tokenOwner) public view returns (uint balance);
    function allowance(address tokenOwner, address spender) public view returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}


//another contract should be KGCStaking ,
contract KGCStake is Ownable{
  using SafeMath for uint256;

  event KGCStaked(uint256 tid, address from,uint256 amount ,uint256 stakeAt,uint256 stakeDuration, string data);
  event KGCWithdrawed(uint256 tid,uint256 timestamp);

  enum StakeTransStatus {
    STATUS_STAKED,
    STATUS_WITHDRAWED
  }

  struct StakeTrans {
    uint256 id;
    StakeTransStatus status;
    uint256 amount;
    address from;
    uint256 stakedAt;
    uint256 stakeDuration;
    string data;
  }

  ERC20Interface kgcInstance; 
  uint256 public totalTrans;
  mapping(address => uint256) kgcbalances;
  StakeTrans[] stakeTrans;

  constructor(address kgcAddress) public{
    kgcInstance = ERC20Interface(kgcAddress);
  }




  function balance(address from) public view returns (uint256) {
    return kgcbalances[from];
  }

  function stakekgc(uint256 value,uint256 duration,string memory data)  public {
    address from = msg.sender;
    require(kgcInstance.transferFrom(from, address(this), value));
    uint256 current = kgcbalances[from];
    kgcbalances[from]  = current.add(value);

    uint256 transId = totalTrans;
    StakeTrans memory trans = StakeTrans({
      id: transId,
      status :StakeTransStatus.STATUS_STAKED,
      amount : value,
      from : msg.sender,
      stakedAt : now,
      stakeDuration : duration,
      data : data
    });
    totalTrans = totalTrans.add(1);
    stakeTrans.push(trans);

    emit KGCStaked(transId, from, value, now,duration,data);
  }


  function withdrawShare(uint tid) public{
    StakeTrans storage _trans =  stakeTrans[tid];
    //check msg.sender  status and stake duration
    require(_trans.from == msg.sender);
    require(_trans.status == StakeTransStatus.STATUS_STAKED);
    require( _trans.stakedAt + _trans.stakeDuration  <= now);

    //transfer 
    kgcInstance.transfer( _trans.from, _trans.amount );
    //update status
    _trans.status = StakeTransStatus.STATUS_WITHDRAWED;
    //update balance
    uint256 current = kgcbalances[_trans.from];
    kgcbalances[_trans.from]  = current.sub(_trans.amount);
    //eemit event
    emit KGCWithdrawed(tid,now);
  }
  
  function getTrans(uint tid) public view returns(uint256 id,StakeTransStatus status,uint256 amount,address from,uint256 stakedAt, uint256 stakeDuration,string memory data){
    StakeTrans storage _trans =  stakeTrans[tid];
    id = _trans.id;
    status = _trans.status;
    amount = _trans.amount;
    from = _trans.from;
    stakeDuration = _trans.stakeDuration;
    stakedAt = _trans.stakedAt;
    data = _trans.data;   
  }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tid","type":"uint256"}],"name":"getTrans","outputs":[{"name":"id","type":"uint256"},{"name":"status","type":"uint8"},{"name":"amount","type":"uint256"},{"name":"from","type":"address"},{"name":"stakedAt","type":"uint256"},{"name":"stakeDuration","type":"uint256"},{"name":"data","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"},{"name":"duration","type":"uint256"},{"name":"data","type":"string"}],"name":"stakekgc","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalTrans","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tid","type":"uint256"}],"name":"withdrawShare","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"from","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"kgcAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tid","type":"uint256"},{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"stakeAt","type":"uint256"},{"indexed":false,"name":"stakeDuration","type":"uint256"},{"indexed":false,"name":"data","type":"string"}],"name":"KGCStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tid","type":"uint256"},{"indexed":false,"name":"timestamp","type":"uint256"}],"name":"KGCWithdrawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

608060405234801561001057600080fd5b506040516113d23803806113d28339818101604052602081101561003357600080fd5b8101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611281806101516000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638f38feb8116100665780638f38feb81461021957806390800538146102e85780639c7fc15414610306578063e3d670d714610334578063f2fde38b1461038c57610093565b8063715018a6146100985780637fa15637146100a25780638da5cb5b146101ad5780638f32d59b146101f7575b600080fd5b6100a06103d0565b005b6100ce600480360360208110156100b857600080fd5b8101908080359060200190929190505050610509565b604051808881526020018760018111156100e457fe5b60ff1681526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561016c578082015181840152602081019050610151565b50505050905090810190601f1680156101995780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b6101b5610635565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101ff61065e565b604051808215151515815260200191505060405180910390f35b6102e66004803603606081101561022f57600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561026057600080fd5b82018360208201111561027257600080fd5b8035906020019184600183028401116401000000008311171561029457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506106b5565b005b6102f0610ad6565b6040518082815260200191505060405180910390f35b6103326004803603602081101561031c57600080fd5b8101908080359060200190929190505050610adc565b005b6103766004803603602081101561034a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dff565b6040518082815260200191505060405180910390f35b6103ce600480360360208110156103a257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e48565b005b6103d861065e565b61044a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600080600080600080606060006004898154811061052357fe5b90600052602060002090600702019050806000015497508060010160009054906101000a900460ff169650806002015495508060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508060050154925080600401549350806006018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106225780601f106105f757610100808354040283529160200191610622565b820191906000526020600020905b81548152906001019060200180831161060557829003601f168201915b5050505050915050919395979092949650565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6000339050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561079757600080fd5b505af11580156107ab573d6000803e3d6000fd5b505050506040513d60208110156107c157600080fd5b81019080805190602001909291905050506107db57600080fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506108328582610ece90919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006002549050610884611123565b6040518060e00160405280838152602001600060018111156108a257fe5b81526020018881526020013373ffffffffffffffffffffffffffffffffffffffff1681526020014281526020018781526020018681525090506108f16001600254610ece90919063ffffffff16565b600281905550600481908060018154018082558091505090600182039060005260206000209060070201600090919290919091506000820151816000015560208201518160010160006101000a81548160ff0219169083600181111561095357fe5b02179055506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816004015560a0820151816005015560c08201518160060190805190602001906109d9929190611181565b505050507f8593b43d6d5d1b54497b005b4791e103eec3972fb27705eb5b907919fcc8e220828589428a8a604051808781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610a8e578082015181840152602081019050610a73565b50505050905090810190601f168015610abb5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a150505050505050565b60025481565b600060048281548110610aeb57fe5b906000526020600020906007020190503373ffffffffffffffffffffffffffffffffffffffff168160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b5757600080fd5b60006001811115610b6457fe5b8160010160009054906101000a900460ff166001811115610b8157fe5b14610b8b57600080fd5b4281600501548260040154011115610ba257600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c7357600080fd5b505af1158015610c87573d6000803e3d6000fd5b505050506040513d6020811015610c9d57600080fd5b81019080805190602001909291905050505060018160010160006101000a81548160ff02191690836001811115610cd057fe5b02179055506000600360008360030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d54826002015482610f5690919063ffffffff16565b600360008460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f21c290195f2b0738dc4370d1241192cbcec7186700873ed0df50e5aef9c405f38342604051808381526020018281526020019250505060405180910390a1505050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e5061065e565b610ec2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610ecb81610fdf565b50565b600080828401905083811015610f4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600082821115610fce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611065576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806112276026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040518060e00160405280600081526020016000600181111561114257fe5b815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111c257805160ff19168380011785556111f0565b828001600101855582156111f0579182015b828111156111ef5782518255916020019190600101906111d4565b5b5090506111fd9190611201565b5090565b61122391905b8082111561121f576000816000905550600101611207565b5090565b9056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72305820c34aa7d721ee6b42d28747596fbfced62efe4b1692fdb3ffcd2dfc3cc2b5b71464736f6c634300050a0032000000000000000000000000a8262eb913fccea4c3f77fc95b8b4043b384cfbb

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638f38feb8116100665780638f38feb81461021957806390800538146102e85780639c7fc15414610306578063e3d670d714610334578063f2fde38b1461038c57610093565b8063715018a6146100985780637fa15637146100a25780638da5cb5b146101ad5780638f32d59b146101f7575b600080fd5b6100a06103d0565b005b6100ce600480360360208110156100b857600080fd5b8101908080359060200190929190505050610509565b604051808881526020018760018111156100e457fe5b60ff1681526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561016c578082015181840152602081019050610151565b50505050905090810190601f1680156101995780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b6101b5610635565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101ff61065e565b604051808215151515815260200191505060405180910390f35b6102e66004803603606081101561022f57600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561026057600080fd5b82018360208201111561027257600080fd5b8035906020019184600183028401116401000000008311171561029457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506106b5565b005b6102f0610ad6565b6040518082815260200191505060405180910390f35b6103326004803603602081101561031c57600080fd5b8101908080359060200190929190505050610adc565b005b6103766004803603602081101561034a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dff565b6040518082815260200191505060405180910390f35b6103ce600480360360208110156103a257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e48565b005b6103d861065e565b61044a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600080600080600080606060006004898154811061052357fe5b90600052602060002090600702019050806000015497508060010160009054906101000a900460ff169650806002015495508060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508060050154925080600401549350806006018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106225780601f106105f757610100808354040283529160200191610622565b820191906000526020600020905b81548152906001019060200180831161060557829003601f168201915b5050505050915050919395979092949650565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6000339050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561079757600080fd5b505af11580156107ab573d6000803e3d6000fd5b505050506040513d60208110156107c157600080fd5b81019080805190602001909291905050506107db57600080fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506108328582610ece90919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006002549050610884611123565b6040518060e00160405280838152602001600060018111156108a257fe5b81526020018881526020013373ffffffffffffffffffffffffffffffffffffffff1681526020014281526020018781526020018681525090506108f16001600254610ece90919063ffffffff16565b600281905550600481908060018154018082558091505090600182039060005260206000209060070201600090919290919091506000820151816000015560208201518160010160006101000a81548160ff0219169083600181111561095357fe5b02179055506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816004015560a0820151816005015560c08201518160060190805190602001906109d9929190611181565b505050507f8593b43d6d5d1b54497b005b4791e103eec3972fb27705eb5b907919fcc8e220828589428a8a604051808781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610a8e578082015181840152602081019050610a73565b50505050905090810190601f168015610abb5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a150505050505050565b60025481565b600060048281548110610aeb57fe5b906000526020600020906007020190503373ffffffffffffffffffffffffffffffffffffffff168160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b5757600080fd5b60006001811115610b6457fe5b8160010160009054906101000a900460ff166001811115610b8157fe5b14610b8b57600080fd5b4281600501548260040154011115610ba257600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c7357600080fd5b505af1158015610c87573d6000803e3d6000fd5b505050506040513d6020811015610c9d57600080fd5b81019080805190602001909291905050505060018160010160006101000a81548160ff02191690836001811115610cd057fe5b02179055506000600360008360030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d54826002015482610f5690919063ffffffff16565b600360008460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f21c290195f2b0738dc4370d1241192cbcec7186700873ed0df50e5aef9c405f38342604051808381526020018281526020019250505060405180910390a1505050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e5061065e565b610ec2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610ecb81610fdf565b50565b600080828401905083811015610f4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600082821115610fce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611065576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806112276026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040518060e00160405280600081526020016000600181111561114257fe5b815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111c257805160ff19168380011785556111f0565b828001600101855582156111f0579182015b828111156111ef5782518255916020019190600101906111d4565b5b5090506111fd9190611201565b5090565b61122391905b8082111561121f576000816000905550600101611207565b5090565b9056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72305820c34aa7d721ee6b42d28747596fbfced62efe4b1692fdb3ffcd2dfc3cc2b5b71464736f6c634300050a0032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a8262eb913fccea4c3f77fc95b8b4043b384cfbb

-----Decoded View---------------
Arg [0] : kgcAddress (address): 0xa8262Eb913FccEa4C3f77fc95b8b4043B384cFbB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a8262eb913fccea4c3f77fc95b8b4043b384cfbb


Deployed Bytecode Sourcemap

24950:2632:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24950:2632:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23304:140;;;:::i;:::-;;27144:435;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27144:435:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;27144:435:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22493:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;22859:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;25793:682;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25793:682:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;25793:682:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;25793:682:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;25793:682:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;25793:682:0;;;;;;;;;;;;;;;:::i;:::-;;25482:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26483:653;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26483:653:0;;;;;;;;;;;;;;;;;:::i;:::-;;25689:98;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25689:98:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23599:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23599:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;23304:140;22705:9;:7;:9::i;:::-;22697:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23403:1;23366:40;;23387:6;;;;;;;;;;;23366:40;;;;;;;;;;;;23434:1;23417:6;;:19;;;;;;;;;;;;;;;;;;23304:140::o;27144:435::-;27192:10;27203:23;27227:14;27242:12;27255:16;27273:21;27295:18;27321:25;27350:10;27361:3;27350:15;;;;;;;;;;;;;;;;;;27321:44;;27377:6;:9;;;27372:14;;27402:6;:13;;;;;;;;;;;;27393:22;;27431:6;:13;;;27422:22;;27458:6;:11;;;;;;;;;;;;27451:18;;27492:6;:20;;;27476:36;;27530:6;:15;;;27519:26;;27559:6;:11;;27552:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27144:435;;;;;;;;;;:::o;22493:79::-;22531:7;22558:6;;;;;;;;;;;22551:13;;22493:79;:::o;22859:92::-;22899:4;22937:6;;;;;;;;;;;22923:20;;:10;:20;;;22916:27;;22859:92;:::o;25793:682::-;25877:12;25892:10;25877:25;;25917:11;;;;;;;;;;;:24;;;25942:4;25956;25963:5;25917:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25917:52:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25917:52:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25917:52:0;;;;;;;;;;;;;;;;25909:61;;;;;;25977:15;25995:11;:17;26007:4;25995:17;;;;;;;;;;;;;;;;25977:35;;26040:18;26052:5;26040:7;:11;;:18;;;;:::i;:::-;26019:11;:17;26031:4;26019:17;;;;;;;;;;;;;;;:39;;;;26067:15;26085:10;;26067:28;;26102:23;;:::i;:::-;26128:211;;;;;;;;26152:7;26128:211;;;;26176:30;26128:211;;;;;;;;;;;;26224:5;26128:211;;;;26245:10;26128:211;;;;;;26275:3;26128:211;;;;26303:8;26128:211;;;;26327:4;26128:211;;;26102:237;;26359:17;26374:1;26359:10;;:14;;:17;;;;:::i;:::-;26346:10;:30;;;;26383:10;26399:5;26383:22;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;26383:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;26419:50;26429:7;26438:4;26444:5;26451:3;26455:8;26464:4;26419:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;26419:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25793:682;;;;;;;:::o;25482:25::-;;;;:::o;26483:653::-;26529:25;26558:10;26569:3;26558:15;;;;;;;;;;;;;;;;;;26529:44;;26654:10;26639:25;;:6;:11;;;;;;;;;;;;:25;;;26631:34;;;;;;26697:30;26680:47;;;;;;;;:6;:13;;;;;;;;;;;;:47;;;;;;;;;26672:56;;;;;;26787:3;26762:6;:20;;;26744:6;:15;;;:38;:46;;26735:56;;;;;;26817:11;;;;;;;;;;;:20;;;26839:6;:11;;;;;;;;;;;;26852:6;:13;;;26817:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26817:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26817:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26817:50:0;;;;;;;;;;;;;;;;;26911:34;26895:6;:13;;;:50;;;;;;;;;;;;;;;;;;;;;;;;26974:15;26992:11;:24;27004:6;:11;;;;;;;;;;;;26992:24;;;;;;;;;;;;;;;;26974:42;;27051:26;27063:6;:13;;;27051:7;:11;;:26;;;;:::i;:::-;27023:11;:24;27035:6;:11;;;;;;;;;;;;27023:24;;;;;;;;;;;;;;;:54;;;;27108:22;27122:3;27126;27108:22;;;;;;;;;;;;;;;;;;;;;;;;26483:653;;;:::o;25689:98::-;25741:7;25764:11;:17;25776:4;25764:17;;;;;;;;;;;;;;;;25757:24;;25689:98;;;:::o;23599:109::-;22705:9;:7;:9::i;:::-;22697:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23672:28;23691:8;23672:18;:28::i;:::-;23599:109;:::o;921:181::-;979:7;999:9;1015:1;1011;:5;999:17;;1040:1;1035;:6;;1027:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1093:1;1086:8;;;921:181;;;;:::o;1377:184::-;1435:7;1468:1;1463;:6;;1455:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1515:9;1531:1;1527;:5;1515:17;;1552:1;1545:8;;;1377:184;;;;:::o;23814:229::-;23908:1;23888:22;;:8;:22;;;;23880:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23998:8;23969:38;;23990:6;;;;;;;;;;;23969:38;;;;;;;;;;;;24027:8;24018:6;;:17;;;;;;;;;;;;;;;;;;23814:229;:::o;24950:2632::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://c34aa7d721ee6b42d28747596fbfced62efe4b1692fdb3ffcd2dfc3cc2b5b714

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.