ETH Price: $3,160.90 (-4.08%)
Gas: 6 Gwei

Contract

0xF43480afE9863da4AcBD4419A47D9Cc7d25A647F
 
Transaction Hash
Method
Block
From
To
Value
Withdraw202037782024-06-30 10:02:474 days ago1719741767IN
0xF43480af...7d25A647F
0 ETH0.000252942.40917673
Withdraw201938122024-06-29 0:37:595 days ago1719621479IN
0xF43480af...7d25A647F
0 ETH0.000191941.82820392
Withdraw201736182024-06-26 4:57:238 days ago1719377843IN
0xF43480af...7d25A647F
0 ETH0.000201791.92202358
Withdraw201703962024-06-25 18:09:599 days ago1719338999IN
0xF43480af...7d25A647F
0 ETH0.000682746.50277604
Withdraw201502212024-06-22 22:28:4711 days ago1719095327IN
0xF43480af...7d25A647F
0 ETH0.000159361.8131454
Withdraw201204292024-06-18 18:28:1116 days ago1718735291IN
0xF43480af...7d25A647F
0 ETH0.000866527
Withdraw201122642024-06-17 15:00:2317 days ago1718636423IN
0xF43480af...7d25A647F
0 ETH0.0011342110.62988606
Withdraw201122602024-06-17 14:59:3517 days ago1718636375IN
0xF43480af...7d25A647F
0 ETH0.0011278510.74216871
Withdraw200859262024-06-13 22:38:5920 days ago1718318339IN
0xF43480af...7d25A647F
0 ETH0.000884928.42844758
Withdraw200843802024-06-13 17:26:3521 days ago1718299595IN
0xF43480af...7d25A647F
0 ETH0.0014360112.34994412
Withdraw200843402024-06-13 17:18:2321 days ago1718299103IN
0xF43480af...7d25A647F
0 ETH0.0016623315.83282416
Withdraw200358052024-06-06 22:35:2327 days ago1717713323IN
0xF43480af...7d25A647F
0 ETH0.0016853115.79476164
Withdraw200358002024-06-06 22:34:2327 days ago1717713263IN
0xF43480af...7d25A647F
0 ETH0.0016699915.9057692
Withdraw200141722024-06-03 22:07:4730 days ago1717452467IN
0xF43480af...7d25A647F
0 ETH0.0010933510.41357346
Withdraw200098822024-06-03 7:43:3531 days ago1717400615IN
0xF43480af...7d25A647F
0 ETH0.001005029.57228128
Withdraw200023542024-06-02 6:30:1132 days ago1717309811IN
0xF43480af...7d25A647F
0 ETH0.00037313.55357241
Withdraw199893712024-05-31 10:58:4734 days ago1717153127IN
0xF43480af...7d25A647F
0 ETH0.000938728.94086318
Withdraw199590722024-05-27 5:18:4738 days ago1716787127IN
0xF43480af...7d25A647F
0 ETH0.000914178.56758784
Deposit199563442024-05-26 20:09:2339 days ago1716754163IN
0xF43480af...7d25A647F
0 ETH0.001028789.30785274
Withdraw199562742024-05-26 19:55:1139 days ago1716753311IN
0xF43480af...7d25A647F
0 ETH0.000807357.56651094
Withdraw199525012024-05-26 7:16:4739 days ago1716707807IN
0xF43480af...7d25A647F
0 ETH0.000330513.14798468
Withdraw199195132024-05-21 16:36:2344 days ago1716309383IN
0xF43480af...7d25A647F
0 ETH0.0027163330.90506706
Withdraw199195122024-05-21 16:36:1144 days ago1716309371IN
0xF43480af...7d25A647F
0 ETH0.0024149727.47627463
Withdraw199081852024-05-20 2:34:1145 days ago1716172451IN
0xF43480af...7d25A647F
0 ETH0.000285762.72173275
Deposit198954672024-05-18 7:53:2347 days ago1716018803IN
0xF43480af...7d25A647F
0 ETH0.000403913.54688461
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Sorbettiere

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 Etherscan.io on 2021-05-31
*/

// 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 = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    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");
        }
    }
}
// Sorbettiere is a "semifredo of popsicle stand" this contract is created to provide single side farm for IFO of Popsicle Finance.
// The contract is based on famous Masterchef contract (Ty guys for that)
// It intakes one token and allows the user to farm another token. Due to the crosschain nature of Popsicle Stand we've swapped reward per block
// to reward per second. Moreover, we've implemented safe transfer of reward instead of mint in Masterchef.
// Future is crosschain...

// The contract is ownable untill the DAO will be able to take over. Popsicle community shows that DAO is coming soon.
// And the contract ownership will be transferred to other contract
contract Sorbettiere is Ownable {
    using SafeERC20 for IERC20;
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 remainingIceTokenReward;  // ICE Tokens that weren't distributed for user per pool.
        //
        // We do some fancy math here. Basically, any point in time, the amount of ICE
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accICEPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws Staked tokens to a pool. Here's what happens:
        //   1. The pool's `accICEPerShare` (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 accIcePerShare; // Accumulated ICE per share, times 1e12. See below.
        uint32 lastRewardTime; // Last timestamp number that ICE distribution occurs.
        uint16 allocPoint; // How many allocation points assigned to this pool. ICE to distribute per second.
        
        
    }
    
    IERC20 immutable public ice; // The ICE TOKEN!!
    
    uint256 public icePerSecond; // Ice 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 poitns. Must be the sum of all allocation points in all pools.
    
    uint32 immutable public startTime; // The timestamp when ICE 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 _ice,
        uint256 _icePerSecond,
        uint32 _startTime
    ) {
        ice = _ice;
        
        icePerSecond = _icePerSecond;
        startTime = _startTime;
        endTime = _startTime + 7 days;
    }
    
    function changeEndTime(uint32 addSeconds) external onlyOwner {
        endTime += addSeconds;
    }
    
    // Changes Ice 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 setIcePerSecond(uint256 _icePerSecond,  bool _withUpdate) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        icePerSecond= _icePerSecond;
    }
