ETH Price: $3,641.00 (-0.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Transaction Hash
Method
Block
From
To
Claim Reward121994812021-04-08 13:39:561368 days ago1617889196IN
0x79Fe0ac5...8F406acCc
0 ETH0.00438397196.9
Claim Reward121994812021-04-08 13:39:561368 days ago1617889196IN
0x79Fe0ac5...8F406acCc
0 ETH0.00447526201
Claim Reward121994682021-04-08 13:35:521368 days ago1617888952IN
0x79Fe0ac5...8F406acCc
0 ETH0.00434167195.00000145
Claim Reward121536222021-04-01 12:35:091375 days ago1617280509IN
0x79Fe0ac5...8F406acCc
0 ETH0.00735536160
Claim Reward121377702021-03-30 1:50:441377 days ago1617069044IN
0x79Fe0ac5...8F406acCc
0 ETH0.00359263116
Claim Reward121312632021-03-29 1:49:491378 days ago1616982589IN
0x79Fe0ac5...8F406acCc
0 ETH0.0027564189
Claim Reward121193142021-03-27 5:38:231380 days ago1616823503IN
0x79Fe0ac5...8F406acCc
0 ETH0.0027873990.00000145
Claim Reward121171632021-03-26 21:42:221381 days ago1616794942IN
0x79Fe0ac5...8F406acCc
0 ETH0.00375871168.817
Claim Reward121133872021-03-26 7:53:591381 days ago1616745239IN
0x79Fe0ac5...8F406acCc
0 ETH0.00309483139
Claim Reward120881512021-03-22 10:46:271385 days ago1616409987IN
0x79Fe0ac5...8F406acCc
0 ETH0.00407268131.5
Claim Reward120830582021-03-21 15:53:351386 days ago1616342015IN
0x79Fe0ac5...8F406acCc
0 ETH0.00341331110.21
Claim Reward120817412021-03-21 10:56:131386 days ago1616324173IN
0x79Fe0ac5...8F406acCc
0 ETH0.002663586
Claim Reward120745972021-03-20 8:22:331387 days ago1616228553IN
0x79Fe0ac5...8F406acCc
0 ETH0.00524069114
Claim Reward120725552021-03-20 0:53:391387 days ago1616201619IN
0x79Fe0ac5...8F406acCc
0 ETH0.00316163142
Claim Reward120717102021-03-19 21:53:511388 days ago1616190831IN
0x79Fe0ac5...8F406acCc
0 ETH0.00303694136.4
Claim Reward120717102021-03-19 21:53:511388 days ago1616190831IN
0x79Fe0ac5...8F406acCc
0 ETH0.00391088126.27572205
Claim Reward120548702021-03-17 7:38:071390 days ago1615966687IN
0x79Fe0ac5...8F406acCc
0 ETH0.00291671131
Claim Reward120548692021-03-17 7:38:051390 days ago1615966685IN
0x79Fe0ac5...8F406acCc
0 ETH0.00291671131
Claim Reward120548672021-03-17 7:37:241390 days ago1615966644IN
0x79Fe0ac5...8F406acCc
0 ETH0.0060222131
Claim Reward120546322021-03-17 6:45:541390 days ago1615963554IN
0x79Fe0ac5...8F406acCc
0 ETH0.00359263116.00000145
Claim Reward120511192021-03-16 17:53:131391 days ago1615917193IN
0x79Fe0ac5...8F406acCc
0 ETH0.00634905205
Claim Reward120472512021-03-16 3:24:421391 days ago1615865082IN
0x79Fe0ac5...8F406acCc
0 ETH0.00517835167.2
Claim Reward120468432021-03-16 1:57:351391 days ago1615859855IN
0x79Fe0ac5...8F406acCc
0 ETH0.00613225198
Claim Reward120455652021-03-15 21:17:011392 days ago1615843021IN
0x79Fe0ac5...8F406acCc
0 ETH0.00698396225.5
Claim Reward120447702021-03-15 18:21:131392 days ago1615832473IN
0x79Fe0ac5...8F406acCc
0 ETH0.00464565150
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x03Da5d61...A42aB6e01
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SnapshotBoardroom

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : SnapshotBoardroom.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {IERC20} from '@openzeppelin/contracts/contracts/token/ERC20/IERC20.sol';
import {IVault} from '../../interfaces/IVault.sol';
import {SafeMath} from '@openzeppelin/contracts/contracts/math/SafeMath.sol';

import {Operator} from '../../owner/Operator.sol';
import {IBoardroom} from '../../interfaces/IBoardroom.sol';

contract SnapshotBoardroom is IBoardroom, Operator {
    using SafeMath for uint256;
    IERC20 public token;
    mapping(address => uint256) public pendingRewards;

    event RewardPaid(address indexed user, uint256 reward);
    event RewardAdded(address indexed user, uint256 reward);

    Boardseat private dummySeat;

    constructor(IERC20 token_, address operator) {
        token = token_;
        transferOperator(operator);
    }

    function claimAndReinvestReward(IVault _vault) external virtual {
        uint256 reward = _claimReward(msg.sender);
        _vault.bondFor(msg.sender, reward);
    }

    function earned(address director)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return pendingRewards[director];
    }

    function claimReward() public virtual override returns (uint256) {
        return _claimReward(msg.sender);
    }

    function allocateSeigniorage(uint256 amount)
        external
        override
        onlyOperator
    {
        require(amount > 0, 'Boardroom: Cannot allocate 0');
        token.transferFrom(msg.sender, address(this), amount);
        emit RewardAdded(msg.sender, amount);
    }

    function updateReward(address director) external virtual override {}

    function _claimReward(address who) internal returns (uint256) {
        uint256 reward = pendingRewards[who];

        if (reward > 0) {
            pendingRewards[who] = 0;
            token.transfer(who, reward);
            emit RewardPaid(who, reward);
        }

        return reward;
    }

    function setBalances(address[] memory who, uint256[] memory amt)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < who.length; i++) {
            pendingRewards[who[i]] = amt[i];
        }
    }

    function getDirector(address who)
        external
        view
        override
        returns (Boardseat memory)
    {
        require(who != address(0));
        return dummySeat;
    }

    function getLastSnapshotIndexOf(address who)
        external
        view
        override
        returns (uint256)
    {
        return pendingRewards[who];
    }
}

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `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 3 of 11 : IVault.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IVault {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function totalBondedSupply() external view returns (uint256);

    function balanceWithoutBonded(address who) external view returns (uint256);

    function bond(uint256 amount) external;

    function bondFor(address who, uint256 amount) external;

    function unbond(uint256 amount) external;

    function withdraw() external;

    function getStakedAmount(address who) external view returns (uint256);
}

File 4 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

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

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

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

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 11 : Operator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/contracts/GSN/Context.sol';
import '@openzeppelin/contracts/contracts/access/Ownable.sol';
import {IOperator} from '../interfaces/IOperator.sol';

abstract contract Operator is Context, Ownable, IOperator {
    address private _operator;

    event OperatorTransferred(
        address indexed previousOperator,
        address indexed newOperator
    );

    constructor() {
        _operator = _msgSender();

        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view override returns (address) {
        return _operator;
    }

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

    function isOperator() public view override returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public override onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(
            newOperator_ != address(0),
            'operator: zero address given for new operator'
        );

        emit OperatorTransferred(address(0), newOperator_);

        _operator = newOperator_;
    }
}

File 6 of 11 : IBoardroom.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {IOperator} from './IOperator.sol';

interface IBoardroom is IOperator {
    struct Boardseat {
        uint256 rewardClaimed;
        uint256 lastRPS;
        uint256 firstRPS;
        uint256 lastBoardSnapshotIndex;
        // // Pending reward from the previous epochs.
        // uint256 rewardPending;
        // Total reward earned in this epoch.
        uint256 rewardEarnedCurrEpoch;
        // Last time reward was claimed(not bound by current epoch).
        uint256 lastClaimedOn;
        // // The reward claimed in vesting period of this epoch.
        // uint256 rewardClaimedCurrEpoch;
        // // Snapshot of boardroom state when last epoch claimed.
        uint256 lastSnapshotIndex;
        // // Rewards claimable now in the current/next claim.
        // uint256 rewardClaimableNow;
        // // keep track of the current rps
        // uint256 claimedRPS;
        bool isFirstVaultActivityBeforeFirstEpoch;
        uint256 firstEpochWhenDoingVaultActivity;
    }

    struct BoardSnapshot {
        // Block number when recording a snapshot.
        uint256 number;
        // Block timestamp when recording a snapshot.
        uint256 time;
        // Amount of funds received.
        uint256 rewardReceived;
        // Equivalent amount per share staked.
        uint256 rewardPerShare;
    }

    struct BondingSnapshot {
        uint256 epoch;
        // Time when first bonding was made.
        uint256 when;
        // The snapshot index of when first bonded.
        uint256 balance;
    }

    // function updateReward(address director) external;

    function allocateSeigniorage(uint256 amount) external;

    function getDirector(address who) external view returns (Boardseat memory);

    function getLastSnapshotIndexOf(address director)
        external
        view
        returns (uint256);

    function earned(address director) external view returns (uint256);

    function claimReward() external returns (uint256);

    function updateReward(address director) external;
}

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

File 8 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
/**
 * @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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 9 of 11 : IOperator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {IEpoch} from './IEpoch.sol';

interface IOperator {
    function operator() external view returns (address);

    function isOperator() external view returns (bool);

    function transferOperator(address newOperator_) external;
}

File 10 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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 GSN 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 11 of 11 : IEpoch.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IEpoch {
    function callable() external view returns (bool);

    function getLastEpoch() external view returns (uint256);

    function getCurrentEpoch() external view returns (uint256);

    function getNextEpoch() external view returns (uint256);

    function nextEpochPoint() external view returns (uint256);

    function getPeriod() external view returns (uint256);

    function getStartTime() external view returns (uint256);

    function setPeriod(uint256 _period) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IVault","name":"_vault","type":"address"}],"name":"claimAndReinvestReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"director","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"getDirector","outputs":[{"components":[{"internalType":"uint256","name":"rewardClaimed","type":"uint256"},{"internalType":"uint256","name":"lastRPS","type":"uint256"},{"internalType":"uint256","name":"firstRPS","type":"uint256"},{"internalType":"uint256","name":"lastBoardSnapshotIndex","type":"uint256"},{"internalType":"uint256","name":"rewardEarnedCurrEpoch","type":"uint256"},{"internalType":"uint256","name":"lastClaimedOn","type":"uint256"},{"internalType":"uint256","name":"lastSnapshotIndex","type":"uint256"},{"internalType":"bool","name":"isFirstVaultActivityBeforeFirstEpoch","type":"bool"},{"internalType":"uint256","name":"firstEpochWhenDoingVaultActivity","type":"uint256"}],"internalType":"struct IBoardroom.Boardseat","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"getLastSnapshotIndexOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"who","type":"address[]"},{"internalType":"uint256[]","name":"amt","type":"uint256[]"}],"name":"setBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"director","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c8063715018a611610097578063b88a802f11610066578063b88a802f146101e8578063c291818b146101f0578063f2fde38b14610203578063fc0c546a14610216576100ff565b8063715018a6146101b25780638da5cb5b146101ba57806397ffe1d7146101c2578063b7e39b4f146101d5576100ff565b80634456eda2116100d35780634456eda214610175578063570ca7351461018a578063632447c91461019f578063714b465814610104576100ff565b80628cc2621461010457806304ab80fc1461012d57806329605e771461014d57806331d7a26214610162575b600080fd5b610117610112366004610961565b61021e565b6040516101249190610c82565b60405180910390f35b61014061013b366004610961565b610239565b6040516101249190610c1b565b61016061015b366004610961565b6102b1565b005b610117610170366004610961565b610305565b61017d610317565b6040516101249190610acd565b61019261033d565b6040516101249190610a7c565b6101606101ad366004610961565b610302565b61016061034c565b6101926103d5565b6101606101d0366004610a64565b6103e4565b6101606101e3366004610984565b6104f9565b6101176105d4565b6101606101fe366004610961565b6105e4565b610160610211366004610961565b610656565b610192610716565b6001600160a01b031660009081526003602052604090205490565b6102416108a7565b6001600160a01b03821661025457600080fd5b5050604080516101208101825260045481526005546020820152600654918101919091526007546060820152600854608082015260095460a0820152600a5460c0820152600b5460ff16151560e0820152600c5461010082015290565b6102b9610725565b6001600160a01b03166102ca6103d5565b6001600160a01b0316146102f95760405162461bcd60e51b81526004016102f090610ba2565b60405180910390fd5b61030281610729565b50565b60036020526000908152604090205481565b6001546000906001600160a01b031661032e610725565b6001600160a01b031614905090565b6001546001600160a01b031690565b610354610725565b6001600160a01b03166103656103d5565b6001600160a01b03161461038b5760405162461bcd60e51b81526004016102f090610ba2565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001546001600160a01b0316331461040e5760405162461bcd60e51b81526004016102f090610bd7565b6000811161042e5760405162461bcd60e51b81526004016102f090610b6b565b6002546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061046290339030908690600401610a90565b602060405180830381600087803b15801561047c57600080fd5b505af1158015610490573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b49190610a44565b50336001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29826040516104ee9190610c82565b60405180910390a250565b610501610725565b6001600160a01b03166105126103d5565b6001600160a01b0316146105385760405162461bcd60e51b81526004016102f090610ba2565b60005b82518110156105cf5781818151811061056457634e487b7160e01b600052603260045260246000fd5b60200260200101516003600085848151811061059057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806105c790610cd9565b91505061053b565b505050565b60006105df336107a7565b905090565b60006105ef336107a7565b604051636082d19960e11b81529091506001600160a01b0383169063c105a332906106209033908590600401610ab4565b600060405180830381600087803b15801561063a57600080fd5b505af115801561064e573d6000803e3d6000fd5b505050505050565b61065e610725565b6001600160a01b031661066f6103d5565b6001600160a01b0316146106955760405162461bcd60e51b81526004016102f090610ba2565b6001600160a01b0381166106bb5760405162461bcd60e51b81526004016102f090610ad8565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b3390565b6001600160a01b03811661074f5760405162461bcd60e51b81526004016102f090610b1e565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526003602052604081205480156108a1576001600160a01b0380841660009081526003602052604080822091909155600254905163a9059cbb60e01b815291169063a9059cbb9061080c9086908590600401610ab4565b602060405180830381600087803b15801561082657600080fd5b505af115801561083a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085e9190610a44565b50826001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516108989190610c82565b60405180910390a25b92915050565b60405180610120016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b600082601f830112610905578081fd5b8135602061091a61091583610cb5565b610c8b565b8281528181019085830183850287018401881015610936578586fd5b855b8581101561095457813584529284019290840190600101610938565b5090979650505050505050565b600060208284031215610972578081fd5b813561097d81610d16565b9392505050565b60008060408385031215610996578081fd5b823567ffffffffffffffff808211156109ad578283fd5b818501915085601f8301126109c0578283fd5b813560206109d061091583610cb5565b82815281810190858301838502870184018b10156109ec578788fd5b8796505b84871015610a17578035610a0381610d16565b8352600196909601959183019183016109f0565b5096505086013592505080821115610a2d578283fd5b50610a3a858286016108f5565b9150509250929050565b600060208284031215610a55578081fd5b8151801515811461097d578182fd5b600060208284031215610a75578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602d908201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260408201526c103732bb9037b832b930ba37b960991b606082015260800190565b6020808252601c908201527f426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465203000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b600061012082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e0830151151560e083015261010080840151818401525092915050565b90815260200190565b60405181810167ffffffffffffffff81118282101715610cad57610cad610d00565b604052919050565b600067ffffffffffffffff821115610ccf57610ccf610d00565b5060209081020190565b6000600019821415610cf957634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461030257600080fdfea2646970667358221220b0da3c45041fa24d49ed34c7b2b10bf5a49e4fee12ed817797dc0dfe7fac92d564736f6c63430008000033

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.