ETH Price: $3,096.31 (-1.77%)

Token

bella ARPA Token (bARPA)
 

Overview

Max Total Supply

1,269,319.360962998190426566 bARPA

Holders

14

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
881.808352651114163845 bARPA

Value
$0.00
0xf2b4409a1eE503448e52da4d44A448f398145772
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
bVault

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 13 : bVault.sol
pragma solidity 0.5.15;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../interfaces/IController.sol";
import "../libraries/WhiteListChecker.sol";

/**
 * @title bVault
 * @dev btoken vault, a typical mining aggregator's vault
 */
contract bVault is ERC20, ERC20Detailed, WhiteListChecker, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IERC20 public token;
  
    // buffer size 10%
    uint public min = 9000;
    uint public constant max = 10000;

    uint public withdrawalFee = 25; // 0.25%
    uint constant public withdrawalMax = 10000;
  
    address public governance;
    address public controller;

    bool public paused = false;
    mapping(address => bool) public pauseRoles;

    modifier notPaused() {
        require(!IController(controller).paused(), "Global paused!");
        require(!paused, "Local paused!");
        _;
    }

    constructor (address _token, address _controller, address whiteList) public ERC20Detailed(
        string(abi.encodePacked("bella ", ERC20Detailed(_token).name())),
        string(abi.encodePacked("b", ERC20Detailed(_token).symbol())),
        ERC20Detailed(_token).decimals()
    ) WhiteListChecker(whiteList) {
        token = IERC20(_token);
        governance = msg.sender;
        controller = _controller;
    }

    function setPauseRole(address admin) external {
        require(msg.sender == governance, "!governance");
        pauseRoles[admin] = true;
    }

    function unSetPauseRole(address admin) external {
        require(msg.sender == governance, "!governance");
        pauseRoles[admin] = false;
    }

    function pause() external {
        require(pauseRoles[msg.sender], "no right to pause!");
        paused = true;
    }

    function unpause() external {
        require(pauseRoles[msg.sender], "no right to pause!");
        paused = false;
    }
    
    function balance() public view returns (uint) {
        return token.balanceOf(address(this))
            .add(IController(controller).balanceOf(address(token)));
    }

    function underlyingBalance() public view returns (uint) {
        return token.balanceOf(address(this))
            .add(IController(controller).underlyingBalanceOf(address(token)));
    }
    
    function setMin(uint _min) external {
        require(msg.sender == governance, "!governance");
        require(_min <= max, "invalid min!");
        min = _min;
    }

    function setWithdrawalFee(uint _withdrawalFee) external {
        require(msg.sender == governance, "!governance");
        require(_withdrawalFee <= withdrawalMax, "invalid withdrawal fee");
        withdrawalFee = _withdrawalFee;
    }
    
    function setGovernance(address _governance) public {
        require(msg.sender == governance, "!governance");
        governance = _governance;
    }
    
    function setController(address _controller) public {
        require(msg.sender == governance, "!governance");
        controller = _controller;
    }
    
    /**
     * @dev View function to check how much the vault allows to invest (due to buffer)
     */
    function available() public view returns (uint) {
        return balance().mul(min).div(max).sub(IController(controller).balanceOf(address(token)));
    }

    /**
     * @dev Rebalance the buffer to make withdraw cheaper
     */
    function rebalance() public onlyWhiteListed notPaused {
        uint256 amount = IController(controller).balanceOf(address(token)).sub(balance().mul(min).div(max));
        IController(controller).withdraw(address(token), amount);
    }
    
    function earn() public onlyWhiteListed notPaused {
        require(msg.sender == tx.origin ,"!contract");

        uint _bal = available();
        token.safeTransfer(controller, _bal);
        IController(controller).earn(address(token), _bal);
    }

    function deposit(uint _amount) external onlyWhiteListed notPaused nonReentrant {
        uint _pool = balance();
        uint _before = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint _after = token.balanceOf(address(this));
        _amount = _after.sub(_before); // Additional check for deflationary tokens
        uint shares = 0;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount.mul(totalSupply())).div(_pool);
        }
        _mint(msg.sender, shares);
    }

    function withdraw(uint _shares) external notPaused nonReentrant {
        _withdraw(msg.sender, _shares);
    }

    function withdrawAll() external notPaused nonReentrant {
        _withdraw(msg.sender, balanceOf(msg.sender));
    }

    function getPricePerFullShare() public view returns (uint) {
        return balance().mul(1e18).div(totalSupply());
    }

    function _withdraw(address user, uint _shares) private {
        uint r = (underlyingBalance().mul(_shares)).div(totalSupply());

        _burn(user, _shares);

        // Check balance
        uint b = token.balanceOf(address(this));
        if (b < r) {
            uint w = r.sub(b);
            IController(controller).withdraw(address(token), w);
            uint _after = token.balanceOf(address(this));
            uint _diff = _after.sub(b);
            if (_diff < w) {
                r = b.add(_diff);
            }
        }
        
        uint _fee = r.mul(withdrawalFee).div(withdrawalMax);
        token.safeTransfer(IController(controller).rewards(), _fee);
        token.safeTransfer(user, r.sub(_fee));
    }
}

