ETH Price: $3,692.95 (+1.55%)
 
Transaction Hash
Method
Block
From
To
Withdraw203991422024-07-27 16:40:47163 days ago1722098447IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000771485.97600868
Get Reward203991312024-07-27 16:38:35163 days ago1722098315IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000662666.23900606
Get Reward200202362024-06-04 18:25:35216 days ago1717525535IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0010442413.43039527
Withdraw200202282024-06-04 18:23:59216 days ago1717525439IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0020693813.13529736
Withdraw198394712024-05-10 11:55:35241 days ago1715342135IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000499923.87247037
Withdraw198220232024-05-08 1:20:11243 days ago1715131211IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000586184.54065017
Get Reward198220202024-05-08 1:19:35243 days ago1715131175IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000564694.01264707
Withdraw197861762024-05-03 1:01:23248 days ago1714698083IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.000995884.86945081
Withdraw196547192024-04-14 15:38:35267 days ago1713109115IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0019126411.07855971
Withdraw193399742024-03-01 11:17:23311 days ago1709291843IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.010194545.99577741
Withdraw193098082024-02-26 5:59:23315 days ago1708927163IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0034825626.97882611
Get Reward193098052024-02-26 5:58:47315 days ago1708927127IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0035008424.87664222
Withdraw189028562023-12-31 3:42:23372 days ago1703994143IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0020770413.18490006
Get Reward188935032023-12-29 20:07:59373 days ago1703880479IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0019853718.69223906
Withdraw188721622023-12-26 20:11:35376 days ago1703621495IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0021391216.57142614
Get Reward188721582023-12-26 20:10:47376 days ago1703621447IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0020785116.85548724
Withdraw187773682023-12-13 12:51:59390 days ago1702471919IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0052396830
Withdraw187517182023-12-09 22:43:59393 days ago1702161839IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0042798127.16791862
Withdraw187484282023-12-09 11:39:59394 days ago1702121999IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0061957435.4739701
Withdraw187345422023-12-07 12:53:47396 days ago1701953627IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0080493539.35578261
Withdraw187104232023-12-04 3:48:47399 days ago1701661727IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0055825435.4321099
Withdraw186754002023-11-29 6:12:23404 days ago1701238343IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.005653529.28490664
Get Reward186186602023-11-21 7:29:47412 days ago1700551787IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0032228525
Withdraw185157802023-11-06 22:01:23426 days ago1699308083IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0074847545.87228547
Get Reward184953532023-11-04 1:18:11429 days ago1699060691IN
0xEb1CEFa6...5CCD5D2A5
0 ETH0.0014649213.1
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:
OceanRewardPool

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 9 : OceanRewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
/**
 *Submitted for verification at Etherscan.io on 2020-07-17
 */

