Contract 0x69f84D183Eb0f78212Ac65E4E9dc725a2a04c5EA

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x5beec0b95d22a1a9320ec71cfbe6cbea62f663c20dd3701b71ff26c6fca6aec671849032021-05-06 11:28:5014 mins ago0x64f961eec2ba222dcba8fa354f03e27529b96f5b IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.01 BNB0.00040588
0x17b21cecb3f9041877dcd4e51a40ca4035555796aec6a4c4d739ce52c124a5e071807122021-05-06 7:57:223 hrs 45 mins ago0xa2c3a26cf282ea25308e733e6ba2fa445be91eca IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.03 BNB0.00040588
0x6dfb8241f09334522a375f84cd507e29c92a016d7719291567f38bb7d0b3e75a71803622021-05-06 7:39:524 hrs 3 mins ago0x52cfe202577829690c77de816a3774a9f672c844 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.1 BNB0.00040588
0x967e6c485e7ce47134bf7fd2953b1036caa1b37c65262d75f49cd01eaadf067a71786862021-05-06 6:15:585 hrs 26 mins ago0xd51fbc7af3a4bdd70cacdcfaaec6f55b7d16e163 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.1 BNB0.00040588
0xa450c727bb9d18f5120f61695460234acbadc9646fa98a931eda7385ef8f0b5871773352021-05-06 5:07:506 hrs 35 mins ago0xaec539a116fa75e8bdcf016d3c146a25bc1af93b IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.1 BNB0.00040588
0xc986efe9d841fe26ef4454eeebfc0ab6ab720a5a27b0b2d879d722c3b8500a6e71770302021-05-06 4:52:356 hrs 50 mins ago0x90e2a30c6487ac079b8259c3d421707286e652e8 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea1.4 BNB0.00040588
0xdad9262987756b5bfe6c357d0362800af80cb67fca0784f6ab751c2be1cc785471763292021-05-06 4:17:277 hrs 25 mins ago0x407ad0f23f5ded868c5d10569bd73b06261f5556 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.05 BNB0.00040588
0x3835f4c0294a7126ea2dc09e760efe1c50b23cd50c6bb9e21dbe36228c39a98171721622021-05-06 0:47:5710 hrs 54 mins ago0xc5bb86d1c7c92bc4d13c12d4d8925c362dbb1dfc IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.1 BNB0.00040588
0xd672e601a02606b498bbd025d0fc9ce6f94e9e5b91466167c44a07795f92396271718352021-05-06 0:30:3211 hrs 12 mins ago0xd5d1d6162744a46a73eafa54f4ec1a5f2ae217d7 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.05 BNB0.00040588
0x69d902ad0a84782da64a7c07438e23670738c2e5e53d89321f4686de7fbe788871714172021-05-06 0:08:5911 hrs 33 mins ago0xc91ccaa4539ae46edccbba21ebe3e1a726fb6019 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea1 BNB0.00040588
0x083c48a32964f2c95c99a6f4ecee7e8abff8853aad3ded39e5cfe2321288de6a71712892021-05-06 0:02:3511 hrs 40 mins ago0x71c5dd5e643a155edb9a046417c36fac631bcbc6 IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.05 BNB0.00040588
0x4e4b6c069f9ef52ea8ff0f3c4c7ddf42ce9bc9a6440f4eda9fb18f3ee10ac4ee71712642021-05-06 0:01:2011 hrs 41 mins ago0xb3d69997e06789a329bc3c881ae38219adf61bfd IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0.1 BNB0.00055588
0xcba627e16b7ca00bea02fc2fb19053ba0d2f1c5455b147286f144ae6f808d11b71426852021-05-04 23:35:461 day 12 hrs ago0xb3d69997e06789a329bc3c881ae38219adf61bfd IN  0x69f84d183eb0f78212ac65e4e9dc725a2a04c5ea0 BNB0.00108029
0x78c1d26d420f7af4e0e2a9696f76f676834fb8f6ea435738aa5e31f8ee01c98b71426512021-05-04 23:34:041 day 12 hrs ago0xb3d69997e06789a329bc3c881ae38219adf61bfd IN  Contract Creation0 BNB0.1084696
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BNBR

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
No with 200 runs

Other Settings:
petersburg EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : BNBReturnsv2.sol
/**
 *Submitted for verification at BscScan.com on 2021-03-03
*/

pragma solidity 0.5.10;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Interface of the IBEP20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * Available since v2.4.0.
     */
    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.
     *
     * Available since v2.4.0.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * Available since v2.4.0.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Implementation of the {TRC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {TRC20-approve}.
 */
contract BNBReturns is Context, IBEP20 {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    // allocating 10 thousand tokens for promotions, airdrop and dev costs
    uint256 private _totalSupply = 10000 * (10**8);

    constructor() public {
        _balances[msg.sender] = _totalSupply;
    }

    /**
     * @dev See {TRC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {TRC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {TRC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {TRC20-allowance}.
     */
    function allowance(address owner, address spender)
        public
        view
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {TRC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {TRC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                amount,
                "IBEP20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {TRC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue)
        public
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].add(addedValue)
        );
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {TRC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(
                subtractedValue,
                "IBEP20: decreased allowance below zero"
            )
        );
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(sender != address(0), "IBEP20: transfer from the zero address");
        require(recipient != address(0), "IBEP20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(
            amount,
            "IBEP20: transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "IBEP20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev External function to destroys `amount` tokens from `account`, reducing the
     * total supply.
     */
    function burn(uint256 amount) external {
        require(_balances[msg.sender] >= amount, "IBEP20: not enough balance!");

        _burn(msg.sender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "IBEP20: burn from the zero address");

        _balances[account] = _balances[account].sub(
            amount,
            "IBEP20: burn amount exceeds balance"
        );
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), "IBEP20: approve from the zero address");
        require(spender != address(0), "IBEP20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(
                amount,
                "IBEP20: burn amount exceeds allowance"
            )
        );
    }
}

