Contract Address Details

0x8420454d4b5f436dbCb5913609F3848350B8723A

Token
gCASH (gCASH)
Creator
0xdaab7c–430216 at 0x98dd11–c91f78
Balance
0 CRO ( )
Tokens
Fetching tokens...
Transactions
692 Transactions
Transfers
0 Transfers
Gas Used
14,858,713
Last Balance Update
13706952
Contract name:
gCASH




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
200
EVM Version
default




Verified at
2021-12-27T09:08:04.390415Z

Contract source code

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

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



pragma solidity >=0.6.0 <0.8.0;

// File: contracts/utils/DoubleOwnable.sol



pragma solidity ^0.6.12;


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

    event PrimaryOwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    event SecondaryOwnershipTransferred(address indexed previousOwner, address indexed newOwner);

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

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

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

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

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

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

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

    /**
     * @dev Set secondary ownership of the contract to a new account (`newOwner`).
     * Can only be called by the primary owner.
     */

    function setSecondaryOwnership(address newOwner) public virtual onlyPrimaryOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit SecondaryOwnershipTransferred(_secondaryOwner, newOwner);
        _secondaryOwner = newOwner;
    }
}

// File: contracts/owner/DoubleOperator.sol



pragma solidity ^0.6.0;



contract DoubleOperator is Context, DoubleOwnable {
    address private _primaryOperator;
    address private _secondaryOperator;

    event PrimaryOperatorTransferred(
        address indexed previousOperator,
        address indexed newOperator
    );
    event SecondaryOperatorTransferred(
        address indexed previousOperator,
        address indexed newOperator
    );

    constructor() internal {
        _primaryOperator = _msgSender();
        emit PrimaryOperatorTransferred(address(0), _primaryOperator);
    }

    function primaryOperator() public view returns (address) {
        return _primaryOperator;
    }

    function operator() public view returns (address) {
        return _secondaryOperator;
    }

    modifier onlyDoubleOperator() {
        require(
            (_primaryOperator == msg.sender || _secondaryOperator == msg.sender),
            'operator: caller is not the operator'
        );
        _;
    }

    modifier onlySecondaryOperator() {
        require(
            _secondaryOperator == msg.sender,
            'operator: caller is not the operator'
        );
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _primaryOperator || _msgSender() == _secondaryOperator;
    }

    function transferPrimaryOperator(address newOperator_) public onlyPrimaryOwner {
        _transferPrimaryOperator(newOperator_);
    }

    function _transferPrimaryOperator(address newOperator_) internal {
        require(
            newOperator_ != address(0),
            'operator: zero address given for new operator'
        );
        emit PrimaryOperatorTransferred(address(0), newOperator_);
        _primaryOperator = newOperator_;
    }

    function setSecondaryOperator(address newOperator_) external onlyPrimaryOwner {
        require(
            newOperator_ != address(0),
            'operator: zero address given for new operator'
        );

        emit SecondaryOperatorTransferred(address(0), newOperator_);
        _secondaryOperator = newOperator_;
    }
}

// File: contracts/interfaces/IOracle.sol

pragma solidity ^0.6.0;

interface IOracle {
    function update() external;

    function consult(address token, uint256 amountIn)
        external
        view
        returns (uint256 amountOut);
    // function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestamp);
}

// File: contracts/interfaces/IPancakePair.sol



pragma solidity 0.6.12;

interface IPancakePair {
    function token0() external view returns (address);
    function token1() external view returns (address);
}

// File: contracts/interfaces/IMoneyPot.sol



pragma solidity =0.6.12;

interface IMoneyPot {
    function updateReceived(uint _amount) external;
    function updateMilestoneOf(address _of) external;
    function updategCASHBonusShare(address _account) external;
    function getRewardToken() external returns (address);
    function newHolder(address _from, uint _amount) external;
    function lessHolder(address _from, uint _amount) external;
    function transferHolder(address _from, address _to, uint256 _amount) external;
}

// File: contracts/interfaces/IDFIMasterChef.sol



pragma solidity =0.6.12;

interface IDFIMasterChef {
    function updategCASHAmount(address[] calldata _of) external;
}

// File: contracts/lib/ExternalCalls.sol



pragma solidity ^0.6.12;




contract ExternalsCalls is DoubleOperator {
    /* ========== EXTERNALS =========== */

    bool public updateMoneyPot; // if true, gCASH will update money pot at each token movement
    bool public updateDFIMasterChef; // if true, gCASH will update DFIANCE master chef at each token movement
    IMoneyPot public moneyPotContract;
    IDFIMasterChef public dfiMasterChefContract;

    function setMoneyPotUpdate(bool _updateMoneyPot) external onlyDoubleOperator {
        if (_updateMoneyPot) {
            require(address(moneyPotContract) != address(0));
        }
        updateMoneyPot = _updateMoneyPot;
    }

    function setDFIMasterChefUpdate(bool _updateDFIMasterChef) external onlyDoubleOperator {
        if (_updateDFIMasterChef) {
            require(address(dfiMasterChefContract) != address(0));
        }
        updateDFIMasterChef = _updateDFIMasterChef;
    }

    function setMoneyPot(address _moneyPot) public onlyDoubleOperator {
        if (updateMoneyPot) {
            require(_moneyPot != address(0));
        }
        moneyPotContract = IMoneyPot(_moneyPot);
    }

    function setMasterChef(address _masterChef) public onlyDoubleOperator {
        if (updateDFIMasterChef) {
            require(_masterChef != address(0));
        }
        dfiMasterChefContract = IDFIMasterChef(_masterChef);
    }

    function _updateExternalContracts(address sender, address recipient) public {
        // update dfiance money pot and master chef

        if (updateMoneyPot) { 
            // inform the money pot of gCASH token possible movement
            moneyPotContract.updategCASHBonusShare(sender);
            moneyPotContract.updategCASHBonusShare(recipient);
        }
        if (updateDFIMasterChef) {
            address[] memory _addressToUpdate = new address[](2);
            _addressToUpdate[0] = sender;
            _addressToUpdate[1] = recipient;

            // verify that the user still holds enough gCASH to stay in DFIANCE master chef pools
            dfiMasterChefContract.updategCASHAmount(_addressToUpdate);
        }
    }
}




