ETH Price: $2,154.25 (+3.00%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy113826322020-12-03 23:23:261944 days ago1607037806IN
0xa14a95a2...166Ca14aA
0 ETH0.0595803640
Deploy113826292020-12-03 23:22:241944 days ago1607037744IN
0xa14a95a2...166Ca14aA
0 ETH0.0595803640
Deploy113826262020-12-03 23:22:041944 days ago1607037724IN
0xa14a95a2...166Ca14aA
0 ETH0.0595803640
Deploy113826162020-12-03 23:19:251944 days ago1607037565IN
0xa14a95a2...166Ca14aA
0 ETH0.0595803640
Deploy113826092020-12-03 23:18:321944 days ago1607037512IN
0xa14a95a2...166Ca14aA
0 ETH0.0618974840
Deploy113825932020-12-03 23:15:191944 days ago1607037319IN
0xa14a95a2...166Ca14aA
0 ETH0.0601803640

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-113826322020-12-03 23:23:261944 days ago1607037806
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
-113826292020-12-03 23:22:241944 days ago1607037744
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
-113826262020-12-03 23:22:041944 days ago1607037724
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
-113826162020-12-03 23:19:251944 days ago1607037565
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
-113826092020-12-03 23:18:321944 days ago1607037512
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
-113825932020-12-03 23:15:191944 days ago1607037319
0xa14a95a2...166Ca14aA
 Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewardsFactory

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
pragma solidity 0.5.16;

import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol";

import "./StakingRewards.sol";

contract StakingRewardsFactory is Ownable {
    // info about rewards for a particular staking token
    struct StakingRewardsInfo {
        address stakingRewards;
        uint256 yflRewardAmount;
        address extraRewardToken;
        uint256 extraRewardTokenAmount;
    }

    // immutables
    address public yflToken;
    uint256 public stakingRewardsGenesis;

    // the staking tokens for which the rewards contract has been deployed
    address[] public stakingTokens;

    // rewards info by staking token
    mapping(address => StakingRewardsInfo) public stakingRewardsInfoByStakingToken;

    constructor(address _yflToken, uint256 _stakingRewardsGenesis) public Ownable() {
        require(_yflToken != address(0), "yflToken=0x0");
        require(_stakingRewardsGenesis >= block.timestamp, "genesis<timestamp");
        yflToken = _yflToken;
        stakingRewardsGenesis = _stakingRewardsGenesis;
    }

    ///// permissioned functions

    // deploy a staking reward contract for the staking token, and store the reward amount
    // the reward will be distributed to the staking reward contract no sooner than the genesis
    function deploy(
        address _stakingToken,
        uint256 _yflRewardAmount,
        address _extraRewardToken, // optional
        uint256 _extraRewardTokenAmount,
        uint256 _rewardsDuration
    ) external onlyOwner {
        require(_stakingToken != address(0), "stakingToken=0x0");
        require(_extraRewardToken != yflToken, "extraRewardToken=yflToken");
        require(_yflRewardAmount > 0 || _extraRewardTokenAmount > 0, "amounts=0");
        if (_extraRewardToken == address(0)) {
            require(_extraRewardTokenAmount == 0, "extraRewardTokenAmount!=0");
        } else {
            require(_extraRewardTokenAmount > 0, "extraRewardTokenAmount=0");
        }
        require(_rewardsDuration > 0, "rewardsDuration=0");
        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[_stakingToken];
        require(info.stakingRewards == address(0), "already deployed");

        info.stakingRewards = address(
            new StakingRewards(
                _stakingToken,
                address(this), // rewardsDistributor
                yflToken,
                _extraRewardToken,
                _rewardsDuration
            )
        );
        info.yflRewardAmount = _yflRewardAmount;
        info.extraRewardToken = _extraRewardToken;
        info.extraRewardTokenAmount = _extraRewardTokenAmount;
        stakingTokens.push(_stakingToken);
    }

    ///// permissionless functions

    // call notifyRewardAmount for all staking tokens.
    function notifyRewardAmounts() external {
        require(stakingTokens.length > 0, "no deploys yet");
        for (uint256 i = 0; i < stakingTokens.length; i++) {
            notifyRewardAmount(stakingTokens[i]);
        }
    }

    // notify reward amount for an individual staking token.
    // this is a fallback in case the notifyRewardAmounts costs too much gas to call for all contracts
    function notifyRewardAmount(address _stakingToken) public {
        require(block.timestamp >= stakingRewardsGenesis, "timestamp<genesis");

        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[_stakingToken];
        require(info.stakingRewards != address(0), "not deployed");

        uint256 rewardAmount = info.yflRewardAmount;
        uint256 extraRewardAmount = info.extraRewardTokenAmount;
        if (rewardAmount > 0) {
            info.yflRewardAmount = 0;
            require(
                IERC20(yflToken).transfer(info.stakingRewards, rewardAmount),
                "transfer failed"
            );
        }
        if (extraRewardAmount > 0) {
            info.extraRewardTokenAmount = 0;
            require(
                IERC20(info.extraRewardToken).transfer(info.stakingRewards, rewardAmount),
                "transfer failed"
            );
        }
        StakingRewards(info.stakingRewards).notifyRewardAmount(rewardAmount, extraRewardAmount);
    }
}

pragma solidity 0.5.16;

contract RewardsRecipient {
    address public rewardsDistributor;

    modifier onlyRewardsDistributor() {
        require(msg.sender == rewardsDistributor, "!rewardsDistributor");
        _;
    }

    function notifyRewardAmount(uint256 rewardTokenIndex, uint256 amount) external;
}

pragma solidity 0.5.16;

import "openzeppelin-solidity-2.3.0/contracts/math/Math.sol";
import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol";
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/ERC20Detailed.sol";
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity-2.3.0/contracts/utils/ReentrancyGuard.sol";

import "./interfaces/ILinkswapERC20.sol";
import "./interfaces/IStakingRewards.sol";
import "./RewardsRecipient.sol";

contract StakingRewards is IStakingRewards, RewardsRecipient, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /* ========== EVENTS ========== */

    event RewardAdded(address indexed rewardToken, uint256 amount);
    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, address indexed rewardToken, uint256 amount);

    /* ========== STATE VARIABLES ========== */

    IERC20 public stakingToken;
    uint256 public lastUpdateTime;
    uint256 public periodFinish;
    uint256 public rewardsDuration;

    IERC20[2] public rewardTokens;
    uint256[2] public rewardRate;
    uint256[2] public rewardPerTokenStored;
    mapping(address => uint256)[2] public userRewardPerTokenPaid;
    mapping(address => uint256)[2] public unclaimedRewards;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _stakingToken,
        address _rewardsDistributor,
        address _yflToken,
        address _extraRewardToken, // optional
        uint256 _rewardsDuration
    ) public {
        require(
            _rewardsDistributor != address(0) &&
                _yflToken != address(0) &&
                _stakingToken != address(0),
            "address(0)"
        );
        require(_rewardsDuration > 0, "rewardsDuration=0");
        rewardsDistributor = _rewardsDistributor;
        rewardTokens[0] = IERC20(_yflToken);
        rewardTokens[1] = IERC20(_extraRewardToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDuration = _rewardsDuration;
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored[0] = rewardPerToken(0);
        if (address(rewardTokens[1]) != address(0)) rewardPerTokenStored[1] = rewardPerToken(1);
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            unclaimedRewards[0][account] = earned(account, 0);
            unclaimedRewards[1][account] = earned(account, 1);
            userRewardPerTokenPaid[0][account] = rewardPerTokenStored[0];
            userRewardPerTokenPaid[1][account] = rewardPerTokenStored[1];
        }
        _;
    }

    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function getRewardForDuration(uint256 rewardTokenIndex) external view returns (uint256) {
        return rewardRate[rewardTokenIndex].mul(rewardsDuration);
    }

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

    function rewardPerToken(uint256 rewardTokenIndex) public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored[rewardTokenIndex];
        }
        return
            rewardPerTokenStored[rewardTokenIndex].add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate[rewardTokenIndex])
                    .mul(1e18)
                    .div(_totalSupply)
            );
    }

    function earned(address account, uint256 rewardTokenIndex) public view returns (uint256) {
        return
            _balances[account]
                .mul(
                rewardPerToken(rewardTokenIndex).sub(
                    userRewardPerTokenPaid[rewardTokenIndex][account]
                )
            )
                .div(1e18)
                .add(unclaimedRewards[rewardTokenIndex][account]);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stakeWithPermit(
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        ILinkswapERC20(address(stakingToken)).permit(
            msg.sender,
            address(this),
            amount,
            deadline,
            v,
            r,
            s
        );
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        _stake(amount);
    }

    function unstakeAndClaimRewards(uint256 unstakeAmount)
        external
        nonReentrant
        updateReward(msg.sender)
    {
        _unstake(unstakeAmount);
        _claimReward(0);
        _claimReward(1);
    }

    // Unstake without claiming rewards. For emergency use if claiming rewards is failing.
    function unstake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        _unstake(amount);
    }

    // Sends to the caller any unclaimed rewards earned by the caller.
    function claimRewards() external nonReentrant updateReward(msg.sender) {
        _claimReward(0);
        _claimReward(1);
    }

    /* ========== PRIVATE FUNCTIONS ========== */

    function _stake(uint256 amount) private {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function _unstake(uint256 amount) private {
        require(amount > 0, "Cannot unstake 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Unstaked(msg.sender, amount);
    }

    function _claimReward(uint256 rewardTokenIndex) private {
        uint256 rewardAmount = unclaimedRewards[rewardTokenIndex][msg.sender];
        if (rewardAmount > 0) {
            unclaimedRewards[rewardTokenIndex][msg.sender] = 0;
            uint256 rewardsBal = rewardTokens[rewardTokenIndex].balanceOf(address(this));
            if (rewardsBal == 0) return;
            // avoid paying more than total rewards balance
            rewardAmount = rewardsBal < rewardAmount ? rewardsBal : rewardAmount;
            rewardTokens[rewardTokenIndex].safeTransfer(msg.sender, rewardAmount);
            emit RewardPaid(msg.sender, address(rewardTokens[rewardTokenIndex]), rewardAmount);
        }
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256 amount, uint256 extraAmount)
        external
        onlyRewardsDistributor
        updateReward(address(0))
    {
        if (extraAmount > 0) {
            require(address(rewardTokens[1]) != address(0), "extraRewardToken=0x0");
        }
        if (block.timestamp >= periodFinish) {
            rewardRate[0] = amount.div(rewardsDuration);
            if (extraAmount > 0) rewardRate[1] = extraAmount.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate[0]);
            rewardRate[0] = amount.add(leftover).div(rewardsDuration);
            if (extraAmount > 0) {
                leftover = remaining.mul(rewardRate[1]);
                rewardRate[1] = extraAmount.add(leftover).div(rewardsDuration);
            }
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance = rewardTokens[0].balanceOf(address(this));
        require(rewardRate[0] <= balance.div(rewardsDuration), "Provided reward too high");
        if (extraAmount > 0) {
            balance = rewardTokens[1].balanceOf(address(this));
            require(
                rewardRate[1] <= balance.div(rewardsDuration),
                "Provided extra reward too high"
            );
        }

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(address(rewardTokens[0]), amount);
        if (extraAmount > 0) emit RewardAdded(address(rewardTokens[1]), extraAmount);
    }
}

File 4 of 13 : ILinkswapERC20.sol
pragma solidity 0.5.16;

interface ILinkswapERC20 {
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

pragma solidity 0.5.16;

interface IStakingRewards {
    // Mutative
    function stake(uint256 amount) external;

    function unstakeAndClaimRewards(uint256 unstakeAmount) external;

    function unstake(uint256 amount) external;

    function claimRewards() external;

    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken(uint256 rewardTokenIndex) external view returns (uint256);

    function earned(address account, uint256 rewardTokenIndex) external view returns (uint256);

    function getRewardForDuration(uint256 rewardTokenIndex) external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);
}

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

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;
    }
}

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;
    }
}