// 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),
                accIcePerShare: 0
            })
        );
    }

    // Update the given pool's ICE 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 ICE on frontend.
    function pendingIce(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accIcePerShare = pool.accIcePerShare;
       
        if (block.timestamp > pool.lastRewardTime && pool.stakingTokenTotalAmount != 0) {
            uint256 multiplier =
                getMultiplier(pool.lastRewardTime, block.timestamp);
            uint256 iceReward =
                multiplier * icePerSecond * pool.allocPoint / totalAllocPoint;
            accIcePerShare += iceReward * 1e12 / pool.stakingTokenTotalAmount;
        }
        return user.amount * accIcePerShare / 1e12 - user.rewardDebt + user.remainingIceTokenReward;
    }

    // Update reward vairables 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 iceReward =
            multiplier * icePerSecond * pool.allocPoint / totalAllocPoint;
        pool.accIcePerShare += iceReward * 1e12 / pool.stakingTokenTotalAmount;
        pool.lastRewardTime = uint32(block.timestamp);
    }

    // Deposit staking tokens to Sorbettiere for ICE 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.accIcePerShare / 1e12 - user.rewardDebt + user.remainingIceTokenReward;
            user.remainingIceTokenReward = safeRewardTransfer(msg.sender, pending);
        }
        pool.stakingToken.safeTransferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        user.amount += _amount;
        pool.stakingTokenTotalAmount += _amount;
        user.rewardDebt = user.amount * pool.accIcePerShare / 1e12;
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw staked tokens from Sorbettiere.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "Sorbettiere: you cant eat that much popsicles");
        updatePool(_pid);
        uint256 pending =
            user.amount * pool.accIcePerShare / 1e12 - user.rewardDebt + user.remainingIceTokenReward;
        user.remainingIceTokenReward = safeRewardTransfer(msg.sender, pending);
        user.amount -= _amount;
        pool.stakingTokenTotalAmount -= _amount;
        user.rewardDebt = user.amount * pool.accIcePerShare / 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;
        delete userInfo[_pid][msg.sender];
        pool.stakingToken.safeTransfer(address(msg.sender), userAmount);
        emit EmergencyWithdraw(msg.sender, _pid, userAmount);
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_ice","type":"address"},{"internalType":"uint256","name":"_icePerSecond","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":"ice","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"icePerSecond","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":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingIce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"accIcePerShare","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":"_icePerSecond","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setIcePerSecond","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":"remainingIceTokenReward","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"}]

