S Price: $0.606747 (+17.22%)

Contract

0xbaed88E63a47cB2B68F51Bc3335FC7883D30Bdd3

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake22382832025-01-02 8:38:2819 days ago1735807108IN
0xbaed88E6...83D30Bdd3
0 S0.000320552.5
Stake22257272025-01-02 5:12:5719 days ago1735794777IN
0xbaed88E6...83D30Bdd3
0 S0.000126591
Stake20580132024-12-31 5:19:3021 days ago1735622370IN
0xbaed88E6...83D30Bdd3
0 S0.000187521.11
Set Operator20560992024-12-31 4:34:2621 days ago1735619666IN
0xbaed88E6...83D30Bdd3
0 S0.000029651.1
Initialize20545742024-12-31 3:59:5421 days ago1735617594IN
0xbaed88E6...83D30Bdd3
0 S0.000226371.1

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Boardroom

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2025-01-02
*/

/**
 *Submitted for verification at basescan.org on 2023-08-10
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;





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

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

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

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

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

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

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

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










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





/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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);
            }
        }
    }
}


/**
 * @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");
        }
    }
}

contract ContractGuard {
    mapping(uint256 => mapping(address => bool)) private _status;

    function checkSameOriginReentranted() internal view returns (bool) {
        return _status[block.number][tx.origin];
    }

    function checkSameSenderReentranted() internal view returns (bool) {
        return _status[block.number][msg.sender];
    }

    modifier onlyOneBlock() {
        require(!checkSameOriginReentranted(), "ContractGuard: one block, one function");
        require(!checkSameSenderReentranted(), "ContractGuard: one block, one function");

        _;

        _status[block.number][tx.origin] = true;
        _status[block.number][msg.sender] = true;
    }
}

interface IBasisAsset {
    function mint(address recipient, uint256 amount) external returns (bool);

    function burn(uint256 amount) external;

    function burnFrom(address from, uint256 amount) external;

    function isOperator() external returns (bool);

    function operator() external view returns (address);

    function transferOperator(address newOperator_) external;
}

interface ITreasury {
    function epoch() external view returns (uint256);

    function nextEpochPoint() external view returns (uint256);

    function getTombPrice() external view returns (uint256);

    function buyBonds(uint256 amount, uint256 targetPrice) external;

    function redeemBonds(uint256 amount, uint256 targetPrice) external;

    function allocateSeigniorage() external;

    function setBootstrap(uint256 _bootstrapEpochs, uint256 _bootstrapSupplyExpansionPercent) external;
}

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

    IERC20 public share;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

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

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

    function stake(uint256 amount) public virtual {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        share.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public virtual {
        uint256 boardroomShare = _balances[msg.sender];
        require(
            boardroomShare >= amount,
            "Boardroom: withdraw request greater than staked amount"
        );
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = boardroomShare.sub(amount);
        share.safeTransfer(msg.sender, amount);
    }
}

contract Boardroom is ShareWrapper, ContractGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    /* ========== DATA STRUCTURES ========== */

    struct Boardroomseat {
        uint256 lastSnapshotIndex;
        uint256 rewardEarned;
        uint256 epochTimerStart;
    }

    struct BoardroomSnapshot {
        uint256 time;
        uint256 rewardReceived;
        uint256 rewardPerShare;
    }

    /* ========== STATE VARIABLES ========== */

    // governance
    address public operator;

    // flags
    bool public initialized = false;

    IERC20 public sapphire;
    ITreasury public treasury;

    mapping(address => Boardroomseat) public boardrooms;
    BoardroomSnapshot[] public masonryHistory;

    uint256 public withdrawLockupEpochs;
    uint256 public rewardLockupEpochs;

    /* ========== EVENTS ========== */

    event Initialized(address indexed executor, uint256 at);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardAdded(address indexed user, uint256 reward);

    /* ========== Modifiers =============== */

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

    modifier masonExists() {
        require(
            balanceOf(msg.sender) > 0,
            "Boardroom: The boardroom does not exist"
        );
        _;
    }

    modifier updateReward(address boardroom) {
        if (boardroom != address(0)) {
            Boardroomseat memory seat = boardrooms[boardroom];
            seat.rewardEarned = earned(boardroom);
            seat.lastSnapshotIndex = latestSnapshotIndex();
            boardrooms[boardroom] = seat;
        }
        _;
    }

    modifier notInitialized() {
        require(!initialized, "Boardroom: already initialized");
        _;
    }

    /* ========== GOVERNANCE ========== */

    function initialize(
        IERC20 _tomb,
        IERC20 _share,
        ITreasury _treasury
    ) public notInitialized {
        sapphire = _tomb;
        share = _share;
        treasury = _treasury;

        BoardroomSnapshot memory genesisSnapshot = BoardroomSnapshot({
            time: block.number,
            rewardReceived: 0,
            rewardPerShare: 0
        });
        masonryHistory.push(genesisSnapshot);

        withdrawLockupEpochs = 6; // Lock for 6 epochs (36h) before release withdraw
        rewardLockupEpochs = 3; // Lock for 3 epochs (18h) before release claimReward

        initialized = true;
        operator = msg.sender;
        emit Initialized(msg.sender, block.number);
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function setLockUp(
        uint256 _withdrawLockupEpochs,
        uint256 _rewardLockupEpochs
    ) external onlyOperator {
        require(
            _withdrawLockupEpochs >= _rewardLockupEpochs &&
                _withdrawLockupEpochs <= 56,
            "_withdrawLockupEpochs: out of range"
        ); // <= 2 week
        withdrawLockupEpochs = _withdrawLockupEpochs;
        rewardLockupEpochs = _rewardLockupEpochs;
    }

    /* ========== VIEW FUNCTIONS ========== */

    // =========== Snapshot getters

    function latestSnapshotIndex() public view returns (uint256) {
        return masonryHistory.length.sub(1);
    }

    function getLatestSnapshot()
        internal
        view
        returns (BoardroomSnapshot memory)
    {
        return masonryHistory[latestSnapshotIndex()];
    }

    function getLastSnapshotIndexOf(
        address boardroom
    ) public view returns (uint256) {
        return boardrooms[boardroom].lastSnapshotIndex;
    }

    function getLastSnapshotOf(
        address boardroom
    ) internal view returns (BoardroomSnapshot memory) {
        return masonryHistory[getLastSnapshotIndexOf(boardroom)];
    }

    function canWithdraw(address boardroom) external view returns (bool) {
        return
            boardrooms[boardroom].epochTimerStart.add(withdrawLockupEpochs) <=
            treasury.epoch();
    }

    function canClaimReward(address boardroom) external view returns (bool) {
        return
            boardrooms[boardroom].epochTimerStart.add(rewardLockupEpochs) <=
            treasury.epoch();
    }

    function epoch() external view returns (uint256) {
        return treasury.epoch();
    }

    function nextEpochPoint() external view returns (uint256) {
        return treasury.nextEpochPoint();
    }

    function getTombPrice() external view returns (uint256) {
        return treasury.getTombPrice();
    }

    // =========== Boardroom getters

    function rewardPerShare() public view returns (uint256) {
        return getLatestSnapshot().rewardPerShare;
    }

    function earned(address boardroom) public view returns (uint256) {
        uint256 latestRPS = getLatestSnapshot().rewardPerShare;
        uint256 storedRPS = getLastSnapshotOf(boardroom).rewardPerShare;

        return
            balanceOf(boardroom).mul(latestRPS.sub(storedRPS)).div(1e18).add(
                boardrooms[boardroom].rewardEarned
            );
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(
        uint256 amount
    ) public override onlyOneBlock updateReward(msg.sender) {
        require(amount > 0, "Boardroom: Cannot stake 0");
        super.stake(amount);
        boardrooms[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
        emit Staked(msg.sender, amount);
    }

    function withdraw(
        uint256 amount
    ) public override onlyOneBlock masonExists updateReward(msg.sender) {
        require(amount > 0, "Boardroom: Cannot withdraw 0");
        require(
            boardrooms[msg.sender].epochTimerStart.add(withdrawLockupEpochs) <=
                treasury.epoch(),
            "Boardroom: still in withdraw lockup"
        );
        claimReward();
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
    }

    function claimReward() public updateReward(msg.sender) {
        uint256 reward = boardrooms[msg.sender].rewardEarned;
        if (reward > 0) {
            require(
                boardrooms[msg.sender].epochTimerStart.add(
                    rewardLockupEpochs
                ) <= treasury.epoch(),
                "Boardroom: still in reward lockup"
            );
            boardrooms[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
            boardrooms[msg.sender].rewardEarned = 0;
            sapphire.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function allocateSeigniorage(
        uint256 amount
    ) external onlyOneBlock onlyOperator {
        require(amount > 0, "Boardroom: Cannot allocate 0");
        require(
            totalSupply() > 0,
            "Boardroom: Cannot allocate when totalSupply is 0"
        );

        // Create & add new snapshot
        uint256 prevRPS = getLatestSnapshot().rewardPerShare;
        uint256 nextRPS = prevRPS.add(amount.mul(1e18).div(totalSupply()));

        BoardroomSnapshot memory newSnapshot = BoardroomSnapshot({
            time: block.number,
            rewardReceived: amount,
            rewardPerShare: nextRPS
        });
        masonryHistory.push(newSnapshot);

        sapphire.safeTransferFrom(msg.sender, address(this), amount);
        emit RewardAdded(msg.sender, amount);
    }

    function governanceRecoverUnsupported(
        IERC20 _token,
        uint256 _amount,
        address _to
    ) external onlyOperator {
        // do not allow to drain core tokens
        require(
            address(_token) != address(sapphire) &&
                address(_token) != address(share),
            "!valid"
        );
        _token.safeTransfer(_to, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Initialized","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"boardrooms","outputs":[{"internalType":"uint256","name":"lastSnapshotIndex","type":"uint256"},{"internalType":"uint256","name":"rewardEarned","type":"uint256"},{"internalType":"uint256","name":"epochTimerStart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"boardroom","type":"address"}],"name":"canClaimReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"boardroom","type":"address"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"boardroom","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"boardroom","type":"address"}],"name":"getLastSnapshotIndexOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTombPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_tomb","type":"address"},{"internalType":"contract IERC20","name":"_share","type":"address"},{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestSnapshotIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"masonryHistory","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"rewardReceived","type":"uint256"},{"internalType":"uint256","name":"rewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextEpochPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardLockupEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sapphire","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLockupEpochs","type":"uint256"},{"internalType":"uint256","name":"_rewardLockupEpochs","type":"uint256"}],"name":"setLockUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"share","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ITreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLockupEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526004805460ff60a01b1916905534801561001d57600080fd5b506120258061002d6000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c8063570ca7351161010457806397ffe1d7116100a2578063b88a802f11610071578063b88a802f1461046c578063c0c53b8b14610474578063c5967c26146104ac578063e9fad8ee146104b4576101ce565b806397ffe1d714610404578063a694fc3a14610421578063a8d5fd651461043e578063b3ab15fb14610446576101ce565b806370a08231116100de57806370a0823114610393578063714b4658146103b95780638cd9a27f146103df578063900cf0cf146103fc576101ce565b8063570ca7351461035f5780635ded5c951461038357806361d027b31461038b576101ce565b806319262d30116101715780632ffaaa091161014b5780632ffaaa09146102f65780633f9e3f0414610319578063446a2ec81461032157806354575af414610329576101ce565b806319262d30146102a95780631e85cd65146102cf5780632e1a7d4d146102d7576101ce565b8063046335d0116101ad578063046335d01461025757806309bb4f9214610291578063158ef93e1461029957806318160ddd146102a1576101ce565b80628cc262146101d35780630169819a1461020b578063022ba18d1461024f575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b03166104bc565b60408051918252519081900360200190f35b6102316004803603602081101561022157600080fd5b50356001600160a01b031661053d565b60408051938452602084019290925282820152519081900360600190f35b6101f961055e565b61027d6004803603602081101561026d57600080fd5b50356001600160a01b0316610564565b604080519115158252519081900360200190f35b6101f9610605565b61027d61067b565b6101f961068b565b61027d600480360360208110156102bf57600080fd5b50356001600160a01b0316610691565b6101f961072a565b6102f4600480360360208110156102ed57600080fd5b5035610730565b005b6102f46004803603604081101561030c57600080fd5b5080359060200135610a4a565b6101f9610aea565b6101f9610b00565b6102f46004803603606081101561033f57600080fd5b506001600160a01b03813581169160208101359160409091013516610b13565b610367610bdb565b604080516001600160a01b039092168252519081900360200190f35b610367610bea565b610367610bf9565b6101f9600480360360208110156103a957600080fd5b50356001600160a01b0316610c08565b6101f9600480360360208110156103cf57600080fd5b50356001600160a01b0316610c23565b610231600480360360208110156103f557600080fd5b5035610c3e565b6101f9610c6e565b6102f46004803603602081101561041a57600080fd5b5035610cb3565b6102f46004803603602081101561043757600080fd5b5035610f97565b61036761121c565b6102f46004803603602081101561045c57600080fd5b50356001600160a01b031661122b565b6102f4611296565b6102f46004803603606081101561048a57600080fd5b506001600160a01b03813581169160208101358216916040909101351661150d565b6101f96116bf565b6102f4611704565b6000806104c7611717565b60400151905060006104d88461176f565b6040908101516001600160a01b0386166000908152600760205291909120600101549091506105359061052f670de0b6b3a764000061052961051a87876117ca565b6105238a610c08565b90611815565b9061186e565b906118b0565b949350505050565b60076020526000908152604090208054600182015460029092015490919083565b600a5481565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b1580156105a957600080fd5b505afa1580156105bd573d6000803e3d6000fd5b505050506040513d60208110156105d357600080fd5b5051600a546001600160a01b0384166000908152600760205260409020600201546105fd916118b0565b111592915050565b600654604080516304dda7c960e11b815290516000926001600160a01b0316916309bb4f92916004808301926020929190829003018186803b15801561064a57600080fd5b505afa15801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b5051905090565b600454600160a01b900460ff1681565b60015490565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b1580156106d657600080fd5b505afa1580156106ea573d6000803e3d6000fd5b505050506040513d602081101561070057600080fd5b50516009546001600160a01b0384166000908152600760205260409020600201546105fd916118b0565b60095481565b61073861190a565b156107745760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b61077c61192b565b156107b85760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b60006107c333610c08565b116107ff5760405162461bcd60e51b8152600401808060200182810382526027815260200180611e966027913960400191505060405180910390fd5b3380156108995761080e611e44565b506001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610857826104bc565b6020820152610864610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b600082116108ee576040805162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f74207769746864726177203000000000604482015290519081900360640190fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561093c57600080fd5b505afa158015610950573d6000803e3d6000fd5b505050506040513d602081101561096657600080fd5b505160095433600090815260076020526040902060020154610987916118b0565b11156109c45760405162461bcd60e51b8152600401808060200182810382526023815260200180611f476023913960400191505060405180910390fd5b6109cc611296565b6109d58261194c565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6004546001600160a01b03163314610a935760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b808210158015610aa4575060388211155b610adf5760405162461bcd60e51b8152600401808060200182810382526023815260200180611eff6023913960400191505060405180910390fd5b600991909155600a55565b600854600090610afb9060016117ca565b905090565b6000610b0a611717565b60400151905090565b6004546001600160a01b03163314610b5c5760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b6005546001600160a01b03848116911614801590610b8857506000546001600160a01b03848116911614155b610bc2576040805162461bcd60e51b8152602060048201526006602482015265085d985b1a5960d21b604482015290519081900360640190fd5b610bd66001600160a01b03841682846119dc565b505050565b6004546001600160a01b031681565b6005546001600160a01b031681565b6006546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526007602052604090205490565b60088181548110610c4b57fe5b600091825260209091206003909102018054600182015460029092015490925083565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561064a57600080fd5b610cbb61190a565b15610cf75760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b610cff61192b565b15610d3b5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b6004546001600160a01b03163314610d845760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b60008111610dd9576040805162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465203000000000604482015290519081900360640190fd5b6000610de361068b565b11610e1f5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e666030913960400191505060405180910390fd5b6000610e29611717565b6040015190506000610e58610e51610e3f61068b565b61052986670de0b6b3a7640000611815565b83906118b0565b9050610e62611e44565b5060408051606081018252438152602081018581529181018381526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039092029182015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee590920191909155600554610f20906001600160a01b0316333087611a2e565b60408051858152905133917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29919081900360200190a250504360009081526003602090815260408083203284529091528082208054600160ff19918216811790925533845291909220805490911690911790555050565b610f9f61190a565b15610fdb5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b610fe361192b565b1561101f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b3380156110b95761102e611e44565b506001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152611077826104bc565b6020820152611084610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b6000821161110e576040805162461bcd60e51b815260206004820152601960248201527f426f617264726f6f6d3a2043616e6e6f74207374616b65203000000000000000604482015290519081900360640190fd5b61111782611a8e565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561116557600080fd5b505afa158015611179573d6000803e3d6000fd5b505050506040513d602081101561118f57600080fd5b505133600081815260076020908152604091829020600201939093558051858152905191927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d92918290030190a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6000546001600160a01b031681565b6004546001600160a01b031633146112745760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b338015611330576112a5611e44565b506001600160a01b03811660009081526007602090815260409182902082516060810184528154815260018201549281019290925260020154918101919091526112ee826104bc565b60208201526112fb610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b33600090815260076020526040902060010154801561150957600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561139757600080fd5b505afa1580156113ab573d6000803e3d6000fd5b505050506040513d60208110156113c157600080fd5b5051600a54336000908152600760205260409020600201546113e2916118b0565b111561141f5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ede6021913960400191505060405180910390fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561146d57600080fd5b505afa158015611481573d6000803e3d6000fd5b505050506040513d602081101561149757600080fd5b505133600081815260076020526040812060028101939093556001909201919091556005546114d2916001600160a01b0390911690836119dc565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b600454600160a01b900460ff161561156c576040805162461bcd60e51b815260206004820152601e60248201527f426f617264726f6f6d3a20616c726561647920696e697469616c697a65640000604482015290519081900360640190fd5b600580546001600160a01b038086166001600160a01b0319928316179092556000805485841690831617905560068054928416929091169190911790556115b1611e44565b50604080516060810182524380825260006020808401828152848601838152600880546001810182559452855160039485027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee381019190915591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101556006600955600a91909155600480546001600160a01b031960ff60a01b19909116600160a01b171633908117909155845192835293519293927f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce799281900390910190a250505050565b600654604080516362cb3e1360e11b815290516000926001600160a01b03169163c5967c26916004808301926020929190829003018186803b15801561064a57600080fd5b61171561171033610c08565b610730565b565b61171f611e44565b6008611729610aea565b8154811061173357fe5b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b611777611e44565b600861178283610c23565b8154811061178c57fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b600061180c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ae7565b90505b92915050565b6000826118245750600061180f565b8282028284828161183157fe5b041461180c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ebd6021913960400191505060405180910390fd5b600061180c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b7e565b60008282018381101561180c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b43600090815260036020908152604080832032845290915290205460ff1690565b43600090815260036020908152604080832033845290915290205460ff1690565b336000908152600260205260409020548181101561199b5760405162461bcd60e51b8152600401808060200182810382526036815260200180611fba6036913960400191505060405180910390fd5b6001546119a890836117ca565b6001556119b581836117ca565b336000818152600260205260408120929092559054611509916001600160a01b0390911690845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd6908490611be3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611a88908590611be3565b50505050565b600154611a9b90826118b0565b60015533600090815260026020526040902054611ab890826118b0565b336000818152600260205260408120929092559054611ae4916001600160a01b03909116903084611a2e565b50565b60008184841115611b765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b3b578181015183820152602001611b23565b50505050905090810190601f168015611b685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611bcd5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b3b578181015183820152602001611b23565b506000838581611bd957fe5b0495945050505050565b6060611c38826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c949092919063ffffffff16565b805190915015610bd657808060200190516020811015611c5757600080fd5b5051610bd65760405162461bcd60e51b815260040180806020018281038252602a815260200180611f6a602a913960400191505060405180910390fd5b606061053584846000856060611ca985611e0b565b611cfa576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d395780518252601f199092019160209182019101611d1a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d9b576040519150601f19603f3d011682016040523d82523d6000602084013e611da0565b606091505b50915091508115611db45791506105359050565b805115611dc45780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611b3b578181015183820152602001611b23565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610535575050151592915050565b6040518060600160405280600081526020016000815260200160008152509056fe426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465207768656e20746f74616c537570706c792069732030426f617264726f6f6d3a2054686520626f617264726f6f6d20646f6573206e6f74206578697374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77426f617264726f6f6d3a207374696c6c20696e20726577617264206c6f636b75705f77697468647261774c6f636b757045706f6368733a206f7574206f662072616e6765426f617264726f6f6d3a2063616c6c6572206973206e6f7420746865206f70657261746f72426f617264726f6f6d3a207374696c6c20696e207769746864726177206c6f636b75705361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6e426f617264726f6f6d3a20776974686472617720726571756573742067726561746572207468616e207374616b656420616d6f756e74a2646970667358221220fd9deb156e11000ae3322bb03692230e05db3f8b173810eb0d68976013bbe4a264736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c8063570ca7351161010457806397ffe1d7116100a2578063b88a802f11610071578063b88a802f1461046c578063c0c53b8b14610474578063c5967c26146104ac578063e9fad8ee146104b4576101ce565b806397ffe1d714610404578063a694fc3a14610421578063a8d5fd651461043e578063b3ab15fb14610446576101ce565b806370a08231116100de57806370a0823114610393578063714b4658146103b95780638cd9a27f146103df578063900cf0cf146103fc576101ce565b8063570ca7351461035f5780635ded5c951461038357806361d027b31461038b576101ce565b806319262d30116101715780632ffaaa091161014b5780632ffaaa09146102f65780633f9e3f0414610319578063446a2ec81461032157806354575af414610329576101ce565b806319262d30146102a95780631e85cd65146102cf5780632e1a7d4d146102d7576101ce565b8063046335d0116101ad578063046335d01461025757806309bb4f9214610291578063158ef93e1461029957806318160ddd146102a1576101ce565b80628cc262146101d35780630169819a1461020b578063022ba18d1461024f575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b03166104bc565b60408051918252519081900360200190f35b6102316004803603602081101561022157600080fd5b50356001600160a01b031661053d565b60408051938452602084019290925282820152519081900360600190f35b6101f961055e565b61027d6004803603602081101561026d57600080fd5b50356001600160a01b0316610564565b604080519115158252519081900360200190f35b6101f9610605565b61027d61067b565b6101f961068b565b61027d600480360360208110156102bf57600080fd5b50356001600160a01b0316610691565b6101f961072a565b6102f4600480360360208110156102ed57600080fd5b5035610730565b005b6102f46004803603604081101561030c57600080fd5b5080359060200135610a4a565b6101f9610aea565b6101f9610b00565b6102f46004803603606081101561033f57600080fd5b506001600160a01b03813581169160208101359160409091013516610b13565b610367610bdb565b604080516001600160a01b039092168252519081900360200190f35b610367610bea565b610367610bf9565b6101f9600480360360208110156103a957600080fd5b50356001600160a01b0316610c08565b6101f9600480360360208110156103cf57600080fd5b50356001600160a01b0316610c23565b610231600480360360208110156103f557600080fd5b5035610c3e565b6101f9610c6e565b6102f46004803603602081101561041a57600080fd5b5035610cb3565b6102f46004803603602081101561043757600080fd5b5035610f97565b61036761121c565b6102f46004803603602081101561045c57600080fd5b50356001600160a01b031661122b565b6102f4611296565b6102f46004803603606081101561048a57600080fd5b506001600160a01b03813581169160208101358216916040909101351661150d565b6101f96116bf565b6102f4611704565b6000806104c7611717565b60400151905060006104d88461176f565b6040908101516001600160a01b0386166000908152600760205291909120600101549091506105359061052f670de0b6b3a764000061052961051a87876117ca565b6105238a610c08565b90611815565b9061186e565b906118b0565b949350505050565b60076020526000908152604090208054600182015460029092015490919083565b600a5481565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b1580156105a957600080fd5b505afa1580156105bd573d6000803e3d6000fd5b505050506040513d60208110156105d357600080fd5b5051600a546001600160a01b0384166000908152600760205260409020600201546105fd916118b0565b111592915050565b600654604080516304dda7c960e11b815290516000926001600160a01b0316916309bb4f92916004808301926020929190829003018186803b15801561064a57600080fd5b505afa15801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b5051905090565b600454600160a01b900460ff1681565b60015490565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b1580156106d657600080fd5b505afa1580156106ea573d6000803e3d6000fd5b505050506040513d602081101561070057600080fd5b50516009546001600160a01b0384166000908152600760205260409020600201546105fd916118b0565b60095481565b61073861190a565b156107745760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b61077c61192b565b156107b85760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b60006107c333610c08565b116107ff5760405162461bcd60e51b8152600401808060200182810382526027815260200180611e966027913960400191505060405180910390fd5b3380156108995761080e611e44565b506001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610857826104bc565b6020820152610864610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b600082116108ee576040805162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f74207769746864726177203000000000604482015290519081900360640190fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561093c57600080fd5b505afa158015610950573d6000803e3d6000fd5b505050506040513d602081101561096657600080fd5b505160095433600090815260076020526040902060020154610987916118b0565b11156109c45760405162461bcd60e51b8152600401808060200182810382526023815260200180611f476023913960400191505060405180910390fd5b6109cc611296565b6109d58261194c565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6004546001600160a01b03163314610a935760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b808210158015610aa4575060388211155b610adf5760405162461bcd60e51b8152600401808060200182810382526023815260200180611eff6023913960400191505060405180910390fd5b600991909155600a55565b600854600090610afb9060016117ca565b905090565b6000610b0a611717565b60400151905090565b6004546001600160a01b03163314610b5c5760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b6005546001600160a01b03848116911614801590610b8857506000546001600160a01b03848116911614155b610bc2576040805162461bcd60e51b8152602060048201526006602482015265085d985b1a5960d21b604482015290519081900360640190fd5b610bd66001600160a01b03841682846119dc565b505050565b6004546001600160a01b031681565b6005546001600160a01b031681565b6006546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526007602052604090205490565b60088181548110610c4b57fe5b600091825260209091206003909102018054600182015460029092015490925083565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561064a57600080fd5b610cbb61190a565b15610cf75760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b610cff61192b565b15610d3b5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b6004546001600160a01b03163314610d845760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b60008111610dd9576040805162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465203000000000604482015290519081900360640190fd5b6000610de361068b565b11610e1f5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e666030913960400191505060405180910390fd5b6000610e29611717565b6040015190506000610e58610e51610e3f61068b565b61052986670de0b6b3a7640000611815565b83906118b0565b9050610e62611e44565b5060408051606081018252438152602081018581529181018381526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039092029182015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee590920191909155600554610f20906001600160a01b0316333087611a2e565b60408051858152905133917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29919081900360200190a250504360009081526003602090815260408083203284529091528082208054600160ff19918216811790925533845291909220805490911690911790555050565b610f9f61190a565b15610fdb5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b610fe361192b565b1561101f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f946026913960400191505060405180910390fd5b3380156110b95761102e611e44565b506001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152611077826104bc565b6020820152611084610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b6000821161110e576040805162461bcd60e51b815260206004820152601960248201527f426f617264726f6f6d3a2043616e6e6f74207374616b65203000000000000000604482015290519081900360640190fd5b61111782611a8e565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561116557600080fd5b505afa158015611179573d6000803e3d6000fd5b505050506040513d602081101561118f57600080fd5b505133600081815260076020908152604091829020600201939093558051858152905191927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d92918290030190a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6000546001600160a01b031681565b6004546001600160a01b031633146112745760405162461bcd60e51b8152600401808060200182810382526025815260200180611f226025913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b338015611330576112a5611e44565b506001600160a01b03811660009081526007602090815260409182902082516060810184528154815260018201549281019290925260020154918101919091526112ee826104bc565b60208201526112fb610aea565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b33600090815260076020526040902060010154801561150957600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561139757600080fd5b505afa1580156113ab573d6000803e3d6000fd5b505050506040513d60208110156113c157600080fd5b5051600a54336000908152600760205260409020600201546113e2916118b0565b111561141f5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ede6021913960400191505060405180910390fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561146d57600080fd5b505afa158015611481573d6000803e3d6000fd5b505050506040513d602081101561149757600080fd5b505133600081815260076020526040812060028101939093556001909201919091556005546114d2916001600160a01b0390911690836119dc565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b600454600160a01b900460ff161561156c576040805162461bcd60e51b815260206004820152601e60248201527f426f617264726f6f6d3a20616c726561647920696e697469616c697a65640000604482015290519081900360640190fd5b600580546001600160a01b038086166001600160a01b0319928316179092556000805485841690831617905560068054928416929091169190911790556115b1611e44565b50604080516060810182524380825260006020808401828152848601838152600880546001810182559452855160039485027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee381019190915591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101556006600955600a91909155600480546001600160a01b031960ff60a01b19909116600160a01b171633908117909155845192835293519293927f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce799281900390910190a250505050565b600654604080516362cb3e1360e11b815290516000926001600160a01b03169163c5967c26916004808301926020929190829003018186803b15801561064a57600080fd5b61171561171033610c08565b610730565b565b61171f611e44565b6008611729610aea565b8154811061173357fe5b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b611777611e44565b600861178283610c23565b8154811061178c57fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b600061180c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ae7565b90505b92915050565b6000826118245750600061180f565b8282028284828161183157fe5b041461180c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ebd6021913960400191505060405180910390fd5b600061180c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b7e565b60008282018381101561180c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b43600090815260036020908152604080832032845290915290205460ff1690565b43600090815260036020908152604080832033845290915290205460ff1690565b336000908152600260205260409020548181101561199b5760405162461bcd60e51b8152600401808060200182810382526036815260200180611fba6036913960400191505060405180910390fd5b6001546119a890836117ca565b6001556119b581836117ca565b336000818152600260205260408120929092559054611509916001600160a01b0390911690845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd6908490611be3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611a88908590611be3565b50505050565b600154611a9b90826118b0565b60015533600090815260026020526040902054611ab890826118b0565b336000818152600260205260408120929092559054611ae4916001600160a01b03909116903084611a2e565b50565b60008184841115611b765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b3b578181015183820152602001611b23565b50505050905090810190601f168015611b685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611bcd5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b3b578181015183820152602001611b23565b506000838581611bd957fe5b0495945050505050565b6060611c38826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c949092919063ffffffff16565b805190915015610bd657808060200190516020811015611c5757600080fd5b5051610bd65760405162461bcd60e51b815260040180806020018281038252602a815260200180611f6a602a913960400191505060405180910390fd5b606061053584846000856060611ca985611e0b565b611cfa576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d395780518252601f199092019160209182019101611d1a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d9b576040519150601f19603f3d011682016040523d82523d6000602084013e611da0565b606091505b50915091508115611db45791506105359050565b805115611dc45780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611b3b578181015183820152602001611b23565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610535575050151592915050565b6040518060600160405280600081526020016000815260200160008152509056fe426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465207768656e20746f74616c537570706c792069732030426f617264726f6f6d3a2054686520626f617264726f6f6d20646f6573206e6f74206578697374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77426f617264726f6f6d3a207374696c6c20696e20726577617264206c6f636b75705f77697468647261774c6f636b757045706f6368733a206f7574206f662072616e6765426f617264726f6f6d3a2063616c6c6572206973206e6f7420746865206f70657261746f72426f617264726f6f6d3a207374696c6c20696e207769746864726177206c6f636b75705361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6e426f617264726f6f6d3a20776974686472617720726571756573742067726561746572207468616e207374616b656420616d6f756e74a2646970667358221220fd9deb156e11000ae3322bb03692230e05db3f8b173810eb0d68976013bbe4a264736f6c634300060c0033

Deployed Bytecode Sourcemap

20691:8343:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25807:377;;;;;;;;;;;;;;;;-1:-1:-1;25807:377:0;-1:-1:-1;;;;;25807:377:0;;:::i;:::-;;;;;;;;;;;;;;;;21386:51;;;;;;;;;;;;;;;;-1:-1:-1;21386:51:0;-1:-1:-1;;;;;21386:51:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;21536:33;;;:::i;25101:205::-;;;;;;;;;;;;;;;;-1:-1:-1;25101:205:0;-1:-1:-1;;;;;25101:205:0;;:::i;:::-;;;;;;;;;;;;;;;;;;25530:105;;;:::i;21283:31::-;;;:::i;19806:91::-;;;:::i;24889:204::-;;;;;;;;;;;;;;;;-1:-1:-1;24889:204:0;-1:-1:-1;;;;;24889:204:0;;:::i;21494:35::-;;;:::i;26577:485::-;;;;;;;;;;;;;;;;-1:-1:-1;26577:485:0;;:::i;:::-;;23683:441;;;;;;;;;;;;;;;;-1:-1:-1;23683:441:0;;;;;;;:::i;24221:115::-;;;:::i;25683:116::-;;;:::i;28637:394::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28637:394:0;;;;;;;;;;;;;;;;;:::i;21237:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;21237:23:0;;;;;;;;;;;;;;21323:22;;;:::i;21352:25::-;;;:::i;19905:110::-;;;;;;;;;;;;;;;;-1:-1:-1;19905:110:0;-1:-1:-1;;;;;19905:110:0;;:::i;24525:162::-;;;;;;;;;;;;;;;;-1:-1:-1;24525:162:0;-1:-1:-1;;;;;24525:162:0;;:::i;21444:41::-;;;;;;;;;;;;;;;;-1:-1:-1;21444:41:0;;:::i;25314:91::-;;;:::i;27804:825::-;;;;;;;;;;;;;;;;-1:-1:-1;27804:825:0;;:::i;26246:323::-;;;;;;;;;;;;;;;;-1:-1:-1;26246:323:0;;:::i;19689:19::-;;;:::i;23574:101::-;;;;;;;;;;;;;;;;-1:-1:-1;23574:101:0;-1:-1:-1;;;;;23574:101:0;;:::i;27153:643::-;;;:::i;22828:738::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22828:738:0;;;;;;;;;;;;;;;;;;;:::i;25413:109::-;;;:::i;27070:75::-;;;:::i;25807:377::-;25863:7;25883:17;25903:19;:17;:19::i;:::-;:34;;;25883:54;;25948:17;25968:28;25986:9;25968:17;:28::i;:::-;:43;;;;;-1:-1:-1;;;;;26127:21:0;;;;;;:10;:21;;;;;;:34;;;25968:43;;-1:-1:-1;26044:132:0;;:60;26099:4;26044:50;26069:24;:9;25968:43;26069:13;:24::i;:::-;26044:20;26054:9;26044;:20::i;:::-;:24;;:50::i;:::-;:54;;:60::i;:::-;:64;;:132::i;:::-;26024:152;25807:377;-1:-1:-1;;;;25807:377:0:o;21386:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;21536:33::-;;;;:::o;25101:205::-;25282:8;;:16;;;-1:-1:-1;;;25282:16:0;;;;25167:4;;-1:-1:-1;;;;;25282:8:0;;:14;;:16;;;;;;;;;;;;;;:8;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25282:16:0;25246:18;;-1:-1:-1;;;;;25204:21:0;;;;;;:10;25282:16;25204:21;;;;:37;;;:61;;:41;:61::i;:::-;:94;;;25101:205;-1:-1:-1;;25101:205:0:o;25530:105::-;25604:8;;:23;;;-1:-1:-1;;;25604:23:0;;;;25577:7;;-1:-1:-1;;;;;25604:8:0;;:21;;:23;;;;;;;;;;;;;;:8;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25604:23:0;;-1:-1:-1;25530:105:0;:::o;21283:31::-;;;-1:-1:-1;;;21283:31:0;;;;;:::o;19806:91::-;19877:12;;19806:91;:::o;24889:204::-;25069:8;;:16;;;-1:-1:-1;;;25069:16:0;;;;24952:4;;-1:-1:-1;;;;;25069:8:0;;:14;;:16;;;;;;;;;;;;;;:8;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25069:16:0;25031:20;;-1:-1:-1;;;;;24989:21:0;;;;;;:10;25069:16;24989:21;;;;:37;;;:63;;:41;:63::i;21494:35::-;;;;:::o;26577:485::-;18383:28;:26;:28::i;:::-;18382:29;18374:80;;;;-1:-1:-1;;;18374:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18474:28;:26;:28::i;:::-;18473:29;18465:80;;;;-1:-1:-1;;;18465:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22226:1:::1;22202:21;22212:10;22202:9;:21::i;:::-;:25;22180:114;;;;-1:-1:-1::0;;;22180:114:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26681:10:::2;22378:23:::0;;22374:261:::2;;22418:25;;:::i;:::-;-1:-1:-1::0;;;;;;22446:21:0;::::2;;::::0;;;:10:::2;:21;::::0;;;;;;;;22418:49;;::::2;::::0;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;;::::2;::::0;;;;::::2;;::::0;;;;;;;;22502:17:::2;22457:9:::0;22502:6:::2;:17::i;:::-;22482;::::0;::::2;:37:::0;22559:21:::2;:19;:21::i;:::-;22534:46:::0;;-1:-1:-1;;;;;22595:21:0;::::2;22534:22;22595:21:::0;;;:10:::2;:21;::::0;;;;;;;;:28;;;;;;::::2;::::0;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;::::2;::::0;22374:261:::2;26721:1:::3;26712:6;:10;26704:51;;;::::0;;-1:-1:-1;;;26704:51:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;26873:8;;;;;;;;;-1:-1:-1::0;;;;;26873:8:0::3;-1:-1:-1::0;;;;;26873:14:0::3;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;26873:16:0;26831:20:::3;::::0;26799:10:::3;26788:22;::::0;;;:10:::3;26873:16;26788:22:::0;;;;:38:::3;;::::0;:64:::3;::::0;:42:::3;:64::i;:::-;:101;;26766:186;;;;-1:-1:-1::0;;;26766:186:0::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26963:13;:11;:13::i;:::-;26987:22;27002:6;26987:14;:22::i;:::-;27025:29;::::0;;;;;;;27035:10:::3;::::0;27025:29:::3;::::0;;;;;::::3;::::0;;::::3;-1:-1:-1::0;;18580:12:0;18572:21;;;;:7;:21;;;;;;;;18594:9;18572:32;;;;;;;;:39;;18607:4;-1:-1:-1;;18572:39:0;;;;;;;;18644:10;18622:33;;;;;;:40;;;;;;;;;;26577:485::o;23683:441::-;22031:8;;-1:-1:-1;;;;;22031:8:0;22043:10;22031:22;22009:109;;;;-1:-1:-1;;;22009:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23867:19:::1;23842:21;:44;;:92;;;;;23932:2;23907:21;:27;;23842:92;23820:177;;;;-1:-1:-1::0;;;23820:177:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24021:20;:44:::0;;;;24076:18:::1;:40:::0;23683:441::o;24221:115::-;24300:14;:21;24273:7;;24300:28;;24326:1;24300:25;:28::i;:::-;24293:35;;24221:115;:::o;25683:116::-;25730:7;25757:19;:17;:19::i;:::-;:34;;;25750:41;;25683:116;:::o;28637:394::-;22031:8;;-1:-1:-1;;;;;22031:8:0;22043:10;22031:22;22009:109;;;;-1:-1:-1;;;22009:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28882:8:::1;::::0;-1:-1:-1;;;;;28855:36:0;;::::1;28882:8:::0;::::1;28855:36;::::0;::::1;::::0;:90:::1;;-1:-1:-1::0;28939:5:0::1;::::0;-1:-1:-1;;;;;28912:33:0;;::::1;28939:5:::0;::::1;28912:33;;28855:90;28833:146;;;::::0;;-1:-1:-1;;;28833:146:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28833:146:0;;;;;;;;;;;;;::::1;;28990:33;-1:-1:-1::0;;;;;28990:19:0;::::1;29010:3:::0;29015:7;28990:19:::1;:33::i;:::-;28637:394:::0;;;:::o;21237:23::-;;;-1:-1:-1;;;;;21237:23:0;;:::o;21323:22::-;;;-1:-1:-1;;;;;21323:22:0;;:::o;21352:25::-;;;-1:-1:-1;;;;;21352:25:0;;:::o;19905:110::-;-1:-1:-1;;;;;19989:18:0;19962:7;19989:18;;;:9;:18;;;;;;;19905:110::o;24525:162::-;-1:-1:-1;;;;;24640:21:0;24613:7;24640:21;;;:10;:21;;;;;:39;;24525:162::o;21444:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21444:41:0;:::o;25314:91::-;25381:8;;:16;;;-1:-1:-1;;;25381:16:0;;;;25354:7;;-1:-1:-1;;;;;25381:8:0;;:14;;:16;;;;;;;;;;;;;;:8;:16;;;;;;;;;;27804:825;18383:28;:26;:28::i;:::-;18382:29;18374:80;;;;-1:-1:-1;;;18374:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18474:28;:26;:28::i;:::-;18473:29;18465:80;;;;-1:-1:-1;;;18465:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22031:8:::1;::::0;-1:-1:-1;;;;;22031:8:0::1;22043:10;22031:22;22009:109;;;;-1:-1:-1::0;;;22009:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27928:1:::2;27919:6;:10;27911:51;;;::::0;;-1:-1:-1;;;27911:51:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;28011:1;27995:13;:11;:13::i;:::-;:17;27973:115;;;;-1:-1:-1::0;;;27973:115:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28139:15;28157:19;:17;:19::i;:::-;:34;;;28139:52;;28202:15;28220:48;28232:35;28253:13;:11;:13::i;:::-;28232:16;:6:::0;28243:4:::2;28232:10;:16::i;:35::-;28220:7:::0;;:11:::2;:48::i;:::-;28202:66;;28281:36;;:::i;:::-;-1:-1:-1::0;28320:138:0::2;::::0;;::::2;::::0;::::2;::::0;;28359:12:::2;28320:138:::0;;::::2;::::0;::::2;::::0;;;;;;;;;28469:14:::2;:32:::0;;::::2;::::0;::::2;::::0;;-1:-1:-1;28469:32:0;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;;28514:8:::2;::::0;:60:::2;::::0;-1:-1:-1;;;;;28514:8:0::2;28540:10;28560:4;28320:138:::0;28514:25:::2;:60::i;:::-;28590:31;::::0;;;;;;;28602:10:::2;::::0;28590:31:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;18580:12:0;18572:21;;;;:7;:21;;;;;;;;18594:9;18572:32;;;;;;;;:39;;18607:4;-1:-1:-1;;18572:39:0;;;;;;;;18644:10;18622:33;;;;;;:40;;;;;;;;;;-1:-1:-1;;27804:825:0:o;26246:323::-;18383:28;:26;:28::i;:::-;18382:29;18374:80;;;;-1:-1:-1;;;18374:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18474:28;:26;:28::i;:::-;18473:29;18465:80;;;;-1:-1:-1;;;18465:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26335:10:::1;22378:23:::0;;22374:261:::1;;22418:25;;:::i;:::-;-1:-1:-1::0;;;;;;22446:21:0;::::1;;::::0;;;:10:::1;:21;::::0;;;;;;;;22418:49;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;::::1;;::::0;;;;;;;;22502:17:::1;22457:9:::0;22502:6:::1;:17::i;:::-;22482;::::0;::::1;:37:::0;22559:21:::1;:19;:21::i;:::-;22534:46:::0;;-1:-1:-1;;;;;22595:21:0;::::1;22534:22;22595:21:::0;;;:10:::1;:21;::::0;;;;;;;;:28;;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;22374:261:::1;26375:1:::2;26366:6;:10;26358:48;;;::::0;;-1:-1:-1;;;26358:48:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;26417:19;26429:6;26417:11;:19::i;:::-;26488:8;;;;;;;;;-1:-1:-1::0;;;;;26488:8:0::2;-1:-1:-1::0;;;;;26488:14:0::2;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;26488:16:0;26458:10:::2;26447:22;::::0;;;:10:::2;26488:16;26447:22:::0;;;;;;;;:38:::2;;:57:::0;;;;26535:26;;;;;;;26458:10;;26535:26:::2;::::0;;;;;;;::::2;-1:-1:-1::0;;18580:12:0;18572:21;;;;:7;:21;;;;;;;;18594:9;18572:32;;;;;;;;:39;;18607:4;-1:-1:-1;;18572:39:0;;;;;;;;18644:10;18622:33;;;;;;:40;;;;;;;;;;26246:323::o;19689:19::-;;;-1:-1:-1;;;;;19689:19:0;;:::o;23574:101::-;22031:8;;-1:-1:-1;;;;;22031:8:0;22043:10;22031:22;22009:109;;;;-1:-1:-1;;;22009:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23647:8:::1;:20:::0;;-1:-1:-1;;;;;;23647:20:0::1;-1:-1:-1::0;;;;;23647:20:0;;;::::1;::::0;;;::::1;::::0;;23574:101::o;27153:643::-;27196:10;22378:23;;22374:261;;22418:25;;:::i;:::-;-1:-1:-1;;;;;;22446:21:0;;;;;;:10;:21;;;;;;;;;22418:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22502:17;22457:9;22502:6;:17::i;:::-;22482;;;:37;22559:21;:19;:21::i;:::-;22534:46;;-1:-1:-1;;;;;22595:21:0;;22534:22;22595:21;;;:10;:21;;;;;;;;;:28;;;;;;;;;;;;;;;;;;;;22374:261;27247:10:::1;27219:14;27236:22:::0;;;:10:::1;:22;::::0;;;;:35:::1;;::::0;27286:10;;27282:507:::1;;27445:8;;;;;;;;;-1:-1:-1::0;;;;;27445:8:0::1;-1:-1:-1::0;;;;;27445:14:0::1;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27445:16:0;27404:18:::1;::::0;27350:10:::1;27339:22;::::0;;;:10:::1;27445:16;27339:22:::0;;;;:38:::1;;::::0;:102:::1;::::0;:42:::1;:102::i;:::-;:122;;27313:217;;;;-1:-1:-1::0;;;27313:217:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27586:8;;;;;;;;;-1:-1:-1::0;;;;;27586:8:0::1;-1:-1:-1::0;;;;;27586:14:0::1;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27586:16:0;27556:10:::1;27545:22;::::0;;;:10:::1;27586:16;27545:22:::0;;;;:38:::1;::::0;::::1;:57:::0;;;;27632:35:::1;::::0;;::::1;:39:::0;;;;27686:8:::1;::::0;:41:::1;::::0;-1:-1:-1;;;;;27686:8:0;;::::1;::::0;27720:6;27686:21:::1;:41::i;:::-;27747:30;::::0;;;;;;;27758:10:::1;::::0;27747:30:::1;::::0;;;;;::::1;::::0;;::::1;27282:507;22645:1;27153:643:::0;:::o;22828:738::-;22708:11;;-1:-1:-1;;;22708:11:0;;;;22707:12;22699:55;;;;;-1:-1:-1;;;22699:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22965:8:::1;:16:::0;;-1:-1:-1;;;;;22965:16:0;;::::1;-1:-1:-1::0;;;;;;22965:16:0;;::::1;;::::0;;;:8:::1;22992:14:::0;;;;::::1;::::0;;::::1;;::::0;;23017:8:::1;:20:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;23050:40:::1;;:::i;:::-;-1:-1:-1::0;23093:127:0::1;::::0;;::::1;::::0;::::1;::::0;;23132:12:::1;23093:127:::0;;;-1:-1:-1;23093:127:0::1;::::0;;::::1;::::0;;;;;;;;;23231:14:::1;:36:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;23303:1:::1;23280:20;:24:::0;23366:18:::1;:22:::0;;;;23455:11:::1;:18:::0;;-1:-1:-1;;;;;;;;;;23455:18:0;;::::1;-1:-1:-1::0;;;23455:18:0::1;23484:21;23495:10;23484:21:::0;;::::1;::::0;;;23521:37;;;;;;;23093:127;;23495:10;23521:37:::1;::::0;;;;;;;;::::1;22765:1;22828:738:::0;;;:::o;25413:109::-;25489:8;;:25;;;-1:-1:-1;;;25489:25:0;;;;25462:7;;-1:-1:-1;;;;;25489:8:0;;:23;;:25;;;;;;;;;;;;;;:8;:25;;;;;;;;;;27070:75;27106:31;27115:21;27125:10;27115:9;:21::i;:::-;27106:8;:31::i;:::-;27070:75::o;24344:173::-;24423:24;;:::i;:::-;24472:14;24487:21;:19;:21::i;:::-;24472:37;;;;;;;;;;;;;;;;;;24465:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24344:173;:::o;24695:186::-;24780:24;;:::i;:::-;24824:14;24839:33;24862:9;24839:22;:33::i;:::-;24824:49;;;;;;;;;;;;;;;;;;24817:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24695:186;;;:::o;4176:136::-;4234:7;4261:43;4265:1;4268;4261:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4254:50;;4176:136;;;;;:::o;5066:471::-;5124:7;5369:6;5365:47;;-1:-1:-1;5399:1:0;5392:8;;5365:47;5436:5;;;5440:1;5436;:5;:1;5460:5;;;;;:10;5452:56;;;;-1:-1:-1;;;5452:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6013:132;6071:7;6098:39;6102:1;6105;6098:39;;;;;;;;;;;;;;;;;:3;:39::i;3712:181::-;3770:7;3802:5;;;3826:6;;;;3818:46;;;;;-1:-1:-1;;;3818:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18072:125;18165:12;18133:4;18157:21;;;:7;:21;;;;;;;;18179:9;18157:32;;;;;;;;;;18072:125;:::o;18205:126::-;18298:12;18266:4;18290:21;;;:7;:21;;;;;;;;18312:10;18290:33;;;;;;;;;;18205:126;:::o;20271:413::-;20366:10;20331:22;20356:21;;;:9;:21;;;;;;20410:24;;;;20388:128;;;;-1:-1:-1;;;20388:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20542:12;;:24;;20559:6;20542:16;:24::i;:::-;20527:12;:39;20601:26;:14;20620:6;20601:18;:26::i;:::-;20587:10;20577:21;;;;:9;:21;;;;;:50;;;;20638:5;;:38;;-1:-1:-1;;;;;20638:5:0;;;;20669:6;14900:177;15010:58;;;-1:-1:-1;;;;;15010:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15010:58:0;-1:-1:-1;;;15010:58:0;;;14983:86;;15003:5;;14983:19;:86::i;15085:205::-;15213:68;;;-1:-1:-1;;;;;15213:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15213:68:0;-1:-1:-1;;;15213:68:0;;;15186:96;;15206:5;;15186:19;:96::i;:::-;15085:205;;;;:::o;20023:240::-;20095:12;;:24;;20112:6;20095:16;:24::i;:::-;20080:12;:39;20164:10;20154:21;;;;:9;:21;;;;;;:33;;20180:6;20154:25;:33::i;:::-;20140:10;20130:21;;;;:9;:21;;;;;:57;;;;20198:5;;:57;;-1:-1:-1;;;;;20198:5:0;;;;20241:4;20248:6;20198:22;:57::i;:::-;20023:240;:::o;4615:192::-;4701:7;4737:12;4729:6;;;;4721:29;;;;-1:-1:-1;;;4721:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4773:5:0;;;4615:192::o;6641:278::-;6727:7;6762:12;6755:5;6747:28;;;;-1:-1:-1;;;6747:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6786:9;6802:1;6798;:5;;;;;;;6641:278;-1:-1:-1;;;;;6641:278:0:o;17205:761::-;17629:23;17655:69;17683:4;17655:69;;;;;;;;;;;;;;;;;17663:5;-1:-1:-1;;;;;17655:27:0;;;:69;;;;;:::i;:::-;17739:17;;17629:95;;-1:-1:-1;17739:21:0;17735:224;;17881:10;17870:30;;;;;;;;;;;;;;;-1:-1:-1;17870:30:0;17862:85;;;;-1:-1:-1;;;17862:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11976:196;12079:12;12111:53;12134:6;12142:4;12148:1;12151:12;13483;13516:18;13527:6;13516:10;:18::i;:::-;13508:60;;;;;-1:-1:-1;;;13508:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13642:12;13656:23;13683:6;-1:-1:-1;;;;;13683:11:0;13703:8;13714:4;13683:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13683:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13641:78;;;;13734:7;13730:595;;;13765:10;-1:-1:-1;13758:17:0;;-1:-1:-1;13758:17:0;13730:595;13879:17;;:21;13875:439;;14142:10;14136:17;14203:15;14190:10;14186:2;14182:19;14175:44;14090:148;14278:20;;-1:-1:-1;;;14278:20:0;;;;;;;;;;;;;;;;;14285:12;;14278:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8861:619;8921:4;9389:20;;9232:66;9429:23;;;;;;:42;;-1:-1:-1;;9456:15:0;;;8861:619;-1:-1:-1;;8861:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://fd9deb156e11000ae3322bb03692230e05db3f8b173810eb0d68976013bbe4a2

Block Transaction 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
[ 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.