S Price: $0.601619 (-0.69%)

Contract

0x842431dEe29Ceb7606a583a9650C416DDC5DC3B3

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw42580992025-01-17 11:34:135 days ago1737113653IN
0x842431dE...DDC5DC3B3
0 S0.01140524110
Deposit42579092025-01-17 11:31:455 days ago1737113505IN
0x842431dE...DDC5DC3B3
0 S0.01354793110
Withdraw26877292025-01-06 9:28:1616 days ago1736155696IN
0x842431dE...DDC5DC3B3
0 S0.000545853.77
Withdraw23748732025-01-03 16:13:3119 days ago1735920811IN
0x842431dE...DDC5DC3B3
0 S0.000122421.11
Withdraw23717162025-01-03 15:49:0119 days ago1735919341IN
0x842431dE...DDC5DC3B3
0 S0.000096731.1
Withdraw23717042025-01-03 15:48:5719 days ago1735919337IN
0x842431dE...DDC5DC3B3
0 S0.000096741.1
Deposit23646162025-01-03 14:35:2519 days ago1735914925IN
0x842431dE...DDC5DC3B3
0 S0.000294692.5
Withdraw23625352025-01-03 14:14:4719 days ago1735913687IN
0x842431dE...DDC5DC3B3
0 S0.000259242.5
Withdraw23623762025-01-03 14:13:3119 days ago1735913611IN
0x842431dE...DDC5DC3B3
0 S0.000132861.1
Withdraw23620762025-01-03 14:10:5319 days ago1735913453IN
0x842431dE...DDC5DC3B3
0 S0.000132881.1
Withdraw23618562025-01-03 14:08:4419 days ago1735913324IN
0x842431dE...DDC5DC3B3
0 S0.000305382.5
Deposit23617852025-01-03 14:08:0619 days ago1735913286IN
0x842431dE...DDC5DC3B3
0 S0.000116641.1
Withdraw23617732025-01-03 14:08:0119 days ago1735913281IN
0x842431dE...DDC5DC3B3
0 S0.000124611.10083333
Withdraw23617202025-01-03 14:07:3019 days ago1735913250IN
0x842431dE...DDC5DC3B3
0 S0.000096731.1
Withdraw23616902025-01-03 14:07:1419 days ago1735913234IN
0x842431dE...DDC5DC3B3
0 S0.000096741.1
Withdraw23615732025-01-03 14:05:4919 days ago1735913149IN
0x842431dE...DDC5DC3B3
0 S0.000132881.1
Withdraw23614142025-01-03 14:03:5719 days ago1735913037IN
0x842431dE...DDC5DC3B3
0 S0.000134361.1
Deposit23613382025-01-03 14:03:1219 days ago1735912992IN
0x842431dE...DDC5DC3B3
0 S0.000129621.1
Withdraw23612812025-01-03 14:02:4919 days ago1735912969IN
0x842431dE...DDC5DC3B3
0 S0.000134471.1
Deposit23611732025-01-03 14:01:5219 days ago1735912912IN
0x842431dE...DDC5DC3B3
0 S0.000129661.1
Withdraw23611462025-01-03 14:01:3719 days ago1735912897IN
0x842431dE...DDC5DC3B3
0 S0.000153291.1
Deposit23608632025-01-03 13:58:3819 days ago1735912718IN
0x842431dE...DDC5DC3B3
0 S0.000066531.1
Deposit23608322025-01-03 13:58:1719 days ago1735912697IN
0x842431dE...DDC5DC3B3
0 S0.000066511.1
Deposit23607912025-01-03 13:57:5419 days ago1735912674IN
0x842431dE...DDC5DC3B3
0 S0.000192022.5
Deposit23607892025-01-03 13:57:5219 days ago1735912672IN
0x842431dE...DDC5DC3B3
0 S0.000076791
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RubyRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2024-12-31
*/

/**
* Sonicgems.fi is an algorithmic coin pegged 1:1 to S
* https://www.sonicgems.fi/
*/

// SPDX-License-Identifier: MIT
// File: RubyRewardPool/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: RubyRewardPool/lib/openzeppelin-contracts/contracts/math/SafeMath.sol



pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

// File: RubyRewardPool/lib/openzeppelin-contracts/contracts/utils/Address.sol



pragma solidity ^0.6.2;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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);
            }
        }
    }
}

// File: RubyRewardPool/lib/openzeppelin-contracts/contracts/token/ERC20/SafeERC20.sol



