Contract 0xdd075243e6e88e0ab2ef147f3c0cd25b1798a177

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0ba428a2b4690ced0d2ee722fbf5d6166e59d7b832132765fd2c869242d1de06Stake168351122022-07-03 7:49:3653 mins ago0x989ffc94488fac443d735f3967043570418b4f57 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0028273115 26.5
0x4eaf0aad1902e77d1ef4863adf8155d281d02c4037f4124a35d56894c8c6331cStake168222162022-07-03 0:38:228 hrs 4 mins ago0xc43e5c94f0fcf442db226ab78f4985607d366052 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.00266697525
0xa3ecd241d5b628f277562e8d201977f3d7bbf75cadc6a5060be04576df36193aExit168211742022-07-03 0:03:438 hrs 39 mins ago0x341d4cb317ec689de4aea7fb8c16c6624433cd91 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002864968 26.5
0x92bc55ecf9dc98d40d7d10177770b5d2bfe5223e666157d4daae4683ad9dc7bdWithdraw168161862022-07-02 21:16:4111 hrs 26 mins ago0x10fa26936a87a534eb7611d037429be100ece2be IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x49970c9460528fa9e87ae963b2f14c16704947cdb793a346e6d992d53065e9c8Exit168156722022-07-02 20:59:2511 hrs 43 mins ago0xf0f31ac0cd7179c13c030ca692954dd991bb9e31 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.005720608 26.5
0x9458b155e846d7914c29b2d7381df3d5c48a523108b4e5ae49ebc430a995f5baWithdraw168123462022-07-02 19:07:5813 hrs 35 mins ago0x75c1d99b8c39dd31b6815a6269dc7b16d43a11c1 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x4e3562746e30813f8147bda619a6be94f89b740ea0b3f98877a3cd377b3fce63Stake168119742022-07-02 18:55:2813 hrs 47 mins ago0x99c680acf145e14a18dc69400619db084d2482d1 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0028273115 26.5
0x77e697a2769d6f0668ec71f434818a6cb97c85c5f72caac9c3c39c950a2793b4Withdraw168119382022-07-02 18:54:1613 hrs 49 mins ago0x6c8e9e3e8bc1b988740f333927c774b26c5a9e45 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x3360fbd09bbb39dcbea016d8ce70d3317fab1bf93a1799dc29c24793b9ffbae7Withdraw168105442022-07-02 18:07:4114 hrs 35 mins ago0xc1730723237720f22e68f03b9e2b4ac03c47ac9d IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.003675815 26.5
0x019ea04c6fd909633f5ff87b3cae70520446ea1d6217e4aef523966211ec0930Stake168102222022-07-02 17:56:5514 hrs 46 mins ago0x13835c603d52e9f83be3c9b3b5cef8575c0f0b32 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.004503033 27
0x5b84188291ae98540e7547a4d39a56bf97bf770dabe40e2d5107945eed24c400Withdraw168096692022-07-02 17:38:1115 hrs 5 mins ago0x8f4f3c311238ee015c1c849cd809433a7e0a61f4 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x954b66579aa6e3df6a7b93f54e3b5906e01c11a27d0621bdf9409c624e0d3774Withdraw168095532022-07-02 17:34:1815 hrs 9 mins ago0x19868b43cc7e16f8a928c500400d24f1b5f2dcff IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x7794d7f3aae9ce678cce75567f50c4fe72adfe043a947f6e26647d1eb956e27eStake168092072022-07-02 17:22:3815 hrs 20 mins ago0x6891d51d1ad8054d403b6888215ca2ee502d9ce5 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0027527935 26.5
0x415c20ee208fad0032b450e821af7e54845561feecaab5ebf71d1b77ba5d1f15Claim Reward168091852022-07-02 17:21:5515 hrs 21 mins ago0x6891d51d1ad8054d403b6888215ca2ee502d9ce5 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0027710785 26.5
0x204131dacd47b12966e02e1477f8737c562d7256820b2cd316fd96212eb2bac7Withdraw168086222022-07-02 17:03:0415 hrs 40 mins ago0x9d23eebcf1533269266c7c1addd6e98c860a3399 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0xb019cff4a105c87089e1a140d65b43813812c30321bdef052688404d05cd324cExit168085272022-07-02 16:59:5415 hrs 43 mins ago0x5d642f3cecea14f742e63e5f4f8568b9c560b952 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0038134827.5
0x9e3b46511cb04e239161fe28444278f4e9209ba740edd562028c185a51706afeWithdraw168082002022-07-02 16:49:0015 hrs 54 mins ago0x2df5b9647ce675072b7d3ac42cadd598985f7a22 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0xaf79b040c5096849413a8a6b76d6bbd7d1b9e5323fbee7332e79f805012d2ac8Exit168074012022-07-02 16:22:2216 hrs 20 mins ago0x28b1abdcf6a4b67315d78c4a507358b37b3118fc IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.004127958 26.5
0xb341a2174b1f403f39f0550de3744ceb2fd1f88afb9a314ad46948cb08286e0eClaim Reward168066882022-07-02 15:58:2916 hrs 44 mins ago0xdb52bb096e58ec1c6eae8a2b42dcb54bda1e20f0 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0032242285 26.5
0x528467fc346b271593109b4d71511c0c2e36ffea9bd727cd7085514741e8202fClaim Reward168064692022-07-02 15:51:0916 hrs 52 mins ago0xb8989cdca809c201c6a15c400585da728ed5364f IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0025378785 26.5
0x9d3a8abc3d789ac0e9226e0f9f14480b10538270d04cac7ba05daf23eaba459fWithdraw168051562022-07-02 15:07:0917 hrs 36 mins ago0xab587ed25f72da9ff2d9209f70ce1a086d100341 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.003319443 26.5
0xed9f128616f8e07d0d4db88e4428631acaf4a47908a6ae330762ecb1458d366eWithdraw168045312022-07-02 14:46:1617 hrs 57 mins ago0xb2130f002bd9f577dccbefb80986efe03d347914 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002865975 26.5
0x08cbfe7e6e603a9ced13cf2554958844f64af9f3a88b835487c7f39b5718afcfStake168041712022-07-02 14:34:1018 hrs 9 mins ago0xafcfeeaa6863ce7fa295b27e95a342cdf12359a3 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0028273115 26.5
0x7c998ee84c9f0b5041a9dd348721cf6e3b200740e2750e91e2ee4110563c8982Stake168035492022-07-02 14:13:2118 hrs 29 mins ago0x641e9cea2ffe41678cde4575924eb43c524421f4 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.0028269935 26.5
0xd8e42db192859b5f56811cab41eb2cfab37387bf68b130c18bb919d608d9d058Stake167998482022-07-02 12:09:3520 hrs 33 mins ago0x99c680acf145e14a18dc69400619db084d2482d1 IN  0xdd075243e6e88e0ab2ef147f3c0cd25b1798a1770 AVAX0.002926000675 27.425
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xe6F261Df9B2a4aB293ACD6154F0C166a22C43335

