Contract 0x5eFe33090ebc78E09c03Dc3DC46Ef305880fc398

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x01a6a30ad1eb5056ee77335af52c159b1d44d0444b2e25b425b36ea00652d58cExit182058792021-08-20 19:57:4630 days 14 hrs ago0x0e7686a71f9c8d4de9f92ecfe2e5ca8e3d4dfc27 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000216012216
0xd866220ea165b8e93c87cc1c1f9caaf09caa53016d613268e47f520bbb58adb5Exit173253752021-07-27 14:05:4254 days 20 hrs ago0x61d7ece32854caf46c6304fd536704eacd4da256 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.0108006
0xff30719ec5bcd846869d471260d3ac97361e99474b07c2f3689e4f1a1c951d62Withdraw159426882021-06-20 15:01:2491 days 19 hrs ago0x532fd36ea87cf9f316fad40b39385a4716065b8c IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000741133801
0x3534fd84f04acc79ea13667e1be76301bc8d817de47a296f2899046c7de20aafDeposit159340102021-06-20 9:41:4592 days 31 mins ago0x532fd36ea87cf9f316fad40b39385a4716065b8c IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.00016165263
0x246cb707ed0f660f77d3b8a14b4767ae1fdc5ff843eef4fac577581a776b74c4Exit158411432021-06-17 23:58:5994 days 10 hrs ago0x56f6bf6b793713c050fd02147a45b563bb4d8efa IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000216012
0x9a8504a2aa80ac9b6c96c7f16c3e97fe2c07c73cd158c55267dc78919dd5b4edExit156805882021-06-13 21:30:2998 days 12 hrs ago0xad6fb854a71dc0d0fbbf3c9952cf086014c5bc04 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000071866
0x9cc8ede6269f55abb61238693b12c7804e3b01584de461028e4d138939d3819eWithdraw156804082021-06-13 21:22:5998 days 12 hrs ago0xad6fb854a71dc0d0fbbf3c9952cf086014c5bc04 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000026313
0xaff49b81a0c75b075cd52ba9a70defec713cfb9fdce30ba176fb30b4b780fd11Withdraw156803832021-06-13 21:21:1598 days 12 hrs ago0xad6fb854a71dc0d0fbbf3c9952cf086014c5bc04 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000245968
0x30e339f69142f9dbce6c3c521e5a5a721aacc7c2e3b16377e6c45c7779a90475Withdraw155214492021-06-09 18:59:59102 days 15 hrs ago0x1649b7518ed8d64f07771ee16def11174afe8b12 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000131085
0xbcd9b2fd3ca0620c06325a1900ef3f4a590ce0d98dfbad2543cecbfa8ef5c72aWithdraw155214492021-06-09 18:59:59102 days 15 hrs ago0x1649b7518ed8d64f07771ee16def11174afe8b12 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.00017682
0x33420d36e53bd50465ea55b07182f9a79b0585ac23a71a33fa9c3de2777aa7d5Exit152465522021-06-02 15:26:55109 days 18 hrs ago0xa7f29e2663ccb3e099ce3da7aed355282144939d IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000229635
0xf82c2faf4fc1567b1176f632315d726eec988b172d624dabfff0324d3cf670bdExit149664632021-05-26 22:07:35116 days 12 hrs ago0xfae5cc2db63bee92ca8c3723a08088b3ccd22c76 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000088966
0x29c451f2c2866f5fef0e3055d1ce72953dafce37a5b9fa50b73e4507e09fbc37Exit149587582021-05-26 17:13:40116 days 16 hrs ago0x8f2e3645bf4ff7693fda321f19f3b2a4292c5006 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000229623
0x0dba3840ffa87ee4db1b8847ddbcf138ee3e28202921c56ac307da27014e61b0Withdraw147361762021-05-20 21:29:38122 days 12 hrs ago0xe2abb449f192bc55593c26993d354be81b086087 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000097998
0xf7432d3b480c2e5f97832e0bb8645f4c42b6a42ca23b778c193e3abf30b6af1cWithdraw147360832021-05-20 21:26:28122 days 12 hrs ago0xe2abb449f192bc55593c26993d354be81b086087 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000112986
0x9ad7785e032128543f0bc864268c2dd22749fac7d2124d90be05c843dbd22135Exit146463522021-05-18 14:47:10124 days 19 hrs ago0x3419e7ef61f931fc3329fbed11be98b2fcc699f8 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000185212
0x0703f266d60e81e6c21471291ef584e3088ccd5cc51c9028a271d5abb5a0bc51Exit146463242021-05-18 14:46:10124 days 19 hrs ago0x3419e7ef61f931fc3329fbed11be98b2fcc699f8 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000200212
0x5ad4d2a6e8007ee9009286a30a6e404f13c8c9dc8bec6ab8dc21ae6d0efdad77Exit146462622021-05-18 14:44:02124 days 19 hrs ago0x3419e7ef61f931fc3329fbed11be98b2fcc699f8 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000200212
0x770b209c4a4d4ce21aaf53c3af9250b0d473902f9e9dab1383bcfc050c9266d2Exit146461832021-05-18 14:41:20124 days 19 hrs ago0x3419e7ef61f931fc3329fbed11be98b2fcc699f8 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000228823
0x7d5bb4d6539ee161a4c4d76922a6ef98a070d3f3e6ad1178760e7b98460b750eExit145674742021-05-16 14:30:36126 days 19 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000200212
0x9e79aece41372db424d3e097733728e1e36dd8a096f950cccc0956dcf1415d8aExit145674482021-05-16 14:29:44126 days 19 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000083766
0x79d1324c0aba9b614e3073adabac2357af7d44731a9684e39b0c76d03c9f36cbWithdraw145674462021-05-16 14:29:40126 days 19 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.00020176
0x1b5c78c2855c9c1d170b683a1bee428d2093eadc368f8f2cb62876e6ed5c35a3Exit145562892021-05-16 7:51:57127 days 2 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000083766
0x0da883d8b24502cc6fbd7b42912d3c3005e4c7d01406dbeaef8aafa430478e8dWithdraw145562872021-05-16 7:51:49127 days 2 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.00020176
0xf48411748ce395c71990bc31f1e0aa0fa6127cc59bb9a371ea4c0d08946e3c95Exit145562762021-05-16 7:51:27127 days 2 hrs ago0xf59e8ba9da96491c5582a237a4e06500bf3199f6 IN  0x5efe33090ebc78e09c03dc3dc46ef305880fc3980 MATIC0.000083766
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DBMaster

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-30
*/