60c060405260006005553480156200001657600080fd5b5060405162001a0838038062001a088339810160408190526200003991620000d4565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160601b0319606084901b1660805260028290556001600160e01b031960e082901b1660a052620000b08162093a806200012c565b6006805463ffffffff191663ffffffff929092169190911790555062000161915050565b600080600060608486031215620000e9578283fd5b83516001600160a01b038116811462000100578384fd5b60208501516040860151919450925063ffffffff8116811462000121578182fd5b809150509250925092565b600063ffffffff8083168185168083038211156200015857634e487b7160e01b84526011600452602484fd5b01949350505050565b60805160601c60a05160e01c611843620001c560003960008181610291015281816109c5015281816109f201528181610a3401528181610ae30152610b1001526000818161021c015281816110d70152818161117601526111bc01526118436000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630b5ba1116100c3578063cf42947b1161007c578063cf42947b14610341578063d1c1b4a814610354578063e2bbb15814610367578063e30c39781461037a578063eaa6ef041461038d578063f4cd1b02146103a057600080fd5b8063630b5ba11461028457806378e979251461028c5780638da5cb5b146102b35780638dbb1e3a146102c657806393f1a40b146102d957806398ec8da61461032e57600080fd5b80633197cbb6116101155780633197cbb6146101df578063441a3e70146102045780634c2a860d146102175780634e71e0c81461025657806351eb05a61461025e5780635312ea8e1461027157600080fd5b8063078dfbe714610152578063081e3eda146101675780631526fe271461017e57806317caf6f1146101cd5780631b2e7d55146101d6575b600080fd5b6101656101603660046114f1565b6103b3565b005b6003545b6040519081526020015b60405180910390f35b61019161018c366004611584565b6104c0565b604080516001600160a01b03909616865260208601949094529284019190915263ffffffff16606083015261ffff16608082015260a001610175565b61016b60055481565b61016b60025481565b6006546101ef9063ffffffff1681565b60405163ffffffff9091168152602001610175565b61016561021236600461162b565b610518565b61023e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610175565b6101656106d8565b61016561026c366004611584565b610795565b61016561027f366004611584565b6108ae565b610165610996565b6101ef7f000000000000000000000000000000000000000000000000000000000000000081565b60005461023e906001600160a01b031681565b61016b6102d436600461162b565b6109c1565b6103136102e73660046115b4565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610175565b61016561033c366004611557565b610aa7565b61016561034f36600461164c565b610c82565b610165610362366004611607565b610ce8565b61016561037536600461162b565b610dd5565b60015461023e906001600160a01b031681565b61016561039b3660046115e3565b610f2c565b61016b6103ae3660046115b4565b610f6a565b6000546001600160a01b031633146103e65760405162461bcd60e51b81526004016103dd906116bf565b60405180910390fd5b811561049f576001600160a01b0383161515806104005750805b6104445760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016103dd565b600080546040516001600160a01b03808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0385166001600160a01b0319909116179055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b600381815481106104d057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919063ffffffff811690640100000000900461ffff1685565b60006003838154811061053b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932080549290910290920192508311156105cc5760405162461bcd60e51b815260206004820152602d60248201527f536f7262657474696572653a20796f752063616e74206561742074686174206d60448201526c75636820706f707369636c657360981b60648201526084016103dd565b6105d584610795565b60008160020154826001015464e8d4a51000856002015485600001546105fb9190611754565b6106059190611734565b61060f9190611773565b61061991906116f4565b905061062533826110b5565b600283015581548490839060009061063e908490611773565b92505081905550838360010160008282546106599190611773565b90915550506002830154825464e8d4a510009161067591611754565b61067f9190611734565b6001830155825461069a906001600160a01b031633866111ed565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6001546001600160a01b03163381146107335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016103dd565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000600382815481106107b857634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600381015490915063ffffffff1642116107e0575050565b600181015461080257600301805463ffffffff19164263ffffffff1617905550565b600381015460009061081a9063ffffffff16426109c1565b905060006005548360030160049054906101000a900461ffff1661ffff16600254846108469190611754565b6108509190611754565b61085a9190611734565b60018401549091506108718264e8d4a51000611754565b61087b9190611734565b83600201600082825461088e91906116f4565b90915550505050600301805463ffffffff19164263ffffffff1617905550565b6000600382815481106108d157634e487b7160e01b600052603260045260246000fd5b6000918252602080832085845260048083526040808620338752909352918420805493909202016001810180549195509193839291610911908490611773565b90915550506000848152600460209081526040808320338085529252822082815560018101839055600201919091558354610958916001600160a01b0390911690836111ed565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60035460005b818110156109bd576109ad81610795565b6109b6816117b6565b905061099c565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000063ffffffff168311610a1c577f000000000000000000000000000000000000000000000000000000000000000063ffffffff16610a1e565b825b60065490935063ffffffff16831180610a5c57507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1682105b15610a6957506000610aa1565b60065463ffffffff16821115610a9457600654610a8d90849063ffffffff16611773565b9050610aa1565b610a9e8383611773565b90505b92915050565b6000546001600160a01b03163314610ad15760405162461bcd60e51b81526004016103dd906116bf565b8015610adf57610adf610996565b60007f000000000000000000000000000000000000000000000000000000000000000063ffffffff164211610b3a577f000000000000000000000000000000000000000000000000000000000000000063ffffffff16610b3c565b425b90508361ffff1660056000828254610b5491906116f4565b90915550506040805160a0810182526001600160a01b03948516815260006020820181815292820181815263ffffffff9485166060840190815261ffff98891660808501908152600380546001810182559452935160049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81018054949099166001600160a01b03199094169390931790975592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d83015593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e909101805494519095166401000000000265ffffffffffff199094169116179190911790915550565b6000546001600160a01b03163314610cac5760405162461bcd60e51b81526004016103dd906116bf565b60068054829190600090610cc790849063ffffffff1661170c565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6000546001600160a01b03163314610d125760405162461bcd60e51b81526004016103dd906116bf565b8015610d2057610d20610996565b8161ffff1660038481548110610d4657634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160030154600554610d7391640100000000900461ffff1690611773565b610d7d91906116f4565b6005819055508160038481548110610da557634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030160046101000a81548161ffff021916908361ffff160217905550505050565b600060038381548110610df857634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932091029091019150610e2984610795565b805415610e875760008160020154826001015464e8d4a5100085600201548560000154610e569190611754565b610e609190611734565b610e6a9190611773565b610e7491906116f4565b9050610e8033826110b5565b6002830155505b8154610e9e906001600160a01b0316333086611250565b82816000016000828254610eb291906116f4565b9250508190555082826001016000828254610ecd91906116f4565b90915550506002820154815464e8d4a5100091610ee991611754565b610ef39190611734565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610988565b6000546001600160a01b03163314610f565760405162461bcd60e51b81526004016103dd906116bf565b8015610f6457610f64610996565b50600255565b60008060038481548110610f8e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b038a168752909352919093209102909101600281015460038201549193509063ffffffff1642118015610fe25750600183015415155b1561106f576003830154600090610fff9063ffffffff16426109c1565b905060006005548560030160049054906101000a900461ffff1661ffff166002548461102b9190611754565b6110359190611754565b61103f9190611734565b60018601549091506110568264e8d4a51000611754565b6110609190611734565b61106a90846116f4565b925050505b60028201546001830154835464e8d4a510009061108d908590611754565b6110979190611734565b6110a19190611773565b6110ab91906116f4565b9695505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561111957600080fd5b505afa15801561112d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611151919061159c565b9050806111615782915050610aa1565b808311156111af5761119d6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685836111ed565b6111a78184611773565b915050610aa1565b6111e36001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685856111ed565b5060009392505050565b6040516001600160a01b0383166024820152604481018290526104bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261128e565b6040516001600160a01b03808516602483015283166044820152606481018290526112889085906323b872dd60e01b90608401611219565b50505050565b60006112e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113609092919063ffffffff16565b8051909150156104bb5780806020019051810190611301919061153b565b6104bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103dd565b606061136f8484600085611379565b90505b9392505050565b6060824710156113da5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103dd565b843b6114285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103dd565b600080866001600160a01b031685876040516114449190611670565b60006040518083038185875af1925050503d8060008114611481576040519150601f19603f3d011682016040523d82523d6000602084013e611486565b606091505b50915091506114968282866114a1565b979650505050505050565b606083156114b0575081611372565b8251156114c05782518084602001fd5b8160405162461bcd60e51b81526004016103dd919061168c565b803561ffff811681146114ec57600080fd5b919050565b600080600060608486031215611505578283fd5b8335611510816117e7565b92506020840135611520816117ff565b91506040840135611530816117ff565b809150509250925092565b60006020828403121561154c578081fd5b8151611372816117ff565b60008060006060848603121561156b578283fd5b611574846114da565b92506020840135611520816117e7565b600060208284031215611595578081fd5b5035919050565b6000602082840312156115ad578081fd5b5051919050565b600080604083850312156115c6578182fd5b8235915060208301356115d8816117e7565b809150509250929050565b600080604083850312156115f5578182fd5b8235915060208301356115d8816117ff565b60008060006060848603121561161b578283fd5b83359250611520602085016114da565b6000806040838503121561163d578182fd5b50508035926020909101359150565b60006020828403121561165d578081fd5b813563ffffffff81168114611372578182fd5b6000825161168281846020870161178a565b9190910192915050565b60208152600082518060208401526116ab81604085016020870161178a565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611707576117076117d1565b500190565b600063ffffffff80831681851680830382111561172b5761172b6117d1565b01949350505050565b60008261174f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561176e5761176e6117d1565b500290565b600082821015611785576117856117d1565b500390565b60005b838110156117a557818101518382015260200161178d565b838111156112885750506000910152565b60006000198214156117ca576117ca6117d1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117fc57600080fd5b50565b80151581146117fc57600080fdfea264697066735822122062d572408b7c1682f0ff85808e121294d807ab44a5aa3841f467da362188e49b64736f6c63430008040033000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f600000000000000000000000000000000000000000000002d7c08c616584cbe8f0000000000000000000000000000000000000000000000000000000060b4ebe0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630b5ba1116100c3578063cf42947b1161007c578063cf42947b14610341578063d1c1b4a814610354578063e2bbb15814610367578063e30c39781461037a578063eaa6ef041461038d578063f4cd1b02146103a057600080fd5b8063630b5ba11461028457806378e979251461028c5780638da5cb5b146102b35780638dbb1e3a146102c657806393f1a40b146102d957806398ec8da61461032e57600080fd5b80633197cbb6116101155780633197cbb6146101df578063441a3e70146102045780634c2a860d146102175780634e71e0c81461025657806351eb05a61461025e5780635312ea8e1461027157600080fd5b8063078dfbe714610152578063081e3eda146101675780631526fe271461017e57806317caf6f1146101cd5780631b2e7d55146101d6575b600080fd5b6101656101603660046114f1565b6103b3565b005b6003545b6040519081526020015b60405180910390f35b61019161018c366004611584565b6104c0565b604080516001600160a01b03909616865260208601949094529284019190915263ffffffff16606083015261ffff16608082015260a001610175565b61016b60055481565b61016b60025481565b6006546101ef9063ffffffff1681565b60405163ffffffff9091168152602001610175565b61016561021236600461162b565b610518565b61023e7f000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f681565b6040516001600160a01b039091168152602001610175565b6101656106d8565b61016561026c366004611584565b610795565b61016561027f366004611584565b6108ae565b610165610996565b6101ef7f0000000000000000000000000000000000000000000000000000000060b4ebe081565b60005461023e906001600160a01b031681565b61016b6102d436600461162b565b6109c1565b6103136102e73660046115b4565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610175565b61016561033c366004611557565b610aa7565b61016561034f36600461164c565b610c82565b610165610362366004611607565b610ce8565b61016561037536600461162b565b610dd5565b60015461023e906001600160a01b031681565b61016561039b3660046115e3565b610f2c565b61016b6103ae3660046115b4565b610f6a565b6000546001600160a01b031633146103e65760405162461bcd60e51b81526004016103dd906116bf565b60405180910390fd5b811561049f576001600160a01b0383161515806104005750805b6104445760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016103dd565b600080546040516001600160a01b03808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0385166001600160a01b0319909116179055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b600381815481106104d057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919063ffffffff811690640100000000900461ffff1685565b60006003838154811061053b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932080549290910290920192508311156105cc5760405162461bcd60e51b815260206004820152602d60248201527f536f7262657474696572653a20796f752063616e74206561742074686174206d60448201526c75636820706f707369636c657360981b60648201526084016103dd565b6105d584610795565b60008160020154826001015464e8d4a51000856002015485600001546105fb9190611754565b6106059190611734565b61060f9190611773565b61061991906116f4565b905061062533826110b5565b600283015581548490839060009061063e908490611773565b92505081905550838360010160008282546106599190611773565b90915550506002830154825464e8d4a510009161067591611754565b61067f9190611734565b6001830155825461069a906001600160a01b031633866111ed565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6001546001600160a01b03163381146107335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016103dd565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000600382815481106107b857634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600381015490915063ffffffff1642116107e0575050565b600181015461080257600301805463ffffffff19164263ffffffff1617905550565b600381015460009061081a9063ffffffff16426109c1565b905060006005548360030160049054906101000a900461ffff1661ffff16600254846108469190611754565b6108509190611754565b61085a9190611734565b60018401549091506108718264e8d4a51000611754565b61087b9190611734565b83600201600082825461088e91906116f4565b90915550505050600301805463ffffffff19164263ffffffff1617905550565b6000600382815481106108d157634e487b7160e01b600052603260045260246000fd5b6000918252602080832085845260048083526040808620338752909352918420805493909202016001810180549195509193839291610911908490611773565b90915550506000848152600460209081526040808320338085529252822082815560018101839055600201919091558354610958916001600160a01b0390911690836111ed565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60035460005b818110156109bd576109ad81610795565b6109b6816117b6565b905061099c565b5050565b60007f0000000000000000000000000000000000000000000000000000000060b4ebe063ffffffff168311610a1c577f0000000000000000000000000000000000000000000000000000000060b4ebe063ffffffff16610a1e565b825b60065490935063ffffffff16831180610a5c57507f0000000000000000000000000000000000000000000000000000000060b4ebe063ffffffff1682105b15610a6957506000610aa1565b60065463ffffffff16821115610a9457600654610a8d90849063ffffffff16611773565b9050610aa1565b610a9e8383611773565b90505b92915050565b6000546001600160a01b03163314610ad15760405162461bcd60e51b81526004016103dd906116bf565b8015610adf57610adf610996565b60007f0000000000000000000000000000000000000000000000000000000060b4ebe063ffffffff164211610b3a577f0000000000000000000000000000000000000000000000000000000060b4ebe063ffffffff16610b3c565b425b90508361ffff1660056000828254610b5491906116f4565b90915550506040805160a0810182526001600160a01b03948516815260006020820181815292820181815263ffffffff9485166060840190815261ffff98891660808501908152600380546001810182559452935160049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81018054949099166001600160a01b03199094169390931790975592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d83015593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e909101805494519095166401000000000265ffffffffffff199094169116179190911790915550565b6000546001600160a01b03163314610cac5760405162461bcd60e51b81526004016103dd906116bf565b60068054829190600090610cc790849063ffffffff1661170c565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6000546001600160a01b03163314610d125760405162461bcd60e51b81526004016103dd906116bf565b8015610d2057610d20610996565b8161ffff1660038481548110610d4657634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160030154600554610d7391640100000000900461ffff1690611773565b610d7d91906116f4565b6005819055508160038481548110610da557634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030160046101000a81548161ffff021916908361ffff160217905550505050565b600060038381548110610df857634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600480835260408086203387529093529190932091029091019150610e2984610795565b805415610e875760008160020154826001015464e8d4a5100085600201548560000154610e569190611754565b610e609190611734565b610e6a9190611773565b610e7491906116f4565b9050610e8033826110b5565b6002830155505b8154610e9e906001600160a01b0316333086611250565b82816000016000828254610eb291906116f4565b9250508190555082826001016000828254610ecd91906116f4565b90915550506002820154815464e8d4a5100091610ee991611754565b610ef39190611734565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610988565b6000546001600160a01b03163314610f565760405162461bcd60e51b81526004016103dd906116bf565b8015610f6457610f64610996565b50600255565b60008060038481548110610f8e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600480835260408086206001600160a01b038a168752909352919093209102909101600281015460038201549193509063ffffffff1642118015610fe25750600183015415155b1561106f576003830154600090610fff9063ffffffff16426109c1565b905060006005548560030160049054906101000a900461ffff1661ffff166002548461102b9190611754565b6110359190611754565b61103f9190611734565b60018601549091506110568264e8d4a51000611754565b6110609190611734565b61106a90846116f4565b925050505b60028201546001830154835464e8d4a510009061108d908590611754565b6110979190611734565b6110a19190611773565b6110ab91906116f4565b9695505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f616906370a082319060240160206040518083038186803b15801561111957600080fd5b505afa15801561112d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611151919061159c565b9050806111615782915050610aa1565b808311156111af5761119d6001600160a01b037f000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f61685836111ed565b6111a78184611773565b915050610aa1565b6111e36001600160a01b037f000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f61685856111ed565b5060009392505050565b6040516001600160a01b0383166024820152604481018290526104bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261128e565b6040516001600160a01b03808516602483015283166044820152606481018290526112889085906323b872dd60e01b90608401611219565b50505050565b60006112e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113609092919063ffffffff16565b8051909150156104bb5780806020019051810190611301919061153b565b6104bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103dd565b606061136f8484600085611379565b90505b9392505050565b6060824710156113da5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103dd565b843b6114285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103dd565b600080866001600160a01b031685876040516114449190611670565b60006040518083038185875af1925050503d8060008114611481576040519150601f19603f3d011682016040523d82523d6000602084013e611486565b606091505b50915091506114968282866114a1565b979650505050505050565b606083156114b0575081611372565b8251156114c05782518084602001fd5b8160405162461bcd60e51b81526004016103dd919061168c565b803561ffff811681146114ec57600080fd5b919050565b600080600060608486031215611505578283fd5b8335611510816117e7565b92506020840135611520816117ff565b91506040840135611530816117ff565b809150509250925092565b60006020828403121561154c578081fd5b8151611372816117ff565b60008060006060848603121561156b578283fd5b611574846114da565b92506020840135611520816117e7565b600060208284031215611595578081fd5b5035919050565b6000602082840312156115ad578081fd5b5051919050565b600080604083850312156115c6578182fd5b8235915060208301356115d8816117e7565b809150509250929050565b600080604083850312156115f5578182fd5b8235915060208301356115d8816117ff565b60008060006060848603121561161b578283fd5b83359250611520602085016114da565b6000806040838503121561163d578182fd5b50508035926020909101359150565b60006020828403121561165d578081fd5b813563ffffffff81168114611372578182fd5b6000825161168281846020870161178a565b9190910192915050565b60208152600082518060208401526116ab81604085016020870161178a565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611707576117076117d1565b500190565b600063ffffffff80831681851680830382111561172b5761172b6117d1565b01949350505050565b60008261174f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561176e5761176e6117d1565b500290565b600082821015611785576117856117d1565b500390565b60005b838110156117a557818101518382015260200161178d565b838111156112885750506000910152565b60006000198214156117ca576117ca6117d1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117fc57600080fd5b50565b80151581146117fc57600080fdfea264697066735822122062d572408b7c1682f0ff85808e121294d807ab44a5aa3841f467da362188e49b64736f6c63430008040033

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