Contract Name:
Boardroom

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Boardroom.sol
// SPDX-License-Identifier: MIT
// Venom-Finance final version 3.0
// https://t.me/VenomFinanceCommunity

pragma solidity >=0.8.14;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./supportContracts/ContractGuard.sol";
import "./supportContracts/IBasisAsset.sol";
import "./supportContracts/ITreasury.sol";
import "./supportContracts/ShareWrapper.sol";

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

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

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

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

    address public operator;
    bool public isHumanOn; 
    IERC20 public HOST;
    ITreasury public treasury;
    mapping(address => Memberseat) public members;
    BoardroomSnapshot[] public boardroomHistory;

    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 memberExists() {
        require(balanceOf(msg.sender) > 0, "Boardroom: The member does not exist");
        _;
    }

    modifier isHuman() {
            require(tx.origin == msg.sender || !isHumanOn || address(this) == msg.sender  , "sorry humans only" )  ;
            _;
        }
  

    modifier updateReward(address member) {
        if (member != address(0)) {
            Memberseat memory seat = members[member];
            seat.rewardEarned = earned(member);
            seat.lastSnapshotIndex = latestSnapshotIndex();
            members[member] = seat;
        }
        _;
    }

    /* ========== initializer =============== */

    // using openzepplin initializer

    function initialize(IERC20 _HOST, IERC20 _share, ITreasury _treasury) public initializer {
        HOST = _HOST;
        share = _share;
        treasury = _treasury;
         __Ownable_init();
        BoardroomSnapshot memory genesisSnapshot = BoardroomSnapshot({time: block.number, rewardReceived: 0, rewardPerShare: 0});
        boardroomHistory.push(genesisSnapshot);
        isHumanOn = true; 
        
        withdrawLockupEpochs = 6; // Lock for 6 epochs (36h) before release withdraw
        rewardLockupEpochs = 3; // Lock for 3 epochs (18h) before release claimReward

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

    /* ========== OWNER AND OPERATOR FUNCTIONS ========== */

    // call to enable or disable isHuman
    function setIsHuman(bool _isHumanOn) public onlyOwner { 
        isHumanOn = _isHumanOn; 
        }

    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 boardroomHistory.length.sub(1);
    }

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

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

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

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

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

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

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

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

    // =========== Member getters

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

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

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

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

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

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

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

    function claimReward() public updateReward(msg.sender) isHuman {
        uint256 reward = members[msg.sender].rewardEarned;
        if (reward > 0) {
            require(members[msg.sender].epochTimerStart.add(rewardLockupEpochs) <= treasury.epoch(), "Boardroom: still in reward lockup");
            members[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
            members[msg.sender].rewardEarned = 0;
            HOST.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});
        boardroomHistory.push(newSnapshot);

        HOST.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(HOST), "HOST");
        require(address(_token) != address(share), "share");
        _token.safeTransfer(_to, _amount);
    }
}

