ETH Price: $2,265.51 (+2.19%)

Contract

0x71886C3Ff19263E841EAF4d7964ea5dB1a965f18
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Tokens Per I...202196302024-07-02 15:09:2367 days ago1719932963IN
0x71886C3F...B1a965f18
0 ETH0.000744117.47823367
Set Tokens Per I...191407902024-02-02 12:44:23218 days ago1706877863IN
0x71886C3F...B1a965f18
0 ETH0.0029302429.44852583
Set Tokens Per I...187103602023-12-04 3:36:11278 days ago1701660971IN
0x71886C3F...B1a965f18
0 ETH0.0052581752.84390541
Set Tokens Per I...182757292023-10-04 7:40:59339 days ago1696405259IN
0x71886C3F...B1a965f18
0 ETH0.000494217.67939779
Update Last Dist...182757172023-10-04 7:38:35339 days ago1696405115IN
0x71886C3F...B1a965f18
0 ETH0.000366128.043215
0x60806040182752422023-10-04 6:02:59339 days ago1696399379IN
 Create: RewardDistributor
0 ETH0.006422127.89314813

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardDistributor

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-04
*/

/**
Alpha Radar Bot (ARBOT) is an AI-powered Telegram bot that automatically identifies potential alpha from hundreds of new projects every day! Our bot screens and accurately identifies potential projects 24/7, making it the #1 assistant for both experienced crypto investors and newcomers in finding potential investment opportunities!
Alpha Radar Bot: t.me/alpha_radar_bot
Potential Alpha Scanner: https://t.me/alpha_liquidity_scanner
X: https://twitter.com/alpharadarbot
TG: https://t.me/alpharadarbot_chat
TG mandarin: https://t.me/alpharadarbot_mandarinchat
Buy ARBOT: https://app.uniswap.org/#/tokens/ethereum/0x723696965f47b990dff00064fcaca95f0ee01123
**/

// Sources flattened with hardhat v2.6.1 https://hardhat.org

// File contracts/libraries/math/SafeMath.sol

// SPDX-License-Identifier: MIT


pragma solidity 0.8.17;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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


// File contracts/libraries/token/IERC20.sol



pragma solidity 0.8.17;

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

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

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

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

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

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

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

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


// File contracts/libraries/utils/Address.sol


pragma solidity 0.8.17;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File contracts/libraries/token/SafeERC20.sol



pragma solidity 0.8.17;



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

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/libraries/utils/ReentrancyGuard.sol



pragma solidity 0.8.17;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File contracts/staking/interfaces/IRewardDistributor.sol



pragma solidity 0.8.17;

interface IRewardDistributor {
    function rewardToken() external view returns (address);
    function tokensPerInterval() external view returns (uint256);
    function pendingRewards() external view returns (uint256);
    function distribute() external returns (uint256);
}


// File contracts/staking/interfaces/IRewardTracker.sol



pragma solidity 0.8.17;

interface IRewardTracker {
    function depositBalances(address _account, address _depositToken) external returns (uint256);
    function stakedAmounts(address _account) external returns (uint256);
    function updateRewards() external;
    function stake(address _depositToken, uint256 _amount) external;
    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;
    function unstake(address _depositToken, uint256 _amount) external;
    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;
    function tokensPerInterval() external view returns (uint256);
    function claim(address _receiver) external returns (uint256);
    function claimForAccount(address _account, address _receiver) external returns (uint256);
    function claimable(address _account) external view returns (uint256);
    function averageStakedAmounts(address _account) external view returns (uint256);
    function cumulativeRewards(address _account) external view returns (uint256);
}


// File contracts/access/Governable.sol



pragma solidity 0.8.17;

contract Governable {
    address public gov;

    constructor() {
        gov = msg.sender;
    }

    modifier onlyGov() {
        require(msg.sender == gov, "Governable: forbidden");
        _;
    }

    function setGov(address _gov) external onlyGov {
        gov = _gov;
    }
}


// File contracts/staking/RewardDistributor.sol



pragma solidity 0.8.17;