contract GlobalsAndUtility is BNBReturns {
    /*  XfLobbyEnter
     */
    event XfLobbyEnter(
        uint256 timestamp,
        uint256 enterDay,
        uint256 indexed entryIndex,
        uint256 indexed rawAmount
    );

    /*  XfLobbyExit
     */
    event XfLobbyExit(
        uint256 timestamp,
        uint256 enterDay,
        uint256 indexed entryIndex,
        uint256 indexed xfAmount,
        address indexed referrerAddr
    );

    /*  DailyDataUpdate
     */
    event DailyDataUpdate(
        address indexed updaterAddr,
        uint256 timestamp,
        uint256 beginDay,
        uint256 endDay
    );

    /*  StakeStart
     */
    event StakeStart(
        uint40 indexed stakeId,
        address indexed stakerAddr,
        uint256 stakedSuns,
        uint256 stakeShares,
        uint256 stakedDays
    );

    /*  StakeGoodAccounting
     */
    event StakeGoodAccounting(
        uint40 indexed stakeId,
        address indexed stakerAddr,
        address indexed senderAddr,
        uint256 stakedSuns,
        uint256 stakeShares,
        uint256 payout,
        uint256 penalty
    );

    /*  StakeEnd
     */
    event StakeEnd(
        uint40 indexed stakeId,
        uint40 prevUnlocked,
        address indexed stakerAddr,
        uint256 lockedDay,
        uint256 servedDays,
        uint256 stakedSuns,
        uint256 stakeShares,
        uint256 dividends,
        uint256 payout,
        uint256 penalty,
        uint256 stakeReturn
    );

    /*  ShareRateChange
     */
    event ShareRateChange(
        uint40 indexed stakeId,
        uint256 timestamp,
        uint256 newShareRate
    );

    /* Flush address */
    address payable internal constant FLUSH_ADDR =
        0xb3D69997E06789a329Bc3C881ae38219ADf61bfd;
    uint8 internal LAST_FLUSHED_DAY = 1;

    /* IBEP20 constants */
    string public constant name = "BNB Returns Token";
    string public constant symbol = "BNBR";
    uint8 public constant decimals = 8;

    /* Suns per Satoshi = 10,000 * 1e8 / 1e8 = 1e4 */
    uint256 private constant SUNS_PER_BNBR = 10**uint256(decimals); // 1e8

    /* Time of contract launch (03-03-2021 T00:00:00Z) */
    uint256 internal constant LAUNCH_TIME = 1620172800;
    /* Start of claim phase */
    uint256 internal constant PRE_CLAIM_DAYS = 1;
    uint256 internal constant CLAIM_STARTING_AMOUNT = 30000 * (10**8);
    uint256 internal constant CLAIM_LOWEST_AMOUNT = 30000 * (10**8);
    uint256 internal constant CLAIM_PHASE_START_DAY = PRE_CLAIM_DAYS;

    /* Number of words to hold 1 bit for each transform lobby day */
    uint256 internal constant XF_LOBBY_DAY_WORDS = ((1 + (50 * 7)) + 255) >> 8;

    /* Stake timing parameters */
    uint256 internal constant MIN_STAKE_DAYS = 1;

    uint256 internal constant MAX_STAKE_DAYS = 60;

    uint256 internal constant EARLY_PENALTY_MIN_DAYS = 30;

    uint256 private constant LATE_PENALTY_GRACE_WEEKS = 2;
    uint256 internal constant LATE_PENALTY_GRACE_DAYS =
        LATE_PENALTY_GRACE_WEEKS * 7;

    uint256 private constant LATE_PENALTY_SCALE_WEEKS = 100;
    uint256 internal constant LATE_PENALTY_SCALE_DAYS =
        LATE_PENALTY_SCALE_WEEKS * 7;

    /* Stake shares Longer Pays Better bonus constants used by _stakeStartBonusSuns() */
    uint256 private constant LPB_BONUS_PERCENT = 20;
    uint256 private constant LPB_BONUS_MAX_PERCENT = 200;
    uint256 internal constant LPB = (59 * 100) / LPB_BONUS_PERCENT;
    uint256 internal constant LPB_MAX_DAYS =
        (LPB * LPB_BONUS_MAX_PERCENT) / 100;

    /* Stake shares Bigger Pays Better bonus constants used by _stakeStartBonusSuns() */
    uint256 private constant BPB_BONUS_PERCENT = 10;
    uint256 private constant BPB_MAX_BNBR = 7 * 1e6;//7,000,000
    uint256 internal constant BPB_MAX_SUNS = BPB_MAX_BNBR * SUNS_PER_BNBR;
    uint256 internal constant BPB = (BPB_MAX_SUNS * 100) / BPB_BONUS_PERCENT;

    /* Share rate is scaled to increase precision */
    uint256 internal constant SHARE_RATE_SCALE = 1e5;

    /* Share rate max (after scaling) */
    uint256 internal constant SHARE_RATE_UINT_SIZE = 75;
    uint256 internal constant SHARE_RATE_MAX = (1 << SHARE_RATE_UINT_SIZE) - 1;

    /* weekly staking bonus */
    uint8 internal constant BONUS_DAY_SCALE = 2;
    mapping(address => mapping(uint256 => uint256)) public stakes;
    mapping(address => uint256) public latestStakeId;

    /* Globals expanded for memory (except _latestStakeId) and compact for storage */
    address payable[] public stakeholders;
    address public owner;
    uint256 public jackPotValue;
    struct GlobalsCache {
        uint256 _lockedSunsTotal;
        uint256 _nextStakeSharesTotal;
        uint256 _shareRate;
        uint256 _stakePenaltyTotal;
        uint256 _dailyDataCount;
        uint256 _stakeSharesTotal;
        uint40 _latestStakeId;
        uint256 _currentDay;
    }

    struct GlobalsStore {
        uint72 lockedSunsTotal;
        uint72 nextStakeSharesTotal;
        uint40 shareRate;
        uint72 stakePenaltyTotal;
        uint16 dailyDataCount;
        uint72 stakeSharesTotal;
        uint40 latestStakeId;
    }

    GlobalsStore public globals;

    /* Daily data */
    struct DailyDataStore {
        uint72 dayPayoutTotal;
        uint256 dayDividends;
        uint72 dayStakeSharesTotal;
    }

    mapping(uint256 => DailyDataStore) public dailyData;

    /* Stake expanded for memory (except _stakeId) and compact for storage */
    struct StakeCache {
        uint40 _stakeId;
        uint256 _stakedSuns;
        uint256 _stakeShares;
        uint256 _lockedDay;
        uint256 _stakedDays;
        uint256 _unlockedDay;
    }

    struct StakeStore {
        uint40 stakeId;
        uint72 stakedSuns;
        uint72 stakeShares;
        uint16 lockedDay;
        uint16 stakedDays;
        uint16 unlockedDay;
    }

    mapping(address => StakeStore[]) public stakeLists;

    /* Temporary state for calculating daily rounds */
    struct DailyRoundState {
        uint256 _allocSupplyCached;
        uint256 _payoutTotal;
    }

    struct XfLobbyEntryStore {
        uint96 rawAmount;
        address referrerAddr;
    }

    struct XfLobbyQueueStore {
        uint40 headIndex;
        uint40 tailIndex;
        mapping(uint256 => XfLobbyEntryStore) entries;
    }

    mapping(uint256 => uint256) public xfLobby;
    mapping(uint256 => mapping(address => XfLobbyQueueStore))
        public xfLobbyMembers;

    /**
     * @dev PUBLIC FACING: Optionally update daily data for a smaller
     * range to reduce gas cost for a subsequent operation
     * @param beforeDay Only update days before this day number (optional; 0 for current day)
     */
    function dailyDataUpdate(uint256 beforeDay) external {
        GlobalsCache memory g;
        GlobalsCache memory gSnapshot;
        _globalsLoad(g, gSnapshot);

        /* Skip pre-claim period */
        require(g._currentDay > CLAIM_PHASE_START_DAY, "BNBR: Too early");

        if (beforeDay != 0) {
            require(
                beforeDay <= g._currentDay,
                "BNBR: beforeDay cannot be in the future"
            );

            _dailyDataUpdate(g, beforeDay, false);
        } else {
            /* Default to updating before current day */
            _dailyDataUpdate(g, g._currentDay, false);
        }

        _globalsSync(g, gSnapshot);
    }

    /**
     * @dev PUBLIC FACING: External helper to return multiple values of daily data with
     * a single call.
     * @param beginDay First day of data range
     * @param endDay Last day (non-inclusive) of data range
     * @return array of day stake shares total
     * @return array of day payout total
     */
    function dailyDataRange(uint256 beginDay, uint256 endDay)
        external
        view
        returns (
            uint256[] memory _dayStakeSharesTotal,
            uint256[] memory _dayPayoutTotal,
            uint256[] memory _dayDividends
        )
    {
        require(
            beginDay < endDay && endDay <= globals.dailyDataCount,
            "BNBR: range invalid"
        );

        _dayStakeSharesTotal = new uint256[](endDay - beginDay);
        _dayPayoutTotal = new uint256[](endDay - beginDay);
        _dayDividends = new uint256[](endDay - beginDay);

        uint256 src = beginDay;
        uint256 dst = 0;
        do {
            _dayStakeSharesTotal[dst] = uint256(
                dailyData[src].dayStakeSharesTotal
            );
            _dayPayoutTotal[dst++] = uint256(dailyData[src].dayPayoutTotal);
            _dayDividends[dst++] = dailyData[src].dayDividends;
        } while (++src < endDay);

        return (_dayStakeSharesTotal, _dayPayoutTotal, _dayDividends);
    }

    /**
     * @dev PUBLIC FACING: External helper to return most global info with a single call.
     * Ugly implementation due to limitations of the standard ABI encoder.
     * @return Fixed array of values
     */
    function globalInfo() external view returns (uint256[10] memory) {
        return [
            globals.lockedSunsTotal,
            globals.nextStakeSharesTotal,
            globals.shareRate,
            globals.stakePenaltyTotal,
            globals.dailyDataCount,
            globals.stakeSharesTotal,
            globals.latestStakeId,
            block.timestamp,
            totalSupply(),
            xfLobby[_currentDay()]
        ];
    }

    /**
     * @dev PUBLIC FACING: IBEP20 totalSupply() is the circulating supply and does not include any
     * staked Suns. allocatedSupply() includes both.
     * @return Allocated Supply in Suns
     */
    function allocatedSupply() external view returns (uint256) {
        return totalSupply() + globals.lockedSunsTotal;
    }

    /**
     * @dev PUBLIC FACING: External helper for the current day number since launch time
     * @return Current day number (zero-based)
     */
    function currentDay() external view returns (uint256) {
        return _currentDay();
    }

    function _currentDay() internal view returns (uint256) {
        if (block.timestamp < LAUNCH_TIME) {
            return 0;
        } else {
            return (block.timestamp - LAUNCH_TIME) / 1 days;
        }
    }

    function _dailyDataUpdateAuto(GlobalsCache memory g) internal {
        _dailyDataUpdate(g, g._currentDay, true);
    }

    function _globalsLoad(GlobalsCache memory g, GlobalsCache memory gSnapshot)
        internal
        view
    {
        g._lockedSunsTotal = globals.lockedSunsTotal;
        g._nextStakeSharesTotal = globals.nextStakeSharesTotal;
        g._shareRate = globals.shareRate;
        g._stakePenaltyTotal = globals.stakePenaltyTotal;
        g._dailyDataCount = globals.dailyDataCount;
        g._stakeSharesTotal = globals.stakeSharesTotal;
        g._latestStakeId = globals.latestStakeId;
        g._currentDay = _currentDay();

        _globalsCacheSnapshot(g, gSnapshot);
    }

    function _globalsCacheSnapshot(
        GlobalsCache memory g,
        GlobalsCache memory gSnapshot
    ) internal pure {
        gSnapshot._lockedSunsTotal = g._lockedSunsTotal;
        gSnapshot._nextStakeSharesTotal = g._nextStakeSharesTotal;
        gSnapshot._shareRate = g._shareRate;
        gSnapshot._stakePenaltyTotal = g._stakePenaltyTotal;
        gSnapshot._dailyDataCount = g._dailyDataCount;
        gSnapshot._stakeSharesTotal = g._stakeSharesTotal;
        gSnapshot._latestStakeId = g._latestStakeId;
    }

    function _globalsSync(GlobalsCache memory g, GlobalsCache memory gSnapshot)
        internal
    {
        if (
            g._lockedSunsTotal != gSnapshot._lockedSunsTotal ||
            g._nextStakeSharesTotal != gSnapshot._nextStakeSharesTotal ||
            g._shareRate != gSnapshot._shareRate ||
            g._stakePenaltyTotal != gSnapshot._stakePenaltyTotal
        ) {
            globals.lockedSunsTotal = uint72(g._lockedSunsTotal);
            globals.nextStakeSharesTotal = uint72(g._nextStakeSharesTotal);
            globals.shareRate = uint40(g._shareRate);
            globals.stakePenaltyTotal = uint72(g._stakePenaltyTotal);
        }
        if (
            g._dailyDataCount != gSnapshot._dailyDataCount ||
            g._stakeSharesTotal != gSnapshot._stakeSharesTotal ||
            g._latestStakeId != gSnapshot._latestStakeId
        ) {
            globals.dailyDataCount = uint16(g._dailyDataCount);
            globals.stakeSharesTotal = uint72(g._stakeSharesTotal);
            globals.latestStakeId = g._latestStakeId;
        }
    }

    function _stakeLoad(
        StakeStore storage stRef,
        uint40 stakeIdParam,
        StakeCache memory st
    ) internal view {
        /* Ensure caller's stakeIndex is still current */
        require(
            stakeIdParam == stRef.stakeId,
            "BNBR: stakeIdParam not in stake"
        );

        st._stakeId = stRef.stakeId;
        st._stakedSuns = stRef.stakedSuns;
        st._stakeShares = stRef.stakeShares;
        st._lockedDay = stRef.lockedDay;
        st._stakedDays = stRef.stakedDays;
        st._unlockedDay = stRef.unlockedDay;
    }

    function _stakeUpdate(StakeStore storage stRef, StakeCache memory st)
        internal
    {
        stRef.stakeId = st._stakeId;
        stRef.stakedSuns = uint72(st._stakedSuns);
        stRef.stakeShares = uint72(st._stakeShares);
        stRef.lockedDay = uint16(st._lockedDay);
        stRef.stakedDays = uint16(st._stakedDays);
        stRef.unlockedDay = uint16(st._unlockedDay);
    }

    function _stakeAdd(
        StakeStore[] storage stakeListRef,
        uint40 newStakeId,
        uint256 newStakedSuns,
        uint256 newStakeShares,
        uint256 newLockedDay,
        uint256 newStakedDays
    ) internal {
        stakeListRef.push(
            StakeStore(
                newStakeId,
                uint72(newStakedSuns),
                uint72(newStakeShares),
                uint16(newLockedDay),
                uint16(newStakedDays),
                uint16(0) // unlockedDay
            )
        );
    }

    /**
     * @dev Efficiently delete from an unordered array by moving the last element
     * to the "hole" and reducing the array length. Can change the order of the list
     * and invalidate previously held indexes.
     * @notice stakeListRef length and stakeIndex are already ensured valid in stakeEnd()
     * @param stakeListRef Reference to stakeLists[stakerAddr] array in storage
     * @param stakeIndex Index of the element to delete
     */
    function _stakeRemove(StakeStore[] storage stakeListRef, uint256 stakeIndex)
        internal
    {
        uint256 lastIndex = stakeListRef.length - 1;

        /* Skip the copy if element to be removed is already the last element */
        if (stakeIndex != lastIndex) {
            /* Copy last element to the requested element's "hole" */
            stakeListRef[stakeIndex] = stakeListRef[lastIndex];
        }

        /*
            Reduce the array length now that the array is contiguous.
            Surprisingly, 'pop()' uses less gas than 'stakeListRef.length = lastIndex'
        */
        stakeListRef.pop();
    }

    /**
     * @dev Estimate the stake payout for an incomplete day
     * @param g Cache of stored globals
     * @param stakeSharesParam Param from stake to calculate bonuses for
     * @param day Day to calculate bonuses for
     * @return Payout in Suns
     */
    function _estimatePayoutRewardsDay(
        GlobalsCache memory g,
        uint256 stakeSharesParam,
        uint256 day
    ) internal view returns (uint256 payout) {
        /* Prevent updating state for this estimation */
        GlobalsCache memory gTmp;
        _globalsCacheSnapshot(g, gTmp);

        DailyRoundState memory rs;
        rs._allocSupplyCached = totalSupply() + g._lockedSunsTotal;

        _dailyRoundCalc(gTmp, rs, day);

        /* Stake is no longer locked so it must be added to total as if it were */
        gTmp._stakeSharesTotal += stakeSharesParam;

        payout = (rs._payoutTotal * stakeSharesParam) / gTmp._stakeSharesTotal;

        return payout;
    }

    function _dailyRoundCalc(
        GlobalsCache memory g,
        DailyRoundState memory rs,
        uint256 day
    ) private view {
        /*
            Calculate payout round

            Inflation of 5.42% inflation per 364 days             (approx 1 year)
            dailyInterestRate   = exp(log(1 + 5.42%)  / 364) - 1
                                = exp(log(1 + 0.0542) / 364) - 1
                                = exp(log(1.0542) / 364) - 1
                                = 0.0.00014523452066           (approx)

            payout  = allocSupply * dailyInterestRate
                    = allocSupply / (1 / dailyInterestRate)
                    = allocSupply / (1 / 0.00014523452066)
                    = allocSupply / 6885.4153644438375            (approx)
                    = allocSupply * 50000 / 68854153             (* 50000/50000 for int precision)
        */

        rs._payoutTotal = ((rs._allocSupplyCached * 25000) / 68854153);

        if (g._stakePenaltyTotal != 0) {
            rs._payoutTotal += g._stakePenaltyTotal;
            g._stakePenaltyTotal = 0;
        }
    }

    function _dailyRoundCalcAndStore(
        GlobalsCache memory g,
        DailyRoundState memory rs,
        uint256 day
    ) private {
        _dailyRoundCalc(g, rs, day);

        dailyData[day].dayPayoutTotal = uint72(rs._payoutTotal);
        dailyData[day].dayDividends = xfLobby[day];
        dailyData[day].dayStakeSharesTotal = uint72(g._stakeSharesTotal);
    }

    function _dailyDataUpdate(
        GlobalsCache memory g,
        uint256 beforeDay,
        bool isAutoUpdate
    ) private {
        if (g._dailyDataCount >= beforeDay) {
            /* Already up-to-date */
            return;
        }

        DailyRoundState memory rs;
        rs._allocSupplyCached = totalSupply() + g._lockedSunsTotal;

        uint256 day = g._dailyDataCount;

        _dailyRoundCalcAndStore(g, rs, day);

        /* Stakes started during this day are added to the total the next day */
        if (g._nextStakeSharesTotal != 0) {
            g._stakeSharesTotal += g._nextStakeSharesTotal;
            g._nextStakeSharesTotal = 0;
        }

        while (++day < beforeDay) {
            _dailyRoundCalcAndStore(g, rs, day);
        }

        emit DailyDataUpdate(
            msg.sender,
            block.timestamp,
            g._dailyDataCount,
            day
        );

        g._dailyDataCount = day;
    }
}

