Contract 0x2Fa1C30a70c539bde3081345555EF2C3e83F1Ca1

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x638b1f7b70b9413afef48bed749de6831250e7bc326eacba1d2d88f87c664b0b68327392021-04-24 3:07:2552 days 1 hr agoBelt Finance: Deployer IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.00015779
0xd43a9ecb339c5c7dd8100bde8a7f3e7130794d59cd19043412ed84edd2d463ba68327382021-04-24 3:07:2252 days 1 hr agoBelt Finance: Deployer IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.000158065
0xc11c2147cada87bc272f61c1cc97c2cd27af4e3c051cc297a4aa7f22d5d92c3766898482021-04-19 2:13:5357 days 1 hr agoBelt Finance: Deployer IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.00037056
0xfc09c9ff1ab18c124822aca5bfe7b3319f7e5abfe01540a7c7fce2f94ff637ac66898222021-04-19 2:12:3557 days 1 hr ago0x2f99d712bd3e3e72d3b5abb5b4361bd1d770784f IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.00218616
0x84e2b7ee2d3041f039b0a44a0e595fd6b9e25dfceb863e6f0bfea4a225bec62166888742021-04-19 1:25:0957 days 2 hrs ago0x2f99d712bd3e3e72d3b5abb5b4361bd1d770784f IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.003905925
0x7281ccaa92c08fe3d3314dfed9c202781a30943142219edae4d1b3b6ad58a5d965774772021-04-15 4:23:5160 days 23 hrs ago0x695a754e6f5bcafd2f90107553c3e50d9bb3d25b IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.002218145
0x5f6c842e3fb5c36c392e352931f1772e8fa89e7d380edde5f08e7f74eaecec4d65496572021-04-14 5:10:5261 days 22 hrs ago0x2f99d712bd3e3e72d3b5abb5b4361bd1d770784f IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.002143145
0xfd5d78210757ad6b8727b9fdc5b8f503f83bc0d6dc403dfab360c82d19f5256b65468782021-04-14 2:51:5562 days 1 hr ago0x2f99d712bd3e3e72d3b5abb5b4361bd1d770784f IN  0x2fa1c30a70c539bde3081345555ef2c3e83f1ca10 BNB0.002218145
0xef3de7e9a5cfb81e87e50253c4db7090ba8fbe3ac0085739f411001a43b6857965341212021-04-13 16:14:0462 days 11 hrs agoBelt Finance: Deployer IN  Contract Creation0 BNB0.014789224
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

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

Contract Name:
SingleStrategyToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.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 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.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 {ERC20PresetMinterPauser}.
 *
 * 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;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override 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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override 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 virtual override 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 virtual 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 virtual 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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _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 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 virtual {
        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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

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



pragma solidity >=0.6.0 <0.8.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.
 */
abstract 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 virtual 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: @openzeppelin/contracts/utils/ReentrancyGuard.sol



pragma solidity >=0.6.0 <0.8.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.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: contracts/earnV2/tokens/StrategyToken.sol

pragma solidity 0.6.12;




abstract contract StrategyToken is ERC20, ReentrancyGuard, Ownable {
    address public token;

    address public govAddress;

    uint256 public entranceFeeNumer;

    uint256 public entranceFeeDenom;

    bool public depositPaused;

    bool public withdrawPaused;
}

// File: contracts/earnV2/tokens/SingleStrategyTokenStorage.sol

pragma solidity 0.6.12;


abstract contract SingleStrategyTokenStorage is StrategyToken {

    address public strategy;

    address public constant wbnbAddress = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;

    bool public isWbnb;

    // address public bnbHelper;
}

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



pragma solidity >=0.6.2 <0.8.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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.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/proxy/Proxy.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

// File: @openzeppelin/contracts/proxy/UpgradeableProxy.sol



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 *
 * Upgradeability is only provided internally through {_upgradeTo}. For an externally upgradeable proxy see
 * {TransparentUpgradeableProxy}.
 */
contract UpgradeableProxy is Proxy {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) public payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _setImplementation(_logic);
        if(_data.length > 0) {
            Address.functionDelegateCall(_logic, _data);
        }
    }

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override returns (address impl) {
        bytes32 slot = _IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Upgrades the proxy to a new implementation.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal virtual {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");

        bytes32 slot = _IMPLEMENTATION_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }
}