pragma solidity ^0.6.0;




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

    /**
     * @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).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, "SafeERC20: decreased allowance below zero");
        _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");
        }
    }
}

// File: RubyRewardPool/src/distribution/RubyRewardPool.sol



pragma solidity 0.6.12;




// Note that this pool has no minter key of RUBY (rewards).
// Instead, the governance will call RUBY distributeReward method and send reward to this pool at the beginning.
contract RubyRewardPool {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. RUBYs to distribute per block.
        uint256 lastRewardTime; // Last time that RUBYs distribution occurs.
        uint256 accRubyPerShare; // Accumulated RUBYs per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
    }

    IERC20 public ruby;

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    // The time when RUBY mining starts.
    uint256 public poolStartTime;

    // The time when RUBY mining ends.
    uint256 public poolEndTime;

    uint256 public rubyPerSecond = 0.001902587519 ether; // 60_000 ruby / (365 days * 24h * 60min * 60s)
    uint256 public runningTime = 365 days;
    uint256 public constant TOTAL_REWARDS = 60000 ether;

    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
    );
    event RewardPaid(address indexed user, uint256 amount);

    constructor(address _ruby, uint256 _poolStartTime) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_ruby != address(0)) ruby = IERC20(_ruby);
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(
            operator == msg.sender,
            "RubyRewardPool: caller is not the operator"
        );
        _;
    }

    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(
                poolInfo[pid].token != _token,
                "RubyRewardPool: existing pool?"
            );
        }
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (_lastRewardTime == 0) {
                _lastRewardTime = poolStartTime;
            } else {
                if (_lastRewardTime < poolStartTime) {
                    _lastRewardTime = poolStartTime;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
                _lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted = (_lastRewardTime <= poolStartTime) ||
            (_lastRewardTime <= block.timestamp);
        poolInfo.push(
            PoolInfo({
                token: _token,
                allocPoint: _allocPoint,
                lastRewardTime: _lastRewardTime,
                accRubyPerShare: 0,
                isStarted: _isStarted
            })
        );
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's RUBY allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
                _allocPoint
            );
        }
        pool.allocPoint = _allocPoint;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(
        uint256 _fromTime,
        uint256 _toTime
    ) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime)
                return poolEndTime.sub(poolStartTime).mul(rubyPerSecond);
            return poolEndTime.sub(_fromTime).mul(rubyPerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime)
                return _toTime.sub(poolStartTime).mul(rubyPerSecond);
            return _toTime.sub(_fromTime).mul(rubyPerSecond);
        }
    }

    // View function to see pending RUBYs on frontend.
    function pendingShare(
        uint256 _pid,
        address _user
    ) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRubyPerShare = pool.accRubyPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(
                pool.lastRewardTime,
                block.timestamp
            );
            uint256 _rubyReward = _generatedReward.mul(pool.allocPoint).div(
                totalAllocPoint
            );
            accRubyPerShare = accRubyPerShare.add(
                _rubyReward.mul(1e18).div(tokenSupply)
            );
        }
        return
            user.amount.mul(accRubyPerShare).div(1e18).sub(user.rewardDebt);
    }

    // Update reward variables for all pools.
    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;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(
                pool.lastRewardTime,
                block.timestamp
            );
            uint256 _rubyReward = _generatedReward.mul(pool.allocPoint).div(
                totalAllocPoint
            );
            pool.accRubyPerShare = pool.accRubyPerShare.add(
                _rubyReward.mul(1e18).div(tokenSupply)
            );
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user
                .amount
                .mul(pool.accRubyPerShare)
                .div(1e18)
                .sub(user.rewardDebt);
            if (_pending > 0) {
                safeRubyTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRubyPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user
            .amount
            .mul(pool.accRubyPerShare)
            .div(1e18)
            .sub(user.rewardDebt);
        if (_pending > 0) {
            safeRubyTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRubyPerShare).div(1e18);
        emit Withdraw(_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 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.token.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe ruby transfer function, just in case if rounding error causes pool to not have enough RUBYs.
    function safeRubyTransfer(address _to, uint256 _amount) internal {
        uint256 _rubyBal = ruby.balanceOf(address(this));
        if (_rubyBal > 0) {
            if (_amount > _rubyBal) {
                ruby.safeTransfer(_to, _rubyBal);
            } else {
                ruby.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function governanceRecoverUnsupported(
        IERC20 _token,
        uint256 amount,
        address to
    ) external onlyOperator {
        if (block.timestamp < poolEndTime + 90 days) {
            // do not allow to drain core token (RUBY or lps) if less than 90 days after pool ends
            require(_token != ruby, "ruby");
            uint256 length = poolInfo.length;
            for (uint256 pid = 0; pid < length; ++pid) {
                PoolInfo storage pool = poolInfo[pid];
                require(_token != pool.token, "pool.token");
            }
        }
        _token.safeTransfer(to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ruby","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","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":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","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":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRubyPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ruby","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rubyPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006004556606c264ad395dc06007556301e1338060085534801561002857600080fd5b506040516118963803806118968339818101604052604081101561004b57600080fd5b508051602090910151428111610091576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156100bc57600180546001600160a01b0319166001600160a01b0384161790555b60058190556008540160065550600080546001600160a01b031916331790556117ac806100ea6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063570ca735116100b8578063943f013d1161007c578063943f013d1461031657806396805e541461031e578063b3ab15fb14610358578063cf4b55cb1461037e578063d3229485146103aa578063e2bbb158146103b257610137565b8063570ca735146102955780635f96dc11146102b9578063630b5ba1146102c15780636e271dd5146102c957806393f1a40b146102d157610137565b8063437cb580116100ff578063437cb580146101fa578063441a3e701461020257806351eb05a6146102255780635312ea8e1461024257806354575af41461025f57610137565b806309cf60911461013c5780631526fe271461015657806317caf6f1146101aa5780631ab06ee5146101b2578063231f0c6a146101d7575b600080fd5b6101446103d5565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356103e3565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61014461042e565b6101d5600480360360408110156101c857600080fd5b5080359060200135610434565b005b610144600480360360408110156101ed57600080fd5b50803590602001356104e2565b6101446105a7565b6101d56004803603604081101561021857600080fd5b50803590602001356105ad565b6101d56004803603602081101561023b57600080fd5b503561076a565b6101d56004803603602081101561025857600080fd5b50356108c8565b6101d56004803603606081101561027557600080fd5b506001600160a01b03813581169160208101359160409091013516610964565b61029d610aac565b604080516001600160a01b039092168252519081900360200190f35b610144610abb565b6101d5610ac1565b610144610ae4565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610aea565b6040805192835260208301919091528051918290030190f35b610144610b0e565b6101d56004803603608081101561033457600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b14565b6101d56004803603602081101561036e57600080fd5b50356001600160a01b0316610d11565b6101446004803603604081101561039457600080fd5b50803590602001356001600160a01b0316610d7c565b61029d610ed8565b6101d5600480360360408110156103c857600080fd5b5080359060200135610ee7565b690cb49b44ba602d80000081565b600281815481106103f057fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60045481565b6000546001600160a01b0316331461047d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b610485610ac1565b60006002838154811061049457fe5b60009182526020909120600590910201600481015490915060ff16156104db576104d7826104d1836001015460045461105790919063ffffffff16565b906110a0565b6004555b6001015550565b60008183106104f3575060006105a1565b600654821061055b57600654831061050d575060006105a1565b60055483116105405761053960075461053360055460065461105790919063ffffffff16565b906110fa565b90506105a1565b6105396007546105338560065461105790919063ffffffff16565b600554821161056c575060006105a1565b6005548311610590576105396007546105336005548561105790919063ffffffff16565b600754610539906105338486611057565b92915050565b60075481565b60003390506000600284815481106105c157fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922080546005909202909201925084111561063d576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106468561076a565b6000610683826001015461067d670de0b6b3a7640000610677876003015487600001546110fa90919063ffffffff16565b90611153565b90611057565b905080156106d5576106958482611195565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156106ff5781546106e79086611057565b825582546106ff906001600160a01b0316858761124b565b6003830154825461071d91670de0b6b3a764000091610677916110fa565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061077957fe5b906000526020600020906005020190508060020154421161079a57506108c5565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107e457600080fd5b505afa1580156107f8573d6000803e3d6000fd5b505050506040513d602081101561080e57600080fd5b50519050806108245750426002909101556108c5565b600482015460ff16610855576004808301805460ff191660019081179091558301549054610851916110a0565b6004555b600454156108bc57600061086d8360020154426104e2565b9050600061088e6004546106778660010154856110fa90919063ffffffff16565b90506108b46108a98461067784670de0b6b3a76400006110fa565b6003860154906110a0565b600385015550505b50426002909101555b50565b6000600282815481106108d757fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610927916001600160a01b0391909116908361124b565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109ad5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b6006546276a70001421015610a93576001546001600160a01b0384811691161415610a08576040805162461bcd60e51b815260206004808301919091526024820152637275627960e01b604482015290519081900360640190fd5b60025460005b81811015610a9057600060028281548110610a2557fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a87576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a0e565b50505b610aa76001600160a01b038416828461124b565b505050565b6000546001600160a01b031681565b60055481565b60025460005b81811015610ae057610ad88161076a565b600101610ac7565b5050565b60065481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6000546001600160a01b03163314610b5d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b610b668361129d565b8115610b7457610b74610ac1565b600554421015610ba05780610b8c5750600554610b9b565b600554811015610b9b57506005545b610bb4565b801580610bac57504281105b15610bb45750425b600060055482111580610bc75750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610d0a57600454610d0690866110a0565b6004555b5050505050565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d8c57fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600590960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e0457600080fd5b505afa158015610e18573d6000803e3d6000fd5b505050506040513d6020811015610e2e57600080fd5b5051600285015490915042118015610e4557508015155b15610ea2576000610e5a8560020154426104e2565b90506000610e7b6004546106778860010154856110fa90919063ffffffff16565b9050610e9d610e968461067784670de0b6b3a76400006110fa565b85906110a0565b935050505b610ecd836001015461067d670de0b6b3a76400006106778688600001546110fa90919063ffffffff16565b979650505050505050565b6001546001600160a01b031681565b6000339050600060028481548110610efb57fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610f358561076a565b805415610fc1576000610f6d826001015461067d670de0b6b3a7640000610677876003015487600001546110fa90919063ffffffff16565b90508015610fbf57610f7f8482611195565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315610fed578154610fde906001600160a01b0316843087611337565b8054610fea90856110a0565b81555b6003820154815461100b91670de0b6b3a764000091610677916110fa565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600061109983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b9392505050565b600082820183811015611099576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611109575060006105a1565b8282028284828161111657fe5b04146110995760405162461bcd60e51b81526004018080602001828103825260218152602001806117026021913960400191505060405180910390fd5b600061109983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061142e565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111e057600080fd5b505afa1580156111f4573d6000803e3d6000fd5b505050506040513d602081101561120a57600080fd5b505190508015610aa7578082111561123857600154611233906001600160a01b0316848361124b565b610aa7565b600154610aa7906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aa7908490611493565b60025460005b81811015610aa757826001600160a01b0316600282815481106112c257fe5b60009182526020909120600590910201546001600160a01b0316141561132f576040805162461bcd60e51b815260206004820152601e60248201527f52756279526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b6001016112a3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611391908590611493565b50505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361147d5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156113eb5781810151838201526020016113d3565b50600083858161148957fe5b0495945050505050565b60606114e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b805190915015610aa75780806020019051602081101561150757600080fd5b5051610aa75760405162461bcd60e51b815260040180806020018281038252602a815260200180611723602a913960400191505060405180910390fd5b6060611553848460008561155b565b949350505050565b6060611566856116c8565b6115b7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115f65780518252601f1990920191602091820191016115d7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611658576040519150601f19603f3d011682016040523d82523d6000602084013e61165d565b606091505b509150915081156116715791506115539050565b8051156116815780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156113eb5781810151838201526020016113d3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061155357505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656452756279526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72a26469706673582212204925a5ed76ba021327a8838363db736624ad0fd8f9badd7d9260fa022a30706964736f6c634300060c00330000000000000000000000007f38fba834cb845e7093415384334dae2aee0230000000000000000000000000000000000000000000000000000000006777ed60

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063570ca735116100b8578063943f013d1161007c578063943f013d1461031657806396805e541461031e578063b3ab15fb14610358578063cf4b55cb1461037e578063d3229485146103aa578063e2bbb158146103b257610137565b8063570ca735146102955780635f96dc11146102b9578063630b5ba1146102c15780636e271dd5146102c957806393f1a40b146102d157610137565b8063437cb580116100ff578063437cb580146101fa578063441a3e701461020257806351eb05a6146102255780635312ea8e1461024257806354575af41461025f57610137565b806309cf60911461013c5780631526fe271461015657806317caf6f1146101aa5780631ab06ee5146101b2578063231f0c6a146101d7575b600080fd5b6101446103d5565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356103e3565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61014461042e565b6101d5600480360360408110156101c857600080fd5b5080359060200135610434565b005b610144600480360360408110156101ed57600080fd5b50803590602001356104e2565b6101446105a7565b6101d56004803603604081101561021857600080fd5b50803590602001356105ad565b6101d56004803603602081101561023b57600080fd5b503561076a565b6101d56004803603602081101561025857600080fd5b50356108c8565b6101d56004803603606081101561027557600080fd5b506001600160a01b03813581169160208101359160409091013516610964565b61029d610aac565b604080516001600160a01b039092168252519081900360200190f35b610144610abb565b6101d5610ac1565b610144610ae4565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610aea565b6040805192835260208301919091528051918290030190f35b610144610b0e565b6101d56004803603608081101561033457600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b14565b6101d56004803603602081101561036e57600080fd5b50356001600160a01b0316610d11565b6101446004803603604081101561039457600080fd5b50803590602001356001600160a01b0316610d7c565b61029d610ed8565b6101d5600480360360408110156103c857600080fd5b5080359060200135610ee7565b690cb49b44ba602d80000081565b600281815481106103f057fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60045481565b6000546001600160a01b0316331461047d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b610485610ac1565b60006002838154811061049457fe5b60009182526020909120600590910201600481015490915060ff16156104db576104d7826104d1836001015460045461105790919063ffffffff16565b906110a0565b6004555b6001015550565b60008183106104f3575060006105a1565b600654821061055b57600654831061050d575060006105a1565b60055483116105405761053960075461053360055460065461105790919063ffffffff16565b906110fa565b90506105a1565b6105396007546105338560065461105790919063ffffffff16565b600554821161056c575060006105a1565b6005548311610590576105396007546105336005548561105790919063ffffffff16565b600754610539906105338486611057565b92915050565b60075481565b60003390506000600284815481106105c157fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922080546005909202909201925084111561063d576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106468561076a565b6000610683826001015461067d670de0b6b3a7640000610677876003015487600001546110fa90919063ffffffff16565b90611153565b90611057565b905080156106d5576106958482611195565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156106ff5781546106e79086611057565b825582546106ff906001600160a01b0316858761124b565b6003830154825461071d91670de0b6b3a764000091610677916110fa565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061077957fe5b906000526020600020906005020190508060020154421161079a57506108c5565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107e457600080fd5b505afa1580156107f8573d6000803e3d6000fd5b505050506040513d602081101561080e57600080fd5b50519050806108245750426002909101556108c5565b600482015460ff16610855576004808301805460ff191660019081179091558301549054610851916110a0565b6004555b600454156108bc57600061086d8360020154426104e2565b9050600061088e6004546106778660010154856110fa90919063ffffffff16565b90506108b46108a98461067784670de0b6b3a76400006110fa565b6003860154906110a0565b600385015550505b50426002909101555b50565b6000600282815481106108d757fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610927916001600160a01b0391909116908361124b565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109ad5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b6006546276a70001421015610a93576001546001600160a01b0384811691161415610a08576040805162461bcd60e51b815260206004808301919091526024820152637275627960e01b604482015290519081900360640190fd5b60025460005b81811015610a9057600060028281548110610a2557fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a87576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a0e565b50505b610aa76001600160a01b038416828461124b565b505050565b6000546001600160a01b031681565b60055481565b60025460005b81811015610ae057610ad88161076a565b600101610ac7565b5050565b60065481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6000546001600160a01b03163314610b5d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b610b668361129d565b8115610b7457610b74610ac1565b600554421015610ba05780610b8c5750600554610b9b565b600554811015610b9b57506005545b610bb4565b801580610bac57504281105b15610bb45750425b600060055482111580610bc75750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610d0a57600454610d0690866110a0565b6004555b5050505050565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061174d602a913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d8c57fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600590960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e0457600080fd5b505afa158015610e18573d6000803e3d6000fd5b505050506040513d6020811015610e2e57600080fd5b5051600285015490915042118015610e4557508015155b15610ea2576000610e5a8560020154426104e2565b90506000610e7b6004546106778860010154856110fa90919063ffffffff16565b9050610e9d610e968461067784670de0b6b3a76400006110fa565b85906110a0565b935050505b610ecd836001015461067d670de0b6b3a76400006106778688600001546110fa90919063ffffffff16565b979650505050505050565b6001546001600160a01b031681565b6000339050600060028481548110610efb57fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610f358561076a565b805415610fc1576000610f6d826001015461067d670de0b6b3a7640000610677876003015487600001546110fa90919063ffffffff16565b90508015610fbf57610f7f8482611195565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315610fed578154610fde906001600160a01b0316843087611337565b8054610fea90856110a0565b81555b6003820154815461100b91670de0b6b3a764000091610677916110fa565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600061109983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b9392505050565b600082820183811015611099576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611109575060006105a1565b8282028284828161111657fe5b04146110995760405162461bcd60e51b81526004018080602001828103825260218152602001806117026021913960400191505060405180910390fd5b600061109983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061142e565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111e057600080fd5b505afa1580156111f4573d6000803e3d6000fd5b505050506040513d602081101561120a57600080fd5b505190508015610aa7578082111561123857600154611233906001600160a01b0316848361124b565b610aa7565b600154610aa7906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aa7908490611493565b60025460005b81811015610aa757826001600160a01b0316600282815481106112c257fe5b60009182526020909120600590910201546001600160a01b0316141561132f576040805162461bcd60e51b815260206004820152601e60248201527f52756279526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b6001016112a3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611391908590611493565b50505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361147d5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156113eb5781810151838201526020016113d3565b50600083858161148957fe5b0495945050505050565b60606114e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b805190915015610aa75780806020019051602081101561150757600080fd5b5051610aa75760405162461bcd60e51b815260040180806020018281038252602a815260200180611723602a913960400191505060405180910390fd5b6060611553848460008561155b565b949350505050565b6060611566856116c8565b6115b7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115f65780518252601f1990920191602091820191016115d7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611658576040519150601f19603f3d011682016040523d82523d6000602084013e61165d565b606091505b509150915081156116715791506115539050565b8051156116815780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156113eb5781810151838201526020016113d3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061155357505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656452756279526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72a26469706673582212204925a5ed76ba021327a8838363db736624ad0fd8f9badd7d9260fa022a30706964736f6c634300060c0033

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

0000000000000000000000007f38fba834cb845e7093415384334dae2aee0230000000000000000000000000000000000000000000000000000000006777ed60

-----Decoded View---------------
Arg [0] : _ruby (address): 0x7f38FBa834cb845e7093415384334DAE2aEe0230
Arg [1] : _poolStartTime (uint256): 1735912800

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007f38fba834cb845e7093415384334dae2aee0230
Arg [1] : 000000000000000000000000000000000000000000000000000000006777ed60


Deployed Bytecode Sourcemap

18674:11097:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20119:51;;;:::i;:::-;;;;;;;;;;;;;;;;19527:26;;;;;;;;;;;;;;;;-1:-1:-1;19527:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;19527:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19772:34;;;:::i;22806:353::-;;;;;;;;;;;;;;;;-1:-1:-1;22806:353:0;;;;;;;:::i;:::-;;23236:712;;;;;;;;;;;;;;;;-1:-1:-1;23236:712:0;;;;;;;:::i;19969:51::-;;;:::i;27236:866::-;;;;;;;;;;;;;;;;-1:-1:-1;27236:866:0;;;;;;;:::i;25246:1021::-;;;;;;;;;;;;;;;;-1:-1:-1;25246:1021:0;;:::i;28173:377::-;;;;;;;;;;;;;;;;-1:-1:-1;28173:377:0;;:::i;29130:638::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29130:638:0;;;;;;;;;;;;;;;;;:::i;18792:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;18792:23:0;;;;;;;;;;;;;;19857:28;;;:::i;24990:180::-;;;:::i;19934:26::-;;;:::i;19611:64::-;;;;;;;;;;;;;;;;-1:-1:-1;19611:64:0;;;;;;-1:-1:-1;;;;;19611:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20075:37;;;:::i;21400:1310::-;;;;;;;;;;;;;;;;-1:-1:-1;21400:1310:0;;;-1:-1:-1;;;;;21400:1310:0;;;;;;;;;;;;;;;;;:::i;29021:101::-;;;;;;;;;;;;;;;;-1:-1:-1;29021:101:0;-1:-1:-1;;;;;29021:101:0;;:::i;24012:923::-;;;;;;;;;;;;;;;;-1:-1:-1;24012:923:0;;;;;;-1:-1:-1;;;;;24012:923:0;;:::i;19473:18::-;;;:::i;26302:898::-;;;;;;;;;;;;;;;;-1:-1:-1;26302:898:0;;;;;;;:::i;20119:51::-;20159:11;20119:51;:::o;19527:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19527:26:0;;;;-1:-1:-1;19527:26:0;;;;;;;:::o;19772:34::-;;;;:::o;22806:353::-;20896:8;;-1:-1:-1;;;;;20896:8:0;20908:10;20896:22;20874:114;;;;-1:-1:-1;;;20874:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22885:17:::1;:15;:17::i;:::-;22913:21;22937:8;22946:4;22937:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;22966;::::0;::::1;::::0;22937;;-1:-1:-1;22966:14:0::1;;22962:150;;;23015:85;23074:11;23015:36;23035:4;:15;;;23015;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;22997:15;:103:::0;22962:150:::1;23122:15;;:29:::0;-1:-1:-1;22806:353:0:o;23236:712::-;23346:7;23383;23370:9;:20;23366:34;;-1:-1:-1;23399:1:0;23392:8;;23366:34;23426:11;;23415:7;:22;23411:530;;23471:11;;23458:9;:24;23454:38;;-1:-1:-1;23491:1:0;23484:8;;23454:38;23524:13;;23511:9;:26;23507:105;;23563:49;23598:13;;23563:30;23579:13;;23563:11;;:15;;:30;;;;:::i;:::-;:34;;:49::i;:::-;23556:56;;;;23507:105;23634:45;23665:13;;23634:26;23650:9;23634:11;;:15;;:26;;;;:::i;23411:530::-;23727:13;;23716:7;:24;23712:38;;-1:-1:-1;23749:1:0;23742:8;;23712:38;23782:13;;23769:9;:26;23765:101;;23821:45;23852:13;;23821:26;23833:13;;23821:7;:11;;:26;;;;:::i;23765:101::-;23915:13;;23888:41;;:22;:7;23900:9;23888:11;:22::i;23411:530::-;23236:712;;;;:::o;19969:51::-;;;;:::o;27236:866::-;27303:15;27321:10;27303:28;;27342:21;27366:8;27375:4;27366:14;;;;;;;;;;;;;;;;27415;;;:8;:14;;;;;;-1:-1:-1;;;;;27415:23:0;;;;;;;;;27457:11;;27366:14;;;;;;;;-1:-1:-1;27457:22:0;-1:-1:-1;27457:22:0;27449:53;;;;;-1:-1:-1;;;27449:53:0;;;;;;;;;;;;-1:-1:-1;;;27449:53:0;;;;;;;;;;;;;;;27513:16;27524:4;27513:10;:16::i;:::-;27540;27559:124;27667:4;:15;;;27559:89;27643:4;27559:65;27603:4;:20;;;27559:4;:25;;;:43;;:65;;;;:::i;:::-;:83;;:89::i;:::-;:107;;:124::i;:::-;27540:143;-1:-1:-1;27698:12:0;;27694:129;;27727:35;27744:7;27753:8;27727:16;:35::i;:::-;27782:29;;;;;;;;-1:-1:-1;;;;;27782:29:0;;;;;;;;;;;;;27694:129;27837:11;;27833:138;;27879:11;;:24;;27895:7;27879:15;:24::i;:::-;27865:38;;27918:10;;:41;;-1:-1:-1;;;;;27918:10:0;27942:7;27951;27918:23;:41::i;:::-;28015:20;;;;27999:11;;:47;;28041:4;;27999:37;;:15;:37::i;:47::-;27981:15;;;:65;28062:32;;;;;;;;28080:4;;-1:-1:-1;;;;;28062:32:0;;;;;;;;;;;;27236:866;;;;;;:::o;25246:1021::-;25298:21;25322:8;25331:4;25322:14;;;;;;;;;;;;;;;;;;25298:38;;25370:4;:19;;;25351:15;:38;25347:77;;25406:7;;;25347:77;25456:10;;:35;;;-1:-1:-1;;;25456:35:0;;25485:4;25456:35;;;;;;25434:19;;-1:-1:-1;;;;;25456:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25456:35:0;;-1:-1:-1;25506:16:0;25502:107;;-1:-1:-1;25561:15:0;25539:19;;;;:37;25591:7;;25502:107;25624:14;;;;;;25619:138;;25655:14;;;;:21;;-1:-1:-1;;25655:21:0;25672:4;25655:21;;;;;;25729:15;;;25709;;:36;;:19;:36::i;:::-;25691:15;:54;25619:138;25771:15;;:19;25767:445;;25807:24;25834:105;25871:4;:19;;;25909:15;25834:18;:105::i;:::-;25807:132;;25954:19;25976:90;26036:15;;25976:37;25997:4;:15;;;25976:16;:20;;:37;;;;:::i;:90::-;25954:112;-1:-1:-1;26104:96:0;26147:38;26173:11;26147:21;25954:112;26163:4;26147:15;:21::i;:38::-;26104:20;;;;;:24;:96::i;:::-;26081:20;;;:119;-1:-1:-1;;25767:445:0;-1:-1:-1;26244:15:0;26222:19;;;;:37;25246:1021;;:::o;28173:377::-;28232:21;28256:8;28265:4;28256:14;;;;;;;;;;;;;;;;28305;;;:8;:14;;;;;;28320:10;28305:26;;;;;;;28360:11;;28382:15;;;-1:-1:-1;28408:15:0;;:19;;;;28256:14;;;;;28438:10;;28256:14;;-1:-1:-1;28305:26:0;;28360:11;28438:44;;-1:-1:-1;;;;;28438:10:0;;;;;28360:11;28438:23;:44::i;:::-;28498;;;;;;;;28528:4;;28516:10;;28498:44;;;;;;;;;28173:377;;;;:::o;29130:638::-;20896:8;;-1:-1:-1;;;;;20896:8:0;20908:10;20896:22;20874:114;;;;-1:-1:-1;;;20874:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29300:11:::1;;29314:7;29300:21;29282:15;:39;29278:441;;;29456:4;::::0;-1:-1:-1;;;;;29446:14:0;;::::1;29456:4:::0;::::1;29446:14;;29438:31;;;::::0;;-1:-1:-1;;;29438:31:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;29438:31:0;;;;;;;;;;;;;::::1;;29501:8;:15:::0;29484:14:::1;29531:177;29559:6;29553:3;:12;29531:177;;;29593:21;29617:8;29626:3;29617:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;29667:10:::0;;29617:13;;-1:-1:-1;;;;;;29657:20:0;;::::1;29667:10:::0;::::1;29657:20;;29649:43;;;::::0;;-1:-1:-1;;;29649:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29649:43:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;29567:5:0::1;;29531:177;;;;29278:441;;29729:31;-1:-1:-1::0;;;;;29729:19:0;::::1;29749:2:::0;29753:6;29729:19:::1;:31::i;:::-;29130:638:::0;;;:::o;18792:23::-;;;-1:-1:-1;;;;;18792:23:0;;:::o;19857:28::-;;;;:::o;24990:180::-;25052:8;:15;25035:14;25078:85;25106:6;25100:3;:12;25078:85;;;25136:15;25147:3;25136:10;:15::i;:::-;25114:5;;25078:85;;;;24990:180;:::o;19934:26::-;;;;:::o;19611:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;20075:37::-;;;;:::o;21400:1310::-;20896:8;;-1:-1:-1;;;;;20896:8:0;20908:10;20896:22;20874:114;;;;-1:-1:-1;;;20874:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21566:26:::1;21585:6;21566:18;:26::i;:::-;21607:11;21603:61;;;21635:17;:15;:17::i;:::-;21696:13;;21678:15;:31;21674:534;;;21763:20:::0;21759:243:::1;;-1:-1:-1::0;21822:13:0::1;::::0;21759:243:::1;;;21898:13;;21880:15;:31;21876:111;;;-1:-1:-1::0;21954:13:0::1;::::0;21876:111:::1;21674:534;;;22070:20:::0;;;:57:::1;;;22112:15;22094;:33;22070:57;22066:131;;;-1:-1:-1::0;22166:15:0::1;22066:131;22218:15;22256:13;;22237:15;:32;;22236:87;;;;22307:15;22288;:34;;22236:87;22362:226;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;22362:226:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;22362:226:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;22334:8:::1;:265:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;22334:265:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22334:265:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;22362:226;;-1:-1:-1;22610:93:0::1;;22659:15;::::0;:32:::1;::::0;22679:11;22659:19:::1;:32::i;:::-;22641:15;:50:::0;22610:93:::1;20999:1;21400:1310:::0;;;;:::o;29021:101::-;20896:8;;-1:-1:-1;;;;;20896:8:0;20908:10;20896:22;20874:114;;;;-1:-1:-1;;;20874:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29094:8:::1;:20:::0;;-1:-1:-1;;;;;;29094:20:0::1;-1:-1:-1::0;;;;;29094:20:0;;;::::1;::::0;;;::::1;::::0;;29021:101::o;24012:923::-;24111:7;24131:21;24155:8;24164:4;24155:14;;;;;;;;;;;;;;;;24204;;;:8;:14;;;;;;;-1:-1:-1;;;;;24204:21:0;;;;;;;;;;;24155:14;;;;;;;24262:20;;;;24315:10;;:35;;-1:-1:-1;;;24315:35:0;;24344:4;24315:35;;;;;;24155:14;;-1:-1:-1;24204:21:0;;24262:20;;24155:14;;24315:10;;;:20;;:35;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24315:35:0;24383:19;;;;24315:35;;-1:-1:-1;24365:15:0;:37;:57;;;;-1:-1:-1;24406:16:0;;;24365:57;24361:473;;;24439:24;24466:105;24503:4;:19;;;24541:15;24466:18;:105::i;:::-;24439:132;;24586:19;24608:90;24668:15;;24608:37;24629:4;:15;;;24608:16;:20;;:37;;;;:::i;:90::-;24586:112;-1:-1:-1;24731:91:0;24769:38;24795:11;24769:21;24586:112;24785:4;24769:15;:21::i;:38::-;24731:15;;:19;:91::i;:::-;24713:109;;24361:473;;;24864:63;24911:4;:15;;;24864:42;24901:4;24864:32;24880:15;24864:4;:11;;;:15;;:32;;;;:::i;:63::-;24844:83;24012:923;-1:-1:-1;;;;;;;24012:923:0:o;19473:18::-;;;-1:-1:-1;;;;;19473:18:0;;:::o;26302:898::-;26368:15;26386:10;26368:28;;26407:21;26431:8;26440:4;26431:14;;;;;;;;;;;;;;;;26480;;;:8;:14;;;;;;-1:-1:-1;;;;;26480:23:0;;;;;;;;;26431:14;;;;;;;;-1:-1:-1;26514:16:0;26489:4;26514:10;:16::i;:::-;26545:11;;:15;26541:362;;26577:16;26596:140;26720:4;:15;;;26596:101;26692:4;26596:73;26648:4;:20;;;26596:4;:29;;;:51;;:73;;;;:::i;:140::-;26577:159;-1:-1:-1;26755:12:0;;26751:141;;26788:35;26805:7;26814:8;26788:16;:35::i;:::-;26847:29;;;;;;;;-1:-1:-1;;;;;26847:29:0;;;;;;;;;;;;;26751:141;26541:362;;26917:11;;26913:157;;26945:10;;:60;;-1:-1:-1;;;;;26945:10:0;26973:7;26990:4;26997:7;26945:27;:60::i;:::-;27034:11;;:24;;27050:7;27034:15;:24::i;:::-;27020:38;;26913:157;27114:20;;;;27098:11;;:47;;27140:4;;27098:37;;:15;:37::i;:47::-;27080:15;;;:65;27161:31;;;;;;;;27178:4;;-1:-1:-1;;;;;27161:31:0;;;;;;;;;;;;26302:898;;;;;:::o;4372:136::-;4430:7;4457:43;4461:1;4464;4457:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4450:50;4372:136;-1:-1:-1;;;4372:136:0:o;3908:181::-;3966:7;3998:5;;;4022:6;;;;4014:46;;;;;-1:-1:-1;;;4014:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5262:471;5320:7;5565:6;5561:47;;-1:-1:-1;5595:1:0;5588:8;;5561:47;5632:5;;;5636:1;5632;:5;:1;5656:5;;;;;:10;5648:56;;;;-1:-1:-1;;;5648:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6209:132;6267:7;6294:39;6298:1;6301;6294:39;;;;;;;;;;;;;;;;;:3;:39::i;28664:349::-;28759:4;;:29;;;-1:-1:-1;;;28759:29:0;;28782:4;28759:29;;;;;;28740:16;;-1:-1:-1;;;;;28759:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28759:29:0;;-1:-1:-1;28803:12:0;;28799:207;;28846:8;28836:7;:18;28832:163;;;28875:4;;:32;;-1:-1:-1;;;;;28875:4:0;28893:3;28898:8;28875:17;:32::i;:::-;28832:163;;;28948:4;;:31;;-1:-1:-1;;;;;28948:4:0;28966:3;28971:7;15326:177;15436:58;;;-1:-1:-1;;;;;15436:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15436:58:0;-1:-1:-1;;;15436:58:0;;;15409:86;;15429:5;;15409:19;:86::i;21016:309::-;21101:8;:15;21084:14;21127:191;21155:6;21149:3;:12;21127:191;;;21234:6;-1:-1:-1;;;;;21211:29:0;:8;21220:3;21211:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;21211:19:0;:29;;21185:121;;;;;-1:-1:-1;;;21185:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21163:5;;21127:191;;15511:205;15639:68;;;-1:-1:-1;;;;;15639:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15639:68:0;-1:-1:-1;;;15639:68:0;;;15612:96;;15632:5;;15612:19;:96::i;:::-;15511:205;;;;:::o;4811:192::-;4897:7;4933:12;4925:6;;;;4917:29;;;;-1:-1:-1;;;4917:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4969:5:0;;;4811:192::o;6837:278::-;6923:7;6958:12;6951:5;6943:28;;;;-1:-1:-1;;;6943:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6982:9;6998:1;6994;:5;;;;;;;6837:278;-1:-1:-1;;;;;6837:278:0:o;17631:761::-;18055:23;18081:69;18109:4;18081:69;;;;;;;;;;;;;;;;;18089:5;-1:-1:-1;;;;;18081:27:0;;;:69;;;;;:::i;:::-;18165:17;;18055:95;;-1:-1:-1;18165:21:0;18161:224;;18307:10;18296:30;;;;;;;;;;;;;;;-1:-1:-1;18296:30:0;18288:85;;;;-1:-1:-1;;;18288:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12277:196;12380:12;12412:53;12435:6;12443:4;12449:1;12452:12;12412:22;:53::i;:::-;12405:60;12277:196;-1:-1:-1;;;;12277:196:0:o;13654:979::-;13784:12;13817:18;13828:6;13817:10;:18::i;:::-;13809:60;;;;;-1:-1:-1;;;13809:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13943:12;13957:23;13984:6;-1:-1:-1;;;;;13984:11:0;14004:8;14015:4;13984:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13984:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13942:78;;;;14035:7;14031:595;;;14066:10;-1:-1:-1;14059:17:0;;-1:-1:-1;14059:17:0;14031:595;14180:17;;:21;14176:439;;14443:10;14437:17;14504:15;14491:10;14487:2;14483:19;14476:44;14391:148;14579:20;;-1:-1:-1;;;14579:20:0;;;;;;;;;;;;;;;;;14586:12;;14579:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9162:619;9222:4;9690:20;;9533:66;9730:23;;;;;;:42;;-1:-1:-1;;9757:15:0;;;9722:51;-1:-1:-1;;9162:619:0:o

Swarm Source

ipfs://4925a5ed76ba021327a8838363db736624ad0fd8f9badd7d9260fa022a307069

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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