Contract 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x289a04387b0c0a5b9e5d7f67b5adfdf5fa2c7750407aef8f7ce1ea93df590824Withdraw116804922021-10-11 12:43:3115 days 3 hrs ago0x88156124d29026918031d01548a59cee51a42d1b IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00079422
0x8b19fe8a4f2c59e136d694fc56b43b83ce2be346fb8970a1c0e8237de3d58140Withdraw107327922021-09-08 10:24:0548 days 5 hrs ago0xa1c234ed82d0dd0ab5bc2cd0d231fe65cd3b579d IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000527815
0x9f9db4c39853236c038d2b1757518458cf7093ea74d61c5d6e419a156b4a40b7Exit107020482021-09-07 8:16:4449 days 7 hrs ago0x5c2bd9616851ce30a3514cde965f8d9dba36a078 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00074375
0x49df0288300e40db958351a072f5aea883410ebe7c65b603ced0aa800d6a72a4Stake106517332021-09-05 14:03:1151 days 1 hr ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000540825
0xafcd0d3f6278bfd1502b0487934908be9d0df971bf691e4ffb8f2cdc8f832cd6Stake105272562021-09-01 5:21:5055 days 10 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000540885
0xbc5593f24afa2cf950f0f8d961524c1b38fd95049a52e5e8eb04bbd3301ccc02Stake103947312021-08-27 12:49:4960 days 2 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000540885
0x634129c6e3285e22e6444a4b1563b739ae5beb4810d7ba4f110192c4b1126b4dWithdraw103553522021-08-26 3:54:0861 days 11 hrs ago0x558713d746365b583d9451cb6f513a427fea5845 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000527815
0x2d822df2bab6a2e9700640a4214bcc9eeab59c0df765ca62e5d262906826e80dStake102093172021-08-21 1:32:0566 days 14 hrs ago0x851497cf9b1362858c095cdd577b506d24f57336 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000561825
0xffbe33feaa5078945231ee94ee2efe4a53fc289ba27227cbd1830babab70be34Stake101895482021-08-20 8:51:2967 days 6 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000540825
0x49675cdd2605acb2d80c6798aa25492d11246787cec6622aee1ac9c7a59bdbdfStake101097842021-08-17 14:06:1970 days 1 hr ago0x38ab0fde4f152bdbc9e8ac44f0e9f56f092fbe79 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00063658
0x5536a536eea79744dbb31dbf7098eb6a470f6b929703f9f2a187263c1aae089fExit100811432021-08-16 14:10:5371 days 1 hr ago0xabf128d4be3072cdfcb021e702d2b8d8437c789d IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000531345
0x3b35ffbb58fe9eb9a80b068afecb476ea391a59b1a15fede886d756fa2f31795Withdraw100751152021-08-16 9:07:0271 days 6 hrs ago0xecbb016f886769d63349a616cd575ccd66bae7d2 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000527815
0xf9cfb38acd1647ed6105d09924df70867e7cb54d537b80ec8c3518ac4822b711Stake99091712021-08-10 12:41:2877 days 3 hrs ago0x767670119c046c5134dcd04eae7fd6ea83bc9973 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00065758
0x2525026c21fffff3af04bda5b86e1bd4784e5623a32fa34031ca9aad72af56ffStake98942272021-08-09 23:42:4877 days 16 hrs ago0x02e2b1950f885a83b7b6c6619c4f904764d82f46 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000561825
0x86bc8f99de1a85e8a77aa821ba9cb3e31600056b31b8ee6e6c6f06e7b82c7ee5Exit98464132021-08-08 6:56:5679 days 8 hrs ago0xb28d02c0b9416741377655bb2a73f0fc6d8d7db3 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000606345
0xdd1f96d58e775b97d509ebe4ec5e990fef39ce8b828dd21a245d659d7ab452c9Withdraw98130762021-08-07 2:26:0780 days 13 hrs ago0x47fcc60c1212bc701536be97101b3658505f469e IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000527815
0x2ffea10af567e83a07f71a7fd8f7a058395aeb2f4ae605540abb68c75979d829Exit96625712021-08-01 16:14:2185 days 23 hrs ago0x877eeb6f4db648dbc42b5437ee8fbae3376f1258 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00079775
0x7b994ef3afa14e7d319cb0d3c5a2d415011420eb9c625cd41b36e4f8f03c1592Stake94431422021-07-24 17:47:3293 days 21 hrs ago0x4cf5a42f10b11758ddb579dfb637d533ea858b43 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.0006367
0x2048e6e91df1d2383d401a15ed1e484c831f28e67e31fb5de1fec0f115359508Stake90226522021-07-10 2:56:16108 days 12 hrs ago0x02e2b1950f885a83b7b6c6619c4f904764d82f46 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000540885
0xce22139f970068274017db19424a3688949d72b89fe72325a83e33dce9777744Withdraw89472742021-07-07 12:05:28111 days 3 hrs ago0x92eba03e6424d27a29bf4a64b17ed4581a20321c IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000602815
0x49027b1cf8c96eb961320d27930674bd9a71d14e7c0598877ed3cca4f457a5dcClaim Reward88101272021-07-02 16:58:43115 days 22 hrs ago0x851497cf9b1362858c095cdd577b506d24f57336 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000391245
0x15bb8a2c56c7a5251b6dfa7e8198f501cb2b9578601c515dc198a9089b143ae0Withdraw87715142021-07-01 8:28:07117 days 7 hrs ago0x7c3de0d24588c4238f94aa6ccfdfbf1c4d21ba12 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00079416
0x160d82eedeb9307d3d094cdda29a6302cce7dc650f9a2415177aadfc510b870bExit87633832021-07-01 1:35:47117 days 14 hrs ago0x991515662a0209f062d027abfdb21a2683b10015 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00024179
0x392721cd94044b74d9b301ada759e60d57202a958e293817e2488e5cfd7b0b26Exit87615222021-07-01 0:02:43117 days 15 hrs ago0x991515662a0209f062d027abfdb21a2683b10015 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.00024179
0xfc38723eb7b36151596a3b19adfd693247343f3adfe077115c2ac870c1894c8aExit87612662021-06-30 23:49:55117 days 15 hrs ago0x991515662a0209f062d027abfdb21a2683b10015 IN  0x74ee3b0c391a2190d4fc275cd6c9e9c8dc1092400 BNB0.000290148
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x767c0fb2bfd9b8556acb28eba5bf9eed7ad3f90492a7bf40c83a66a5fdfc4b0754713112021-03-07 11:58:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUP Token0 BNB
0x767c0fb2bfd9b8556acb28eba5bf9eed7ad3f90492a7bf40c83a66a5fdfc4b0754713112021-03-07 11:58:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x767c0fb2bfd9b8556acb28eba5bf9eed7ad3f90492a7bf40c83a66a5fdfc4b0754713112021-03-07 11:58:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xf870fbebf7489db7e90f53013a3dc75baa5e9783e89880b5f2394026688963be54713092021-03-07 11:58:24233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xf870fbebf7489db7e90f53013a3dc75baa5e9783e89880b5f2394026688963be54713092021-03-07 11:58:24233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUPS Token0 BNB
0xfdb9b01779ab5323d537fd213cfc85222f199e826bbc1c24363b5825ff18610554712652021-03-07 11:56:12233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUP Token0 BNB
0xfdb9b01779ab5323d537fd213cfc85222f199e826bbc1c24363b5825ff18610554712652021-03-07 11:56:12233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xfdb9b01779ab5323d537fd213cfc85222f199e826bbc1c24363b5825ff18610554712652021-03-07 11:56:12233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xbc70b3bb5248e243f4b82a1a5c17e255619348ea21b75fe46f733699d01695ff54712502021-03-07 11:55:27233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xbc70b3bb5248e243f4b82a1a5c17e255619348ea21b75fe46f733699d01695ff54712502021-03-07 11:55:27233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUPS Token0 BNB
0x4622101bd9a604346ab12bebabab92a1b914e7e2ca68182c50671e38487d8d7854712192021-03-07 11:53:54233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUP Token0 BNB
0x4622101bd9a604346ab12bebabab92a1b914e7e2ca68182c50671e38487d8d7854712192021-03-07 11:53:54233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4622101bd9a604346ab12bebabab92a1b914e7e2ca68182c50671e38487d8d7854712192021-03-07 11:53:54233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4039d7da702b5070b8a5a838242bb5f7f0fcba61ecf384dc24fbe4d207edc0e454712112021-03-07 11:53:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUP Token0 BNB
0x4039d7da702b5070b8a5a838242bb5f7f0fcba61ecf384dc24fbe4d207edc0e454712112021-03-07 11:53:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4039d7da702b5070b8a5a838242bb5f7f0fcba61ecf384dc24fbe4d207edc0e454712112021-03-07 11:53:30233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xdc0db830fca439b6128db655265d07403c278e577439e332189aa52b5564170a54711992021-03-07 11:52:54233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xdc0db830fca439b6128db655265d07403c278e577439e332189aa52b5564170a54711992021-03-07 11:52:54233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUPS Token0 BNB
0x74e45ae18c5ab7206f2117091c368b463cacf26b250fa9f17a21614e2ba5c6ce54711832021-03-07 11:52:06233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x74e45ae18c5ab7206f2117091c368b463cacf26b250fa9f17a21614e2ba5c6ce54711832021-03-07 11:52:06233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUPS Token0 BNB
0xb50e8bd2317d76776fb9c4f20844bd65e4abbd4d5f7eb7bd2389c58b87c0398254711492021-03-07 11:50:24233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUP Token0 BNB
0xb50e8bd2317d76776fb9c4f20844bd65e4abbd4d5f7eb7bd2389c58b87c0398254711492021-03-07 11:50:24233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xb50e8bd2317d76776fb9c4f20844bd65e4abbd4d5f7eb7bd2389c58b87c0398254711492021-03-07 11:50:24233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x5ad1808b189fc59f0e7a69281b7591c94c96a555cda161e6f25c4a71667c4cca54711222021-03-07 11:49:03233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x5ad1808b189fc59f0e7a69281b7591c94c96a555cda161e6f25c4a71667c4cca54711222021-03-07 11:49:03233 days 3 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 Soup Protocol: SOUPS Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xeC7b8ea5aA99551ee70D801dB7341c196cc4f449