contract RewardDistributor is IRewardDistributor, ReentrancyGuard, Governable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address public override rewardToken;
    uint256 public override tokensPerInterval;
    uint256 public lastDistributionTime;
    address public rewardTracker;

    address public admin;

    event Distribute(uint256 amount);
    event TokensPerIntervalChange(uint256 amount);

    modifier onlyAdmin() {
        require(msg.sender == admin, "RewardDistributor: forbidden");
        _;
    }

    constructor(address _rewardToken, address _rewardTracker) {
        rewardToken = _rewardToken;
        rewardTracker = _rewardTracker;
        admin = msg.sender;
    }

    function setAdmin(address _admin) external onlyGov {
        admin = _admin;
    }

    // to help users who accidentally send their tokens to this contract
    function withdrawToken(address _token, address _account, uint256 _amount) external onlyGov {
        IERC20(_token).safeTransfer(_account, _amount);
    }

    function updateLastDistributionTime() external onlyAdmin {
        lastDistributionTime = block.timestamp;
    }

    function setTokensPerInterval(uint256 _amount) external onlyAdmin {
        require(lastDistributionTime != 0, "RewardDistributor: invalid lastDistributionTime");
        IRewardTracker(rewardTracker).updateRewards();
        tokensPerInterval = _amount;
        emit TokensPerIntervalChange(_amount);
    }
    
    function pendingRewards() public view override returns (uint256) {
        if (block.timestamp == lastDistributionTime) {
            return 0;
        }

        uint256 timeDiff = block.timestamp.sub(lastDistributionTime);
        return tokensPerInterval.mul(timeDiff);
    }

    function distribute() external override returns (uint256) {
        require(msg.sender == rewardTracker, "RewardDistributor: invalid msg.sender");
        uint256 amount = pendingRewards();
        if (amount == 0) { return 0; }

        lastDistributionTime = block.timestamp;

        uint256 balance = IERC20(rewardToken).balanceOf(address(this));
        if (amount > balance) { amount = balance; }

        IERC20(rewardToken).safeTransfer(msg.sender, amount);

        emit Distribute(amount);
        return amount;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_rewardTracker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Distribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensPerIntervalChange","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDistributionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTokensPerInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokensPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updateLastDistributionTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610c8c380380610c8c83398101604081905261002f9161009c565b600160008190558054336001600160a01b031991821681179092556002805482166001600160a01b0395861617905560058054821693909416929092179092556006805490911690911790556100cf565b80516001600160a01b038116811461009757600080fd5b919050565b600080604083850312156100af57600080fd5b6100b883610080565b91506100c660208401610080565b90509250929050565b610bae806100de6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806375b173501161008c578063e4fc6b6d11610066578063e4fc6b6d1461018d578063eded3fda14610195578063f7c618c11461019d578063f851a440146101b057600080fd5b806375b173501461015a578063a8d9362714610171578063cfad57a21461017a57600080fd5b806301e33667146100d457806312d43a51146100e957806318e20a03146101195780633ae6d6eb1461012c5780636bcb411a14610134578063704b6c0214610147575b600080fd5b6100e76100e23660046109c9565b6101c3565b005b6001546100fc906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e7610127366004610a05565b61020f565b6100e7610376565b6005546100fc906001600160a01b031681565b6100e7610155366004610a1e565b6103d6565b61016360045481565b604051908152602001610110565b61016360035481565b6100e7610188366004610a1e565b610422565b61016361046e565b6101636105ca565b6002546100fc906001600160a01b031681565b6006546100fc906001600160a01b031681565b6001546001600160a01b031633146101f65760405162461bcd60e51b81526004016101ed90610a39565b60405180910390fd5b61020a6001600160a01b0384168383610608565b505050565b6006546001600160a01b031633146102695760405162461bcd60e51b815260206004820152601c60248201527f5265776172644469737472696275746f723a20666f7262696464656e0000000060448201526064016101ed565b6004546000036102d35760405162461bcd60e51b815260206004820152602f60248201527f5265776172644469737472696275746f723a20696e76616c6964206c6173744460448201526e6973747269627574696f6e54696d6560881b60648201526084016101ed565b600560009054906101000a90046001600160a01b03166001600160a01b0316633e158b0c6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561032357600080fd5b505af1158015610337573d6000803e3d6000fd5b5050506003829055506040518181527f98dc76c39aa5a5dcb749f8750a65db3dfa1e14bcc1591a9c16a7420e5da748f89060200160405180910390a150565b6006546001600160a01b031633146103d05760405162461bcd60e51b815260206004820152601c60248201527f5265776172644469737472696275746f723a20666f7262696464656e0000000060448201526064016101ed565b42600455565b6001546001600160a01b031633146104005760405162461bcd60e51b81526004016101ed90610a39565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461044c5760405162461bcd60e51b81526004016101ed90610a39565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b031633146104d95760405162461bcd60e51b815260206004820152602560248201527f5265776172644469737472696275746f723a20696e76616c6964206d73672e7360448201526432b73232b960d91b60648201526084016101ed565b60006104e36105ca565b9050806000036104f557600091505090565b4260049081556002546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190610a68565b90508082111561057a578091505b600254610591906001600160a01b03163384610608565b6040518281527f4def474aca53bf221d07d9ab0f675b3f6d8d2494b8427271bcf43c018ef1eead9060200160405180910390a150919050565b600060045442036105db5750600090565b60006105f26004544261065a90919063ffffffff16565b60035490915061060290826106a5565b91505090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261020a908490610727565b600061069c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506107f9565b90505b92915050565b6000826000036106b75750600061069f565b60006106c38385610a97565b9050826106d08583610aae565b1461069c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016101ed565b600061077c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108359092919063ffffffff16565b80519091501561020a578080602001905181019061079a9190610ad0565b61020a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ed565b6000818484111561081d5760405162461bcd60e51b81526004016101ed9190610b16565b50600061082a8486610b49565b9150505b9392505050565b6060610844848460008561084c565b949350505050565b6060824710156108ad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ed565b843b6108fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ed565b600080866001600160a01b031685876040516109179190610b5c565b60006040518083038185875af1925050503d8060008114610954576040519150601f19603f3d011682016040523d82523d6000602084013e610959565b606091505b5091509150610969828286610974565b979650505050505050565b6060831561098357508161082e565b8251156109935782518084602001fd5b8160405162461bcd60e51b81526004016101ed9190610b16565b80356001600160a01b03811681146109c457600080fd5b919050565b6000806000606084860312156109de57600080fd5b6109e7846109ad565b92506109f5602085016109ad565b9150604084013590509250925092565b600060208284031215610a1757600080fd5b5035919050565b600060208284031215610a3057600080fd5b61069c826109ad565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600060208284031215610a7a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069f5761069f610a81565b600082610acb57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610ae257600080fd5b8151801515811461069c57600080fd5b60005b83811015610b0d578181015183820152602001610af5565b50506000910152565b6020815260008251806020840152610b35816040850160208701610af2565b601f01601f19169190910160400192915050565b8181038181111561069f5761069f610a81565b60008251610b6e818460208701610af2565b919091019291505056fea26469706673582212200df8e23c5a32b4bd5a1eda68eaee762307e79322a85964210a0331913ff28d9b64736f6c63430008110033000000000000000000000000723696965f47b990dff00064fcaca95f0ee011230000000000000000000000004f4ba7ce861b7579c956df9e124b382937c2e51b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806375b173501161008c578063e4fc6b6d11610066578063e4fc6b6d1461018d578063eded3fda14610195578063f7c618c11461019d578063f851a440146101b057600080fd5b806375b173501461015a578063a8d9362714610171578063cfad57a21461017a57600080fd5b806301e33667146100d457806312d43a51146100e957806318e20a03146101195780633ae6d6eb1461012c5780636bcb411a14610134578063704b6c0214610147575b600080fd5b6100e76100e23660046109c9565b6101c3565b005b6001546100fc906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e7610127366004610a05565b61020f565b6100e7610376565b6005546100fc906001600160a01b031681565b6100e7610155366004610a1e565b6103d6565b61016360045481565b604051908152602001610110565b61016360035481565b6100e7610188366004610a1e565b610422565b61016361046e565b6101636105ca565b6002546100fc906001600160a01b031681565b6006546100fc906001600160a01b031681565b6001546001600160a01b031633146101f65760405162461bcd60e51b81526004016101ed90610a39565b60405180910390fd5b61020a6001600160a01b0384168383610608565b505050565b6006546001600160a01b031633146102695760405162461bcd60e51b815260206004820152601c60248201527f5265776172644469737472696275746f723a20666f7262696464656e0000000060448201526064016101ed565b6004546000036102d35760405162461bcd60e51b815260206004820152602f60248201527f5265776172644469737472696275746f723a20696e76616c6964206c6173744460448201526e6973747269627574696f6e54696d6560881b60648201526084016101ed565b600560009054906101000a90046001600160a01b03166001600160a01b0316633e158b0c6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561032357600080fd5b505af1158015610337573d6000803e3d6000fd5b5050506003829055506040518181527f98dc76c39aa5a5dcb749f8750a65db3dfa1e14bcc1591a9c16a7420e5da748f89060200160405180910390a150565b6006546001600160a01b031633146103d05760405162461bcd60e51b815260206004820152601c60248201527f5265776172644469737472696275746f723a20666f7262696464656e0000000060448201526064016101ed565b42600455565b6001546001600160a01b031633146104005760405162461bcd60e51b81526004016101ed90610a39565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461044c5760405162461bcd60e51b81526004016101ed90610a39565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b031633146104d95760405162461bcd60e51b815260206004820152602560248201527f5265776172644469737472696275746f723a20696e76616c6964206d73672e7360448201526432b73232b960d91b60648201526084016101ed565b60006104e36105ca565b9050806000036104f557600091505090565b4260049081556002546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190610a68565b90508082111561057a578091505b600254610591906001600160a01b03163384610608565b6040518281527f4def474aca53bf221d07d9ab0f675b3f6d8d2494b8427271bcf43c018ef1eead9060200160405180910390a150919050565b600060045442036105db5750600090565b60006105f26004544261065a90919063ffffffff16565b60035490915061060290826106a5565b91505090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261020a908490610727565b600061069c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506107f9565b90505b92915050565b6000826000036106b75750600061069f565b60006106c38385610a97565b9050826106d08583610aae565b1461069c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016101ed565b600061077c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108359092919063ffffffff16565b80519091501561020a578080602001905181019061079a9190610ad0565b61020a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101ed565b6000818484111561081d5760405162461bcd60e51b81526004016101ed9190610b16565b50600061082a8486610b49565b9150505b9392505050565b6060610844848460008561084c565b949350505050565b6060824710156108ad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101ed565b843b6108fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ed565b600080866001600160a01b031685876040516109179190610b5c565b60006040518083038185875af1925050503d8060008114610954576040519150601f19603f3d011682016040523d82523d6000602084013e610959565b606091505b5091509150610969828286610974565b979650505050505050565b6060831561098357508161082e565b8251156109935782518084602001fd5b8160405162461bcd60e51b81526004016101ed9190610b16565b80356001600160a01b03811681146109c457600080fd5b919050565b6000806000606084860312156109de57600080fd5b6109e7846109ad565b92506109f5602085016109ad565b9150604084013590509250925092565b600060208284031215610a1757600080fd5b5035919050565b600060208284031215610a3057600080fd5b61069c826109ad565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600060208284031215610a7a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069f5761069f610a81565b600082610acb57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610ae257600080fd5b8151801515811461069c57600080fd5b60005b83811015610b0d578181015183820152602001610af5565b50506000910152565b6020815260008251806020840152610b35816040850160208701610af2565b601f01601f19169190910160400192915050565b8181038181111561069f5761069f610a81565b60008251610b6e818460208701610af2565b919091019291505056fea26469706673582212200df8e23c5a32b4bd5a1eda68eaee762307e79322a85964210a0331913ff28d9b64736f6c63430008110033

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

000000000000000000000000723696965f47b990dff00064fcaca95f0ee011230000000000000000000000004f4ba7ce861b7579c956df9e124b382937c2e51b

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x723696965F47B990Dff00064FcaCa95F0Ee01123
Arg [1] : _rewardTracker (address): 0x4f4bA7Ce861b7579C956dF9E124b382937C2E51B

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000723696965f47b990dff00064fcaca95f0ee01123
Arg [1] : 0000000000000000000000004f4ba7ce861b7579c956df9e124b382937c2e51b


Deployed Bytecode Sourcemap

25412:2359:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26323:156;;;;;;:::i;:::-;;:::i;:::-;;25042:18;;;;;-1:-1:-1;;;;;25042:18:0;;;;;;-1:-1:-1;;;;;689:32:1;;;671:51;;659:2;644:18;25042::0;;;;;;;;26609:312;;;;;;:::i;:::-;;:::i;26487:114::-;;;:::i;25697:28::-;;;;;-1:-1:-1;;;;;25697:28:0;;;26157:84;;;;;;:::i;:::-;;:::i;25655:35::-;;;;;;;;;1255:25:1;;;1243:2;1228:18;25655:35:0;1109:177:1;25607:41:0;;;;;;25235:76;;;;;;:::i;:::-;;:::i;27226:542::-;;;:::i;26933:285::-;;;:::i;25565:35::-;;;;;-1:-1:-1;;;;;25565:35:0;;;25734:20;;;;;-1:-1:-1;;;;;25734:20:0;;;26323:156;25178:3;;-1:-1:-1;;;;;25178:3:0;25164:10;:17;25156:51;;;;-1:-1:-1;;;25156:51:0;;;;;;;:::i;:::-;;;;;;;;;26425:46:::1;-1:-1:-1::0;;;;;26425:27:0;::::1;26453:8:::0;26463:7;26425:27:::1;:46::i;:::-;26323:156:::0;;;:::o;26609:312::-;25910:5;;-1:-1:-1;;;;;25910:5:0;25896:10;:19;25888:60;;;;-1:-1:-1;;;25888:60:0;;1843:2:1;25888:60:0;;;1825:21:1;1882:2;1862:18;;;1855:30;1921;1901:18;;;1894:58;1969:18;;25888:60:0;1641:352:1;25888:60:0;26694:20:::1;;26718:1;26694:25:::0;26686:85:::1;;;::::0;-1:-1:-1;;;26686:85:0;;2200:2:1;26686:85:0::1;::::0;::::1;2182:21:1::0;2239:2;2219:18;;;2212:30;2278:34;2258:18;;;2251:62;-1:-1:-1;;;2329:18:1;;;2322:45;2384:19;;26686:85:0::1;1998:411:1::0;26686:85:0::1;26797:13;;;;;;;;;-1:-1:-1::0;;;;;26797:13:0::1;-1:-1:-1::0;;;;;26782:43:0::1;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;26838:17:0::1;:27:::0;;;-1:-1:-1;26881:32:0::1;::::0;1255:25:1;;;26881:32:0::1;::::0;1243:2:1;1228:18;26881:32:0::1;;;;;;;26609:312:::0;:::o;26487:114::-;25910:5;;-1:-1:-1;;;;;25910:5:0;25896:10;:19;25888:60;;;;-1:-1:-1;;;25888:60:0;;1843:2:1;25888:60:0;;;1825:21:1;1882:2;1862:18;;;1855:30;1921;1901:18;;;1894:58;1969:18;;25888:60:0;1641:352:1;25888:60:0;26578:15:::1;26555:20;:38:::0;26487:114::o;26157:84::-;25178:3;;-1:-1:-1;;;;;25178:3:0;25164:10;:17;25156:51;;;;-1:-1:-1;;;25156:51:0;;;;;;;:::i;:::-;26219:5:::1;:14:::0;;-1:-1:-1;;;;;;26219:14:0::1;-1:-1:-1::0;;;;;26219:14:0;;;::::1;::::0;;;::::1;::::0;;26157:84::o;25235:76::-;25178:3;;-1:-1:-1;;;;;25178:3:0;25164:10;:17;25156:51;;;;-1:-1:-1;;;25156:51:0;;;;;;;:::i;:::-;25293:3:::1;:10:::0;;-1:-1:-1;;;;;;25293:10:0::1;-1:-1:-1::0;;;;;25293:10:0;;;::::1;::::0;;;::::1;::::0;;25235:76::o;27226:542::-;27317:13;;27275:7;;-1:-1:-1;;;;;27317:13:0;27303:10;:27;27295:77;;;;-1:-1:-1;;;27295:77:0;;2616:2:1;27295:77:0;;;2598:21:1;2655:2;2635:18;;;2628:30;2694:34;2674:18;;;2667:62;-1:-1:-1;;;2745:18:1;;;2738:35;2790:19;;27295:77:0;2414:401:1;27295:77:0;27383:14;27400:16;:14;:16::i;:::-;27383:33;;27431:6;27441:1;27431:11;27427:30;;27453:1;27446:8;;;27226:542;:::o;27427:30::-;27492:15;27469:20;:38;;;27545:11;;27538:44;;-1:-1:-1;;;27538:44:0;;27576:4;27538:44;;;671:51:1;;;;27520:15:0;;-1:-1:-1;;;;;27545:11:0;;;;27538:29;;644:18:1;;27538:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27520:62;;27606:7;27597:6;:16;27593:43;;;27626:7;27617:16;;27593:43;27655:11;;27648:52;;-1:-1:-1;;;;;27655:11:0;27681:10;27693:6;27648:32;:52::i;:::-;27718:18;;1255:25:1;;;27718:18:0;;1243:2:1;1228:18;27718::0;;;;;;;-1:-1:-1;27754:6:0;27226:542;-1:-1:-1;27226:542:0:o;26933:285::-;26989:7;27032:20;;27013:15;:39;27009:80;;-1:-1:-1;27076:1:0;;26933:285::o;27009:80::-;27101:16;27120:41;27140:20;;27120:15;:19;;:41;;;;:::i;:::-;27179:17;;27101:60;;-1:-1:-1;27179:31:0;;27101:60;27179:21;:31::i;:::-;27172:38;;;26933:285;:::o;17613:177::-;17723:58;;;-1:-1:-1;;;;;3201:32:1;;17723:58:0;;;3183:51:1;3250:18;;;;3243:34;;;17723:58:0;;;;;;;;;;3156:18:1;;;;17723:58:0;;;;;;;;-1:-1:-1;;;;;17723:58:0;-1:-1:-1;;;17723:58:0;;;17696:86;;17716:5;;17696:19;:86::i;2156:136::-;2214:7;2241:43;2245:1;2248;2241:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2234:50;;2156:136;;;;;:::o;3046:471::-;3104:7;3349:1;3354;3349:6;3345:47;;-1:-1:-1;3379:1:0;3372:8;;3345:47;3404:9;3416:5;3420:1;3416;:5;:::i;:::-;3404:17;-1:-1:-1;3449:1:0;3440:5;3444:1;3404:17;3440:5;:::i;:::-;:10;3432:56;;;;-1:-1:-1;;;3432:56:0;;4017:2:1;3432:56:0;;;3999:21:1;4056:2;4036:18;;;4029:30;4095:34;4075:18;;;4068:62;-1:-1:-1;;;4146:18:1;;;4139:31;4187:19;;3432:56:0;3815:397:1;19918:761:0;20342:23;20368:69;20396:4;20368:69;;;;;;;;;;;;;;;;;20376:5;-1:-1:-1;;;;;20368:27:0;;;:69;;;;;:::i;:::-;20452:17;;20342:95;;-1:-1:-1;20452:21:0;20448:224;;20594:10;20583:30;;;;;;;;;;;;:::i;:::-;20575:85;;;;-1:-1:-1;;;20575:85:0;;4701:2:1;20575:85:0;;;4683:21:1;4740:2;4720:18;;;4713:30;4779:34;4759:18;;;4752:62;-1:-1:-1;;;4830:18:1;;;4823:40;4880:19;;20575:85:0;4499:406:1;2595:192:0;2681:7;2717:12;2709:6;;;;2701:29;;;;-1:-1:-1;;;2701:29:0;;;;;;;;:::i;:::-;-1:-1:-1;2741:9:0;2753:5;2757:1;2753;:5;:::i;:::-;2741:17;-1:-1:-1;;2595:192:0;;;;;;:::o;12625:195::-;12728:12;12760:52;12782:6;12790:4;12796:1;12799:12;12760:21;:52::i;:::-;12753:59;12625:195;-1:-1:-1;;;;12625:195:0:o;13677:530::-;13804:12;13862:5;13837:21;:30;;13829:81;;;;-1:-1:-1;;;13829:81:0;;5901:2:1;13829:81:0;;;5883:21:1;5940:2;5920:18;;;5913:30;5979:34;5959:18;;;5952:62;-1:-1:-1;;;6030:18:1;;;6023:36;6076:19;;13829:81:0;5699:402:1;13829:81:0;10074:20;;13921:60;;;;-1:-1:-1;;;13921:60:0;;6308:2:1;13921:60:0;;;6290:21:1;6347:2;6327:18;;;6320:30;6386:31;6366:18;;;6359:59;6435:18;;13921:60:0;6106:353:1;13921:60:0;14055:12;14069:23;14096:6;-1:-1:-1;;;;;14096:11:0;14116:5;14124:4;14096:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14054:75;;;;14147:52;14165:7;14174:10;14186:12;14147:17;:52::i;:::-;14140:59;13677:530;-1:-1:-1;;;;;;;13677:530:0:o;16217:742::-;16332:12;16361:7;16357:595;;;-1:-1:-1;16392:10:0;16385:17;;16357:595;16506:17;;:21;16502:439;;16769:10;16763:17;16830:15;16817:10;16813:2;16809:19;16802:44;16502:439;16912:12;16905:20;;-1:-1:-1;;;16905: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:328::-;269:6;277;285;338:2;326:9;317:7;313:23;309:32;306:52;;;354:1;351;344:12;306:52;377:29;396:9;377:29;:::i;:::-;367:39;;425:38;459:2;448:9;444:18;425:38;:::i;:::-;415:48;;510:2;499:9;495:18;482:32;472:42;;192:328;;;;;:::o;733:180::-;792:6;845:2;833:9;824:7;820:23;816:32;813:52;;;861:1;858;851:12;813:52;-1:-1:-1;884:23:1;;733:180;-1:-1:-1;733:180:1:o;918:186::-;977:6;1030:2;1018:9;1009:7;1005:23;1001:32;998:52;;;1046:1;1043;1036:12;998:52;1069:29;1088:9;1069:29;:::i;1291:345::-;1493:2;1475:21;;;1532:2;1512:18;;;1505:30;-1:-1:-1;;;1566:2:1;1551:18;;1544:51;1627:2;1612:18;;1291:345::o;2820:184::-;2890:6;2943:2;2931:9;2922:7;2918:23;2914:32;2911:52;;;2959:1;2956;2949:12;2911:52;-1:-1:-1;2982:16:1;;2820:184;-1:-1:-1;2820:184:1:o;3288:127::-;3349:10;3344:3;3340:20;3337:1;3330:31;3380:4;3377:1;3370:15;3404:4;3401:1;3394:15;3420:168;3493:9;;;3524;;3541:15;;;3535:22;;3521:37;3511:71;;3562:18;;:::i;3593:217::-;3633:1;3659;3649:132;;3703:10;3698:3;3694:20;3691:1;3684:31;3738:4;3735:1;3728:15;3766:4;3763:1;3756:15;3649:132;-1:-1:-1;3795:9:1;;3593:217::o;4217:277::-;4284:6;4337:2;4325:9;4316:7;4312:23;4308:32;4305:52;;;4353:1;4350;4343:12;4305:52;4385:9;4379:16;4438:5;4431:13;4424:21;4417:5;4414:32;4404:60;;4460:1;4457;4450:12;4910:250;4995:1;5005:113;5019:6;5016:1;5013:13;5005:113;;;5095:11;;;5089:18;5076:11;;;5069:39;5041:2;5034:10;5005:113;;;-1:-1:-1;;5152:1:1;5134:16;;5127:27;4910:250::o;5165:396::-;5314:2;5303:9;5296:21;5277:4;5346:6;5340:13;5389:6;5384:2;5373:9;5369:18;5362:34;5405:79;5477:6;5472:2;5461:9;5457:18;5452:2;5444:6;5440:15;5405:79;:::i;:::-;5545:2;5524:15;-1:-1:-1;;5520:29:1;5505:45;;;;5552:2;5501:54;;5165:396;-1:-1:-1;;5165:396:1:o;5566:128::-;5633:9;;;5654:11;;;5651:37;;;5668:18;;:::i;6464:287::-;6593:3;6631:6;6625:13;6647:66;6706:6;6701:3;6694:4;6686:6;6682:17;6647:66;:::i;:::-;6729:16;;;;;6464:287;-1:-1:-1;;6464:287:1:o

Swarm Source

ipfs://0df8e23c5a32b4bd5a1eda68eaee762307e79322a85964210a0331913ff28d9b

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.