Contract 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x0986a0389373e858f8b3c604d5c483b388d9f0c23718816adf58e9101e2b076d52121152021-02-26 10:13:52113 days 9 hrs agoMultiplier: Deployer IN  0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0 BNB0.00030931
0xe11d61bfafe6457efeff19e1aea8c41cc14991845abbcd98d980e4fd3adbbe1250987152021-02-22 11:11:13117 days 8 hrs agoMultiplier: Deployer IN  0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0 BNB0.00043504
0xe49f7ecbd447aaac3667e022cf8c2633ca7ade2e821c156875a0261a7a880f5e50951172021-02-22 8:10:45117 days 11 hrs agoMultiplier: Deployer IN  Contract Creation0 BNB0.00888354
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x296850a020b4bc5dbb0d6df04d3f36b152ebfe20623ca991ac00938b1af6e04584397472021-06-19 18:41:5843 mins ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.0000006 BNB
0xa20909bff512ae90069eac81b1d203fc3560a820d4dba2a638afe42fedf2a0b684327882021-06-19 12:48:476 hrs 36 mins ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x2927275599b79cf21112c25b333f3eb54ffe3a350.000000010256902921 BNB
0x89f4d1085bf65c0a90713c23e4c33ecd1f286d6171618f73795e41c6c4b473f184299362021-06-19 10:22:239 hrs 2 mins ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x336c81621822bab3f07c55530daa60e2faa2e70d0.000000125151509113 BNB
0xa4be44c2205ed99e8ca2f2eec2f3d79728fa254c469c20779a7658c44efbce7d84293812021-06-19 9:54:389 hrs 30 mins ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x521f3eac1497089249203a45a283b9aaa00afd8b0.000000002124089381 BNB
0x6217503db0690902973b331eb2af029ec9c466d219e7f23094dd349ab5aca67a84173442021-06-18 23:51:1019 hrs 34 mins ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000000028685241354 BNB
0xd503d77c3d3b777f87517b001fa16436fc9fe29e65f5776bc3993040e130088e84122772021-06-18 19:33:0123 hrs 52 mins ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x26044c2e775d4945d19f9d13d0893903b29e95510.000010407731755042 BNB
0x07096f286ce8b6ad94f30845d08a10588cc314cbc10ff9a32768dc87ff3073e183692982021-06-17 7:22:282 days 12 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0xf9eb7f5d4eb896e5fae078a48f0f6989e7cf6ea20.000001070102960439 BNB
0xc935d8654f3835a4e84479d6d4cd4ff881c140e3b8db0aba498184c955e4f00283675362021-06-17 5:54:222 days 13 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000304 BNB
0x81ebde63cc6725babd3b2ec5e477cfff7ebde3a7e95c7ccc68d18f2546fc11f083478512021-06-16 13:24:553 days 6 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.00012 BNB
0x44f2d1373b0d2358d0cbbaecd1443987869847932bef9667937c3aeceb34728783429942021-06-16 9:20:413 days 10 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.0000044 BNB
0x90f18b5d4a16401b6f46f86bc850f28a943ff24df9df6fac3e946b6cda0e41ce83384112021-06-16 5:29:353 days 13 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x5dec006317505dba430ab9468a41e674d1ddc48d0.000000686097430163 BNB
0x3fefb7e0daaa40def6ba93442b92c1190d8808f67fc20d01c730cad3f44ae87e82987062021-06-14 19:55:074 days 23 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0xd7464328d2e7a4867e17bcee120ba4f942d4a12b0.000006241218765051 BNB
0xe5916e86a3b47eb08c0783ef503947e3028d4474b3fe679d99ce15461d3cab8a82978182021-06-14 19:10:385 days 14 mins ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000001 BNB
0x93e08fb1c455f937cccebb495b8692cbd12e5ae52582c7bda37f127b9832a73082824002021-06-14 6:12:325 days 13 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0xed711756b522c5a4b4d4932f739083f5519e058c0.000002258635589758 BNB
0x467660b93fd5f1ce57c8a2bfffe3a44a3ac4241048a1ffa3ea1ad4620ba1070f82757002021-06-14 0:31:295 days 18 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.00000065636348076 BNB
0x385420294efc5ea5fcf7f1639ba1eea752f48ddacd1e502fa52735abddb1618a82699212021-06-13 19:38:485 days 23 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000000401530027406 BNB
0x2584c31adcc3be510f1bd794d25cc5c207a9abad9ad7a615220b8eeb88586d5482686092021-06-13 18:32:266 days 52 mins ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000000561120138532 BNB
0x498a2789dbc0da89d2a4c15b4e91386f8f2dff9b0b33666ddd514a8a777d56ed82680162021-06-13 18:01:426 days 1 hr ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.00000228 BNB
0x6b66b5da7613e8f65e9cc52a486f4d56a7cb16427cb010966a2c8308dea0f1f782376112021-06-12 16:27:027 days 2 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x521f3eac1497089249203a45a283b9aaa00afd8b0.00000000048563913 BNB
0x117f147686e28774b8af8e16f2370d3c4651b21fdf115b8beaff5227ecac1fc982325232021-06-12 12:12:387 days 7 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000001 BNB
0xc0493c51ff181c5e1b571b71d52e61090539f8f96703b1f91923bbf716973d9982141412021-06-11 20:51:087 days 22 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x336c81621822bab3f07c55530daa60e2faa2e70d0.000000174039655136 BNB
0xa84644e3600907049ae56fadbfc3a0b78dfe4bfacc0f88ed1dd502d53517133b81904462021-06-11 1:01:588 days 18 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.0002 BNB
0x659f22e2cf33c7b726a978c5853478edd4fa16c95eb7cd02c44971c073d782b881793892021-06-10 15:46:099 days 3 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x075acc2d32df49d156c0ec5b41798e4de1bb167d0.000001276571975184 BNB
0x9f414f330b28347e8a0d7161d103d9179c54f9b6adecc41e86989d765382917581782152021-06-10 14:46:029 days 4 hrs ago 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0x9d170422c3eb3e8c305b2962a4ef34f7c3e19bca0.00000011144697192 BNB
0xf8309a56606f211f4a18e563abb08f0c6632c8ec8d49f911000cb1e090a7a4a881773742021-06-10 14:03:599 days 5 hrs ago 0x913e21e190c59c00bb3153e76384e2949be8707c 0x586e3304178d8df3ad9b1cce6606ad93dcb1eafe0.000400626017588952 BNB
[ Download CSV Export 
Loading

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

Contract Name:
RewardVault

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-26
*/

// File: openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    // counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// File: openzeppelin-solidity/contracts/GSN/Context.sol

pragma solidity ^0.5.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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

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

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

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.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.
 *
 * 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 {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @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(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.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.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: openzeppelin-solidity/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // 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 != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

// File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.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 ERC20;` 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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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: contracts/libraries/BscAddressLib.sol

pragma solidity ^0.5.0;

library BscAddressLib {
    /**
     * @dev returns the address used within the protocol to identify ETH
     * @return the address assigned to ETH
     */
    function bnbAddress() internal pure returns (address) {
        return 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    }
}

// File: contracts/interfaces/IRewardVault.sol

pragma solidity ^0.5.0;


interface IRewardVault {

    function withdraw(address _token, address payable _to, uint256 _amount)  external ;
}

// File: contracts/vaults/RewardVault.sol

pragma solidity ^0.5.0;









contract RewardVault is IRewardVault, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for ERC20;
    
    bool    public paused;
    address public rewardManager;
    uint256 public coolDownStart;
    uint256 public constant EMERGENCY_COOLDOWN_PERIOD = 1 days;
    uint256 public constant EMERGENCY_WITHDRAW_WINDOW_PERIOD = 1 days;

    /**
     * @dev event for the activation of cool-down for emergency withdraw
     * @param _vaultAddress the address of the vault activated
     * @param _timestampWithdrawable the timestamp where the emergency withdrawal will be enabled
     **/
    event EmergencyWithdrawlCooldown(
        address indexed _vaultAddress,
        uint256 _timestampWithdrawable
    );

    /**
     * @dev event for the execution of emergency withdraw
     * @param _vaultAddress the address of the vault
     * @param _reserve the address of the withdrawn asset
     * @param _amount the amount of asset withdrawed
     * @param _destination the destination of the withdrawal
     * @param _timestamp the timestamp where the emergency withdrawal is executed
     **/
    event EmergencyWithdrawlExecuted(
        address indexed _vaultAddress,
        address _reserve,
        uint256 _amount,
        address _destination,
        uint256 _timestamp
    );
/*
    constructor(address _rewardManager) public {
        rewardManager = _rewardManager;
    }
*/
    /// @notice In order to receive BNB transfers
    function() external payable {
        // Ensure the sender is a contract
        require(Address.isContract(msg.sender), "Reject accidental BNB transfer from EOA");
    }

    /**
     * @dev only Reward Manager can use functions affected by this modifier
     **/
    modifier onlyRewardManager() {
        require(msg.sender == rewardManager, "Must call from reward manager");
        _;
    }

    /**
     * @dev only when Not Paused, then this functions can be called.
     **/
    modifier onlyNotPaused() {
        require(!paused, "Must not be paused");
        _;
    }

    /**
     * @dev This function will set the Reward Manager.
     * @param _rewardManager - The reward manager to set.
     * Access Control: Owner Only.
     */
    function setRewardManager(address _rewardManager) external onlyOwner {
        rewardManager = _rewardManager;
    }

    /**
     * @dev This function will allow the Reward Manager to withdraw a token.
     * @param _token - The token to withdraw.
     * @param _to - The payee's address.
     * @param _amount - The amount to pay.
     * Access Control: Reward Manager Only.
     */
    function withdraw(
        address _token,
        address payable _to,
        uint256 _amount
    ) external onlyRewardManager {
        withdrawInternal(_token, _to, _amount);
    }

    /**
     * @dev This function will withdraw a token.
     * @param _token - The token to withdraw.
     * @param _to - The payee's address.
     * @param _amount - The amount to pay.
     * Access Control: Not Paused Only.
     */
    function withdrawInternal(
        address _token,
        address payable _to,
        uint256 _amount
    ) internal nonReentrant onlyNotPaused {
        if (BscAddressLib.bnbAddress() == _token) {
            _to.transfer(_amount);
        } else {
            ERC20(_token).safeTransfer(_to, _amount);
        }
    }

    /**
     * @dev This function will set emergency Pause.
     * @param _pause - Set Pause, Unpause.
     * Access Control: Only Owner
     */
    function setPaused(bool _pause) external onlyOwner {
        paused = _pause;
    }


    /**
     * @dev This function will activate the cool-down period for emergency withdrawal.
     * Access Control: Only Owner
     */
    function activateEmergencyCooldown() external onlyOwner {
        coolDownStart = block.timestamp;
        emit EmergencyWithdrawlCooldown(address(this), coolDownStart.add(EMERGENCY_COOLDOWN_PERIOD));
    }

    /**
     * @dev This function will allow admin owner to withdraw in case of emergency. The admin owner is a multi-Signature address.
     * @param _token - The token to withdraw.
     * @param _to - The payee's address.
     * @param _amount - The amount to pay.
     * Access Control: Only Owner
     */
    function emergencyWithdraw(
        address _token,
        address payable _to,
        uint256 _amount
    ) external onlyOwner {

        require(
            coolDownStart != 0, 
            "Cool-down not started"
        );
        require(
            block.timestamp > coolDownStart.add(EMERGENCY_COOLDOWN_PERIOD),
            "Insufficient cool-down"
        );
        require(
            block.timestamp.sub(coolDownStart.add(EMERGENCY_COOLDOWN_PERIOD)) <=
                EMERGENCY_WITHDRAW_WINDOW_PERIOD,
            "Emergency withdrawal window closed"
        );
        
        withdrawInternal(_token, _to, _amount);
        emit EmergencyWithdrawlExecuted(address(this), _token, _amount, _to, block.timestamp);
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_timestampWithdrawable","type":"uint256"}],"name":"EmergencyWithdrawlCooldown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_vaultAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_reserve","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"_destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"EmergencyWithdrawlExecuted","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"EMERGENCY_COOLDOWN_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"EMERGENCY_WITHDRAW_WINDOW_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"activateEmergencyCooldown","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"coolDownStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardManager","type":"address"}],"name":"setRewardManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526100156001600160e01b0361006616565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001805561006a565b3390565b610e4f806100796000396000f3fe6080604052600436106100dd5760003560e01c80635c975abb1161007f5780638f32d59b116100595780638f32d59b14610257578063d9caed121461026c578063e63ea408146102af578063f2fde38b146102f2576100dd565b80635c975abb14610204578063715018a61461022d5780638da5cb5b14610242576100dd565b806316c38b3c116100bb57806316c38b3c146101ae5780631b79903c146101da5780631cd99adf146101235780632c50a4da146101ef576100dd565b806308b3c91a146101235780630f4ef8a61461014a578063153ee5541461017b575b6100e633610325565b6101215760405162461bcd60e51b8152600401808060200182810382526027815260200180610dca6027913960400191505060405180910390fd5b005b34801561012f57600080fd5b50610138610361565b60408051918252519081900360200190f35b34801561015657600080fd5b5061015f610368565b604080516001600160a01b039092168252519081900360200190f35b34801561018757600080fd5b506101216004803603602081101561019e57600080fd5b50356001600160a01b031661037c565b3480156101ba57600080fd5b50610121600480360360208110156101d157600080fd5b503515156103eb565b3480156101e657600080fd5b50610138610445565b3480156101fb57600080fd5b5061012161044b565b34801561021057600080fd5b506102196104e2565b604080519115158252519081900360200190f35b34801561023957600080fd5b506101216104eb565b34801561024e57600080fd5b5061015f61057c565b34801561026357600080fd5b5061021961058b565b34801561027857600080fd5b506101216004803603606081101561028f57600080fd5b506001600160a01b038135811691602081013590911690604001356105af565b3480156102bb57600080fd5b50610121600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610623565b3480156102fe57600080fd5b506101216004803603602081101561031557600080fd5b50356001600160a01b03166107e4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906103595750808214155b949350505050565b6201518081565b60025461010090046001600160a01b031681565b61038461058b565b6103c3576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6103f361058b565b610432576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b6002805460ff1916911515919091179055565b60035481565b61045361058b565b610492576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b42600381905530907f7859d7508c92f7dda588d1f7a42707733bd7161b3a024021d6631d2d729caff0906104cf906201518063ffffffff61083716565b60408051918252519081900360200190a2565b60025460ff1681565b6104f361058b565b610532576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166105a0610898565b6001600160a01b031614905090565b60025461010090046001600160a01b03163314610613576040805162461bcd60e51b815260206004820152601d60248201527f4d7573742063616c6c2066726f6d20726577617264206d616e61676572000000604482015290519081900360640190fd5b61061e83838361089c565b505050565b61062b61058b565b61066a576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b6003546106b6576040805162461bcd60e51b815260206004820152601560248201527410dbdbdb0b591bdddb881b9bdd081cdd185c9d1959605a1b604482015290519081900360640190fd5b6003546106cc906201518063ffffffff61083716565b4211610718576040805162461bcd60e51b815260206004820152601660248201527524b739bab33334b1b4b2b73a1031b7b7b616b237bbb760511b604482015290519081900360640190fd5b620151806107446107376201518060035461083790919063ffffffff16565b429063ffffffff6109c616565b11156107815760405162461bcd60e51b8152600401808060200182810382526022815260200180610d886022913960400191505060405180910390fd5b61078c83838361089c565b604080516001600160a01b03858116825260208201849052841681830152426060820152905130917fd7bb5d08028d8b0dbe9077422c469fdf90de9f2031beb19a8e04a271bd4273af919081900360800190a2505050565b6107ec61058b565b61082b576040805162461bcd60e51b81526020600482018190526024820152600080516020610daa833981519152604482015290519081900360640190fd5b61083481610a08565b50565b600082820183811015610891576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001805481019081905560025460ff16156108f3576040805162461bcd60e51b8152602060048201526012602482015271135d5cdd081b9bdd081899481c185d5cd95960721b604482015290519081900360640190fd5b836001600160a01b0316610905610aa8565b6001600160a01b03161415610950576040516001600160a01b0384169083156108fc029084906000818181858888f1935050505015801561094a573d6000803e3d6000fd5b5061096a565b61096a6001600160a01b038516848463ffffffff610ac016565b60015481146109c0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50505050565b600061089183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b12565b6001600160a01b038116610a4d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610d626026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261061e908490610ba9565b60008184841115610ba15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b66578181015183820152602001610b4e565b50505050905090810190601f168015610b935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610bbb826001600160a01b0316610325565b610c0c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610c4a5780518252601f199092019160209182019101610c2b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610cac576040519150601f19603f3d011682016040523d82523d6000602084013e610cb1565b606091505b509150915081610d08576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156109c057808060200190516020811015610d2457600080fd5b50516109c05760405162461bcd60e51b815260040180806020018281038252602a815260200180610df1602a913960400191505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373456d657267656e6379207769746864726177616c2077696e646f7720636c6f7365644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657252656a656374206163636964656e74616c20424e42207472616e736665722066726f6d20454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158202557a4e6ffa6aafdb6320fc4030bf2ba94db501d4bc3f1394261481de9d8a9c464736f6c63430005110032

Deployed ByteCode Sourcemap

29591:5142:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31191:30;31210:10;31191:18;:30::i;:::-;31183:82;;;;-1:-1:-1;;;31183:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29591:5142;29895:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29895:65:0;;;:::i;:::-;;;;;;;;;;;;;;;;29760:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29760:28:0;;;:::i;:::-;;;;-1:-1:-1;;;;;29760:28:0;;;;;;;;;;;;;;31874:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31874:118:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31874:118:0;-1:-1:-1;;;;;31874:118:0;;:::i;33203:85::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33203:85:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33203:85:0;;;;:::i;29795:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29795:28:0;;;:::i;33439:209::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33439:209:0;;;:::i;29732:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29732:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;4510:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4510:140:0;;;:::i;3699:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3699:79:0;;;:::i;4065:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4065:94:0;;;:::i;32274:190::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32274:190:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32274:190:0;;;;;;;;;;;;;;;;;:::i;33972:758::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33972:758:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;33972:758:0;;;;;;;;;;;;;;;;;:::i;4805:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4805:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4805:109:0;-1:-1:-1;;;;;4805:109:0;;:::i;22601:810::-;22661:4;23320:20;;23163:66;23360:15;;;;;:42;;;23391:11;23379:8;:23;;23360:42;23352:51;22601:810;-1:-1:-1;;;;22601:810:0:o;29895:65::-;29954:6;29895:65;:::o;29760:28::-;;;;;;-1:-1:-1;;;;;29760:28:0;;:::o;31874:118::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;31954:13;:30;;-1:-1:-1;;;;;31954:30:0;;;;;-1:-1:-1;;;;;;31954:30:0;;;;;;;;;31874:118::o;33203:85::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;33265:6;:15;;-1:-1:-1;;33265:15:0;;;;;;;;;;33203:85::o;29795:28::-;;;;:::o;33439:209::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;33522:15;33506:13;:31;;;33588:4;;33553:87;;33595:44;;29882:6;33595:44;:17;:44;:::i;:::-;33553:87;;;;;;;;;;;;;;;33439:209::o;29732:21::-;;;;;;:::o;4510:140::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;4609:1;4593:6;;4572:40;;-1:-1:-1;;;;;4593:6:0;;;;4572:40;;4609:1;;4572:40;4640:1;4623:19;;-1:-1:-1;;;;;;4623:19:0;;;4510:140::o;3699:79::-;3737:7;3764:6;-1:-1:-1;;;;;3764:6:0;3699:79;:::o;4065:94::-;4105:4;4145:6;;-1:-1:-1;;;;;4145:6:0;4129:12;:10;:12::i;:::-;-1:-1:-1;;;;;4129:22:0;;4122:29;;4065:94;:::o;32274:190::-;31439:13;;;;;-1:-1:-1;;;;;31439:13:0;31425:10;:27;31417:69;;;;;-1:-1:-1;;;31417:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32418:38;32435:6;32443:3;32448:7;32418:16;:38::i;:::-;32274:190;;;:::o;33972:758::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;34141:13;;34119:90;;;;;-1:-1:-1;;;34119:90:0;;;;;;;;;;;;-1:-1:-1;;;34119:90:0;;;;;;;;;;;;;;;34260:13;;:44;;29882:6;34260:44;:17;:44;:::i;:::-;34242:15;:62;34220:134;;;;;-1:-1:-1;;;34220:134:0;;;;;;;;;;;;-1:-1:-1;;;34220:134:0;;;;;;;;;;;;;;;29954:6;34387:65;34407:44;29882:6;34407:13;;:17;;:44;;;;:::i;:::-;34387:15;;:65;:19;:65;:::i;:::-;:118;;34365:202;;;;-1:-1:-1;;;34365:202:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34588:38;34605:6;34613:3;34618:7;34588:16;:38::i;:::-;34642:80;;;-1:-1:-1;;;;;34642:80:0;;;;;;;;;;;;;;;;;34706:15;34642:80;;;;;;34677:4;;34642:80;;;;;;;;;;33972:758;;;:::o;4805:109::-;3911:9;:7;:9::i;:::-;3903:54;;;;;-1:-1:-1;;;3903:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3903:54:0;;;;;;;;;;;;;;;4878:28;4897:8;4878:18;:28::i;:::-;4805:109;:::o;9065:181::-;9123:7;9155:5;;;9179:6;;;;9171:46;;;;;-1:-1:-1;;;9171:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9237:1;9065:181;-1:-1:-1;;;9065:181:0:o;2440:98::-;2520:10;2440:98;:::o;32714:331::-;1415:1;1398:18;;;;;;;;31648:6;;;;31647:7;31639:38;;;;;-1:-1:-1;;;31639:38:0;;;;;;;;;;;;-1:-1:-1;;;31639:38:0;;;;;;;;;;;;;;;32909:6;-1:-1:-1;;;;;32879:36:0;:26;:24;:26::i;:::-;-1:-1:-1;;;;;32879:36:0;;32875:163;;;32932:21;;-1:-1:-1;;;;;32932:12:0;;;:21;;;;;32945:7;;32932:21;;;;32945:7;32932:12;:21;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32932:21:0;32875:163;;;32986:40;-1:-1:-1;;;;;32986:26:0;;33013:3;33018:7;32986:40;:26;:40;:::i;:::-;1510:13;;1494:12;:29;1486:73;;;;;-1:-1:-1;;;1486:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32714:331;;;;:::o;9521:136::-;9579:7;9606:43;9610:1;9613;9606:43;;;;;;;;;;;;;;;;;:3;:43::i;5020:229::-;-1:-1:-1;;;;;5094:22:0;;5086:73;;;;-1:-1:-1;;;5086:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5196:6;;;5175:38;;-1:-1:-1;;;;;5175:38:0;;;;5196:6;;;5175:38;;;5224:6;:17;;-1:-1:-1;;;;;;5224:17:0;-1:-1:-1;;;;;5224:17:0;;;;;;;;;;5020:229::o;29173:122::-;29245:42;29173:122;:::o;25771:176::-;25880:58;;;-1:-1:-1;;;;;25880:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;25880:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;25854:85:0;;25873:5;;25854:18;:85::i;9994:192::-;10080:7;10116:12;10108:6;;;;10100:29;;;;-1:-1:-1;;;10100:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;10100:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10152:5:0;;;9994:192::o;27810:1114::-;28414:27;28422:5;-1:-1:-1;;;;;28414:25:0;;:27::i;:::-;28406:71;;;;;-1:-1:-1;;;28406:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28551:12;28565:23;28600:5;-1:-1:-1;;;;;28592:19:0;28612:4;28592:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;28592:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;28550:67:0;;;;28636:7;28628:52;;;;;-1:-1:-1;;;28628:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28697:17;;:21;28693:224;;28839:10;28828:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28828:30:0;28820:85;;;;-1:-1:-1;;;28820:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://2557a4e6ffa6aafdb6320fc4030bf2ba94db501d4bc3f1394261481de9d8a9c4
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.