Contract Name:
Boiler

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : Boiler.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

contract Boiler 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;

    // flags
    bool public initialized = false;

    IERC20 public dollar;
    ITreasury public treasury;

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

    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, "Boiler: caller is not the operator");
        _;
    }

    modifier directorExists {
        require(balanceOf(msg.sender) > 0, "Boiler: 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;
        }
        _;
    }

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

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

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

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

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

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

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

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

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

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

    function latestSnapshotIndex() public view returns (uint256) {
        return 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() external 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, "Boiler: 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, "Boiler: Cannot withdraw 0");
        require(directors[msg.sender].epochTimerStart.add(withdrawLockupEpochs) <= treasury.epoch(), "Boiler: still in withdraw lockup");
        claimReward();
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

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

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

    function allocateSeigniorage(uint256 amount) external onlyOneBlock onlyOperator {
        require(amount > 0, "Boiler: Cannot allocate 0");
        require(totalSupply() > 0, "Boiler: 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);

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

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

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.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 4 of 8 : 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 8 : 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 6 of 8 : 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);

    function buyBonds(uint256 amount, uint256 targetPrice) external;

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

File 7 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 8 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"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":"dollar","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":"_dollar","type":"address"},{"internalType":"contract IERC20","name":"_share","type":"address"},{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestSnapshotIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"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"}]