File 2 of 13 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 3 of 13 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 6 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the 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. 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 7 of 13 : ContractGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.14;

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;
    }
}

File 8 of 13 : IBasisAsset.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.14;

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;
}

File 9 of 13 : ITreasury.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.14;

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

    function nextEpochPoint() external view returns (uint256);

    function getHOSTPrice() external view returns (uint256);

    function buyBonds(uint256 amount, uint256 targetPrice) external;

    function redeemBonds(uint256 amount, uint256 targetPrice) external;
}

File 10 of 13 : ShareWrapper.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.14;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

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 memberShare = _balances[msg.sender];
        require(memberShare >= amount, "Boardroom: withdraw request greater than staked amount");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = memberShare.sub(amount);
        share.safeTransfer(msg.sender, amount);
    }
}

File 11 of 13 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 12 of 13 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

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":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"HOST","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"uint256","name":"","type":"uint256"}],"name":"boardroomHistory","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"rewardReceived","type":"uint256"},{"internalType":"uint256","name":"rewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"canClaimReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"member","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":"member","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":[],"name":"getHOSTPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"getLastSnapshotIndexOf","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":"_HOST","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":"isHumanOn","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":"address","name":"","type":"address"}],"name":"members","outputs":[{"internalType":"uint256","name":"lastSnapshotIndex","type":"uint256"},{"internalType":"uint256","name":"rewardEarned","type":"uint256"},{"internalType":"uint256","name":"epochTimerStart","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bool","name":"_isHumanOn","type":"bool"}],"name":"setIsHuman","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","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"}]