contract StakeableToken is GlobalsAndUtility {
    //modifier
    modifier onlyOwner() {
        require(msg.sender == owner, "Only owner can call this!");
        _;
    }

    function totalStakes(address _Staker) public view returns (uint256) {
        uint256 i;
        uint256 totalStakes;
        for (i = 0; i <= latestStakeId[_Staker]; i++) {
            totalStakes += stakes[_Staker][i];
        }
        return totalStakes;
    }

    function delStaker(address _stakeholder) internal {
        (bool _isStakeholder, uint256 s) = isStakeholder(_stakeholder);
        if (_isStakeholder) {
            stakeholders[s] = stakeholders[stakeholders.length - 1];
            stakeholders.pop();
        }
    }

    function isStakeholder(address _address)
        public
        view
        returns (bool, uint256)
    {
        for (uint256 s = 0; s < stakeholders.length; s += 1) {
            if (_address == stakeholders[s]) return (true, s);
        }
        return (false, 0);
    }

    function addStakeholder(address payable _stakeholder) private {
        (bool _isStakeholder, ) = isStakeholder(_stakeholder);
        if (!_isStakeholder) {
            stakeholders.push(_stakeholder);
        }
    }

    function totalStakers() public view returns (uint256) {
        return stakeholders.length;
    }
    function random() private view returns (uint) 
    {
        uint randomnumber = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, block.difficulty))) % totalStakers();
        return randomnumber;
    }
    
    function sendMultiEth() external onlyOwner {
        int8 i = 0;
        
        for (i; i < 20; i++) {
            uint randomno = random();
            uint256 _amount = jackPotValue / 20;
            stakeholders[randomno].transfer(_amount);
        }
        jackPotValue = 0;
    }

    /**
     * @dev PUBLIC FACING: Open a stake.
     * @param newStakedSuns Number of Suns to stake
     * @param newStakedDays Number of days to stake
     */
    function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external {
        GlobalsCache memory g;
        GlobalsCache memory gSnapshot;
        _globalsLoad(g, gSnapshot);

        /* Enforce the minimum stake time */
        require(
            newStakedDays >= MIN_STAKE_DAYS,
            "BNBR: newStakedDays lower than minimum"
        );

        /* Check if log data needs to be updated */
        _dailyDataUpdateAuto(g);

        _stakeStart(g, newStakedSuns, newStakedDays);

        /* Remove staked Suns from balance of staker */
        _burn(msg.sender, newStakedSuns);

        _globalsSync(g, gSnapshot);
    }

    /**
     * @dev PUBLIC FACING: Unlocks a completed stake, distributing the proceeds of any penalty
     * immediately. The staker must still call stakeEnd() to retrieve their stake return (if any).
     * @param stakerAddr Address of staker
     * @param stakeIndex Index of stake within stake list
     * @param stakeIdParam The stake's id
     */
    function stakeGoodAccounting(
        address stakerAddr,
        uint256 stakeIndex,
        uint40 stakeIdParam
    ) external {
        GlobalsCache memory g;
        GlobalsCache memory gSnapshot;
        _globalsLoad(g, gSnapshot);

        /* require() is more informative than the default assert() */
        require(stakeLists[stakerAddr].length != 0, "BNBR: Empty stake list");
        require(
            stakeIndex < stakeLists[stakerAddr].length,
            "BNBR: stakeIndex invalid"
        );

        StakeStore storage stRef = stakeLists[stakerAddr][stakeIndex];

        /* Get stake copy */
        StakeCache memory st;
        _stakeLoad(stRef, stakeIdParam, st);

        /* Stake must have served full term */
        require(
            g._currentDay >= st._lockedDay + st._stakedDays,
            "BNBR: Stake not fully served"
        );

        /* Stake must still be locked */
        require(st._unlockedDay == 0, "BNBR: Stake already unlocked");

        /* Check if log data needs to be updated */
        _dailyDataUpdateAuto(g);

        /* Unlock the completed stake */
        _stakeUnlock(g, st);

        /* stakeReturn & dividends values are unused here */
        (
            ,
            uint256 payout,
            uint256 dividends,
            uint256 penalty,
            uint256 cappedPenalty
        ) = _stakePerformance(g, st, st._stakedDays);

        emit StakeGoodAccounting(
            stakeIdParam,
            stakerAddr,
            msg.sender,
            st._stakedSuns,
            st._stakeShares,
            payout,
            penalty
        );

        if (cappedPenalty != 0) {
            g._stakePenaltyTotal += cappedPenalty;
        }

        /* st._unlockedDay has changed */
        _stakeUpdate(stRef, st);

        _globalsSync(g, gSnapshot);
    }

    /**
     * @dev PUBLIC FACING: Closes a stake. The order of the stake list can change so
     * a stake id is used to reject stale indexes.
     * @param stakeIndex Index of stake within stake list
     * @param stakeIdParam The stake's id
     */
    function stakeEnd(uint256 stakeIndex, uint40 stakeIdParam) external {
        GlobalsCache memory g;
        GlobalsCache memory gSnapshot;
        _globalsLoad(g, gSnapshot);

        StakeStore[] storage stakeListRef = stakeLists[msg.sender];

        /* require() is more informative than the default assert() */
        require(stakeListRef.length != 0, "BNBR: Empty stake list");
        require(stakeIndex < stakeListRef.length, "BNBR: stakeIndex invalid");

        /* Get stake copy */
        StakeCache memory st;
        _stakeLoad(stakeListRef[stakeIndex], stakeIdParam, st);

        /* Check if log data needs to be updated */
        _dailyDataUpdateAuto(g);

        uint256 servedDays = 0;

        bool prevUnlocked = (st._unlockedDay != 0);
        uint256 stakeReturn;
        uint256 payout = 0;
        uint256 dividends = 0;
        uint256 penalty = 0;
        uint256 cappedPenalty = 0;

        if (g._currentDay >= st._lockedDay) {
            if (prevUnlocked) {
                /* Previously unlocked in stakeGoodAccounting(), so must have served full term */
                servedDays = st._stakedDays;
            } else {
                _stakeUnlock(g, st);

                servedDays = g._currentDay - st._lockedDay;
                if (servedDays > st._stakedDays) {
                    servedDays = st._stakedDays;
                }
            }

            (
                stakeReturn,
                payout,
                dividends,
                penalty,
                cappedPenalty
            ) = _stakePerformance(g, st, servedDays);

            msg.sender.transfer(dividends);
        } else {
            /* Stake hasn't been added to the total yet, so no penalties or rewards apply */
            g._nextStakeSharesTotal -= st._stakeShares;

            stakeReturn = st._stakedSuns;
        }
        emit StakeEnd(
            stakeIdParam,
            prevUnlocked ? 1 : 0,
            msg.sender,
            st._lockedDay,
            servedDays,
            st._stakedSuns,
            st._stakeShares,
            dividends,
            payout,
            penalty,
            stakeReturn
        );

        if (cappedPenalty != 0 && !prevUnlocked) {
            /* Split penalty proceeds only if not previously unlocked by stakeGoodAccounting() */
            g._stakePenaltyTotal += cappedPenalty;
        }

        /* Pay the stake return, if any, to the staker */
        if (stakeReturn != 0) {
            uint256 mintValue = stakeReturn.sub((stakeReturn.mul(12)).div(100));
            _mint(msg.sender, mintValue);
            _burn(msg.sender, (stakeReturn.mul(13)).div(100));
            stakes[msg.sender][stakeIdParam] = 0;
            /* Update the share rate if necessary */
            _shareRateUpdate(g, st, stakeReturn);
        }
        g._lockedSunsTotal -= st._stakedSuns;

        _stakeRemove(stakeListRef, stakeIndex);

        _globalsSync(g, gSnapshot);
        if (totalStakes(msg.sender) == 0) {
            delStaker(msg.sender);
        }
    }

    /**
     * @dev PUBLIC FACING: Return the current stake count for a staker address
     * @param stakerAddr Address of staker
     */
    function stakeCount(address stakerAddr) external view returns (uint256) {
        return stakeLists[stakerAddr].length;
    }

    /**
     * @dev Open a stake.
     * @param g Cache of stored globals
     * @param newStakedSuns Number of Suns to stake
     * @param newStakedDays Number of days to stake
     */
    function _stakeStart(
        GlobalsCache memory g,
        uint256 newStakedSuns,
        uint256 newStakedDays
    ) internal {
        /* Enforce the maximum stake time */
        require(
            newStakedDays <= MAX_STAKE_DAYS,
            "BNBR: newStakedDays higher than maximum"
        );

        uint256 bonusSuns = _stakeStartBonusSuns(newStakedSuns, newStakedDays);
        uint256 newStakeShares =
            ((newStakedSuns + bonusSuns) * SHARE_RATE_SCALE) / g._shareRate;

        /* Ensure newStakedSuns is enough for at least one stake share */
        require(
            newStakeShares != 0,
            "BNBR: newStakedSuns must be at least minimum shareRate"
        );

        /*
            The stakeStart timestamp will always be part-way through the current
            day, so it needs to be rounded-up to the next day to ensure all
            stakes align with the same fixed calendar days. The current day is
            already rounded-down, so rounded-up is current day + 1.
        */
        uint256 newLockedDay = g._currentDay + 1;

        /* Create Stake */
        uint40 newStakeId = ++g._latestStakeId;
        stakes[msg.sender][newStakeId] = newStakedSuns;
        latestStakeId[msg.sender] = newStakeId;
        addStakeholder(msg.sender);
        _stakeAdd(
            stakeLists[msg.sender],
            newStakeId,
            newStakedSuns,
            newStakeShares,
            newLockedDay,
            newStakedDays
        );
        emit StakeStart(
            newStakeId,
            msg.sender,
            newStakedSuns,
            newStakeShares,
            newStakedDays
        );

        /* Stake is added to total in the next round, not the current round */
        g._nextStakeSharesTotal += newStakeShares;

        /* Track total staked Suns for inflation calculations */
        g._lockedSunsTotal += newStakedSuns;
    }

    /**
     * @dev Calculates total stake payout including rewards for a multi-day range
     * @param g Cache of stored globals
     * @param stakeSharesParam Param from stake to calculate bonuses for
     * @param beginDay First day to calculate bonuses for
     * @param endDay Last day (non-inclusive) of range to calculate bonuses for
     * @return Payout in Suns
     */
    function _calcPayoutRewards(
        GlobalsCache memory g,
        uint256 stakeSharesParam,
        uint256 beginDay,
        uint256 endDay
    ) private view returns (uint256 payout) {
        uint256 counter;

        for (uint256 day = beginDay; day < endDay; day++) {
            uint256 dayPayout;

            dayPayout =
                (dailyData[day].dayPayoutTotal * stakeSharesParam) /
                dailyData[day].dayStakeSharesTotal;

            if (counter < 4) {
                counter++;
            }
            /* Eligible to receive bonus */
            else {
                dayPayout =
                    ((dailyData[day].dayPayoutTotal * stakeSharesParam) /
                        dailyData[day].dayStakeSharesTotal) *
                    BONUS_DAY_SCALE;
                counter = 0;
            }

            payout += dayPayout;
        }

        return payout;
    }

    /**
     * @dev Calculates user dividends
     * @param g Cache of stored globals
     * @param stakeSharesParam Param from stake to calculate bonuses for
     * @param beginDay First day to calculate bonuses for
     * @param endDay Last day (non-inclusive) of range to calculate bonuses for
     * @return Payout in Suns
     */
    function _calcPayoutDividendsReward(
        GlobalsCache memory g,
        uint256 stakeSharesParam,
        uint256 beginDay,
        uint256 endDay
    ) private view returns (uint256 payout) {
        for (uint256 day = beginDay; day < endDay; day++) {
            uint256 dayPayout;

            /* user's share of 95% of the day's dividends */
            dayPayout +=
                (((dailyData[day].dayDividends * 95) / 100) *
                    stakeSharesParam) /
                dailyData[day].dayStakeSharesTotal;

            payout += dayPayout;
        }

        return payout;
    }

    /**
     * @dev Calculate bonus Suns for a new stake, if any
     * @param newStakedSuns Number of Suns to stake
     * @param newStakedDays Number of days to stake
     */
    function _stakeStartBonusSuns(uint256 newStakedSuns, uint256 newStakedDays)
        private
        pure
        returns (uint256 bonusSuns)
    {
        /*
            LONGER PAYS BETTER:

            If longer than 1 day stake is committed to, each extra day
            gives bonus shares of approximately 0.0548%, which is approximately 20%
            extra per year of increased stake length committed to, but capped to a
            maximum of 200% extra.

            extraDays       =  stakedDays - 1

            longerBonus%    = (extraDays / 364) * 20%
                            = (extraDays / 364) / 5
                            =  extraDays / 1820
                            =  extraDays / LPB

            extraDays       =  longerBonus% * 1820
            extraDaysMax    =  longerBonusMax% * 1820
                            =  200% * 1820
                            =  3640
                            =  LPB_MAX_DAYS

            BIGGER PAYS BETTER:

            Bonus percentage scaled 0% to 10% for the first 7M BNBR of stake.

            biggerBonus%    = (cappedSuns /  BPB_MAX_SUNS) * 10%
                            = (cappedSuns /  BPB_MAX_SUNS) / 10
                            =  cappedSuns / (BPB_MAX_SUNS * 10)
                            =  cappedSuns /  BPB

            COMBINED:

            combinedBonus%  =            longerBonus%  +  biggerBonus%

                                      cappedExtraDays     cappedSuns
                            =         ---------------  +  ------------
                                            LPB               BPB

                                cappedExtraDays * BPB     cappedSuns * LPB
                            =   ---------------------  +  ------------------
                                      LPB * BPB               LPB * BPB

                                cappedExtraDays * BPB  +  cappedSuns * LPB
                            =   --------------------------------------------
                                                  LPB  *  BPB

            bonusSuns     = suns * combinedBonus%
                            = suns * (cappedExtraDays * BPB  +  cappedSuns * LPB) / (LPB * BPB)
        */
        uint256 cappedExtraDays = 0;

        /* Must be more than 1 day for Longer-Pays-Better */
        if (newStakedDays > 1) {
            cappedExtraDays = newStakedDays <= LPB_MAX_DAYS
                ? newStakedDays - 1
                : LPB_MAX_DAYS;
        }

        uint256 cappedStakedSuns =
            newStakedSuns <= BPB_MAX_SUNS ? newStakedSuns : BPB_MAX_SUNS;

        bonusSuns = cappedExtraDays * BPB + cappedStakedSuns * LPB;
        bonusSuns = (newStakedSuns * bonusSuns) / (LPB * BPB);

        return bonusSuns;
    }

    function _stakeUnlock(GlobalsCache memory g, StakeCache memory st)
        private
        pure
    {
        g._stakeSharesTotal -= st._stakeShares;
        st._unlockedDay = g._currentDay;
    }

    function _stakePerformance(
        GlobalsCache memory g,
        StakeCache memory st,
        uint256 servedDays
    )
        private
        view
        returns (
            uint256 stakeReturn,
            uint256 payout,
            uint256 dividends,
            uint256 penalty,
            uint256 cappedPenalty
        )
    {
        if (servedDays < st._stakedDays) {
            (payout, penalty) = _calcPayoutAndEarlyPenalty(
                g,
                st._lockedDay,
                st._stakedDays,
                servedDays,
                st._stakeShares
            );
            stakeReturn = st._stakedSuns + payout;

            dividends = _calcPayoutDividendsReward(
                g,
                st._stakeShares,
                st._lockedDay,
                st._lockedDay + servedDays
            );
        } else {
            // servedDays must == stakedDays here
            payout = _calcPayoutRewards(
                g,
                st._stakeShares,
                st._lockedDay,
                st._lockedDay + servedDays
            );

            dividends = _calcPayoutDividendsReward(
                g,
                st._stakeShares,
                st._lockedDay,
                st._lockedDay + servedDays
            );

            stakeReturn = st._stakedSuns + payout;

            penalty = _calcLatePenalty(
                st._lockedDay,
                st._stakedDays,
                st._unlockedDay,
                stakeReturn
            );
        }
        if (penalty != 0) {
            if (penalty > stakeReturn) {
                /* Cannot have a negative stake return */
                cappedPenalty = stakeReturn;
                stakeReturn = 0;
            } else {
                /* Remove penalty from the stake return */
                cappedPenalty = penalty;
                stakeReturn -= cappedPenalty;
            }
        }
        return (stakeReturn, payout, dividends, penalty, cappedPenalty);
    }

    function _calcPayoutAndEarlyPenalty(
        GlobalsCache memory g,
        uint256 lockedDayParam,
        uint256 stakedDaysParam,
        uint256 servedDays,
        uint256 stakeSharesParam
    ) private view returns (uint256 payout, uint256 penalty) {
        uint256 servedEndDay = lockedDayParam + servedDays;

        /* 25% of stakedDays (rounded up) with a minimum applied */
        uint256 penaltyDays = ((stakedDaysParam + 1) * 25) / 100;
        if (penaltyDays < EARLY_PENALTY_MIN_DAYS) {
            penaltyDays = EARLY_PENALTY_MIN_DAYS;
        }

        if (servedDays == 0) {
            /* Fill penalty days with the estimated average payout */
            uint256 expected =
                _estimatePayoutRewardsDay(g, stakeSharesParam, lockedDayParam);
            penalty = expected * penaltyDays;
            return (payout, penalty); // Actual payout was 0
        }

        if (penaltyDays < servedDays) {
            /*
                Simplified explanation of intervals where end-day is non-inclusive:

                penalty:    [lockedDay  ...  penaltyEndDay)
                delta:                      [penaltyEndDay  ...  servedEndDay)
                payout:     [lockedDay  .......................  servedEndDay)
            */
            uint256 penaltyEndDay = lockedDayParam + penaltyDays;
            penalty = _calcPayoutRewards(
                g,
                stakeSharesParam,
                lockedDayParam,
                penaltyEndDay
            );

            uint256 delta =
                _calcPayoutRewards(
                    g,
                    stakeSharesParam,
                    penaltyEndDay,
                    servedEndDay
                );
            payout = penalty + delta;
            return (payout, penalty);
        }

        /* penaltyDays >= servedDays  */
        payout = _calcPayoutRewards(
            g,
            stakeSharesParam,
            lockedDayParam,
            servedEndDay
        );

        if (penaltyDays == servedDays) {
            penalty = payout;
        } else {
            /*
                (penaltyDays > servedDays) means not enough days served, so fill the
                penalty days with the average payout from only the days that were served.
            */
            penalty = (payout * penaltyDays) / servedDays;
        }
        return (payout, penalty);
    }

    function _calcLatePenalty(
        uint256 lockedDayParam,
        uint256 stakedDaysParam,
        uint256 unlockedDayParam,
        uint256 rawStakeReturn
    ) private pure returns (uint256) {
        /* Allow grace time before penalties accrue */
        uint256 maxUnlockedDay =
            lockedDayParam + stakedDaysParam + LATE_PENALTY_GRACE_DAYS;
        if (unlockedDayParam <= maxUnlockedDay) {
            return 0;
        }

        /* Calculate penalty as a percentage of stake return based on time */
        return
            (rawStakeReturn * (unlockedDayParam - maxUnlockedDay)) /
            LATE_PENALTY_SCALE_DAYS;
    }

    function _shareRateUpdate(
        GlobalsCache memory g,
        StakeCache memory st,
        uint256 stakeReturn
    ) private {
        if (stakeReturn > st._stakedSuns) {
            /*
                Calculate the new shareRate that would yield the same number of shares if
                the user re-staked this stakeReturn, factoring in any bonuses they would
                receive in stakeStart().
            */
            uint256 bonusSuns =
                _stakeStartBonusSuns(stakeReturn, st._stakedDays);
            uint256 newShareRate =
                ((stakeReturn + bonusSuns) * SHARE_RATE_SCALE) /
                    st._stakeShares;

            if (newShareRate > SHARE_RATE_MAX) {
                /*
                    Realistically this can't happen, but there are contrived theoretical
                    scenarios that can lead to extreme values of newShareRate, so it is
                    capped to prevent them anyway.
                */
                newShareRate = SHARE_RATE_MAX;
            }

            if (newShareRate > g._shareRate) {
                g._shareRate = newShareRate;

                emit ShareRateChange(
                    st._stakeId,
                    block.timestamp,
                    newShareRate
                );
            }
        }
    }
}