60806040526004805460ff60a01b1916905534801561001d57600080fd5b506120b48061002d6000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c806370a08231116100f9578063b88a802f11610097578063e1f095aa11610071578063e1f095aa1461040a578063e9fad8ee14610412578063f0ec94301461041a578063fd147b7f1461045e576101c3565b8063b88a802f146103c2578063c0c53b8b146103ca578063c5967c2614610402576101c3565b806397ffe1d7116100d357806397ffe1d71461035a578063a694fc3a14610377578063a8d5fd6514610394578063b3ab15fb1461039c576101c3565b806370a0823114610306578063714b46581461032c578063900cf0cf14610352576101c3565b80632e1a7d4d11610166578063446a2ec811610140578063446a2ec8146102ca57806351adeb57146102d2578063570ca735146102f657806361d027b3146102fe576101c3565b80632e1a7d4d146102805780632ffaaa091461029f5780633f9e3f04146102c2576101c3565b8063158ef93e116101a2578063158ef93e1461024257806318160ddd1461024a57806319262d30146102525780631e85cd6514610278576101c3565b80628cc262146101c8578063022ba18d14610200578063046335d014610208575b600080fd5b6101ee600480360360208110156101de57600080fd5b50356001600160a01b031661047b565b60408051918252519081900360200190f35b6101ee6104fc565b61022e6004803603602081101561021e57600080fd5b50356001600160a01b0316610502565b604080519115158252519081900360200190f35b61022e6105bc565b6101ee6105dd565b61022e6004803603602081101561026857600080fd5b50356001600160a01b03166105e3565b6101ee610695565b61029d6004803603602081101561029657600080fd5b503561069b565b005b61029d600480360360408110156102b557600080fd5b50803590602001356109e9565b6101ee610a89565b6101ee610a9f565b6102da610ab2565b604080516001600160a01b039092168252519081900360200190f35b6102da610ac1565b6102da610ad0565b6101ee6004803603602081101561031c57600080fd5b50356001600160a01b0316610adf565b6101ee6004803603602081101561034257600080fd5b50356001600160a01b0316610afa565b6101ee610b15565b61029d6004803603602081101561037057600080fd5b5035610ba4565b61029d6004803603602081101561038d57600080fd5b5035610ea6565b6102da611149565b61029d600480360360208110156103b257600080fd5b50356001600160a01b0316611158565b61029d6111db565b61029d600480360360608110156103e057600080fd5b506001600160a01b038135811691602081013582169160409091013516611468565b6101ee611687565b6101ee6116e5565b61029d611743565b6104406004803603602081101561043057600080fd5b50356001600160a01b0316611756565b60408051938452602084019290925282820152519081900360600190f35b6104406004803603602081101561047457600080fd5b5035611777565b6000806104866117a7565b6040015190506000610497846117ff565b6040908101516001600160a01b0386166000908152600760205291909120600101549091506104f4906104ee670de0b6b3a76400006104e86104d9878761185a565b6104e28a610adf565b906118a5565b906118fe565b90611940565b949350505050565b600a5481565b600654604080517f900cf0cf00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561056057600080fd5b505afa158015610574573d6000803e3d6000fd5b505050506040513d602081101561058a57600080fd5b5051600a546001600160a01b0384166000908152600760205260409020600201546105b491611940565b111592915050565b60045474010000000000000000000000000000000000000000900460ff1681565b60015490565b600654604080517f900cf0cf00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561064157600080fd5b505afa158015610655573d6000803e3d6000fd5b505050506040513d602081101561066b57600080fd5b50516009546001600160a01b0384166000908152600760205260409020600201546105b491611940565b60095481565b6106a361199a565b156106df5760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b6106e76119bb565b156107235760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b600061072e33610adf565b1161076a5760405162461bcd60e51b8152600401808060200182810382526023815260200180611fea6023913960400191505060405180910390fd5b33801561080457610779611f24565b506001600160a01b03811660009081526007602090815260409182902082516060810184528154815260018201549281019290925260020154918101919091526107c28261047b565b60208201526107cf610a89565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b60008211610859576040805162461bcd60e51b815260206004820152601960248201527f426f696c65723a2043616e6e6f74207769746864726177203000000000000000604482015290519081900360640190fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108a757600080fd5b505afa1580156108bb573d6000803e3d6000fd5b505050506040513d60208110156108d157600080fd5b5051600954336000908152600760205260409020600201546108f291611940565b1115610945576040805162461bcd60e51b815260206004820181905260248201527f426f696c65723a207374696c6c20696e207769746864726177206c6f636b7570604482015290519081900360640190fd5b61094d6111db565b610956826119dc565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050436000908152600360209081526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092553384529190922080549091169091179055565b6004546001600160a01b03163314610a325760405162461bcd60e51b815260040180806020018281038252602281526020018061205d6022913960400191505060405180910390fd5b808210158015610a43575060388211155b610a7e5760405162461bcd60e51b8152600401808060200182810382526023815260200180611fc76023913960400191505060405180910390fd5b600991909155600a55565b600854600090610a9a90600161185a565b905090565b6000610aa96117a7565b60400151905090565b6005546001600160a01b031681565b6004546001600160a01b031681565b6006546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526007602052604090205490565b600654604080517f900cf0cf00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b158015610b7357600080fd5b505afa158015610b87573d6000803e3d6000fd5b505050506040513d6020811015610b9d57600080fd5b5051905090565b610bac61199a565b15610be85760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b610bf06119bb565b15610c2c5760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b6004546001600160a01b03163314610c755760405162461bcd60e51b815260040180806020018281038252602281526020018061205d6022913960400191505060405180910390fd5b60008111610cca576040805162461bcd60e51b815260206004820152601960248201527f426f696c65723a2043616e6e6f7420616c6c6f63617465203000000000000000604482015290519081900360640190fd5b6000610cd46105dd565b11610d105760405162461bcd60e51b815260040180806020018281038252602d815260200180611f46602d913960400191505060405180910390fd5b6000610d1a6117a7565b6040015190506000610d49610d42610d306105dd565b6104e886670de0b6b3a76400006118a5565b8390611940565b9050610d53611f24565b5060408051606081018252438152602081018581529181018381526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039092029182015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee590920191909155600554610e11906001600160a01b0316333087611a70565b60408051858152905133917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29919081900360200190a25050436000908152600360209081526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925533845291909220805490911690911790555050565b610eae61199a565b15610eea5760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b610ef26119bb565b15610f2e5760405162461bcd60e51b81526004018080602001828103825260268152602001806120376026913960400191505060405180910390fd5b338015610fc857610f3d611f24565b506001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610f868261047b565b6020820152610f93610a89565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b6000821161101d576040805162461bcd60e51b815260206004820152601660248201527f426f696c65723a2043616e6e6f74207374616b65203000000000000000000000604482015290519081900360640190fd5b61102682611afe565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561107457600080fd5b505afa158015611088573d6000803e3d6000fd5b505050506040513d602081101561109e57600080fd5b505133600081815260076020908152604091829020600201939093558051858152905191927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d92918290030190a25050436000908152600360209081526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092553384529190922080549091169091179055565b6000546001600160a01b031681565b6004546001600160a01b031633146111a15760405162461bcd60e51b815260040180806020018281038252602281526020018061205d6022913960400191505060405180910390fd5b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b338015611275576111ea611f24565b506001600160a01b03811660009081526007602090815260409182902082516060810184528154815260018201549281019290925260020154918101919091526112338261047b565b6020820152611240610a89565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b33600090815260076020526040902060010154801561146457600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112dc57600080fd5b505afa1580156112f0573d6000803e3d6000fd5b505050506040513d602081101561130657600080fd5b5051600a543360009081526007602052604090206002015461132791611940565b111561137a576040805162461bcd60e51b815260206004820152601e60248201527f426f696c65723a207374696c6c20696e20726577617264206c6f636b75700000604482015290519081900360640190fd5b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113c857600080fd5b505afa1580156113dc573d6000803e3d6000fd5b505050506040513d60208110156113f257600080fd5b5051336000818152600760205260408120600281019390935560019092019190915560055461142d916001600160a01b039091169083611b57565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b60045474010000000000000000000000000000000000000000900460ff16156114d8576040805162461bcd60e51b815260206004820152601b60248201527f426f696c65723a20616c726561647920696e697469616c697a65640000000000604482015290519081900360640190fd5b600580546001600160a01b038086167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255600080548584169083161790556006805492841692909116919091179055611535611f24565b50604080516060810182524380825260006020808401828152848601838152600880546001810182559452855160039485027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee381019190915591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101556006600955600a91909155600480547fffffffffffffffffffffffff00000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff90911674010000000000000000000000000000000000000000171633908117909155845192835293519293927f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce799281900390910190a250505050565b600654604080517fc5967c2600000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163c5967c26916004808301926020929190829003018186803b158015610b7357600080fd5b600654604080517fe1f095aa00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163e1f095aa916004808301926020929190829003018186803b158015610b7357600080fd5b61175461174f33610adf565b61069b565b565b60076020526000908152604090208054600182015460029092015490919083565b6008818154811061178457fe5b600091825260209091206003909102018054600182015460029092015490925083565b6117af611f24565b60086117b9610a89565b815481106117c357fe5b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b611807611f24565b600861181283610afa565b8154811061181c57fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b600061189c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bdc565b90505b92915050565b6000826118b45750600061189f565b828202828482816118c157fe5b041461189c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fa66021913960400191505060405180910390fd5b600061189c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c73565b60008282018381101561189c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b43600090815260036020908152604080832032845290915290205460ff1690565b43600090815260036020908152604080832033845290915290205460ff1690565b3360009081526002602052604090205481811015611a2b5760405162461bcd60e51b8152600401808060200182810382526033815260200180611f736033913960400191505060405180910390fd5b600154611a38908361185a565b600155611a45818361185a565b336000818152600260205260408120929092559054611464916001600160a01b039091169084611b57565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611af8908590611cd8565b50505050565b600154611b0b9082611940565b60015533600090815260026020526040902054611b289082611940565b336000818152600260205260408120929092559054611b54916001600160a01b03909116903084611a70565b50565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611bd7908490611cd8565b505050565b60008184841115611c6b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c30578181015183820152602001611c18565b50505050905090810190601f168015611c5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611cc25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c30578181015183820152602001611c18565b506000838581611cce57fe5b0495945050505050565b6060611d2d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d899092919063ffffffff16565b805190915015611bd757808060200190516020811015611d4c57600080fd5b5051611bd75760405162461bcd60e51b815260040180806020018281038252602a81526020018061200d602a913960400191505060405180910390fd5b60606104f484846000856060611d9e85611f1e565b611def576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e4c57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611e0f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611eae576040519150601f19603f3d011682016040523d82523d6000602084013e611eb3565b606091505b50915091508115611ec75791506104f49050565b805115611ed75780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611c30578181015183820152602001611c18565b3b151590565b6040518060600160405280600081526020016000815260200160008152509056fe426f696c65723a2043616e6e6f7420616c6c6f63617465207768656e20746f74616c537570706c792069732030426f696c65723a20776974686472617720726571756573742067726561746572207468616e207374616b656420616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775f77697468647261774c6f636b757045706f6368733a206f7574206f662072616e6765426f696c65723a20546865206469726563746f7220646f6573206e6f742065786973745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6e426f696c65723a2063616c6c6572206973206e6f7420746865206f70657261746f72a2646970667358221220e2e0b489941f8fca110a0373238987ba4d871ef68eb7361d403a1010acb1fb5b64736f6c634300060c0033

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.