ETH Price: $3,275.00 (+0.87%)

Contract

0x28CA9CaAE31602D0312Ebf6466c9dD57FCA5da93
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Reward216024822025-01-11 16:37:592 mins ago1736613479IN
Onyx Protocol: DAO
0 ETH0.000462184.27547275
Claim Reward216023632025-01-11 16:13:5926 mins ago1736612039IN
Onyx Protocol: DAO
0 ETH0.000798037.2481729
Claim Reward216022632025-01-11 15:53:5946 mins ago1736610839IN
Onyx Protocol: DAO
0 ETH0.00070146.37052849
Claim Reward216021422025-01-11 15:29:471 hr ago1736609387IN
Onyx Protocol: DAO
0 ETH0.000691966.40108218
Claim Reward216017672025-01-11 14:13:592 hrs ago1736604839IN
Onyx Protocol: DAO
0 ETH0.0004745.09667377
Claim Reward216012572025-01-11 12:31:354 hrs ago1736598695IN
Onyx Protocol: DAO
0 ETH0.000537674.97379538
Claim Reward216012322025-01-11 12:26:354 hrs ago1736598395IN
Onyx Protocol: DAO
0 ETH0.000282.59019069
Claim Reward216011502025-01-11 12:10:114 hrs ago1736597411IN
Onyx Protocol: DAO
0 ETH0.000348113.16171129
Claim Reward216008812025-01-11 11:16:115 hrs ago1736594171IN
Onyx Protocol: DAO
0 ETH0.000518265.69511884
Claim Reward216008562025-01-11 11:11:115 hrs ago1736593871IN
Onyx Protocol: DAO
0 ETH0.000726.53940929
Claim Reward216006232025-01-11 10:24:236 hrs ago1736591063IN
Onyx Protocol: DAO
0 ETH0.000204772.20181606
Claim Reward216006192025-01-11 10:23:356 hrs ago1736591015IN
Onyx Protocol: DAO
0 ETH0.000239362.21428279
Claim Reward216004802025-01-11 9:55:476 hrs ago1736589347IN
Onyx Protocol: DAO
0 ETH0.000549684.99254454
Claim Reward216003772025-01-11 9:34:477 hrs ago1736588087IN
Onyx Protocol: DAO
0 ETH0.000558815.07545223
Claim Reward216003132025-01-11 9:21:597 hrs ago1736587319IN
Onyx Protocol: DAO
0 ETH0.000367193.39670945
Claim Reward216000522025-01-11 8:29:358 hrs ago1736584175IN
Onyx Protocol: DAO
0 ETH0.00044784.81498445
Claim Reward215995572025-01-11 6:49:479 hrs ago1736578187IN
Onyx Protocol: DAO
0 ETH0.000581975.3836077
Claim Reward215994582025-01-11 6:29:3510 hrs ago1736576975IN
Onyx Protocol: DAO
0 ETH0.000555775.14120737
Claim Reward215993022025-01-11 5:58:1110 hrs ago1736575091IN
Onyx Protocol: DAO
0 ETH0.00054775.0665884
Claim Reward215992232025-01-11 5:42:2310 hrs ago1736574143IN
Onyx Protocol: DAO
0 ETH0.000537914.97597655
Claim Reward215991162025-01-11 5:20:5911 hrs ago1736572859IN
Onyx Protocol: DAO
0 ETH0.000315022.86124749
Claim Reward215987772025-01-11 4:12:3512 hrs ago1736568755IN
Onyx Protocol: DAO
0 ETH0.000439034.72071821
Claim Reward215985772025-01-11 3:32:2313 hrs ago1736566343IN
Onyx Protocol: DAO
0 ETH0.000347953.21881142
Claim Reward215983132025-01-11 2:39:2314 hrs ago1736563163IN
Onyx Protocol: DAO
0 ETH0.000308462.85344436
Claim Reward215982902025-01-11 2:34:4714 hrs ago1736562887IN
Onyx Protocol: DAO
0 ETH0.000355053.3717487
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:
CHNReward

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-30
*/

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

    /**
     * @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: CHNReward.sol



pragma solidity ^0.8.3;




interface CHNStakingInterface {
    function claimRewardFromVault(address userAddress, uint256 pid) external returns (uint256);
}

contract CHNReward is Ownable {
    using SafeERC20 for IERC20;

    event Claim(address indexed user, uint256 indexed pid, uint256 reward);
    event GrantDAO(address indexed user, uint256 amount);
    event ChangeStaking(address indexed stake);

    IERC20 public rewardToken;
    CHNStakingInterface public staking;

    constructor(IERC20 _rewardToken) Ownable() {
        rewardToken = _rewardToken;
    }

    function changeStakingAdderss(address _staking) public onlyOwner {
        staking = CHNStakingInterface(_staking);
        emit ChangeStaking(_staking);
    }

    function claimReward(uint256 pid) public {
        uint256 rewardAmount = staking.claimRewardFromVault(msg.sender, pid);
        rewardToken.safeTransfer(address(msg.sender), rewardAmount);
        emit Claim(msg.sender, pid, rewardAmount);
    }

    function grantDAO(address user, uint256 amount) public onlyOwner {
        rewardToken.safeTransfer(user, amount);
        emit GrantDAO(user, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"stake","type":"address"}],"name":"ChangeStaking","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":"reward","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GrantDAO","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"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"}],"name":"changeStakingAdderss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"grantDAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract CHNStakingInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161095e38038061095e83398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b610872806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063ae169a501161005b578063ae169a50146100ea578063c3a4e83a146100fd578063f2fde38b14610110578063f7c618c11461012357600080fd5b8063317d2f5e1461008d5780634cf088d9146100a2578063715018a6146100d15780638da5cb5b146100d9575b600080fd5b6100a061009b3660046106ef565b610136565b005b6002546100b5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100a06101b3565b6000546001600160a01b03166100b5565b6100a06100f836600461070a565b6101e9565b6100a061010b366004610723565b6102b4565b6100a061011e3660046106ef565b61033c565b6001546100b5906001600160a01b031681565b6000546001600160a01b031633146101695760405162461bcd60e51b81526004016101609061074d565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f72e14f17b678a0758085e8adf8db82ae3f1a7efe833e2ce8f5114c87d186cc1890600090a250565b6000546001600160a01b031633146101dd5760405162461bcd60e51b81526004016101609061074d565b6101e760006103d7565b565b600254604051634bea3f0360e01b8152336004820152602481018390526000916001600160a01b031690634bea3f03906044016020604051808303816000875af115801561023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025f9190610782565b600154909150610279906001600160a01b03163383610427565b604051818152829033907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060200160405180910390a35050565b6000546001600160a01b031633146102de5760405162461bcd60e51b81526004016101609061074d565b6001546102f5906001600160a01b03168383610427565b816001600160a01b03167f8742eaee05554e58c50683f78014b9856234f78c6e67b703cfcdef048f6503d38260405161033091815260200190565b60405180910390a25050565b6000546001600160a01b031633146103665760405162461bcd60e51b81526004016101609061074d565b6001600160a01b0381166103cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610160565b6103d4816103d7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261047990849061047e565b505050565b60006104d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166105509092919063ffffffff16565b80519091501561047957808060200190518101906104f1919061079b565b6104795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610160565b606061055f8484600085610569565b90505b9392505050565b6060824710156105ca5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610160565b6001600160a01b0385163b6106215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610160565b600080866001600160a01b0316858760405161063d91906107ed565b60006040518083038185875af1925050503d806000811461067a576040519150601f19603f3d011682016040523d82523d6000602084013e61067f565b606091505b509150915061068f82828661069a565b979650505050505050565b606083156106a9575081610562565b8251156106b95782518084602001fd5b8160405162461bcd60e51b81526004016101609190610809565b80356001600160a01b03811681146106ea57600080fd5b919050565b60006020828403121561070157600080fd5b610562826106d3565b60006020828403121561071c57600080fd5b5035919050565b6000806040838503121561073657600080fd5b61073f836106d3565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561079457600080fd5b5051919050565b6000602082840312156107ad57600080fd5b8151801515811461056257600080fd5b60005b838110156107d85781810151838201526020016107c0565b838111156107e7576000848401525b50505050565b600082516107ff8184602087016107bd565b9190910192915050565b60208152600082518060208401526108288160408501602087016107bd565b601f01601f1916919091016040019291505056fea264697066735822122073d70c6c78224418ef5a03e1022d9e87ff659b73d44b9ff6470fa00de59db40a64736f6c634300080c0033000000000000000000000000a2cd3d43c775978a96bdbf12d733d5a1ed94fb18

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063ae169a501161005b578063ae169a50146100ea578063c3a4e83a146100fd578063f2fde38b14610110578063f7c618c11461012357600080fd5b8063317d2f5e1461008d5780634cf088d9146100a2578063715018a6146100d15780638da5cb5b146100d9575b600080fd5b6100a061009b3660046106ef565b610136565b005b6002546100b5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100a06101b3565b6000546001600160a01b03166100b5565b6100a06100f836600461070a565b6101e9565b6100a061010b366004610723565b6102b4565b6100a061011e3660046106ef565b61033c565b6001546100b5906001600160a01b031681565b6000546001600160a01b031633146101695760405162461bcd60e51b81526004016101609061074d565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f72e14f17b678a0758085e8adf8db82ae3f1a7efe833e2ce8f5114c87d186cc1890600090a250565b6000546001600160a01b031633146101dd5760405162461bcd60e51b81526004016101609061074d565b6101e760006103d7565b565b600254604051634bea3f0360e01b8152336004820152602481018390526000916001600160a01b031690634bea3f03906044016020604051808303816000875af115801561023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025f9190610782565b600154909150610279906001600160a01b03163383610427565b604051818152829033907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060200160405180910390a35050565b6000546001600160a01b031633146102de5760405162461bcd60e51b81526004016101609061074d565b6001546102f5906001600160a01b03168383610427565b816001600160a01b03167f8742eaee05554e58c50683f78014b9856234f78c6e67b703cfcdef048f6503d38260405161033091815260200190565b60405180910390a25050565b6000546001600160a01b031633146103665760405162461bcd60e51b81526004016101609061074d565b6001600160a01b0381166103cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610160565b6103d4816103d7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261047990849061047e565b505050565b60006104d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166105509092919063ffffffff16565b80519091501561047957808060200190518101906104f1919061079b565b6104795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610160565b606061055f8484600085610569565b90505b9392505050565b6060824710156105ca5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610160565b6001600160a01b0385163b6106215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610160565b600080866001600160a01b0316858760405161063d91906107ed565b60006040518083038185875af1925050503d806000811461067a576040519150601f19603f3d011682016040523d82523d6000602084013e61067f565b606091505b509150915061068f82828661069a565b979650505050505050565b606083156106a9575081610562565b8251156106b95782518084602001fd5b8160405162461bcd60e51b81526004016101609190610809565b80356001600160a01b03811681146106ea57600080fd5b919050565b60006020828403121561070157600080fd5b610562826106d3565b60006020828403121561071c57600080fd5b5035919050565b6000806040838503121561073657600080fd5b61073f836106d3565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561079457600080fd5b5051919050565b6000602082840312156107ad57600080fd5b8151801515811461056257600080fd5b60005b838110156107d85781810151838201526020016107c0565b838111156107e7576000848401525b50505050565b600082516107ff8184602087016107bd565b9190910192915050565b60208152600082518060208401526108288160408501602087016107bd565b601f01601f1916919091016040019291505056fea264697066735822122073d70c6c78224418ef5a03e1022d9e87ff659b73d44b9ff6470fa00de59db40a64736f6c634300080c0033

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

000000000000000000000000a2cd3d43c775978a96bdbf12d733d5a1ed94fb18

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a2cd3d43c775978a96bdbf12d733d5a1ed94fb18


Deployed Bytecode Sourcemap

18996:1021:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19426:162;;;;;;:::i;:::-;;:::i;:::-;;19287:34;;;;;-1:-1:-1;;;;;19287:34:0;;;;;;-1:-1:-1;;;;;574:32:1;;;556:51;;544:2;529:18;19287:34:0;;;;;;;2606:103;;;:::i;1955:87::-;2001:7;2028:6;-1:-1:-1;;;;;2028:6:0;1955:87;;19596:250;;;;;;:::i;:::-;;:::i;19854:160::-;;;;;;:::i;:::-;;:::i;2864:201::-;;;;;;:::i;:::-;;:::i;19255:25::-;;;;;-1:-1:-1;;;;;19255:25:0;;;19426:162;2001:7;2028:6;-1:-1:-1;;;;;2028:6:0;759:10;2175:23;2167:68;;;;-1:-1:-1;;;2167:68:0;;;;;;;:::i;:::-;;;;;;;;;19502:7:::1;:39:::0;;-1:-1:-1;;;;;;19502:39:0::1;-1:-1:-1::0;;;;;19502:39:0;::::1;::::0;;::::1;::::0;;;19557:23:::1;::::0;::::1;::::0;-1:-1:-1;;19557:23:0::1;19426:162:::0;:::o;2606:103::-;2001:7;2028:6;-1:-1:-1;;;;;2028:6:0;759:10;2175:23;2167:68;;;;-1:-1:-1;;;2167:68:0;;;;;;;:::i;:::-;2671:30:::1;2698:1;2671:18;:30::i;:::-;2606:103::o:0;19596:250::-;19671:7;;:45;;-1:-1:-1;;;19671:45:0;;19700:10;19671:45;;;2027:51:1;2094:18;;;2087:34;;;19648:20:0;;-1:-1:-1;;;;;19671:7:0;;:28;;2000:18:1;;19671:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;19727:11;;19648:68;;-1:-1:-1;19727:59:0;;-1:-1:-1;;;;;19727:11:0;19760:10;19648:68;19727:24;:59::i;:::-;19802:36;;2467:25:1;;;19820:3:0;;19808:10;;19802:36;;2455:2:1;2440:18;19802:36:0;;;;;;;19637:209;19596:250;:::o;19854:160::-;2001:7;2028:6;-1:-1:-1;;;;;2028:6:0;759:10;2175:23;2167:68;;;;-1:-1:-1;;;2167:68:0;;;;;;;:::i;:::-;19930:11:::1;::::0;:38:::1;::::0;-1:-1:-1;;;;;19930:11:0::1;19955:4:::0;19961:6;19930:24:::1;:38::i;:::-;19993:4;-1:-1:-1::0;;;;;19984:22:0::1;;19999:6;19984:22;;;;2467:25:1::0;;2455:2;2440:18;;2321:177;19984:22:0::1;;;;;;;;19854:160:::0;;:::o;2864:201::-;2001:7;2028:6;-1:-1:-1;;;;;2028:6:0;759:10;2175:23;2167:68;;;;-1:-1:-1;;;2167:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2953:22:0;::::1;2945:73;;;::::0;-1:-1:-1;;;2945:73:0;;2705:2:1;2945:73:0::1;::::0;::::1;2687:21:1::0;2744:2;2724:18;;;2717:30;2783:34;2763:18;;;2756:62;-1:-1:-1;;;2834:18:1;;;2827:36;2880:19;;2945:73:0::1;2503:402:1::0;2945:73:0::1;3029:28;3048:8;3029:18;:28::i;:::-;2864:201:::0;:::o;3225:191::-;3299:16;3318:6;;-1:-1:-1;;;;;3335:17:0;;;-1:-1:-1;;;;;;3335:17:0;;;;;;3368:40;;3318:6;;;;;;;3368:40;;3299:16;3368:40;3288:128;3225:191;:::o;15502:211::-;15646:58;;;-1:-1:-1;;;;;2045:32:1;;15646:58:0;;;2027:51:1;2094:18;;;;2087:34;;;15646:58:0;;;;;;;;;;2000:18:1;;;;15646:58:0;;;;;;;;-1:-1:-1;;;;;15646:58:0;-1:-1:-1;;;15646:58:0;;;15619:86;;15639:5;;15619:19;:86::i;:::-;15502:211;;;:::o;18075:716::-;18499:23;18525:69;18553:4;18525:69;;;;;;;;;;;;;;;;;18533:5;-1:-1:-1;;;;;18525:27:0;;;:69;;;;;:::i;:::-;18609:17;;18499:95;;-1:-1:-1;18609:21:0;18605:179;;18706:10;18695:30;;;;;;;;;;;;:::i;:::-;18687:85;;;;-1:-1:-1;;;18687:85:0;;3394:2:1;18687:85:0;;;3376:21:1;3433:2;3413:18;;;3406:30;3472:34;3452:18;;;3445:62;-1:-1:-1;;;3523:18:1;;;3516:40;3573:19;;18687:85:0;3192:406:1;7401:229:0;7538:12;7570:52;7592:6;7600:4;7606:1;7609:12;7570:21;:52::i;:::-;7563:59;;7401:229;;;;;;:::o;8521:510::-;8691:12;8749:5;8724:21;:30;;8716:81;;;;-1:-1:-1;;;8716:81:0;;3805:2:1;8716:81:0;;;3787:21:1;3844:2;3824:18;;;3817:30;3883:34;3863:18;;;3856:62;-1:-1:-1;;;3934:18:1;;;3927:36;3980:19;;8716:81:0;3603:402:1;8716:81:0;-1:-1:-1;;;;;4951:19:0;;;8808:60;;;;-1:-1:-1;;;8808:60:0;;4212:2:1;8808:60:0;;;4194:21:1;4251:2;4231:18;;;4224:30;4290:31;4270:18;;;4263:59;4339:18;;8808:60:0;4010:353:1;8808:60:0;8882:12;8896:23;8923:6;-1:-1:-1;;;;;8923:11:0;8942:5;8949:4;8923:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8881:73;;;;8972:51;8989:7;8998:10;9010:12;8972:16;:51::i;:::-;8965:58;8521:510;-1:-1:-1;;;;;;;8521:510:0:o;11207:712::-;11357:12;11386:7;11382:530;;;-1:-1:-1;11417:10:0;11410:17;;11382:530;11531:17;;:21;11527:374;;11729:10;11723:17;11790:15;11777:10;11773:2;11769:19;11762:44;11527:374;11872:12;11865:20;;-1:-1:-1;;;11865:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;826:180::-;885:6;938:2;926:9;917:7;913:23;909:32;906:52;;;954:1;951;944:12;906:52;-1:-1:-1;977:23:1;;826:180;-1:-1:-1;826:180:1:o;1011:254::-;1079:6;1087;1140:2;1128:9;1119:7;1115:23;1111:32;1108:52;;;1156:1;1153;1146:12;1108:52;1179:29;1198:9;1179:29;:::i;:::-;1169:39;1255:2;1240:18;;;;1227:32;;-1:-1:-1;;;1011:254:1:o;1492:356::-;1694:2;1676:21;;;1713:18;;;1706:30;1772:34;1767:2;1752:18;;1745:62;1839:2;1824:18;;1492:356::o;2132:184::-;2202:6;2255:2;2243:9;2234:7;2230:23;2226:32;2223:52;;;2271:1;2268;2261:12;2223:52;-1:-1:-1;2294:16:1;;2132:184;-1:-1:-1;2132:184:1:o;2910:277::-;2977:6;3030:2;3018:9;3009:7;3005:23;3001:32;2998:52;;;3046:1;3043;3036:12;2998:52;3078:9;3072:16;3131:5;3124:13;3117:21;3110:5;3107:32;3097:60;;3153:1;3150;3143:12;4368:258;4440:1;4450:113;4464:6;4461:1;4458:13;4450:113;;;4540:11;;;4534:18;4521:11;;;4514:39;4486:2;4479:10;4450:113;;;4581:6;4578:1;4575:13;4572:48;;;4616:1;4607:6;4602:3;4598:16;4591:27;4572:48;;4368:258;;;:::o;4631:274::-;4760:3;4798:6;4792:13;4814:53;4860:6;4855:3;4848:4;4840:6;4836:17;4814:53;:::i;:::-;4883:16;;;;;4631:274;-1:-1:-1;;4631:274:1:o;4910:383::-;5059:2;5048:9;5041:21;5022:4;5091:6;5085:13;5134:6;5129:2;5118:9;5114:18;5107:34;5150:66;5209:6;5204:2;5193:9;5189:18;5184:2;5176:6;5172:15;5150:66;:::i;:::-;5277:2;5256:15;-1:-1:-1;;5252:29:1;5237:45;;;;5284:2;5233:54;;4910:383;-1:-1:-1;;4910:383:1:o

Swarm Source

ipfs://73d70c6c78224418ef5a03e1022d9e87ff659b73d44b9ff6470fa00de59db40a

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.