FTM Price: $0.48 (+4.60%)
Gas: 52 GWei

Contract

0x954b15065e4FA1243Cd45a020766511b68Ea9b6E
 

Multichain Info

Transaction Hash
Method
Block
From
To
Value
Withdraw765419162024-02-29 17:38:002 hrs 15 mins ago1709228280IN
0x954b15...68Ea9b6E
0 FTM0.007213178.38626575
Withdraw765418482024-02-29 17:36:462 hrs 16 mins ago1709228206IN
0x954b15...68Ea9b6E
0 FTM0.0067675578.38626575
Withdraw765318282024-02-29 14:37:495 hrs 15 mins ago1709217469IN
0x954b15...68Ea9b6E
0 FTM0.0103273799.84312857
Withdraw765085922024-02-29 7:15:3712 hrs 38 mins ago1709190937IN
0x954b15...68Ea9b6E
0 FTM0.0108707299.59987572
Withdraw765083412024-02-29 7:09:4612 hrs 43 mins ago1709190586IN
0x954b15...68Ea9b6E
0 FTM0.008577199.34562382
Withdraw765083312024-02-29 7:09:2912 hrs 44 mins ago1709190569IN
0x954b15...68Ea9b6E
0 FTM0.0085989599.59871044
Withdraw764930192024-02-29 1:59:5617 hrs 53 mins ago1709171996IN
0x954b15...68Ea9b6E
0 FTM0.0067759462.28066884
Deposit764855322024-02-28 23:43:3520 hrs 10 mins ago1709163815IN
0x954b15...68Ea9b6E
0 FTM0.0066103753.98115952
Withdraw764853912024-02-28 23:40:4720 hrs 12 mins ago1709163647IN
0x954b15...68Ea9b6E
0 FTM0.0046605153.98115952
Withdraw764853592024-02-28 23:40:1020 hrs 13 mins ago1709163610IN
0x954b15...68Ea9b6E
0 FTM0.0058729853.98115952
Withdraw764513572024-02-28 11:31:321 day 8 hrs ago1709119892IN
0x954b15...68Ea9b6E
0 FTM0.0035673241
Withdraw764513512024-02-28 11:31:081 day 8 hrs ago1709119868IN
0x954b15...68Ea9b6E
0 FTM0.0037167341
Deposit764512882024-02-28 11:27:391 day 8 hrs ago1709119659IN
0x954b15...68Ea9b6E
0 FTM0.0053373841
Withdraw764440542024-02-28 5:59:191 day 13 hrs ago1709099959IN
0x954b15...68Ea9b6E
0 FTM0.0025509229.54642423
Deposit764359222024-02-27 22:20:201 day 21 hrs ago1709072420IN
0x954b15...68Ea9b6E
0 FTM0.0049632141
Withdraw764216742024-02-27 14:48:112 days 5 hrs ago1709045291IN
0x954b15...68Ea9b6E
0 FTM0.0069594557.95634506
Withdraw764210172024-02-27 14:17:262 days 5 hrs ago1709043446IN
0x954b15...68Ea9b6E
0 FTM0.0060006865.4403581
Withdraw764209702024-02-27 14:15:062 days 5 hrs ago1709043306IN
0x954b15...68Ea9b6E
0 FTM0.0058471267.72518719
Emergency Withdr...764206442024-02-27 13:59:432 days 5 hrs ago1709042383IN
0x954b15...68Ea9b6E
0 FTM0.0039191770.6655013
Withdraw764206132024-02-27 13:58:302 days 5 hrs ago1709042310IN
0x954b15...68Ea9b6E
0 FTM0.0076881970.6655013
Deposit763978712024-02-27 5:56:152 days 13 hrs ago1709013375IN
0x954b15...68Ea9b6E
0 FTM0.0099933299.98529108
Withdraw763978362024-02-27 5:55:162 days 13 hrs ago1709013316IN
0x954b15...68Ea9b6E
0 FTM0.0103342899.90991839
Withdraw763757302024-02-26 22:37:332 days 21 hrs ago1708987053IN
0x954b15...68Ea9b6E
0 FTM0.00925725100.95487863
Withdraw763707662024-02-26 20:45:462 days 23 hrs ago1708980346IN
0x954b15...68Ea9b6E
0 FTM0.0084574492.23248276
Withdraw763707522024-02-26 20:45:242 days 23 hrs ago1708980324IN
0x954b15...68Ea9b6E
0 FTM0.0116499697.00787659
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
130963362021-07-27 20:27:09946 days 23 hrs ago1627417629  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GeneticAndGenome

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at ftmscan.com on 2021-07-27
*/

// SPDX-License-Identifier: MIT

/*
 *       $$$$$$_$$__$$__$$$$__$$$$$$
 *       ____$$_$$__$$_$$_______$$
 *       ____$$_$$__$$__$$$$____$$
 *       $$__$$_$$__$$_____$$___$$
 *       _$$$$___$$$$___$$$$____$$
 *
 *       $$__$$_$$$$$$_$$$$$__$$_____$$$$$
 *       _$$$$____$$___$$_____$$_____$$__$$
 *       __$$_____$$___$$$$___$$_____$$__$$
 *       __$$_____$$___$$_____$$_____$$__$$
 *       __$$___$$$$$$_$$$$$__$$$$$$_$$$$$
 *
 *       $$___$_$$$$$$_$$$$$$_$$__$$
 *       $$___$___$$_____$$___$$__$$
 *       $$_$_$___$$_____$$___$$$$$$
 *       $$$$$$___$$_____$$___$$__$$
 *       _$$_$$_$$$$$$___$$___$$__$$
 *
 *       $$__$$_$$$$$__$$
 *       _$$$$__$$_____$$
 *       __$$___$$$$___$$
 *       __$$___$$_____$$
 *       __$$___$$$$$__$$$$$$
 */

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on 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;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