File 2 of 13 : Context.sol
pragma solidity ^0.5.0;

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

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

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

File 3 of 13 : SafeMath.sol
pragma solidity ^0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 4 of 13 : ERC20.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 13 : ERC20Detailed.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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.
     *
     * 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 returns (uint8) {
        return _decimals;
    }
}

File 6 of 13 : IERC20.sol
pragma solidity ^0.5.0;

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

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

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

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

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

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

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

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

File 7 of 13 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

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

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 13 : Address.sol
pragma solidity ^0.5.5;

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

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

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

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

File 9 of 13 : ReentrancyGuard.sol
pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * 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].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial 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 percetange 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.
        _notEntered = true;
    }

    /**
     * @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(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

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

File 10 of 13 : IController.sol
pragma solidity 0.5.15;

interface IController {
    function vaults(address) external view returns (address);
    function withdraw(address, uint) external;
    function balanceOf(address) external view returns (uint);
    function underlyingBalanceOf(address) external view returns (uint);
    function earn(address, uint) external;
    function rewards() external view returns (address);
    function belRewards() external view returns (address);
    function paused() external view returns (bool);
}

File 11 of 13 : Ownable.sol
pragma solidity 0.5.15;

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address private _owner;

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

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the a
     * specified account.
     * @param initalOwner The address of the inital owner.
     */
    constructor(address initalOwner) internal {
        _owner = initalOwner;
        emit OwnershipTransferred(address(0), _owner);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Only owner can call");
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     * @notice Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Owner should not be 0 address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 12 of 13 : WhiteList.sol
pragma solidity ^0.5.15;

import "./Ownable.sol";

/**
* @title WhiteList
* @dev A Whitelist maintaned by the governance
*/
contract WhiteList is Ownable {

    mapping (address => bool) public inWhiteList;

    constructor(address governance) public Ownable(governance) {}

    function add(address toAdd) external onlyOwner {
        inWhiteList[toAdd] = true;
    }

    function remove(address toRemove) external onlyOwner {
        inWhiteList[toRemove] = false;
    }  

}

File 13 of 13 : WhiteListChecker.sol
pragma solidity ^0.5.15;

import "./WhiteList.sol";

/**
* @title WhiteListChecker
* @dev Inherit this contract to check if a contract is whitelisted
*/
contract WhiteListChecker {

    WhiteList public whiteList;

    modifier onlyWhiteListed() {
        require((tx.origin == msg.sender) || whiteList.inWhiteList(msg.sender), "not in white list");
        _;
    }

    constructor(address whiteListAddress) public {
        whiteList = WhiteList(whiteListAddress);
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [
    ":@openzeppelin/=/home/ubuntu/flex-saving/node_modules/@openzeppelin/"
  ],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"whiteList","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"earn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pauseRoles","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"rebalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"}],"name":"setMin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setPauseRole","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_withdrawalFee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"unSetPauseRole","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"underlyingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"whiteList","outputs":[{"internalType":"contract WhiteList","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040526123286007556019600855600a805460ff60a01b191690553480156200002957600080fd5b5060405162002f0638038062002f06833981810160405260608110156200004f57600080fd5b508051602082015160409283015183516306fdde0360e01b8152935192939192909182916001600160a01b038616916306fdde03916004808301926000929190829003018186803b158015620000a457600080fd5b505afa158015620000b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015620000e357600080fd5b81019080805160405193929190846401000000008211156200010457600080fd5b9083019060208201858111156200011a57600080fd5b82516401000000008111828201881017156200013557600080fd5b82525081516020918201929091019080838360005b83811015620001645781810151838201526020016200014a565b50505050905090810190601f168015620001925780820380516001836020036101000a031916815260200191505b5060405250505060405160200180806503132b63630960d51b81525060060182805190602001908083835b60208310620001de5780518252601f199092019160209182019101620001bd565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052846001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200024c57600080fd5b505afa15801562000261573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156200028b57600080fd5b8101908080516040519392919084640100000000821115620002ac57600080fd5b908301906020820185811115620002c257600080fd5b8251640100000000811182820188101715620002dd57600080fd5b82525081516020918201929091019080838360005b838110156200030c578181015183820152602001620002f2565b50505050905090810190601f1680156200033a5780820380516001836020036101000a031916815260200191505b506040525050506040516020018080603160f91b81525060010182805190602001908083835b60208310620003815780518252601f19909201916020918201910162000360565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052856001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015620003ef57600080fd5b505afa15801562000404573d6000803e3d6000fd5b505050506040513d60208110156200041b57600080fd5b5051825162000432906003906020860190620004c7565b50815162000448906004906020850190620004c7565b5060058054600160a81b60ff1990911660ff9390931692909217610100600160a81b0319166101006001600160a01b03968716021760ff60a81b19169190911790555050600680546001600160a01b03199081169583169590951790556009805433908616179055600a8054909416921691909117909155506200056c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200050a57805160ff19168380011785556200053a565b828001600101855582156200053a579182015b828111156200053a5782518255916020019190600101906200051d565b50620005489291506200054c565b5090565b6200056991905b8082111562000548576000815560010162000553565b90565b61298a806200057c6000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063853828b611610130578063b6b55f25116100b8578063dd62ed3e1161007c578063dd62ed3e146105ae578063f77c4791146105dc578063f8897945146105e4578063fc0c546a146105ec578063fead4455146105f457610232565b8063b6b55f251461053d578063c67c1ab81461055a578063c900140b14610580578063d389800f146105a6578063d5c1ff731461041657610232565b8063a457c2d7116100ff578063a457c2d71461049a578063a9059cbb146104c6578063ab033ea9146104f2578063ac1e502514610518578063b69ef8a81461053557610232565b8063853828b61461045c5780638bc7e8c41461046457806392eefe9b1461046c57806395d89b411461049257610232565b806345dc3dd8116101be5780636ac5db19116101825780636ac5db191461041657806370a082311461041e57806377c7b8fc146104445780637d7c2a1c1461044c5780638456cb591461045457610232565b806345dc3dd8146103d957806348a0d754146103f657806359356c5c146103fe5780635aa6e675146104065780635c975abb1461040e57610232565b80632e1a7d4d116102055780632e1a7d4d14610344578063313ce567146103635780633544a8641461038157806339509351146103a55780633f4ba83a146103d157610232565b806306fdde0314610237578063095ea7b3146102b457806318160ddd146102f457806323b872dd1461030e575b600080fd5b61023f61061a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610279578181015183820152602001610261565b50505050905090810190601f1680156102a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e0600480360360408110156102ca57600080fd5b506001600160a01b0381351690602001356106b0565b604080519115158252519081900360200190f35b6102fc6106ce565b60408051918252519081900360200190f35b6102e06004803603606081101561032457600080fd5b506001600160a01b038135811691602081013590911690604001356106d4565b6103616004803603602081101561035a57600080fd5b5035610761565b005b61036b6108f8565b6040805160ff9092168252519081900360200190f35b610389610901565b604080516001600160a01b039092168252519081900360200190f35b6102e0600480360360408110156103bb57600080fd5b506001600160a01b038135169060200135610915565b610361610969565b610361600480360360208110156103ef57600080fd5b50356109d1565b6102fc610a69565b6102fc610b29565b610389610c2c565b6102e0610c3b565b6102fc610c4b565b6102fc6004803603602081101561043457600080fd5b50356001600160a01b0316610c51565b6102fc610c6c565b610361610c8d565b610361610f79565b610361610fe7565b6102fc611185565b6103616004803603602081101561048257600080fd5b50356001600160a01b031661118b565b61023f6111fa565b6102e0600480360360408110156104b057600080fd5b506001600160a01b03813516906020013561125b565b6102e0600480360360408110156104dc57600080fd5b506001600160a01b0381351690602001356112c9565b6103616004803603602081101561050857600080fd5b50356001600160a01b03166112dd565b6103616004803603602081101561052e57600080fd5b503561134c565b6102fc6113ee565b6103616004803603602081101561055357600080fd5b5035611442565b6103616004803603602081101561057057600080fd5b50356001600160a01b031661180e565b6102e06004803603602081101561059657600080fd5b50356001600160a01b031661187c565b610361611891565b6102fc600480360360408110156105c457600080fd5b506001600160a01b0381358116916020013516611b2f565b610389611b5a565b6102fc611b69565b610389611b6f565b6103616004803603602081101561060a57600080fd5b50356001600160a01b0316611b7e565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b820191906000526020600020905b81548152906001019060200180831161068957829003601f168201915b5050505050905090565b60006106c46106bd611bef565b8484611bf3565b5060015b92915050565b60025490565b60006106e1848484611cdf565b610757846106ed611bef565b61075285604051806060016040528060288152602001612875602891396001600160a01b038a1660009081526001602052604081209061072b611bef565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611e3b16565b611bf3565b5060019392505050565b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107af57600080fd5b505afa1580156107c3573d6000803e3d6000fd5b505050506040513d60208110156107d957600080fd5b50511561081e576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff161561086d576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff166108cb576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b191690556108e23382611ed2565b506005805460ff60a81b1916600160a81b179055565b60055460ff1690565b60055461010090046001600160a01b031681565b60006106c4610922611bef565b846107528560016000610933611bef565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61218c16565b336000908152600b602052604090205460ff166109c2576040805162461bcd60e51b81526020600482015260126024820152716e6f20726967687420746f2070617573652160701b604482015290519081900360640190fd5b600a805460ff60a01b19169055565b6009546001600160a01b03163314610a1e576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b612710811115610a64576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206d696e2160a01b604482015290519081900360640190fd5b600755565b600a54600654604080516370a0823160e01b81526001600160a01b0392831660048201529051600093610b249316916370a08231916024808301926020929190829003018186803b158015610abd57600080fd5b505afa158015610ad1573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b5051600754610b189061271090610b0c90610b006113ee565b9063ffffffff6121ed16565b9063ffffffff61224616565b9063ffffffff61228816565b905090565b600a54600654604080516324d6a2e160e21b81526001600160a01b0392831660048201529051600093610b2493169163935a8b84916024808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d6020811015610ba757600080fd5b5051600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610bf457600080fd5b505afa158015610c08573d6000803e3d6000fd5b505050506040513d6020811015610c1e57600080fd5b50519063ffffffff61218c16565b6009546001600160a01b031681565b600a54600160a01b900460ff1681565b61271081565b6001600160a01b031660009081526020819052604090205490565b6000610b24610c796106ce565b610b0c670de0b6b3a7640000610b006113ee565b32331480610d125750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b158015610ce557600080fd5b505afa158015610cf9573d6000803e3d6000fd5b505050506040513d6020811015610d0f57600080fd5b50515b610d57576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610da557600080fd5b505afa158015610db9573d6000803e3d6000fd5b505050506040513d6020811015610dcf57600080fd5b505115610e14576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615610e63576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b6000610f04610e7c612710610b0c600754610b006113ee565b600a54600654604080516370a0823160e01b81526001600160a01b039283166004820152905191909216916370a08231916024808301926020929190829003018186803b158015610ecc57600080fd5b505afa158015610ee0573d6000803e3d6000fd5b505050506040513d6020811015610ef657600080fd5b50519063ffffffff61228816565b600a546006546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015610f5e57600080fd5b505af1158015610f72573d6000803e3d6000fd5b5050505050565b336000908152600b602052604090205460ff16610fd2576040805162461bcd60e51b81526020600482015260126024820152716e6f20726967687420746f2070617573652160701b604482015290519081900360640190fd5b600a805460ff60a01b1916600160a01b179055565b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561103557600080fd5b505afa158015611049573d6000803e3d6000fd5b505050506040513d602081101561105f57600080fd5b5051156110a4576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff16156110f3576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff16611151576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b191690556111703361116b81610c51565b611ed2565b6005805460ff60a81b1916600160a81b179055565b60085481565b6009546001600160a01b031633146111d8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b60006106c4611268611bef565b84610752856040518060600160405280602581526020016129316025913960016000611292611bef565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611e3b16565b60006106c46112d6611bef565b8484611cdf565b6009546001600160a01b0316331461132a576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314611399576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6127108111156113e9576040805162461bcd60e51b8152602060048201526016602482015275696e76616c6964207769746864726177616c2066656560501b604482015290519081900360640190fd5b600855565b600a54600654604080516370a0823160e01b81526001600160a01b0392831660048201529051600093610b249316916370a08231916024808301926020929190829003018186803b158015610b7d57600080fd5b323314806114c75750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b15801561149a57600080fd5b505afa1580156114ae573d6000803e3d6000fd5b505050506040513d60208110156114c457600080fd5b50515b61150c576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561155a57600080fd5b505afa15801561156e573d6000803e3d6000fd5b505050506040513d602081101561158457600080fd5b5051156115c9576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615611618576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff16611676576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b19169055600061168d6113ee565b600654604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156116de57600080fd5b505afa1580156116f2573d6000803e3d6000fd5b505050506040513d602081101561170857600080fd5b505160065490915061172b906001600160a01b031633308663ffffffff6122ca16565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561177657600080fd5b505afa15801561178a573d6000803e3d6000fd5b505050506040513d60208110156117a057600080fd5b505190506117b4818363ffffffff61228816565b935060006117c06106ce565b6117cb5750836117ea565b6117e784610b0c6117da6106ce565b889063ffffffff6121ed16565b90505b6117f4338261232a565b50506005805460ff60a81b1916600160a81b179055505050565b6009546001600160a01b0316331461185b576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19169055565b600b6020526000908152604090205460ff1681565b323314806119165750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d602081101561191357600080fd5b50515b61195b576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119a957600080fd5b505afa1580156119bd573d6000803e3d6000fd5b505050506040513d60208110156119d357600080fd5b505115611a18576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615611a67576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b333214611aa7576040805162461bcd60e51b81526020600482015260096024820152680858dbdb9d1c9858dd60ba1b604482015290519081900360640190fd5b6000611ab1610a69565b600a54600654919250611ad7916001600160a01b0390811691168363ffffffff61241a16565b600a546006546040805163b02bf4b960e01b81526001600160a01b039283166004820152602481018590529051919092169163b02bf4b991604480830192600092919082900301818387803b158015610f5e57600080fd5b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b60075481565b6006546001600160a01b031681565b6009546001600160a01b03163314611bcb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b3390565b6001600160a01b038316611c385760405162461bcd60e51b81526004018080602001828103825260248152602001806128e36024913960400191505060405180910390fd5b6001600160a01b038216611c7d5760405162461bcd60e51b815260040180806020018281038252602281526020018061280c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611d245760405162461bcd60e51b81526004018080602001828103825260258152602001806128be6025913960400191505060405180910390fd5b6001600160a01b038216611d695760405162461bcd60e51b81526004018080602001828103825260238152602001806127c76023913960400191505060405180910390fd5b611dac8160405180606001604052806026815260200161282e602691396001600160a01b038616600090815260208190526040902054919063ffffffff611e3b16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611de1908263ffffffff61218c16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611eca5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e8f578181015183820152602001611e77565b50505050905090810190601f168015611ebc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611eeb611edf6106ce565b610b0c84610b00610b29565b9050611ef78383612471565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611f4257600080fd5b505afa158015611f56573d6000803e3d6000fd5b505050506040513d6020811015611f6c57600080fd5b50519050818110156120aa576000611f8a838363ffffffff61228816565b600a546006546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015611fe457600080fd5b505af1158015611ff8573d6000803e3d6000fd5b5050600654604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b15801561204957600080fd5b505afa15801561205d573d6000803e3d6000fd5b505050506040513d602081101561207357600080fd5b505190506000612089828563ffffffff61228816565b9050828110156120a6576120a3848263ffffffff61218c16565b94505b5050505b60006120c7612710610b0c600854866121ed90919063ffffffff16565b905061215f600a60009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b15801561211a57600080fd5b505afa15801561212e573d6000803e3d6000fd5b505050506040513d602081101561214457600080fd5b50516006546001600160a01b0316908363ffffffff61241a16565b610f7285612173858463ffffffff61228816565b6006546001600160a01b0316919063ffffffff61241a16565b6000828201838110156121e6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826121fc575060006106c8565b8282028284828161220957fe5b04146121e65760405162461bcd60e51b81526004018080602001828103825260218152602001806128546021913960400191505060405180910390fd5b60006121e683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061256d565b60006121e683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e3b565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526123249085906125d2565b50505050565b6001600160a01b038216612385576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254612398908263ffffffff61218c16565b6002556001600160a01b0382166000908152602081905260409020546123c4908263ffffffff61218c16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261246c9084906125d2565b505050565b6001600160a01b0382166124b65760405162461bcd60e51b815260040180806020018281038252602181526020018061289d6021913960400191505060405180910390fd5b6124f9816040518060600160405280602281526020016127ea602291396001600160a01b038516600090815260208190526040902054919063ffffffff611e3b16565b6001600160a01b038316600090815260208190526040902055600254612525908263ffffffff61228816565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600081836125bc5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611e8f578181015183820152602001611e77565b5060008385816125c857fe5b0495945050505050565b6125e4826001600160a01b031661278a565b612635576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106126735780518252601f199092019160209182019101612654565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146126d5576040519150601f19603f3d011682016040523d82523d6000602084013e6126da565b606091505b509150915081612731576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156123245780806020019051602081101561274d57600080fd5b50516123245760405162461bcd60e51b815260040180806020018281038252602a815260200180612907602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906127be57508115155b94935050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820afe647859bb85b46f41b6dbbf5ff4ba80861f8abf175f3977c785c11bdd1a61264736f6c634300050f0032000000000000000000000000ba50933c268f567bdc86e1ac131be072c6b0b71a000000000000000000000000d8c5344e331d5f4161f03726870ce9da8b504d2a00000000000000000000000019f35ce3c3875c120ab602386c8d6a59e88e493e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c8063853828b611610130578063b6b55f25116100b8578063dd62ed3e1161007c578063dd62ed3e146105ae578063f77c4791146105dc578063f8897945146105e4578063fc0c546a146105ec578063fead4455146105f457610232565b8063b6b55f251461053d578063c67c1ab81461055a578063c900140b14610580578063d389800f146105a6578063d5c1ff731461041657610232565b8063a457c2d7116100ff578063a457c2d71461049a578063a9059cbb146104c6578063ab033ea9146104f2578063ac1e502514610518578063b69ef8a81461053557610232565b8063853828b61461045c5780638bc7e8c41461046457806392eefe9b1461046c57806395d89b411461049257610232565b806345dc3dd8116101be5780636ac5db19116101825780636ac5db191461041657806370a082311461041e57806377c7b8fc146104445780637d7c2a1c1461044c5780638456cb591461045457610232565b806345dc3dd8146103d957806348a0d754146103f657806359356c5c146103fe5780635aa6e675146104065780635c975abb1461040e57610232565b80632e1a7d4d116102055780632e1a7d4d14610344578063313ce567146103635780633544a8641461038157806339509351146103a55780633f4ba83a146103d157610232565b806306fdde0314610237578063095ea7b3146102b457806318160ddd146102f457806323b872dd1461030e575b600080fd5b61023f61061a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610279578181015183820152602001610261565b50505050905090810190601f1680156102a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e0600480360360408110156102ca57600080fd5b506001600160a01b0381351690602001356106b0565b604080519115158252519081900360200190f35b6102fc6106ce565b60408051918252519081900360200190f35b6102e06004803603606081101561032457600080fd5b506001600160a01b038135811691602081013590911690604001356106d4565b6103616004803603602081101561035a57600080fd5b5035610761565b005b61036b6108f8565b6040805160ff9092168252519081900360200190f35b610389610901565b604080516001600160a01b039092168252519081900360200190f35b6102e0600480360360408110156103bb57600080fd5b506001600160a01b038135169060200135610915565b610361610969565b610361600480360360208110156103ef57600080fd5b50356109d1565b6102fc610a69565b6102fc610b29565b610389610c2c565b6102e0610c3b565b6102fc610c4b565b6102fc6004803603602081101561043457600080fd5b50356001600160a01b0316610c51565b6102fc610c6c565b610361610c8d565b610361610f79565b610361610fe7565b6102fc611185565b6103616004803603602081101561048257600080fd5b50356001600160a01b031661118b565b61023f6111fa565b6102e0600480360360408110156104b057600080fd5b506001600160a01b03813516906020013561125b565b6102e0600480360360408110156104dc57600080fd5b506001600160a01b0381351690602001356112c9565b6103616004803603602081101561050857600080fd5b50356001600160a01b03166112dd565b6103616004803603602081101561052e57600080fd5b503561134c565b6102fc6113ee565b6103616004803603602081101561055357600080fd5b5035611442565b6103616004803603602081101561057057600080fd5b50356001600160a01b031661180e565b6102e06004803603602081101561059657600080fd5b50356001600160a01b031661187c565b610361611891565b6102fc600480360360408110156105c457600080fd5b506001600160a01b0381358116916020013516611b2f565b610389611b5a565b6102fc611b69565b610389611b6f565b6103616004803603602081101561060a57600080fd5b50356001600160a01b0316611b7e565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b820191906000526020600020905b81548152906001019060200180831161068957829003601f168201915b5050505050905090565b60006106c46106bd611bef565b8484611bf3565b5060015b92915050565b60025490565b60006106e1848484611cdf565b610757846106ed611bef565b61075285604051806060016040528060288152602001612875602891396001600160a01b038a1660009081526001602052604081209061072b611bef565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611e3b16565b611bf3565b5060019392505050565b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107af57600080fd5b505afa1580156107c3573d6000803e3d6000fd5b505050506040513d60208110156107d957600080fd5b50511561081e576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff161561086d576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff166108cb576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b191690556108e23382611ed2565b506005805460ff60a81b1916600160a81b179055565b60055460ff1690565b60055461010090046001600160a01b031681565b60006106c4610922611bef565b846107528560016000610933611bef565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61218c16565b336000908152600b602052604090205460ff166109c2576040805162461bcd60e51b81526020600482015260126024820152716e6f20726967687420746f2070617573652160701b604482015290519081900360640190fd5b600a805460ff60a01b19169055565b6009546001600160a01b03163314610a1e576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b612710811115610a64576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206d696e2160a01b604482015290519081900360640190fd5b600755565b600a54600654604080516370a0823160e01b81526001600160a01b0392831660048201529051600093610b249316916370a08231916024808301926020929190829003018186803b158015610abd57600080fd5b505afa158015610ad1573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b5051600754610b189061271090610b0c90610b006113ee565b9063ffffffff6121ed16565b9063ffffffff61224616565b9063ffffffff61228816565b905090565b600a54600654604080516324d6a2e160e21b81526001600160a01b0392831660048201529051600093610b2493169163935a8b84916024808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d6020811015610ba757600080fd5b5051600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610bf457600080fd5b505afa158015610c08573d6000803e3d6000fd5b505050506040513d6020811015610c1e57600080fd5b50519063ffffffff61218c16565b6009546001600160a01b031681565b600a54600160a01b900460ff1681565b61271081565b6001600160a01b031660009081526020819052604090205490565b6000610b24610c796106ce565b610b0c670de0b6b3a7640000610b006113ee565b32331480610d125750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b158015610ce557600080fd5b505afa158015610cf9573d6000803e3d6000fd5b505050506040513d6020811015610d0f57600080fd5b50515b610d57576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610da557600080fd5b505afa158015610db9573d6000803e3d6000fd5b505050506040513d6020811015610dcf57600080fd5b505115610e14576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615610e63576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b6000610f04610e7c612710610b0c600754610b006113ee565b600a54600654604080516370a0823160e01b81526001600160a01b039283166004820152905191909216916370a08231916024808301926020929190829003018186803b158015610ecc57600080fd5b505afa158015610ee0573d6000803e3d6000fd5b505050506040513d6020811015610ef657600080fd5b50519063ffffffff61228816565b600a546006546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015610f5e57600080fd5b505af1158015610f72573d6000803e3d6000fd5b5050505050565b336000908152600b602052604090205460ff16610fd2576040805162461bcd60e51b81526020600482015260126024820152716e6f20726967687420746f2070617573652160701b604482015290519081900360640190fd5b600a805460ff60a01b1916600160a01b179055565b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561103557600080fd5b505afa158015611049573d6000803e3d6000fd5b505050506040513d602081101561105f57600080fd5b5051156110a4576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff16156110f3576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff16611151576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b191690556111703361116b81610c51565b611ed2565b6005805460ff60a81b1916600160a81b179055565b60085481565b6009546001600160a01b031633146111d8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106a65780601f1061067b576101008083540402835291602001916106a6565b60006106c4611268611bef565b84610752856040518060600160405280602581526020016129316025913960016000611292611bef565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611e3b16565b60006106c46112d6611bef565b8484611cdf565b6009546001600160a01b0316331461132a576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314611399576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6127108111156113e9576040805162461bcd60e51b8152602060048201526016602482015275696e76616c6964207769746864726177616c2066656560501b604482015290519081900360640190fd5b600855565b600a54600654604080516370a0823160e01b81526001600160a01b0392831660048201529051600093610b249316916370a08231916024808301926020929190829003018186803b158015610b7d57600080fd5b323314806114c75750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b15801561149a57600080fd5b505afa1580156114ae573d6000803e3d6000fd5b505050506040513d60208110156114c457600080fd5b50515b61150c576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561155a57600080fd5b505afa15801561156e573d6000803e3d6000fd5b505050506040513d602081101561158457600080fd5b5051156115c9576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615611618576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b600554600160a81b900460ff16611676576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6005805460ff60a81b19169055600061168d6113ee565b600654604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156116de57600080fd5b505afa1580156116f2573d6000803e3d6000fd5b505050506040513d602081101561170857600080fd5b505160065490915061172b906001600160a01b031633308663ffffffff6122ca16565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561177657600080fd5b505afa15801561178a573d6000803e3d6000fd5b505050506040513d60208110156117a057600080fd5b505190506117b4818363ffffffff61228816565b935060006117c06106ce565b6117cb5750836117ea565b6117e784610b0c6117da6106ce565b889063ffffffff6121ed16565b90505b6117f4338261232a565b50506005805460ff60a81b1916600160a81b179055505050565b6009546001600160a01b0316331461185b576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19169055565b600b6020526000908152604090205460ff1681565b323314806119165750600554604080516334f071a360e11b815233600482015290516101009092046001600160a01b0316916369e0e34691602480820192602092909190829003018186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d602081101561191357600080fd5b50515b61195b576040805162461bcd60e51b81526020600482015260116024820152701b9bdd081a5b881dda1a5d19481b1a5cdd607a1b604482015290519081900360640190fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119a957600080fd5b505afa1580156119bd573d6000803e3d6000fd5b505050506040513d60208110156119d357600080fd5b505115611a18576040805162461bcd60e51b815260206004820152600e60248201526d476c6f62616c207061757365642160901b604482015290519081900360640190fd5b600a54600160a01b900460ff1615611a67576040805162461bcd60e51b815260206004820152600d60248201526c4c6f63616c207061757365642160981b604482015290519081900360640190fd5b333214611aa7576040805162461bcd60e51b81526020600482015260096024820152680858dbdb9d1c9858dd60ba1b604482015290519081900360640190fd5b6000611ab1610a69565b600a54600654919250611ad7916001600160a01b0390811691168363ffffffff61241a16565b600a546006546040805163b02bf4b960e01b81526001600160a01b039283166004820152602481018590529051919092169163b02bf4b991604480830192600092919082900301818387803b158015610f5e57600080fd5b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a546001600160a01b031681565b60075481565b6006546001600160a01b031681565b6009546001600160a01b03163314611bcb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b3390565b6001600160a01b038316611c385760405162461bcd60e51b81526004018080602001828103825260248152602001806128e36024913960400191505060405180910390fd5b6001600160a01b038216611c7d5760405162461bcd60e51b815260040180806020018281038252602281526020018061280c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611d245760405162461bcd60e51b81526004018080602001828103825260258152602001806128be6025913960400191505060405180910390fd5b6001600160a01b038216611d695760405162461bcd60e51b81526004018080602001828103825260238152602001806127c76023913960400191505060405180910390fd5b611dac8160405180606001604052806026815260200161282e602691396001600160a01b038616600090815260208190526040902054919063ffffffff611e3b16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611de1908263ffffffff61218c16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611eca5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e8f578181015183820152602001611e77565b50505050905090810190601f168015611ebc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611eeb611edf6106ce565b610b0c84610b00610b29565b9050611ef78383612471565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611f4257600080fd5b505afa158015611f56573d6000803e3d6000fd5b505050506040513d6020811015611f6c57600080fd5b50519050818110156120aa576000611f8a838363ffffffff61228816565b600a546006546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015611fe457600080fd5b505af1158015611ff8573d6000803e3d6000fd5b5050600654604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b15801561204957600080fd5b505afa15801561205d573d6000803e3d6000fd5b505050506040513d602081101561207357600080fd5b505190506000612089828563ffffffff61228816565b9050828110156120a6576120a3848263ffffffff61218c16565b94505b5050505b60006120c7612710610b0c600854866121ed90919063ffffffff16565b905061215f600a60009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b15801561211a57600080fd5b505afa15801561212e573d6000803e3d6000fd5b505050506040513d602081101561214457600080fd5b50516006546001600160a01b0316908363ffffffff61241a16565b610f7285612173858463ffffffff61228816565b6006546001600160a01b0316919063ffffffff61241a16565b6000828201838110156121e6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826121fc575060006106c8565b8282028284828161220957fe5b04146121e65760405162461bcd60e51b81526004018080602001828103825260218152602001806128546021913960400191505060405180910390fd5b60006121e683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061256d565b60006121e683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e3b565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526123249085906125d2565b50505050565b6001600160a01b038216612385576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254612398908263ffffffff61218c16565b6002556001600160a01b0382166000908152602081905260409020546123c4908263ffffffff61218c16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261246c9084906125d2565b505050565b6001600160a01b0382166124b65760405162461bcd60e51b815260040180806020018281038252602181526020018061289d6021913960400191505060405180910390fd5b6124f9816040518060600160405280602281526020016127ea602291396001600160a01b038516600090815260208190526040902054919063ffffffff611e3b16565b6001600160a01b038316600090815260208190526040902055600254612525908263ffffffff61228816565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600081836125bc5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611e8f578181015183820152602001611e77565b5060008385816125c857fe5b0495945050505050565b6125e4826001600160a01b031661278a565b612635576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106126735780518252601f199092019160209182019101612654565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146126d5576040519150601f19603f3d011682016040523d82523d6000602084013e6126da565b606091505b509150915081612731576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156123245780806020019051602081101561274d57600080fd5b50516123245760405162461bcd60e51b815260040180806020018281038252602a815260200180612907602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906127be57508115155b94935050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820afe647859bb85b46f41b6dbbf5ff4ba80861f8abf175f3977c785c11bdd1a61264736f6c634300050f0032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ba50933c268f567bdc86e1ac131be072c6b0b71a000000000000000000000000d8c5344e331d5f4161f03726870ce9da8b504d2a00000000000000000000000019f35ce3c3875c120ab602386c8d6a59e88e493e

-----Decoded View---------------
Arg [0] : _token (address): 0xBA50933C268F567BDC86E1aC131BE072C6B0b71a
Arg [1] : _controller (address): 0xd8c5344E331d5f4161f03726870ce9DA8B504d2A
Arg [2] : whiteList (address): 0x19F35Ce3C3875C120AB602386C8d6a59e88E493e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000ba50933c268f567bdc86e1ac131be072c6b0b71a
Arg [1] : 000000000000000000000000d8c5344e331d5f4161f03726870ce9da8b504d2a
Arg [2] : 00000000000000000000000019f35ce3c3875c120ab602386c8d6a59e88e493e


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.