Contract 0xbE8b66649ad3B93021630CDFB3B4f38e3b8B653E

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x5707d188941a7f8b2075de26b393e3c738b8426311891df2a1703ea1ba2aa82c83687972021-06-17 6:57:252 days 11 hrs ago0xf15747b3b961810e722679b363a51a8f95d2d2d8 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00064325
0xa25fed0d9421cfcc025d204b6c082112af128fe80eaa9d2a02896a6b05f737d583377252021-06-16 4:54:533 days 13 hrs ago0xde7ab4b228b94b97d7f90fe9a2859570b0b51dd1 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00081425
0xc5224e33f6d5e5194817cb57ffd85114c98aae2a4c7f16aa1d6358e7af64e85d82902562021-06-14 12:51:115 days 5 hrs ago0x56ef0798a04778eda2d4015c75dfc3d58f94d7e2 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00054016
0x4fe1c633755c9cccde7887b2a1d22a328902300fdcb4349ee2b0896e3ce0842f82278762021-06-12 8:19:097 days 9 hrs ago0xdeccf7d43d50b8cef14f0172f2b041ed47a5a75e IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00066431
0xdbff6d7dfa061d9b14fbca982cc56a143ad8aa10bd124d19f1aaa6122238c2c281691042021-06-10 7:09:379 days 10 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.0005401
0xec201669381375fca21d73b4e709221f9449f5205bf2cab4d221f2c5b994031381569472021-06-09 21:00:239 days 21 hrs ago0xb82a2e4ff5a2fe391093f1067406963606a31fda IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00064331
0x31cb0775133037ab4da4765148799997b7df47514c867adac8fb784527c31eb781424532021-06-09 8:52:4110 days 9 hrs ago0x8df34c66027a6a4a84f18ccac8b62dcdf7a238f3 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000543415
0x5628ea2a08709deeb81e937f17c43a26d8a68c5888ee9cc92f7242d582fa5a7981055702021-06-08 2:04:0511 days 16 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00064331
0x627da9c2e7dd757e62129700d2a960baf922c70a081187a33dd9e4ef2e45bedf81055332021-06-08 2:02:1411 days 16 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000543415
0xc54c18448f372c9f24bb4d15d9526b2d57a1ff3cdbc32bb88a3519145596919080492342021-06-06 3:02:1813 days 15 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000568665
0xe5e91bde14bfab2cb5c2cefc9338cd40038fe9195566d1ca071ba2f1a53e003880458822021-06-06 0:13:5313 days 17 hrs ago0xf4f0434c797514cc7c0ff6364433cd1d801ec3d5 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000618415
0xf0c19932aa141ab20ff1e7281c0a929a8e62f0deb5a3015f8774f700ba0ac19b80336092021-06-05 13:59:3314 days 4 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000547545
0xea54c7a547907adea45781a28d824efab51c8b684fbdee399cc5de50a6c7b2da80334812021-06-05 13:53:0914 days 4 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000547485
0x1e54a4b1979ceb91b33c8c68bd4ffe0738655227536b875f6fc626020662395780322252021-06-05 12:50:1614 days 5 hrs ago0x4fa638614c2c821964345aaa324555317284ed69 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00081431
0xc52f57c91acd8e45326555f6ba34ef34c7d262b04032e7e8b7581171857a138c80196582021-06-05 2:19:5514 days 15 hrs ago0x33e70ec8be78280692ef819fcb280284b19d89ba IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00054004
0xcd777700dd3a65e9b018a7cc595fa2997847e646ac62816751fc9fa0b3f37f0e80023442021-06-04 11:53:1715 days 6 hrs ago0xdf3ef8bcac67f98651793027bc17b972a3fb8240 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00073925
0x0fa226608126f5c205d2069e2dccbbf7ccd9c7cbb0557fa0544e3d4d4537bca179699452021-06-03 8:45:3816 days 9 hrs ago0x2b41d04b959757a3c40ea63f3e79fdbf5ea01da0 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000543415
0xbc8619c4b495b1fb211c8783ae8b05f47c93293627e23b73c3525a8a5cbeee0d79689892021-06-03 7:57:5016 days 10 hrs ago0x33e70ec8be78280692ef819fcb280284b19d89ba IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00066425
0x5e3e71ed4da525700c6f207b6c3d6bbb298a371118bbec28bf1c53071a2bb83679171692021-06-01 12:40:4018 days 5 hrs ago0x2b41d04b959757a3c40ea63f3e79fdbf5ea01da0 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00081419
0xdb5efe75f0a7eac24236c344f3fe9764f0ee1e5253fdfc46a80d3a84a66664a579005492021-05-31 22:44:1218 days 19 hrs ago0xc506c3d43dca1f977c251d53abe2fe98c1a4e16e IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.0005401
0x6b32aba7a390dbdbf4121337529b9dd9234e148c91cf85170f6fdf393e5f8ae078939072021-05-31 17:11:2719 days 56 mins ago0x78ade2a89f38d10aa8695137a57f4b1c193608f1 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.00081431
0xda4b95f55b1c41b63f513603bfbfd0968e52308af98bd57863e453c48e3b366678785742021-05-31 4:21:4919 days 13 hrs ago0x57db2d89ac0ed9c6afb668ff3b709ed32b1c96f9 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000543415
0x404e80da1449d8b660003d70676851f63f9d97999b819d066638b5a7c59905ab78435932021-05-29 23:07:1220 days 19 hrs ago0xc096f94d953d719674d214ee7981969f4709d62e IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000547605
0xe69760762a5af81ca1b2d994adfa6b89bf524dadc461684a3838124f20c9a8ec78435702021-05-29 23:06:0320 days 19 hrs ago0xc096f94d953d719674d214ee7981969f4709d62e IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000475715
0x4d9a5c61c62c0dbe39f068d6284c52c4b59930eb27373c60565ffdc455cecdb377831602021-05-27 20:35:2622 days 21 hrs ago0x454dd1022846b85ecefcfb5e397b4bbec0965059 IN  0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e0 BNB0.000568545
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6837495bd92e1ef9ab1a000e2f326640cac0c10f5829b5a7dd34822502dff23e54713292021-03-07 11:59:24104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSC Token0 BNB
0x6837495bd92e1ef9ab1a000e2f326640cac0c10f5829b5a7dd34822502dff23e54713292021-03-07 11:59:24104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x6837495bd92e1ef9ab1a000e2f326640cac0c10f5829b5a7dd34822502dff23e54713292021-03-07 11:59:24104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x73a32eddca591a3f8a55dcfe41a655f0324fa055c1741afa954e8c8a26f3958b54711002021-03-07 11:47:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x73a32eddca591a3f8a55dcfe41a655f0324fa055c1741afa954e8c8a26f3958b54711002021-03-07 11:47:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0xf9e6a1079f7afe8a71a7c098408e2abfa5cd3c8e07558cff5e8f33791029f17454710682021-03-07 11:46:21104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xf9e6a1079f7afe8a71a7c098408e2abfa5cd3c8e07558cff5e8f33791029f17454710682021-03-07 11:46:21104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0x655d2973ce4b6c58aab368635e29528073dfa12b7bc9e607afa72d765c9abbc554710552021-03-07 11:45:42104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x655d2973ce4b6c58aab368635e29528073dfa12b7bc9e607afa72d765c9abbc554710552021-03-07 11:45:42104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0x59742a517346f9b59c79978a907e2828302538f818bc38a3fabca00aee2276c354710362021-03-07 11:44:45104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSC Token0 BNB
0x59742a517346f9b59c79978a907e2828302538f818bc38a3fabca00aee2276c354710362021-03-07 11:44:45104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x59742a517346f9b59c79978a907e2828302538f818bc38a3fabca00aee2276c354710362021-03-07 11:44:45104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xaa16c74f7ad26822d3fd32593f3fde9c636d6010fca1d41fc6183f41b0aeab3354710182021-03-07 11:43:51104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSC Token0 BNB
0xaa16c74f7ad26822d3fd32593f3fde9c636d6010fca1d41fc6183f41b0aeab3354710182021-03-07 11:43:51104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xaa16c74f7ad26822d3fd32593f3fde9c636d6010fca1d41fc6183f41b0aeab3354710182021-03-07 11:43:51104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xebf708d746790ed7c3f3d74f6a5f07815707a257aac16942ecdb04874720a9a254709052021-03-07 11:38:12104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xebf708d746790ed7c3f3d74f6a5f07815707a257aac16942ecdb04874720a9a254709052021-03-07 11:38:12104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0x61a2b33dd020c04f8e36deb200b6e881aa54eb0f0e7dbb663ed7ad0ca725bf7154708802021-03-07 11:36:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSC Token0 BNB
0x61a2b33dd020c04f8e36deb200b6e881aa54eb0f0e7dbb663ed7ad0ca725bf7154708802021-03-07 11:36:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x61a2b33dd020c04f8e36deb200b6e881aa54eb0f0e7dbb663ed7ad0ca725bf7154708802021-03-07 11:36:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xb7ff6a662680686aec43a0ac97a2b0209f5792ddf516011b5469c392f16debda54708402021-03-07 11:34:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0xb7ff6a662680686aec43a0ac97a2b0209f5792ddf516011b5469c392f16debda54708402021-03-07 11:34:57104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0x36bd314393cd4a5f7922c794d2ed1e423e06c2e5153eb2dcd3b0fa28e79b691854704432021-03-07 11:15:06104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
0x36bd314393cd4a5f7922c794d2ed1e423e06c2e5153eb2dcd3b0fa28e79b691854704432021-03-07 11:15:06104 days 6 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e Monster Slayer: MSS Token0 BNB
0x8e18d73250c47ed22edef97a9744a5ca51384e2288043848973d7862a953c30a54702502021-03-07 11:05:27104 days 7 hrs ago 0xbe8b66649ad3b93021630cdfb3b4f38e3b8b653e 0xa8d512d654bf1aa7d70b7ffb696c629b8fe60b6d0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Boardroom

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

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

