Contract 0x7a8ac384d3a9086afcc13eb58e90916f17affc89

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xb10a83f204cbff520901dbe4f3e7d2a252a08a049ca923654757158c2471a57f74704802021-05-16 21:53:4437 days 16 hrs ago0x5917bc0b0ae15decc8974436b949beefe5e36418 IN  0x7a8ac384d3a9086afcc13eb58e90916f17affc890 BNB0.00016405
0xcb0d6a028ae869a4f7406ed3c748e67d57d6f736334d45a3b8576656a644194372271132021-05-07 23:42:0546 days 14 hrs ago0xe8827c25595873cc89a2f98323d60b3106b337cf IN  0x7a8ac384d3a9086afcc13eb58e90916f17affc890 BNB0.00016405
0xdc1f705fe595b2bb2d81f1f65e3febcbf40df1d53f8abb9d283796bdabe2b71562988662021-04-05 9:16:1279 days 4 hrs agoValueDefi: Deployer IN  Contract Creation0 BNB0.02213691
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProfitSharingRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-05
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

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

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

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

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

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

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

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

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    uint256 public constant BLOCKS_PER_DAY = 28800;

    // governance
    address public operator;
    address public reserveFund;

    // flags
    bool public initialized = false;
    bool public publicAllowed = false;

    address public exchangeProxy;
    uint256 private _locked = 0;

    // Info of each user.
    struct UserInfo {
        uint256 amount;
        mapping(address => uint256) rewardDebt;
        mapping(address => uint256) reward;
        mapping(address => uint256) accumulatedEarned; // will accumulate every time user harvest
        mapping(address => uint256) lockReward;
        mapping(address => uint256) lockRewardReleased;
        uint256 lastStakeTime;
    }

    // Info of each rewardPool funding.
    struct RewardPoolInfo {
        address rewardToken; // Address of rewardPool token contract.
        uint256 lastRewardBlock; // Last block number that rewardPool distribution occurs.
        uint256 rewardPerBlock; // Reward token amount to distribute per block.
        uint256 accRewardPerShare; // Accumulated rewardPool per share, times 1e18.
        uint256 totalPaidRewards;
    }

    uint256 public startRewardBlock;
    uint256 public endRewardBlock;

    address public wbnb = address(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c);
    address public busd = address(0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56);
    address public stakeToken;

    mapping(address => RewardPoolInfo) public rewardPoolInfo;

    // Info of each user that stakes LP tokens.
    mapping(address => UserInfo) public userInfo;

    event Initialized(address indexed executor, uint256 at);
    event Deposit(address indexed user, uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event RewardPaid(address rewardToken, address indexed user, uint256 amount);

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

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

    modifier onlyExchangeProxy() {
        require(exchangeProxy == msg.sender || operator == msg.sender, "ProfitSharingRewardPool: caller is not the exchangeProxy");
        _;
    }

    modifier onlyReserveFund() {
        require(reserveFund == msg.sender || operator == msg.sender, "ProfitSharingRewardPool: caller is not the reserveFund");
        _;
    }

    modifier lock() {
        require(_locked == 0, "ProfitSharingRewardPool: LOCKED");
        _locked = 1;
        _;
        _locked = 0;
    }

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

    modifier checkPublicAllow() {
        require(publicAllowed || msg.sender == operator, "!operator nor !publicAllowed");
        _;
    }

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

    function initialize(
        address _stakeToken,
        address _wbnb,
        address _busd,
        address _reserveFund,
        uint256 _startRewardBlock
    ) public notInitialized {
        require(block.number < _startRewardBlock, "late");

        stakeToken = _stakeToken;
        wbnb = _wbnb;
        busd = _busd;
        reserveFund = _reserveFund;
        startRewardBlock = _startRewardBlock;
        endRewardBlock = _startRewardBlock;

        operator = msg.sender;
        _locked = 0;

        setRewardPool(_wbnb, _startRewardBlock);
        setRewardPool(_busd, _startRewardBlock);
    }

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

    function setExchangeProxy(address _exchangeProxy) external onlyExchangeProxy {
        exchangeProxy = _exchangeProxy;
    }

    function setReserveFund(address _reserveFund) external onlyReserveFund {
        reserveFund = _reserveFund;
    }

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

    function getRewardPerBlock(
        address _rewardToken,
        uint256 _from,
        uint256 _to
    ) public view returns (uint256) {
        uint256 _rewardPerBlock = rewardPoolInfo[_rewardToken].rewardPerBlock;
        if (_from >= _to || _from >= endRewardBlock) return 0;
        if (_to <= startRewardBlock) return 0;
        if (_from <= startRewardBlock) {
            if (_to <= endRewardBlock) return _to.sub(startRewardBlock).mul(_rewardPerBlock);
            else return endRewardBlock.sub(startRewardBlock).mul(_rewardPerBlock);
        }
        if (_to <= endRewardBlock) return _to.sub(_from).mul(_rewardPerBlock);
        else return endRewardBlock.sub(_from).mul(_rewardPerBlock);
    }

    function getRewardPerBlock(address _rewardToken) external view returns (uint256) {
        return getRewardPerBlock(_rewardToken, block.number, block.number + 1);
    }

    function pendingReward(address _rewardToken, address _account) external view returns (uint256) {
        UserInfo storage user = userInfo[_account];
        RewardPoolInfo storage rewardPool = rewardPoolInfo[_rewardToken];
        uint256 _accRewardPerShare = rewardPool.accRewardPerShare;
        uint256 lpSupply = IERC20(stakeToken).balanceOf(address(this));
        uint256 _endRewardBlock = endRewardBlock;
        uint256 _endRewardBlockApplicable = block.number > _endRewardBlock ? _endRewardBlock : block.number;
        uint256 _lastRewardBlock = rewardPool.lastRewardBlock;
        if (_endRewardBlockApplicable > _lastRewardBlock && lpSupply != 0) {
            uint256 _incRewardPerShare = getRewardPerBlock(_rewardToken, _lastRewardBlock, _endRewardBlockApplicable).mul(1e18).div(lpSupply);
            _accRewardPerShare = _accRewardPerShare.add(_incRewardPerShare);
        }
        return user.amount.mul(_accRewardPerShare).div(1e18).add(user.reward[_rewardToken]).sub(user.rewardDebt[_rewardToken]);
    }

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

    function setRewardPool(address _rewardToken, uint256 _startBlock) public lock onlyOperator {
        updateAllRewards();
        rewardPoolInfo[_rewardToken] = RewardPoolInfo({rewardToken: _rewardToken, lastRewardBlock: _startBlock, rewardPerBlock: 0, accRewardPerShare: 0, totalPaidRewards: 0});
    }

    function allocateMoreRewards(
        uint256 _wbnbAmount,
        uint256 _busdAmount,
        uint256 _days
    ) external onlyReserveFund {
        _allocateMoreRewards(wbnb, _wbnbAmount, _days);
        _allocateMoreRewards(busd, _busdAmount, _days);
        if (_days > 0) {
            if (endRewardBlock < block.number) {
                endRewardBlock = block.number.add(_days.mul(BLOCKS_PER_DAY));
            } else {
                endRewardBlock = endRewardBlock.add(_days.mul(BLOCKS_PER_DAY));
            }
        }
    }

    function _allocateMoreRewards(
        address _rewardToken,
        uint256 _addedReward,
        uint256 _days
    ) internal {
        uint256 _pendingBlocks = (endRewardBlock > block.number) ? endRewardBlock.sub(block.number) : 0;
        if (_pendingBlocks > 0 || _days > 0) {
            updateReward(_rewardToken);
            IERC20(_rewardToken).safeTransferFrom(msg.sender, address(this), _addedReward);
            uint256 _newPendingReward = rewardPoolInfo[_rewardToken].rewardPerBlock.mul(_pendingBlocks).add(_addedReward);
            uint256 _newPendingBlocks = _pendingBlocks.add(_days.mul(BLOCKS_PER_DAY));
            rewardPoolInfo[_rewardToken].rewardPerBlock = _newPendingReward.div(_newPendingBlocks);
        }
    }

    function updateAllRewards() public {
        updateReward(wbnb);
        updateReward(busd);
    }

    function updateReward(address _rewardToken) public {
        RewardPoolInfo storage rewardPool = rewardPoolInfo[_rewardToken];
        uint256 _endRewardBlock = endRewardBlock;
        uint256 _endRewardBlockApplicable = block.number > _endRewardBlock ? _endRewardBlock : block.number;
        uint256 _lastRewardBlock = rewardPool.lastRewardBlock;
        if (_endRewardBlockApplicable > _lastRewardBlock) {
            uint256 lpSupply = IERC20(stakeToken).balanceOf(address(this));
            if (lpSupply > 0) {
                uint256 _incRewardPerShare = getRewardPerBlock(_rewardToken, _lastRewardBlock, _endRewardBlockApplicable).mul(1e18).div(lpSupply);
                rewardPool.accRewardPerShare = rewardPool.accRewardPerShare.add(_incRewardPerShare);
            }
            rewardPool.lastRewardBlock = _endRewardBlockApplicable;
        }
    }

    // Deposit LP tokens
    function _deposit(address _account, uint256 _amount) internal lock {
        UserInfo storage user = userInfo[_account];
        getAllRewards(_account);
        user.amount = user.amount.add(_amount);
        address _wbnb = wbnb;
        address _busd = busd;
        user.rewardDebt[_wbnb] = user.amount.mul(rewardPoolInfo[_wbnb].accRewardPerShare).div(1e18);
        user.rewardDebt[_busd] = user.amount.mul(rewardPoolInfo[_busd].accRewardPerShare).div(1e18);
        emit Deposit(_account, _amount);
    }

    function deposit(uint256 _amount) external {
        IERC20(stakeToken).safeTransferFrom(msg.sender, address(this), _amount);
        _deposit(msg.sender, _amount);
    }

    function depositFor(address _account, uint256 _amount) external onlyExchangeProxy {
        IERC20(stakeToken).safeTransferFrom(msg.sender, address(this), _amount);
        _deposit(_account, _amount);
    }

    // Withdraw LP tokens.
    function _withdraw(address _account, uint256 _amount) internal lock {
        UserInfo storage user = userInfo[_account];
        getAllRewards(_account);
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            IERC20(stakeToken).safeTransfer(_account, _amount);
        }
        address _wbnb = wbnb;
        address _busd = busd;
        user.rewardDebt[_wbnb] = user.amount.mul(rewardPoolInfo[_wbnb].accRewardPerShare).div(1e18);
        user.rewardDebt[_busd] = user.amount.mul(rewardPoolInfo[_busd].accRewardPerShare).div(1e18);
        emit Withdraw(_account, _amount);
    }

    function withdraw(uint256 _amount) external {
        _withdraw(msg.sender, _amount);
    }

    function claimReward() external {
        getAllRewards(msg.sender);
    }

    function getAllRewards(address _account) public {
        getReward(wbnb, _account);
        getReward(busd, _account);
    }

    function getReward(address _rewardToken, address _account) public {
        updateReward(_rewardToken);
        UserInfo storage user = userInfo[_account];
        RewardPoolInfo storage rewardPool = rewardPoolInfo[_rewardToken];
        uint256 _accRewardPerShare = rewardPool.accRewardPerShare;
        uint256 _pendingReward = user.amount.mul(_accRewardPerShare).div(1e18).sub(user.rewardDebt[_rewardToken]);
        if (_pendingReward > 0) {
            user.accumulatedEarned[_rewardToken] = user.accumulatedEarned[_rewardToken].add(_pendingReward);
            rewardPool.totalPaidRewards = rewardPool.totalPaidRewards.add(_pendingReward);
            user.rewardDebt[_rewardToken] = user.amount.mul(_accRewardPerShare).div(1e18);
            uint256 _paidAmount = user.reward[_rewardToken].add(_pendingReward);
            // Safe reward transfer, just in case if rounding error causes pool to not have enough reward amount
            uint256 _rewardBalance = IERC20(_rewardToken).balanceOf(address(this));
            if (_rewardBalance < _paidAmount) {
                user.reward[_rewardToken] = _paidAmount; // pending, dont claim yet
            } else {
                user.reward[_rewardToken] = 0;
                _safeTokenTransfer(_rewardToken, _account, _paidAmount);
                emit RewardPaid(_rewardToken, _account, _paidAmount);
            }
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw() external lock {
        UserInfo storage user = userInfo[msg.sender];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt[wbnb] = 0;
        user.rewardDebt[busd] = 0;
        user.reward[wbnb] = 0;
        user.reward[busd] = 0;
        IERC20(stakeToken).safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _amount);
    }

    function _safeTokenTransfer(
        address _token,
        address _to,
        uint256 _amount
    ) internal {
        uint256 _tokenBal = IERC20(_token).balanceOf(address(this));
        if (_amount > _tokenBal) {
            _amount = _tokenBal;
        }
        if (_amount > 0) {
            IERC20(_token).safeTransfer(_to, _amount);
        }
    }

    // This function allows governance to take unsupported tokens out of the contract. This is in an effort to make someone whole, should they seriously mess up.
    // There is no guarantee governance will vote to return these. It also allows for removal of airdropped tokens.
    function governanceRecoverUnsupported(
        IERC20 _token,
        uint256 amount,
        address to
    ) external onlyOperator {
        require(address(_token) != stakeToken, "stakeToken");
        _token.safeTransfer(to, amount);
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLOCKS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wbnbAmount","type":"uint256"},{"internalType":"uint256","name":"_busdAmount","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"allocateMoreRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"busd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchangeProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getRewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"getRewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakeToken","type":"address"},{"internalType":"address","name":"_wbnb","type":"address"},{"internalType":"address","name":"_busd","type":"address"},{"internalType":"address","name":"_reserveFund","type":"address"},{"internalType":"uint256","name":"_startRewardBlock","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPoolInfo","outputs":[{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"totalPaidRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_exchangeProxy","type":"address"}],"name":"setExchangeProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_reserveFund","type":"address"}],"name":"setReserveFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updateAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lastStakeTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wbnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001805461ffff60a01b191690556000600355600680546001600160a01b031990811673bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c179091556007805490911673e9e7cea3dedca5984780bafc599bd69add087d5617905534801561006b57600080fd5b506126718061007b6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806390d390131161010f578063d6eb93f1116100a2578063db2e21bc11610071578063db2e21bc14610608578063e653bf3a14610610578063f498d8a614610643578063f7013ef614610676576101f0565b8063d6eb93f1146105bd578063d7ed714e146105f0578063d83d0f76146105f8578063d869a0db14610600576101f0565b8063b6b55f25116100de578063b6b55f2514610588578063b7f92b71146105a5578063b88a802f146105ad578063c7c30be1146105b5576101f0565b806390d390131461046c5780639ced7e76146104a5578063a959f220146104e0578063b3ab15fb14610555576101f0565b806354575af4116101875780636b091695116101565780636b091695146104195780636bb987fe1461045457806381fa561a1461045c5780638d72647e14610464576101f0565b806354575af41461034a578063562f3cf41461038d578063570ca735146103de578063632447c9146103e6576101f0565b8063362a3fad116101c3578063362a3fad146102b55780633ca5b234146102e85780634e3172711461031957806351ed6a3014610342576101f0565b8063158ef93e146101f55780631959a002146102115780632e1a7d4d1461025d5780632f4f21e21461027c575b600080fd5b6101fd6106c9565b604080519115158252519081900360200190f35b6102446004803603602081101561022757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106ea565b6040805192835260208301919091528051918290030190f35b61027a6004803603602081101561027357600080fd5b5035610703565b005b61027a6004803603604081101561029257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610710565b61027a600480360360208110156102cb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166107d5565b6102f061081b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61027a6004803603606081101561032f57600080fd5b5080359060208101359060400135610837565b6102f0610960565b61027a6004803603606081101561036057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040909101351661097c565b6103cc600480360360608110156103a357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135610a97565b60408051918252519081900360200190f35b6102f0610b7e565b61027a600480360360208110156103fc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b9a565b61027a6004803603604081101561042f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610cd4565b6103cc610f7e565b6103cc610f84565b6102f0610f8a565b61027a6004803603604081101561048257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610fa6565b6103cc600480360360408110156104bb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611135565b610513600480360360208110156104f657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166112cb565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b61027a6004803603602081101561056b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611311565b61027a6004803603602081101561059e57600080fd5b50356113c8565b6102f06113f7565b61027a611413565b6102f061141e565b6103cc600480360360208110156105d357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661143a565b6103cc61144a565b6101fd611450565b61027a611472565b61027a6114b6565b61027a6004803603602081101561062657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115ee565b61027a6004803603602081101561065957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166116c7565b61027a600480360360a081101561068c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101358216916040820135811691606081013590911690608001356117a0565b60015474010000000000000000000000000000000000000000900460ff1681565b600a602052600090815260409020805460069091015482565b61070d338261191f565b50565b60025473ffffffffffffffffffffffffffffffffffffffff1633148061074d575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6107a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806125836038913960400191505060405180910390fd5b6008546107c79073ffffffffffffffffffffffffffffffffffffffff16333084611b10565b6107d18282611bab565b5050565b6006546107f89073ffffffffffffffffffffffffffffffffffffffff1682610cd4565b60075461070d9073ffffffffffffffffffffffffffffffffffffffff1682610cd4565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff16331480610874575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6108c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806126066036913960400191505060405180910390fd5b6006546108ed9073ffffffffffffffffffffffffffffffffffffffff168483611d71565b6007546109119073ffffffffffffffffffffffffffffffffffffffff168383611d71565b801561095b5743600554101561093f5761093761093082617080611e61565b4390611ed4565b60055561095b565b61095761094e82617080611e61565b60055490611ed4565b6005555b505050565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018061252a6033913960400191505060405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff84811691161415610a7657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7374616b65546f6b656e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b61095b73ffffffffffffffffffffffffffffffffffffffff84168284611f48565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600960205260408120600201548284101580610ad157506005548410155b15610ae0576000915050610b77565b6004548311610af3576000915050610b77565b6004548411610b47576005548311610b2c57610b2481610b1e60045486611fd590919063ffffffff16565b90611e61565b915050610b77565b610b2481610b1e600454600554611fd590919063ffffffff16565b6005548311610b5e57610b2481610b1e8587611fd5565b610b2481610b1e86600554611fd590919063ffffffff16565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff811660009081526009602052604081206005549091438210610bd15743610bd3565b815b600184015490915080821115610ccd57600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610c5457600080fd5b505afa158015610c68573d6000803e3d6000fd5b505050506040513d6020811015610c7e57600080fd5b505190508015610cc4576000610cab82610ca5670de0b6b3a7640000610b1e8b888a610a97565b9061204c565b6003870154909150610cbd9082611ed4565b6003870155505b50600184018290555b5050505050565b610cdd82610b9a565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600a60209081526040808320938616835260098252808320600381015460018601909352908320548454919391610d4a9190610d4490670de0b6b3a764000090610ca59087611e61565b90611fd5565b90508015610f765773ffffffffffffffffffffffffffffffffffffffff86166000908152600385016020526040902054610d849082611ed4565b73ffffffffffffffffffffffffffffffffffffffff871660009081526003860160205260409020556004830154610dbb9082611ed4565b60048401558354610dda90670de0b6b3a764000090610ca59085611e61565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260018601602090815260408083209390935560028701905290812054610e1c9083611ed4565b905060008773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610e8757600080fd5b505afa158015610e9b573d6000803e3d6000fd5b505050506040513d6020811015610eb157600080fd5b5051905081811015610eec5773ffffffffffffffffffffffffffffffffffffffff881660009081526002870160205260409020829055610f73565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600287016020526040812055610f1f8888846120cd565b6040805173ffffffffffffffffffffffffffffffffffffffff8a81168252602082018590528251908a16927f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e928290030190a25b50505b505050505050565b61708081565b60055481565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b6003541561101557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726f66697453686172696e67526577617264506f6f6c3a204c4f434b454400604482015290519081900360640190fd5b600160035560005473ffffffffffffffffffffffffffffffffffffffff16331461108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018061252a6033913960400191505060405180910390fd5b611092611472565b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff9384168082526020808301948552600083850181815260608501828152608086018381529483526009909352948120935184547fffffffffffffffffffffffff000000000000000000000000000000000000000016971696909617835593516001830155915160028201559151600380840191909155905160049092019190915555565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600a60209081526040808320868516845260098352818420600381015460085484517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015294519697939692959194889491909116926370a0823192602480840193919291829003018186803b1580156111d157600080fd5b505afa1580156111e5573d6000803e3d6000fd5b505050506040513d60208110156111fb57600080fd5b505160055490915060004382106112125743611214565b815b6001860154909150808211801561122a57508315155b1561125c57600061124c85610ca5670de0b6b3a7640000610b1e8f8789610a97565b90506112588682611ed4565b9550505b73ffffffffffffffffffffffffffffffffffffffff8a16600090815260018801602090815260408083205460028b019092529091205488546112bb9291610d44916112b590670de0b6b3a764000090610ca5908c611e61565b90611ed4565b9750505050505050505b92915050565b6009602052600090815260409020805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931693919290919085565b60005473ffffffffffffffffffffffffffffffffffffffff163314611381576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018061252a6033913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6008546113ed9073ffffffffffffffffffffffffffffffffffffffff16333084611b10565b61070d3382611bab565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b61141c336107d5565b565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60006112c5824343600101610a97565b60045481565b6001547501000000000000000000000000000000000000000000900460ff1681565b6006546114949073ffffffffffffffffffffffffffffffffffffffff16610b9a565b60075461141c9073ffffffffffffffffffffffffffffffffffffffff16610b9a565b6003541561152557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726f66697453686172696e67526577617264506f6f6c3a204c4f434b454400604482015290519081900360640190fd5b60016003819055336000818152600a6020908152604080832080548482556006805473ffffffffffffffffffffffffffffffffffffffff9081168752978301855283862086905560078054891687528487208790559054881686526002830190945282852085905592548616845290832092909255600854919390926115af929091169083611f48565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a250506000600355565b60025473ffffffffffffffffffffffffffffffffffffffff1633148061162b575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611680576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806125836038913960400191505060405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff16331480611704575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611759576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806126066036913960400191505060405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015474010000000000000000000000000000000000000000900460ff1615611814576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806125066024913960400191505060405180910390fd5b80431061188457604080517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048083019190915260248201527f6c61746500000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8088167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255600680548784169083161790556007805486841690831617905560018054928516928216929092179091556004829055600582905560008054909116331781556003556119158482610fa6565b610ccd8382610fa6565b6003541561198e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726f66697453686172696e67526577617264506f6f6c3a204c4f434b454400604482015290519081900360640190fd5b600160035573ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090206119c1836107d5565b81156119f95780546119d39083611fd5565b81556008546119f99073ffffffffffffffffffffffffffffffffffffffff168484611f48565b60065460075473ffffffffffffffffffffffffffffffffffffffff9182166000818152600960205260409020600301548454919390921691611a4991670de0b6b3a764000091610ca59190611e61565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526001860160209081526040808320949094559184168152600990915220600301548354611aa091670de0b6b3a764000091610ca591611e61565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526001860160209081526040918290209390935580518781529051918816927f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436492918290030190a250506000600355505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611ba5908590612197565b50505050565b60035415611c1a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726f66697453686172696e67526577617264506f6f6c3a204c4f434b454400604482015290519081900360640190fd5b600160035573ffffffffffffffffffffffffffffffffffffffff82166000908152600a60205260409020611c4d836107d5565b8054611c599083611ed4565b80825560065460075473ffffffffffffffffffffffffffffffffffffffff91821660008181526009602052604090206003015490939290911691611caa91670de0b6b3a764000091610ca591611e61565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526001860160209081526040808320949094559184168152600990915220600301548354611d0191670de0b6b3a764000091610ca591611e61565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526001860160209081526040918290209390935580518781529051918816927fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c92918290030190a250506000600355505050565b60004360055411611d83576000611d90565b600554611d909043611fd5565b90506000811180611da15750600082115b15611ba557611daf84610b9a565b611dd173ffffffffffffffffffffffffffffffffffffffff8516333086611b10565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260096020526040812060020154611e0a9085906112b59085611e61565b90506000611e24611e1d85617080611e61565b8490611ed4565b9050611e30828261204c565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260096020526040902060020155505050505050565b600082611e70575060006112c5565b82820282848281611e7d57fe5b0414610b77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806125bb6021913960400191505060405180910390fd5b600082820183811015610b7757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261095b908490612197565b60008282111561204657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008082116120bc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816120c557fe5b049392505050565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561213657600080fd5b505afa15801561214a573d6000803e3d6000fd5b505050506040513d602081101561216057600080fd5b5051905080821115612170578091505b8115611ba557611ba573ffffffffffffffffffffffffffffffffffffffff85168484611f48565b60606121f9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661226f9092919063ffffffff16565b80519091501561095b5780806020019051602081101561221857600080fd5b505161095b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806125dc602a913960400191505060405180910390fd5b606061227e8484600085612286565b949350505050565b6060824710156122e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061255d6026913960400191505060405180910390fd5b6122ea85612441565b61235557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106123bf57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612382565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612421576040519150601f19603f3d011682016040523d82523d6000602084013e612426565b606091505b5091509150612436828286612447565b979650505050505050565b3b151590565b60608315612456575081610b77565b8251156124665782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124ca5781810151838201526020016124b2565b50505050905090810190601f1680156124f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe50726f66697453686172696e67526577617264506f6f6c3a20696e697469616c697a656450726f66697453686172696e67526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c50726f66697453686172696e67526577617264506f6f6c3a2063616c6c6572206973206e6f74207468652065786368616e676550726f7879536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656450726f66697453686172696e67526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865207265736572766546756e64a26469706673582212201c47bd942158ac91d5bd5ed864be5d92eb7fd0930286ff8bb7419008e4d63afb64736f6c634300060c0033