pragma solidity ^0.5.0;

import "./IERC20.sol";

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

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);
}

pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

pragma solidity ^0.5.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

File 13 of 13 : ReentrancyGuard.sol
pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied 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.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @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() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_yflToken","type":"address"},{"internalType":"uint256","name":"_stakingRewardsGenesis","type":"uint256"}],"payable":false,"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"},{"constant":false,"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_yflRewardAmount","type":"uint256"},{"internalType":"address","name":"_extraRewardToken","type":"address"},{"internalType":"uint256","name":"_extraRewardTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"deploy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"notifyRewardAmounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingRewardsGenesis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingRewardsInfoByStakingToken","outputs":[{"internalType":"address","name":"stakingRewards","type":"address"},{"internalType":"uint256","name":"yflRewardAmount","type":"uint256"},{"internalType":"address","name":"extraRewardToken","type":"address"},{"internalType":"uint256","name":"extraRewardTokenAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"yflToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516127083803806127088339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b0382166100cf576040805162461bcd60e51b815260206004820152600c60248201526b079666c546f6b656e3d3078360a41b604482015290519081900360640190fd5b42811015610118576040805162461bcd60e51b8152602060048201526011602482015270067656e657369733c74696d657374616d7607c1b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0393909316929092179091556002556125bd8061014b6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80638f32d59b116100715780638f32d59b1461017a578063a0928c1114610196578063ae741d8d146101b0578063d00e9918146101b8578063f23c453f146101c0578063f2fde38b14610200576100a9565b8063344e5e34146100ae5780636cf8caf8146100e7578063715018a61461014257806381e162981461014c5780638da5cb5b14610172575b600080fd5b6100cb600480360360208110156100c457600080fd5b5035610226565b604080516001600160a01b039092168252519081900360200190f35b61010d600480360360208110156100fd57600080fd5b50356001600160a01b031661024d565b604080516001600160a01b03958616815260208101949094529190931682820152606082019290925290519081900360800190f35b61014a610282565b005b61014a6004803603602081101561016257600080fd5b50356001600160a01b0316610325565b6100cb6105fa565b610182610609565b604080519115158252519081900360200190f35b61019e61061a565b60408051918252519081900360200190f35b61014a610620565b6100cb6106a7565b61014a600480360360a08110156101d657600080fd5b506001600160a01b03813581169160208101359160408201351690606081013590608001356106b6565b61014a6004803603602081101561021657600080fd5b50356001600160a01b0316610a66565b6003818154811061023357fe5b6000918252602090912001546001600160a01b0316905081565b60046020526000908152604090208054600182015460028301546003909301546001600160a01b039283169391929091169084565b61028a610609565b6102db576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600254421015610370576040805162461bcd60e51b815260206004820152601160248201527074696d657374616d703c67656e6573697360781b604482015290519081900360640190fd5b6001600160a01b03808216600090815260046020526040902080549091166103ce576040805162461bcd60e51b815260206004820152600c60248201526b1b9bdd0819195c1b1bde595960a21b604482015290519081900360640190fd5b6001810154600382015481156104af57600060018085018290555484546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050506040513d602081101561046a57600080fd5b50516104af576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b801561058957600060038401819055600284015484546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561051a57600080fd5b505af115801561052e573d6000803e3d6000fd5b505050506040513d602081101561054457600080fd5b5051610589576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b82546040805163246132f960e01b8152600481018590526024810184905290516001600160a01b039092169163246132f99160448082019260009290919082900301818387803b1580156105dc57600080fd5b505af11580156105f0573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b60025481565b600354610665576040805162461bcd60e51b815260206004820152600e60248201526d1b9bc819195c1b1bde5cc81e595d60921b604482015290519081900360640190fd5b60005b6003548110156106a45761069c6003828154811061068257fe5b6000918252602090912001546001600160a01b0316610325565b600101610668565b50565b6001546001600160a01b031681565b6106be610609565b61070f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03851661075d576040805162461bcd60e51b815260206004820152601060248201526f07374616b696e67546f6b656e3d3078360841b604482015290519081900360640190fd5b6001546001600160a01b03848116911614156107c0576040805162461bcd60e51b815260206004820152601960248201527f6578747261526577617264546f6b656e3d79666c546f6b656e00000000000000604482015290519081900360640190fd5b60008411806107cf5750600082115b61080c576040805162461bcd60e51b81526020600482015260096024820152680616d6f756e74733d360bc1b604482015290519081900360640190fd5b6001600160a01b03831661087257811561086d576040805162461bcd60e51b815260206004820152601960248201527f6578747261526577617264546f6b656e416d6f756e74213d3000000000000000604482015290519081900360640190fd5b6108c7565b600082116108c7576040805162461bcd60e51b815260206004820152601860248201527f6578747261526577617264546f6b656e416d6f756e743d300000000000000000604482015290519081900360640190fd5b60008111610910576040805162461bcd60e51b81526020600482015260116024820152700726577617264734475726174696f6e3d3607c1b604482015290519081900360640190fd5b6001600160a01b038086166000908152600460205260409020805490911615610973576040805162461bcd60e51b815260206004820152601060248201526f185b1c9958591e4819195c1b1bde595960821b604482015290519081900360640190fd5b8530600160009054906101000a90046001600160a01b0316868560405161099990610b63565b6001600160a01b039586168152938516602085015291841660408085019190915293166060830152608082015290519081900360a001906000f0801580156109e5573d6000803e3d6000fd5b5081546001600160a01b039182166001600160a01b03199182161783556001808401979097556002830180549683169682169690961790955560039182019390935580549485018155600052507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9092018054939092169216919091179055565b610a6e610609565b610abf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106a4816001600160a01b038116610b085760405162461bcd60e51b81526004018080602001828103825260268152602001806125636026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6119f280610b718339019056fe608060405234801561001057600080fd5b506040516119f23803806119f2833981810160405260a081101561003357600080fd5b50805160208201516040830151606084015160809094015160018055929391929091906001600160a01b0384161580159061007657506001600160a01b03831615155b801561008a57506001600160a01b03851615155b6100c8576040805162461bcd60e51b815260206004820152600a6024820152696164647265737328302960b01b604482015290519081900360640190fd5b60008111610111576040805162461bcd60e51b81526020600482015260116024820152700726577617264734475726174696f6e3d3607c1b604482015290519081900360640190fd5b600080546001600160a01b039586166001600160a01b0319918216178255600680549587169582169590951790945560078054851693861693909317909255600280549093169490931693909317905560055561187e90819061017490396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c806372f702f3116100b8578063a694fc3a1161007c578063a694fc3a14610304578063c8f33c9114610321578063cea0196214610329578063e0c6c19d14610346578063ebe2b12b14610363578063ecd9ba821461036b57610141565b806372f702f31461029d5780637bb7bed1146102a557806380faa57d146102c2578063874c120b146102ca578063882324b4146102e757610141565b8063372500ab1161010a578063372500ab146101eb578063386a9525146101f35780633e491d47146101fb5780633f2a55401461022757806346f907481461024b57806370a082311461027757610141565b8062a47ddd146101465780630e213a3d1461018457806318160ddd146101a1578063246132f9146101a95780632e17de78146101ce575b600080fd5b6101726004803603604081101561015c57600080fd5b50803590602001356001600160a01b03166103a3565b60408051918252519081900360200190f35b6101726004803603602081101561019a57600080fd5b50356103c3565b6101726103ee565b6101cc600480360360408110156101bf57600080fd5b50803590602001356103f4565b005b6101cc600480360360208110156101e457600080fd5b503561089b565b6101cc6109b6565b610172610adb565b6101726004803603604081101561021157600080fd5b506001600160a01b038135169060200135610ae1565b61022f610b93565b604080516001600160a01b039092168252519081900360200190f35b6101726004803603604081101561026157600080fd5b50803590602001356001600160a01b0316610ba2565b6101726004803603602081101561028d57600080fd5b50356001600160a01b0316610baf565b61022f610bca565b61022f600480360360208110156102bb57600080fd5b5035610bd9565b610172610bf6565b610172600480360360208110156102e057600080fd5b5035610c09565b610172600480360360208110156102fd57600080fd5b5035610c88565b6101cc6004803603602081101561031a57600080fd5b5035610c9c565b610172610d5c565b6101726004803603602081101561033f57600080fd5b5035610d62565b6101cc6004803603602081101561035c57600080fd5b5035610d6f565b610172610e43565b6101cc600480360360a081101561038157600080fd5b5080359060208101359060ff6040820135169060608101359060800135610e49565b600c82600281106103b057fe5b0160205260009081526040902054905081565b60006103e6600554600884600281106103d857fe5b01549063ffffffff6110cf16565b90505b919050565b60105490565b6000546001600160a01b03163314610449576040805162461bcd60e51b815260206004820152601360248201527210b932bbb0b93239a234b9ba3934b13aba37b960691b604482015290519081900360640190fd5b60006104556000610c09565b600a556007546001600160a01b031615610477576104736001610c09565b600b555b61047f610bf6565b6003556001600160a01b038116156104f75761049c816000610ae1565b6001600160a01b0382166000908152600e60205260409020556104c0816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b8115610551576007546001600160a01b0316610551576040805162461bcd60e51b815260206004820152601460248201527306578747261526577617264546f6b656e3d3078360641b604482015290519081900360640190fd5b60045442106105945760055461056e90849063ffffffff61112816565b600855811561058f5760055461058b90839063ffffffff61112816565b6009555b610620565b6004546000906105aa904263ffffffff61119216565b905060006105c46008825b0154839063ffffffff6110cf16565b6005549091506105ea906105de878463ffffffff6111ef16565b9063ffffffff61112816565b600855831561061d576105ff600860016105b5565b600554909150610619906105de868463ffffffff6111ef16565b6009555b50505b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561066b57600080fd5b505afa15801561067f573d6000803e3d6000fd5b505050506040513d602081101561069557600080fd5b50516005549091506106ae90829063ffffffff61112816565b6008541115610704576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b82156107ee57600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561075557600080fd5b505afa158015610769573d6000803e3d6000fd5b505050506040513d602081101561077f57600080fd5b505160055490915061079890829063ffffffff61112816565b60095411156107ee576040805162461bcd60e51b815260206004820152601e60248201527f50726f76696465642065787472612072657761726420746f6f20686967680000604482015290519081900360640190fd5b426003819055600554610807919063ffffffff6111ef16565b6004556006546040805186815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a28215610895576007546040805185815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a25b50505050565b60018054810190819055336108b06000610c09565b600a556007546001600160a01b0316156108d2576108ce6001610c09565b600b555b6108da610bf6565b6003556001600160a01b03811615610952576108f7816000610ae1565b6001600160a01b0382166000908152600e602052604090205561091b816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b61095b83611249565b5060015481146109b2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60018054810190819055336109cb6000610c09565b600a556007546001600160a01b0316156109ed576109e96001610c09565b600b555b6109f5610bf6565b6003556001600160a01b03811615610a6d57610a12816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610a36816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b610a77600061132c565b610a81600161132c565b506001548114610ad8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b60055481565b6000610b8a600e8360028110610af357fe5b6001600160a01b038616600090815291016020526040902054610b7e670de0b6b3a76400006105de610b59600c8860028110610b2b57fe5b6001600160a01b038b16600090815291016020526040902054610b4d89610c09565b9063ffffffff61119216565b6001600160a01b0389166000908152601160205260409020549063ffffffff6110cf16565b9063ffffffff6111ef16565b90505b92915050565b6000546001600160a01b031681565b600e82600281106103b057fe5b6001600160a01b031660009081526011602052604090205490565b6002546001600160a01b031681565b60068160028110610be657fe5b01546001600160a01b0316905081565b6000610c0442600454611497565b905090565b600060105460001415610c2c57600a8260028110610c2357fe5b015490506103e9565b6103e6610c6d6010546105de670de0b6b3a7640000610c6160088860028110610c5157fe5b0154610c61600354610b4d610bf6565b9063ffffffff6110cf16565b600a8460028110610c7a57fe5b01549063ffffffff6111ef16565b600a8160028110610c9557fe5b0154905081565b6001805481019081905533610cb16000610c09565b600a556007546001600160a01b031615610cd357610ccf6001610c09565b600b555b610cdb610bf6565b6003556001600160a01b03811615610d5357610cf8816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610d1c816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b61095b836114ad565b60035481565b60088160028110610c9557fe5b6001805481019081905533610d846000610c09565b600a556007546001600160a01b031615610da657610da26001610c09565b600b555b610dae610bf6565b6003556001600160a01b03811615610e2657610dcb816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610def816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b610e2f83611249565b610e39600061132c565b61095b600161132c565b60045481565b6001805481019081905533610e5e6000610c09565b600a556007546001600160a01b031615610e8057610e7c6001610c09565b600b555b610e88610bf6565b6003556001600160a01b03811615610f0057610ea5816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610ec9816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b60008711610f46576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b601054610f59908863ffffffff6111ef16565b60105533600090815260116020526040902054610f7c908863ffffffff6111ef16565b3360008181526011602052604080822093909355600254835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505060025461103a92506001600160a01b0316905033308a63ffffffff61158f16565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146110c7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b505050505050565b6000826110de57506000610b8d565b828202828482816110eb57fe5b0414610b8a5760405162461bcd60e51b81526004018080602001828103825260218152602001806117ff6021913960400191505060405180910390fd5b600080821161117e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848161118957fe5b04949350505050565b6000828211156111e9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015610b8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008111611291576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f7420756e7374616b6520360841b604482015290519081900360640190fd5b6010546112a4908263ffffffff61119216565b601055336000908152601160205260409020546112c7908263ffffffff61119216565b336000818152601160205260409020919091556002546112f3916001600160a01b0390911690836115e9565b60408051828152905133917f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75919081900360200190a250565b6000600e826002811061133b57fe5b33600090815291016020526040902054905080156109b2576000600e836002811061136257fe5b336000908152910160205260408120919091556006836002811061138257fe5b0154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156113cc57600080fd5b505afa1580156113e0573d6000803e3d6000fd5b505050506040513d60208110156113f657600080fd5b5051905080611406575050610ad8565b8181106114135781611415565b805b915061144133836006866002811061142957fe5b01546001600160a01b0316919063ffffffff6115e916565b6006836002811061144e57fe5b01546040805184815290516001600160a01b039092169133917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e919081900360200190a3505050565b60008183106114a65781610b8a565b5090919050565b600081116114f3576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b601054611506908263ffffffff6111ef16565b60105533600090815260116020526040902054611529908263ffffffff6111ef16565b33600081815260116020526040902091909155600254611556916001600160a01b0390911690308461158f565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610895908590611640565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261163b908490611640565b505050565b611652826001600160a01b03166117f8565b6116a3576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106116e15780518252601f1990920191602091820191016116c2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611743576040519150601f19603f3d011682016040523d82523d6000602084013e611748565b606091505b50915091508161179f576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610895578080602001905160208110156117bb57600080fd5b50516108955760405162461bcd60e51b815260040180806020018281038252602a815260200180611820602a913960400191505060405180910390fd5b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158207c45efe56c5f655a65ecc78b3fc54b5fe127a565c4bd07f4afda0d0cbb13e81864736f6c634300051000324f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820590f379c38b2fd7295bd697ff0fa8571dbc46af74e6a6d5de2c38f039988e21764736f6c6343000510003200000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be000000000000000000000000000000000000000000000000000000005fc04694

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80638f32d59b116100715780638f32d59b1461017a578063a0928c1114610196578063ae741d8d146101b0578063d00e9918146101b8578063f23c453f146101c0578063f2fde38b14610200576100a9565b8063344e5e34146100ae5780636cf8caf8146100e7578063715018a61461014257806381e162981461014c5780638da5cb5b14610172575b600080fd5b6100cb600480360360208110156100c457600080fd5b5035610226565b604080516001600160a01b039092168252519081900360200190f35b61010d600480360360208110156100fd57600080fd5b50356001600160a01b031661024d565b604080516001600160a01b03958616815260208101949094529190931682820152606082019290925290519081900360800190f35b61014a610282565b005b61014a6004803603602081101561016257600080fd5b50356001600160a01b0316610325565b6100cb6105fa565b610182610609565b604080519115158252519081900360200190f35b61019e61061a565b60408051918252519081900360200190f35b61014a610620565b6100cb6106a7565b61014a600480360360a08110156101d657600080fd5b506001600160a01b03813581169160208101359160408201351690606081013590608001356106b6565b61014a6004803603602081101561021657600080fd5b50356001600160a01b0316610a66565b6003818154811061023357fe5b6000918252602090912001546001600160a01b0316905081565b60046020526000908152604090208054600182015460028301546003909301546001600160a01b039283169391929091169084565b61028a610609565b6102db576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600254421015610370576040805162461bcd60e51b815260206004820152601160248201527074696d657374616d703c67656e6573697360781b604482015290519081900360640190fd5b6001600160a01b03808216600090815260046020526040902080549091166103ce576040805162461bcd60e51b815260206004820152600c60248201526b1b9bdd0819195c1b1bde595960a21b604482015290519081900360640190fd5b6001810154600382015481156104af57600060018085018290555484546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561044057600080fd5b505af1158015610454573d6000803e3d6000fd5b505050506040513d602081101561046a57600080fd5b50516104af576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b801561058957600060038401819055600284015484546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561051a57600080fd5b505af115801561052e573d6000803e3d6000fd5b505050506040513d602081101561054457600080fd5b5051610589576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b82546040805163246132f960e01b8152600481018590526024810184905290516001600160a01b039092169163246132f99160448082019260009290919082900301818387803b1580156105dc57600080fd5b505af11580156105f0573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b60025481565b600354610665576040805162461bcd60e51b815260206004820152600e60248201526d1b9bc819195c1b1bde5cc81e595d60921b604482015290519081900360640190fd5b60005b6003548110156106a45761069c6003828154811061068257fe5b6000918252602090912001546001600160a01b0316610325565b600101610668565b50565b6001546001600160a01b031681565b6106be610609565b61070f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03851661075d576040805162461bcd60e51b815260206004820152601060248201526f07374616b696e67546f6b656e3d3078360841b604482015290519081900360640190fd5b6001546001600160a01b03848116911614156107c0576040805162461bcd60e51b815260206004820152601960248201527f6578747261526577617264546f6b656e3d79666c546f6b656e00000000000000604482015290519081900360640190fd5b60008411806107cf5750600082115b61080c576040805162461bcd60e51b81526020600482015260096024820152680616d6f756e74733d360bc1b604482015290519081900360640190fd5b6001600160a01b03831661087257811561086d576040805162461bcd60e51b815260206004820152601960248201527f6578747261526577617264546f6b656e416d6f756e74213d3000000000000000604482015290519081900360640190fd5b6108c7565b600082116108c7576040805162461bcd60e51b815260206004820152601860248201527f6578747261526577617264546f6b656e416d6f756e743d300000000000000000604482015290519081900360640190fd5b60008111610910576040805162461bcd60e51b81526020600482015260116024820152700726577617264734475726174696f6e3d3607c1b604482015290519081900360640190fd5b6001600160a01b038086166000908152600460205260409020805490911615610973576040805162461bcd60e51b815260206004820152601060248201526f185b1c9958591e4819195c1b1bde595960821b604482015290519081900360640190fd5b8530600160009054906101000a90046001600160a01b0316868560405161099990610b63565b6001600160a01b039586168152938516602085015291841660408085019190915293166060830152608082015290519081900360a001906000f0801580156109e5573d6000803e3d6000fd5b5081546001600160a01b039182166001600160a01b03199182161783556001808401979097556002830180549683169682169690961790955560039182019390935580549485018155600052507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9092018054939092169216919091179055565b610a6e610609565b610abf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106a4816001600160a01b038116610b085760405162461bcd60e51b81526004018080602001828103825260268152602001806125636026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6119f280610b718339019056fe608060405234801561001057600080fd5b506040516119f23803806119f2833981810160405260a081101561003357600080fd5b50805160208201516040830151606084015160809094015160018055929391929091906001600160a01b0384161580159061007657506001600160a01b03831615155b801561008a57506001600160a01b03851615155b6100c8576040805162461bcd60e51b815260206004820152600a6024820152696164647265737328302960b01b604482015290519081900360640190fd5b60008111610111576040805162461bcd60e51b81526020600482015260116024820152700726577617264734475726174696f6e3d3607c1b604482015290519081900360640190fd5b600080546001600160a01b039586166001600160a01b0319918216178255600680549587169582169590951790945560078054851693861693909317909255600280549093169490931693909317905560055561187e90819061017490396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c806372f702f3116100b8578063a694fc3a1161007c578063a694fc3a14610304578063c8f33c9114610321578063cea0196214610329578063e0c6c19d14610346578063ebe2b12b14610363578063ecd9ba821461036b57610141565b806372f702f31461029d5780637bb7bed1146102a557806380faa57d146102c2578063874c120b146102ca578063882324b4146102e757610141565b8063372500ab1161010a578063372500ab146101eb578063386a9525146101f35780633e491d47146101fb5780633f2a55401461022757806346f907481461024b57806370a082311461027757610141565b8062a47ddd146101465780630e213a3d1461018457806318160ddd146101a1578063246132f9146101a95780632e17de78146101ce575b600080fd5b6101726004803603604081101561015c57600080fd5b50803590602001356001600160a01b03166103a3565b60408051918252519081900360200190f35b6101726004803603602081101561019a57600080fd5b50356103c3565b6101726103ee565b6101cc600480360360408110156101bf57600080fd5b50803590602001356103f4565b005b6101cc600480360360208110156101e457600080fd5b503561089b565b6101cc6109b6565b610172610adb565b6101726004803603604081101561021157600080fd5b506001600160a01b038135169060200135610ae1565b61022f610b93565b604080516001600160a01b039092168252519081900360200190f35b6101726004803603604081101561026157600080fd5b50803590602001356001600160a01b0316610ba2565b6101726004803603602081101561028d57600080fd5b50356001600160a01b0316610baf565b61022f610bca565b61022f600480360360208110156102bb57600080fd5b5035610bd9565b610172610bf6565b610172600480360360208110156102e057600080fd5b5035610c09565b610172600480360360208110156102fd57600080fd5b5035610c88565b6101cc6004803603602081101561031a57600080fd5b5035610c9c565b610172610d5c565b6101726004803603602081101561033f57600080fd5b5035610d62565b6101cc6004803603602081101561035c57600080fd5b5035610d6f565b610172610e43565b6101cc600480360360a081101561038157600080fd5b5080359060208101359060ff6040820135169060608101359060800135610e49565b600c82600281106103b057fe5b0160205260009081526040902054905081565b60006103e6600554600884600281106103d857fe5b01549063ffffffff6110cf16565b90505b919050565b60105490565b6000546001600160a01b03163314610449576040805162461bcd60e51b815260206004820152601360248201527210b932bbb0b93239a234b9ba3934b13aba37b960691b604482015290519081900360640190fd5b60006104556000610c09565b600a556007546001600160a01b031615610477576104736001610c09565b600b555b61047f610bf6565b6003556001600160a01b038116156104f75761049c816000610ae1565b6001600160a01b0382166000908152600e60205260409020556104c0816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b8115610551576007546001600160a01b0316610551576040805162461bcd60e51b815260206004820152601460248201527306578747261526577617264546f6b656e3d3078360641b604482015290519081900360640190fd5b60045442106105945760055461056e90849063ffffffff61112816565b600855811561058f5760055461058b90839063ffffffff61112816565b6009555b610620565b6004546000906105aa904263ffffffff61119216565b905060006105c46008825b0154839063ffffffff6110cf16565b6005549091506105ea906105de878463ffffffff6111ef16565b9063ffffffff61112816565b600855831561061d576105ff600860016105b5565b600554909150610619906105de868463ffffffff6111ef16565b6009555b50505b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561066b57600080fd5b505afa15801561067f573d6000803e3d6000fd5b505050506040513d602081101561069557600080fd5b50516005549091506106ae90829063ffffffff61112816565b6008541115610704576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b82156107ee57600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561075557600080fd5b505afa158015610769573d6000803e3d6000fd5b505050506040513d602081101561077f57600080fd5b505160055490915061079890829063ffffffff61112816565b60095411156107ee576040805162461bcd60e51b815260206004820152601e60248201527f50726f76696465642065787472612072657761726420746f6f20686967680000604482015290519081900360640190fd5b426003819055600554610807919063ffffffff6111ef16565b6004556006546040805186815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a28215610895576007546040805185815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a25b50505050565b60018054810190819055336108b06000610c09565b600a556007546001600160a01b0316156108d2576108ce6001610c09565b600b555b6108da610bf6565b6003556001600160a01b03811615610952576108f7816000610ae1565b6001600160a01b0382166000908152600e602052604090205561091b816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b61095b83611249565b5060015481146109b2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60018054810190819055336109cb6000610c09565b600a556007546001600160a01b0316156109ed576109e96001610c09565b600b555b6109f5610bf6565b6003556001600160a01b03811615610a6d57610a12816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610a36816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b610a77600061132c565b610a81600161132c565b506001548114610ad8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b60055481565b6000610b8a600e8360028110610af357fe5b6001600160a01b038616600090815291016020526040902054610b7e670de0b6b3a76400006105de610b59600c8860028110610b2b57fe5b6001600160a01b038b16600090815291016020526040902054610b4d89610c09565b9063ffffffff61119216565b6001600160a01b0389166000908152601160205260409020549063ffffffff6110cf16565b9063ffffffff6111ef16565b90505b92915050565b6000546001600160a01b031681565b600e82600281106103b057fe5b6001600160a01b031660009081526011602052604090205490565b6002546001600160a01b031681565b60068160028110610be657fe5b01546001600160a01b0316905081565b6000610c0442600454611497565b905090565b600060105460001415610c2c57600a8260028110610c2357fe5b015490506103e9565b6103e6610c6d6010546105de670de0b6b3a7640000610c6160088860028110610c5157fe5b0154610c61600354610b4d610bf6565b9063ffffffff6110cf16565b600a8460028110610c7a57fe5b01549063ffffffff6111ef16565b600a8160028110610c9557fe5b0154905081565b6001805481019081905533610cb16000610c09565b600a556007546001600160a01b031615610cd357610ccf6001610c09565b600b555b610cdb610bf6565b6003556001600160a01b03811615610d5357610cf8816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610d1c816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b61095b836114ad565b60035481565b60088160028110610c9557fe5b6001805481019081905533610d846000610c09565b600a556007546001600160a01b031615610da657610da26001610c09565b600b555b610dae610bf6565b6003556001600160a01b03811615610e2657610dcb816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610def816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b610e2f83611249565b610e39600061132c565b61095b600161132c565b60045481565b6001805481019081905533610e5e6000610c09565b600a556007546001600160a01b031615610e8057610e7c6001610c09565b600b555b610e88610bf6565b6003556001600160a01b03811615610f0057610ea5816000610ae1565b6001600160a01b0382166000908152600e6020526040902055610ec9816001610ae1565b6001600160a01b0382166000908152600f6020908152604080832093909355600a54600c825283832055600b54600d909152919020555b60008711610f46576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b601054610f59908863ffffffff6111ef16565b60105533600090815260116020526040902054610f7c908863ffffffff6111ef16565b3360008181526011602052604080822093909355600254835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505060025461103a92506001600160a01b0316905033308a63ffffffff61158f16565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146110c7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b505050505050565b6000826110de57506000610b8d565b828202828482816110eb57fe5b0414610b8a5760405162461bcd60e51b81526004018080602001828103825260218152602001806117ff6021913960400191505060405180910390fd5b600080821161117e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848161118957fe5b04949350505050565b6000828211156111e9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015610b8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008111611291576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f7420756e7374616b6520360841b604482015290519081900360640190fd5b6010546112a4908263ffffffff61119216565b601055336000908152601160205260409020546112c7908263ffffffff61119216565b336000818152601160205260409020919091556002546112f3916001600160a01b0390911690836115e9565b60408051828152905133917f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75919081900360200190a250565b6000600e826002811061133b57fe5b33600090815291016020526040902054905080156109b2576000600e836002811061136257fe5b336000908152910160205260408120919091556006836002811061138257fe5b0154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156113cc57600080fd5b505afa1580156113e0573d6000803e3d6000fd5b505050506040513d60208110156113f657600080fd5b5051905080611406575050610ad8565b8181106114135781611415565b805b915061144133836006866002811061142957fe5b01546001600160a01b0316919063ffffffff6115e916565b6006836002811061144e57fe5b01546040805184815290516001600160a01b039092169133917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e919081900360200190a3505050565b60008183106114a65781610b8a565b5090919050565b600081116114f3576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b601054611506908263ffffffff6111ef16565b60105533600090815260116020526040902054611529908263ffffffff6111ef16565b33600081815260116020526040902091909155600254611556916001600160a01b0390911690308461158f565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610895908590611640565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261163b908490611640565b505050565b611652826001600160a01b03166117f8565b6116a3576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106116e15780518252601f1990920191602091820191016116c2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611743576040519150601f19603f3d011682016040523d82523d6000602084013e611748565b606091505b50915091508161179f576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610895578080602001905160208110156117bb57600080fd5b50516108955760405162461bcd60e51b815260040180806020018281038252602a815260200180611820602a913960400191505060405180910390fd5b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158207c45efe56c5f655a65ecc78b3fc54b5fe127a565c4bd07f4afda0d0cbb13e81864736f6c634300051000324f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820590f379c38b2fd7295bd697ff0fa8571dbc46af74e6a6d5de2c38f039988e21764736f6c63430005100032

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

00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be000000000000000000000000000000000000000000000000000000005fc04694

-----Decoded View---------------
Arg [0] : _yflToken (address): 0x28cb7e841ee97947a86B06fA4090C8451f64c0be
Arg [1] : _stakingRewardsGenesis (uint256): 1606436500

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be
Arg [1] : 000000000000000000000000000000000000000000000000000000005fc04694


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.