pragma solidity 0.6.12;

contract gCASH is ERC20Burnable, DoubleOperator, ExternalsCalls {
    using SafeMath for uint256;

    /* ========== STATE VARIABLES ========== */

    // Fees
    uint256 constant public maxPriceTaxRates = 15e17;
    uint256 constant public minPriceTaxRates = 6e17;
    uint256 constant public gCASHMultiplierStepExpansion = 10e16; // 10 cents
    //list of fees for every price range
    mapping(uint256 => uint256) private feesTaxRate;
    uint256 public lockRatio = 70;
    //list of addresses which exclude fees
    mapping(address => bool) public senderExcludedAddresses;
    mapping(address => bool) public recipientExcludedAddresses;
    mapping(address => bool) public feesIncludedPools; // list of address (of pools) where fees are applied
    mapping(address => bool) public blacklistUsers;

    // Oracle
    address public gCASHOracle;
    address public gCASH;
    address public injector;

    /* ========== CONSTRUCTOR ========== */

    constructor() public ERC20('gCASH', 'gCASH') {
        _mint(msg.sender, 10001 * 10**18);
        // Set the array of tax rate according to the price

        // sub 0.6 = 30%
        feesTaxRate[0] = 15;
        // 0.6 - 0.7 = 29 %
        feesTaxRate[1] = 10;
        // 0.7 - 0.8 = 27 %
        feesTaxRate[2] = 5;
        // 0.8 - 0.9 = 26%
        feesTaxRate[3] = 1; 
        // 0.9 - 1.0 = 25%
        feesTaxRate[4] = 1;
        // 1.0 - 1.1 = 8 %
        feesTaxRate[5] = 1;
        // 1.1 - 1.2 = 6 %
        feesTaxRate[6] = 1;
        // 1.2 - 1.3 = 4%
        feesTaxRate[7] = 1;
        // 1.3 - 1.4 = 3%
        feesTaxRate[8] = 1;
        // 1.4 - 1.5 = 2%
        feesTaxRate[9] = 1;
        // above 1.5 = 1%
        feesTaxRate[10] = 1;
    }

    /* ========== FEES ========== */

    modifier whitelist(address who) {
        require(blacklistUsers[who] == false, "You have been gCASH-ed, no printeri-no.");
        _;
    }

    function addBlacklist(address _blacklist) external onlyDoubleOperator {
        require(_blacklist != address(0), "Can't blacklist 0x addr");
        require(blacklistUsers[_blacklist] == false, "Already blacklisted");
        blacklistUsers[_blacklist] = true;
    }

    function removeBlacklist(address _blacklist) external onlyDoubleOperator {
        require(_blacklist != address(0), "Can't de-blacklist 0x addr");
        require(blacklistUsers[_blacklist] == true, "Not blacklisted yet");
        blacklistUsers[_blacklist] = false;
    }

    // Check the mapping for excluded addresses with fees (Treasury/Boardroom)
    // ==> Fees do not apply to the core algorithm.
    function isSenderExcludedAddresses(address _address) public view returns(bool isIndeed) {
        return senderExcludedAddresses[_address];
    }

    // Add an address to the exluded mapping
    function addSenderExcludedAddresses(address newAddress) public onlyDoubleOperator returns(bool) {
        require(!isSenderExcludedAddresses(newAddress));
        senderExcludedAddresses[newAddress] = true;
        return true;
    }

    // Removes an address from the excluded mapping
    function removeSenderExcludedAddresses(address oldAddress) public onlyDoubleOperator returns(bool) {
        require(isSenderExcludedAddresses(oldAddress));
        senderExcludedAddresses[oldAddress] = false;
        return true;
    }

    // Get fees for a price range (index) :
    function getfeesTaxRate(uint256 index) public view returns(uint256) {
        return feesTaxRate[index];
    }

    // Set fees for a price range (index) :
    function setfeesTaxRate(uint256 index, uint256 fees) public onlyDoubleOperator {
        require(fees <= 40);
        feesTaxRate[index] = fees;
    }

    function setfeesLockRate(uint256 _lockRatio) public onlyDoubleOperator {
        require(_lockRatio < 99, "Too high, ser!");
        lockRatio = _lockRatio;
    }

    function getLockRatio() public view returns(uint256) {
        return lockRatio;
    }

    // Return number of times over the cents step (gCASHMultiplierStepExpansion) :
    function _countTimesOverCents() internal view returns (uint256) {
        uint256 gCASHPrice = getgCASHPrice();
        if (gCASHPrice >= maxPriceTaxRates) {
            return 10;
        } else if (gCASHPrice <= minPriceTaxRates) {
            return 0;
        } else {
            uint256 count;
            gCASHPrice = gCASHPrice.sub(minPriceTaxRates);
            count = gCASHPrice.div(gCASHMultiplierStepExpansion);
            return count.add(1);
        }
    }

    //---------------- RECIPIENT -------------------//

    function isRecipientExcludedAddresses(address _address) public view returns(bool isIndeed) {
        return recipientExcludedAddresses[_address];
    }

    // Add an address to the exluded mapping
    function addRecipientExcludedAddresses(address newAddress) public onlyDoubleOperator returns(bool) {
        require(!isRecipientExcludedAddresses(newAddress));
       recipientExcludedAddresses[newAddress] = true;
        return true;
    }

    // Removes an address from the excluded mapping
    function removeRecipientExcludedAddresses(address oldAddress) public onlyDoubleOperator returns(bool) {
        require(isRecipientExcludedAddresses(oldAddress));
        recipientExcludedAddresses[oldAddress] = false;
        return true;
    }

    function addFeesIncludedPools(address pool) external onlyDoubleOperator returns(bool) {
        require(feesIncludedPools[pool] == false);
        feesIncludedPools[pool] = true;
        return true;
    }

    function removeFeesIncludedPools(address pool) external onlyDoubleOperator returns(bool) {
        require(feesIncludedPools[pool]);
        feesIncludedPools[pool] = false;
        return true;
    }

    /* ========== ORACLE ========== */

    // Set new Oracle on the gCASH contract
    function setgCASHOracleAddress(address newOracle) public onlyDoubleOperator {
        gCASHOracle = newOracle;
    }
    // Reference the gCASH address to itself as an argument for the Oracle
    function setgCASHAddress(address newgCASHAddress) public onlyDoubleOperator {
        gCASH = newgCASHAddress;
    }

    function setInjectorAddress(address newInjector) public onlyDoubleOperator {
        injector = newInjector;
    }

    /* ========== MAIN FUNCTIONS ========== */

    function mint(address recipient_, uint256 amount_) public onlySecondaryOperator returns (bool) {
        uint256 balanceBefore = balanceOf(recipient_);
        _mint(recipient_, amount_);
        uint256 balanceAfter = balanceOf(recipient_);

        address[] memory _recipient = new address[](1);
        _recipient[0] = recipient_;

        if (updateMoneyPot) moneyPotContract.updategCASHBonusShare(recipient_); // inform the money pot of gCASH token possible movement
        if (updateDFIMasterChef) dfiMasterChefContract.updategCASHAmount(_recipient); // verify that the user still holds enough gCASH to stay in DFIANCE master chef pools

        return balanceAfter > balanceBefore;
    }

    // try to execute function "getter" and return value (=> used to return token0 and token1 from DEX pools)
    function getPoolToken(address pool, string memory signature, function() external view returns(address) getter) private returns (address token) {
        (bool success, ) = pool.call(abi.encodeWithSignature(signature)); // if the call succeed (pool address have the "signature" method or "pool" is an EOA)
        if (success) {
            uint32 size;
            assembly {
                size := extcodesize(pool)
            }
            if (size > 0) { // verify that the pool is a contract (constructor can bypass this but its not dangerous)
                return getter();
            }
        }
    }

    // check if the recipient is a liquidity pool with gCASH into
    function isgCASHLiquidityPool(address recipient) public returns (bool) {
        address token0 = getPoolToken(recipient, "token0()", IPancakePair(recipient).token0);
        address token1 = getPoolToken(recipient, "token1()", IPancakePair(recipient).token1);

        return (feesIncludedPools[recipient] || token0 == address(this) || token1 == address(this));
    }


    function transferFrom(address sender, address recipient, uint256 amount) public whitelist(sender) override returns (bool) {
        _transferOverride(sender, recipient, amount);
        _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "Drip Drip, ERC20: transfer amount exceeds allowance"));
        _updateExternalContracts(sender, recipient);

        return true;
    }    

    function transfer(address recipient, uint256 amount) public whitelist(_msgSender()) override returns (bool) {
        _transferOverride(_msgSender(), recipient, amount);
        _updateExternalContracts(_msgSender(), recipient);

        return true;
    }

    function _transferOverride(address sender, address recipient, uint256 amount) internal returns (bool) {
        // if the recipient is a liquidity pool with gCASH, its a gCASH sell => take fees
        if ((isSenderExcludedAddresses(sender) == false && isRecipientExcludedAddresses(recipient) == false) && isgCASHLiquidityPool(recipient)) {
            uint feesAmount = amount.mul(feesTaxRate[_countTimesOverCents()]).div(100); // 
            uint feesForLiquidity = feesAmount.mul(lockRatio).div(100);
            uint feesForBurn = feesAmount.sub(feesForLiquidity);
        
            super._burn(sender, feesForBurn);
            _transfer(sender, injector, feesForLiquidity);
            
            _transfer(sender, recipient, amount.sub(feesAmount));
        } else { // else, if the call comes from a contract, => transfer with fees :
            _transfer(sender, recipient, amount);
        }

        return true;
    }

    function burn(uint256 amount) public virtual override {
        _burn(_msgSender(), amount);

        address[] memory _sender = new address[](1);
        _sender[0] = _msgSender();

        if (updateMoneyPot) moneyPotContract.updategCASHBonusShare(_msgSender()); // inform the money pot of gCASH token possible movement
        if (updateDFIMasterChef) dfiMasterChefContract.updategCASHAmount(_sender); // verify that the user still holds enough gCASH to stay in DFIANCE master chef pools
    }

    /* ========== GET FUNCTIONS ========== */

    function getgCASHPrice() public view returns (uint256 gCASHPrice) {
        try IOracle(gCASHOracle).consult(gCASH, 1e18) returns (uint256 price) {
            return price;
        } catch {
            revert("Failed to consult gCASH price from the oracle");
        }
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"PrimaryOperatorTransferred","inputs":[{"type":"address","name":"previousOperator","internalType":"address","indexed":true},{"type":"address","name":"newOperator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PrimaryOwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SecondaryOperatorTransferred","inputs":[{"type":"address","name":"previousOperator","internalType":"address","indexed":true},{"type":"address","name":"newOperator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SecondaryOwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"_updateExternalContracts","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addBlacklist","inputs":[{"type":"address","name":"_blacklist","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addFeesIncludedPools","inputs":[{"type":"address","name":"pool","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addRecipientExcludedAddresses","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addSenderExcludedAddresses","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"blacklistUsers","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IDFIMasterChef"}],"name":"dfiMasterChefContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"feesIncludedPools","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"gCASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"gCASHMultiplierStepExpansion","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"gCASHOracle","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getLockRatio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getfeesTaxRate","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"gCASHPrice","internalType":"uint256"}],"name":"getgCASHPrice","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"injector","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOperator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"isIndeed","internalType":"bool"}],"name":"isRecipientExcludedAddresses","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"isIndeed","internalType":"bool"}],"name":"isSenderExcludedAddresses","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isgCASHLiquidityPool","inputs":[{"type":"address","name":"recipient","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockRatio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxPriceTaxRates","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minPriceTaxRates","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"mint","inputs":[{"type":"address","name":"recipient_","internalType":"address"},{"type":"uint256","name":"amount_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IMoneyPot"}],"name":"moneyPotContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"primaryOperator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"primaryOwner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"recipientExcludedAddresses","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeBlacklist","inputs":[{"type":"address","name":"_blacklist","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"removeFeesIncludedPools","inputs":[{"type":"address","name":"pool","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"removeRecipientExcludedAddresses","inputs":[{"type":"address","name":"oldAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"removeSenderExcludedAddresses","inputs":[{"type":"address","name":"oldAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"secondaryOwner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"senderExcludedAddresses","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDFIMasterChefUpdate","inputs":[{"type":"bool","name":"_updateDFIMasterChef","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setInjectorAddress","inputs":[{"type":"address","name":"newInjector","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMasterChef","inputs":[{"type":"address","name":"_masterChef","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMoneyPot","inputs":[{"type":"address","name":"_moneyPot","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMoneyPotUpdate","inputs":[{"type":"bool","name":"_updateMoneyPot","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSecondaryOperator","inputs":[{"type":"address","name":"newOperator_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSecondaryOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setfeesLockRate","inputs":[{"type":"uint256","name":"_lockRatio","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setfeesTaxRate","inputs":[{"type":"uint256","name":"index","internalType":"uint256"},{"type":"uint256","name":"fees","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setgCASHAddress","inputs":[{"type":"address","name":"newgCASHAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setgCASHOracleAddress","inputs":[{"type":"address","name":"newOracle","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferPrimaryOperator","inputs":[{"type":"address","name":"newOperator_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferPrimaryOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"updateDFIMasterChef","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"updateMoneyPot","inputs":[]}]
            

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106103c55760003560e01c8063715018a6116101ff578063bc731d2b1161011a578063dd62ed3e116100ad578063ea5554c61161007c578063ea5554c614610afd578063eb91e65114610b23578063f2da71e014610b49578063f474584a14610b51576103c5565b8063dd62ed3e14610a5d578063e28fc96c14610a8b578063e5b853a714610ab1578063e5d6fe9414610ad7576103c5565b8063cac7f825116100e9578063cac7f825146109ec578063d2e06b9c14610a12578063d33656e014610a38578063d8934ddf14610a40576103c5565b8063bc731d2b14610990578063bcbcb65b146109b6578063c417886b146109dc578063c8a9239d146109e4576103c5565b80639a73de0711610192578063a457c2d711610161578063a457c2d714610928578063a9059cbb14610954578063ac7d300f14610980578063b627270214610988576103c5565b80639a73de07146108b55780639c3709ea146108d45780639cfe42da146108dc578063a2d9f4dc14610902576103c5565b80638e10be33116101ce5780638e10be331461085157806395d89b41146108595780639768ddb81461086157806397e4b19114610887576103c5565b8063715018a61461080d57806379cc679014610815578063864faf5d146108415780638684734414610849576103c5565b806340c10f19116102ef5780634fb99ea7116102825780635f94e3de116102515780635f94e3de14610775578063612357e71461079b5780636c049e93146107c157806370a08231146107e7576103c5565b80634fb99ea714610702578063570ca735146107215780635b6c9592146107295780635cb258b61461074f576103c5565b80634361180e116102be5780634361180e146106af5780634456eda2146106d557806346171610146106dd5780634cde9a0b146106e5576103c5565b806340c10f1914610638578063419b833d1461066457806341c2e47e1461068a57806342966c6814610692576103c5565b80631c000a6c11610367578063313ce56711610336578063313ce567146105c057806336a5a231146105de57806339509351146105e6578063399efe7914610612576103c5565b80631c000a6c1461051a57806323b872dd14610540578063268a01c0146105765780632cd481f21461059c576103c5565b80631355d948116103a35780631355d948146104a15780631448ecbc146104c6578063169458a9146104ec57806318160ddd14610512576103c5565b80630453bb92146103ca57806306fdde03146103e4578063095ea7b314610461575b600080fd5b6103d2610b59565b60408051918252519081900360200190f35b6103ec610b60565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042657818101518382015260200161040e565b50505050905090810190601f1680156104535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61048d6004803603604081101561047757600080fd5b506001600160a01b038135169060200135610bf6565b604080519115158252519081900360200190f35b6104c4600480360360408110156104b757600080fd5b5080359060200135610c14565b005b6104c4600480360360208110156104dc57600080fd5b50356001600160a01b0316610c92565b6104c46004803603602081101561050257600080fd5b50356001600160a01b0316610d12565b6103d2610d92565b61048d6004803603602081101561053057600080fd5b50356001600160a01b0316610d98565b61048d6004803603606081101561055657600080fd5b506001600160a01b03813581169160208101359091169060400135610dad565b61048d6004803603602081101561058c57600080fd5b50356001600160a01b0316610e6e565b6105a4610f19565b604080516001600160a01b039092168252519081900360200190f35b6105c8610f28565b6040805160ff9092168252519081900360200190f35b6105a4610f31565b61048d600480360360408110156105fc57600080fd5b506001600160a01b038135169060200135610f40565b61048d6004803603602081101561062857600080fd5b50356001600160a01b0316610f8e565b61048d6004803603604081101561064e57600080fd5b506001600160a01b03813516906020013561102b565b61048d6004803603602081101561067a57600080fd5b50356001600160a01b0316611219565b6105a461122e565b6104c4600480360360208110156106a857600080fd5b503561123d565b61048d600480360360208110156106c557600080fd5b50356001600160a01b03166113d6565b61048d61146e565b6105a46114b9565b6104c4600480360360208110156106fb57600080fd5b50356114c8565b6104c46004803603602081101561071857600080fd5b50351515611571565b6105a4611608565b61048d6004803603602081101561073f57600080fd5b50356001600160a01b0316611617565b6104c46004803603602081101561076557600080fd5b50356001600160a01b03166116b4565b6104c46004803603602081101561078b57600080fd5b50356001600160a01b03166117c2565b6104c4600480360360208110156107b157600080fd5b50356001600160a01b03166118c1565b61048d600480360360208110156107d757600080fd5b50356001600160a01b0316611966565b6103d2600480360360208110156107fd57600080fd5b50356001600160a01b0316611a2c565b6104c4611a47565b6104c46004803603604081101561082b57600080fd5b506001600160a01b038135169060200135611af9565b6105a4611b47565b6103d2611b56565b6105a4611b62565b6103ec611b76565b61048d6004803603602081101561087757600080fd5b50356001600160a01b0316611bd7565b6104c46004803603604081101561089d57600080fd5b506001600160a01b0381358116916020013516611c87565b6104c4600480360360208110156108cb57600080fd5b50351515611e8a565b6103d2611f21565b6104c4600480360360208110156108f257600080fd5b50356001600160a01b0316611f27565b6104c46004803603602081101561091857600080fd5b50356001600160a01b0316612068565b61048d6004803603604081101561093e57600080fd5b506001600160a01b03813516906020013561210d565b61048d6004803603604081101561096a57600080fd5b506001600160a01b038135169060200135612175565b61048d612205565b6103d2612215565b61048d600480360360208110156109a657600080fd5b50356001600160a01b03166122de565b61048d600480360360208110156109cc57600080fd5b50356001600160a01b03166122fc565b6103d2612394565b61048d6123a0565b6104c460048036036020811015610a0257600080fd5b50356001600160a01b03166123b0565b61048d60048036036020811015610a2857600080fd5b50356001600160a01b03166124b3565b6105a46124d1565b6103d260048036036020811015610a5657600080fd5b50356124e0565b6103d260048036036040811015610a7357600080fd5b506001600160a01b03813581169160200135166124f2565b6104c460048036036020811015610aa157600080fd5b50356001600160a01b031661251d565b61048d60048036036020811015610ac757600080fd5b50356001600160a01b031661258b565b6104c460048036036020811015610aed57600080fd5b50356001600160a01b03166125a0565b61048d60048036036020811015610b1357600080fd5b50356001600160a01b0316612620565b6104c460048036036020811015610b3957600080fd5b50356001600160a01b0316612635565b6105a4612777565b6103d2612786565b600c545b90565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bec5780601f10610bc157610100808354040283529160200191610bec565b820191906000526020600020905b815481529060010190602001808311610bcf57829003601f168201915b5050505050905090565b6000610c0a610c036127f3565b84846127f7565b5060015b92915050565b6007546001600160a01b0316331480610c3757506008546001600160a01b031633145b610c725760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6028811115610c8057600080fd5b6000918252600b602052604090912055565b6007546001600160a01b0316331480610cb557506008546001600160a01b031633145b610cf05760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331480610d3557506008546001600160a01b031633145b610d705760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b60025490565b60106020526000908152604090205460ff1681565b6001600160a01b038316600090815260106020526040812054849060ff1615610e075760405162461bcd60e51b81526004018080602001828103825260278152602001806132216027913960400191505060405180910390fd5b610e128585856128e3565b50610e5985610e1f6127f3565b610e548660405180606001604052806033815260200161326e60339139610e4d8b610e486127f3565b6124f2565b91906129c7565b6127f7565b610e638585611c87565b506001949350505050565b6007546000906001600160a01b0316331480610e9457506008546001600160a01b031633145b610ecf5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6001600160a01b0382166000908152600f602052604090205460ff16610ef457600080fd5b506001600160a01b03166000908152600f60205260409020805460ff19169055600190565b6011546001600160a01b031681565b60055460ff1690565b6006546001600160a01b031690565b6000610c0a610f4d6127f3565b84610e548560016000610f5e6127f3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612792565b6007546000906001600160a01b0316331480610fb457506008546001600160a01b031633145b610fef5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b610ff8826124b3565b1561100257600080fd5b506001600160a01b03166000908152600e60205260409020805460ff1916600190811790915590565b6008546000906001600160a01b031633146110775760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b600061108284611a2c565b905061108e8484612a5e565b600061109985611a2c565b604080516001808252818301909252919250606091906020808301908036833701905050905085816000815181106110cd57fe5b6001600160a01b039092166020928302919091019091015260085460ff600160a01b909104161561115f576009546040805163898d9bb560e01b81526001600160a01b0389811660048301529151919092169163898d9bb591602480830192600092919082900301818387803b15801561114657600080fd5b505af115801561115a573d6000803e3d6000fd5b505050505b600854600160a81b900460ff161561121057600a5460405163471205b560e01b81526020600482018181528451602484015284516001600160a01b039094169363471205b59386938392604490920191818601910280838360005b838110156111d25781810151838201526020016111ba565b5050505090500192505050600060405180830381600087803b1580156111f757600080fd5b505af115801561120b573d6000803e3d6000fd5b505050505b50119392505050565b600f6020526000908152604090205460ff1681565b600a546001600160a01b031681565b61124e6112486127f3565b82612b4e565b604080516001808252818301909252606091602080830190803683370190505090506112786127f3565b8160008151811061128557fe5b6001600160a01b039092166020928302919091019091015260085460ff600160a01b9091041615611321576009546001600160a01b031663898d9bb56112c96127f3565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561130857600080fd5b505af115801561131c573d6000803e3d6000fd5b505050505b600854600160a81b900460ff16156113d257600a5460405163471205b560e01b81526020600482018181528451602484015284516001600160a01b039094169363471205b59386938392604490920191818601910280838360005b8381101561139457818101518382015260200161137c565b5050505090500192505050600060405180830381600087803b1580156113b957600080fd5b505af11580156113cd573d6000803e3d6000fd5b505050505b5050565b6007546000906001600160a01b03163314806113fc57506008546001600160a01b031633145b6114375760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b611440826124b3565b61144957600080fd5b506001600160a01b03166000908152600e60205260409020805460ff19169055600190565b6007546000906001600160a01b03166114856127f3565b6001600160a01b031614806114b457506008546001600160a01b03166114a96127f3565b6001600160a01b0316145b905090565b6013546001600160a01b031681565b6007546001600160a01b03163314806114eb57506008546001600160a01b031633145b6115265760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6063811061156c576040805162461bcd60e51b815260206004820152600e60248201526d546f6f20686967682c207365722160901b604482015290519081900360640190fd5b600c55565b6007546001600160a01b031633148061159457506008546001600160a01b031633145b6115cf5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b80156115ea576009546001600160a01b03166115ea57600080fd5b60088054911515600160a01b0260ff60a01b19909216919091179055565b6008546001600160a01b031690565b6007546000906001600160a01b031633148061163d57506008546001600160a01b031633145b6116785760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b611681826122de565b1561168b57600080fd5b506001600160a01b03166000908152600d60205260409020805460ff1916600190811790915590565b6116bc6127f3565b6001600160a01b03166116cd611b62565b6001600160a01b031614611716576040805162461bcd60e51b8152602060048201819052602482015260008051602061331c833981519152604482015290519081900360640190fd5b6001600160a01b03811661175b5760405162461bcd60e51b81526004018080602001828103825260268152602001806131d96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f56f6901da0707d3d8416ac2f62822ccd03d37a5110397590a1f144dd028213cb90600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6117ca6127f3565b6001600160a01b03166117db611b62565b6001600160a01b031614611824576040805162461bcd60e51b8152602060048201819052602482015260008051602061331c833981519152604482015290519081900360640190fd5b6001600160a01b0381166118695760405162461bcd60e51b815260040180806020018281038252602d8152602001806132ce602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f5df858659329584deb34885988af7d0c33062e608000046bb63ce5a9e4b3bc1b908290a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314806118e457506008546001600160a01b031633145b61191f5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b600854600160a01b900460ff1615611944576001600160a01b03811661194457600080fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000806119a28360405180604001604052806008815260200167746f6b656e30282960c01b815250856001600160a01b0316630dfe1681612c4a565b905060006119df8460405180604001604052806008815260200167746f6b656e31282960c01b815250866001600160a01b031663d21220a7612c4a565b6001600160a01b0385166000908152600f602052604090205490915060ff1680611a1157506001600160a01b03821630145b80611a2457506001600160a01b03811630145b949350505050565b6001600160a01b031660009081526020819052604090205490565b611a4f6127f3565b6001600160a01b0316611a60611b62565b6001600160a01b031614611aa9576040805162461bcd60e51b8152602060048201819052602482015260008051602061331c833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f56f6901da0707d3d8416ac2f62822ccd03d37a5110397590a1f144dd028213cb908390a360058054610100600160a81b0319169055565b6000611b248260405180606001604052806024815260200161333c60249139610e4d86610e486127f3565b9050611b3883611b326127f3565b836127f7565b611b428383612b4e565b505050565b6009546001600160a01b031681565b6714d1120d7b16000081565b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bec5780601f10610bc157610100808354040283529160200191610bec565b6007546000906001600160a01b0316331480611bfd57506008546001600160a01b031633145b611c385760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6001600160a01b0382166000908152600f602052604090205460ff1615611c5e57600080fd5b506001600160a01b03166000908152600f60205260409020805460ff1916600190811790915590565b600854600160a01b900460ff1615611d66576009546040805163898d9bb560e01b81526001600160a01b0385811660048301529151919092169163898d9bb591602480830192600092919082900301818387803b158015611ce757600080fd5b505af1158015611cfb573d6000803e3d6000fd5b50506009546040805163898d9bb560e01b81526001600160a01b038681166004830152915191909216935063898d9bb59250602480830192600092919082900301818387803b158015611d4d57600080fd5b505af1158015611d61573d6000803e3d6000fd5b505050505b600854600160a81b900460ff16156113d25760408051600280825260608083018452926020830190803683370190505090508281600081518110611da657fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110611dd457fe5b6001600160a01b03928316602091820292909201810191909152600a5460405163471205b560e01b815260048101838152855160248301528551929094169363471205b593869391928392604490910191858101910280838360005b83811015611e48578181015183820152602001611e30565b5050505090500192505050600060405180830381600087803b158015611e6d57600080fd5b505af1158015611e81573d6000803e3d6000fd5b50505050505050565b6007546001600160a01b0316331480611ead57506008546001600160a01b031633145b611ee85760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b8015611f0357600a546001600160a01b0316611f0357600080fd5b60088054911515600160a81b0260ff60a81b19909216919091179055565b600c5481565b6007546001600160a01b0316331480611f4a57506008546001600160a01b031633145b611f855760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6001600160a01b038116611fe0576040805162461bcd60e51b815260206004820152601760248201527f43616e277420626c61636b6c6973742030782061646472000000000000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526010602052604090205460ff1615612044576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48189b1858dadb1a5cdd1959606a1b604482015290519081900360640190fd5b6001600160a01b03166000908152601060205260409020805460ff19166001179055565b6007546001600160a01b031633148061208b57506008546001600160a01b031633145b6120c65760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b600854600160a81b900460ff16156120eb576001600160a01b0381166120eb57600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610c0a61211a6127f3565b84610e54856040518060600160405280602581526020016133ee60259139600160006121446127f3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906129c7565b600061217f6127f3565b6001600160a01b03811660009081526010602052604090205460ff16156121d75760405162461bcd60e51b81526004018080602001828103825260278152602001806132216027913960400191505060405180910390fd5b6121e96121e26127f3565b85856128e3565b506121fb6121f56127f3565b85611c87565b5060019392505050565b600854600160a81b900460ff1681565b60115460125460408051633ddac95360e01b81526001600160a01b039283166004820152670de0b6b3a7640000602482015290516000939290921691633ddac95391604480820192602092909190829003018186803b15801561227757600080fd5b505afa92505050801561229c57506040513d602081101561229757600080fd5b505160015b6122d75760405162461bcd60e51b815260040180806020018281038252602d8152602001806132a1602d913960400191505060405180910390fd5b9050610b5d565b6001600160a01b03166000908152600d602052604090205460ff1690565b6007546000906001600160a01b031633148061232257506008546001600160a01b031633145b61235d5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b612366826122de565b61236f57600080fd5b506001600160a01b03166000908152600d60205260409020805460ff19169055600190565b67016345785d8a000081565b600854600160a01b900460ff1681565b6123b86127f3565b6001600160a01b03166123c9611b62565b6001600160a01b031614612412576040805162461bcd60e51b8152602060048201819052602482015260008051602061331c833981519152604482015290519081900360640190fd5b6001600160a01b0381166124575760405162461bcd60e51b81526004018080602001828103825260268152602001806131d96026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907fd91e5ba07efb2e532a3d502f5fb4451cf8fe4006f3b90283d8f2f51a06e5358c90600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600e602052604090205460ff1690565b6007546001600160a01b031690565b6000908152600b602052604090205490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6125256127f3565b6001600160a01b0316612536611b62565b6001600160a01b03161461257f576040805162461bcd60e51b8152602060048201819052602482015260008051602061331c833981519152604482015290519081900360640190fd5b61258881612e01565b50565b600d6020526000908152604090205460ff1681565b6007546001600160a01b03163314806125c357506008546001600160a01b031633145b6125fe5760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600e6020526000908152604090205460ff1681565b6007546001600160a01b031633148061265857506008546001600160a01b031633145b6126935760405162461bcd60e51b81526004018080602001828103825260248152602001806133606024913960400191505060405180910390fd5b6001600160a01b0381166126ee576040805162461bcd60e51b815260206004820152601a60248201527f43616e27742064652d626c61636b6c6973742030782061646472000000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526010602052604090205460ff161515600114612756576040805162461bcd60e51b8152602060048201526013602482015272139bdd08189b1858dadb1a5cdd1959081e595d606a1b604482015290519081900360640190fd5b6001600160a01b03166000908152601060205260409020805460ff19169055565b6012546001600160a01b031681565b670853a0d2313c000081565b6000828201838110156127ec576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661283c5760405162461bcd60e51b81526004018080602001828103825260248152602001806133ca6024913960400191505060405180910390fd5b6001600160a01b0382166128815760405162461bcd60e51b81526004018080602001828103825260228152602001806131ff6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006128ee846122de565b15801561290157506128ff836124b3565b155b8015612911575061291183611966565b156129bc576000612950606461294a600b600061292c612e9e565b81526020019081526020016000205486612f1b90919063ffffffff16565b90612f74565b9050600061296e606461294a600c5485612f1b90919063ffffffff16565b9050600061297c8383612fdb565b90506129888782612b4e565b6013546129a09088906001600160a01b031684613038565b6129b487876129af8887612fdb565b613038565b5050506121fb565b6121fb848484613038565b60008184841115612a565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612a1b578181015183820152602001612a03565b50505050905090810190601f168015612a485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216612ab9576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612ac560008383611b42565b600254612ad29082612792565b6002556001600160a01b038216600090815260208190526040902054612af89082612792565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216612b935760405162461bcd60e51b81526004018080602001828103825260218152602001806133846021913960400191505060405180910390fd5b612b9f82600083611b42565b612bdc816040518060600160405280602281526020016131b7602291396001600160a01b03851660009081526020819052604090205491906129c7565b6001600160a01b038316600090815260208190526040902055600254612c029082612fdb565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600080856001600160a01b031685604051602401604051602081830303815290604052906040518082805190602001908083835b60208310612c9d5780518252601f199092019160209182019101612c7e565b51815160001960209485036101000a01908116901991909116179052604080519490920184900390932092860180516001600160e01b03166001600160e01b031990941693909317835251855190945084935090508083835b60208310612d155780518252601f199092019160209182019101612cf6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612d77576040519150601f19603f3d011682016040523d82523d6000602084013e612d7c565b606091505b505090508015612df857853b63ffffffff811615612df65784846040518163ffffffff1660e01b815260040160206040518083038186803b158015612dc057600080fd5b505afa158015612dd4573d6000803e3d6000fd5b505050506040513d6020811015612dea57600080fd5b50519250611a24915050565b505b50949350505050565b6001600160a01b038116612e465760405162461bcd60e51b815260040180806020018281038252602d8152602001806132ce602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f744c6b2916e4b560756a288df9f7203a517b90f2f08fcc7405d828202e379ebd908290a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600080612ea9612215565b90506714d1120d7b1600008110612ec457600a915050610b5d565b670853a0d2313c00008111612edd576000915050610b5d565b6000612ef182670853a0d2313c0000612fdb565b9150612f058267016345785d8a0000612f74565b9050612f12816001612792565b92505050610b5d565b600082612f2a57506000610c0e565b82820282848281612f3757fe5b04146127ec5760405162461bcd60e51b81526004018080602001828103825260218152602001806132fb6021913960400191505060405180910390fd5b6000808211612fca576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612fd357fe5b049392505050565b600082821115613032576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b03831661307d5760405162461bcd60e51b81526004018080602001828103825260258152602001806133a56025913960400191505060405180910390fd5b6001600160a01b0382166130c25760405162461bcd60e51b81526004018080602001828103825260238152602001806131946023913960400191505060405180910390fd5b6130cd838383611b42565b61310a81604051806060016040528060268152602001613248602691396001600160a01b03861660009081526020819052604090205491906129c7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546131399082612792565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373596f752068617665206265656e2067434153482d65642c206e6f207072696e746572692d6e6f2e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654472697020447269702c2045524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654661696c656420746f20636f6e73756c742067434153482070726963652066726f6d20746865206f7261636c656f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63656f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f7245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ca55953941a0aad6d5969e97c25fd399a6a1440289d367f69077cdcf5f01462c64736f6c634300060c0033