Deployed ByteCode Sourcemap

22257:13535:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22518:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;23911:44;;;;;;;;;;;;;;;;-1:-1:-1;23911:44:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;32647:93;;;;;;;;;;;;;;;;-1:-1:-1;32647:93:0;;:::i;:::-;;31764:210;;;;;;;;;;;;;;;;-1:-1:-1;31764:210:0;;;;;;;;;:::i;32832:128::-;;;;;;;;;;;;;;;;-1:-1:-1;32832:128:0;;;;:::i;23683:73::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28719:551;;;;;;;;;;;;;;;;-1:-1:-1;28719:551:0;;;;;;;;;;;;:::i;23763:25::-;;;:::i;35539:250::-;;;;;;;;;;;;;;;;-1:-1:-1;35539:250:0;;;;;;;;;;;;;;;;;;:::i;26399:722::-;;;;;;;;;;;;;;;;-1:-1:-1;26399:722:0;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;22439:23;;;:::i;30147:875::-;;;;;;;;;;;;;;;;-1:-1:-1;30147:875:0;;;;:::i;32968:1408::-;;;;;;;;;;;;;;;;-1:-1:-1;32968:1408:0;;;;;;;;;;;:::i;22365:46::-;;;:::i;23565:29::-;;;:::i;23603:73::-;;;:::i;28406:305::-;;;;;;;;;;;;;;;;-1:-1:-1;28406:305:0;;;;;;;;;:::i;27307:1037::-;;;;;;;;;;;;;;;;-1:-1:-1;27307:1037:0;;;;;;;;;;;:::i;23797:56::-;;;;;;;;;;;;;;;;-1:-1:-1;23797:56:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25982:101;;;;;;;;;;;;;;;;-1:-1:-1;25982:101:0;;;;:::i;31583:173::-;;;;;;;;;;;;;;;;-1:-1:-1;31583:173:0;;:::i;22469:26::-;;;:::i;32748:76::-;;;:::i;22598:28::-;;;:::i;27129:170::-;;;;;;;;;;;;;;;;-1:-1:-1;27129:170:0;;;;:::i;23527:31::-;;;:::i;22556:33::-;;;:::i;30038:101::-;;;:::i;34447:425::-;;;:::i;26091:126::-;;;;;;;;;;;;;;;;-1:-1:-1;26091:126:0;;;;:::i;26225:116::-;;;;;;;;;;;;;;;;-1:-1:-1;26225:116:0;;;;:::i;25342:632::-;;;;;;;;;;;;;;;;-1:-1:-1;25342:632:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;22518:31::-;;;;;;;;;:::o;23911:44::-;;;;;;;;;;;;;;;;;;;:::o;32647:93::-;32702:30;32712:10;32724:7;32702:9;:30::i;:::-;32647:93;:::o;31764:210::-;24542:13;;:27;:13;24559:10;24542:27;;:53;;-1:-1:-1;24573:8:0;;:22;:8;24585:10;24573:22;24542:53;24534:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31864:10:::1;::::0;31857:71:::1;::::0;31864:10:::1;;31893;31913:4;31920:7:::0;31857:35:::1;:71::i;:::-;31939:27;31948:8;31958:7;31939:8;:27::i;:::-;31764:210:::0;;:::o;32832:128::-;32901:4;;32891:25;;32901:4;;32907:8;32891:9;:25::i;:::-;32937:4;;32927:25;;32937:4;;32943:8;32927:9;:25::i;23683:73::-;;;;;;:::o;28719:551::-;24730:11;;:25;:11;24745:10;24730:25;;:51;;-1:-1:-1;24759:8:0;;:22;:8;24771:10;24759:22;24730:51;24722:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28896:4:::1;::::0;28875:46:::1;::::0;28896:4:::1;;28902:11:::0;28915:5;28875:20:::1;:46::i;:::-;28953:4;::::0;28932:46:::1;::::0;28953:4:::1;;28959:11:::0;28972:5;28932:20:::1;:46::i;:::-;28993:9:::0;;28989:274:::1;;29040:12;29023:14;;:29;29019:233;;;29090:43;29107:25;:5:::0;22406::::1;29107:9;:25::i;:::-;29090:12;::::0;:16:::1;:43::i;:::-;29073:14;:60:::0;29019:233:::1;;;29191:45;29210:25;:5:::0;22406::::1;29210:9;:25::i;:::-;29191:14;::::0;;:18:::1;:45::i;:::-;29174:14;:62:::0;29019:233:::1;28719:551:::0;;;:::o;23763:25::-;;;;;;:::o;35539:250::-;24388:8;;:22;:8;24400:10;24388:22;24380:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35714:10:::1;::::0;::::1;35695:29:::0;;::::1;35714:10:::0;::::1;35695:29;;35687:52;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35750:31;:19;::::0;::::1;35770:2:::0;35774:6;35750:19:::1;:31::i;26399:722::-:0;26577:28;;;26531:7;26577:28;;;:14;:28;;;;;:43;;;26635:12;;;;;:39;;;26660:14;;26651:5;:23;;26635:39;26631:53;;;26683:1;26676:8;;;;;26631:53;26706:16;;26699:3;:23;26695:37;;26731:1;26724:8;;;;;26695:37;26756:16;;26747:5;:25;26743:222;;26800:14;;26793:3;:21;26789:164;;26823:46;26853:15;26823:25;26831:16;;26823:3;:7;;:25;;;;:::i;:::-;:29;;:46::i;:::-;26816:53;;;;;26789:164;26896:57;26937:15;26896:36;26915:16;;26896:14;;:18;;:36;;;;:::i;26789:164::-;26986:14;;26979:3;:21;26975:138;;27009:35;27028:15;27009:14;:3;27017:5;27009:7;:14::i;26975:138::-;27067:46;27097:15;27067:25;27086:5;27067:14;;:18;;:25;;;;:::i;26399:722::-;;;;;;:::o;22439:23::-;;;;;;:::o;30147:875::-;30245:28;;;30209:33;30245:28;;;:14;:28;;;;;30310:14;;30245:28;;30371:12;:30;-1:-1:-1;30371:63:0;;30422:12;30371:63;;;30404:15;30371:63;30472:26;;;;30335:99;;-1:-1:-1;30513:44:0;;;30509:506;;;30600:10;;30593:43;;;;;;30630:4;30593:43;;;;;;30574:16;;30600:10;;;30593:28;;:43;;;;;;;;;;;;;;30600:10;30593:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30593:43:0;;-1:-1:-1;30655:12:0;;30651:284;;30688:26;30717:100;30808:8;30717:86;30798:4;30717:76;30735:12;30749:16;30767:25;30717:17;:76::i;:86::-;:90;;:100::i;:::-;30867:28;;;;30688:129;;-1:-1:-1;30867:52:0;;30688:129;30867:32;:52::i;:::-;30836:28;;;:83;-1:-1:-1;30651:284:0;-1:-1:-1;30949:26:0;;;:54;;;30509:506;30147:875;;;;;:::o;32968:1408::-;33045:26;33058:12;33045;:26::i;:::-;33106:18;;;;33082:21;33106:18;;;:8;:18;;;;;;;;33171:28;;;;;:14;:28;;;;;33239;;;;33353:15;;;:29;;;;;;;33303:11;;33171:28;;33082:21;33303:80;;33353:29;33303:45;;33343:4;;33303:35;;33239:28;33303:15;:35::i;:45::-;:49;;:80::i;:::-;33278:105;-1:-1:-1;33398:18:0;;33394:975;;33472:36;;;;;;;:22;;;:36;;;;;;:56;;33513:14;33472:40;:56::i;:::-;33433:36;;;;;;;:22;;;:36;;;;;:95;33573:27;;;;:47;;33605:14;33573:31;:47::i;:::-;33543:27;;;:77;33667:11;;:45;;33707:4;;33667:35;;33683:18;33667:15;:35::i;:45::-;33635:29;;;;;;;:15;;;:29;;;;;;;;:77;;;;33749:11;;;:25;;;;;;:45;;33779:14;33749:29;:45::i;:::-;33727:67;;33923:22;33955:12;33948:30;;;33987:4;33948:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33948:45:0;;-1:-1:-1;34012:28:0;;;34008:350;;;34061:25;;;;;;;:11;;;:25;;;;;:39;;;34008:350;;;34168:25;;;34196:1;34168:25;;;:11;;;:25;;;;;:29;34216:55;34180:12;34249:8;34259:11;34216:18;:55::i;:::-;34295:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34008:350;33394:975;;;32968:1408;;;;;;:::o;22365:46::-;22406:5;22365:46;:::o;23565:29::-;;;;:::o;23603:73::-;;;;;;:::o;28406:305::-;24903:7;;:12;24895:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24972:1;24962:7;:11;24388:8:::1;::::0;:22:::1;:8;24400:10;24388:22;24380:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28508:18:::2;:16;:18::i;:::-;28568:135;::::0;;::::2;::::0;::::2;::::0;;::::2;::::0;;::::2;::::0;;;::::2;::::0;;::::2;::::0;;;-1:-1:-1;28568:135:0;;;;;;;;;;;;;;;;;;28537:28;;;:14:::2;:28:::0;;;;;;:166;;;;;::::2;::::0;::::2;::::0;;;::::2;::::0;;;;-1:-1:-1;28537:166:0;::::2;::::0;;;::::2;::::0;::::2;::::0;;;::::2;::::0;;::::2;::::0;;;;;;::::2;::::0;;::::2;::::0;;;;24996:11;28406:305::o;27307:1037::-;27437:18;;;;27393:7;27437:18;;;:8;:18;;;;;;;;27502:28;;;;;:14;:28;;;;;27570;;;;27635:10;;27628:43;;;;;27665:4;27628:43;;;;;;27393:7;;27437:18;;27502:28;;27570;;27393:7;;27635:10;;;;;27628:28;;:43;;;;;27437:18;;27628:43;;;;;;27635:10;27628:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27628:43:0;27708:14;;27628:43;;-1:-1:-1;27682:23:0;27769:12;:30;-1:-1:-1;27769:63:0;;27820:12;27769:63;;;27802:15;27769:63;27870:26;;;;27733:99;;-1:-1:-1;27911:44:0;;;:61;;;;-1:-1:-1;27959:13:0;;;27911:61;27907:301;;;27989:26;28018:100;28109:8;28018:86;28099:4;28018:76;28036:12;28050:16;28068:25;28018:17;:76::i;:100::-;27989:129;-1:-1:-1;28154:42:0;:18;27989:129;28154:22;:42::i;:::-;28133:63;;27907:301;;28306:29;;;;;;;:15;;;:29;;;;;;;;;28275:11;;;:25;;;;;;;28225:11;;:111;;28306:29;28225:76;;:45;;28265:4;;28225:35;;28241:18;28225:15;:35::i;:45::-;:49;;:76::i;:111::-;28218:118;;;;;;;;;27307:1037;;;;;:::o;23797:56::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;25982:101::-;24388:8;;:22;:8;24400:10;24388:22;24380:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26055:8:::1;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;25982:101::o;31583:173::-;31644:10;;31637:71;;31644:10;;31673;31693:4;31700:7;31637:35;:71::i;:::-;31719:29;31728:10;31740:7;31719:8;:29::i;22469:26::-;;;;;;:::o;32748:76::-;32791:25;32805:10;32791:13;:25::i;:::-;32748:76::o;22598:28::-;;;;;;:::o;27129:170::-;27201:7;27228:63;27246:12;27260;27274;27289:1;27274:16;27228:17;:63::i;23527:31::-;;;;:::o;22556:33::-;;;;;;;;;:::o;30038:101::-;30097:4;;30084:18;;30097:4;;30084:12;:18::i;:::-;30126:4;;30113:18;;30126:4;;30113:12;:18::i;34447:425::-;24903:7;;:12;24895:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24972:1;24962:7;:11;;;34534:10:::1;34501:21;34525:20:::0;;;:8:::1;:20;::::0;;;;;;;34574:11;;34596:15;;;34638:4:::1;::::0;;34525:20:::1;34638:4:::0;;::::1;34622:21:::0;;:15;;::::1;:21:::0;;;;;:25;;;34674:4:::1;::::0;;;::::1;34658:21:::0;;;;;:25;;;34706:4;;;::::1;34694:17:::0;;:11:::1;::::0;::::1;:17:::0;;;;;;:21;;;34738:4;;;::::1;34726:17:::0;;;;;:21;;;;34765:10:::1;::::0;34525:20;;34574:11;;34758:52:::1;::::0;34765:10;;::::1;::::0;34574:11;34758:31:::1;:52::i;:::-;34826:38;::::0;;;;;;;34844:10:::1;::::0;34826:38:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;25006:1:0;24996:7;:11;34447:425::o;26091:126::-;24542:13;;:27;:13;24559:10;24542:27;;:53;;-1:-1:-1;24573:8:0;;:22;:8;24585:10;24573:22;24542:53;24534:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26179:13:::1;:30:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;26091:126::o;26225:116::-;24730:11;;:25;:11;24745:10;24730:25;;:51;;-1:-1:-1;24759:8:0;;:22;:8;24771:10;24759:22;24730:51;24722:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26307:11:::1;:26:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;26225:116::o;25342:632::-;25069:11;;;;;;;25068:12;25060:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25570:17:::1;25555:12;:32;25547:49;;;::::0;;::::1;::::0;;::::1;;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;25609:10;:24:::0;;::::1;::::0;;::::1;::::0;;;::::1;;::::0;;;25644:4:::1;:12:::0;;;;::::1;::::0;;::::1;;::::0;;25667:4:::1;:12:::0;;;;::::1;::::0;;::::1;;::::0;;25609:24;25690:26;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;25727:16:::1;:36:::0;;;-1:-1:-1;25774:34:0;;;25609:10:::1;25821:21:::0;;;;::::1;25832:10;25821:21;::::0;;-1:-1:-1;25853:11:0;25877:39:::1;25651:5:::0;25746:17;25877:13:::1;:39::i;:::-;25927;25941:5;25948:17;25927:13;:39::i;32010:629::-:0;24903:7;;:12;24895:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24972:1;24962:7;:11;32113:18:::1;::::0;::::1;32089:21;32113:18:::0;;;:8:::1;:18;::::0;;;;32142:23:::1;32122:8:::0;32142:13:::1;:23::i;:::-;32180:11:::0;;32176:147:::1;;32222:11:::0;;:24:::1;::::0;32238:7;32222:15:::1;:24::i;:::-;32208:38:::0;;32268:10:::1;::::0;32261:50:::1;::::0;32268:10:::1;;32293:8:::0;32303:7;32261:31:::1;:50::i;:::-;32349:4;::::0;32380::::1;::::0;32349::::1;::::0;;::::1;32333:13;32436:21:::0;;;:14:::1;:21;::::0;;;;:39:::1;;::::0;32420:11;;32349:4;;32380;;::::1;::::0;32420:66:::1;::::0;32481:4:::1;::::0;32420:56:::1;::::0;:11;:15:::1;:56::i;:66::-;32395:22;::::0;;::::1;;::::0;;;:15:::1;::::0;::::1;:22;::::0;;;;;;;:91;;;;32538:21;;::::1;::::0;;:14:::1;:21:::0;;;;:39:::1;;::::0;32522:11;;:66:::1;::::0;32583:4:::1;::::0;32522:56:::1;::::0;:15:::1;:56::i;:66::-;32497:22;::::0;;::::1;;::::0;;;:15:::1;::::0;::::1;:22;::::0;;;;;;;;:91;;;;32604:27;;;;;;;;;::::1;::::0;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;;25006:1:0;24996:7;:11;-1:-1:-1;;;32010:629:0:o;19234:248::-;19405:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19428:27;19405:68;;;19378:96;;19398:5;;19378:19;:96::i;:::-;19234:248;;;;:::o;31056:519::-;24903:7;;:12;24895:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24972:1;24962:7;:11;31158:18:::1;::::0;::::1;31134:21;31158:18:::0;;;:8:::1;:18;::::0;;;;31187:23:::1;31167:8:::0;31187:13:::1;:23::i;:::-;31235:11:::0;;:24:::1;::::0;31251:7;31235:15:::1;:24::i;:::-;31221:38:::0;;;31286:4:::1;::::0;31317::::1;::::0;31286::::1;::::0;;::::1;31221:11;31373:21:::0;;;:14:::1;:21;::::0;;;;:39:::1;;::::0;31286:4;;31317;;;::::1;::::0;31357:66:::1;::::0;31418:4:::1;::::0;31357:56:::1;::::0;:15:::1;:56::i;:66::-;31332:22;::::0;;::::1;;::::0;;;:15:::1;::::0;::::1;:22;::::0;;;;;;;:91;;;;31475:21;;::::1;::::0;;:14:::1;:21:::0;;;;:39:::1;;::::0;31459:11;;:66:::1;::::0;31520:4:::1;::::0;31459:56:::1;::::0;:15:::1;:56::i;:66::-;31434:22;::::0;;::::1;;::::0;;;:15:::1;::::0;::::1;:22;::::0;;;;;;;;:91;;;;31541:26;;;;;;;;;::::1;::::0;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;;25006:1:0;24996:7;:11;-1:-1:-1;;;31056:519:0:o;29278:752::-;29421:22;29464:12;29447:14;;:29;29446:70;;29515:1;29446:70;;;29480:14;;:32;;29499:12;29480:18;:32::i;:::-;29421:95;;29548:1;29531:14;:18;:31;;;;29561:1;29553:5;:9;29531:31;29527:496;;;29579:26;29592:12;29579;:26::i;:::-;29620:78;:37;;;29658:10;29678:4;29685:12;29620:37;:78::i;:::-;29741:28;;;29713:25;29741:28;;;:14;:28;;;;;:43;;;:81;;29809:12;;29741:63;;29789:14;29741:47;:63::i;:81::-;29713:109;-1:-1:-1;29837:25:0;29865:45;29884:25;:5;22406;29884:9;:25::i;:::-;29865:14;;:18;:45::i;:::-;29837:73;-1:-1:-1;29971:40:0;:17;29837:73;29971:21;:40::i;:::-;29925:28;;;;;;;:14;:28;;;;;:43;;:86;-1:-1:-1;;29278:752:0;;;;:::o;6392:220::-;6450:7;6474:6;6470:20;;-1:-1:-1;6489:1:0;6482:8;;6470:20;6513:5;;;6517:1;6513;:5;:1;6537:5;;;;;:10;6529:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5513:179;5571:7;5603:5;;;5627:6;;;;5619:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19015:211;19159:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19182:23;19159:58;;;19132:86;;19152:5;;19132:19;:86::i;5975:158::-;6033:7;6066:1;6061;:6;;6053:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6120:5:0;;;5975:158::o;7090:153::-;7148:7;7180:1;7176;:5;7168:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7234:1;7230;:5;;;;;;;7090:153;-1:-1:-1;;;7090:153:0:o;34880:371::-;35008:17;35035:6;35028:24;;;35061:4;35028:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35028:39:0;;-1:-1:-1;35082:19:0;;;35078:71;;;35128:9;35118:19;;35078:71;35163:11;;35159:85;;35191:41;:27;;;35219:3;35224:7;35191:27;:41::i;21476:774::-;21900:23;21926:69;21954:4;21926:69;;;;;;;;;;;;;;;;;21934:5;21926:27;;;;:69;;;;;:::i;:::-;22010:17;;21900:95;;-1:-1:-1;22010:21:0;22006:237;;22165:10;22154:30;;;;;;;;;;;;;;;-1:-1:-1;22154:30:0;22146:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13903:229;14040:12;14072:52;14094:6;14102:4;14108:1;14111:12;14072:21;:52::i;:::-;14065:59;13903:229;-1:-1:-1;;;;13903:229:0:o;15023:571::-;15193:12;15251:5;15226:21;:30;;15218:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15318:18;15329:6;15318:10;:18::i;:::-;15310:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15444:12;15458:23;15485:6;:11;;15504:5;15511:4;15485:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15443:73;;;;15534:52;15552:7;15561:10;15573:12;15534:17;:52::i;:::-;15527:59;15023:571;-1:-1:-1;;;;;;;15023:571:0:o;10963:444::-;11343:20;11391:8;;;10963:444::o;17672:777::-;17822:12;17851:7;17847:595;;;-1:-1:-1;17882:10:0;17875:17;;17847:595;17996:17;;:21;17992:439;;18259:10;18253:17;18320:15;18307:10;18303:2;18299:19;18292:44;18207:148;18402:12;18395:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://1c47bd942158ac91d5bd5ed864be5d92eb7fd0930286ff8bb7419008e4d63afb
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.