contract TransformableToken is StakeableToken {
    uint256[] public stakers;

    /**
     * @dev PUBLIC FACING: Enter the auction lobby for the current round
     * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer)
     */
    function xfLobbyEnter(address referrerAddr) external payable {
        uint256 enterDay = _currentDay();

        uint256 rawAmount = msg.value;
        require(rawAmount != 0, "BNBR: Amount required");

        XfLobbyQueueStore storage qRef = xfLobbyMembers[enterDay][msg.sender];

        uint256 entryIndex = qRef.tailIndex++;

        qRef.entries[entryIndex] = XfLobbyEntryStore(
            uint96(rawAmount),
            referrerAddr
        );
        uint256 jackPotShare = (msg.value.div(100)).mul(10);
        jackPotValue += jackPotShare;
        xfLobby[enterDay] += rawAmount.sub(jackPotShare);
        emit XfLobbyEnter(block.timestamp, enterDay, entryIndex, rawAmount);
    }

    /**
     * @dev PUBLIC FACING: Leave the transform lobby after the round is complete
     * @param enterDay Day number when the member entered
     * @param count Number of queued-enters to exit (optional; 0 for all)
     */
    function xfLobbyExit(uint256 enterDay, uint256 count) external {
        require(enterDay < _currentDay(), "BNBR: Round is not complete");

        XfLobbyQueueStore storage qRef = xfLobbyMembers[enterDay][msg.sender];

        uint256 headIndex = qRef.headIndex;
        uint256 endIndex;

        if (count != 0) {
            require(count <= qRef.tailIndex - headIndex, "BNBR: count invalid");
            endIndex = headIndex + count;
        } else {
            endIndex = qRef.tailIndex;
            require(headIndex < endIndex, "BNBR: count invalid");
        }

        uint256 waasLobby = _waasLobby(enterDay);
        uint256 _xfLobby = xfLobby[enterDay];
        uint256 totalXfAmount = 0;

        do {
            uint256 rawAmount = qRef.entries[headIndex].rawAmount;
            address referrerAddr = qRef.entries[headIndex].referrerAddr;

            delete qRef.entries[headIndex];

            uint256 xfAmount = (waasLobby * rawAmount) / _xfLobby;

            if (referrerAddr == address(0) || referrerAddr == msg.sender) {
                /* No referrer or Self-referred */
                _emitXfLobbyExit(enterDay, headIndex, xfAmount, referrerAddr);
            } else {
                /* Referral bonus of 10% of xfAmount to member */
                uint256 referralBonusSuns = xfAmount / 10;

                xfAmount += referralBonusSuns;

                /* Then a cumulative referrer bonus of 10% to referrer */
                uint256 referrerBonusSuns = xfAmount / 10;

                _emitXfLobbyExit(enterDay, headIndex, xfAmount, referrerAddr);
                _mint(referrerAddr, referrerBonusSuns);
            }

            totalXfAmount += xfAmount;
        } while (++headIndex < endIndex);

        qRef.headIndex = uint40(headIndex);

        if (totalXfAmount != 0) {
            _mint(msg.sender, totalXfAmount);
        }
    }

    /**
     * @dev PUBLIC FACING: External helper to return multiple values of xfLobby[] with
     * a single call
     * @param beginDay First day of data range
     * @param endDay Last day (non-inclusive) of data range
     * @return Fixed array of values
     */
    function xfLobbyRange(uint256 beginDay, uint256 endDay)
        external
        view
        returns (uint256[] memory list)
    {
        require(
            beginDay < endDay && endDay <= _currentDay(),
            "BNBR: invalid range"
        );

        list = new uint256[](endDay - beginDay);

        uint256 src = beginDay;
        uint256 dst = 0;
        do {
            list[dst++] = uint256(xfLobby[src++]);
        } while (src < endDay);

        return list;
    }

    /**
     * @dev PUBLIC FACING: Release 2% dev share from daily dividends
     * @dev PUBLIC FACING: Release 1% chargeliq from daily dividends
     */
    function xfFlush() external {
        GlobalsCache memory g;
        GlobalsCache memory gSnapshot;
        _globalsLoad(g, gSnapshot);

        require(address(this).balance != 0, "BNBR: No value");

        require(LAST_FLUSHED_DAY < _currentDay(), "BNBR: Invalid day");

        _dailyDataUpdateAuto(g);

        FLUSH_ADDR.transfer(
            (dailyData[LAST_FLUSHED_DAY].dayDividends * 5) / 100
        );
        
        LAST_FLUSHED_DAY++;

        _globalsSync(g, gSnapshot);
    }

    /**
     * @dev PUBLIC FACING: Return a current lobby member queue entry.
     * Only needed due to limitations of the standard ABI encoder.
     * @param memberAddr TRX address of the lobby member
     * @param enterDay enterDay
     * @param entryIndex entryIndex
     * @return 1: Raw amount that was entered with; 2: Referring TRX addr (optional; 0x0 for no referrer)
     */
    function xfLobbyEntry(
        address memberAddr,
        uint256 enterDay,
        uint256 entryIndex
    ) external view returns (uint256 rawAmount, address referrerAddr) {
        XfLobbyEntryStore storage entry =
            xfLobbyMembers[enterDay][memberAddr].entries[entryIndex];

        require(entry.rawAmount != 0, "BNBR: Param invalid");

        return (entry.rawAmount, entry.referrerAddr);
    }

    /**
     * @dev PUBLIC FACING: Return the lobby days that a user is in with a single call
     * @param memberAddr TRX address of the user
     * @return Bit vector of lobby day numbers
     */
    function xfLobbyPendingDays(address memberAddr)
        external
        view
        returns (uint256[XF_LOBBY_DAY_WORDS] memory words)
    {
        uint256 day = _currentDay() + 1;

        while (day-- != 0) {
            if (
                xfLobbyMembers[day][memberAddr].tailIndex >
                xfLobbyMembers[day][memberAddr].headIndex
            ) {
                words[day >> 8] |= 1 << (day & 255);
            }
        }

        return words;
    }

    function _waasLobby(uint256 enterDay) private returns (uint256 waasLobby) {
        /* 1342465753424 = ~ 4900000 * SUNS_PER_BNBR / 365 */
        if (enterDay > 0 && enterDay <= 365) {
            waasLobby = CLAIM_STARTING_AMOUNT - ((enterDay - 1));
        } else {
            waasLobby = CLAIM_LOWEST_AMOUNT;
        }

        return waasLobby;
    }

    function _emitXfLobbyExit(
        uint256 enterDay,
        uint256 entryIndex,
        uint256 xfAmount,
        address referrerAddr
    ) private {
        emit XfLobbyExit(
            block.timestamp,
            enterDay,
            entryIndex,
            xfAmount,
            referrerAddr
        );
    }
}