pragma solidity 0.6.12;

import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

import "./utils/ContractGuard.sol";
import "./interfaces/IBasisAsset.sol";
import "./interfaces/ITreasury.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 directorShare = _balances[msg.sender];
        require(directorShare >= amount, "Boardroom: withdraw request greater than staked amount");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = directorShare.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 Boardseat {
        uint256 lastSnapshotIndex;
        uint256 rewardEarned;
        uint256 epochTimerStart;
    }

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

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

    // governance
    address public operator;

    IERC20 public cash;
    ITreasury public treasury;

    mapping(address => Boardseat) public directors;
    BoardSnapshot[] public boardHistory;

    // protocol parameters
    uint256 public withdrawLockupEpochs;
    uint256 public rewardLockupEpochs;

    uint256 public dollarPriceOne;
    uint256 public maxRewardClaimWhenDollarPriceLessThanOne;
    uint256 public maxWithdrawWhenDollarPriceLessThanOne;

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

    modifier updateReward(address director) {
        if (director != address(0)) {
            Boardseat memory seat = directors[director];
            seat.rewardEarned = earned(director);
            seat.lastSnapshotIndex = latestSnapshotIndex();
            directors[director] = seat;
        }
        _;
    }

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

    constructor(
        IERC20 _cash,
        IERC20 _share,
        ITreasury _treasury
    ) public {
        cash = _cash;
        share = _share;
        treasury = _treasury;

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

        withdrawLockupEpochs = 4;
        rewardLockupEpochs = 2;

        dollarPriceOne = 10**18;

        operator = msg.sender;
    }

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

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

    function setMaxClaimAndWithdraw(uint256 _maxRewardClaimWhenDollarPriceLessThanOne, uint256 _maxWithdrawWhenDollarPriceLessThanOne) external onlyOperator {
        require(_maxRewardClaimWhenDollarPriceLessThanOne == 0 || _maxRewardClaimWhenDollarPriceLessThanOne >= 10000*dollarPriceOne, "_maxReward: invalid");
        require(_maxWithdrawWhenDollarPriceLessThanOne == 0 || _maxWithdrawWhenDollarPriceLessThanOne >= 100*dollarPriceOne, "_maxReward: invalid");

        maxRewardClaimWhenDollarPriceLessThanOne = _maxRewardClaimWhenDollarPriceLessThanOne;
        maxWithdrawWhenDollarPriceLessThanOne = _maxWithdrawWhenDollarPriceLessThanOne;
    }

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

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

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

    function getLatestSnapshot() internal view returns (BoardSnapshot memory) {
        return boardHistory[latestSnapshotIndex()];
    }

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

    function getLastSnapshotOf(address director) internal view returns (BoardSnapshot memory) {
        return boardHistory[getLastSnapshotIndexOf(director)];
    }

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

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

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

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

    function getDollarPrice() public view returns (uint256) {
        return treasury.getDollarPrice();
    }

    // =========== Director getters

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

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

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

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

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

    function withdraw(uint256 amount) public override onlyOneBlock directorExists updateReward(msg.sender) {
        require(amount > 0, "Boardroom: Cannot withdraw 0");
        require(directors[msg.sender].epochTimerStart.add(withdrawLockupEpochs) <= treasury.epoch(), "Boardroom: still in withdraw lockup");
        if (maxWithdrawWhenDollarPriceLessThanOne > 0 && getDollarPrice() < dollarPriceOne) {
            require(amount <= maxWithdrawWhenDollarPriceLessThanOne, "Boardroom: Maximum withdraw exceeded");
        }

        claimReward();
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

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

    function claimReward() public updateReward(msg.sender) {
        uint256 reward = directors[msg.sender].rewardEarned;
        if (reward > 0) {
            require(directors[msg.sender].epochTimerStart.add(rewardLockupEpochs) <= treasury.epoch(), "Boardroom: still in reward lockup");
            
            uint256 _rewardCanBeClaimed = reward;
            if (maxRewardClaimWhenDollarPriceLessThanOne > 0 && getDollarPrice() < dollarPriceOne) {
                _rewardCanBeClaimed = Math.min(reward, maxRewardClaimWhenDollarPriceLessThanOne);
            }

            directors[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
            if (_rewardCanBeClaimed < reward) {
                directors[msg.sender].rewardEarned = reward - _rewardCanBeClaimed;
            } else {
                directors[msg.sender].rewardEarned = 0;
            }
            cash.safeTransfer(msg.sender, _rewardCanBeClaimed);
            emit RewardPaid(msg.sender, _rewardCanBeClaimed);
        }
    }

    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()));

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

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