000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f600000000000000000000000000000000000000000000002d7c08c616584cbe8f0000000000000000000000000000000000000000000000000000000060b4ebe0

-----Decoded View---------------
Arg [0] : _ice (address): 0x090185f2135308BaD17527004364eBcC2D37e5F6
Arg [1] : _icePerSecond (uint256): 839041094576719576719
Arg [2] : _startTime (uint32): 1622469600

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000090185f2135308bad17527004364ebcc2d37e5f6
Arg [1] : 00000000000000000000000000000000000000000000002d7c08c616584cbe8f
Arg [2] : 0000000000000000000000000000000000000000000000000000000060b4ebe0


Deployed Bytecode Sourcemap

16783:10048:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11572:363;;;;;;:::i;:::-;;:::i;:::-;;20095:95;20167:8;:15;20095:95;;;8559:25:1;;;8547:2;8532:18;20095:95:0;;;;;;;;18421: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;18421:26:0;5052:306:1;18600:34:0;;;;;;18348:27;;;;;;18818:21;;;;;;;;;;;;9093:10:1;9081:23;;;9063:42;;9051:2;9036:18;18818:21:0;9018:93:1;24878:778:0;;;;;;:::i;:::-;;:::i;18289:27::-;;;;;;;;-1:-1:-1;;;;;3904:32:1;;;3886:51;;3874:2;3859:18;18289:27:0;3841:102:1;11943:301:0;;;:::i;23284:654::-;;;;;;:::i;:::-;;:::i;25731:443::-;;;;;;:::i;:::-;;:::i;23028:180::-;;;:::i;18730:33::-;;;;;11250:20;;;;;-1:-1:-1;;;;;11250:20:0;;;21723:369;;;;;;:::i;:::-;;:::i;18482:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8797:25:1;;;8853:2;8838:18;;8831:34;;;;8881:18;;;8874:34;8785:2;8770:18;18482:64:0;8752:162:1;20498:652:0;;;;;;:::i;:::-;;:::i;19413:101::-;;;;;;:::i;:::-;;:::i;21315:333::-;;;;;;:::i;:::-;;:::i;24012:809::-;;;;;;:::i;:::-;;:::i;11277:27::-;;;;;-1:-1:-1;;;;;11277:27:0;;;19847:203;;;;;;:::i;:::-;;:::i;22154:791::-;;;;;;:::i;:::-;;:::i;11572:363::-;12306:5;;-1:-1:-1;;;;;12306:5:0;12292:10;:19;12284:64;;;;-1:-1:-1;;;12284:64:0;;;;;;;:::i;:::-;;;;;;;;;11677:6:::1;11673:255;;;-1:-1:-1::0;;;;;11710:22:0;::::1;::::0;::::1;::::0;:34:::1;;;11736:8;11710:34;11702:68;;;::::0;-1:-1:-1;;;11702:68:0;;5953:2:1;11702: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;;11702:68:0::1;5925:171:1::0;11702:68:0::1;11813:5;::::0;;11792:37:::1;::::0;-1:-1:-1;;;;;11792:37:0;;::::1;::::0;11813:5;::::1;::::0;11792:37:::1;::::0;::::1;11844:5;:16:::0;;-1:-1:-1;;;;;11844:16:0;::::1;-1:-1:-1::0;;;;;;11844:16:0;;::::1;;::::0;;11572:363;;;:::o;11673:255::-:1;11893:12;:23:::0;;-1:-1:-1;;;;;;11893:23:0::1;-1:-1:-1::0;;;;;11893:23:0;::::1;;::::0;;11673:255:::1;11572:363:::0;;;:::o;18421:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18421:26:0;;;;-1:-1:-1;18421:26:0;;;;;;;;;;;;:::o;24878:778::-;24945:21;24969:8;24978:4;24969:14;;;;;;-1:-1:-1;;;24969:14:0;;;;;;;;;;;;;;;;;25018;;;24969;25018;;;;;;;25033:10;25018:26;;;;;;;;;25063:11;;24969:14;;;;;;;;-1:-1:-1;;;25063:22:0;25055:80;;;;-1:-1:-1;;;25055:80:0;;6710:2:1;25055:80:0;;;6692:21:1;6749:2;6729:18;;;6722:30;6788:34;6768:18;;;6761:62;-1:-1:-1;;;6839:18:1;;;6832:43;6892:19;;25055:80:0;6682:235:1;25055:80:0;25146:16;25157:4;25146:10;:16::i;:::-;25173:15;25265:4;:28;;;25247:4;:15;;;25240:4;25218;:19;;;25204:4;:11;;;:33;;;;:::i;:::-;:40;;;;:::i;:::-;:58;;;;:::i;:::-;:89;;;;:::i;:::-;25173:120;;25335:39;25354:10;25366:7;25335:18;:39::i;:::-;25304:28;;;:70;25385:22;;25400:7;;25304:4;;25385:11;;:22;;25400:7;;25385:22;:::i;:::-;;;;;;;;25450:7;25418:4;:28;;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;;25500:19:0;;;;25486:11;;25522:4;;25486:33;;;:::i;:::-;:40;;;;:::i;:::-;25468:15;;;:58;25537:17;;:60;;-1:-1:-1;;;;;25537:17:0;25576:10;25589:7;25537:30;:60::i;:::-;25613:35;;8559:25:1;;;25634:4:0;;25622:10;;25613:35;;8547:2:1;8532:18;25613:35:0;;;;;;;24878:778;;;;;:::o;11943:301::-;12011:12;;-1:-1:-1;;;;;12011:12:0;12044:10;:27;;12036:72;;;;-1:-1:-1;;;12036:72:0;;7485:2:1;12036:72:0;;;7467:21:1;;;7504:18;;;7497:30;7563:34;7543:18;;;7536:62;7615:18;;12036:72:0;7457:182:1;12036:72:0;12147:5;;;12126:42;;-1:-1:-1;;;;;12126:42:0;;;;12147:5;;;12126:42;;;12179:5;:21;;-1:-1:-1;;;;;12179:21:0;;;-1:-1:-1;;;;;;12179:21:0;;;;;;;12211:25;;;;;;;11943:301::o;23284:654::-;23336:21;23360:8;23369:4;23360:14;;;;;;-1:-1:-1;;;23360:14:0;;;;;;;;;;;;;;;;;;;;;;23408:19;;;;23360:14;;-1:-1:-1;23408:19:0;;23389:15;:38;23385:77;;23444:7;23284:654;:::o;23385:77::-;23478:28;;;;23474:132;;23528:19;;:45;;-1:-1:-1;;23528:45:0;23557:15;23528:45;;;;;-1:-1:-1;23284:654:0:o;23474:132::-;23651:19;;;;23616:18;;23637:51;;23651:19;;23672:15;23637:13;:51::i;:::-;23616:72;;23699:17;23778:15;;23760:4;:15;;;;;;;;;;;;23732:43;;23745:12;;23732:10;:25;;;;:::i;:::-;:43;;;;:::i;:::-;:61;;;;:::i;:::-;23846:28;;;;23699:94;;-1:-1:-1;23827:16:0;23699:94;23839:4;23827:16;:::i;:::-;:47;;;;:::i;:::-;23804:4;:19;;;:70;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;23885:19:0;;:45;;-1:-1:-1;;23885:45:0;23914:15;23885:45;;;;;-1:-1:-1;23284:654:0:o;25731:443::-;25790:21;25814:8;25823:4;25814:14;;;;;;-1:-1:-1;;;25814:14:0;;;;;;;;;;;;;;;;;25863;;;25814;25863;;;;;;;25878:10;25863:26;;;;;;;;25921:11;;25814:14;;;;;25943:28;;;:42;;25814:14;;-1:-1:-1;25863:26:0;;25921:11;;25943:28;:42;;25921:11;;25943:42;:::i;:::-;;;;-1:-1:-1;;26003:14:0;;;;:8;:14;;;;;;;;26018:10;26003:26;;;;;;;25996:33;;;;;;;;;;;;;;;26040:17;;:63;;-1:-1:-1;;;;;26040:17:0;;;;26092:10;26040:30;:63::i;:::-;26119:47;;8559:25:1;;;26149:4:0;;26137:10;;26119:47;;8547:2:1;8532:18;26119:47:0;;;;;;;;25731:443;;;;:::o;23028:180::-;23090:8;:15;23073:14;23116:85;23144:6;23138:3;:12;23116:85;;;23174:15;23185:3;23174:10;:15::i;:::-;23152:5;;;:::i;:::-;;;23116:85;;;;23028:180;:::o;21723:369::-;21822:7;21863:9;21855:17;;:5;:17;:37;;21883:9;21855:37;;;;;21875:5;21855:37;21915:7;;21847:45;;-1:-1:-1;21915:7:0;;21907:15;;;:34;;;21932:9;21926:15;;:3;:15;21907:34;21903:75;;;-1:-1:-1;21965:1:0;21958:8;;21903:75;21998:7;;;;21992:13;;21988:68;;;22029:7;;:15;;22039:5;;22029:7;;:15;:::i;:::-;22022:22;;;;21988:68;22073:11;22079:5;22073:3;:11;:::i;:::-;22066:18;;21723:369;;;;;:::o;20498:652::-;12306:5;;-1:-1:-1;;;;;12306:5:0;12292:10;:19;12284:64;;;;-1:-1:-1;;;12284:64:0;;;;;;;:::i;:::-;20639:11:::1;20635:61;;;20667:17;:15;:17::i;:::-;20706:22;20762:9;20744:27;;:15;:27;:57;;20792:9;20744:57;;;;;20774:15;20744:57;20706:95;;20830:11;20812:29;;:15;;:29;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;20880:251:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;20880:251:0;;::::1;::::0;;-1:-1:-1;20880:251:0::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;;;;;20852:8:::1;:290:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;-1:-1:-1::0;;;;;;20852:290:0;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;::::1;-1:-1:-1::0;;20852:290:0;;;;::::1;::::0;;;;::::1;::::0;;;-1:-1:-1;20498:652:0:o;19413:101::-;12306:5;;-1:-1:-1;;;;;12306:5:0;12292:10;:19;12284:64;;;;-1:-1:-1;;;12284:64:0;;;;;;;:::i;:::-;19485:7:::1;:21:::0;;19496:10;;19485:7;::::1;::::0;:21:::1;::::0;19496:10;;19485:21:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;19413:101:::0;:::o;21315:333::-;12306:5;;-1:-1:-1;;;;;12306:5:0;12292:10;:19;12284:64;;;;-1:-1:-1;;;12284:64:0;;;;;;;:::i;:::-;21448:11:::1;21444:61;;;21476:17;:15;:17::i;:::-;21579:11;21533:57;;21551:8;21560:4;21551:14;;;;;;-1:-1:-1::0;;;21551:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:25;;::::0;21533:15:::1;::::0;:43:::1;::::0;21551:25;;::::1;;;::::0;21533:43:::1;:::i;:::-;:57;;;;:::i;:::-;21515:15;:75;;;;21629:11;21601:8;21610:4;21601:14;;;;;;-1:-1:-1::0;;;21601:14:0::1;;;;;;;;;;;;;;;;;;;:25;;;:39;;;;;;;;;;;;;;;;;;21315:333:::0;;;:::o;24012:809::-;24078:21;24102:8;24111:4;24102:14;;;;;;-1:-1:-1;;;24102:14:0;;;;;;;;;;;;;;;;;24151;;;24102;24151;;;;;;;24166:10;24151:26;;;;;;;;;24102:14;;;;;;-1:-1:-1;24188:16:0;24160:4;24188:10;:16::i;:::-;24219:11;;:15;24215:257;;24251:15;24347:4;:28;;;24329:4;:15;;;24322:4;24300;:19;;;24286:4;:11;;;:33;;;;:::i;:::-;:40;;;;:::i;:::-;:58;;;;:::i;:::-;:89;;;;:::i;:::-;24251:124;;24421:39;24440:10;24452:7;24421:18;:39::i;:::-;24390:28;;;:70;-1:-1:-1;24215:257:0;24482:17;;:129;;-1:-1:-1;;;;;24482:17:0;24539:10;24573:4;24593:7;24482:34;:129::i;:::-;24637:7;24622:4;:11;;;:22;;;;;;;:::i;:::-;;;;;;;;24687:7;24655:4;:28;;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;;24737:19:0;;;;24723:11;;24759:4;;24723:33;;;:::i;:::-;:40;;;;:::i;:::-;24705:15;;;:58;24779:34;;8559:25:1;;;24799:4:0;;24787:10;;24779:34;;8547:2:1;8532:18;24779:34:0;8514:76:1;19847:203:0;12306:5;;-1:-1:-1;;;;;12306:5:0;12292:10;:19;12284:64;;;;-1:-1:-1;;;12284:64:0;;;;;;;:::i;:::-;19948:11:::1;19944:61;;;19976:17;:15;:17::i;:::-;-1:-1:-1::0;20015:12:0::1;:27:::0;19847:203::o;22154:791::-;22253:7;22278:21;22302:8;22311:4;22302:14;;;;;;-1:-1:-1;;;22302:14:0;;;;;;;;;;;;;;;;;22351;;;22302;22351;;;;;;;-1:-1:-1;;;;;22351:21:0;;;;;;;;;;;22302:14;;;;;22408:19;;;;22469;;;;22302:14;;-1:-1:-1;22408:19:0;22469;;22451:15;:37;:74;;;;-1:-1:-1;22492:28:0;;;;:33;;22451:74;22447:389;;;22594:19;;;;22542:18;;22580:51;;22594:19;;22615:15;22580:13;:51::i;:::-;22542:89;;22646:17;22729:15;;22711:4;:15;;;;;;;;;;;;22683:43;;22696:12;;22683:10;:25;;;;:::i;:::-;:43;;;;:::i;:::-;:61;;;;:::i;:::-;22796:28;;;;22646:98;;-1:-1:-1;22777:16:0;22646:98;22789:4;22777:16;:::i;:::-;:47;;;;:::i;:::-;22759:65;;;;:::i;:::-;;;22447:389;;;22909:28;;;;22891:15;;;;22853:11;;22884:4;;22853:28;;22867:14;;22853:28;:::i;:::-;:35;;;;:::i;:::-;:53;;;;:::i;:::-;:84;;;;:::i;:::-;22846:91;22154:791;-1:-1:-1;;;;;;22154:791:0:o;26341:487::-;26462:28;;-1:-1:-1;;;26462:28:0;;26484:4;26462:28;;;3886:51:1;26416:7:0;;;;-1:-1:-1;;;;;26462:3:0;:13;;;;3859:18:1;;26462:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;26436:54;-1:-1:-1;26505:20:0;26501:87;;26569:7;26562:14;;;;;26501:87;26612:15;26602:7;:25;26598:163;;;26664:38;-1:-1:-1;;;;;26664:3:0;:16;26681:3;26686:15;26664:16;:38::i;:::-;26724:25;26734:15;26724:7;:25;:::i;:::-;26717:32;;;;;26598:163;26771:30;-1:-1:-1;;;;;26771:3:0;:16;26788:3;26793:7;26771:16;:30::i;:::-;-1:-1:-1;26819:1:0;;26341:487;-1:-1:-1;;;26341:487:0:o;12901:177::-;13011:58;;-1:-1:-1;;;;;4520:32:1;;13011:58:0;;;4502:51:1;4569:18;;;4562:34;;;12984:86:0;;13004:5;;-1:-1:-1;;;13034:23:0;4475:18:1;;13011:58:0;;;;-1:-1:-1;;13011:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;13011:58:0;-1:-1:-1;;;;;;13011:58:0;;;;;;;;;;12984:19;:86::i;13086:205::-;13214:68;;-1:-1:-1;;;;;4206:15:1;;;13214:68:0;;;4188:34:1;4258:15;;4238:18;;;4231:43;4290:18;;;4283:34;;;13187:96:0;;13207:5;;-1:-1:-1;;;13237:27:0;4123:18:1;;13214:68:0;4105:218:1;13187:96:0;13086:205;;;;:::o;15335:761::-;15759:23;15785:69;15813:4;15785:69;;;;;;;;;;;;;;;;;15793:5;-1:-1:-1;;;;;15785:27:0;;;:69;;;;;:::i;:::-;15869:17;;15759:95;;-1:-1:-1;15869:21:0;15865:224;;16011:10;16000:30;;;;;;;;;;;;:::i;:::-;15992:85;;;;-1:-1:-1;;;15992:85:0;;8204:2:1;15992:85:0;;;8186:21:1;8243:2;8223:18;;;8216:30;8282:34;8262:18;;;8255:62;-1:-1:-1;;;8333:18:1;;;8326:40;8383:19;;15992:85:0;8176:232:1;3661:195:0;3764:12;3796:52;3818:6;3826:4;3832:1;3835:12;3796:21;:52::i;:::-;3789:59;;3661:195;;;;;;:::o;4713:530::-;4840:12;4898:5;4873:21;:30;;4865:81;;;;-1:-1:-1;;;4865:81:0;;6303:2:1;4865: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;;4865:81:0;6275:228:1;4865:81:0;1110:20;;4957:60;;;;-1:-1:-1;;;4957:60:0;;7846:2:1;4957:60:0;;;7828:21:1;7885:2;7865:18;;;7858:30;7924:31;7904:18;;;7897:59;7973:18;;4957:60:0;7818:179:1;4957:60:0;5091:12;5105:23;5132:6;-1:-1:-1;;;;;5132:11:0;5152:5;5160:4;5132:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5090:75;;;;5183:52;5201:7;5210:10;5222:12;5183:17;:52::i;:::-;5176:59;4713:530;-1:-1:-1;;;;;;;4713:530:0:o;7253:742::-;7368:12;7397:7;7393:595;;;-1:-1:-1;7428:10:0;7421:17;;7393:595;7542:17;;:21;7538:439;;7805:10;7799:17;7866:15;7853:10;7849:2;7845:19;7838:44;7753:148;7948:12;7941:20;;-1:-1:-1;;;7941: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;6922:356::-;7124:2;7106:21;;;7143:18;;;7136:30;7202:34;7197:2;7182:18;;7175:62;7269:2;7254:18;;7096:182::o;9116:128::-;9156:3;9187:1;9183:6;9180:1;9177:13;9174:2;;;9193:18;;:::i;:::-;-1:-1:-1;9229:9:1;;9164:80::o;9249:228::-;9288:3;9316:10;9353:2;9350:1;9346:10;9383:2;9380:1;9376:10;9414:3;9410:2;9406:12;9401:3;9398:21;9395:2;;;9422:18;;:::i;:::-;9458:13;;9296:181;-1:-1:-1;;;;9296:181:1:o;9482:217::-;9522:1;9548;9538:2;;-1:-1:-1;;;9573:31:1;;9627:4;9624:1;9617:15;9655:4;9580:1;9645:15;9538:2;-1:-1:-1;9684:9:1;;9528:171::o;9704:168::-;9744:7;9810:1;9806;9802:6;9798:14;9795:1;9792:21;9787:1;9780:9;9773:17;9769:45;9766:2;;;9817:18;;:::i;:::-;-1:-1:-1;9857:9:1;;9756:116::o;9877:125::-;9917:4;9945:1;9942;9939:8;9936:2;;;9950:18;;:::i;:::-;-1:-1:-1;9987:9:1;;9926:76::o;10007:258::-;10079:1;10089:113;10103:6;10100:1;10097:13;10089:113;;;10179:11;;;10173:18;10160:11;;;10153:39;10125:2;10118:10;10089:113;;;10220:6;10217:1;10214:13;10211:2;;;-1:-1:-1;;10255:1:1;10237:16;;10230:27;10060:205::o;10270:135::-;10309:3;-1:-1:-1;;10330:17:1;;10327:2;;;10350:18;;:::i;:::-;-1:-1:-1;10397:1:1;10386:13;;10317:88::o;10410:127::-;10471:10;10466:3;10462:20;10459:1;10452:31;10502:4;10499:1;10492:15;10526:4;10523:1;10516:15;10542:131;-1:-1:-1;;;;;10617:31:1;;10607:42;;10597:2;;10663:1;10660;10653:12;10597:2;10587:86;:::o;10678:118::-;10764:5;10757:13;10750:21;10743:5;10740:32;10730:2;;10786:1;10783;10776:12

Swarm Source

ipfs://62d572408b7c1682f0ff85808e121294d807ab44a5aa3841f467da362188e49b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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