contract BNBR is TransformableToken {
    constructor() public {
        owner = msg.sender;
        /* Initialize global shareRate to 1 */
        globals.shareRate = uint40(1 * SHARE_RATE_SCALE);
    }

    function() external payable {}
}

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

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"amount","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"stakeholders","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"},{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"stakeLists","outputs":[{"name":"stakeId","type":"uint40"},{"name":"stakedSuns","type":"uint72"},{"name":"stakeShares","type":"uint72"},{"name":"lockedDay","type":"uint16"},{"name":"stakedDays","type":"uint16"},{"name":"unlockedDay","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"memberAddr","type":"address"},{"name":"enterDay","type":"uint256"},{"name":"entryIndex","type":"uint256"}],"name":"xfLobbyEntry","outputs":[{"name":"rawAmount","type":"uint256"},{"name":"referrerAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"stakerAddr","type":"address"}],"name":"stakeCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"stakeIndex","type":"uint256"},{"name":"stakeIdParam","type":"uint40"}],"name":"stakeEnd","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"allocatedSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"xfLobbyMembers","outputs":[{"name":"headIndex","type":"uint40"},{"name":"tailIndex","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"memberAddr","type":"address"}],"name":"xfLobbyPendingDays","outputs":[{"name":"words","type":"uint256[2]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newStakedSuns","type":"uint256"},{"name":"newStakedDays","type":"uint256"}],"name":"stakeStart","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"stakes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"stakerAddr","type":"address"},{"name":"stakeIndex","type":"uint256"},{"name":"stakeIdParam","type":"uint40"}],"name":"stakeGoodAccounting","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"beginDay","type":"uint256"},{"name":"endDay","type":"uint256"}],"name":"dailyDataRange","outputs":[{"name":"_dayStakeSharesTotal","type":"uint256[]"},{"name":"_dayPayoutTotal","type":"uint256[]"},{"name":"_dayDividends","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jackPotValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalStakers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"xfLobby","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beforeDay","type":"uint256"}],"name":"dailyDataUpdate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dailyData","outputs":[{"name":"dayPayoutTotal","type":"uint72"},{"name":"dayDividends","type":"uint256"},{"name":"dayStakeSharesTotal","type":"uint72"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"latestStakeId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"globals","outputs":[{"name":"lockedSunsTotal","type":"uint72"},{"name":"nextStakeSharesTotal","type":"uint72"},{"name":"shareRate","type":"uint40"},{"name":"stakePenaltyTotal","type":"uint72"},{"name":"dailyDataCount","type":"uint16"},{"name":"stakeSharesTotal","type":"uint72"},{"name":"latestStakeId","type":"uint40"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sendMultiEth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"enterDay","type":"uint256"},{"name":"count","type":"uint256"}],"name":"xfLobbyExit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"referrerAddr","type":"address"}],"name":"xfLobbyEnter","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_Staker","type":"address"}],"name":"totalStakes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"xfFlush","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isStakeholder","outputs":[{"name":"","type":"bool"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"globalInfo","outputs":[{"name":"","type":"uint256[10]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"beginDay","type":"uint256"},{"name":"endDay","type":"uint256"}],"name":"xfLobbyRange","outputs":[{"name":"list","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"stakers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"enterDay","type":"uint256"},{"indexed":true,"name":"entryIndex","type":"uint256"},{"indexed":true,"name":"rawAmount","type":"uint256"}],"name":"XfLobbyEnter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"enterDay","type":"uint256"},{"indexed":true,"name":"entryIndex","type":"uint256"},{"indexed":true,"name":"xfAmount","type":"uint256"},{"indexed":true,"name":"referrerAddr","type":"address"}],"name":"XfLobbyExit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"updaterAddr","type":"address"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"beginDay","type":"uint256"},{"indexed":false,"name":"endDay","type":"uint256"}],"name":"DailyDataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"stakeId","type":"uint40"},{"indexed":true,"name":"stakerAddr","type":"address"},{"indexed":false,"name":"stakedSuns","type":"uint256"},{"indexed":false,"name":"stakeShares","type":"uint256"},{"indexed":false,"name":"stakedDays","type":"uint256"}],"name":"StakeStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"stakeId","type":"uint40"},{"indexed":true,"name":"stakerAddr","type":"address"},{"indexed":true,"name":"senderAddr","type":"address"},{"indexed":false,"name":"stakedSuns","type":"uint256"},{"indexed":false,"name":"stakeShares","type":"uint256"},{"indexed":false,"name":"payout","type":"uint256"},{"indexed":false,"name":"penalty","type":"uint256"}],"name":"StakeGoodAccounting","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"stakeId","type":"uint40"},{"indexed":false,"name":"prevUnlocked","type":"uint40"},{"indexed":true,"name":"stakerAddr","type":"address"},{"indexed":false,"name":"lockedDay","type":"uint256"},{"indexed":false,"name":"servedDays","type":"uint256"},{"indexed":false,"name":"stakedSuns","type":"uint256"},{"indexed":false,"name":"stakeShares","type":"uint256"},{"indexed":false,"name":"dividends","type":"uint256"},{"indexed":false,"name":"payout","type":"uint256"},{"indexed":false,"name":"penalty","type":"uint256"},{"indexed":false,"name":"stakeReturn","type":"uint256"}],"name":"StakeEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"stakeId","type":"uint40"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"newShareRate","type":"uint256"}],"name":"ShareRateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