/**
 * @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 OwnableData {
    address public owner;
    address public pendingOwner;
}

abstract contract Ownable is OwnableData {
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor () {
        owner = 0x4e5b3043FEB9f939448e2F791a66C4EA65A315a8;
        emit OwnershipTransferred(address(0), owner);
    }

    function transferOwnership(address newOwner, bool direct, bool renounce) public onlyOwner {
        if (direct) {

            require(newOwner != address(0) || renounce, "Ownable: zero address");

            emit OwnershipTransferred(owner, newOwner);
            owner = newOwner;
        } else {
            pendingOwner = newOwner;
        }
    }

    function claimOwnership() public {
        address _pendingOwner = pendingOwner;

        require(msg.sender == _pendingOwner, "Ownable: caller != pending owner");

        emit OwnershipTransferred(owner, _pendingOwner);
        owner = _pendingOwner;
        pendingOwner = address(0);
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }
}

/**
 * @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 IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "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");
        }
    }
}

// Genetic & Genome intakes one token and allows the user to farm another token.

contract GeneticAndGenome is Ownable {
    using SafeERC20 for IERC20;
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 remainingYelTokenReward;  // YEL Tokens that weren't distributed for user per pool.
        //
        // Any point in time, the amount of YEL entitled to a user but is pending to be distributed is:
        // pending reward = (user.amount * pool.accYELPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws Staked tokens to a pool. Here's what happens:
        //   1. The pool's `accYELPerShare` (and `lastRewardTime`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }
    // Info of each pool.
    struct PoolInfo {
        IERC20 stakingToken; // Contract address of staked token
        uint256 stakingTokenTotalAmount; //Total amount of deposited tokens
        uint256 accYelPerShare; // Accumulated YEL per share, times 1e12. See below.
        uint32 lastRewardTime; // Last timestamp number that YEL distribution occurs.
        uint16 allocPoint; // How many allocation points assigned to this pool. YEL to distribute per second.
    }
    
    IERC20 immutable public yel; // The YEL token
    
    uint256 public yelPerSecond; // YEL tokens vested per second.
    
    PoolInfo[] public poolInfo; // Info of each pool.
    
    mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Info of each user that stakes tokens.
    
    uint256 public totalAllocPoint = 0; // Total allocation points. Must be the sum of all allocation points in all pools.
    
    uint32 immutable public startTime; // The timestamp when YEL farming starts.
    
    uint32 public endTime; // Time on which the reward calculation should end

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

    constructor(
        IERC20 _yel,
        uint256 _yelPerSecond,
        uint32 _startTime
    ) {
        yel = _yel;

        yelPerSecond = _yelPerSecond;
        startTime = _startTime;
        endTime = _startTime + 7 days;
    }
    
    function changeEndTime(uint32 addSeconds) external onlyOwner {
        endTime += addSeconds;
    }
    
    // Changes YEL token reward per second. Use this function to moderate the `lockup amount`.
    // Essentially this function changes the amount of the reward which is entitled to the user
    // for his token staking by the time the `endTime` is passed.
    // Good practice to update pools without messing up the contract
    function setYelPerSecond(uint256 _yelPerSecond,  bool _withUpdate) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        yelPerSecond= _yelPerSecond;
    }

    // How many pools are in the contract
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new staking token to the pool. Can only be called by the owner.
    // VERY IMPORTANT NOTICE 
    // ----------- DO NOT add the same staking token more than once. Rewards will be messed up if you do. -------------
    // Good practice to update pools without messing up the contract
    function add(
        uint16 _allocPoint,
        IERC20 _stakingToken,
        bool _withUpdate
    ) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardTime =
            block.timestamp > startTime ? block.timestamp : startTime;
        totalAllocPoint +=_allocPoint;
        poolInfo.push(
            PoolInfo({
                stakingToken: _stakingToken,
                stakingTokenTotalAmount: 0,
                allocPoint: _allocPoint,
                lastRewardTime: uint32(lastRewardTime),
                accYelPerShare: 0
            })
        );
    }

    // Update the given pool's YEL allocation point. Can only be called by the owner.
    // Good practice to update pools without messing up the contract
    function set(
        uint256 _pid,
        uint16 _allocPoint,
        bool _withUpdate
    ) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Return reward multiplier over the given _from to _to time.
    function getMultiplier(uint256 _from, uint256 _to)
        public
        view
        returns (uint256)
    {
        _from = _from > startTime ? _from : startTime;
        if (_from > endTime || _to < startTime) {
            return 0;
        }
        if (_to > endTime) {
            return endTime - _from;
        }
        return _to - _from;
    }

    // View function to see pending YEL on frontend.
    function pendingYel(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accYelPerShare = pool.accYelPerShare;
       
        if (block.timestamp > pool.lastRewardTime && pool.stakingTokenTotalAmount != 0) {
            uint256 multiplier =
                getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 yelReward =
                multiplier * yelPerSecond * pool.allocPoint / totalAllocPoint;
            accYelPerShare += yelReward * 1e12 / pool.stakingTokenTotalAmount;
        }
        return user.amount * accYelPerShare / 1e12 - user.rewardDebt + user.remainingYelTokenReward;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }

        if (pool.stakingTokenTotalAmount == 0) {
            pool.lastRewardTime = uint32(block.timestamp);
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
        uint256 yelReward =
            multiplier * yelPerSecond * pool.allocPoint / totalAllocPoint;
        pool.accYelPerShare += yelReward * 1e12 / pool.stakingTokenTotalAmount;
        pool.lastRewardTime = uint32(block.timestamp);
    }

    // Deposit staking tokens to Genetic & Genome for YEL allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user.amount * pool.accYelPerShare / 1e12 - user.rewardDebt + user.remainingYelTokenReward;
            user.remainingYelTokenReward = safeRewardTransfer(msg.sender, pending);
        }
        pool.stakingToken.safeTransferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        user.amount += _amount;
        pool.stakingTokenTotalAmount += _amount;
        user.rewardDebt = user.amount * pool.accYelPerShare / 1e12;
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw staked tokens from Genetic & Genome.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "Genetic & Genome: you do not have enough tokens to complete this operation");
        updatePool(_pid);
        uint256 pending =
            user.amount * pool.accYelPerShare / 1e12 - user.rewardDebt + user.remainingYelTokenReward;
        user.remainingYelTokenReward = safeRewardTransfer(msg.sender, pending);
        user.amount -= _amount;
        pool.stakingTokenTotalAmount -= _amount;
        user.rewardDebt = user.amount * pool.accYelPerShare / 1e12;
        pool.stakingToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }
    
    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 userAmount = user.amount;
        pool.stakingTokenTotalAmount -= userAmount;
        user.amount = 0;
        user.rewardDebt = 0;
        user.remainingYelTokenReward = 0;
        pool.stakingToken.safeTransfer(address(msg.sender), userAmount);
        emit EmergencyWithdraw(msg.sender, _pid, userAmount);
    }

    // Safe YEL transfer function. Just in case if the pool does not have enough YEL token,
    // The function returns the amount which is owed to the user
    function safeRewardTransfer(address _to, uint256 _amount) internal returns(uint256) {
        uint256 yelTokenBalance = yel.balanceOf(address(this));
        if (_amount > yelTokenBalance) {
            yel.safeTransfer(_to, yelTokenBalance);
            return _amount - yelTokenBalance;
        }
        yel.safeTransfer(_to, _amount);
        return 0;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_yel","type":"address"},{"internalType":"uint256","name":"_yelPerSecond","type":"uint256"},{"internalType":"uint32","name":"_startTime","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint16","name":"_allocPoint","type":"uint16"},{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"addSeconds","type":"uint32"}],"name":"changeEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingYel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"stakingToken","type":"address"},{"internalType":"uint256","name":"stakingTokenTotalAmount","type":"uint256"},{"internalType":"uint256","name":"accYelPerShare","type":"uint256"},{"internalType":"uint32","name":"lastRewardTime","type":"uint32"},{"internalType":"uint16","name":"allocPoint","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint16","name":"_allocPoint","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_yelPerSecond","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setYelPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"renounce","type":"bool"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"remainingYelTokenReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yel","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yelPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c060405260006005553480156200001657600080fd5b5060405162001a1438038062001a148339810160408190526200003991620000e8565b600080546001600160a01b031916734e5b3043feb9f939448e2f791a66c4ea65a315a890811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160601b0319606084901b1660805260028290556001600160e01b031960e082901b1660a052620000c48162093a8062000140565b6006805463ffffffff191663ffffffff929092169190911790555062000175915050565b600080600060608486031215620000fd578283fd5b83516001600160a01b038116811462000114578384fd5b60208501516040860151919450925063ffffffff8116811462000135578182fd5b809150509250925092565b600063ffffffff8083168185168083038211156200016c57634e487b7160e01b84526011600452602484fd5b01949350505050565b60805160601c60a05160e01c61183b620001d9600039600081816102b701528181610b5801528181610b8501528181610bc701528181610c740152610ca1015260008181610270015281816110df0152818161117001526111b6015261183b6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80635312ea8e116100c357806393f1a40b1161007c57806393f1a40b146102ff57806398ec8da614610354578063cf42947b14610367578063d1c1b4a81461037a578063e2bbb1581461038d578063e30c3978146103a057600080fd5b80635312ea8e146102585780635833ebe01461026b578063630b5ba1146102aa57806378e97925146102b25780638da5cb5b146102d95780638dbb1e3a146102ec57600080fd5b80632a6eff35116101155780632a6eff35146101df5780633197cbb6146101f25780634387069214610217578063441a3e701461022a5780634e71e0c81461023d57806351eb05a61461024557600080fd5b8063078dfbe714610152578063081e3eda146101675780631526fe271461017e57806317caf6f1146101cd5780631f9d9941146101d6575b600080fd5b6101656101603660046114e9565b6103b3565b005b6003545b6040519081526020015b60405180910390f35b61019161018c36600461157c565b6104c0565b604080516001600160a01b03909616865260208601949094529284019190915263ffffffff16606083015261ffff16608082015260a001610175565b61016b60055481565b61016b60025481565b6101656101ed3660046115db565b610518565b6006546102029063ffffffff1681565b60405163ffffffff9091168152602001610175565b61016b6102253660046115ac565b610556565b610165610238366004611623565b6106a3565b610165610886565b61016561025336600461157c565b610943565b61016561026636600461157c565b610a5c565b6102927f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610175565b610165610b29565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b600054610292906001600160a01b031681565b61016b6102fa366004611623565b610b54565b61033961030d3660046115ac565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610175565b61016561036236600461154f565b610c38565b610165610375366004611644565b610e13565b6101656103883660046115ff565b610e79565b61016561039b366004611623565b610f66565b600154610292906001600160a01b031681565b6000546001600160a01b031633146103e65760405162461bcd60e51b81526004016103dd906116b7565b60405180910390fd5b811561049f576001600160a01b0383161515806104005750805b6104445760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016103dd565b600080546040516001600160a01b03808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0385166001600160a01b0319909116179055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b600381815481106104d057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919063ffffffff811690640100000000900461ffff1685565b6000546001600160a01b031633146105425760405162461bcd60e51b81526004016103dd906116b7565b801561055057610550610b29565b50600255565b6000806003848154811061057a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b038a168752909352919093209102909101600281015460038201549193509063ffffffff16421180156105ce5750600183015415155b1561065b5760038301546000906105eb9063ffffffff1642610b54565b905060006005548560030160049054906101000a900461ffff1661ffff1660025484610617919061174c565b610621919061174c565b61062b919061172c565b60018601549091506106428264e8d4a5100061174c565b61064c919061172c565b61065690846116ec565b925050505b60028201546001830154835464e8d4a510009061067990859061174c565b610683919061172c565b61068d919061176b565b61069791906116ec565b93505050505b92915050565b6000600383815481106106c657634e487b7160e01b600052603260045260246000fd5b600091825260208083208684526004808352604080862033875290935291909320805492909102909201925083111561077a5760405162461bcd60e51b815260206004820152604a60248201527f47656e6574696320262047656e6f6d653a20796f7520646f206e6f742068617660448201527f6520656e6f75676820746f6b656e7320746f20636f6d706c65746520746869736064820152691037b832b930ba34b7b760b11b608482015260a4016103dd565b61078384610943565b60008160020154826001015464e8d4a51000856002015485600001546107a9919061174c565b6107b3919061172c565b6107bd919061176b565b6107c791906116ec565b90506107d333826110bd565b60028301558154849083906000906107ec90849061176b565b9250508190555083836001016000828254610807919061176b565b90915550506002830154825464e8d4a51000916108239161174c565b61082d919061172c565b60018301558254610848906001600160a01b031633866111e7565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6001546001600160a01b03163381146108e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016103dd565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b60006003828154811061096657634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600381015490915063ffffffff16421161098e575050565b60018101546109b057600301805463ffffffff19164263ffffffff1617905550565b60038101546000906109c89063ffffffff1642610b54565b905060006005548360030160049054906101000a900461ffff1661ffff16600254846109f4919061174c565b6109fe919061174c565b610a08919061172c565b6001840154909150610a1f8264e8d4a5100061174c565b610a29919061172c565b836002016000828254610a3c91906116ec565b90915550505050600301805463ffffffff19164263ffffffff1617905550565b600060038281548110610a7f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832085845260048083526040808620338752909352918420805493909202016001810180549195509193839291610abf90849061176b565b909155505060008083556001830181905560028301558254610aeb906001600160a01b031633836111e7565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60035460005b81811015610b5057610b4081610943565b610b49816117ae565b9050610b2f565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000063ffffffff168311610baf577f000000000000000000000000000000000000000000000000000000000000000063ffffffff16610bb1565b825b60065490935063ffffffff16831180610bef57507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1682105b15610bfc5750600061069d565b60065463ffffffff16821115610c2757600654610c2090849063ffffffff1661176b565b905061069d565b610c31838361176b565b9392505050565b6000546001600160a01b03163314610c625760405162461bcd60e51b81526004016103dd906116b7565b8015610c7057610c70610b29565b60007f000000000000000000000000000000000000000000000000000000000000000063ffffffff164211610ccb577f000000000000000000000000000000000000000000000000000000000000000063ffffffff16610ccd565b425b90508361ffff1660056000828254610ce591906116ec565b90915550506040805160a0810182526001600160a01b03948516815260006020820181815292820181815263ffffffff9485166060840190815261ffff98891660808501908152600380546001810182559452935160049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81018054949099166001600160a01b03199094169390931790975592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d83015593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e909101805494519095166401000000000265ffffffffffff199094169116179190911790915550565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526004016103dd906116b7565b60068054829190600090610e5890849063ffffffff16611704565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6000546001600160a01b03163314610ea35760405162461bcd60e51b81526004016103dd906116b7565b8015610eb157610eb1610b29565b8161ffff1660038481548110610ed757634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160030154600554610f0491640100000000900461ffff169061176b565b610f0e91906116ec565b6005819055508160038481548110610f3657634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030160046101000a81548161ffff021916908361ffff160217905550505050565b600060038381548110610f8957634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932091029091019150610fba84610943565b8054156110185760008160020154826001015464e8d4a5100085600201548560000154610fe7919061174c565b610ff1919061172c565b610ffb919061176b565b61100591906116ec565b905061101133826110bd565b6002830155505b815461102f906001600160a01b031633308661124a565b8281600001600082825461104391906116ec565b925050819055508282600101600082825461105e91906116ec565b90915550506002820154815464e8d4a510009161107a9161174c565b611084919061172c565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610b1b565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561112157600080fd5b505afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111599190611594565b9050808311156111a9576111976001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685836111e7565b6111a1818461176b565b91505061069d565b6111dd6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685856111e7565b5060009392505050565b6040516001600160a01b0383166024820152604481018290526104bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611288565b6040516001600160a01b03808516602483015283166044820152606481018290526112829085906323b872dd60e01b90608401611213565b50505050565b60006112dd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661135a9092919063ffffffff16565b8051909150156104bb57808060200190518101906112fb9190611533565b6104bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103dd565b60606113698484600085611371565b949350505050565b6060824710156113d25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103dd565b843b6114205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103dd565b600080866001600160a01b0316858760405161143c9190611668565b60006040518083038185875af1925050503d8060008114611479576040519150601f19603f3d011682016040523d82523d6000602084013e61147e565b606091505b509150915061148e828286611499565b979650505050505050565b606083156114a8575081610c31565b8251156114b85782518084602001fd5b8160405162461bcd60e51b81526004016103dd9190611684565b803561ffff811681146114e457600080fd5b919050565b6000806000606084860312156114fd578283fd5b8335611508816117df565b92506020840135611518816117f7565b91506040840135611528816117f7565b809150509250925092565b600060208284031215611544578081fd5b8151610c31816117f7565b600080600060608486031215611563578283fd5b61156c846114d2565b92506020840135611518816117df565b60006020828403121561158d578081fd5b5035919050565b6000602082840312156115a5578081fd5b5051919050565b600080604083850312156115be578182fd5b8235915060208301356115d0816117df565b809150509250929050565b600080604083850312156115ed578182fd5b8235915060208301356115d0816117f7565b600080600060608486031215611613578283fd5b83359250611518602085016114d2565b60008060408385031215611635578182fd5b50508035926020909101359150565b600060208284031215611655578081fd5b813563ffffffff81168114610c31578182fd5b6000825161167a818460208701611782565b9190910192915050565b60208152600082518060208401526116a3816040850160208701611782565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156116ff576116ff6117c9565b500190565b600063ffffffff808316818516808303821115611723576117236117c9565b01949350505050565b60008261174757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611766576117666117c9565b500290565b60008282101561177d5761177d6117c9565b500390565b60005b8381101561179d578181015183820152602001611785565b838111156112825750506000910152565b60006000198214156117c2576117c26117c9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117f457600080fd5b50565b80151581146117f457600080fdfea2646970667358221220a8af42bd50cd047091e682b015340c49d4af7c9f538153e227e9aedefbc3c4ea64736f6c63430008040033000000000000000000000000d3b71117e6c1558c1553305b44988cd944e97300000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000061018d10

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80635312ea8e116100c357806393f1a40b1161007c57806393f1a40b146102ff57806398ec8da614610354578063cf42947b14610367578063d1c1b4a81461037a578063e2bbb1581461038d578063e30c3978146103a057600080fd5b80635312ea8e146102585780635833ebe01461026b578063630b5ba1146102aa57806378e97925146102b25780638da5cb5b146102d95780638dbb1e3a146102ec57600080fd5b80632a6eff35116101155780632a6eff35146101df5780633197cbb6146101f25780634387069214610217578063441a3e701461022a5780634e71e0c81461023d57806351eb05a61461024557600080fd5b8063078dfbe714610152578063081e3eda146101675780631526fe271461017e57806317caf6f1146101cd5780631f9d9941146101d6575b600080fd5b6101656101603660046114e9565b6103b3565b005b6003545b6040519081526020015b60405180910390f35b61019161018c36600461157c565b6104c0565b604080516001600160a01b03909616865260208601949094529284019190915263ffffffff16606083015261ffff16608082015260a001610175565b61016b60055481565b61016b60025481565b6101656101ed3660046115db565b610518565b6006546102029063ffffffff1681565b60405163ffffffff9091168152602001610175565b61016b6102253660046115ac565b610556565b610165610238366004611623565b6106a3565b610165610886565b61016561025336600461157c565b610943565b61016561026636600461157c565b610a5c565b6102927f000000000000000000000000d3b71117e6c1558c1553305b44988cd944e9730081565b6040516001600160a01b039091168152602001610175565b610165610b29565b6102027f0000000000000000000000000000000000000000000000000000000061018d1081565b600054610292906001600160a01b031681565b61016b6102fa366004611623565b610b54565b61033961030d3660046115ac565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610175565b61016561036236600461154f565b610c38565b610165610375366004611644565b610e13565b6101656103883660046115ff565b610e79565b61016561039b366004611623565b610f66565b600154610292906001600160a01b031681565b6000546001600160a01b031633146103e65760405162461bcd60e51b81526004016103dd906116b7565b60405180910390fd5b811561049f576001600160a01b0383161515806104005750805b6104445760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016103dd565b600080546040516001600160a01b03808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0385166001600160a01b0319909116179055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b600381815481106104d057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919063ffffffff811690640100000000900461ffff1685565b6000546001600160a01b031633146105425760405162461bcd60e51b81526004016103dd906116b7565b801561055057610550610b29565b50600255565b6000806003848154811061057a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b038a168752909352919093209102909101600281015460038201549193509063ffffffff16421180156105ce5750600183015415155b1561065b5760038301546000906105eb9063ffffffff1642610b54565b905060006005548560030160049054906101000a900461ffff1661ffff1660025484610617919061174c565b610621919061174c565b61062b919061172c565b60018601549091506106428264e8d4a5100061174c565b61064c919061172c565b61065690846116ec565b925050505b60028201546001830154835464e8d4a510009061067990859061174c565b610683919061172c565b61068d919061176b565b61069791906116ec565b93505050505b92915050565b6000600383815481106106c657634e487b7160e01b600052603260045260246000fd5b600091825260208083208684526004808352604080862033875290935291909320805492909102909201925083111561077a5760405162461bcd60e51b815260206004820152604a60248201527f47656e6574696320262047656e6f6d653a20796f7520646f206e6f742068617660448201527f6520656e6f75676820746f6b656e7320746f20636f6d706c65746520746869736064820152691037b832b930ba34b7b760b11b608482015260a4016103dd565b61078384610943565b60008160020154826001015464e8d4a51000856002015485600001546107a9919061174c565b6107b3919061172c565b6107bd919061176b565b6107c791906116ec565b90506107d333826110bd565b60028301558154849083906000906107ec90849061176b565b9250508190555083836001016000828254610807919061176b565b90915550506002830154825464e8d4a51000916108239161174c565b61082d919061172c565b60018301558254610848906001600160a01b031633866111e7565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6001546001600160a01b03163381146108e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016103dd565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b60006003828154811061096657634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600381015490915063ffffffff16421161098e575050565b60018101546109b057600301805463ffffffff19164263ffffffff1617905550565b60038101546000906109c89063ffffffff1642610b54565b905060006005548360030160049054906101000a900461ffff1661ffff16600254846109f4919061174c565b6109fe919061174c565b610a08919061172c565b6001840154909150610a1f8264e8d4a5100061174c565b610a29919061172c565b836002016000828254610a3c91906116ec565b90915550505050600301805463ffffffff19164263ffffffff1617905550565b600060038281548110610a7f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832085845260048083526040808620338752909352918420805493909202016001810180549195509193839291610abf90849061176b565b909155505060008083556001830181905560028301558254610aeb906001600160a01b031633836111e7565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60035460005b81811015610b5057610b4081610943565b610b49816117ae565b9050610b2f565b5050565b60007f0000000000000000000000000000000000000000000000000000000061018d1063ffffffff168311610baf577f0000000000000000000000000000000000000000000000000000000061018d1063ffffffff16610bb1565b825b60065490935063ffffffff16831180610bef57507f0000000000000000000000000000000000000000000000000000000061018d1063ffffffff1682105b15610bfc5750600061069d565b60065463ffffffff16821115610c2757600654610c2090849063ffffffff1661176b565b905061069d565b610c31838361176b565b9392505050565b6000546001600160a01b03163314610c625760405162461bcd60e51b81526004016103dd906116b7565b8015610c7057610c70610b29565b60007f0000000000000000000000000000000000000000000000000000000061018d1063ffffffff164211610ccb577f0000000000000000000000000000000000000000000000000000000061018d1063ffffffff16610ccd565b425b90508361ffff1660056000828254610ce591906116ec565b90915550506040805160a0810182526001600160a01b03948516815260006020820181815292820181815263ffffffff9485166060840190815261ffff98891660808501908152600380546001810182559452935160049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81018054949099166001600160a01b03199094169390931790975592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d83015593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e909101805494519095166401000000000265ffffffffffff199094169116179190911790915550565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526004016103dd906116b7565b60068054829190600090610e5890849063ffffffff16611704565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6000546001600160a01b03163314610ea35760405162461bcd60e51b81526004016103dd906116b7565b8015610eb157610eb1610b29565b8161ffff1660038481548110610ed757634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160030154600554610f0491640100000000900461ffff169061176b565b610f0e91906116ec565b6005819055508160038481548110610f3657634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030160046101000a81548161ffff021916908361ffff160217905550505050565b600060038381548110610f8957634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932091029091019150610fba84610943565b8054156110185760008160020154826001015464e8d4a5100085600201548560000154610fe7919061174c565b610ff1919061172c565b610ffb919061176b565b61100591906116ec565b905061101133826110bd565b6002830155505b815461102f906001600160a01b031633308661124a565b8281600001600082825461104391906116ec565b925050819055508282600101600082825461105e91906116ec565b90915550506002820154815464e8d4a510009161107a9161174c565b611084919061172c565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610b1b565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000d3b71117e6c1558c1553305b44988cd944e9730016906370a082319060240160206040518083038186803b15801561112157600080fd5b505afa158015611135573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111599190611594565b9050808311156111a9576111976001600160a01b037f000000000000000000000000d3b71117e6c1558c1553305b44988cd944e973001685836111e7565b6111a1818461176b565b91505061069d565b6111dd6001600160a01b037f000000000000000000000000d3b71117e6c1558c1553305b44988cd944e973001685856111e7565b5060009392505050565b6040516001600160a01b0383166024820152604481018290526104bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611288565b6040516001600160a01b03808516602483015283166044820152606481018290526112829085906323b872dd60e01b90608401611213565b50505050565b60006112dd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661135a9092919063ffffffff16565b8051909150156104bb57808060200190518101906112fb9190611533565b6104bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103dd565b60606113698484600085611371565b949350505050565b6060824710156113d25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103dd565b843b6114205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103dd565b600080866001600160a01b0316858760405161143c9190611668565b60006040518083038185875af1925050503d8060008114611479576040519150601f19603f3d011682016040523d82523d6000602084013e61147e565b606091505b509150915061148e828286611499565b979650505050505050565b606083156114a8575081610c31565b8251156114b85782518084602001fd5b8160405162461bcd60e51b81526004016103dd9190611684565b803561ffff811681146114e457600080fd5b919050565b6000806000606084860312156114fd578283fd5b8335611508816117df565b92506020840135611518816117f7565b91506040840135611528816117f7565b809150509250925092565b600060208284031215611544578081fd5b8151610c31816117f7565b600080600060608486031215611563578283fd5b61156c846114d2565b92506020840135611518816117df565b60006020828403121561158d578081fd5b5035919050565b6000602082840312156115a5578081fd5b5051919050565b600080604083850312156115be578182fd5b8235915060208301356115d0816117df565b809150509250929050565b600080604083850312156115ed578182fd5b8235915060208301356115d0816117f7565b600080600060608486031215611613578283fd5b83359250611518602085016114d2565b60008060408385031215611635578182fd5b50508035926020909101359150565b600060208284031215611655578081fd5b813563ffffffff81168114610c31578182fd5b6000825161167a818460208701611782565b9190910192915050565b60208152600082518060208401526116a3816040850160208701611782565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156116ff576116ff6117c9565b500190565b600063ffffffff808316818516808303821115611723576117236117c9565b01949350505050565b60008261174757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611766576117666117c9565b500290565b60008282101561177d5761177d6117c9565b500390565b60005b8381101561179d578181015183820152602001611785565b838111156112825750506000910152565b60006000198214156117c2576117c26117c9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117f457600080fd5b50565b80151581146117f457600080fdfea2646970667358221220a8af42bd50cd047091e682b015340c49d4af7c9f538153e227e9aedefbc3c4ea64736f6c63430008040033

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

000000000000000000000000d3b71117e6c1558c1553305b44988cd944e97300000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000061018d10

-----Decoded View---------------
Arg [0] : _yel (address): 0xD3b71117E6C1558c1553305b44988cd944e97300
Arg [1] : _yelPerSecond (uint256): 100000000000000000
Arg [2] : _startTime (uint32): 1627491600

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d3b71117e6c1558c1553305b44988cd944e97300
Arg [1] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000061018d10


Deployed Bytecode Sourcemap

16973:9947:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12358:363;;;;;;:::i;:::-;;:::i;:::-;;20207:95;20279:8;:15;20207:95;;;8628:25:1;;;8616:2;8601:18;20207:95:0;;;;;;;;18526:26;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5116:32:1;;;5098:51;;5180:2;5165:18;;5158:34;;;;5208:18;;;5201:34;;;;5283:10;5271:23;5266:2;5251:18;;5244:51;5344:6;5332:19;5326:3;5311:19;;5304:48;5085:3;5070:19;18526:26:0;5052:306:1;18705:34:0;;;;;;18453:27;;;;;;19953:203;;;;;;:::i;:::-;;:::i;18923:21::-;;;;;;;;;;;;9162:10:1;9150:23;;;9132:42;;9120:2;9105:18;18923:21:0;9087:93:1;22266:791:0;;;;;;:::i;:::-;;:::i;25000:807::-;;;;;;:::i;:::-;;:::i;12729:301::-;;;:::i;23396:654::-;;;;;;:::i;:::-;;:::i;25882:498::-;;;;;;:::i;:::-;;:::i;18396:27::-;;;;;;;;-1:-1:-1;;;;;3904:32:1;;;3886:51;;3874:2;3859:18;18396:27:0;3841:102:1;23140:180:0;;;:::i;18835:33::-;;;;;12009:20;;;;;-1:-1:-1;;;;;12009:20:0;;;21835:369;;;;;;:::i;:::-;;:::i;18587:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8866:25:1;;;8922:2;8907:18;;8900:34;;;;8950:18;;;8943:34;8854:2;8839:18;18587:64:0;8821:162:1;20610:652:0;;;;;;:::i;:::-;;:::i;19510:101::-;;;;;;:::i;:::-;;:::i;21427:333::-;;;;;;:::i;:::-;;:::i;24129:809::-;;;;;;:::i;:::-;;:::i;12036:27::-;;;;;-1:-1:-1;;;;;12036:27:0;;;12358:363;13092:5;;-1:-1:-1;;;;;13092:5:0;13078:10;:19;13070:64;;;;-1:-1:-1;;;13070:64:0;;;;;;;:::i;:::-;;;;;;;;;12463:6:::1;12459:255;;;-1:-1:-1::0;;;;;12496:22:0;::::1;::::0;::::1;::::0;:34:::1;;;12522:8;12496:34;12488:68;;;::::0;-1:-1:-1;;;12488:68:0;;5953:2:1;12488:68:0::1;::::0;::::1;5935:21:1::0;5992:2;5972:18;;;5965:30;-1:-1:-1;;;6011:18:1;;;6004:51;6072:18;;12488:68:0::1;5925:171:1::0;12488:68:0::1;12599:5;::::0;;12578:37:::1;::::0;-1:-1:-1;;;;;12578:37:0;;::::1;::::0;12599:5;::::1;::::0;12578:37:::1;::::0;::::1;12630:5;:16:::0;;-1:-1:-1;;;;;12630:16:0;::::1;-1:-1:-1::0;;;;;;12630:16:0;;::::1;;::::0;;12358:363;;;:::o;12459:255::-:1;12679:12;:23:::0;;-1:-1:-1;;;;;;12679:23:0::1;-1:-1:-1::0;;;;;12679:23:0;::::1;;::::0;;12459:255:::1;12358:363:::0;;;:::o;18526:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18526:26:0;;;;-1:-1:-1;18526:26:0;;;;;;;;;;;;:::o;19953:203::-;13092:5;;-1:-1:-1;;;;;13092:5:0;13078:10;:19;13070:64;;;;-1:-1:-1;;;13070:64:0;;;;;;;:::i;:::-;20054:11:::1;20050:61;;;20082:17;:15;:17::i;:::-;-1:-1:-1::0;20121:12:0::1;:27:::0;19953:203::o;22266:791::-;22365:7;22390:21;22414:8;22423:4;22414:14;;;;;;-1:-1:-1;;;22414:14:0;;;;;;;;;;;;;;;;;22463;;;22414;22463;;;;;;;-1:-1:-1;;;;;22463:21:0;;;;;;;;;;;22414:14;;;;;22520:19;;;;22581;;;;22414:14;;-1:-1:-1;22520:19:0;22581;;22563:15;:37;:74;;;;-1:-1:-1;22604:28:0;;;;:33;;22563:74;22559:389;;;22706:19;;;;22654:18;;22692:51;;22706:19;;22727:15;22692:13;:51::i;:::-;22654:89;;22758:17;22841:15;;22823:4;:15;;;;;;;;;;;;22795:43;;22808:12;;22795:10;:25;;;;:::i;:::-;:43;;;;:::i;:::-;:61;;;;:::i;:::-;22908:28;;;;22758:98;;-1:-1:-1;22889:16:0;22758:98;22901:4;22889:16;:::i;:::-;:47;;;;:::i;:::-;22871:65;;;;:::i;:::-;;;22559:389;;;23021:28;;;;23003:15;;;;22965:11;;22996:4;;22965:28;;22979:14;;22965:28;:::i;:::-;:35;;;;:::i;:::-;:53;;;;:::i;:::-;:84;;;;:::i;:::-;22958:91;;;;;22266:791;;;;;:::o;25000:807::-;25067:21;25091:8;25100:4;25091:14;;;;;;-1:-1:-1;;;25091:14:0;;;;;;;;;;;;;;;;;25140;;;25091;25140;;;;;;;25155:10;25140:26;;;;;;;;;25185:11;;25091:14;;;;;;;;-1:-1:-1;;;25185:22:0;25177:109;;;;-1:-1:-1;;;25177:109:0;;7071:2:1;25177:109:0;;;7053:21:1;7110:2;7090:18;;;7083:30;7149:34;7129:18;;;7122:62;7220:34;7200:18;;;7193:62;-1:-1:-1;;;7271:19:1;;;7264:41;7322:19;;25177:109:0;7043:304:1;25177:109:0;25297:16;25308:4;25297:10;:16::i;:::-;25324:15;25416:4;:28;;;25398:4;:15;;;25391:4;25369;:19;;;25355:4;:11;;;:33;;;;:::i;:::-;:40;;;;:::i;:::-;:58;;;;:::i;:::-;:89;;;;:::i;:::-;25324:120;;25486:39;25505:10;25517:7;25486:18;:39::i;:::-;25455:28;;;:70;25536:22;;25551:7;;25455:4;;25536:11;;:22;;25551:7;;25536:22;:::i;:::-;;;;;;;;25601:7;25569:4;:28;;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;;25651:19:0;;;;25637:11;;25673:4;;25637:33;;;:::i;:::-;:40;;;;:::i;:::-;25619:15;;;:58;25688:17;;:60;;-1:-1:-1;;;;;25688:17:0;25727:10;25740:7;25688:30;:60::i;:::-;25764:35;;8628:25:1;;;25785:4:0;;25773:10;;25764:35;;8616:2:1;8601:18;25764:35:0;;;;;;;25000:807;;;;;:::o;12729:301::-;12797:12;;-1:-1:-1;;;;;12797:12:0;12830:10;:27;;12822:72;;;;-1:-1:-1;;;12822:72:0;;7554:2:1;12822:72:0;;;7536:21:1;;;7573:18;;;7566:30;7632:34;7612:18;;;7605:62;7684:18;;12822:72:0;7526:182:1;12822:72:0;12933:5;;;12912:42;;-1:-1:-1;;;;;12912:42:0;;;;12933:5;;;12912:42;;;12965:5;:21;;-1:-1:-1;;;;;12965:21:0;;;-1:-1:-1;;;;;;12965:21:0;;;;;;;12997:25;;;;;;;12729:301::o;23396:654::-;23448:21;23472:8;23481:4;23472:14;;;;;;-1:-1:-1;;;23472:14:0;;;;;;;;;;;;;;;;;;;;;;23520:19;;;;23472:14;;-1:-1:-1;23520:19:0;;23501:15;:38;23497:77;;23556:7;23396:654;:::o;23497:77::-;23590:28;;;;23586:132;;23640:19;;:45;;-1:-1:-1;;23640:45:0;23669:15;23640:45;;;;;-1:-1:-1;23396:654:0:o;23586:132::-;23763:19;;;;23728:18;;23749:51;;23763:19;;23784:15;23749:13;:51::i;:::-;23728:72;;23811:17;23890:15;;23872:4;:15;;;;;;;;;;;;23844:43;;23857:12;;23844:10;:25;;;;:::i;:::-;:43;;;;:::i;:::-;:61;;;;:::i;:::-;23958:28;;;;23811:94;;-1:-1:-1;23939:16:0;23811:94;23951:4;23939:16;:::i;:::-;:47;;;;:::i;:::-;23916:4;:19;;;:70;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;23997:19:0;;:45;;-1:-1:-1;;23997:45:0;24026:15;23997:45;;;;;-1:-1:-1;23396:654:0:o;25882:498::-;25941:21;25965:8;25974:4;25965:14;;;;;;-1:-1:-1;;;25965:14:0;;;;;;;;;;;;;;;;;26014;;;25965;26014;;;;;;;26029:10;26014:26;;;;;;;;26072:11;;25965:14;;;;;26094:28;;;:42;;25965:14;;-1:-1:-1;26014:26:0;;26072:11;;26094:28;:42;;26072:11;;26094:42;:::i;:::-;;;;-1:-1:-1;;26161:1:0;26147:15;;;26173;;;:19;;;26203:28;;;:32;26246:17;;:63;;-1:-1:-1;;;;;26246:17:0;26285:10;26298;26246:30;:63::i;:::-;26325:47;;8628:25:1;;;26355:4:0;;26343:10;;26325:47;;8616:2:1;8601:18;26325:47:0;;;;;;;;25882:498;;;;:::o;23140:180::-;23202:8;:15;23185:14;23228:85;23256:6;23250:3;:12;23228:85;;;23286:15;23297:3;23286:10;:15::i;:::-;23264:5;;;:::i;:::-;;;23228:85;;;;23140:180;:::o;21835:369::-;21934:7;21975:9;21967:17;;:5;:17;:37;;21995:9;21967:37;;;;;21987:5;21967:37;22027:7;;21959:45;;-1:-1:-1;22027:7:0;;22019:15;;;:34;;;22044:9;22038:15;;:3;:15;22019:34;22015:75;;;-1:-1:-1;22077:1:0;22070:8;;22015:75;22110:7;;;;22104:13;;22100:68;;;22141:7;;:15;;22151:5;;22141:7;;:15;:::i;:::-;22134:22;;;;22100:68;22185:11;22191:5;22185:3;:11;:::i;:::-;22178:18;21835:369;-1:-1:-1;;;21835:369:0:o;20610:652::-;13092:5;;-1:-1:-1;;;;;13092:5:0;13078:10;:19;13070:64;;;;-1:-1:-1;;;13070:64:0;;;;;;;:::i;:::-;20751:11:::1;20747:61;;;20779:17;:15;:17::i;:::-;20818:22;20874:9;20856:27;;:15;:27;:57;;20904:9;20856:57;;;;;20886:15;20856:57;20818:95;;20942:11;20924:29;;:15;;:29;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;20992:251:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;20992:251:0;;::::1;::::0;;-1:-1:-1;20992:251:0::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;;;;;20964:8:::1;:290:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;-1:-1:-1::0;;;;;;20964:290:0;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;::::1;-1:-1:-1::0;;20964:290:0;;;;::::1;::::0;;;;::::1;::::0;;;-1:-1:-1;20610:652:0:o;19510:101::-;13092:5;;-1:-1:-1;;;;;13092:5:0;13078:10;:19;13070:64;;;;-1:-1:-1;;;13070:64:0;;;;;;;:::i;:::-;19582:7:::1;:21:::0;;19593:10;;19582:7;::::1;::::0;:21:::1;::::0;19593:10;;19582:21:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;19510:101:::0;:::o;21427:333::-;13092:5;;-1:-1:-1;;;;;13092:5:0;13078:10;:19;13070:64;;;;-1:-1:-1;;;13070:64:0;;;;;;;:::i;:::-;21560:11:::1;21556:61;;;21588:17;:15;:17::i;:::-;21691:11;21645:57;;21663:8;21672:4;21663:14;;;;;;-1:-1:-1::0;;;21663:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:25;;::::0;21645:15:::1;::::0;:43:::1;::::0;21663:25;;::::1;;;::::0;21645:43:::1;:::i;:::-;:57;;;;:::i;:::-;21627:15;:75;;;;21741:11;21713:8;21722:4;21713:14;;;;;;-1:-1:-1::0;;;21713:14:0::1;;;;;;;;;;;;;;;;;;;:25;;;:39;;;;;;;;;;;;;;;;;;21427:333:::0;;;:::o;24129:809::-;24195:21;24219:8;24228:4;24219:14;;;;;;-1:-1:-1;;;24219:14:0;;;;;;;;;;;;;;;;;24268;;;24219;24268;;;;;;;24283:10;24268:26;;;;;;;;;24219:14;;;;;;-1:-1:-1;24305:16:0;24277:4;24305:10;:16::i;:::-;24336:11;;:15;24332:257;;24368:15;24464:4;:28;;;24446:4;:15;;;24439:4;24417;:19;;;24403:4;:11;;;:33;;;;:::i;:::-;:40;;;;:::i;:::-;:58;;;;:::i;:::-;:89;;;;:::i;:::-;24368:124;;24538:39;24557:10;24569:7;24538:18;:39::i;:::-;24507:28;;;:70;-1:-1:-1;24332:257:0;24599:17;;:129;;-1:-1:-1;;;;;24599:17:0;24656:10;24690:4;24710:7;24599:34;:129::i;:::-;24754:7;24739:4;:11;;;:22;;;;;;;:::i;:::-;;;;;;;;24804:7;24772:4;:28;;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;;24854:19:0;;;;24840:11;;24876:4;;24840:33;;;:::i;:::-;:40;;;;:::i;:::-;24822:15;;;:58;24896:34;;8628:25:1;;;24916:4:0;;24904:10;;24896:34;;8616:2:1;8601:18;24896:34:0;8583:76:1;26547:370:0;26668:28;;-1:-1:-1;;;26668:28:0;;26690:4;26668:28;;;3886:51:1;26622:7:0;;;;-1:-1:-1;;;;;26668:3:0;:13;;;;3859:18:1;;26668:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;26642:54;;26721:15;26711:7;:25;26707:143;;;26753:38;-1:-1:-1;;;;;26753:3:0;:16;26770:3;26775:15;26753:16;:38::i;:::-;26813:25;26823:15;26813:7;:25;:::i;:::-;26806:32;;;;;26707:143;26860:30;-1:-1:-1;;;;;26860:3:0;:16;26877:3;26882:7;26860:16;:30::i;:::-;-1:-1:-1;26908:1:0;;26547:370;-1:-1:-1;;;26547:370:0:o;13687:177::-;13797:58;;-1:-1:-1;;;;;4520:32:1;;13797:58:0;;;4502:51:1;4569:18;;;4562:34;;;13770:86:0;;13790:5;;-1:-1:-1;;;13820:23:0;4475:18:1;;13797:58:0;;;;-1:-1:-1;;13797:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;13797:58:0;-1:-1:-1;;;;;;13797:58:0;;;;;;;;;;13770:19;:86::i;13872:205::-;14000:68;;-1:-1:-1;;;;;4206:15:1;;;14000:68:0;;;4188:34:1;4258:15;;4238:18;;;4231:43;4290:18;;;4283:34;;;13973:96:0;;13993:5;;-1:-1:-1;;;14023:27:0;4123:18:1;;14000:68:0;4105:218:1;13973:96:0;13872:205;;;;:::o;16121:761::-;16545:23;16571:69;16599:4;16571:69;;;;;;;;;;;;;;;;;16579:5;-1:-1:-1;;;;;16571:27:0;;;:69;;;;;:::i;:::-;16655:17;;16545:95;;-1:-1:-1;16655:21:0;16651:224;;16797:10;16786:30;;;;;;;;;;;;:::i;:::-;16778:85;;;;-1:-1:-1;;;16778:85:0;;8273:2:1;16778:85:0;;;8255:21:1;8312:2;8292:18;;;8285:30;8351:34;8331:18;;;8324:62;-1:-1:-1;;;8402:18:1;;;8395:40;8452:19;;16778:85:0;8245:232:1;4420:195:0;4523:12;4555:52;4577:6;4585:4;4591:1;4594:12;4555:21;:52::i;:::-;4548:59;4420:195;-1:-1:-1;;;;4420:195:0:o;5472:530::-;5599:12;5657:5;5632:21;:30;;5624:81;;;;-1:-1:-1;;;5624:81:0;;6303:2:1;5624:81:0;;;6285:21:1;6342:2;6322:18;;;6315:30;6381:34;6361:18;;;6354:62;-1:-1:-1;;;6432:18:1;;;6425:36;6478:19;;5624:81:0;6275:228:1;5624:81:0;1867:20;;5716:60;;;;-1:-1:-1;;;5716:60:0;;7915:2:1;5716:60:0;;;7897:21:1;7954:2;7934:18;;;7927:30;7993:31;7973:18;;;7966:59;8042:18;;5716:60:0;7887:179:1;5716:60:0;5850:12;5864:23;5891:6;-1:-1:-1;;;;;5891:11:0;5911:5;5919:4;5891:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5849:75;;;;5942:52;5960:7;5969:10;5981:12;5942:17;:52::i;:::-;5935:59;5472:530;-1:-1:-1;;;;;;;5472:530:0:o;8012:742::-;8127:12;8156:7;8152:595;;;-1:-1:-1;8187:10:0;8180:17;;8152:595;8301:17;;:21;8297:439;;8564:10;8558:17;8625:15;8612:10;8608:2;8604:19;8597:44;8512:148;8707:12;8700:20;;-1:-1:-1;;;8700:20:0;;;;;;;;:::i;14:159:1:-;81:20;;141:6;130:18;;120:29;;110:2;;163:1;160;153:12;110:2;62:111;;;:::o;178:527::-;249:6;257;265;318:2;306:9;297:7;293:23;289:32;286:2;;;339:6;331;324:22;286:2;383:9;370:23;402:31;427:5;402:31;:::i;:::-;452:5;-1:-1:-1;509:2:1;494:18;;481:32;522:30;481:32;522:30;:::i;:::-;571:7;-1:-1:-1;630:2:1;615:18;;602:32;643:30;602:32;643:30;:::i;:::-;692:7;682:17;;;276:429;;;;;:::o;710:255::-;777:6;830:2;818:9;809:7;805:23;801:32;798:2;;;851:6;843;836:22;798:2;888:9;882:16;907:28;929:5;907:28;:::i;970:478::-;1057:6;1065;1073;1126:2;1114:9;1105:7;1101:23;1097:32;1094:2;;;1147:6;1139;1132:22;1094:2;1175:28;1193:9;1175:28;:::i;:::-;1165:38;;1253:2;1242:9;1238:18;1225:32;1266:31;1291:5;1266:31;:::i;1453:190::-;1512:6;1565:2;1553:9;1544:7;1540:23;1536:32;1533:2;;;1586:6;1578;1571:22;1533:2;-1:-1:-1;1614:23:1;;1523:120;-1:-1:-1;1523:120:1:o;1648:194::-;1718:6;1771:2;1759:9;1750:7;1746:23;1742:32;1739:2;;;1792:6;1784;1777:22;1739:2;-1:-1:-1;1820:16:1;;1729:113;-1:-1:-1;1729:113:1:o;1847:325::-;1915:6;1923;1976:2;1964:9;1955:7;1951:23;1947:32;1944:2;;;1997:6;1989;1982:22;1944:2;2038:9;2025:23;2015:33;;2098:2;2087:9;2083:18;2070:32;2111:31;2136:5;2111:31;:::i;:::-;2161:5;2151:15;;;1934:238;;;;;:::o;2177:319::-;2242:6;2250;2303:2;2291:9;2282:7;2278:23;2274:32;2271:2;;;2324:6;2316;2309:22;2271:2;2365:9;2352:23;2342:33;;2425:2;2414:9;2410:18;2397:32;2438:28;2460:5;2438:28;:::i;2501:391::-;2574:6;2582;2590;2643:2;2631:9;2622:7;2618:23;2614:32;2611:2;;;2664:6;2656;2649:22;2611:2;2705:9;2692:23;2682:33;;2734:37;2767:2;2756:9;2752:18;2734:37;:::i;2897:258::-;2965:6;2973;3026:2;3014:9;3005:7;3001:23;2997:32;2994:2;;;3047:6;3039;3032:22;2994:2;-1:-1:-1;;3075:23:1;;;3145:2;3130:18;;;3117:32;;-1:-1:-1;2984:171:1:o;3160:296::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:2;;;3292:6;3284;3277:22;3239:2;3336:9;3323:23;3386:10;3379:5;3375:22;3368:5;3365:33;3355:2;;3417:6;3409;3402:22;3461:274;3590:3;3628:6;3622:13;3644:53;3690:6;3685:3;3678:4;3670:6;3666:17;3644:53;:::i;:::-;3713:16;;;;;3598:137;-1:-1:-1;;3598:137:1:o;5363:383::-;5512:2;5501:9;5494:21;5475:4;5544:6;5538:13;5587:6;5582:2;5571:9;5567:18;5560:34;5603:66;5662:6;5657:2;5646:9;5642:18;5637:2;5629:6;5625:15;5603:66;:::i;:::-;5730:2;5709:15;-1:-1:-1;;5705:29:1;5690:45;;;;5737:2;5686:54;;5484:262;-1:-1:-1;;5484:262:1:o;6508:356::-;6710:2;6692:21;;;6729:18;;;6722:30;6788:34;6783:2;6768:18;;6761:62;6855:2;6840:18;;6682:182::o;9185:128::-;9225:3;9256:1;9252:6;9249:1;9246:13;9243:2;;;9262:18;;:::i;:::-;-1:-1:-1;9298:9:1;;9233:80::o;9318:228::-;9357:3;9385:10;9422:2;9419:1;9415:10;9452:2;9449:1;9445:10;9483:3;9479:2;9475:12;9470:3;9467:21;9464:2;;;9491:18;;:::i;:::-;9527:13;;9365:181;-1:-1:-1;;;;9365:181:1:o;9551:217::-;9591:1;9617;9607:2;;-1:-1:-1;;;9642:31:1;;9696:4;9693:1;9686:15;9724:4;9649:1;9714:15;9607:2;-1:-1:-1;9753:9:1;;9597:171::o;9773:168::-;9813:7;9879:1;9875;9871:6;9867:14;9864:1;9861:21;9856:1;9849:9;9842:17;9838:45;9835:2;;;9886:18;;:::i;:::-;-1:-1:-1;9926:9:1;;9825:116::o;9946:125::-;9986:4;10014:1;10011;10008:8;10005:2;;;10019:18;;:::i;:::-;-1:-1:-1;10056:9:1;;9995:76::o;10076:258::-;10148:1;10158:113;10172:6;10169:1;10166:13;10158:113;;;10248:11;;;10242:18;10229:11;;;10222:39;10194:2;10187:10;10158:113;;;10289:6;10286:1;10283:13;10280:2;;;-1:-1:-1;;10324:1:1;10306:16;;10299:27;10129:205::o;10339:135::-;10378:3;-1:-1:-1;;10399:17:1;;10396:2;;;10419:18;;:::i;:::-;-1:-1:-1;10466:1:1;10455:13;;10386:88::o;10479:127::-;10540:10;10535:3;10531:20;10528:1;10521:31;10571:4;10568:1;10561:15;10595:4;10592:1;10585:15;10611:131;-1:-1:-1;;;;;10686:31:1;;10676:42;;10666:2;;10732:1;10729;10722:12;10666:2;10656:86;:::o;10747:118::-;10833:5;10826:13;10819:21;10812:5;10809:32;10799:2;;10855:1;10852;10845:12

Swarm Source

ipfs://a8af42bd50cd047091e682b015340c49d4af7c9f538153e227e9aedefbc3c4ea

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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