/*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: OceanRewardPool.sol
*
* Docs: https://docs.synthetix.io/
*
*
* MIT License
* ===========
*
* Copyright (c) 2020 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

import "./interfaces/IOceanDeposit.sol";
import "./interfaces/IRewards.sol";
import "./libraries/MathUtil.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract OceanRewardPool {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    IERC20 public immutable rewardToken;
    IERC20 public immutable stakingToken;
    uint256 public constant duration = 7 days;
    uint256 public constant FEE_DENOMINATOR = 10000;

    address public immutable operator;
    address public immutable oceanDeposits;
    IERC20 public immutable psdnOceanToken;
    address public immutable rewardManager;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public queuedRewards = 0;
    uint256 public currentRewards = 0;
    uint256 public historicalRewards = 0;
    uint256 public constant newRewardRatio = 830;
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    address[] public extraRewards;

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

    constructor(
        address _stakingToken,
        address _rewardToken,
        address _oceanDeposits,
        address _psdnOceanToken,
        address _operator,
        address _rewardManager
    ) {
        stakingToken = IERC20(_stakingToken);
        rewardToken = IERC20(_rewardToken);
        psdnOceanToken = IERC20(_psdnOceanToken);
        operator = _operator;
        rewardManager = _rewardManager;
        oceanDeposits = _oceanDeposits;
    }

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

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

    function extraRewardsLength() external view returns (uint256) {
        return extraRewards.length;
    }

    function addExtraReward(address _reward) external {
        require(msg.sender == rewardManager, "!authorized");
        require(_reward != address(0), "!reward setting");

        extraRewards.push(_reward);
    }

    function clearExtraRewards() external {
        require(msg.sender == rewardManager, "!authorized");
        delete extraRewards;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earnedReward(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

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

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

    function earnedReward(address account) internal view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    function earned(address account) external view returns (uint256) {
        uint256 depositFeeRate = IOceanDeposit(oceanDeposits).lockIncentive();

        uint256 r = earnedReward(account);
        uint256 fees = r.mul(depositFeeRate).div(FEE_DENOMINATOR);

        //fees dont apply until whitelist+vecrv lock begins so will report
        //slightly less value than what is actually received.
        return r.sub(fees);
    }

    function stake(uint256 _amount) public updateReward(msg.sender) {
        require(_amount > 0, "RewardPool : Cannot stake 0");

        //also stake to linked rewards
        uint256 length = extraRewards.length;
        for (uint256 i = 0; i < length; i++) {
            IRewards(extraRewards[i]).stake(msg.sender, _amount);
        }

        //add supply
        _totalSupply = _totalSupply.add(_amount);
        //add to sender balance sheet
        _balances[msg.sender] = _balances[msg.sender].add(_amount);
        //take tokens from sender
        stakingToken.safeTransferFrom(msg.sender, address(this), _amount);

        emit Staked(msg.sender, _amount);
    }

    function stakeAll() external {
        uint256 balance = stakingToken.balanceOf(msg.sender);
        stake(balance);
    }

    function _stakeFor(address _for, uint256 _amount) internal {
        require(_amount > 0, "RewardPool : Cannot stake 0");

        //also stake to linked rewards
        uint256 length = extraRewards.length;
        for (uint256 i = 0; i < length; i++) {
            IRewards(extraRewards[i]).stake(_for, _amount);
        }

        //add supply
        _totalSupply = _totalSupply.add(_amount);
        //add to _for's balance sheet
        _balances[_for] = _balances[_for].add(_amount);
    }

    function stakeFor(address _for, uint256 _amount) public updateReward(_for) {
        _stakeFor(_for, _amount);
        //take tokens from sender
        stakingToken.safeTransferFrom(msg.sender, address(this), _amount);

        emit Staked(msg.sender, _amount);
    }

    function withdraw(uint256 _amount, bool claim)
        public
        updateReward(msg.sender)
    {
        require(_amount > 0, "RewardPool : Cannot withdraw 0");

        //also withdraw from linked rewards
        uint256 length = extraRewards.length;
        for (uint256 i = 0; i < length; i++) {
            IRewards(extraRewards[i]).withdraw(msg.sender, _amount);
        }

        _totalSupply = _totalSupply.sub(_amount);
        _balances[msg.sender] = _balances[msg.sender].sub(_amount);
        stakingToken.safeTransfer(msg.sender, _amount);
        emit Withdrawn(msg.sender, _amount);

        if (claim) {
            getReward(msg.sender, true, false, false);
        }
    }

    function withdrawAll(bool claim) external {
        withdraw(_balances[msg.sender], claim);
    }

    function getReward(
        address _account,
        bool _claimExtras,
        bool _stake,
        bool _lock
    ) public updateReward(_account) {
        require(_lock || !_stake, "Can't stake not locked token");

        //also get rewards from linked rewards
        if (_claimExtras) {
            uint256 length = extraRewards.length;
            for (uint256 i = 0; i < length; i++) {
                IRewards(extraRewards[i]).getReward(_account);
            }
        }

        uint256 reward = earnedReward(_account);
        if (reward == 0) {
            return;
        }

        rewards[_account] = 0;

        if (_lock) {
            rewardToken.safeApprove(oceanDeposits, 0);
            rewardToken.safeApprove(oceanDeposits, reward);
            uint256 psdnOceanPreBalance = psdnOceanToken.balanceOf(
                address(this)
            );
            IOceanDeposit(oceanDeposits).deposit(reward, false);

            uint256 psdnOceanBalance = psdnOceanToken
                .balanceOf(address(this))
                .sub(psdnOceanPreBalance);
            if (_stake) {
                _stakeFor(_account, psdnOceanBalance);
            } else {
                psdnOceanToken.safeTransfer(_account, psdnOceanBalance);
            }
            emit RewardPaid(
                _account,
                psdnOceanBalance,
                address(psdnOceanToken)
            );
        } else {
            rewardToken.safeTransfer(_account, reward);
            emit RewardPaid(_account, reward, address(rewardToken));
        }
    }

    function getReward(bool _stake, bool _lock) external {
        getReward(msg.sender, true, _stake, _lock);
    }

    function donate(uint256 _amount) external returns (bool) {
        IERC20(rewardToken).safeTransferFrom(
            msg.sender,
            address(this),
            _amount
        );
        queuedRewards = queuedRewards.add(_amount);
        return true;
    }

    function queueNewRewards(uint256 _rewards) external {
        require(msg.sender == operator, "!authorized");

        _rewards = _rewards.add(queuedRewards);

        if (block.timestamp >= periodFinish) {
            notifyRewardAmount(_rewards);
            queuedRewards = 0;
            return;
        }

        //et = now - (finish-duration)
        uint256 elapsedTime = block.timestamp.sub(periodFinish.sub(duration));
        //current at now: rewardRate * elapsedTime
        uint256 currentAtNow = rewardRate * elapsedTime;
        uint256 queuedRatio = currentAtNow.mul(1000).div(_rewards);
        if (queuedRatio < newRewardRatio) {
            notifyRewardAmount(_rewards);
            queuedRewards = 0;
        } else {
            queuedRewards = _rewards;
        }
    }

    function notifyRewardAmount(uint256 reward)
        internal
        updateReward(address(0))
    {
        historicalRewards = historicalRewards.add(reward);
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(duration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            reward = reward.add(leftover);
            rewardRate = reward.div(duration);
        }
        currentRewards = reward;
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(duration);
        emit RewardAdded(reward);
    }
}

File 2 of 9 : IOceanDeposit.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IOceanDeposit {
    function deposit(uint256, bool) external;

    function lockIncentive() external view returns (uint256);
}

File 3 of 9 : IRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IRewards {
    function balanceOf(address _account) external view returns (uint256);

    function stake(address, uint256) external;

    function stakeFor(address, uint256) external;

    function withdraw(address, uint256) external;

    function withdrawAndUnwrap(uint256 amount, bool claim) external;

    function exit(address) external;

    function getReward(address) external;

    function getReward(address _account, bool _claimExtras) external;

    function queueNewRewards(uint256) external;

    function notifyRewardAmount(uint256) external;

    function addExtraReward(address) external;

    function stakingToken() external view returns (address);

    function rewardToken() external view returns (address);

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

File 4 of 9 : MathUtil.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUtil {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
}

File 5 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 7 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 8 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for 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'
        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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 9 of 9 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_oceanDeposits","type":"address"},{"internalType":"address","name":"_psdnOceanToken","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_rewardManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_reward","type":"address"}],"name":"addExtraReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearExtraRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"donate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"extraRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraRewardsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_claimExtras","type":"bool"},{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"historicalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newRewardRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oceanDeposits","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"psdnOceanToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewards","type":"uint256"}],"name":"queueNewRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"queuedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"claim","type":"bool"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"claim","type":"bool"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610140346200019e57601f6200262c38819003918201601f19168301916001600160401b03831184841017620001a35780849260c0946040528339810103126200019e578062000053620000d892620001b9565b906200006260208201620001b9565b6200007060408301620001b9565b6200007e60608401620001b9565b916200009b60a06200009360808701620001b9565b9501620001b9565b9392909194600080805580600155806004558060055560065560018060a01b03928380921660a05216608052166101005260c0526101205260e052565b60405161245d9081620001cf8239608051818181610e5801528181610eb3015281816119ca01528181611c0a01528181611d1801528181611e100152611fde015260a0518181816106ab01528181610aa301528181610b7e0152818161122c015261177b015260c0518181816108df015261225d015260e05181818161035801528181610612015281816119a30152611de9015261010051818181610c5f015281816119fa0152611e5801526101205181818161043001528181610507015261094a0152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200019e5756fe60806040526004361015610013575b600080fd5b60003560e01c80628cc262146102e25780630569d388146102d95780630700037d146102d05780630f4ef8a6146102c75780630fb5a6b4146102be57806318160ddd146102b55780631c1c6fe5146102ac57806323ee0f22146102a3578063262d3d6d1461029a5780632ee409081461029157806338d074361461028857806340c354461461027f578063425b6e2f14610276578063570ca7351461026d578063590a41f5146102645780635e43c47b1461025b57806363d38c3b146102525780636c8bcee81461024957806370a082311461024057806372f702f3146102375780637b0a47ee1461022e57806380faa57d146102255780638b8763471461021c5780638dcb406114610213578063901a7d531461020a57806399646218146102015780639b08c161146101f8578063a694fc3a146101ef578063c8f33c91146101e6578063cd3daf9d146101dd578063d55a23f4146101d4578063d73792a9146101cb578063df136d65146101c2578063ebe2b12b146101b9578063f14faf6f146101b05763f7c618c1146101a857600080fd5b61000e610e92565b5061000e610e38565b5061000e610e19565b5061000e610dfa565b5061000e610ddc565b5061000e610dbd565b5061000e610da1565b5061000e610d82565b5061000e610d1e565b5061000e610c83565b5061000e610c3e565b5061000e610c1f565b5061000e610b45565b5061000e610b0a565b5061000e610ae6565b5061000e610ac7565b5061000e610a82565b5061000e610a47565b5061000e610a29565b5061000e610a0a565b5061000e610920565b5061000e610903565b5061000e6108be565b5061000e610843565b5061000e6107e8565b5061000e610729565b5061000e610655565b5061000e610636565b5061000e6105f1565b5061000e610573565b5061000e61054a565b5061000e61052b565b5061000e6104e6565b5061000e6104ab565b5061000e610410565b5061000e610301565b600435906001600160a01b038216820361000e57565b503461000e57602060031936011261000e576103b86103a86103216102eb565b604051907f509406180000000000000000000000000000000000000000000000000000000082526020826004816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa9182156103f8575b6000926103bc575b506103a161039a612710926110e1565b9283610f73565b049061102e565b6040519081529081906020820190565b0390f35b61271091925061039a6103e86103a19260203d81116103f1575b6103e081836110a2565b8101906110c5565b9392505061038a565b503d6103d6565b6104006110d4565b610382565b600091031261000e57565b503461000e576000806003193601126104a8576104576001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163314610ed7565b600b5481600b558061046a575b50604051f35b7f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9908101905b81811061049d5750610464565b828155600101610490565b80fd5b503461000e57602060031936011261000e576001600160a01b036104cd6102eb565b16600052600a6020526020604060002054604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461000e57600060031936011261000e57602060405162093a808152f35b503461000e57600060031936011261000e576020600754604051908152f35b8015150361000e57565b503461000e57602060031936011261000e5760043561059181610569565b6105c4600091338352600860205260408320546105ac610f9b565b6003556105b7610f86565b600255336105c957611714565b604051f35b6105d2336110e1565b338552600a602052604085205560035460096020526040852055611714565b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461000e57600060031936011261000e576020600654604051908152f35b503461000e57604060031936011261000e5761066f6102eb565b6106a3602435809261067f610f9b565b60035561068a610f86565b6002556001600160a01b038116806106fd575b506115ee565b6106cf8130337f0000000000000000000000000000000000000000000000000000000000000000611343565b6040519081527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a2005b610706826110e1565b90600052600a60205260406000205560035460096020526040600020553861069d565b503461000e57604060031936011261000e5761076e60243561074a81610569565b610752610f9b565b60035561075d610f86565b60025533610770575b600435611714565b005b610779336110e1565b33600052600a6020526040600020556003546009602052604060002055610766565b600b548110156107d257600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90190600090565b634e487b7160e01b600052603260045260246000fd5b503461000e57602060031936011261000e57600435600b5481101561000e576001600160a01b03602091600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9015416604051908152f35b503461000e57604060031936011261000e5761076e60043561086481610569565b6024359061087182610569565b610879610f9b565b600355610884610f86565b60025533610893575b3361194b565b61089c336110e1565b33600052600a602052604060002055600354600960205260406000205561088d565b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461000e57602060031936011261000e5761076e60043561224c565b503461000e57602060031936011261000e5761093a6102eb565b6001600160a01b038091610971827f0000000000000000000000000000000000000000000000000000000000000000163314610ed7565b1680156109c65761099c600b54680100000000000000008110156109b9575b60018101600b5561079b565b909283549160031b90811b9283911b169119161790556000604051f35b6109c1610f22565b610990565b606460405162461bcd60e51b815260206004820152600f60248201527f217265776172642073657474696e6700000000000000000000000000000000006044820152fd5b503461000e57600060031936011261000e576020600454604051908152f35b503461000e57600060031936011261000e57602060405161033e8152f35b503461000e57602060031936011261000e576001600160a01b03610a696102eb565b1660005260086020526020604060002054604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461000e57600060031936011261000e576020600154604051908152f35b503461000e57600060031936011261000e576020610b02610f86565b604051908152f35b503461000e57602060031936011261000e576001600160a01b03610b2c6102eb565b1660005260096020526020604060002054604051908152f35b503461000e576000806003193601126104a8576105c46040516370a0823160e01b81523360048201526020816024816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa908115610c12575b8391610bf4575b50610bb8610f9b565b600355610bc3610f86565b60025533156111bf57610bd5336110e1565b338452600a6020526040842055600354600960205260408420556111bf565b610c0c915060203d81116103f1576103e081836110a2565b38610baf565b610c1a6110d4565b610ba8565b503461000e57600060031936011261000e576020600554604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461000e57608060031936011261000e5761076e610ca06102eb565b602435610cac81610569565b60443590610cb982610569565b60643592610cc684610569565b610cce610f9b565b600355610cd9610f86565b6002556001600160a01b03811680610cf2575b50611d97565b610cfb826110e1565b90600052600a602052604060002055600354600960205260406000205538610cec565b503461000e57602060031936011261000e57610d38610f9b565b600355610d43610f86565b60025533610d57575b61076e6004356111bf565b610d60336110e1565b33600052600a6020526040600020556003546009602052604060002055610d4c565b503461000e57600060031936011261000e576020600254604051908152f35b503461000e57600060031936011261000e576020610b02610f9b565b503461000e57600060031936011261000e576020600b54604051908152f35b503461000e57600060031936011261000e5760206040516127108152f35b503461000e57600060031936011261000e576020600354604051908152f35b503461000e57600060031936011261000e576020600054604051908152f35b503461000e57602060031936011261000e57610e84600435610e7c8130337f0000000000000000000000000000000000000000000000000000000000000000611343565b600454611016565b600455602060405160018152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b15610ede57565b606460405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152fd5b50634e487b7160e01b600052604160045260246000fd5b50634e487b7160e01b600052601160045260246000fd5b6103e8908060001904821181151516610f67570290565b610f6f610f39565b0290565b8060001904821181151516610f67570290565b600054804210600014610f9857504290565b90565b600754801561100f57610f9890610fef60035491610fcf610fba610f86565b600254808210611002575b6001549103610f73565b670de0b6b3a7640000908060001904821181151516610ff5575b02611045565b90611016565b610ffd610f39565b610fe9565b61100a610f39565b610fc5565b5060035490565b81198111611022570190565b61102a610f39565b0190565b818110611039570390565b611041610f39565b0390565b811561104f570490565b634e487b7160e01b600052601260045260246000fd5b67ffffffffffffffff811161107957604052565b611081610f22565b604052565b6040810190811067ffffffffffffffff82111761107957604052565b90601f601f19910116810190811067ffffffffffffffff82111761107957604052565b9081602091031261000e575190565b506040513d6000823e3d90fd5b610f9890611150670de0b6b3a76400006111356001600160a01b03841680600052600860205260406000205490611116610f9b565b90600052600960205260406000205490818110611157575b0390610f73565b04916001600160a01b0316600052600a602052604060002090565b5490611016565b61115f610f39565b61112e565b1561116b57565b606460405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152fd5b6001906000198114611022570190565b6111ca811515611164565b600b5460005b8181106112855750506111ed6111e882600754611016565b600755565b6112148161120e336001600160a01b03166000526008602052604060002090565b54611016565b336000908152600860205260409020556112508130337f0000000000000000000000000000000000000000000000000000000000000000611343565b60405190815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9080602081015b0390a2565b6112b66112aa6112aa6112978461079b565b90546001600160a01b039160031b1c1690565b6001600160a01b031690565b90813b1561000e576040517fadc9772e00000000000000000000000000000000000000000000000000000000815233600482015260248101859052611318926000908290818381604481015b03925af18015611336575b61131d575b506111af565b6111d0565b8061132a61133092611065565b80610405565b38611312565b61133e6110d4565b61130d565b90926113b293604051937f23b872dd0000000000000000000000000000000000000000000000000000000060208601526001600160a01b03809216602486015216604484015260648301526064825260a0820182811067ffffffffffffffff8211176113b4575b604052611447565b565b6113bc610f22565b6113aa565b9081602091031261000e5751610f9881610569565b156113dd57565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b6001600160a01b0316906040519061145e82611086565b6020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656484840152803b156114d557600082819282876114b09796519301915af16114aa611519565b90611567565b805190816114bd57505050565b826113b2936114d09383010191016113c1565b6113d6565b6064846040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b3d15611562573d9067ffffffffffffffff8211611555575b604051916115496020601f19601f84011601846110a2565b82523d6000602084013e565b61155d610f22565b611531565b606090565b90919015611573575090565b8151156115835750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251928360248401526000915b8483106115d5575050601f83604494601f1993116115c8575b01168101030190fd5b60008582860101526115bf565b81830181015186840160440152859350918201916115a6565b906115fa811515611164565b600b5460005b81811061165957505061163c8161161f6111e861165694600754611016565b61120e846001600160a01b03166000526008602052604060002090565b916001600160a01b03166000526008602052604060002090565b55565b61166b6112aa6112aa6112978461079b565b90813b1561000e576040517fadc9772e0000000000000000000000000000000000000000000000000000000081526001600160a01b0386166004820152602481018590526116c492600090829081838160448101611302565b611600565b156116d057565b606460405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f74207769746864726177203000006044820152fd5b61171f8115156116c9565b600b5460005b8181106117dc57505061173d6111e88260075461102e565b6117648161175e336001600160a01b03166000526008602052604060002090565b5461102e565b3360009081526008602052604090205561179f81337f0000000000000000000000000000000000000000000000000000000000000000611843565b60405190815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d590602090a26117d357565b6113b2336118a4565b6117ee6112aa6112aa6112978461079b565b90813b1561000e576040517ff3fef3a30000000000000000000000000000000000000000000000000000000081523360048201526024810185905261183e92600090829081838160448101611302565b611725565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b03909216602483015260448201929092526113b29161189f82606481015b03601f1981018452836110a2565b611447565b6113b2906118b0610f9b565b6003556118bb610f86565b6002556001600160a01b038116806118d4575b50611cb6565b6118dd826110e1565b90600052600a6020526040600020556003546009602052604060002055386118ce565b1561190757565b606460405162461bcd60e51b815260206004820152601c60248201527f43616e2774207374616b65206e6f74206c6f636b656420746f6b656e000000006044820152fd5b91808115611cae575b61195d90611900565b600b5460005b818110611c5e575050611975836110e1565b908115611c5857600061199b856001600160a01b0316600052600a602052604060002090565b5515611be5577f0000000000000000000000000000000000000000000000000000000000000000916119f882847f00000000000000000000000000000000000000000000000000000000000000006119f382826120e6565b61214d565b7f0000000000000000000000000000000000000000000000000000000000000000916001600160a01b039283811690604051936370a0823160e01b9485815286602098898380611a5b30600483019190916001600160a01b036020820193169052565b0381895afa928315611bd8575b600093611bb9575b501690813b1561000e577f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb827988a97600080611aef611b2b966112809b6040519485809481937f9a408321000000000000000000000000000000000000000000000000000000008352600483016020600091939293604081019481520152565b03925af18015611bac575b611b99575b5060405190815230600482015281816024818a5afa918215611b8c575b600092611b6f575b505061102e565b97889115611b6157611b3d92506115ee565b6040519384931695839092916001600160a01b036020916040840195845216910152565b611b6a92611843565b611b3d565b611b859250803d106103f1576103e081836110a2565b3880611b24565b611b946110d4565b611b1c565b8061132a611ba692611065565b38611aff565b611bb46110d4565b611afa565b611bd19193508a3d8c116103f1576103e081836110a2565b9138611a70565b611be06110d4565b611a68565b7f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb82791507f000000000000000000000000000000000000000000000000000000000000000092611c35828286611843565b604080519283526001600160a01b03948516602084015293169281908101611280565b50505050565b611c706112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b0387166004820152611ca992600090829081838160248101611302565b611963565b508115611954565b600b5460005b818110611d47575050611cce816110e1565b8015611d43577f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb827906000611d15846001600160a01b0316600052600a602052604060002090565b557f000000000000000000000000000000000000000000000000000000000000000092611c35828286611843565b5050565b611d596112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b0385166004820152611d9292600090829081838160248101611302565b611cbc565b92919082831561206d575b611dab90611900565b612009575b611db9836110e1565b908115611c585760009283611de1866001600160a01b0316600052600a602052604060002090565b5515611fb8577f000000000000000000000000000000000000000000000000000000000000000090611e3983837f00000000000000000000000000000000000000000000000000000000000000006119f382826120e6565b6040516370a0823160e01b8082523060048301526001600160a01b03957f000000000000000000000000000000000000000000000000000000000000000080881696909591929160209190899083876024818d5afa968715611fab575b8697611f8c575b501690813b15611f8857936112809693611b2b938280611f228f9c99967f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb8279f9e9b976040519485809481937f9a408321000000000000000000000000000000000000000000000000000000008352600483016020600091939293604081019481520152565b03925af18015611f7b575b611f68575b5060405191825230600483015280826024818b5afa928315611f5b575b92611b6f57505061102e565b611f636110d4565b611f4f565b8061132a611f7592611065565b38611f32565b611f836110d4565b611f2d565b8480fd5b611fa4919750843d86116103f1576103e081836110a2565b9538611e9d565b611fb36110d4565b611e96565b507f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb82791507f000000000000000000000000000000000000000000000000000000000000000092611c35828286611843565b600b5460005b81811061201d575050611db0565b61202f6112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b038716600482015261206892600090829081838160248101611302565b61200f565b508115611da2565b1561207c57565b608460405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152fd5b906113b2916001600160a01b03604051927f095ea7b300000000000000000000000000000000000000000000000000000000602085015216602483015260006044830152604482526080820182811067ffffffffffffffff8211176113b457604052611447565b61189f6113b29392831580156121b2575b61216790612075565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000060208201526001600160a01b03909116602482015260448101939093528260648101611891565b506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038216602482015261216790602081806044810103816001600160a01b0389165afa90811561223f575b600091612221575b5015905061215e565b612239915060203d81116103f1576103e081836110a2565b38612218565b6122476110d4565b612210565b61228d906122846001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163314610ed7565b60045490611016565b60005442101561231a5761033e6122ef826122ea6122e56122dd7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c58060005462093a80811061230d575b014261102e565b600154610f73565b610f50565b611045565b1015612308576122fe90612340565b6113b26000600455565b600455565b612315610f39565b6122d6565b61233990612326610f9b565b600355612331610f86565b60025561234c565b6000600455565b6113b290612326610f9b565b6123de7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9161237d81600654611016565b6006556000544281116123f0575062093a8081046001555b80600555426002557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c57f42116123e3575b4262093a80016000556040519081529081906020820190565b0390a1565b6123eb610f39565b6123c5565b90610fef61240c9242811061241a575b60015490429003610f73565b62093a808104600155612395565b612422610f39565b61240056fea2646970667358221220187eb8922aad4fbda8b8b7c65e7e9fd99599ebdde566804cecb960ce1fc5be6564736f6c634300080d003300000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f480000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc100000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e00000000000000000000000083304d9141c01f4dc27639f0efd0ac78efc74a38000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c80628cc262146102e25780630569d388146102d95780630700037d146102d05780630f4ef8a6146102c75780630fb5a6b4146102be57806318160ddd146102b55780631c1c6fe5146102ac57806323ee0f22146102a3578063262d3d6d1461029a5780632ee409081461029157806338d074361461028857806340c354461461027f578063425b6e2f14610276578063570ca7351461026d578063590a41f5146102645780635e43c47b1461025b57806363d38c3b146102525780636c8bcee81461024957806370a082311461024057806372f702f3146102375780637b0a47ee1461022e57806380faa57d146102255780638b8763471461021c5780638dcb406114610213578063901a7d531461020a57806399646218146102015780639b08c161146101f8578063a694fc3a146101ef578063c8f33c91146101e6578063cd3daf9d146101dd578063d55a23f4146101d4578063d73792a9146101cb578063df136d65146101c2578063ebe2b12b146101b9578063f14faf6f146101b05763f7c618c1146101a857600080fd5b61000e610e92565b5061000e610e38565b5061000e610e19565b5061000e610dfa565b5061000e610ddc565b5061000e610dbd565b5061000e610da1565b5061000e610d82565b5061000e610d1e565b5061000e610c83565b5061000e610c3e565b5061000e610c1f565b5061000e610b45565b5061000e610b0a565b5061000e610ae6565b5061000e610ac7565b5061000e610a82565b5061000e610a47565b5061000e610a29565b5061000e610a0a565b5061000e610920565b5061000e610903565b5061000e6108be565b5061000e610843565b5061000e6107e8565b5061000e610729565b5061000e610655565b5061000e610636565b5061000e6105f1565b5061000e610573565b5061000e61054a565b5061000e61052b565b5061000e6104e6565b5061000e6104ab565b5061000e610410565b5061000e610301565b600435906001600160a01b038216820361000e57565b503461000e57602060031936011261000e576103b86103a86103216102eb565b604051907f509406180000000000000000000000000000000000000000000000000000000082526020826004816001600160a01b037f0000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc1165afa9182156103f8575b6000926103bc575b506103a161039a612710926110e1565b9283610f73565b049061102e565b6040519081529081906020820190565b0390f35b61271091925061039a6103e86103a19260203d81116103f1575b6103e081836110a2565b8101906110c5565b9392505061038a565b503d6103d6565b6104006110d4565b610382565b600091031261000e57565b503461000e576000806003193601126104a8576104576001600160a01b037f000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c163314610ed7565b600b5481600b558061046a575b50604051f35b7f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9908101905b81811061049d5750610464565b828155600101610490565b80fd5b503461000e57602060031936011261000e576001600160a01b036104cd6102eb565b16600052600a6020526020604060002054604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c168152f35b503461000e57600060031936011261000e57602060405162093a808152f35b503461000e57600060031936011261000e576020600754604051908152f35b8015150361000e57565b503461000e57602060031936011261000e5760043561059181610569565b6105c4600091338352600860205260408320546105ac610f9b565b6003556105b7610f86565b600255336105c957611714565b604051f35b6105d2336110e1565b338552600a602052604085205560035460096020526040852055611714565b503461000e57600060031936011261000e5760206040516001600160a01b037f0000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc1168152f35b503461000e57600060031936011261000e576020600654604051908152f35b503461000e57604060031936011261000e5761066f6102eb565b6106a3602435809261067f610f9b565b60035561068a610f86565b6002556001600160a01b038116806106fd575b506115ee565b6106cf8130337f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e611343565b6040519081527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a2005b610706826110e1565b90600052600a60205260406000205560035460096020526040600020553861069d565b503461000e57604060031936011261000e5761076e60243561074a81610569565b610752610f9b565b60035561075d610f86565b60025533610770575b600435611714565b005b610779336110e1565b33600052600a6020526040600020556003546009602052604060002055610766565b600b548110156107d257600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90190600090565b634e487b7160e01b600052603260045260246000fd5b503461000e57602060031936011261000e57600435600b5481101561000e576001600160a01b03602091600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9015416604051908152f35b503461000e57604060031936011261000e5761076e60043561086481610569565b6024359061087182610569565b610879610f9b565b600355610884610f86565b60025533610893575b3361194b565b61089c336110e1565b33600052600a602052604060002055600354600960205260406000205561088d565b503461000e57600060031936011261000e5760206040516001600160a01b037f00000000000000000000000083304d9141c01f4dc27639f0efd0ac78efc74a38168152f35b503461000e57602060031936011261000e5761076e60043561224c565b503461000e57602060031936011261000e5761093a6102eb565b6001600160a01b038091610971827f000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c163314610ed7565b1680156109c65761099c600b54680100000000000000008110156109b9575b60018101600b5561079b565b909283549160031b90811b9283911b169119161790556000604051f35b6109c1610f22565b610990565b606460405162461bcd60e51b815260206004820152600f60248201527f217265776172642073657474696e6700000000000000000000000000000000006044820152fd5b503461000e57600060031936011261000e576020600454604051908152f35b503461000e57600060031936011261000e57602060405161033e8152f35b503461000e57602060031936011261000e576001600160a01b03610a696102eb565b1660005260086020526020604060002054604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e168152f35b503461000e57600060031936011261000e576020600154604051908152f35b503461000e57600060031936011261000e576020610b02610f86565b604051908152f35b503461000e57602060031936011261000e576001600160a01b03610b2c6102eb565b1660005260096020526020604060002054604051908152f35b503461000e576000806003193601126104a8576105c46040516370a0823160e01b81523360048201526020816024816001600160a01b037f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e165afa908115610c12575b8391610bf4575b50610bb8610f9b565b600355610bc3610f86565b60025533156111bf57610bd5336110e1565b338452600a6020526040842055600354600960205260408420556111bf565b610c0c915060203d81116103f1576103e081836110a2565b38610baf565b610c1a6110d4565b610ba8565b503461000e57600060031936011261000e576020600554604051908152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e168152f35b503461000e57608060031936011261000e5761076e610ca06102eb565b602435610cac81610569565b60443590610cb982610569565b60643592610cc684610569565b610cce610f9b565b600355610cd9610f86565b6002556001600160a01b03811680610cf2575b50611d97565b610cfb826110e1565b90600052600a602052604060002055600354600960205260406000205538610cec565b503461000e57602060031936011261000e57610d38610f9b565b600355610d43610f86565b60025533610d57575b61076e6004356111bf565b610d60336110e1565b33600052600a6020526040600020556003546009602052604060002055610d4c565b503461000e57600060031936011261000e576020600254604051908152f35b503461000e57600060031936011261000e576020610b02610f9b565b503461000e57600060031936011261000e576020600b54604051908152f35b503461000e57600060031936011261000e5760206040516127108152f35b503461000e57600060031936011261000e576020600354604051908152f35b503461000e57600060031936011261000e576020600054604051908152f35b503461000e57602060031936011261000e57610e84600435610e7c8130337f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f48611343565b600454611016565b600455602060405160018152f35b503461000e57600060031936011261000e5760206040516001600160a01b037f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f48168152f35b15610ede57565b606460405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152fd5b50634e487b7160e01b600052604160045260246000fd5b50634e487b7160e01b600052601160045260246000fd5b6103e8908060001904821181151516610f67570290565b610f6f610f39565b0290565b8060001904821181151516610f67570290565b600054804210600014610f9857504290565b90565b600754801561100f57610f9890610fef60035491610fcf610fba610f86565b600254808210611002575b6001549103610f73565b670de0b6b3a7640000908060001904821181151516610ff5575b02611045565b90611016565b610ffd610f39565b610fe9565b61100a610f39565b610fc5565b5060035490565b81198111611022570190565b61102a610f39565b0190565b818110611039570390565b611041610f39565b0390565b811561104f570490565b634e487b7160e01b600052601260045260246000fd5b67ffffffffffffffff811161107957604052565b611081610f22565b604052565b6040810190811067ffffffffffffffff82111761107957604052565b90601f601f19910116810190811067ffffffffffffffff82111761107957604052565b9081602091031261000e575190565b506040513d6000823e3d90fd5b610f9890611150670de0b6b3a76400006111356001600160a01b03841680600052600860205260406000205490611116610f9b565b90600052600960205260406000205490818110611157575b0390610f73565b04916001600160a01b0316600052600a602052604060002090565b5490611016565b61115f610f39565b61112e565b1561116b57565b606460405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152fd5b6001906000198114611022570190565b6111ca811515611164565b600b5460005b8181106112855750506111ed6111e882600754611016565b600755565b6112148161120e336001600160a01b03166000526008602052604060002090565b54611016565b336000908152600860205260409020556112508130337f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e611343565b60405190815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9080602081015b0390a2565b6112b66112aa6112aa6112978461079b565b90546001600160a01b039160031b1c1690565b6001600160a01b031690565b90813b1561000e576040517fadc9772e00000000000000000000000000000000000000000000000000000000815233600482015260248101859052611318926000908290818381604481015b03925af18015611336575b61131d575b506111af565b6111d0565b8061132a61133092611065565b80610405565b38611312565b61133e6110d4565b61130d565b90926113b293604051937f23b872dd0000000000000000000000000000000000000000000000000000000060208601526001600160a01b03809216602486015216604484015260648301526064825260a0820182811067ffffffffffffffff8211176113b4575b604052611447565b565b6113bc610f22565b6113aa565b9081602091031261000e5751610f9881610569565b156113dd57565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b6001600160a01b0316906040519061145e82611086565b6020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656484840152803b156114d557600082819282876114b09796519301915af16114aa611519565b90611567565b805190816114bd57505050565b826113b2936114d09383010191016113c1565b6113d6565b6064846040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b3d15611562573d9067ffffffffffffffff8211611555575b604051916115496020601f19601f84011601846110a2565b82523d6000602084013e565b61155d610f22565b611531565b606090565b90919015611573575090565b8151156115835750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251928360248401526000915b8483106115d5575050601f83604494601f1993116115c8575b01168101030190fd5b60008582860101526115bf565b81830181015186840160440152859350918201916115a6565b906115fa811515611164565b600b5460005b81811061165957505061163c8161161f6111e861165694600754611016565b61120e846001600160a01b03166000526008602052604060002090565b916001600160a01b03166000526008602052604060002090565b55565b61166b6112aa6112aa6112978461079b565b90813b1561000e576040517fadc9772e0000000000000000000000000000000000000000000000000000000081526001600160a01b0386166004820152602481018590526116c492600090829081838160448101611302565b611600565b156116d057565b606460405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f74207769746864726177203000006044820152fd5b61171f8115156116c9565b600b5460005b8181106117dc57505061173d6111e88260075461102e565b6117648161175e336001600160a01b03166000526008602052604060002090565b5461102e565b3360009081526008602052604090205561179f81337f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e611843565b60405190815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d590602090a26117d357565b6113b2336118a4565b6117ee6112aa6112aa6112978461079b565b90813b1561000e576040517ff3fef3a30000000000000000000000000000000000000000000000000000000081523360048201526024810185905261183e92600090829081838160448101611302565b611725565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b03909216602483015260448201929092526113b29161189f82606481015b03601f1981018452836110a2565b611447565b6113b2906118b0610f9b565b6003556118bb610f86565b6002556001600160a01b038116806118d4575b50611cb6565b6118dd826110e1565b90600052600a6020526040600020556003546009602052604060002055386118ce565b1561190757565b606460405162461bcd60e51b815260206004820152601c60248201527f43616e2774207374616b65206e6f74206c6f636b656420746f6b656e000000006044820152fd5b91808115611cae575b61195d90611900565b600b5460005b818110611c5e575050611975836110e1565b908115611c5857600061199b856001600160a01b0316600052600a602052604060002090565b5515611be5577f0000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc1916119f882847f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f486119f382826120e6565b61214d565b7f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e916001600160a01b039283811690604051936370a0823160e01b9485815286602098898380611a5b30600483019190916001600160a01b036020820193169052565b0381895afa928315611bd8575b600093611bb9575b501690813b1561000e577f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb827988a97600080611aef611b2b966112809b6040519485809481937f9a408321000000000000000000000000000000000000000000000000000000008352600483016020600091939293604081019481520152565b03925af18015611bac575b611b99575b5060405190815230600482015281816024818a5afa918215611b8c575b600092611b6f575b505061102e565b97889115611b6157611b3d92506115ee565b6040519384931695839092916001600160a01b036020916040840195845216910152565b611b6a92611843565b611b3d565b611b859250803d106103f1576103e081836110a2565b3880611b24565b611b946110d4565b611b1c565b8061132a611ba692611065565b38611aff565b611bb46110d4565b611afa565b611bd19193508a3d8c116103f1576103e081836110a2565b9138611a70565b611be06110d4565b611a68565b7f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb82791507f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f4892611c35828286611843565b604080519283526001600160a01b03948516602084015293169281908101611280565b50505050565b611c706112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b0387166004820152611ca992600090829081838160248101611302565b611963565b508115611954565b600b5460005b818110611d47575050611cce816110e1565b8015611d43577f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb827906000611d15846001600160a01b0316600052600a602052604060002090565b557f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f4892611c35828286611843565b5050565b611d596112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b0385166004820152611d9292600090829081838160248101611302565b611cbc565b92919082831561206d575b611dab90611900565b612009575b611db9836110e1565b908115611c585760009283611de1866001600160a01b0316600052600a602052604060002090565b5515611fb8577f0000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc190611e3983837f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f486119f382826120e6565b6040516370a0823160e01b8082523060048301526001600160a01b03957f00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e80881696909591929160209190899083876024818d5afa968715611fab575b8697611f8c575b501690813b15611f8857936112809693611b2b938280611f228f9c99967f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb8279f9e9b976040519485809481937f9a408321000000000000000000000000000000000000000000000000000000008352600483016020600091939293604081019481520152565b03925af18015611f7b575b611f68575b5060405191825230600483015280826024818b5afa928315611f5b575b92611b6f57505061102e565b611f636110d4565b611f4f565b8061132a611f7592611065565b38611f32565b611f836110d4565b611f2d565b8480fd5b611fa4919750843d86116103f1576103e081836110a2565b9538611e9d565b611fb36110d4565b611e96565b507f8e0d3fa908fd7ee819155b3ce71e292b601bbeb0cd00d7758b9d226a523cb82791507f000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f4892611c35828286611843565b600b5460005b81811061201d575050611db0565b61202f6112aa6112aa6112978461079b565b90813b1561000e57604051630c00007b60e41b81526001600160a01b038716600482015261206892600090829081838160248101611302565b61200f565b508115611da2565b1561207c57565b608460405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152fd5b906113b2916001600160a01b03604051927f095ea7b300000000000000000000000000000000000000000000000000000000602085015216602483015260006044830152604482526080820182811067ffffffffffffffff8211176113b457604052611447565b61189f6113b29392831580156121b2575b61216790612075565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000060208201526001600160a01b03909116602482015260448101939093528260648101611891565b506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038216602482015261216790602081806044810103816001600160a01b0389165afa90811561223f575b600091612221575b5015905061215e565b612239915060203d81116103f1576103e081836110a2565b38612218565b6122476110d4565b612210565b61228d906122846001600160a01b037f00000000000000000000000083304d9141c01f4dc27639f0efd0ac78efc74a38163314610ed7565b60045490611016565b60005442101561231a5761033e6122ef826122ea6122e56122dd7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c58060005462093a80811061230d575b014261102e565b600154610f73565b610f50565b611045565b1015612308576122fe90612340565b6113b26000600455565b600455565b612315610f39565b6122d6565b61233990612326610f9b565b600355612331610f86565b60025561234c565b6000600455565b6113b290612326610f9b565b6123de7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9161237d81600654611016565b6006556000544281116123f0575062093a8081046001555b80600555426002557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c57f42116123e3575b4262093a80016000556040519081529081906020820190565b0390a1565b6123eb610f39565b6123c5565b90610fef61240c9242811061241a575b60015490429003610f73565b62093a808104600155612395565b612422610f39565b61240056fea2646970667358221220187eb8922aad4fbda8b8b7c65e7e9fd99599ebdde566804cecb960ce1fc5be6564736f6c634300080d0033

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

00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f480000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc100000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e00000000000000000000000083304d9141c01f4dc27639f0efd0ac78efc74a38000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x51Fa2efd62ee56a493f24AE963eAce7D0051929E
Arg [1] : _rewardToken (address): 0x967da4048cD07aB37855c090aAF366e4ce1b9F48
Arg [2] : _oceanDeposits (address): 0x6eA2E777a43a0385243B2B715554c9F05f3E3FC1
Arg [3] : _psdnOceanToken (address): 0x51Fa2efd62ee56a493f24AE963eAce7D0051929E
Arg [4] : _operator (address): 0x83304d9141C01f4DC27639F0efD0AC78EFC74a38
Arg [5] : _rewardManager (address): 0xEDd77d21145Fa99Ae03689f7341E42750f9CF33c

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e
Arg [1] : 000000000000000000000000967da4048cd07ab37855c090aaf366e4ce1b9f48
Arg [2] : 0000000000000000000000006ea2e777a43a0385243b2b715554c9f05f3e3fc1
Arg [3] : 00000000000000000000000051fa2efd62ee56a493f24ae963eace7d0051929e
Arg [4] : 00000000000000000000000083304d9141c01f4dc27639f0efd0ac78efc74a38
Arg [5] : 000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c


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.