File 2 of 9 : IBasisAsset.sol
pragma solidity ^0.6.0;

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

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

pragma solidity 0.6.12;

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

    function getDollarPrice() external view returns (uint256);
}

File 4 of 9 : ContractGuard.sol
pragma solidity 0.6.12;

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 5 of 9 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 6 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 8 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_cash","type":"address"},{"internalType":"contract IERC20","name":"_share","type":"address"},{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256","name":"","type":"uint256"}],"name":"boardHistory","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":"director","type":"address"}],"name":"canClaimReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"director","type":"address"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cash","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"directors","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":"dollarPriceOne","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"director","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":"getDollarPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"director","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":[],"name":"latestSnapshotIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRewardClaimWhenDollarPriceLessThanOne","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWithdrawWhenDollarPriceLessThanOne","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"uint256","name":"_withdrawLockupEpochs","type":"uint256"},{"internalType":"uint256","name":"_rewardLockupEpochs","type":"uint256"}],"name":"setLockUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxRewardClaimWhenDollarPriceLessThanOne","type":"uint256"},{"internalType":"uint256","name":"_maxWithdrawWhenDollarPriceLessThanOne","type":"uint256"}],"name":"setMaxClaimAndWithdraw","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"}]

60806040523480156200001157600080fd5b506040516200398438038062003984833981810160405260608110156200003757600080fd5b8101908080519060200190929190805190602001909291908051906020019092919050505082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000128620001fd565b604051806060016040528043815260200160008152602001600081525090506008819080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505060046009819055506002600a81905550670de0b6b3a7640000600b8190555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050506200021e565b60405180606001604052806000815260200160008152602001600081525090565b613756806200022e6000396000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c806361d027b31161010f578063a8d5fd65116100a2578063e1f095aa11610071578063e1f095aa14610757578063e9fad8ee14610775578063f0ec94301461077f578063fd147b7f146107e5576101e4565b8063a8d5fd65146106b7578063b3ab15fb146106eb578063b88a802f1461072f578063c5967c2614610739576101e4565b806394bdf63e116100de57806394bdf63e14610609578063961be3911461062757806397ffe1d71461065b578063a694fc3a14610689576101e4565b806361d027b31461050757806370a082311461053b578063714b465814610593578063900cf0cf146105eb576101e4565b80632999e9e211610187578063446a2ec811610156578063446a2ec814610429578063447de6e51461044757806354575af414610465578063570ca735146104d3576101e4565b80632999e9e2146103875780632e1a7d4d146103a55780632ffaaa09146103d35780633f9e3f041461040b576101e4565b80630bfd6ee4116101c35780630bfd6ee4146102b957806318160ddd146102f157806319262d301461030f5780631e85cd6514610369576101e4565b80628cc262146101e9578063022ba18d14610241578063046335d01461025f575b600080fd5b61022b600480360360208110156101ff57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610835565b6040518082815260200191505060405180910390f35b6102496108fb565b6040518082815260200191505060405180910390f35b6102a16004803603602081101561027557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610901565b60405180821515815260200191505060405180910390f35b6102ef600480360360408110156102cf57600080fd5b810190808035906020019092919080359060200190929190505050610a06565b005b6102f9610bcb565b6040518082815260200191505060405180910390f35b6103516004803603602081101561032557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd5565b60405180821515815260200191505060405180910390f35b610371610cda565b6040518082815260200191505060405180910390f35b61038f610ce0565b6040518082815260200191505060405180910390f35b6103d1600480360360208110156103bb57600080fd5b8101908080359060200190929190505050610ce6565b005b610409600480360360408110156103e957600080fd5b8101908080359060200190929190803590602001909291905050506112a7565b005b6104136113c5565b6040518082815260200191505060405180910390f35b6104316113e5565b6040518082815260200191505060405180910390f35b61044f6113f8565b6040518082815260200191505060405180910390f35b6104d16004803603606081101561047b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113fe565b005b6104db61165a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61050f611680565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61057d6004803603602081101561055157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116a6565b6040518082815260200191505060405180910390f35b6105d5600480360360208110156105a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116ef565b6040518082815260200191505060405180910390f35b6105f361173b565b6040518082815260200191505060405180910390f35b6106116117e5565b6040518082815260200191505060405180910390f35b61062f6117eb565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106876004803603602081101561067157600080fd5b8101908080359060200190929190505050611811565b005b6106b56004803603602081101561069f57600080fd5b8101908080359060200190929190505050611c89565b005b6106bf6120fe565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61072d6004803603602081101561070157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612122565b005b61073761220c565b005b610741612736565b6040518082815260200191505060405180910390f35b61075f6127e0565b6040518082815260200191505060405180910390f35b61077d61288a565b005b6107c16004803603602081101561079557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061289d565b60405180848152602001838152602001828152602001935050505060405180910390f35b610811600480360360208110156107fb57600080fd5b81019080803590602001909291905050506128c7565b60405180848152602001838152602001828152602001935050505060405180910390f35b6000806108406128fe565b604001519050600061085184612956565b6040015190506108f2600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546108e4670de0b6b3a76400006108d66108bf86886129b190919063ffffffff16565b6108c88a6116a6565b6129fb90919063ffffffff16565b612a8190919063ffffffff16565b612acb90919063ffffffff16565b92505050919050565b600a5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561096b57600080fd5b505afa15801561097f573d6000803e3d6000fd5b505050506040513d602081101561099557600080fd5b81019080805190602001909291905050506109fd600a54600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154612acb90919063ffffffff16565b11159050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610aac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061362d6025913960400191505060405180910390fd5b6000821480610ac15750600b54612710028210155b610b33576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5f6d61785265776172643a20696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b6000811480610b475750600b546064028110155b610bb9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5f6d61785265776172643a20696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b81600c8190555080600d819055505050565b6000600154905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d6020811015610c6957600080fd5b8101908080519060200190929190505050610cd1600954600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154612acb90919063ffffffff16565b11159050919050565b60095481565b600d5481565b610cee612b53565b15610d44576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b610d4c612bb8565b15610da2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b6000610dad336116a6565b11610e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136526026913960400191505060405180910390fd5b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f3057610e4061350b565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050610eb382610835565b816020018181525050610ec46113c5565b81600001818152505080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050505b60008211610fa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f426f617264726f6f6d3a2043616e6e6f7420776974686472617720300000000081525060200191505060405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561100e57600080fd5b505afa158015611022573d6000803e3d6000fd5b505050506040513d602081101561103857600080fd5b81019080805190602001909291905050506110a0600954600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154612acb90919063ffffffff16565b11156110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806136786023913960400191505060405180910390fd5b6000600d541180156111115750600b5461110f6127e0565b105b1561117257600d54821115611171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061354e6024913960400191505060405180910390fd5b5b61117a61220c565b61118382612c1d565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a25060016003600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016003600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061362d6025913960400191505060405180910390fd5b80821015801561135e5750603c8211155b6113b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061360a6023913960400191505060405180910390fd5b8160098190555080600a819055505050565b60006113e060016008805490506129b190919063ffffffff16565b905090565b60006113ef6128fe565b60400151905090565b600c5481565b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061362d6025913960400191505060405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611568576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f636173680000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561162a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f736861726500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61165581838573ffffffffffffffffffffffffffffffffffffffff16612d7a9092919063ffffffff16565b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156117a557600080fd5b505afa1580156117b9573d6000803e3d6000fd5b505050506040513d60208110156117cf57600080fd5b8101908080519060200190929190505050905090565b600b5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611819612b53565b1561186f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b611877612bb8565b156118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061362d6025913960400191505060405180910390fd5b600081116119e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f426f617264726f6f6d3a2043616e6e6f7420616c6c6f6361746520300000000081525060200191505060405180910390fd5b60006119f3610bcb565b11611a49576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806135986030913960400191505060405180910390fd5b6000611a536128fe565b6040015190506000611aa1611a92611a69610bcb565b611a84670de0b6b3a7640000876129fb90919063ffffffff16565b612a8190919063ffffffff16565b83612acb90919063ffffffff16565b9050611aab61352c565b604051806060016040528043815260200185815260200183815250905060088190806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010155604082015181600201555050611b63333086600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e1c909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29856040518082815260200191505060405180910390a250505060016003600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016003600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611c91612b53565b15611ce7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b611cef612bb8565b15611d45576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136c56026913960400191505060405180910390fd5b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e7257611d8261350b565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050611df582610835565b816020018181525050611e066113c5565b81600001818152505080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050505b60008211611ee8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f426f617264726f6f6d3a2043616e6e6f74207374616b6520300000000000000081525060200191505060405180910390fd5b611ef182612edd565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5957600080fd5b505afa158015611f6d573d6000803e3d6000fd5b505050506040513d6020811015611f8357600080fd5b8101908080519060200190929190505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055503373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25060016003600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016003600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146121c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061362d6025913960400191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123395761224961350b565b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806060016040529081600082015481526020016001820154815260200160028201548152505090506122bc82610835565b8160200181815250506122cd6113c5565b81600001818152505080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050505b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050600081111561273257600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156123f157600080fd5b505afa158015612405573d6000803e3d6000fd5b505050506040513d602081101561241b57600080fd5b8101908080519060200190929190505050612483600a54600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154612acb90919063ffffffff16565b11156124da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135e96021913960400191505060405180910390fd5b60008190506000600c541180156124f95750600b546124f76127e0565b105b1561250d5761250a82600c54612fdd565b90505b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561257557600080fd5b505afa158015612589573d6000803e3d6000fd5b505050506040513d602081101561259f57600080fd5b8101908080519060200190929190505050600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055508181101561264c57808203600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550612695565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505b6126e23382600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d7a9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a2505b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c5967c266040518163ffffffff1660e01b815260040160206040518083038186803b1580156127a057600080fd5b505afa1580156127b4573d6000803e3d6000fd5b505050506040513d60208110156127ca57600080fd5b8101908080519060200190929190505050905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e1f095aa6040518163ffffffff1660e01b815260040160206040518083038186803b15801561284a57600080fd5b505afa15801561285e573d6000803e3d6000fd5b505050506040513d602081101561287457600080fd5b8101908080519060200190929190505050905090565b61289b612896336116a6565b610ce6565b565b60076020528060005260406000206000915090508060000154908060010154908060020154905083565b600881815481106128d457fe5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b61290661352c565b60086129106113c5565b8154811061291a57fe5b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b61295e61352c565b6008612969836116ef565b8154811061297357fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b60006129f383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ff6565b905092915050565b600080831415612a0e5760009050612a7b565b6000828402905082848281612a1f57fe5b0414612a76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135c86021913960400191505060405180910390fd5b809150505b92915050565b6000612ac383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506130b6565b905092915050565b600080828401905083811015612b49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60006003600043815260200190815260200160002060003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b60006003600043815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612cba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806136eb6036913960400191505060405180910390fd5b612ccf826001546129b190919063ffffffff16565b600181905550612ce882826129b190919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612d76338360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d7a9092919063ffffffff16565b5050565b612e178363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061317c565b505050565b612ed7846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061317c565b50505050565b612ef281600154612acb90919063ffffffff16565b600181905550612f4a81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612acb90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612fda33308360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e1c909392919063ffffffff16565b50565b6000818310612fec5781612fee565b825b905092915050565b60008383111582906130a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561306857808201518184015260208101905061304d565b50505050905090810190601f1680156130955780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290613162576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561312757808201518184015260208101905061310c565b50505050905090810190601f1680156131545780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161316e57fe5b049050809150509392505050565b60606131de826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661326b9092919063ffffffff16565b9050600081511115613266578080602001905160208110156131ff57600080fd5b8101908080519060200190929190505050613265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061369b602a913960400191505060405180910390fd5b5b505050565b606061327a8484600085613283565b90509392505050565b6060824710156132de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806135726026913960400191505060405180910390fd5b6132e78561342c565b613359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106133a95780518252602082019150602081019050602083039250613386565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461340b576040519150601f19603f3d011682016040523d82523d6000602084013e613410565b606091505b509150915061342082828661343f565b92505050949350505050565b600080823b905060008111915050919050565b6060831561344f57829050613504565b6000835111156134625782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156134c95780820151818401526020810190506134ae565b50505050905090810190601f1680156134f65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b60405180606001604052806000815260200160008152602001600081525090565b6040518060600160405280600081526020016000815260200160008152509056fe426f617264726f6f6d3a204d6178696d756d207769746864726177206578636565646564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c426f617264726f6f6d3a2043616e6e6f7420616c6c6f63617465207768656e20746f74616c537570706c792069732030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77426f617264726f6f6d3a207374696c6c20696e20726577617264206c6f636b75705f77697468647261774c6f636b757045706f6368733a206f7574206f662072616e6765426f617264726f6f6d3a2063616c6c6572206973206e6f7420746865206f70657261746f72426f617264726f6f6d3a20546865206469726563746f7220646f6573206e6f74206578697374426f617264726f6f6d3a207374696c6c20696e207769746864726177206c6f636b75705361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6e426f617264726f6f6d3a20776974686472617720726571756573742067726561746572207468616e207374616b656420616d6f756e74a26469706673582212208be3cd1431d37d6203acaf5f724170431825d4cc9207b4f045e079319d4c13a564736f6c634300060c00330000000000000000000000008c784c49097dcc637b93232e15810d53871992bf000000000000000000000000acabd3f9b8f76ffd2724604185fa5afa5df25ac6000000000000000000000000a8d512d654bf1aa7d70b7ffb696c629b8fe60b6d

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

0000000000000000000000008c784c49097dcc637b93232e15810d53871992bf000000000000000000000000acabd3f9b8f76ffd2724604185fa5afa5df25ac6000000000000000000000000a8d512d654bf1aa7d70b7ffb696c629b8fe60b6d

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008c784c49097dcc637b93232e15810d53871992bf
Arg [1] : 000000000000000000000000acabd3f9b8f76ffd2724604185fa5afa5df25ac6
Arg [2] : 000000000000000000000000a8d512d654bf1aa7d70b7ffb696c629b8fe60b6d


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