ETH Price: $3,408.12 (+2.90%)

Contract

0x5b057B40dF0De8aDa714B02aFed89CDe0a7dbDBA
 

Overview

ETH Balance

0.792101463670043202 ETH

Eth Value

$2,699.58 (@ $3,408.12/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake160796872022-11-30 2:01:47724 days ago1669773707IN
0x5b057B40...e0a7dbDBA
0 ETH0.0008564310.87761484
Claim Reward160796802022-11-30 2:00:23724 days ago1669773623IN
0x5b057B40...e0a7dbDBA
0 ETH0.0009639611.12620756
Claim Reward153006852022-08-08 9:14:19838 days ago1659950059IN
0x5b057B40...e0a7dbDBA
0 ETH0.000402337.75559234
Unstake153006372022-08-08 9:03:31838 days ago1659949411IN
0x5b057B40...e0a7dbDBA
0 ETH0.0012779.86851469
Unstake147916112022-05-17 8:58:56921 days ago1652777936IN
0x5b057B40...e0a7dbDBA
0 ETH0.0025504119.70922845
Claim Reward146937212022-05-01 19:09:47937 days ago1651432187IN
0x5b057B40...e0a7dbDBA
0 ETH0.0045863152.93589634
Unstake143415442022-03-07 19:14:25992 days ago1646680465IN
0x5b057B40...e0a7dbDBA
0 ETH0.0035320731.45161249
Unstake138092562021-12-15 10:42:201074 days ago1639564940IN
0x5b057B40...e0a7dbDBA
0 ETH0.0038669449.11402189
Claim Reward138092532021-12-15 10:41:421074 days ago1639564902IN
0x5b057B40...e0a7dbDBA
0 ETH0.0024308346.72526126
Claim Reward138092532021-12-15 10:41:421074 days ago1639564902IN
0x5b057B40...e0a7dbDBA
0 ETH0.0038597544.5499086
Unstake136761402021-11-24 8:20:281095 days ago1637742028IN
0x5b057B40...e0a7dbDBA
0 ETH0.0111518399.3022102
Unstake134252592021-10-15 22:17:251135 days ago1634336245IN
0x5b057B40...e0a7dbDBA
0 ETH0.0084824107.73503104
Claim Reward134199972021-10-15 2:28:041135 days ago1634264884IN
0x5b057B40...e0a7dbDBA
0 ETH0.00939662108.4571884
Unstake133709672021-10-07 9:25:171143 days ago1633598717IN
0x5b057B40...e0a7dbDBA
0 ETH0.00857109108.86146473
Claim Reward133709632021-10-07 9:24:271143 days ago1633598667IN
0x5b057B40...e0a7dbDBA
0 ETH0.0105448121.70967298
Unstake132038852021-09-11 10:20:091169 days ago1631355609IN
0x5b057B40...e0a7dbDBA
0 ETH0.008451562.55740481
Transfer131337982021-08-31 14:18:541180 days ago1630419534IN
0x5b057B40...e0a7dbDBA
0.69 ETH0.0075186123.99983036
Unstake131325722021-08-31 9:40:261180 days ago1630402826IN
0x5b057B40...e0a7dbDBA
0 ETH0.0102534586.98143745
Unstake131151372021-08-28 16:57:261183 days ago1630169846IN
0x5b057B40...e0a7dbDBA
0 ETH0.0071437269.60998409
Claim Reward131151242021-08-28 16:55:181183 days ago1630169718IN
0x5b057B40...e0a7dbDBA
0 ETH0.0070503677.32615972
Unstake131092662021-08-27 19:11:241184 days ago1630091484IN
0x5b057B40...e0a7dbDBA
0 ETH0.0192838195.21779828
Unstake131076322021-08-27 13:17:201184 days ago1630070240IN
0x5b057B40...e0a7dbDBA
0 ETH0.0084550471.72524057
Claim Reward131076172021-08-27 13:14:271184 days ago1630070067IN
0x5b057B40...e0a7dbDBA
0 ETH0.00599565.75129873
Unstake130956442021-08-25 16:51:031186 days ago1629910263IN
0x5b057B40...e0a7dbDBA
0 ETH0.02428576206.0193735
Transfer130865832021-08-24 7:03:531187 days ago1629788633IN
0x5b057B40...e0a7dbDBA
0.26876502 ETH0.0038316661.26836453
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
160796802022-11-30 2:00:23724 days ago1669773623
0x5b057B40...e0a7dbDBA
0.01394869 ETH
153006372022-08-08 9:03:31838 days ago1659949411
0x5b057B40...e0a7dbDBA
0.01079787 ETH
147916112022-05-17 8:58:56921 days ago1652777936
0x5b057B40...e0a7dbDBA
0.05327672 ETH
146937212022-05-01 19:09:47937 days ago1651432187
0x5b057B40...e0a7dbDBA
0.12104416 ETH
143415442022-03-07 19:14:25992 days ago1646680465
0x5b057B40...e0a7dbDBA
0.04319149 ETH
138092532021-12-15 10:41:421074 days ago1639564902
0x5b057B40...e0a7dbDBA
0.0289827 ETH
136761402021-11-24 8:20:281095 days ago1637742028
0x5b057B40...e0a7dbDBA
0.09998831 ETH
134199972021-10-15 2:28:041135 days ago1634264884
0x5b057B40...e0a7dbDBA
0.05026192 ETH
133709632021-10-07 9:24:271143 days ago1633598667
0x5b057B40...e0a7dbDBA
0.08005219 ETH
132038852021-09-11 10:20:091169 days ago1631355609
0x5b057B40...e0a7dbDBA
0.01079787 ETH
131325722021-08-31 9:40:261180 days ago1630402826
0x5b057B40...e0a7dbDBA
0.00841078 ETH
131151372021-08-28 16:57:261183 days ago1630169846
0x5b057B40...e0a7dbDBA
0.0000053 ETH
131151242021-08-28 16:55:181183 days ago1630169718
0x5b057B40...e0a7dbDBA
0.10870025 ETH
131092662021-08-27 19:11:241184 days ago1630091484
0x5b057B40...e0a7dbDBA
0.01005009 ETH
131076322021-08-27 13:17:201184 days ago1630070240
0x5b057B40...e0a7dbDBA
0.00000308 ETH
131076172021-08-27 13:14:271184 days ago1630070067
0x5b057B40...e0a7dbDBA
0.05189984 ETH
130956442021-08-25 16:51:031186 days ago1629910263
0x5b057B40...e0a7dbDBA
0.12903323 ETH
130712982021-08-21 22:19:161190 days ago1629584356
0x5b057B40...e0a7dbDBA
0.0158311 ETH
129455472021-08-02 10:59:151209 days ago1627901955
0x5b057B40...e0a7dbDBA
0.03165099 ETH
128089422021-07-11 23:18:131230 days ago1626045493
0x5b057B40...e0a7dbDBA
0.0316622 ETH
127798882021-07-07 10:57:151235 days ago1625655435
0x5b057B40...e0a7dbDBA
0.00227967 ETH
127232602021-06-28 15:18:041244 days ago1624893484
0x5b057B40...e0a7dbDBA
0.00512927 ETH
127062982021-06-25 23:57:391246 days ago1624665459
0x5b057B40...e0a7dbDBA
0.01013317 ETH
126562552021-06-18 4:16:001254 days ago1623989760
0x5b057B40...e0a7dbDBA
0.03265462 ETH
126282292021-06-13 20:17:561259 days ago1623615476
0x5b057B40...e0a7dbDBA
0.01390294 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YsecYieldFarm

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : YsecYieldFarm.sol
/*
__/\\\________/\\\_____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\________/\\\\\\\\\_        
 _\///\\\____/\\\/____/\\\/////////\\\_\/\\\///////////______/\\\////////__       
  ___\///\\\/\\\/_____\//\\\______\///__\/\\\_______________/\\\/___________      
   _____\///\\\/________\////\\\_________\/\\\\\\\\\\\______/\\\_____________     
    _______\/\\\____________\////\\\______\/\\\///////______\/\\\_____________    
     _______\/\\\_______________\////\\\___\/\\\_____________\//\\\____________   
      _______\/\\\________/\\\______\//\\\__\/\\\______________\///\\\__________  
       _______\/\\\_______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\\\____\////\\\\\\\\\_ 
        _______\///__________\///////////_____\///////////////________\/////////__

Visit and follow!

* Website:  https://www.ysec.finance
* Twitter:  https://twitter.com/YearnSecure
* Telegram: https://t.me/YearnSecure
* Medium:   https://yearnsecure.medium.com/

*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

import "./Models/Staker.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/math/Math.sol";

contract YsecYieldFarm is Context, ReentrancyGuard, Ownable{
    using SafeMath for uint;

    address public _ysecTokenAddress;
    address public _ysecPresaleAddress;
    uint256 public StartDate;
    uint256 public EndDate;
    uint256 public EthAmount;
    uint256 public TotalStaked;
    uint256 public RewardPerTokenStored;
    uint256 public LastUpdateTime;
    uint256 public RewardRate;
    uint256 public TotalClaimedEthAmount;
    uint256 public DepositCount;

    uint256 public periodDuration = 14 days;

    mapping(address => Staker) public Stakers;
    uint256 public TotalStakers;

    event Staked(address forAddress, uint256 amount);
    event Unstaked(address forAddress, uint256 amount);
    event RewardClaimed(address forAddress, uint256 amount);
    event RewardAdded(uint256 reward);

    constructor(address tokenAddress, address ysecPresaleAddress) public{
        _ysecTokenAddress = tokenAddress;
        _ysecPresaleAddress = ysecPresaleAddress;
    }

    receive() DepositCheck() external payable {
        DepositCount = DepositCount.add(1);
        EthAmount = EthAmount.add(msg.value);
        if(StartDate != 0) NotifyRewardAmount(msg.value);
    }

    function Stake(uint256 amount) external nonReentrant() updateReward(_msgSender()){
        require(amount > 0, "Cannot stake 0");
        require(IERC20(_ysecTokenAddress).allowance(_msgSender(), address(this)) >= amount , "Transfer of token has not been approved");
        if(StartDate == 0) 
        {
            StartDate = block.timestamp;
            EndDate = block.timestamp.add(14 days);
            NotifyRewardAmount(EthAmount);
        }
        if(Stakers[_msgSender()].StakedAmount == 0) TotalStakers = TotalStakers.add(1);
        TotalStaked = TotalStaked.add(amount);
        Stakers[_msgSender()].StakedAmount = Stakers[_msgSender()].StakedAmount.add(amount);
        IERC20(_ysecTokenAddress).transferFrom(_msgSender(), address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function Unstake() external nonReentrant() updateReward(_msgSender()){
        require(Stakers[_msgSender()].StakedAmount > 0, "No staking amount found!");

        uint256 stakedAmount = Stakers[_msgSender()].StakedAmount;
        Stakers[_msgSender()].StakedAmount = 0;
        TotalStaked = TotalStaked.sub(stakedAmount);
        TotalStakers = TotalStakers.sub(1);
        IERC20(_ysecTokenAddress).transfer(_msgSender(), stakedAmount);

        InternalClaimReward();
        emit Unstaked(_msgSender(), stakedAmount);
    }

    function ClaimReward() external nonReentrant() updateReward(_msgSender()){
        InternalClaimReward();
    }

    function InternalClaimReward() private updateReward(_msgSender()){
        uint256 reward = Earned(_msgSender());
        if (reward > 0) {
            Stakers[_msgSender()].Reward = 0;
            TotalClaimedEthAmount = TotalClaimedEthAmount.add(reward);
            (bool successReward, ) = msg.sender.call{value: reward}('');
            require(successReward, "Reward transfer failed.");
            emit RewardClaimed(msg.sender, reward);
        }
    }

    modifier updateReward(address account) {
        RewardPerTokenStored = RewardPerToken();
        LastUpdateTime = LastTimeRewardApplicable();
        if (account != address(0)) {
            Stakers[account].Reward = Earned(account);
            Stakers[account].UserRewardPerTokenPaid = RewardPerTokenStored;
        }
        _;
    }

    function RewardPerToken() public view returns (uint256) {
        if (TotalStaked == 0) {
            return RewardPerTokenStored;
        }
        return
            RewardPerTokenStored.add(
                LastTimeRewardApplicable()
                .sub(LastUpdateTime)
                .mul(RewardRate)
                .mul(1e18)
                .div(TotalStaked)
            );
    }

    function LastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, EndDate);
    }

    function Earned(address account) public view returns (uint256) {
        return Stakers[account].StakedAmount.mul(RewardPerToken().sub(Stakers[account].UserRewardPerTokenPaid)).div(1e18)
            .add(Stakers[account].Reward);
    }

    function NotifyRewardAmount(uint256 reward) private updateReward(address(0)){
        uint256 remaining;
        if(block.timestamp >= EndDate) {
            remaining = 0;
        }else{
            remaining = EndDate.sub(block.timestamp);
        }        
        uint256 leftover = remaining.mul(RewardRate);
        if(block.timestamp >= EndDate) EndDate = block.timestamp.add(periodDuration);
        RewardRate = reward.add(leftover).div(EndDate - block.timestamp);
        LastUpdateTime = block.timestamp;
        emit RewardAdded(reward);
    }

    function GetStaker(address forAddress) public view returns(Staker memory){
        return Stakers[forAddress];
    }

    function GetStakedAmount(address forAddress) public view returns(uint256){
        return Stakers[forAddress].StakedAmount;
    }

    modifier DepositCheck(){
        require(_msgSender() == _ysecPresaleAddress || _msgSender() == owner(), "Caller is not allowed to deposit");
        _;
    }
}

File 2 of 8 : Staker.sol
/*
__/\\\________/\\\_____/\\\\\\\\\\\____/\\\\\\\\\\\\\\\________/\\\\\\\\\_        
 _\///\\\____/\\\/____/\\\/////////\\\_\/\\\///////////______/\\\////////__       
  ___\///\\\/\\\/_____\//\\\______\///__\/\\\_______________/\\\/___________      
   _____\///\\\/________\////\\\_________\/\\\\\\\\\\\______/\\\_____________     
    _______\/\\\____________\////\\\______\/\\\///////______\/\\\_____________    
     _______\/\\\_______________\////\\\___\/\\\_____________\//\\\____________   
      _______\/\\\________/\\\______\//\\\__\/\\\______________\///\\\__________  
       _______\/\\\_______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\\\____\////\\\\\\\\\_ 
        _______\///__________\///////////_____\///////////////________\/////////__

Visit and follow!

* Website:  https://www.ysec.finance
* Twitter:  https://twitter.com/YearnSecure
* Telegram: https://t.me/YearnSecure
* Medium:   https://yearnsecure.medium.com/

*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

struct Staker{
    uint256 StakedAmount;
    uint256 Reward;
    uint256 UserRewardPerTokenPaid;
}

File 3 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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;
    }
}

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @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(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 8 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 6 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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;
    }
}

File 7 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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);
}

File 8 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"ysecPresaleAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"forAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"forAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"forAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"ClaimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"DepositCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"Earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EthAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forAddress","type":"address"}],"name":"GetStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forAddress","type":"address"}],"name":"GetStaker","outputs":[{"components":[{"internalType":"uint256","name":"StakedAmount","type":"uint256"},{"internalType":"uint256","name":"Reward","type":"uint256"},{"internalType":"uint256","name":"UserRewardPerTokenPaid","type":"uint256"}],"internalType":"struct Staker","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Stakers","outputs":[{"internalType":"uint256","name":"StakedAmount","type":"uint256"},{"internalType":"uint256","name":"Reward","type":"uint256"},{"internalType":"uint256","name":"UserRewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"StartDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalClaimedEthAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalStakers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_ysecPresaleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ysecTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405262127500600d553480156200001857600080fd5b5060405162001644380380620016448339810160408190526200003b91620000d0565b600160009081556200004c620000cc565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b039384166001600160a01b0319918216179091556003805492909316911617905562000127565b3390565b60008060408385031215620000e3578182fd5b8251620000f0816200010e565b602084015190925062000103816200010e565b809150509250929050565b6001600160a01b03811681146200012457600080fd5b50565b61150d80620001376000396000f3fe60806040526004361061016a5760003560e01c806370a1255d116100d15780638da5cb5b1161008a578063cabf9b4c11610064578063cabf9b4c1461042a578063e8db4e681461043f578063ede85eb714610454578063f2fde38b1461048357610210565b80638da5cb5b146103eb578063b470aade14610400578063c07411da1461041557610210565b806370a1255d1461036d578063715018a6146103825780637538eecf1461039757806379372f9a146103ac5780637fe61e3b146103c15780638a1833a5146103d657610210565b8063227a473b11610123578063227a473b146102b45780632c71b681146102d45780632e08248d146102f65780634f955cea1461032357806355db4179146103435780636c031fb61461035857610210565b80630e475ce21461021557806310ef134a1461024057806312bae48d1461025557806312f82cbc1461026a5780631954f39e1461028a57806320670e7b1461029f57610210565b36610210576003546001600160a01b03166101836104a3565b6001600160a01b031614806101b7575061019b6104a8565b6001600160a01b03166101ac6104a3565b6001600160a01b0316145b6101dc5760405162461bcd60e51b81526004016101d390611300565b60405180910390fd5b600c546101ea9060016104b7565b600c556006546101fa90346104b7565b6006556004541561020e5761020e346104e5565b005b600080fd5b34801561022157600080fd5b5061022a6105f5565b60405161023791906114b8565b60405180910390f35b34801561024c57600080fd5b5061022a6105fb565b34801561026157600080fd5b5061022a610601565b34801561027657600080fd5b5061022a610285366004611126565b610607565b34801561029657600080fd5b5061022a610678565b3480156102ab57600080fd5b5061022a61067e565b3480156102c057600080fd5b5061020e6102cf36600461116d565b610691565b3480156102e057600080fd5b506102e9610976565b604051610237919061119d565b34801561030257600080fd5b50610316610311366004611126565b610985565b6040516102379190611497565b34801561032f57600080fd5b5061022a61033e366004611126565b6109cf565b34801561034f57600080fd5b5061022a6109ea565b34801561036457600080fd5b5061022a6109f0565b34801561037957600080fd5b5061022a610a3e565b34801561038e57600080fd5b5061020e610a44565b3480156103a357600080fd5b5061020e610ac3565b3480156103b857600080fd5b5061020e610ccc565b3480156103cd57600080fd5b506102e9610d64565b3480156103e257600080fd5b5061022a610d73565b3480156103f757600080fd5b506102e96104a8565b34801561040c57600080fd5b5061022a610d79565b34801561042157600080fd5b5061022a610d7f565b34801561043657600080fd5b5061022a610d85565b34801561044b57600080fd5b5061022a610d8b565b34801561046057600080fd5b5061047461046f366004611126565b610d91565b604051610237939291906114c1565b34801561048f57600080fd5b5061020e61049e366004611126565b610db2565b335b90565b6001546001600160a01b031690565b6000828201838110156104dc5760405162461bcd60e51b81526004016101d390611335565b90505b92915050565b60006104ef6109f0565b6008556104fa61067e565b6009556001600160a01b0381161561053f5761051581610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000600554421061055257506000610562565b60055461055f9042610e69565b90505b6000610579600a5483610eab90919063ffffffff16565b9050600554421061059657600d546105929042906104b7565b6005555b6005546105b0904290036105aa86846104b7565b90610ee5565b600a55426009556040517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d906105e79086906114b8565b60405180910390a150505050565b600c5481565b600f5481565b60045481565b6001600160a01b0381166000908152600e6020526040812060018101546002909101546104df919061067290670de0b6b3a7640000906105aa906106539061064d6109f0565b90610e69565b6001600160a01b0388166000908152600e602052604090205490610eab565b906104b7565b60055481565b600061068c42600554610f27565b905090565b600260005414156106b45760405162461bcd60e51b81526004016101d390611460565b60026000556106c16104a3565b6106c96109f0565b6008556106d461067e565b6009556001600160a01b03811615610719576106ef81610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b600082116107395760405162461bcd60e51b81526004016101d3906112d8565b60025482906001600160a01b031663dd62ed3e6107546104a3565b306040518363ffffffff1660e01b81526004016107729291906111b1565b60206040518083038186803b15801561078a57600080fd5b505afa15801561079e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c29190611185565b10156107e05760405162461bcd60e51b81526004016101d390611419565b600454610809574260048190556107fa90621275006104b7565b600555600654610809906104e5565b600e60006108156104a3565b6001600160a01b0316815260208101919091526040016000205461084557600f546108419060016104b7565b600f555b60075461085290836104b7565b60075561088582600e60006108656104a3565b6001600160a01b03168152602081019190915260400160002054906104b7565b600e60006108916104a3565b6001600160a01b039081168252602082019290925260400160002091909155600254166323b872dd6108c16104a3565b30856040518463ffffffff1660e01b81526004016108e1939291906111cb565b602060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610933919061114d565b507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d33836040516109659291906111ef565b60405180910390a150506001600055565b6002546001600160a01b031681565b61098d611105565b506001600160a01b03166000908152600e6020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b6001600160a01b03166000908152600e602052604090205490565b60095481565b600060075460001415610a0657506008546104a5565b61068c610a356007546105aa670de0b6b3a7640000610a2f600a54610a2f60095461064d61067e565b90610eab565b600854906104b7565b600b5481565b610a4c6104a3565b6001546001600160a01b03908116911614610a795760405162461bcd60e51b81526004016101d3906113e4565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b60026000541415610ae65760405162461bcd60e51b81526004016101d390611460565b6002600055610af36104a3565b610afb6109f0565b600855610b0661067e565b6009556001600160a01b03811615610b4b57610b2181610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000600e6000610b596104a3565b6001600160a01b0316815260208101919091526040016000205411610b905760405162461bcd60e51b81526004016101d39061125b565b6000600e6000610b9e6104a3565b6001600160a01b0316815260208101919091526040016000908120549150600e81610bc76104a3565b6001600160a01b03168152602081019190915260400160002055600754610bee9082610e69565b600755600f54610bff906001610e69565b600f556002546001600160a01b031663a9059cbb610c1b6104a3565b836040518363ffffffff1660e01b8152600401610c399291906111ef565b602060405180830381600087803b158015610c5357600080fd5b505af1158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b919061114d565b50610c94610f3d565b7f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75610cbd6104a3565b826040516109659291906111ef565b60026000541415610cef5760405162461bcd60e51b81526004016101d390611460565b6002600055610cfc6104a3565b610d046109f0565b600855610d0f61067e565b6009556001600160a01b03811615610d5457610d2a81610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b610d5c610f3d565b506001600055565b6003546001600160a01b031681565b600a5481565b600d5481565b60085481565b60065481565b60075481565b600e6020526000908152604090208054600182015460029092015490919083565b610dba6104a3565b6001546001600160a01b03908116911614610de75760405162461bcd60e51b81526004016101d3906113e4565b6001600160a01b038116610e0d5760405162461bcd60e51b81526004016101d390611292565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006104dc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110a2565b600082610eba575060006104df565b82820282848281610ec757fe5b04146104dc5760405162461bcd60e51b81526004016101d3906113a3565b60006104dc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110ce565b6000818310610f3657816104dc565b5090919050565b610f456104a3565b610f4d6109f0565b600855610f5861067e565b6009556001600160a01b03811615610f9d57610f7381610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000610faa6102856104a3565b9050801561109e576000600e6000610fc06104a3565b6001600160a01b03168152602081019190915260400160002060010155600b54610fea90826104b7565b600b5560405160009033908390611000906104a5565b60006040518083038185875af1925050503d806000811461103d576040519150601f19603f3d011682016040523d82523d6000602084013e611042565b606091505b50509050806110635760405162461bcd60e51b81526004016101d39061136c565b7f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724133836040516110949291906111ef565b60405180910390a1505b5050565b600081848411156110c65760405162461bcd60e51b81526004016101d39190611208565b505050900390565b600081836110ef5760405162461bcd60e51b81526004016101d39190611208565b5060008385816110fb57fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b600060208284031215611137578081fd5b81356001600160a01b03811681146104dc578182fd5b60006020828403121561115e578081fd5b815180151581146104dc578182fd5b60006020828403121561117e578081fd5b5035919050565b600060208284031215611196578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6000602080835283518082850152825b8181101561123457858101830151858201604001528201611218565b818111156112455783604083870101525b50601f01601f1916929092016040019392505050565b60208082526018908201527f4e6f207374616b696e6720616d6f756e7420666f756e64210000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600e908201526d043616e6e6f74207374616b6520360941b604082015260600190565b6020808252818101527f43616c6c6572206973206e6f7420616c6c6f77656420746f206465706f736974604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526017908201527f526577617264207472616e73666572206661696c65642e000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f5472616e73666572206f6620746f6b656e20686173206e6f74206265656e20616040820152661c1c1c9bdd995960ca1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b928352602083019190915260408201526060019056fea26469706673582212203bc157102099362784ef472e01e23f6d7b2b1fa6b3705b30197b7155ea0314ea64736f6c634300060c0033000000000000000000000000eea9ae787f3a620072d13b2cdc8cabffb9c0ab960000000000000000000000002f672cf4102f4183363780740bcf7e02e195fe8a

Deployed Bytecode

0x60806040526004361061016a5760003560e01c806370a1255d116100d15780638da5cb5b1161008a578063cabf9b4c11610064578063cabf9b4c1461042a578063e8db4e681461043f578063ede85eb714610454578063f2fde38b1461048357610210565b80638da5cb5b146103eb578063b470aade14610400578063c07411da1461041557610210565b806370a1255d1461036d578063715018a6146103825780637538eecf1461039757806379372f9a146103ac5780637fe61e3b146103c15780638a1833a5146103d657610210565b8063227a473b11610123578063227a473b146102b45780632c71b681146102d45780632e08248d146102f65780634f955cea1461032357806355db4179146103435780636c031fb61461035857610210565b80630e475ce21461021557806310ef134a1461024057806312bae48d1461025557806312f82cbc1461026a5780631954f39e1461028a57806320670e7b1461029f57610210565b36610210576003546001600160a01b03166101836104a3565b6001600160a01b031614806101b7575061019b6104a8565b6001600160a01b03166101ac6104a3565b6001600160a01b0316145b6101dc5760405162461bcd60e51b81526004016101d390611300565b60405180910390fd5b600c546101ea9060016104b7565b600c556006546101fa90346104b7565b6006556004541561020e5761020e346104e5565b005b600080fd5b34801561022157600080fd5b5061022a6105f5565b60405161023791906114b8565b60405180910390f35b34801561024c57600080fd5b5061022a6105fb565b34801561026157600080fd5b5061022a610601565b34801561027657600080fd5b5061022a610285366004611126565b610607565b34801561029657600080fd5b5061022a610678565b3480156102ab57600080fd5b5061022a61067e565b3480156102c057600080fd5b5061020e6102cf36600461116d565b610691565b3480156102e057600080fd5b506102e9610976565b604051610237919061119d565b34801561030257600080fd5b50610316610311366004611126565b610985565b6040516102379190611497565b34801561032f57600080fd5b5061022a61033e366004611126565b6109cf565b34801561034f57600080fd5b5061022a6109ea565b34801561036457600080fd5b5061022a6109f0565b34801561037957600080fd5b5061022a610a3e565b34801561038e57600080fd5b5061020e610a44565b3480156103a357600080fd5b5061020e610ac3565b3480156103b857600080fd5b5061020e610ccc565b3480156103cd57600080fd5b506102e9610d64565b3480156103e257600080fd5b5061022a610d73565b3480156103f757600080fd5b506102e96104a8565b34801561040c57600080fd5b5061022a610d79565b34801561042157600080fd5b5061022a610d7f565b34801561043657600080fd5b5061022a610d85565b34801561044b57600080fd5b5061022a610d8b565b34801561046057600080fd5b5061047461046f366004611126565b610d91565b604051610237939291906114c1565b34801561048f57600080fd5b5061020e61049e366004611126565b610db2565b335b90565b6001546001600160a01b031690565b6000828201838110156104dc5760405162461bcd60e51b81526004016101d390611335565b90505b92915050565b60006104ef6109f0565b6008556104fa61067e565b6009556001600160a01b0381161561053f5761051581610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000600554421061055257506000610562565b60055461055f9042610e69565b90505b6000610579600a5483610eab90919063ffffffff16565b9050600554421061059657600d546105929042906104b7565b6005555b6005546105b0904290036105aa86846104b7565b90610ee5565b600a55426009556040517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d906105e79086906114b8565b60405180910390a150505050565b600c5481565b600f5481565b60045481565b6001600160a01b0381166000908152600e6020526040812060018101546002909101546104df919061067290670de0b6b3a7640000906105aa906106539061064d6109f0565b90610e69565b6001600160a01b0388166000908152600e602052604090205490610eab565b906104b7565b60055481565b600061068c42600554610f27565b905090565b600260005414156106b45760405162461bcd60e51b81526004016101d390611460565b60026000556106c16104a3565b6106c96109f0565b6008556106d461067e565b6009556001600160a01b03811615610719576106ef81610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b600082116107395760405162461bcd60e51b81526004016101d3906112d8565b60025482906001600160a01b031663dd62ed3e6107546104a3565b306040518363ffffffff1660e01b81526004016107729291906111b1565b60206040518083038186803b15801561078a57600080fd5b505afa15801561079e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c29190611185565b10156107e05760405162461bcd60e51b81526004016101d390611419565b600454610809574260048190556107fa90621275006104b7565b600555600654610809906104e5565b600e60006108156104a3565b6001600160a01b0316815260208101919091526040016000205461084557600f546108419060016104b7565b600f555b60075461085290836104b7565b60075561088582600e60006108656104a3565b6001600160a01b03168152602081019190915260400160002054906104b7565b600e60006108916104a3565b6001600160a01b039081168252602082019290925260400160002091909155600254166323b872dd6108c16104a3565b30856040518463ffffffff1660e01b81526004016108e1939291906111cb565b602060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610933919061114d565b507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d33836040516109659291906111ef565b60405180910390a150506001600055565b6002546001600160a01b031681565b61098d611105565b506001600160a01b03166000908152600e6020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b6001600160a01b03166000908152600e602052604090205490565b60095481565b600060075460001415610a0657506008546104a5565b61068c610a356007546105aa670de0b6b3a7640000610a2f600a54610a2f60095461064d61067e565b90610eab565b600854906104b7565b600b5481565b610a4c6104a3565b6001546001600160a01b03908116911614610a795760405162461bcd60e51b81526004016101d3906113e4565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b60026000541415610ae65760405162461bcd60e51b81526004016101d390611460565b6002600055610af36104a3565b610afb6109f0565b600855610b0661067e565b6009556001600160a01b03811615610b4b57610b2181610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000600e6000610b596104a3565b6001600160a01b0316815260208101919091526040016000205411610b905760405162461bcd60e51b81526004016101d39061125b565b6000600e6000610b9e6104a3565b6001600160a01b0316815260208101919091526040016000908120549150600e81610bc76104a3565b6001600160a01b03168152602081019190915260400160002055600754610bee9082610e69565b600755600f54610bff906001610e69565b600f556002546001600160a01b031663a9059cbb610c1b6104a3565b836040518363ffffffff1660e01b8152600401610c399291906111ef565b602060405180830381600087803b158015610c5357600080fd5b505af1158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b919061114d565b50610c94610f3d565b7f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75610cbd6104a3565b826040516109659291906111ef565b60026000541415610cef5760405162461bcd60e51b81526004016101d390611460565b6002600055610cfc6104a3565b610d046109f0565b600855610d0f61067e565b6009556001600160a01b03811615610d5457610d2a81610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b610d5c610f3d565b506001600055565b6003546001600160a01b031681565b600a5481565b600d5481565b60085481565b60065481565b60075481565b600e6020526000908152604090208054600182015460029092015490919083565b610dba6104a3565b6001546001600160a01b03908116911614610de75760405162461bcd60e51b81526004016101d3906113e4565b6001600160a01b038116610e0d5760405162461bcd60e51b81526004016101d390611292565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006104dc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110a2565b600082610eba575060006104df565b82820282848281610ec757fe5b04146104dc5760405162461bcd60e51b81526004016101d3906113a3565b60006104dc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110ce565b6000818310610f3657816104dc565b5090919050565b610f456104a3565b610f4d6109f0565b600855610f5861067e565b6009556001600160a01b03811615610f9d57610f7381610607565b6001600160a01b0382166000908152600e6020526040902060018101919091556008546002909101555b6000610faa6102856104a3565b9050801561109e576000600e6000610fc06104a3565b6001600160a01b03168152602081019190915260400160002060010155600b54610fea90826104b7565b600b5560405160009033908390611000906104a5565b60006040518083038185875af1925050503d806000811461103d576040519150601f19603f3d011682016040523d82523d6000602084013e611042565b606091505b50509050806110635760405162461bcd60e51b81526004016101d39061136c565b7f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724133836040516110949291906111ef565b60405180910390a1505b5050565b600081848411156110c65760405162461bcd60e51b81526004016101d39190611208565b505050900390565b600081836110ef5760405162461bcd60e51b81526004016101d39190611208565b5060008385816110fb57fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b600060208284031215611137578081fd5b81356001600160a01b03811681146104dc578182fd5b60006020828403121561115e578081fd5b815180151581146104dc578182fd5b60006020828403121561117e578081fd5b5035919050565b600060208284031215611196578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6000602080835283518082850152825b8181101561123457858101830151858201604001528201611218565b818111156112455783604083870101525b50601f01601f1916929092016040019392505050565b60208082526018908201527f4e6f207374616b696e6720616d6f756e7420666f756e64210000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600e908201526d043616e6e6f74207374616b6520360941b604082015260600190565b6020808252818101527f43616c6c6572206973206e6f7420616c6c6f77656420746f206465706f736974604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526017908201527f526577617264207472616e73666572206661696c65642e000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f5472616e73666572206f6620746f6b656e20686173206e6f74206265656e20616040820152661c1c1c9bdd995960ca1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b928352602083019190915260408201526060019056fea26469706673582212203bc157102099362784ef472e01e23f6d7b2b1fa6b3705b30197b7155ea0314ea64736f6c634300060c0033

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

000000000000000000000000eea9ae787f3a620072d13b2cdc8cabffb9c0ab960000000000000000000000002f672cf4102f4183363780740bcf7e02e195fe8a

-----Decoded View---------------
Arg [0] : tokenAddress (address): 0xeea9aE787f3A620072d13b2cdC8cabFFb9c0aB96
Arg [1] : ysecPresaleAddress (address): 0x2F672cF4102f4183363780740BCF7e02e195fe8a

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000eea9ae787f3a620072d13b2cdc8cabffb9c0ab96
Arg [1] : 0000000000000000000000002f672cf4102f4183363780740bcf7e02e195fe8a


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  ]
[ 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.