// File: @openzeppelin/contracts/proxy/TransparentUpgradeableProxy.sol



pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev This contract implements a proxy that is upgradeable by an admin.
 *
 * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
 * clashing], which can potentially be used in an attack, this contract uses the
 * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
 * things that go hand in hand:
 *
 * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
 * that call matches one of the admin functions exposed by the proxy itself.
 * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
 * implementation. If the admin tries to call a function on the implementation it will fail with an error that says
 * "admin cannot fallback to proxy target".
 *
 * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
 * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
 * to sudden errors when trying to call a function from the proxy implementation.
 *
 * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
 * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
 */
contract TransparentUpgradeableProxy is UpgradeableProxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
     */
    constructor(address _logic, address admin_, bytes memory _data) public payable UpgradeableProxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _setAdmin(admin_);
    }

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _admin();
    }

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external virtual ifAdmin {
        require(newAdmin != address(0), "TransparentUpgradeableProxy: new admin is the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external virtual ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable virtual ifAdmin {
        _upgradeTo(newImplementation);
        Address.functionDelegateCall(newImplementation, data);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address adm) {
        bytes32 slot = _ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        bytes32 slot = _ADMIN_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newAdmin)
        }
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal virtual override {
        require(msg.sender != _admin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

// File: contracts/earnV2/tokens/SingleStrategyToken.sol

pragma solidity 0.6.12;





contract SingleStrategyToken is SingleStrategyTokenStorage, TransparentUpgradeableProxy {
    using SafeERC20 for IERC20;

    constructor (
        string memory name_,
        string memory symbol_,
        address _token,
        address _strategy,
        address _logic,
        address admin_,
        bytes memory _data
    ) public ERC20(name_, symbol_) TransparentUpgradeableProxy(_logic, admin_, _data) {
        token = _token;
        strategy = _strategy;
        govAddress = msg.sender;
        entranceFeeNumer = 1;
        entranceFeeDenom = 1000;

        isWbnb = token == wbnbAddress;

        approveToken();
    }

    function approveToken() public {
        IERC20(token).safeApprove(strategy, uint(-1));
    }
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entranceFeeDenom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entranceFeeNumer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"govAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isWbnb","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wbnbAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200264738038062002647833981810160405260e08110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060408181526020830151908301516060840151608085015160a09095018051939792969195949384640100000000821115620001d457600080fd5b908301906020820185811115620001ea57600080fd5b82516401000000008111828201881017156200020557600080fd5b82525081516020918201929091019080838360005b83811015620002345781810151838201526020016200021a565b50505050905090810190601f168015620002625780820380516001836020036101000a031916815260200191505b5060405250505082828282818b8b81600390805190602001906200028892919062000a0b565b5080516200029e90600490602084019062000a0b565b50506005805460ff191660121790555060016006556000620002bf620003e8565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200031882620003ec565b80511562000339576200033782826200046360201b62000e041760201c565b505b50620003429050565b6200034d8262000492565b5050600880546001600160a01b038089166001600160a01b03199283161792839055600c80546009805490941633179093556001600a556103e8600b55600160b01b93821673bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c149390930260ff60b01b19918916620100000262010000600160b01b0319909316929092171617905550620003db620004b6565b5050505050505062000aa7565b3390565b6200040281620004ec60201b62000e291760201c565b6200043f5760405162461bcd60e51b81526004018080602001828103825260368152602001806200258b6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b60606200048b83836040518060600160405280602781526020016200256460279139620004f2565b9392505050565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b600c54600854620004ea916001600160a01b0391821691620100009091041660001962000600602090811b62000e2f17901c565b565b3b151590565b6060620004ff84620004ec565b6200053c5760405162461bcd60e51b8152600401808060200182810382526026815260200180620025c16026913960400191505060405180910390fd5b60006060856001600160a01b0316856040518082805190602001908083835b602083106200057c5780518252601f1990920191602091820191016200055b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620005de576040519150601f19603f3d011682016040523d82523d6000602084013e620005e3565b606091505b509092509050620005f682828662000724565b9695505050505050565b8015806200068a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200065a57600080fd5b505afa1580156200066f573d6000803e3d6000fd5b505050506040513d60208110156200068657600080fd5b5051155b620006c75760405162461bcd60e51b8152600401808060200182810382526036815260200180620026116036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200071f918591620007ce16565b505050565b60608315620007355750816200048b565b825115620007465782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200079257818101518382015260200162000778565b50505050905090810190601f168015620007c05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60606200082a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200088a60201b62000f42179092919060201c565b8051909150156200071f578080602001905160208110156200084b57600080fd5b50516200071f5760405162461bcd60e51b815260040180806020018281038252602a815260200180620025e7602a913960400191505060405180910390fd5b60606200089b8484600085620008a3565b949350505050565b606082471015620008e65760405162461bcd60e51b81526004018080602001828103825260268152602001806200253e6026913960400191505060405180910390fd5b620008f185620004ec565b62000943576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620009845780518252601f19909201916020918201910162000963565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114620009e8576040519150601f19603f3d011682016040523d82523d6000602084013e620009ed565b606091505b50909250905062000a0082828662000724565b979650505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a4e57805160ff191683800117855562000a7e565b8280016001018555821562000a7e579182015b8281111562000a7e57825182559160200191906001019062000a61565b5062000a8c92915062000a90565b5090565b5b8082111562000a8c576000815560010162000a91565b611a878062000ab76000396000f3fe6080604052600436106101c65760003560e01c806370a08231116100f7578063a457c2d711610095578063dd62ed3e11610064578063dd62ed3e1461063a578063f2fde38b14610675578063f851a440146106a8578063fc0c546a146106bd576101d5565b8063a457c2d71461059e578063a8c62e76146105d7578063a9059cbb146105ec578063c01b6a8a14610625576101d5565b80638f283970116100d15780638f2839701461052c57806395d89b411461055f57806399b71d5c146105745780639a98cb0114610589576101d5565b806370a08231146104cf578063715018a6146105025780638da5cb5b14610517576101d5565b8063357930f41161016457806346008a071161013e57806346008a07146103f45780634f1ef286146104255780635c60da1b146104a557806363fe3e3a146104ba576101d5565b8063357930f4146103735780633659cfe61461038857806339509351146103bb576101d5565b806318160ddd116101a057806318160ddd146102c957806323b872dd146102f05780632f3ffb9f14610333578063313ce56714610348576101d5565b806302befd24146101dd57806306fdde0314610206578063095ea7b314610290576101d5565b366101d5576101d36106d2565b005b6101d36106d2565b3480156101e957600080fd5b506101f26106ec565b604080519115158252519081900360200190f35b34801561021257600080fd5b5061021b6106f5565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025557818101518382015260200161023d565b50505050905090810190601f1680156102825780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561029c57600080fd5b506101f2600480360360408110156102b357600080fd5b506001600160a01b03813516906020013561078c565b3480156102d557600080fd5b506102de6107a9565b60408051918252519081900360200190f35b3480156102fc57600080fd5b506101f26004803603606081101561031357600080fd5b506001600160a01b038135811691602081013590911690604001356107af565b34801561033f57600080fd5b506101f2610837565b34801561035457600080fd5b5061035d610845565b6040805160ff9092168252519081900360200190f35b34801561037f57600080fd5b506101f261084e565b34801561039457600080fd5b506101d3600480360360208110156103ab57600080fd5b50356001600160a01b031661085e565b3480156103c757600080fd5b506101f2600480360360408110156103de57600080fd5b506001600160a01b038135169060200135610898565b34801561040057600080fd5b506104096108e6565b604080516001600160a01b039092168252519081900360200190f35b6101d36004803603604081101561043b57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561046657600080fd5b82018360208201111561047857600080fd5b8035906020019184600183028401116401000000008311171561049a57600080fd5b5090925090506108f5565b3480156104b157600080fd5b50610409610972565b3480156104c657600080fd5b506104096109ac565b3480156104db57600080fd5b506102de600480360360208110156104f257600080fd5b50356001600160a01b03166109c4565b34801561050e57600080fd5b506101d36109df565b34801561052357600080fd5b50610409610a9d565b34801561053857600080fd5b506101d36004803603602081101561054f57600080fd5b50356001600160a01b0316610aac565b34801561056b57600080fd5b5061021b610b66565b34801561058057600080fd5b506101d3610bc7565b34801561059557600080fd5b506102de610bed565b3480156105aa57600080fd5b506101f2600480360360408110156105c157600080fd5b506001600160a01b038135169060200135610bf3565b3480156105e357600080fd5b50610409610c5b565b3480156105f857600080fd5b506101f26004803603604081101561060f57600080fd5b506001600160a01b038135169060200135610c70565b34801561063157600080fd5b506102de610c84565b34801561064657600080fd5b506102de6004803603604081101561065d57600080fd5b506001600160a01b0381358116916020013516610c8a565b34801561068157600080fd5b506101d36004803603602081101561069857600080fd5b50356001600160a01b0316610cb5565b3480156106b457600080fd5b50610409610dca565b3480156106c957600080fd5b50610409610df5565b6106da610f59565b6106ea6106e5610fb9565b610fde565b565b600c5460ff1681565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b505050505090505b90565b60006107a0610799611002565b8484611006565b50600192915050565b60025490565b60006107bc8484846110f2565b61082c846107c8611002565b61082785604051806060016040528060288152602001611897602891396001600160a01b038a16600090815260016020526040812090610806611002565b6001600160a01b03168152602081019190915260400160002054919061124d565b611006565b5060015b9392505050565b600c54610100900460ff1681565b60055460ff1690565b600c54600160b01b900460ff1681565b6108666112e4565b6001600160a01b0316336001600160a01b0316141561088d5761088881611309565b610895565b6108956106d2565b50565b60006107a06108a5611002565b8461082785600160006108b6611002565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611349565b6009546001600160a01b031681565b6108fd6112e4565b6001600160a01b0316336001600160a01b031614156109655761091f83611309565b61095f8383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e0492505050565b5061096d565b61096d6106d2565b505050565b600061097c6112e4565b6001600160a01b0316336001600160a01b031614156109a45761099d610fb9565b9050610789565b6107896106d2565b73bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c81565b6001600160a01b031660009081526020819052604090205490565b6109e7611002565b6001600160a01b03166109f8610a9d565b6001600160a01b031614610a53576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6007546001600160a01b031690565b610ab46112e4565b6001600160a01b0316336001600160a01b0316141561088d576001600160a01b038116610b125760405162461bcd60e51b815260040180806020018281038252603a81526020018061185d603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610b3b6112e4565b604080516001600160a01b03928316815291841660208301528051918290030190a1610888816113a3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b600c546008546106ea916001600160a01b03918216916201000090910416600019610e2f565b600a5481565b60006107a0610c00611002565b8461082785604051806060016040528060258152602001611a2d6025913960016000610c2a611002565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061124d565b600c546201000090046001600160a01b031681565b60006107a0610c7d611002565b84846110f2565b600b5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610cbd611002565b6001600160a01b0316610cce610a9d565b6001600160a01b031614610d29576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610d6e5760405162461bcd60e51b81526004018080602001828103825260268152602001806117c96026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000610dd46112e4565b6001600160a01b0316336001600160a01b031614156109a45761099d6112e4565b6008546001600160a01b031681565b606061083083836040518060600160405280602781526020016118bf602791396113c7565b3b151590565b801580610eb5575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610e8757600080fd5b505afa158015610e9b573d6000803e3d6000fd5b505050506040513d6020811015610eb157600080fd5b5051155b610ef05760405162461bcd60e51b81526004018080602001828103825260368152602001806119b56036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261096d9084906114ca565b6060610f51848460008561157b565b949350505050565b610f616112e4565b6001600160a01b0316336001600160a01b03161415610fb15760405162461bcd60e51b81526004018080602001828103825260428152602001806119eb6042913960600191505060405180910390fd5b6106ea6106ea565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610ffd573d6000f35b3d6000fd5b3390565b6001600160a01b03831661104b5760405162461bcd60e51b81526004018080602001828103825260248152602001806119676024913960400191505060405180910390fd5b6001600160a01b0382166110905760405162461bcd60e51b81526004018080602001828103825260228152602001806117ef6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166111375760405162461bcd60e51b81526004018080602001828103825260258152602001806119426025913960400191505060405180910390fd5b6001600160a01b03821661117c5760405162461bcd60e51b81526004018080602001828103825260238152602001806117a66023913960400191505060405180910390fd5b61118783838361096d565b6111c481604051806060016040528060268152602001611811602691396001600160a01b038616600090815260208190526040902054919061124d565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546111f39082611349565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112dc5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112a1578181015183820152602001611289565b50505050905090810190601f1680156112ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b611312816116d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600082820183811015610830576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b60606113d284610e29565b61140d5760405162461bcd60e51b815260040180806020018281038252602681526020018061191c6026913960400191505060405180910390fd5b60006060856001600160a01b0316856040518082805190602001908083835b6020831061144b5780518252601f19909201916020918201910161142c565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146114ab576040519150601f19603f3d011682016040523d82523d6000602084013e6114b0565b606091505b50915091506114c082828661173f565b9695505050505050565b606061151f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f429092919063ffffffff16565b80519091501561096d5780806020019051602081101561153e57600080fd5b505161096d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061198b602a913960400191505060405180910390fd5b6060824710156115bc5760405162461bcd60e51b81526004018080602001828103825260268152602001806118376026913960400191505060405180910390fd5b6115c585610e29565b611616576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116555780518252601f199092019160209182019101611636565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116b7576040519150601f19603f3d011682016040523d82523d6000602084013e6116bc565b606091505b50915091506116cc82828661173f565b979650505050505050565b6116e081610e29565b61171b5760405162461bcd60e51b81526004018080602001828103825260368152602001806118e66036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6060831561174e575081610830565b82511561175e5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156112a157818101518382015260200161128956fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65645570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e747261637445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63655472616e73706172656e745570677261646561626c6550726f78793a2061646d696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267657445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ada01c0aea3f5d0de3f3bbe7e46f008ebedf301864649c9b37b3e791d851aca064736f6c634300060c0033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65645570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000046aaa8aba8befa4c19864e94c81e4c8d28a260eb000000000000000000000000239c4d0eaf3f4577770ddcdb3a8c5b1223b5bc450000000000000000000000009eec9655f514822fbe494ae2ea1be7cf80be1c9300000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000008624175746f424e420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008624175746f424e420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

52458:762:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42789:11;:9;:11::i;:::-;52458:762;;42557:11;:9;:11::i;27664:25::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;13464:91;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15610:169;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15610:169:0;;;;;;;;:::i;14563:108::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;16261:321;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16261:321:0;;;;;;;;;;;;;;;;;:::i;27698:26::-;;;;;;;;;;;;;:::i;14407:91::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28020:18;;;;;;;;;;;;;:::i;50704:119::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50704:119:0;-1:-1:-1;;;;;50704:119:0;;:::i;16991:218::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16991:218:0;;;;;;;;:::i;27550:25::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;27550:25:0;;;;;;;;;;;;;;51208:219;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51208:219:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51208:219:0;;-1:-1:-1;51208:219:0;-1:-1:-1;51208:219:0;:::i;49938:131::-;;;;;;;;;;;;;:::i;27931:80::-;;;;;;;;;;;;;:::i;14734:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14734:127:0;-1:-1:-1;;;;;14734:127:0;;:::i;24099:148::-;;;;;;;;;;;;;:::i;23448:87::-;;;;;;;;;;;;;:::i;50283:254::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50283:254:0;-1:-1:-1;;;;;50283:254:0;;:::i;13674:95::-;;;;;;;;;;;;;:::i;53122:::-;;;;;;;;;;;;;:::i;27584:31::-;;;;;;;;;;;;;:::i;17712:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17712:269:0;;;;;;;;:::i;27899:23::-;;;;;;;;;;;;;:::i;15074:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15074:175:0;;;;;;;;:::i;27624:31::-;;;;;;;;;;;;;:::i;15312:151::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15312:151:0;;;;;;;;;;:::i;24402:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24402:244:0;-1:-1:-1;;;;;24402:244:0;;:::i;49372:95::-;;;;;;;;;;;;;:::i;27521:20::-;;;;;;;;;;;;;:::i;42193:113::-;42242:17;:15;:17::i;:::-;42270:28;42280:17;:15;:17::i;:::-;42270:9;:28::i;:::-;42193:113::o;27664:25::-;;;;;;:::o;13464:91::-;13542:5;13535:12;;;;;;;;-1:-1:-1;;13535:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13509:13;;13535:12;;13542:5;;13535:12;;13542:5;13535:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13464:91;;:::o;15610:169::-;15693:4;15710:39;15719:12;:10;:12::i;:::-;15733:7;15742:6;15710:8;:39::i;:::-;-1:-1:-1;15767:4:0;15610:169;;;;:::o;14563:108::-;14651:12;;14563:108;:::o;16261:321::-;16367:4;16384:36;16394:6;16402:9;16413:6;16384:9;:36::i;:::-;16431:121;16440:6;16448:12;:10;:12::i;:::-;16462:89;16500:6;16462:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16462:19:0;;;;;;:11;:19;;;;;;16482:12;:10;:12::i;:::-;-1:-1:-1;;;;;16462:33:0;;;;;;;;;;;;-1:-1:-1;16462:33:0;;;:89;:37;:89::i;:::-;16431:8;:121::i;:::-;-1:-1:-1;16570:4:0;16261:321;;;;;;:::o;27698:26::-;;;;;;;;;:::o;14407:91::-;14481:9;;;;14407:91;:::o;28020:18::-;;;-1:-1:-1;;;28020:18:0;;;;;:::o;50704:119::-;48830:8;:6;:8::i;:::-;-1:-1:-1;;;;;48816:22:0;:10;-1:-1:-1;;;;;48816:22:0;;48812:100;;;50786:29:::1;50797:17;50786:10;:29::i;:::-;48812:100:::0;;;48889:11;:9;:11::i;:::-;50704:119;:::o;16991:218::-;17079:4;17096:83;17105:12;:10;:12::i;:::-;17119:7;17128:50;17167:10;17128:11;:25;17140:12;:10;:12::i;:::-;-1:-1:-1;;;;;17128:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17128:25:0;;;:34;;;;;;;;;;;:38;:50::i;27550:25::-;;;-1:-1:-1;;;;;27550:25:0;;:::o;51208:219::-;48830:8;:6;:8::i;:::-;-1:-1:-1;;;;;48816:22:0;:10;-1:-1:-1;;;;;48816:22:0;;48812:100;;;51326:29:::1;51337:17;51326:10;:29::i;:::-;51366:53;51395:17;51414:4;;51366:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;51366:28:0::1;::::0;-1:-1:-1;;;51366:53:0:i:1;:::-;;48812:100:::0;;;48889:11;:9;:11::i;:::-;51208:219;;;:::o;49938:131::-;49990:23;48830:8;:6;:8::i;:::-;-1:-1:-1;;;;;48816:22:0;:10;-1:-1:-1;;;;;48816:22:0;;48812:100;;;50044:17:::1;:15;:17::i;:::-;50026:35;;48812:100:::0;;;48889:11;:9;:11::i;27931:80::-;27969:42;27931:80;:::o;14734:127::-;-1:-1:-1;;;;;14835:18:0;14808:7;14835:18;;;;;;;;;;;;14734:127::o;24099:148::-;23679:12;:10;:12::i;:::-;-1:-1:-1;;;;;23668:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23668:23:0;;23660:68;;;;;-1:-1:-1;;;23660:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24190:6:::1;::::0;24169:40:::1;::::0;24206:1:::1;::::0;-1:-1:-1;;;;;24190:6:0::1;::::0;24169:40:::1;::::0;24206:1;;24169:40:::1;24220:6;:19:::0;;-1:-1:-1;;;;;;24220:19:0::1;::::0;;24099:148::o;23448:87::-;23521:6;;-1:-1:-1;;;;;23521:6:0;23448:87;:::o;50283:254::-;48830:8;:6;:8::i;:::-;-1:-1:-1;;;;;48816:22:0;:10;-1:-1:-1;;;;;48816:22:0;;48812:100;;;-1:-1:-1;;;;;50366:22:0;::::1;50358:93;;;;-1:-1:-1::0;;;50358:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50467:32;50480:8;:6;:8::i;:::-;50467:32;::::0;;-1:-1:-1;;;;;50467:32:0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;50510:19;50520:8;50510:9;:19::i;13674:95::-:0;13754:7;13747:14;;;;;;;;-1:-1:-1;;13747:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13721:13;;13747:14;;13754:7;;13747:14;;13754:7;13747:14;;;;;;;;;;;;;;;;;;;;;;;;53122:95;53190:8;;53171:5;;53164:45;;-1:-1:-1;;;;;53171:5:0;;;;53190:8;;;;;-1:-1:-1;;53164:25:0;:45::i;27584:31::-;;;;:::o;17712:269::-;17805:4;17822:129;17831:12;:10;:12::i;:::-;17845:7;17854:96;17893:15;17854:96;;;;;;;;;;;;;;;;;:11;:25;17866:12;:10;:12::i;:::-;-1:-1:-1;;;;;17854:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17854:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;27899:23::-;;;;;;-1:-1:-1;;;;;27899:23:0;;:::o;15074:175::-;15160:4;15177:42;15187:12;:10;:12::i;:::-;15201:9;15212:6;15177:9;:42::i;27624:31::-;;;;:::o;15312:151::-;-1:-1:-1;;;;;15428:18:0;;;15401:7;15428:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15312:151::o;24402:244::-;23679:12;:10;:12::i;:::-;-1:-1:-1;;;;;23668:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23668:23:0;;23660:68;;;;;-1:-1:-1;;;23660:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24491:22:0;::::1;24483:73;;;;-1:-1:-1::0;;;24483:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24593:6;::::0;24572:38:::1;::::0;-1:-1:-1;;;;;24572:38:0;;::::1;::::0;24593:6:::1;::::0;24572:38:::1;::::0;24593:6:::1;::::0;24572:38:::1;24621:6;:17:::0;;-1:-1:-1;;;;;;24621:17:0::1;-1:-1:-1::0;;;;;24621:17:0;;;::::1;::::0;;;::::1;::::0;;24402:244::o;49372:95::-;49415:14;48830:8;:6;:8::i;:::-;-1:-1:-1;;;;;48816:22:0;:10;-1:-1:-1;;;;;48816:22:0;;48812:100;;;49451:8:::1;:6;:8::i;27521:20::-:0;;;-1:-1:-1;;;;;27521:20:0;;:::o;34541:200::-;34624:12;34656:77;34677:6;34685:4;34656:77;;;;;;;;;;;;;;;;;:20;:77::i;28856:422::-;29223:20;29262:8;;;28856:422::o;37440:622::-;37810:10;;;37809:62;;-1:-1:-1;37826:39:0;;;-1:-1:-1;;;37826:39:0;;37850:4;37826:39;;;;-1:-1:-1;;;;;37826:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37826:39:0;:44;37809:62;37801:152;;;;-1:-1:-1;;;37801:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37991:62;;;-1:-1:-1;;;;;37991:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37991:62:0;-1:-1:-1;;;37991:62:0;;;37964:90;;37984:5;;37964:19;:90::i;31774:195::-;31877:12;31909:52;31931:6;31939:4;31945:1;31948:12;31909:21;:52::i;:::-;31902:59;31774:195;-1:-1:-1;;;;31774:195:0:o;52149:207::-;52235:8;:6;:8::i;:::-;-1:-1:-1;;;;;52221:22:0;:10;-1:-1:-1;;;;;52221:22:0;;;52213:101;;;;-1:-1:-1;;;52213:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52325:23;:21;:23::i;45053:256::-;44903:66;45280:11;;45257:45::o;40786:915::-;41186:14;41183:1;41180;41167:34;41404:1;41401;41385:14;41382:1;41366:14;41359:5;41346:60;41483:16;41480:1;41477;41462:38;41523:6;41592:38;;;;41664:16;41661:1;41654:27;41592:38;41611:16;41608:1;41601:27;667:106;755:10;667:106;:::o;20859:346::-;-1:-1:-1;;;;;20961:19:0;;20953:68;;;;-1:-1:-1;;;20953:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21040:21:0;;21032:68;;;;-1:-1:-1;;;21032:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21113:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21165:32;;;;;;;;;;;;;;;;;20859:346;;;:::o;18471:539::-;-1:-1:-1;;;;;18577:20:0;;18569:70;;;;-1:-1:-1;;;18569:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18658:23:0;;18650:71;;;;-1:-1:-1;;;18650:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18734:47;18755:6;18763:9;18774:6;18734:20;:47::i;:::-;18814:71;18836:6;18814:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18814:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18794:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18919:20;;;;;;;:32;;18944:6;18919:24;:32::i;:::-;-1:-1:-1;;;;;18896:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18967:35;;;;;;;18896:20;;18967:35;;;;;;;;;;;;;18471:539;;;:::o;9456:166::-;9542:7;9578:12;9570:6;;;;9562:29;;;;-1:-1:-1;;;9562:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9609:5:0;;;9456:166::o;51493:227::-;48569:66;51691:11;;51669:44::o;45435:163::-;45510:37;45529:17;45510:18;:37::i;:::-;45563:27;;-1:-1:-1;;;;;45563:27:0;;;;;;;;45435:163;:::o;6629:179::-;6687:7;6719:5;;;6743:6;;;;6735:46;;;;;-1:-1:-1;;;6735:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;51807:216;48569:66;51983:22;51968:48::o;34935:423::-;35046:12;35079:18;35090:6;35079:10;:18::i;:::-;35071:69;;;;-1:-1:-1;;;35071:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35214:12;35228:23;35255:6;-1:-1:-1;;;;;35255:19:0;35275:4;35255:25;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;35255:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35213:67;;;;35298:52;35316:7;35325:10;35337:12;35298:17;:52::i;:::-;35291:59;34935:423;-1:-1:-1;;;;;;34935:423:0:o;39086:761::-;39510:23;39536:69;39564:4;39536:69;;;;;;;;;;;;;;;;;39544:5;-1:-1:-1;;;;;39536:27:0;;;:69;;;;;:::i;:::-;39620:17;;39510:95;;-1:-1:-1;39620:21:0;39616:224;;39762:10;39751:30;;;;;;;;;;;;;;;-1:-1:-1;39751:30:0;39743:85;;;;-1:-1:-1;;;39743:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32826:530;32953:12;33011:5;32986:21;:30;;32978:81;;;;-1:-1:-1;;;32978:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33078:18;33089:6;33078:10;:18::i;:::-;33070:60;;;;;-1:-1:-1;;;33070:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33204:12;33218:23;33245:6;-1:-1:-1;;;;;33245:11:0;33265:5;33273:4;33245:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33245:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33203:75;;;;33296:52;33314:7;33323:10;33335:12;33296:17;:52::i;:::-;33289:59;32826:530;-1:-1:-1;;;;;;;32826:530:0:o;45694:369::-;45776:37;45795:17;45776:18;:37::i;:::-;45768:104;;;;-1:-1:-1;;;45768:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44903:66;46014:31;45999:57::o;35366:742::-;35481:12;35510:7;35506:595;;;-1:-1:-1;35541:10:0;35534:17;;35506:595;35655:17;;:21;35651:439;;35918:10;35912:17;35979:15;35966:10;35962:2;35958:19;35951:44;35866:148;36054:20;;-1:-1:-1;;;36054:20:0;;;;;;;;;;;;;;;;;36061:12;;36054:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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