/**
 *Submitted for verification at Etherscan.io on 2020-09-09
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT + WTFPL

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol


pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity ^0.6.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/EnumerableSet.sol



pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol



pragma solidity ^0.6.0;

/*
 * @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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/access/Ownable.sol



pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: contracts/SakeMaster.sol

pragma solidity 0.6.12;





interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

interface IUniswapV2Router {
    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
}

interface IMigratorChef {
    // Perform LP token migration from legacy UniswapV2 to SakeSwap.
    // Take the current LP token address and return the new LP token address.
    // Migrator should have full access to the caller's LP token.
    // Return the new LP token address.
    //
    // XXX Migrator must have allowance access to UniswapV2 LP tokens.
    // SakeSwap must mint EXACTLY the same amount of SakeSwap LP tokens or
    // else something bad will happen. Traditional UniswapV2 does not
    // do that so be careful!
    function migrate(IERC20 token) external returns (IERC20);
}

interface SakeToken {
    function transfer(address to, uint256 value) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
    function approval_burn(address b_address, uint256 b_amount) external;
    function approval_burn_from(address b_address, uint256 b_amount) external;
    function approval_mint(address m_address, uint256 m_amount) external;
    function approve(address spender, uint256 amount) external returns (bool);
}

// SakeMaster is the master of Sake. He can make Sake and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once SAKE is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract DBMaster is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of SAKEs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accSakePerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accSakePerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. SAKEs to distribute per block.
        uint256 lastRewardBlock; // Last block number that SAKEs distribution occurs.
        uint256 accSakePerShare; // Accumulated SAKEs per share, times 1e12. See below.
    }

    // The SAKE TOKEN!
    SakeToken public sake = SakeToken(0x0e59D50adD2d90f5111aca875baE0a72D95B4762);
    // Dev address.
    address public devaddr = 0xFc1cA508A0E36E362cdbF17780eA8Db796FC0740;
    // Block number when beta test period ends.
    uint256 public betaTestEndBlock;
    // Block number when bonus SAKE period ends.
    uint256 public bonusEndBlock;
    // Block number when mint SAKE period ends.
    uint256 public mintEndBlock;
    // SAKE tokens created per block.
    uint256 public sakePerBlock = 200000000000000;
    // Bonus muliplier for 5~20 days sake makers.
    uint256 public constant BONUSONE_MULTIPLIER = 10;
    // Bonus muliplier for 20~35 sake makers.
    uint256 public constant BONUSTWO_MULTIPLIER = 20;
    // beta test block num,about 5 days.
    uint256 public constant BETATEST_BLOCKNUM = 216000;
    // Bonus block num,about 15 days.
    uint256 public constant BONUS_BLOCKNUM = 648000;
    // mint end block num,about 30 days.
    uint256 public constant MINTEND_BLOCKNUM = 1080000;
    // The migrator contract. It has a lot of power. Can only be set through governance (owner).
    IMigratorChef public migrator;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Record whether the pair has been added.
    mapping(address => uint256) public lpTokenPID;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when SAKE mining starts.
    uint256 public startBlock;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount
    );

    address[] public stakedMember;

    address public DB_DUSD_LP = 0x2A167f09c7B7B06D729877a708051033DE1B8fA5;
    address public DB_RDUSD_LP = 0x5A35B8768f60341680D78d0C12450234552E390B;

    mapping (address => uint256) public memberDB;
    mapping (address => uint256) public memberDBunstaked;
    mapping (address => bool) public memberCheck;

    constructor() public {
        startBlock = block.number;
        betaTestEndBlock = startBlock.add(BETATEST_BLOCKNUM);
        bonusEndBlock = startBlock.add(BONUS_BLOCKNUM).add(BETATEST_BLOCKNUM);
        mintEndBlock = startBlock.add(MINTEND_BLOCKNUM).add(BETATEST_BLOCKNUM);
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        require(lpTokenPID[address(_lpToken)] == 0, "SakeMaster:duplicate add.");
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accSakePerShare: 0
            })
        );
        lpTokenPID[address(_lpToken)] = poolInfo.length;
    }

    // Update the given pool's SAKE allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Set the migrator contract. Can only be called by the owner.
    function setMigrator(IMigratorChef _migrator) public onlyOwner {
        migrator = _migrator;
    }

    // Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
    function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: no migrator");
        PoolInfo storage pool = poolInfo[_pid];
        IERC20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        IERC20 newLpToken = migrator.migrate(lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        uint256 _toFinal = _to > mintEndBlock ? mintEndBlock : _to;
        if (_toFinal <= betaTestEndBlock) {
             return _toFinal.sub(_from);
        }else if (_from >= mintEndBlock) {
            return 0;
        } else if (_toFinal <= bonusEndBlock) {
            if (_from < betaTestEndBlock) {
                return betaTestEndBlock.sub(_from).add(_toFinal.sub(betaTestEndBlock).mul(BONUSONE_MULTIPLIER));
            } else {
                return _toFinal.sub(_from).mul(BONUSONE_MULTIPLIER);
            }
        } else {
            if (_from < betaTestEndBlock) {
                return betaTestEndBlock.sub(_from).add(bonusEndBlock.sub(betaTestEndBlock).mul(BONUSONE_MULTIPLIER)).add(
                    (_toFinal.sub(bonusEndBlock).mul(BONUSTWO_MULTIPLIER)));
            } else if (betaTestEndBlock <= _from && _from < bonusEndBlock) {
                return bonusEndBlock.sub(_from).mul(BONUSONE_MULTIPLIER).add(_toFinal.sub(bonusEndBlock).mul(BONUSTWO_MULTIPLIER));
            } else {
                return _toFinal.sub(_from).mul(BONUSTWO_MULTIPLIER);
            }
        } 
    }

    // View function to see pending SAKEs on frontend.
    function pendingSake(uint256 _pid, address _user) public view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSakePerShare = pool.accSakePerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 sakeReward = multiplier.mul(sakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accSakePerShare = accSakePerShare.add(sakeReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accSakePerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward vairables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        if (multiplier == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 sakeReward = multiplier.mul(sakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        sake.approval_mint(address(this), sakeReward);
        pool.accSakePerShare = pool.accSakePerShare.add(sakeReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to SakeMaster for SAKE allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accSakePerShare).div(1e12).sub(user.rewardDebt);
        user.amount = user.amount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accSakePerShare).div(1e12);
        if (pending > 0) safeSakeTransfer(msg.sender, pending);
        pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
        emit Deposit(msg.sender, _pid, _amount);

        if (trackingsnapshot) {

            if (memberCheck[msg.sender] == false) {
                memberCheck[msg.sender] = true;
                stakedMember.push(msg.sender);
            }

            if (_pid == 0) {
                uint256 stakedDB0 = getDB_DUSD_Pool_stakedDB(_amount);
                memberDB[msg.sender] = memberDB[msg.sender].add(stakedDB0);
            }

            if (_pid == 1) {
                uint256 stakedDB1 = getDB_RDUSD_Pool_stakedDB(_amount);
                memberDB[msg.sender] = memberDB[msg.sender].add(stakedDB1);
            }

        }
    }

    // Withdraw LP tokens from SakeMaster.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accSakePerShare).div(1e12).sub(user.rewardDebt);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accSakePerShare).div(1e12);
        safeSakeTransfer(msg.sender, pending);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);

        if (trackingsnapshot) {

            if (_pid == 0) {
                uint256 stakedDB0 = getDB_DUSD_Pool_stakedDB(_amount);
                memberDBunstaked[msg.sender] = memberDBunstaked[msg.sender].add(stakedDB0);
            }

            if (_pid == 1) {
                uint256 stakedDB1 = getDB_RDUSD_Pool_stakedDB(_amount);
                memberDBunstaked[msg.sender] = memberDBunstaked[msg.sender].add(stakedDB1);
            }
            
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount > 0, "emergencyWithdraw: not good");
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe sake transfer function, just in case if rounding error causes pool to not have enough SAKEs.
    function safeSakeTransfer(address _to, uint256 _amount) internal {
        uint256 sakeBal = sake.balanceOf(address(this));
        if (_amount > sakeBal) {
            sake.transfer(_to, sakeBal);
        } else {
            sake.transfer(_to, _amount);
        }
    }

    // Update dev address by the previous dev.
    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function getDBdUSD() public view returns (uint256) {
        (uint256 _r0, uint256 _r1,) = IUniswapV2Pair(DB_DUSD_LP).getReserves();
        return _r0;
    }

    function getDBrdUSD() public view returns (uint256) {
        (uint256 _r0, uint256 _r1,) = IUniswapV2Pair(DB_RDUSD_LP).getReserves();
        return _r0;
    }

    function getDB_DUSD_Pool_stakedDB(uint256 amount) public view returns (uint256) {
        (uint256 _r0, uint256 _r1,) = IUniswapV2Pair(DB_DUSD_LP).getReserves();
        uint256 totalDBinLP = _r0;
        uint256 totalLPToken = IUniswapV2Pair(DB_DUSD_LP).totalSupply();
        uint256 stakedDB = totalDBinLP.mul(amount).div(totalLPToken);
        return stakedDB;
    }

    function getDB_RDUSD_Pool_stakedDB(uint256 amount) public view returns (uint256) {
        (uint256 _r0, uint256 _r1,) = IUniswapV2Pair(DB_RDUSD_LP).getReserves();
        uint256 totalDBinLP = _r0;
        uint256 totalLPToken = IUniswapV2Pair(DB_RDUSD_LP).totalSupply();
        uint256 stakedDB = totalDBinLP.mul(amount).div(totalLPToken);
        return stakedDB;
    }

    function getstakedDB(address account) public view returns (uint256) {
        return memberDB[account];
    }

    function getunstakedDB(address account) public view returns (uint256) {
        return memberDBunstaked[account];
    }

    function getstakers() public view returns (address[] memory) {
        return stakedMember;
    }

    bool public trackingsnapshot = true;

    function toggletrackingsnapshot() public {
        require(msg.sender == devaddr, "dev: wut?");
        trackingsnapshot = !trackingsnapshot;
    }

    function balanceOf(uint256 _pid, address _user) public view returns (uint256) {
        UserInfo storage user = userInfo[_pid][_user];
        return user.amount;
    }

    function earned(uint256 _pid, address _user) public view returns (uint256) {
        uint256 earn = pendingSake(_pid, _user);
        return earn;
    }

    function exit(uint256 _pid) public {
        uint256 totalstaked = balanceOf(_pid, msg.sender);
        withdraw(_pid, totalstaked);
    }

    function totalSupply(uint256 _pid) public view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        IERC20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        return bal;
    }

    IERC20 public DBdUSD = IERC20(0x2A167f09c7B7B06D729877a708051033DE1B8fA5);
    IERC20 public DBrdUSD = IERC20(0x5A35B8768f60341680D78d0C12450234552E390B);

    IERC20 public DBWMATIC = IERC20(0x8422afe8C0285c393DD0f63da1fB12642Fb154FD);
    IERC20 public DBWETH = IERC20(0xEeaC90Aa76960d0622ca5ae2528b5418f0Ec7Bb4);
    IERC20 public DBWBTC = IERC20(0xAF38dD71D57FBE82F4b101d399bE913B8fDd2c3d);
    IERC20 public DBGHST = IERC20(0x23669f7e99b58436ec58E6e5a4b36d1ee05df186);
    IERC20 public DBmaAAVE = IERC20(0xDf82E44F2c579ED9db37b66F9eD7af04E5ABB9d0);

    IERC20 public rdUSDUSDC = IERC20(0x501082E1926A721CdcB1254EDebAa0717d2a0D91);
    IERC20 public dUSDUSDC = IERC20(0x3fd96747042Ea84e911b6Af7A61226eAd71ebe82);

    IERC20 public WMATICWETH = IERC20(0xadbF1854e5883eB8aa7BAf50705338739e558E5b);

    function fire() public {
        require(msg.sender == devaddr, "dev: wut?");
        add(45, DBdUSD, true);
        add(40, DBrdUSD, true);

        add(30, DBWMATIC, true);
        add(20, DBWETH, true);
        add(10, DBWBTC, true);
        add(10, DBGHST, true);
        add(15, DBmaAAVE, true);

        add(25, rdUSDUSDC, true);
        add(15, dUSDUSDC, true);

        add(30, WMATICWETH, true);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BETATEST_BLOCKNUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONUSONE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONUSTWO_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONUS_BLOCKNUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBGHST","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBWBTC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBWETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBWMATIC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DB_DUSD_LP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DB_RDUSD_LP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBdUSD","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBmaAAVE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DBrdUSD","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTEND_BLOCKNUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WMATICWETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"betaTestEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dUSDUSDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fire","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDB_DUSD_Pool_stakedDB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDB_RDUSD_Pool_stakedDB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDBdUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDBrdUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getstakedDB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getstakers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getunstakedDB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lpTokenPID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"memberCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"memberDB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"memberDBunstaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingSake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accSakePerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rdUSDUSDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sake","outputs":[{"internalType":"contract SakeToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sakePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggletrackingsnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackingsnapshot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600180546001600160a01b0319908116730e59d50add2d90f5111aca875bae0a72d95b476217825560028054821673fc1ca508a0e36e362cdbf17780ea8db796fc074017905565b5e620f480006006556000600b55600e80548216732a167f09c7b7b06d729877a708051033de1b8fa5179055600f80548216735a35b8768f60341680d78d0c12450234552e390b90811790915560138054742a167f09c7b7b06d729877a708051033de1b8fa500610100600160a81b031960ff199092169095171693909317909255601480548216909217909155601580548216738422afe8c0285c393dd0f63da1fb12642fb154fd17905560168054821673eeac90aa76960d0622ca5ae2528b5418f0ec7bb417905560178054821673af38dd71d57fbe82f4b101d399be913b8fdd2c3d1790556018805482167323669f7e99b58436ec58e6e5a4b36d1ee05df18617905560198054821673df82e44f2c579ed9db37b66f9ed7af04e5abb9d0179055601a8054821673501082e1926a721cdcb1254edebaa0717d2a0d91179055601b80548216733fd96747042ea84e911b6af7a61226ead71ebe82179055601c805490911673adbf1854e5883eb8aa7baf50705338739e558e5b179055348015620001d757600080fd5b506000620001e4620002cb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35043600c819055506200025462034bc0600c54620002cf60201b620022ce1790919060201c565b6003819055506200029562034bc0620002816209e340600c54620002cf60201b620022ce1790919060201c565b620002cf60201b620022ce1790919060201c565b600481905550620002c262034bc06200028162107ac0600c54620002cf60201b620022ce1790919060201c565b60055562000331565b3390565b6000828201838110156200032a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b612bbd80620003416000396000f3fe608060405234801561001057600080fd5b50600436106103c55760003560e01c80637497796c116101ff578063bb1b4ef91161011a578063d49e77cd116100ad578063e39c08fc1161007c578063e39c08fc14610938578063ec7f0a7a14610964578063ef7688561461096c578063f2fde38b14610974576103c5565b8063d49e77cd146108e8578063d7787abf146108f0578063e2bbb158146108f8578063e2c20c3b1461091b576103c5565b8063c5630a16116100e9578063c5630a16146108aa578063c674532e146108d0578063c7cc54d0146108d8578063ca85fd35146108e0576103c5565b8063bb1b4ef91461083c578063bd85b03914610859578063bea08b1014610876578063c43055761461087e576103c5565b80638aeecc8f116101925780638dbb1e3a116101615780638dbb1e3a146107c457806393f1a40b146107e7578063a10959d21461082c578063a49682e814610834576103c5565b80638aeecc8f146107685780638c982717146107705780638d88a90e146107965780638da5cb5b146107bc576103c5565b80637cd07e47116101ce5780637cd07e47146107005780637f8661a114610708578063800d4b4914610725578063859e74a914610742576103c5565b80637497796c146106c257806375ddc209146106e8578063786a594a146106f05780637a72dc3d146106f8576103c5565b80633656eec2116102ef578063550837731161028257806364482f791161025157806364482f791461066157806367813e051461068c5780636b130846146106b2578063715018a6146106ba576103c5565b806355083773146105dd5780635d2a9134146105f957806360c7cd0714610601578063630b5ba114610659576103c5565b806348cd4cb1116102be57806348cd4cb11461059357806351eb05a61461059b57806352217e5b146105b85780635312ea8e146105c0576103c5565b80633656eec21461051f578063441a3e701461054b578063454b06081461056e578063457094cc1461058b576103c5565b80631eaaa045116103675780632795de1c116103365780632795de1c146104ff57806327a1804f146105075780632ce666a51461050f57806333c49f7914610517576103c5565b80631eaaa04514610493578063214400ec146104c95780632398301b146104d157806323cf3118146104d9576103c5565b80630b945b7d116103a35780630b945b7d146104105780631526fe271461043657806317caf6f1146104835780631aed65531461048b576103c5565b8063081e3eda146103ca5780630a8fe78e146103e45780630b695dc314610408575b600080fd5b6103d261099a565b60408051918252519081900360200190f35b6103ec6109a0565b604080516001600160a01b039092168252519081900360200190f35b6103ec6109af565b6103d26004803603602081101561042657600080fd5b50356001600160a01b03166109be565b6104536004803603602081101561044c57600080fd5b50356109d0565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6103d2610a11565b6103d2610a17565b6104c7600480360360608110156104a957600080fd5b508035906001600160a01b0360208201351690604001351515610a1d565b005b6103d2610c19565b6103ec610ca8565b6104c7600480360360208110156104ef57600080fd5b50356001600160a01b0316610cb7565b6103ec610d31565b6103d2610d40565b6103d2610d47565b6103d2610d4d565b6103d26004803603604081101561053557600080fd5b50803590602001356001600160a01b0316610d53565b6104c76004803603604081101561056157600080fd5b5080359060200135610d7d565b6104c76004803603602081101561058457600080fd5b5035610f5e565b6104c76111ba565b6103d2611310565b6104c7600480360360208110156105b157600080fd5b5035611316565b6103d26114ce565b6104c7600480360360208110156105d657600080fd5b5035611521565b6105e561160a565b604080519115158252519081900360200190f35b6103ec611613565b610609611627565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561064557818101518382015260200161062d565b505050509050019250505060405180910390f35b6104c7611689565b6104c76004803603606081101561067757600080fd5b508035906020810135906040013515156116ac565b6103d2600480360360208110156106a257600080fd5b50356001600160a01b031661177d565b6103ec611798565b6104c76117a7565b6105e5600480360360208110156106d857600080fd5b50356001600160a01b0316611849565b6104c761185e565b6103ec6118bd565b6103ec6118cc565b6103ec6118db565b6104c76004803603602081101561071e57600080fd5b50356118ea565b6103d26004803603602081101561073b57600080fd5b5035611902565b6103d26004803603602081101561075857600080fd5b50356001600160a01b0316611a29565b6103ec611a44565b6103d26004803603602081101561078657600080fd5b50356001600160a01b0316611a53565b6104c7600480360360208110156107ac57600080fd5b50356001600160a01b0316611a65565b6103ec611ad2565b6103d2600480360360408110156107da57600080fd5b5080359060200135611ae1565b610813600480360360408110156107fd57600080fd5b50803590602001356001600160a01b0316611c24565b6040805192835260208301919091528051918290030190f35b6103ec611c48565b6103ec611c57565b6103ec6004803603602081101561085257600080fd5b5035611c66565b6103d26004803603602081101561086f57600080fd5b5035611c8d565b6103ec611d2b565b6103d26004803603604081101561089457600080fd5b50803590602001356001600160a01b0316611d3a565b6103d2600480360360208110156108c057600080fd5b50356001600160a01b0316611e91565b6103d2611ea3565b6103d2611eaa565b6103d2611eb0565b6103ec611eb5565b6103ec611ec4565b6104c76004803603604081101561090e57600080fd5b5080359060200135611ed3565b6103d26004803603602081101561093157600080fd5b50356120d7565b6103d26004803603604081101561094e57600080fd5b50803590602001356001600160a01b03166121b5565b6103d26121ca565b6103d26121d1565b6104c76004803603602081101561098a57600080fd5b50356001600160a01b03166121d6565b60085490565b6016546001600160a01b031681565b6017546001600160a01b031681565b600a6020526000908152604090205481565b600881815481106109dd57fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b600b5481565b60045481565b610a2561232f565b6000546001600160a01b03908116911614610a75576040805162461bcd60e51b81526020600482018190526024820152600080516020612b08833981519152604482015290519081900360640190fd5b8015610a8357610a83611689565b6001600160a01b0382166000908152600a602052604090205415610aee576040805162461bcd60e51b815260206004820152601960248201527f53616b654d61737465723a6475706c6963617465206164642e00000000000000604482015290519081900360640190fd5b6000600c544311610b0157600c54610b03565b435b600b54909150610b1390856122ce565b600b55604080516080810182526001600160a01b0394851680825260208083019788528284019485526000606084018181526008805460018101825581845295517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490970296870180546001600160a01b03191691909b161790995598517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee485015594517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee584015596517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909201919091559354938252600a909452929092205550565b6000806000600f60009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610c6c57600080fd5b505afa158015610c80573d6000803e3d6000fd5b505050506040513d6060811015610c9657600080fd5b50516001600160701b03169250505090565b6019546001600160a01b031681565b610cbf61232f565b6000546001600160a01b03908116911614610d0f576040805162461bcd60e51b81526020600482018190526024820152600080516020612b08833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b031681565b6209e34081565b60055481565b60035481565b60008281526009602090815260408083206001600160a01b03851684529091529020545b92915050565b600060088381548110610d8c57fe5b600091825260208083208684526009825260408085203386529092529220805460049092029092019250831115610dff576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610e0884611316565b6000610e428260010154610e3c64e8d4a51000610e368760030154876000015461233390919063ffffffff16565b9061238c565b906123ce565b8254909150610e5190856123ce565b8083556003840154610e6e9164e8d4a5100091610e369190612333565b6001830155610e7d3382612410565b8254610e93906001600160a01b0316338661259e565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a360135460ff1615610f575784610f14576000610ee585611902565b33600090815260116020526040902054909150610f0290826122ce565b33600090815260116020526040902055505b8460011415610f57576000610f28856120d7565b33600090815260116020526040902054909150610f4590826122ce565b33600090815260116020526040902055505b5050505050565b6007546001600160a01b0316610fb2576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b600060088281548110610fc157fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b15801561101a57600080fd5b505afa15801561102e573d6000803e3d6000fd5b505050506040513d602081101561104457600080fd5b5051600754909150611063906001600160a01b038481169116836125f0565b6007546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b1580156110b557600080fd5b505af11580156110c9573d6000803e3d6000fd5b505050506040513d60208110156110df57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b15801561112b57600080fd5b505afa15801561113f573d6000803e3d6000fd5b505050506040513d602081101561115557600080fd5b50518214611199576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b6002546001600160a01b03163314611205576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b60135461122490602d9061010090046001600160a01b03166001610a1d565b60145461123e906028906001600160a01b03166001610a1d565b60155461125890601e906001600160a01b03166001610a1d565b601654611272906014906001600160a01b03166001610a1d565b60175461128c90600a906001600160a01b03166001610a1d565b6018546112a690600a906001600160a01b03166001610a1d565b6019546112c090600f906001600160a01b03166001610a1d565b601a546112da906019906001600160a01b03166001610a1d565b601b546112f490600f906001600160a01b03166001610a1d565b601c5461130e90601e906001600160a01b03166001610a1d565b565b600c5481565b60006008828154811061132557fe5b906000526020600020906004020190508060020154431161134657506114cb565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561139057600080fd5b505afa1580156113a4573d6000803e3d6000fd5b505050506040513d60208110156113ba57600080fd5b50519050806113d05750436002909101556114cb565b60006113e0836002015443611ae1565b9050806113f5575050436002909101556114cb565b6000611420600b54610e36866001015461141a6006548761233390919063ffffffff16565b90612333565b6001546040805163937d9c4760e01b81523060048201526024810184905290519293506001600160a01b039091169163937d9c479160448082019260009290919082900301818387803b15801561147657600080fd5b505af115801561148a573d6000803e3d6000fd5b505050506114b86114ad84610e3664e8d4a510008561233390919063ffffffff16565b6003860154906122ce565b6003850155505043600290920191909155505b50565b6000806000600e60009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610c6c57600080fd5b60006008828154811061153057fe5b6000918252602080832085845260098252604080852033865290925292208054600490920290920192506115ab576040805162461bcd60e51b815260206004820152601b60248201527f656d657267656e637957697468647261773a206e6f7420676f6f640000000000604482015290519081900360640190fd5b80546000808355600183015582546115cd906001600160a01b0316338361259e565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60135460ff1681565b60135461010090046001600160a01b031681565b6060600d80548060200260200160405190810160405280929190818152602001828054801561167f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611661575b5050505050905090565b60085460005b818110156116a8576116a081611316565b60010161168f565b5050565b6116b461232f565b6000546001600160a01b03908116911614611704576040805162461bcd60e51b81526020600482018190526024820152600080516020612b08833981519152604482015290519081900360640190fd5b801561171257611712611689565b61174f826117496008868154811061172657fe5b906000526020600020906004020160010154600b546123ce90919063ffffffff16565b906122ce565b600b81905550816008848154811061176357fe5b906000526020600020906004020160010181905550505050565b6001600160a01b031660009081526011602052604090205490565b601a546001600160a01b031681565b6117af61232f565b6000546001600160a01b039081169116146117ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612b08833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60126020526000908152604090205460ff1681565b6002546001600160a01b031633146118a9576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b6013805460ff19811660ff90911615179055565b600f546001600160a01b031681565b601c546001600160a01b031681565b6007546001600160a01b031681565b60006118f68233610d53565b90506116a88282610d7d565b6000806000600e60009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561195557600080fd5b505afa158015611969573d6000803e3d6000fd5b505050506040513d606081101561197f57600080fd5b508051602091820151600e54604080516318160ddd60e01b815290516001600160701b03948516975093909216945085936000936001600160a01b03909216926318160ddd9260048083019392829003018186803b1580156119e057600080fd5b505afa1580156119f4573d6000803e3d6000fd5b505050506040513d6020811015611a0a57600080fd5b505190506000611a1e82610e36858a612333565b979650505050505050565b6001600160a01b031660009081526010602052604090205490565b6018546001600160a01b031681565b60106020526000908152604090205481565b6002546001600160a01b03163314611ab0576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6000806005548311611af35782611af7565b6005545b90506003548111611b1457611b0c81856123ce565b915050610d77565b6005548410611b27576000915050610d77565b6004548111611b7357600354841015611b6457611b0c611b57600a61141a600354856123ce90919063ffffffff16565b60035461174990876123ce565b611b0c600a61141a83876123ce565b600354841015611bc657611b0c611b9a601461141a600454856123ce90919063ffffffff16565b611749611bb9600a61141a6003546004546123ce90919063ffffffff16565b60035461174990896123ce565b8360035411158015611bd9575060045484105b15611c1557611b0c611bfb601461141a600454856123ce90919063ffffffff16565b611749600a61141a886004546123ce90919063ffffffff16565b611b0c601461141a83876123ce565b60096020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b601b546001600160a01b031681565b600d8181548110611c7357fe5b6000918252602090912001546001600160a01b0316905081565b60008060088381548110611c9d57fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b158015611cf657600080fd5b505afa158015611d0a573d6000803e3d6000fd5b505050506040513d6020811015611d2057600080fd5b505195945050505050565b600e546001600160a01b031681565b60008060088481548110611d4a57fe5b600091825260208083208784526009825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015611dc857600080fd5b505afa158015611ddc573d6000803e3d6000fd5b505050506040513d6020811015611df257600080fd5b5051600285015490915043118015611e0957508015155b15611e69576000611e1e856002015443611ae1565b90506000611e45600b54610e36886001015461141a6006548761233390919063ffffffff16565b9050611e64611e5d84610e368464e8d4a51000612333565b85906122ce565b935050505b611a1e8360010154610e3c64e8d4a51000610e3686886000015461233390919063ffffffff16565b60116020526000908152604090205481565b62034bc081565b60065481565b600a81565b6002546001600160a01b031681565b6015546001600160a01b031681565b600060088381548110611ee257fe5b60009182526020808320868452600982526040808520338652909252922060049091029091019150611f1384611316565b6000611f418260010154610e3c64e8d4a51000610e368760030154876000015461233390919063ffffffff16565b8254909150611f5090856122ce565b8083556003840154611f6d9164e8d4a5100091610e369190612333565b60018301558015611f8257611f823382612410565b8254611f99906001600160a01b0316333087612703565b604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a360135460ff1615610f57573360009081526012602052604090205460ff1661204f57336000818152601260205260408120805460ff19166001908117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b03191690911790555b8461208e57600061205f85611902565b3360009081526010602052604090205490915061207c90826122ce565b33600090815260106020526040902055505b8460011415610f575760006120a2856120d7565b336000908152601060205260409020549091506120bf90826122ce565b33600090815260106020526040902055505050505050565b6000806000600f60009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561212a57600080fd5b505afa15801561213e573d6000803e3d6000fd5b505050506040513d606081101561215457600080fd5b508051602091820151600f54604080516318160ddd60e01b815290516001600160701b03948516975093909216945085936000936001600160a01b03909216926318160ddd9260048083019392829003018186803b1580156119e057600080fd5b6000806121c28484611d3a565b949350505050565b62107ac081565b601481565b6121de61232f565b6000546001600160a01b0390811691161461222e576040805162461bcd60e51b81526020600482018190526024820152600080516020612b08833981519152604482015290519081900360640190fd5b6001600160a01b0381166122735760405162461bcd60e51b8152600401808060200182810382526026815260200180612ac16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015612328576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b60008261234257506000610d77565b8282028284828161234f57fe5b04146123285760405162461bcd60e51b8152600401808060200182810382526021815260200180612ae76021913960400191505060405180910390fd5b600061232883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612763565b600061232883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612805565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561245b57600080fd5b505afa15801561246f573d6000803e3d6000fd5b505050506040513d602081101561248557600080fd5b5051905080821115612519576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156124e757600080fd5b505af11580156124fb573d6000803e3d6000fd5b505050506040513d602081101561251157600080fd5b506125999050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561256f57600080fd5b505af1158015612583573d6000803e3d6000fd5b505050506040513d6020811015610f5757600080fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261259990849061285f565b801580612676575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561264857600080fd5b505afa15801561265c573d6000803e3d6000fd5b505050506040513d602081101561267257600080fd5b5051155b6126b15760405162461bcd60e51b8152600401808060200182810382526036815260200180612b526036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261259990849061285f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261275d90859061285f565b50505050565b600081836127ef5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127b457818101518382015260200161279c565b50505050905090810190601f1680156127e15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816127fb57fe5b0495945050505050565b600081848411156128575760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156127b457818101518382015260200161279c565b505050900390565b60606128b4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166129109092919063ffffffff16565b805190915015612599578080602001905160208110156128d357600080fd5b50516125995760405162461bcd60e51b815260040180806020018281038252602a815260200180612b28602a913960400191505060405180910390fd5b60606121c28484600085606061292585612a87565b612976576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106129b55780518252601f199092019160209182019101612996565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612a17576040519150601f19603f3d011682016040523d82523d6000602084013e612a1c565b606091505b50915091508115612a305791506121c29050565b805115612a405780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156127b457818101518382015260200161279c565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121c257505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a264697066735822122038ad84b5c7e9f69067c32294ab510ba91949b676107f24a20284b7da97d29ea264736f6c634300060c0033

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.