608060405264e8d4a510006002556001600360006101000a81548160ff021916908360ff16021790555034801561003557600080fd5b506002546000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620186a0600102600960000160126101000a81548164ffffffffff021916908364ffffffffff160217905550615f7d80620000f86000396000f3fe6080604052600436106102515760003560e01c806381083aca11610139578063c3124525116100b6578063df349ed51161007a578063df349ed514611164578063e4df5265146111c9578063ef037b90146111e0578063f04b5fa014611250578063f57a1b3c146112a3578063fd5e6dd11461133d57610251565b8063c312452514610f6e578063c52bfa7e1461103f578063cbb151d314611056578063ce7d1f771461109b578063dd62ed3e146110df57610251565b806390de6871116100fd57806390de687114610d0a57806395d89b4114610d935780639a98203314610e23578063a457c2d714610e88578063a9059cbb14610efb57610251565b806381083aca14610bd35780638698903814610bfe57806387a0f31c14610c295780638da5cb5b14610c785780638f1c65c014610ccf57610251565b806339509351116101d257806352a438b81161019657806352a438b8146108f9578063584b62a11461093e5780635c9302c9146109ad57806365cf71b2146109d85780636a210a0e14610a4457806370a0823114610b6e57610251565b806339509351146107015780633a70a5ca1461077457806342966c681461079f57806344203faf146107da57806344f0de751461086c57610251565b80632607443b116102195780632607443b1461048f5780632e60d1c414610573578063313ce5671461061f57806333060d9014610650578063343009a2146106b557610251565b806306fdde0314610253578063095ea7b3146102e357806318160ddd146103565780631d6b8b721461038157806323b872dd146103fc575b005b34801561025f57600080fd5b5061026861138c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102a857808201518184015260208101905061028d565b50505050905090810190601f1680156102d55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ef57600080fd5b5061033c6004803603604081101561030657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113c5565b604051808215151515815260200191505060405180910390f35b34801561036257600080fd5b5061036b6113e3565b6040518082815260200191505060405180910390f35b34801561038d57600080fd5b506103ba600480360360208110156103a457600080fd5b81019080803590602001909291905050506113ed565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561040857600080fd5b506104756004803603606081101561041f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611429565b604051808215151515815260200191505060405180910390f35b34801561049b57600080fd5b506104e8600480360360408110156104b257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611502565b604051808764ffffffffff1664ffffffffff1681526020018668ffffffffffffffffff1668ffffffffffffffffff1681526020018568ffffffffffffffffff1668ffffffffffffffffff1681526020018461ffff1661ffff1681526020018361ffff1661ffff1681526020018261ffff1661ffff168152602001965050505050505060405180910390f35b34801561057f57600080fd5b506105d66004803603606081101561059657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291905050506115b9565b604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390f35b34801561062b57600080fd5b50610634611725565b604051808260ff1660ff16815260200191505060405180910390f35b34801561065c57600080fd5b5061069f6004803603602081101561067357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061172a565b6040518082815260200191505060405180910390f35b3480156106c157600080fd5b506106ff600480360360408110156106d857600080fd5b8101908080359060200190929190803564ffffffffff169060200190929190505050611776565b005b34801561070d57600080fd5b5061075a6004803603604081101561072457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c0d565b604051808215151515815260200191505060405180910390f35b34801561078057600080fd5b50610789611cc0565b6040518082815260200191505060405180910390f35b3480156107ab57600080fd5b506107d8600480360360208110156107c257600080fd5b8101908080359060200190929190505050611cf6565b005b3480156107e657600080fd5b50610833600480360360408110156107fd57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611db7565b604051808364ffffffffff1664ffffffffff1681526020018264ffffffffff1664ffffffffff1681526020019250505060405180910390f35b34801561087857600080fd5b506108bb6004803603602081101561088f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e0a565b6040518082600260200280838360005b838110156108e65780820151818401526020810190506108cb565b5050505090500191505060405180910390f35b34801561090557600080fd5b5061093c6004803603604081101561091c57600080fd5b810190808035906020019092919080359060200190929190505050611f45565b005b34801561094a57600080fd5b506109976004803603604081101561096157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611fe7565b6040518082815260200191505060405180910390f35b3480156109b957600080fd5b506109c261200c565b6040518082815260200191505060405180910390f35b3480156109e457600080fd5b50610a42600480360360608110156109fb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803564ffffffffff16906020019092919050505061201b565b005b348015610a5057600080fd5b50610a8760048036036040811015610a6757600080fd5b810190808035906020019092919080359060200190929190505050612406565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015610ad2578082015181840152602081019050610ab7565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015610b14578082015181840152602081019050610af9565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015610b56578082015181840152602081019050610b3b565b50505050905001965050505050505060405180910390f35b348015610b7a57600080fd5b50610bbd60048036036020811015610b9157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612642565b6040518082815260200191505060405180910390f35b348015610bdf57600080fd5b50610be861268a565b6040518082815260200191505060405180910390f35b348015610c0a57600080fd5b50610c13612690565b6040518082815260200191505060405180910390f35b348015610c3557600080fd5b50610c6260048036036020811015610c4c57600080fd5b810190808035906020019092919050505061269d565b6040518082815260200191505060405180910390f35b348015610c8457600080fd5b50610c8d6126b5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cdb57600080fd5b50610d0860048036036020811015610cf257600080fd5b81019080803590602001909291905050506126db565b005b348015610d1657600080fd5b50610d4360048036036020811015610d2d57600080fd5b8101908080359060200190929190505050612805565b604051808468ffffffffffffffffff1668ffffffffffffffffff1681526020018381526020018268ffffffffffffffffff1668ffffffffffffffffff168152602001935050505060405180910390f35b348015610d9f57600080fd5b50610da8612859565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610de8578082015181840152602081019050610dcd565b50505050905090810190601f168015610e155780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e2f57600080fd5b50610e7260048036036020811015610e4657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612892565b6040518082815260200191505060405180910390f35b348015610e9457600080fd5b50610ee160048036036040811015610eab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506128aa565b604051808215151515815260200191505060405180910390f35b348015610f0757600080fd5b50610f5460048036036040811015610f1e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612977565b604051808215151515815260200191505060405180910390f35b348015610f7a57600080fd5b50610f83612995565b604051808868ffffffffffffffffff1668ffffffffffffffffff1681526020018768ffffffffffffffffff1668ffffffffffffffffff1681526020018664ffffffffff1664ffffffffff1681526020018568ffffffffffffffffff1668ffffffffffffffffff1681526020018461ffff1661ffff1681526020018368ffffffffffffffffff1668ffffffffffffffffff1681526020018264ffffffffff1664ffffffffff16815260200197505050505050505060405180910390f35b34801561104b57600080fd5b50611054612a49565b005b34801561106257600080fd5b506110996004803603604081101561107957600080fd5b810190808035906020019092919080359060200190929190505050612bd3565b005b6110dd600480360360208110156110b157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613028565b005b3480156110eb57600080fd5b5061114e6004803603604081101561110257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506132d4565b6040518082815260200191505060405180910390f35b34801561117057600080fd5b506111b36004803603602081101561118757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061335b565b6040518082815260200191505060405180910390f35b3480156111d557600080fd5b506111de613416565b005b3480156111ec57600080fd5b5061122f6004803603602081101561120357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613625565b60405180831515151581526020018281526020019250505060405180910390f35b34801561125c57600080fd5b506112656136cf565b6040518082600a60200280838360005b83811015611290578082015181840152602081019050611275565b5050505090500191505060405180910390f35b3480156112af57600080fd5b506112e6600480360360408110156112c657600080fd5b810190808035906020019092919080359060200190929190505050613828565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561132957808201518184015260208101905061130e565b505050509050019250505060405180910390f35b34801561134957600080fd5b506113766004803603602081101561136057600080fd5b810190808035906020019092919050505061393b565b6040518082815260200191505060405180910390f35b6040518060400160405280601181526020017f424e422052657475726e7320546f6b656e00000000000000000000000000000081525081565b60006113d96113d261395c565b8484613964565b6001905092915050565b6000600254905090565b600681815481106113fa57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611436848484613b5b565b6114f78461144261395c565b6114f285604051806060016040528060298152602001615dfc60299139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006114a861395c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613e119092919063ffffffff16565b613964565b600190509392505050565b600c602052816000526040600020818154811061151b57fe5b90600052602060002001600091509150508060000160009054906101000a900464ffffffffff16908060000160059054906101000a900468ffffffffffffffffff169080600001600e9054906101000a900468ffffffffffffffffff16908060000160179054906101000a900461ffff16908060000160199054906101000a900461ffff169080600001601b9054906101000a900461ffff16905086565b6000806000600e600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000858152602001908152602001600020905060008160000160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1614156116c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f424e42523a20506172616d20696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b8060000160009054906101000a90046bffffffffffffffffffffffff1681600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816bffffffffffffffffffffffff1691509250925050935093915050565b600881565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b61177e615c48565b611786615c48565b6117908282613ed1565b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180549050141561184e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f424e42523a20456d707479207374616b65206c6973740000000000000000000081525060200191505060405180910390fd5b808054905085106118c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f424e42523a207374616b65496e64657820696e76616c6964000000000000000081525060200191505060405180910390fd5b6118cf615c94565b6118ef8287815481106118de57fe5b906000526020600020018683614024565b6118f8846141ac565b60008090506000808360a00151141590506000806000905060008090506000809050600080905087606001518b60e00151106119d7578515611940578760800151965061196c565b61194a8b896141bf565b87606001518b60e00151039650876080015187111561196b57876080015196505b5b6119778b89896141e5565b80955081965082975083985084995050505050503373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156119d1573d6000803e3d6000fd5b506119f3565b87604001518b6020018181510391508181525050876020015194505b3373ffffffffffffffffffffffffffffffffffffffff168c64ffffffffff167f80bb257dd672adb291601517b3f5d31642fccf6d3db7a40983552a9baacbbabd88611a3f576000611a42565b60015b8b606001518b8d602001518e604001518a8c8b8f604051808a60ff1664ffffffffff168152602001898152602001888152602001878152602001868152602001858152602001848152602001838152602001828152602001995050505050505050505060405180910390a360008114158015611abc575085155b15611ad257808b60600181815101915081815250505b60008514611bbb576000611b15611b066064611af8600c8a6142e090919063ffffffff16565b61436690919063ffffffff16565b876143b090919063ffffffff16565b9050611b2133826143fa565b611b5133611b4c6064611b3e600d8b6142e090919063ffffffff16565b61436690919063ffffffff16565b6145b5565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008f64ffffffffff16815260200190815260200160002081905550611bb98c8a8861476d565b505b87602001518b6000018181510391508181525050611bd9898e61482a565b611be38b8b614a79565b6000611bee3361335b565b1415611bfe57611bfd33614c4e565b5b50505050505050505050505050565b6000611cb6611c1a61395c565b84611cb18560016000611c2b61395c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614d3f90919063ffffffff16565b613964565b6001905092915050565b6000600960000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16611cf06113e3565b01905090565b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611daa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4942455032303a206e6f7420656e6f7567682062616c616e636521000000000081525060200191505060405180910390fd5b611db433826145b5565b50565b600e602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900464ffffffffff16908060000160059054906101000a900464ffffffffff16905082565b611e12615cd1565b60006001611e1e614dc7565b0190505b6000818060019003925014611f3c57600e600082815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900464ffffffffff1664ffffffffff16600e600083815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160059054906101000a900464ffffffffff1664ffffffffff161115611f375760ff81166001901b82600883901c60028110611f2757fe5b6020020181815117915081815250505b611e22565b81915050919050565b611f4d615c48565b611f55615c48565b611f5f8282613ed1565b6001831015611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615d796026913960400191505060405180910390fd5b611fc2826141ac565b611fcd828585614df7565b611fd733856145b5565b611fe18282614a79565b50505050565b6004602052816000526040600020602052806000526040600020600091509150505481565b6000612016614dc7565b905090565b612023615c48565b61202b615c48565b6120358282613ed1565b6000600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905014156120ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f424e42523a20456d707479207374616b65206c6973740000000000000000000081525060200191505060405180910390fd5b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905084106121a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f424e42523a207374616b65496e64657820696e76616c6964000000000000000081525060200191505060405180910390fd5b6000600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002085815481106121f157fe5b906000526020600020019050612205615c94565b612210828683614024565b80608001518160600151018460e001511015612294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f424e42523a205374616b65206e6f742066756c6c79207365727665640000000081525060200191505060405180910390fd5b60008160a001511461230e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f424e42523a205374616b6520616c726561647920756e6c6f636b65640000000081525060200191505060405180910390fd5b612317846141ac565b61232184826141bf565b600080600080612336888687608001516141e5565b9450945094509450503373ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff168a64ffffffffff167f0bff00790f1231cf0c26911db2d0c4e670b204ebb02d6a73d3fb5c995910705e8860200151896040015189886040518085815260200184815260200183815260200182815260200194505050505060405180910390a4600081146123e557808860600181815101915081815250505b6123ef8686615089565b6123f98888614a79565b5050505050505050505050565b606080606083851080156124315750600960010160009054906101000a900461ffff1661ffff168411155b6124a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f424e42523a2072616e676520696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b8484036040519080825280602002602001820160405280156124d45781602001602082028038833980820191505090505b5092508484036040519080825280602002602001820160405280156125085781602001602082028038833980820191505090505b50915084840360405190808252806020026020018201604052801561253c5781602001602082028038833980820191505090505b509050600085905060008090505b600b600083815260200190815260200160002060020160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1685828151811061258d57fe5b602002602001018181525050600b600083815260200190815260200160002060000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168482806001019350815181106125e257fe5b602002602001018181525050600b60008381526020019081526020016000206001015483828060010193508151811061261757fe5b60200260200101818152505085826001019250821061254a5784848494509450945050509250925092565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60085481565b6000600680549050905090565b600d6020528060005260406000206000915090505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6126e3615c48565b6126eb615c48565b6126f58282613ed1565b60018260e001511161276f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f424e42523a20546f6f206561726c79000000000000000000000000000000000081525060200191505060405180910390fd5b600083146127e5578160e001518311156127d4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180615eff6027913960400191505060405180910390fd5b6127e082846000615181565b6127f6565b6127f5828360e001516000615181565b5b6128008282614a79565b505050565b600b6020528060005260406000206000915090508060000160009054906101000a900468ffffffffffffffffff16908060010154908060020160009054906101000a900468ffffffffffffffffff16905083565b6040518060400160405280600481526020017f424e42520000000000000000000000000000000000000000000000000000000081525081565b60056020528060005260406000206000915090505481565b600061296d6128b761395c565b8461296885604051806060016040528060268152602001615d5360269139600160006128e161395c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613e119092919063ffffffff16565b613964565b6001905092915050565b600061298b61298461395c565b8484613b5b565b6001905092915050565b60098060000160009054906101000a900468ffffffffffffffffff16908060000160099054906101000a900468ffffffffffffffffff16908060000160129054906101000a900464ffffffffff16908060000160179054906101000a900468ffffffffffffffffff16908060010160009054906101000a900461ffff16908060010160029054906101000a900468ffffffffffffffffff169080600101600b9054906101000a900464ffffffffff16905087565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b0c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4f6e6c79206f776e65722063616e2063616c6c2074686973210000000000000081525060200191505060405180910390fd5b60008090505b60148160000b1215612bc8576000612b28615283565b90506000601460085481612b3857fe5b04905060068281548110612b4857fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612bb8573d6000803e3d6000fd5b5050508080600101915050612b12565b600060088190555050565b612bdb614dc7565b8210612c4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f424e42523a20526f756e64206973206e6f7420636f6d706c657465000000000081525060200191505060405180910390fd5b6000600e600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000160009054906101000a900464ffffffffff1664ffffffffff1690506000808414612d6b57818360000160059054906101000a900464ffffffffff1664ffffffffff1603841115612d61576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f424e42523a20636f756e7420696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b8382019050612e00565b8260000160059054906101000a900464ffffffffff1664ffffffffff169050808210612dff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f424e42523a20636f756e7420696e76616c69640000000000000000000000000081525060200191505060405180910390fd5b5b6000612e0b86615308565b90506000600d600088815260200190815260200160002054905060008090505b600086600101600087815260200190815260200160002060000160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1690506000876001016000888152602001908152602001600020600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050876001016000888152602001908152602001600020600080820160006101000a8154906bffffffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505060008483870281612f1657fe5b049050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480612f7f57503373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15612f9557612f908b898385615345565b612fd1565b6000600a8281612fa157fe5b04905080820191506000600a8381612fb557fe5b049050612fc48d8b8587615345565b612fce84826143fa565b50505b8084019350505050838560010195508510612e2b57848660000160006101000a81548164ffffffffff021916908364ffffffffff1602179055506000811461301e5761301d33826143fa565b5b5050505050505050565b6000613032614dc7565b9050600034905060008114156130b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f424e42523a20416d6f756e74207265717569726564000000000000000000000081525060200191505060405180910390fd5b6000600e600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001600581819054906101000a900464ffffffffff168092919060010191906101000a81548164ffffffffff021916908364ffffffffff16021790555064ffffffffff1690506040518060400160405280846bffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1681525082600101600083815260200190815260200160002060008201518160000160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550602082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050506000613246600a61323860643461436690919063ffffffff16565b6142e090919063ffffffff16565b90508060086000828254019250508190555061326b81856143b090919063ffffffff16565b600d60008781526020019081526020016000206000828254019250508190555083827f683f950243ca541a09abd8157385ce15a23ac43a47b8d0306de2bdc20d0b9e094288604051808381526020018281526020019250505060405180910390a3505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008060008091505b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821161340c57600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054810190508180600101925050613364565b8092505050919050565b61341e615c48565b613426615c48565b6134308282613ed1565b60003073ffffffffffffffffffffffffffffffffffffffff163114156134be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f424e42523a204e6f2076616c756500000000000000000000000000000000000081525060200191505060405180910390fd5b6134c6614dc7565b600360009054906101000a900460ff1660ff161061354c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f424e42523a20496e76616c69642064617900000000000000000000000000000081525060200191505060405180910390fd5b613555826141ac565b73b3d69997e06789a329bc3c881ae38219adf61bfd73ffffffffffffffffffffffffffffffffffffffff166108fc60646005600b6000600360009054906101000a900460ff1660ff1681526020019081526020016000206001015402816135b857fe5b049081150290604051600060405180830381858888f193505050501580156135e4573d6000803e3d6000fd5b506003600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550506136218282614a79565b5050565b60008060008090505b6006805490508110156136be576006818154811061364857fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136b35760018192509250506136ca565b60018101905061362e565b50600080809050915091505b915091565b6136d7615cf3565b604051806101400160405280600960000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168152602001600960000160099054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168152602001600960000160129054906101000a900464ffffffffff1664ffffffffff168152602001600960000160179054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168152602001600960010160009054906101000a900461ffff1661ffff168152602001600960010160029054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1681526020016009600101600b9054906101000a900464ffffffffff1664ffffffffff1681526020014281526020016138006113e3565b8152602001600d6000613811614dc7565b815260200190815260200160002054815250905090565b60608183108015613840575061383c614dc7565b8211155b6138b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f424e42523a20696e76616c69642072616e67650000000000000000000000000081525060200191505060405180910390fd5b8282036040519080825280602002602001820160405280156138e35781602001602082028038833980820191505090505b509050600083905060008090505b600d60008380600101945081526020019081526020016000205483828060010193508151811061391d57fe5b6020026020010181815250508382106138f157829250505092915050565b600f818154811061394857fe5b906000526020600020016000915090505481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615e6d6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180615e926023913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615ed96026913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613c67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615eb56024913960400191505060405180910390fd5b613cd281604051806060016040528060278152602001615e46602791396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613e119092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613d65816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614d3f90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290613ebe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613e83578082015181840152602081019050613e68565b50505050905090810190601f168015613eb05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600960000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16826000018181525050600960000160099054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16826020018181525050600960000160129054906101000a900464ffffffffff1664ffffffffff16826040018181525050600960000160179054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16826060018181525050600960010160009054906101000a900461ffff1661ffff16826080018181525050600960010160029054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168260a00181815250506009600101600b9054906101000a900464ffffffffff168260c0019064ffffffffff16908164ffffffffff168152505061400d614dc7565b8260e001818152505061402082826153a3565b5050565b8260000160009054906101000a900464ffffffffff1664ffffffffff168264ffffffffff16146140bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f424e42523a207374616b654964506172616d206e6f7420696e207374616b650081525060200191505060405180910390fd5b8260000160009054906101000a900464ffffffffff16816000019064ffffffffff16908164ffffffffff16815250508260000160059054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1681602001818152505082600001600e9054906101000a900468ffffffffffffffffff1668ffffffffffffffffff168160400181815250508260000160179054906101000a900461ffff1661ffff168160600181815250508260000160199054906101000a900461ffff1661ffff1681608001818152505082600001601b9054906101000a900461ffff1661ffff168160a0018181525050505050565b6141bc818260e001516001615181565b50565b80604001518260a00181815103915081815250508160e001518160a00181815250505050565b60008060008060008660800151861015614244576142128888606001518960800151898b60400151615419565b809350819550505083876020015101945061423d8888604001518960600151898b60600151016154f2565b92506142a0565b61425e8888604001518960600151898b606001510161558b565b935061427a8888604001518960600151898b60600151016154f2565b925083876020015101945061429d876060015188608001518960a00151886156d3565b91505b600082146142c657848211156142bc57849050600094506142c5565b81905080850394505b5b848484848494509450945094509450939792965093509350565b6000808314156142f35760009050614360565b600082840290508284828161430457fe5b041461435b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180615e256021913960400191505060405180910390fd5b809150505b92915050565b60006143a883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250615710565b905092915050565b60006143f283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613e11565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561449d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4942455032303a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b6144b281600254614d3f90919063ffffffff16565b600281905550614509816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614d3f90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561463b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615d316022913960400191505060405180910390fd5b6146a681604051806060016040528060238152602001615f26602391396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613e119092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506146fd816002546143b090919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b81602001518111156148255760006147898284608001516157d6565b905060008360400151620186a083850102816147a157fe5b0490506001604b6001901b038111156147c0576001604b6001901b0390505b84604001518111156148225780856040018181525050836000015164ffffffffff167faf62aa7dadbf7e5e54b91236b109372266fcf681cc74f199a41e14c242a3db3f4283604051808381526020018281526020019250505060405180910390a25b50505b505050565b6000600183805490500390508082146149c65782818154811061484957fe5b9060005260206000200183838154811061485f57fe5b906000526020600020016000820160009054906101000a900464ffffffffff168160000160006101000a81548164ffffffffff021916908364ffffffffff1602179055506000820160059054906101000a900468ffffffffffffffffff168160000160056101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff16021790555060008201600e9054906101000a900468ffffffffffffffffff1681600001600e6101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff1602179055506000820160179054906101000a900461ffff168160000160176101000a81548161ffff021916908361ffff1602179055506000820160199054906101000a900461ffff168160000160196101000a81548161ffff021916908361ffff16021790555060008201601b9054906101000a900461ffff1681600001601b6101000a81548161ffff021916908361ffff1602179055509050505b828054806149d057fe5b60019003818190600052602060002001600080820160006101000a81549064ffffffffff02191690556000820160056101000a81549068ffffffffffffffffff021916905560008201600e6101000a81549068ffffffffffffffffff02191690556000820160176101000a81549061ffff02191690556000820160196101000a81549061ffff021916905560008201601b6101000a81549061ffff021916905550509055505050565b80600001518260000151141580614a9857508060200151826020015114155b80614aab57508060400151826040015114155b80614abe57508060600151826060015114155b15614b84578160000151600960000160006101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff1602179055508160200151600960000160096101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff1602179055508160400151600960000160126101000a81548164ffffffffff021916908364ffffffffff1602179055508160600151600960000160176101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff1602179055505b80608001518260800151141580614ba357508060a001518260a0015114155b80614bc457508060c0015164ffffffffff168260c0015164ffffffffff1614155b15614c4a578160800151600960010160006101000a81548161ffff021916908361ffff1602179055508160a00151600960010160026101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff1602179055508160c001516009600101600b6101000a81548164ffffffffff021916908364ffffffffff1602179055505b5050565b600080614c5a83613625565b915091508115614d3a57600660016006805490500381548110614c7957fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660068281548110614cb157fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506006805480614d0457fe5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590555b505050565b600080828401905083811015614dbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000636091e000421015614dde5760009050614df4565b62015180636091e000420381614df057fe5b0490505b90565b603c811115614e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180615dd56027913960400191505060405180910390fd5b6000614e5d83836157d6565b905060008460400151620186a08386010281614e7557fe5b0490506000811415614ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180615d9f6036913960400191505060405180910390fd5b600060018660e0015101905060008660c001805160010164ffffffffff16908164ffffffffff16815250905085600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008364ffffffffff168152602001908152602001600020819055508064ffffffffff16600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614fae336158c8565b614ffa600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828886868a615946565b3373ffffffffffffffffffffffffffffffffffffffff168164ffffffffff167fa75ea2f0baef0a6cfa36f61bc0cdc9b3a55ce8876892cf96f640208f65c799e988868960405180848152602001838152602001828152602001935050505060405180910390a3828760200181815101915081815250508587600001818151019150818152505050505050505050565b80600001518260000160006101000a81548164ffffffffff021916908364ffffffffff16021790555080602001518260000160056101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff160217905550806040015182600001600e6101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff16021790555080606001518260000160176101000a81548161ffff021916908361ffff16021790555080608001518260000160196101000a81548161ffff021916908361ffff1602179055508060a0015182600001601b6101000a81548161ffff021916908361ffff1602179055505050565b818360800151106151915761527e565b615199615d16565b83600001516151a66113e3565b018160000181815250506000846080015190506151c4858383615ac4565b60008560200151146151f05784602001518560a001818151019150818152505060008560200181815250505b5b8381600101915081101561520f5761520a858383615ac4565b6151f1565b3373ffffffffffffffffffffffffffffffffffffffff167fe00f6f1c2b3ba17574be0a8136275368d74f37631cf36525a360b272fe21195b4287608001518460405180848152602001838152602001828152602001935050505060405180910390a28085608001818152505050505b505050565b60008061528e612690565b423344604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140182815260200193505050506040516020818303038152906040528051906020012060001c816152fe57fe5b0690508091505090565b6000808211801561531b575061016d8211155b1561533357600182036502ba7def300003905061533d565b6502ba7def300090505b809050919050565b8073ffffffffffffffffffffffffffffffffffffffff1682847ff8fa88708321411fd98e823a1eb882047c8dc276ba17a8b81722ed282c4560f74288604051808381526020018281526020019250505060405180910390a450505050565b816000015181600001818152505081602001518160200181815250508160400151816040018181525050816060015181606001818152505081608001518160800181815250508160a001518160a00181815250508160c001518160c0019064ffffffffff16908164ffffffffff16815250505050565b6000806000848701905060006064601960018901028161543557fe5b049050601e81101561544657601e90505b600086141561547157600061545c8a878b615b88565b905081810293508484945094505050506154e8565b858110156154b2576000818901905061548c8a878b8461558b565b9350600061549c8b88848761558b565b90508085019550858595509550505050506154e8565b6154be89868a8561558b565b9350858114156154d0578392506154df565b85818502816154db57fe5b0492505b83839350935050505b9550959350505050565b6000808390505b8281101561557f576000600b600083815260200190815260200160002060020160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16866064605f600b600087815260200190815260200160002060010154028161555e57fe5b04028161556757fe5b048101905080830192505080806001019150506154f9565b50809050949350505050565b60008060008490505b838110156156c6576000600b600083815260200190815260200160002060020160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1687600b600085815260200190815260200160002060000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16028161561557fe5b049050600483101561562e5782806001019350506156b3565b600260ff16600b600084815260200190815260200160002060020160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1688600b600086815260200190815260200160002060000160009054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1602816156aa57fe5b04029050600092505b8084019350508080600101915050615594565b5081915050949350505050565b60008060076002028587010190508084116156f2576000915050615708565b600760640281850384028161570357fe5b049150505b949350505050565b600080831182906157bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015615781578082015181840152602081019050615766565b50505050905090810190601f1680156157ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816157c857fe5b049050809150509392505050565b60008060009050600183111561582e57606460c8601461170c816157f657fe5b0402816157ff57fe5b0483111561582657606460c8601461170c8161581757fe5b04028161582057fe5b0461582b565b600183035b90505b6000600860ff16600a0a626acfc00285111561585657600860ff16600a0a626acfc002615858565b845b9050601461170c8161586657fe5b048102600a6064600860ff16600a0a626acfc002028161588257fe5b048302019250600a6064600860ff16600a0a626acfc00202816158a157fe5b04601461170c816158ae57fe5b0402838602816158ba57fe5b049250829250505092915050565b60006158d382613625565b509050806159425760068290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5050565b856040518060c001604052808764ffffffffff1681526020018668ffffffffffffffffff1681526020018568ffffffffffffffffff1681526020018461ffff1681526020018361ffff168152602001600061ffff1681525090806001815401808255809150509060018203906000526020600020016000909192909190915060008201518160000160006101000a81548164ffffffffff021916908364ffffffffff16021790555060208201518160000160056101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff160217905550604082015181600001600e6101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff16021790555060608201518160000160176101000a81548161ffff021916908361ffff16021790555060808201518160000160196101000a81548161ffff021916908361ffff16021790555060a082015181600001601b6101000a81548161ffff021916908361ffff160217905550505050505050505050565b615acf838383615bf8565b8160200151600b600083815260200190815260200160002060000160006101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff160217905550600d600082815260200190815260200160002054600b6000838152602001908152602001600020600101819055508260a00151600b600083815260200190815260200160002060020160006101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff160217905550505050565b6000615b92615c48565b615b9c85826153a3565b615ba4615d16565b8560000151615bb16113e3565b01816000018181525050615bc6828286615bf8565b848260a00181815101915081815250508160a001518582602001510281615be957fe5b04925082925050509392505050565b63041aa1896161a883600001510281615c0d57fe5b048260200181815250506000836060015114615c4357826060015182602001818151019150818152505060008360600181815250505b505050565b604051806101000160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600081525090565b6040518060c00160405280600064ffffffffff16815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060400160405280600290602082028038833980820191505090505090565b604051806101400160405280600a90602082028038833980820191505090505090565b60405180604001604052806000815260200160008152509056fe4942455032303a206275726e2066726f6d20746865207a65726f20616464726573734942455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f424e42523a206e65775374616b656444617973206c6f776572207468616e206d696e696d756d424e42523a206e65775374616b656453756e73206d757374206265206174206c65617374206d696e696d756d20736861726552617465424e42523a206e65775374616b65644461797320686967686572207468616e206d6178696d756d4942455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774942455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654942455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734942455032303a20617070726f766520746f20746865207a65726f20616464726573734942455032303a207472616e7366657220746f20746865207a65726f20616464726573734942455032303a207472616e736665722066726f6d20746865207a65726f2061646472657373424e42523a206265666f72654461792063616e6e6f7420626520696e20746865206675747572654942455032303a206275726e20616d6f756e7420657863656564732062616c616e6365a265627a7a72305820edaa8edb08fbf2a9ad16426e7b070ec1e891a8a91276874a3ca673619c89859f64736f6c634300050a0032

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.