608060405234801561001057600080fd5b506121d8806100206000396000f3fe608060405234801561001057600080fd5b50600436106101fa5760003560e01c8063714b46581161011a578063b3ab15fb116100ad578063c58e38431161007c578063c58e384314610462578063c5967c2614610475578063c79e839a1461047d578063e9fad8ee14610485578063f2fde38b1461048d57600080fd5b8063b3ab15fb14610421578063b88a802f14610434578063bec1d22e1461043c578063c0c53b8b1461044f57600080fd5b8063900cf0cf116100e9578063900cf0cf146103da57806397ffe1d7146103e2578063a694fc3a146103f5578063a8d5fd651461040857600080fd5b8063714b465814610384578063715018a6146103ad57806374536093146103b55780638da5cb5b146103c957600080fd5b80632ffaaa091161019257806354575af41161016157806354575af414610322578063570ca7351461033557806361d027b31461034857806370a082311461035b57600080fd5b80632ffaaa09146102d45780633f9e3f04146102e7578063446a2ec8146102ef57806349f289dc146102f757600080fd5b806318160ddd116101ce57806318160ddd1461029b57806319262d30146102a35780631e85cd65146102b65780632e1a7d4d146102bf57600080fd5b80628cc262146101ff578063022ba18d14610225578063046335d01461022e57806308ae4b0c14610251575b600080fd5b61021261020d366004611e1a565b6104a0565b6040519081526020015b60405180910390f35b610212606e5481565b61024161023c366004611e1a565b610531565b604051901515815260200161021c565b61028061025f366004611e1a565b606b6020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161021c565b600154610212565b6102416102b1366004611e1a565b6105cf565b610212606d5481565b6102d26102cd366004611e37565b610665565b005b6102d26102e2366004611e50565b6109e2565b610212610a80565b610212610a96565b60695461030a906001600160a01b031681565b6040516001600160a01b03909116815260200161021c565b6102d2610330366004611e72565b610aa9565b60685461030a906001600160a01b031681565b606a5461030a906001600160a01b031681565b610212610369366004611e1a565b6001600160a01b031660009081526002602052604090205490565b610212610392366004611e1a565b6001600160a01b03166000908152606b602052604090205490565b6102d2610b7f565b60685461024190600160a01b900460ff1681565b6036546001600160a01b031661030a565b610212610bb5565b6102d26103f0366004611e37565b610c23565b6102d2610403366004611e37565b610ef5565b60005461030a906201000090046001600160a01b031681565b6102d261042f366004611e1a565b611153565b6102d261119f565b6102d261044a366004611ec2565b61145f565b6102d261045d366004611edf565b6114a7565b610280610470366004611e37565b6116b6565b6102126116e9565b610212611733565b6102d261177d565b6102d261049b366004611e1a565b6117d4565b6000806104ab61186f565b60400151905060006104bc846118e9565b6040908101516001600160a01b0386166000908152606b602052919091206001015490915061052990610523670de0b6b3a764000061051d6104fe878761197c565b6001600160a01b038a166000908152600260205260409020549061198f565b9061199b565b906119a7565b949350505050565b606a546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf9160048083019260209291908290030181865afa15801561057b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059f9190611f1f565b606e546001600160a01b0384166000908152606b60205260409020600201546105c7916119a7565b111592915050565b606a546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf9160048083019260209291908290030181865afa158015610619573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063d9190611f1f565b606d546001600160a01b0384166000908152606b60205260409020600201546105c7916119a7565b43600090815260036020908152604080832032845290915290205460ff16156106a95760405162461bcd60e51b81526004016106a090611f38565b60405180910390fd5b43600090815260036020908152604080832033845290915290205460ff16156106e45760405162461bcd60e51b81526004016106a090611f38565b336000908152600260205260408120541161074d5760405162461bcd60e51b8152602060048201526024808201527f426f617264726f6f6d3a20546865206d656d62657220646f6573206e6f7420656044820152631e1a5cdd60e21b60648201526084016106a0565b3380156107de576001600160a01b0381166000908152606b6020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915261079c826104a0565b60208201526107a9610a80565b81526001600160a01b0382166000908152606b6020908152604091829020835181559083015160018201559101516002909101555b323314806107f65750606854600160a01b900460ff16155b8061080057503033145b61081c5760405162461bcd60e51b81526004016106a090611f7e565b6000821161086c5760405162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f7420776974686472617720300000000060448201526064016106a0565b606a60009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e39190611f1f565b606d54336000908152606b6020526040902060020154610902916119a7565b111561095c5760405162461bcd60e51b815260206004820152602360248201527f426f617264726f6f6d3a207374696c6c20696e207769746864726177206c6f6360448201526206b75760ec1b60648201526084016106a0565b61096461119f565b61096d826119b3565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6068546001600160a01b03163314610a0c5760405162461bcd60e51b81526004016106a090611fa9565b808210158015610a1d575060388211155b610a755760405162461bcd60e51b815260206004820152602360248201527f5f77697468647261774c6f636b757045706f6368733a206f7574206f662072616044820152626e676560e81b60648201526084016106a0565b606d91909155606e55565b606c54600090610a9190600161197c565b905090565b6000610aa061186f565b60400151905090565b6068546001600160a01b03163314610ad35760405162461bcd60e51b81526004016106a090611fa9565b6069546001600160a01b0390811690841603610b1a5760405162461bcd60e51b81526004016106a0906020808252600490820152631213d4d560e21b604082015260600190565b6000546001600160a01b0362010000909104811690841603610b665760405162461bcd60e51b8152602060048201526005602482015264736861726560d81b60448201526064016106a0565b610b7a6001600160a01b0384168284611a78565b505050565b6036546001600160a01b03163314610ba95760405162461bcd60e51b81526004016106a090611fee565b610bb36000611adb565b565b606a546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf9160048083019260209291908290030181865afa158015610bff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a919190611f1f565b43600090815260036020908152604080832032845290915290205460ff1615610c5e5760405162461bcd60e51b81526004016106a090611f38565b43600090815260036020908152604080832033845290915290205460ff1615610c995760405162461bcd60e51b81526004016106a090611f38565b6068546001600160a01b03163314610cc35760405162461bcd60e51b81526004016106a090611fa9565b60008111610d135760405162461bcd60e51b815260206004820152601c60248201527f426f617264726f6f6d3a2043616e6e6f7420616c6c6f6361746520300000000060448201526064016106a0565b6000610d1e60015490565b11610d845760405162461bcd60e51b815260206004820152603060248201527f426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465207768656e2060448201526f0746f74616c537570706c7920697320360841b60648201526084016106a0565b6000610d8e61186f565b6040015190506000610dbe610db7610da560015490565b61051d86670de0b6b3a764000061198f565b83906119a7565b6040805160608101825243815260208101868152918101838152606c805460018101825560009190915282517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe01660039092029182015592517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe017840155517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe0189092019190915560695491925090610e7f906001600160a01b0316333087611b2d565b60405184815233907fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299060200160405180910390a250504360009081526003602090815260408083203284529091528082208054600160ff19918216811790925533845291909220805490911690911790555050565b43600090815260036020908152604080832032845290915290205460ff1615610f305760405162461bcd60e51b81526004016106a090611f38565b43600090815260036020908152604080832033845290915290205460ff1615610f6b5760405162461bcd60e51b81526004016106a090611f38565b338015610ffc576001600160a01b0381166000908152606b60209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610fba826104a0565b6020820152610fc7610a80565b81526001600160a01b0382166000908152606b6020908152604091829020835181559083015160018201559101516002909101555b323314806110145750606854600160a01b900460ff16155b8061101e57503033145b61103a5760405162461bcd60e51b81526004016106a090611f7e565b6000821161108a5760405162461bcd60e51b815260206004820152601960248201527f426f617264726f6f6d3a2043616e6e6f74207374616b6520300000000000000060448201526064016106a0565b61109382611b65565b606a60009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110a9190611f1f565b336000818152606b6020526040908190206002019290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061099b9085815260200190565b6068546001600160a01b0316331461117d5760405162461bcd60e51b81526004016106a090611fa9565b606880546001600160a01b0319166001600160a01b0392909216919091179055565b338015611230576001600160a01b0381166000908152606b602090815260409182902082516060810184528154815260018201549281019290925260020154918101919091526111ee826104a0565b60208201526111fb610a80565b81526001600160a01b0382166000908152606b6020908152604091829020835181559083015160018201559101516002909101555b323314806112485750606854600160a01b900460ff16155b8061125257503033145b61126e5760405162461bcd60e51b81526004016106a090611f7e565b336000908152606b6020526040902060010154801561145b57606a60009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fe9190611f1f565b606e54336000908152606b602052604090206002015461131d916119a7565b11156113755760405162461bcd60e51b815260206004820152602160248201527f426f617264726f6f6d3a207374696c6c20696e20726577617264206c6f636b756044820152600760fc1b60648201526084016106a0565b606a60009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ec9190611f1f565b336000818152606b602052604081206002810193909355600190920191909155606954611425916001600160a01b039091169083611a78565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050565b6036546001600160a01b031633146114895760405162461bcd60e51b81526004016106a090611fee565b60688054911515600160a01b0260ff60a01b19909216919091179055565b600054610100900460ff166114c25760005460ff16156114c6565b303b155b6115295760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106a0565b600054610100900460ff1615801561154b576000805461ffff19166101011790555b606980546001600160a01b038087166001600160a01b03199283161790925560008054868416620100000262010000600160b01b0319909116179055606a8054928516929091169190911790556115a0611bc0565b604080516060810182524380825260006020808401828152848601838152606c8054600181018255945285517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe01660039586029081019190915591517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe017830155517f2b4a51ab505fc96a0952efda2ba61bcd3078d4c02c39a186ec16f21883fbe01890910155606880546006606d55606e93909355600160a01b336001600160a81b03199094168417179055935191825291927f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce79910160405180910390a25080156116b0576000805461ff00191690555b50505050565b606c81815481106116c657600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b606a54604080516362cb3e1360e11b815290516000926001600160a01b03169163c5967c269160048083019260209291908290030181865afa158015610bff573d6000803e3d6000fd5b606a54604080516363cf41cd60e11b815290516000926001600160a01b03169163c79e839a9160048083019260209291908290030181865afa158015610bff573d6000803e3d6000fd5b323314806117955750606854600160a01b900460ff16155b8061179f57503033145b6117bb5760405162461bcd60e51b81526004016106a090611f7e565b33600090815260026020526040902054610bb390610665565b6036546001600160a01b031633146117fe5760405162461bcd60e51b81526004016106a090611fee565b6001600160a01b0381166118635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a0565b61186c81611adb565b50565b61189360405180606001604052806000815260200160008152602001600081525090565b606c61189d610a80565b815481106118ad576118ad612023565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b61190d60405180606001604052806000815260200160008152602001600081525090565b606c61192e836001600160a01b03166000908152606b602052604090205490565b8154811061193e5761193e612023565b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b6000611988828461204f565b9392505050565b60006119888284612066565b60006119888284612085565b600061198882846120a7565b3360009081526002602052604090205481811015611a325760405162461bcd60e51b815260206004820152603660248201527f426f617264726f6f6d3a207769746864726177207265717565737420677265616044820152751d195c881d1a185b881cdd185ad95908185b5bdd5b9d60521b60648201526084016106a0565b600154611a3f908361197c565b600155611a4c818361197c565b33600081815260026020526040812092909255905461145b91620100009091046001600160a01b031690845b6040516001600160a01b038316602482015260448101829052610b7a90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611bef565b603680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526116b09085906323b872dd60e01b90608401611aa4565b600154611b7290826119a7565b60015533600090815260026020526040902054611b8f90826119a7565b33600081815260026020526040812092909255905461186c91620100009091046001600160a01b0316903084611b2d565b600054610100900460ff16611be75760405162461bcd60e51b81526004016106a0906120bf565b610bb3611cc1565b6000611c44826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611cf19092919063ffffffff16565b805190915015610b7a5780806020019051810190611c62919061210a565b610b7a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a0565b600054610100900460ff16611ce85760405162461bcd60e51b81526004016106a0906120bf565b610bb333611adb565b60606105298484600085856001600160a01b0385163b611d535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a0565b600080866001600160a01b03168587604051611d6f9190612153565b60006040518083038185875af1925050503d8060008114611dac576040519150601f19603f3d011682016040523d82523d6000602084013e611db1565b606091505b5091509150611dc1828286611dcc565b979650505050505050565b60608315611ddb575081611988565b825115611deb5782518084602001fd5b8160405162461bcd60e51b81526004016106a0919061216f565b6001600160a01b038116811461186c57600080fd5b600060208284031215611e2c57600080fd5b813561198881611e05565b600060208284031215611e4957600080fd5b5035919050565b60008060408385031215611e6357600080fd5b50508035926020909101359150565b600080600060608486031215611e8757600080fd5b8335611e9281611e05565b9250602084013591506040840135611ea981611e05565b809150509250925092565b801515811461186c57600080fd5b600060208284031215611ed457600080fd5b813561198881611eb4565b600080600060608486031215611ef457600080fd5b8335611eff81611e05565b92506020840135611f0f81611e05565b91506040840135611ea981611e05565b600060208284031215611f3157600080fd5b5051919050565b60208082526026908201527f436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756040820152653731ba34b7b760d11b606082015260800190565b602080825260119082015270736f7272792068756d616e73206f6e6c7960781b604082015260600190565b60208082526025908201527f426f617264726f6f6d3a2063616c6c6572206973206e6f7420746865206f70656040820152643930ba37b960d91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561206157612061612039565b500390565b600081600019048311821515161561208057612080612039565b500290565b6000826120a257634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156120ba576120ba612039565b500190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561211c57600080fd5b815161198881611eb4565b60005b8381101561214257818101518382015260200161212a565b838111156116b05750506000910152565b60008251612165818460208701612127565b9190910192915050565b602081526000825180602084015261218e816040850160208701612127565b601f01601f1916919091016040019291505056fea2646970667358221220370d4f064fc1c972970481e1f3fc0e9214a2ce20375ff05854ba0345ba026cc464736f6c634300080e0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.