MATIC Price: $0.611649 (+6.41%)
Gas: 33 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040173188222021-07-27 9:58:211054 days ago1627379901IN
 Create: PolyVaultsToken
0 MATIC0.002407291.23456

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PolyVaultsToken

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-27
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;

/**
 * @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);
}

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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 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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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);
}

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

/*
 * @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 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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {}

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    uint256[50] private __gap;
}

/**
 * @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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        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] + 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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    uint256[45] private __gap;
}

/**
 * @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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    uint256[49] private __gap;
}

contract PolyVaultsToken is ERC20Upgradeable, OwnableUpgradeable {
    using SafeMath for uint256;

    uint256 public cap;
    mapping(address => bool) public minter;

    uint256 private _totalBurned;

    /* ========== EVENTS ========== */

    event MinterUpdate(address indexed account, bool isMinter);

    /* ========== Modifiers =============== */

    modifier onlyMinter() {
        require(minter[msg.sender], "!minter");
        _;
    }

    /* ========== GOVERNANCE ========== */

    function initialize() public initializer {
        ERC20Upgradeable.__ERC20_init("PolyVaults.fi", "PVI");
        OwnableUpgradeable.__Ownable_init();
        cap = 1000000 ether; // Max Supply: 1 million PVI
        _mint(_msgSender(), (cap * 20) / 100); // IDO + Reserve Fund + Init Operation Fund: 20%
    }

    function setCap(uint256 _newCap) external onlyOwner {
        require(totalSupply() <= _newCap, "exceeds current supply");
        cap = _newCap;
    }

    function setMinter(address _account, bool _isMinter) external onlyOwner {
        require(_account != address(0), "zero");
        minter[_account] = _isMinter;
        emit MinterUpdate(_account, _isMinter);
    }

    /* ========== VIEW FUNCTIONS ========== */

    function totalBurned() external view returns (uint256) {
        return _totalBurned;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function mint(address _recipient, uint256 _amount) external onlyMinter returns (bool) {
        uint256 balanceBefore = balanceOf(_recipient);
        _mint(_recipient, _amount);
        return balanceOf(_recipient) > balanceBefore;
    }

    function burn(uint256 _amount) external {
        _burn(msg.sender, _amount);
    }

    function burnFrom(address _account, uint256 _amount) external {
        _approve(_account, _msgSender(), allowance(_account, _msgSender()).sub(_amount, "ERC20: burn amount exceeds allowance"));
        _burn(_account, _amount);
    }

    /* ========== OVERRIDE STANDARD FUNCTIONS ========== */

    /**
     * @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 override {
        super._burn(_account, _amount);
        _totalBurned = _totalBurned.add(_amount);
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _amount
    ) internal override {
        super._beforeTokenTransfer(_from, _to, _amount);
        if (_from == address(0)) {
            // When minting tokens
            require(totalSupply().add(_amount) <= cap, "cap exceeded");
        }
        if (_to == address(0)) {
            // When burning tokens
            cap = cap.sub(_amount, "burn amount exceeds cap");
        }
    }

    /* ========== EMERGENCY ========== */

    function rescueStuckErc20(address _token) external onlyOwner {
        IERC20(_token).transfer(owner(), IERC20(_token).balanceOf(address(this)));
    }
}

Contract Security Audit

Contract ABI

[{"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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isMinter","type":"bool"}],"name":"MinterUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"rescueStuckErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isMinter","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061229c806100206000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a457c2d71161008c578063d89135cd11610066578063d89135cd14610361578063dd62ed3e14610369578063f2fde38b146103af57600080fd5b8063a457c2d714610328578063a9059cbb1461033b578063cf456ae71461034e57600080fd5b806381ca7eba116100bd57806381ca7eba146102e55780638da5cb5b146102f857806395d89b411461032057600080fd5b8063715018a6146102c257806379cc6790146102ca5780638129fc1c146102dd57600080fd5b8063395093511161014557806342966c681161011f57806342966c681461026457806347786d371461027957806370a082311461028c57600080fd5b8063395093511461021b5780633dd08c381461022e57806340c10f191461025157600080fd5b806323b872dd1161017657806323b872dd146101f0578063313ce56714610203578063355274ea1461021257600080fd5b806306fdde031461019d578063095ea7b3146101bb57806318160ddd146101de575b600080fd5b6101a56103c2565b6040516101b29190612097565b60405180910390f35b6101ce6101c936600461201e565b610454565b60405190151581526020016101b2565b6035545b6040519081526020016101b2565b6101ce6101fe366004611fab565b61046a565b604051601281526020016101b2565b6101e260975481565b6101ce61022936600461201e565b610555565b6101ce61023c366004611f5d565b60986020526000908152604090205460ff1681565b6101ce61025f36600461201e565b61059e565b610277610272366004612065565b61067d565b005b610277610287366004612065565b61068a565b6101e261029a366004611f5d565b73ffffffffffffffffffffffffffffffffffffffff1660009081526033602052604090205490565b610277610782565b6102776102d836600461201e565b61080f565b610277610850565b6102776102f3366004611f5d565b610a13565b60655460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b6101a5610c0f565b6101ce61033636600461201e565b610c1e565b6101ce61034936600461201e565b610cf6565b61027761035c366004611fe7565b610d03565b6099546101e2565b6101e2610377366004611f78565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260346020908152604080832093909416825291909152205490565b6102776103bd366004611f5d565b610e8d565b6060603680546103d1906121b1565b80601f01602080910402602001604051908101604052809291908181526020018280546103fd906121b1565b801561044a5780601f1061041f5761010080835404028352916020019161044a565b820191906000526020600020905b81548152906001019060200180831161042d57829003601f168201915b5050505050905090565b6000610461338484610fba565b50600192915050565b600061047784848461116d565b73ffffffffffffffffffffffffffffffffffffffff841660009081526034602090815260408083203384529091529020548281101561053d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61054a8533858403610fba565b506001949350505050565b33600081815260346020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161046191859061059990869061210a565b610fba565b3360009081526098602052604081205460ff16610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f216d696e746572000000000000000000000000000000000000000000000000006044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260336020526040902054610647848461142c565b806106748573ffffffffffffffffffffffffffffffffffffffff1660009081526033602052604090205490565b11949350505050565b6106873382611558565b50565b60655473ffffffffffffffffffffffffffffffffffffffff16331461070b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b8061071560355490565b111561077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f657863656564732063757272656e7420737570706c79000000000000000000006044820152606401610534565b609755565b60655473ffffffffffffffffffffffffffffffffffffffff163314610803576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b61080d6000611576565b565b6108428233610599846040518060600160405280602481526020016122436024913961083b8833610377565b91906115ed565b61084c8282611558565b5050565b600054610100900460ff1680610869575060005460ff16155b6108f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561093457600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6109a86040518060400160405280600d81526020017f506f6c795661756c74732e6669000000000000000000000000000000000000008152506040518060400160405280600381526020017f5056490000000000000000000000000000000000000000000000000000000000815250611633565b6109b061175d565b69d3c21bcecceda10000006097556109e233606460975460146109d3919061215d565b6109dd9190612122565b61142c565b801561068757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b60655473ffffffffffffffffffffffffffffffffffffffff163314610a94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610acf60655473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015610b3457600080fd5b505afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c919061207e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b158015610bd757600080fd5b505af1158015610beb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084c9190612048565b6060603780546103d1906121b1565b33600090815260346020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610cdf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610534565b610cec3385858403610fba565b5060019392505050565b600061046133848461116d565b60655473ffffffffffffffffffffffffffffffffffffffff163314610d84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8216610e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105349060208082526004908201527f7a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff821660008181526098602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f279360e293bcf8120adefa5fb6f669c774022ed25c09e099edd1818d155c57b6910160405180910390a25050565b60655473ffffffffffffffffffffffffffffffffffffffff163314610f0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8116610fb1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610534565b61068781611576565b73ffffffffffffffffffffffffffffffffffffffff831661105c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff82166110ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316611210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff82166112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610534565b6112be838383611851565b73ffffffffffffffffffffffffffffffffffffffff831660009081526033602052604090205481811015611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152603360205260408082208585039055918516815290812080548492906113b890849061210a565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161141e91815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff82166114a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610534565b6114b560008383611851565b80603560008282546114c7919061210a565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152603360205260408120805483929061150190849061210a565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b611562828261194f565b60995461156f9082611b48565b6099555050565b6065805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000818484111561162b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105349190612097565b505050900390565b600054610100900460ff168061164c575060005460ff16155b6116d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561171757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b61171f611b5b565b6117298383611c6f565b801561175857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b505050565b600054610100900460ff1680611776575060005460ff16155b611802576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561184157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b611849611b5b565b6109e2611dae565b73ffffffffffffffffffffffffffffffffffffffff83166118ea576097546118828261187c60355490565b90611b48565b11156118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f63617020657863656564656400000000000000000000000000000000000000006044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff82166117585760408051808201909152601781527f6275726e20616d6f756e7420657863656564732063617000000000000000000060208201526097546119479183906115ed565b609755505050565b73ffffffffffffffffffffffffffffffffffffffff82166119f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610534565b6119fe82600083611851565b73ffffffffffffffffffffffffffffffffffffffff821660009081526033602052604090205481811015611ab4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff83166000908152603360205260408120838303905560358054849290611af090849061219a565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611b54828461210a565b9392505050565b600054610100900460ff1680611b74575060005460ff16155b611c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff161580156109e257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000016610101179055801561068757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b600054610100900460ff1680611c88575060005460ff16155b611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff16158015611d5357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b8251611d66906036906020860190611e9b565b508151611d7a906037906020850190611e9b565b50801561175857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055505050565b600054610100900460ff1680611dc7575060005460ff16155b611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff16158015611e9257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6109e233611576565b828054611ea7906121b1565b90600052602060002090601f016020900481019282611ec95760008555611f0f565b82601f10611ee257805160ff1916838001178555611f0f565b82800160010185558215611f0f579182015b82811115611f0f578251825591602001919060010190611ef4565b50611f1b929150611f1f565b5090565b5b80821115611f1b5760008155600101611f20565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f5857600080fd5b919050565b600060208284031215611f6f57600080fd5b611b5482611f34565b60008060408385031215611f8b57600080fd5b611f9483611f34565b9150611fa260208401611f34565b90509250929050565b600080600060608486031215611fc057600080fd5b611fc984611f34565b9250611fd760208501611f34565b9150604084013590509250925092565b60008060408385031215611ffa57600080fd5b61200383611f34565b9150602083013561201381612234565b809150509250929050565b6000806040838503121561203157600080fd5b61203a83611f34565b946020939093013593505050565b60006020828403121561205a57600080fd5b8151611b5481612234565b60006020828403121561207757600080fd5b5035919050565b60006020828403121561209057600080fd5b5051919050565b600060208083528351808285015260005b818110156120c4578581018301518582016040015282016120a8565b818111156120d6576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6000821982111561211d5761211d612205565b500190565b600082612158577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561219557612195612205565b500290565b6000828210156121ac576121ac612205565b500390565b600181811c908216806121c557607f821691505b602082108114156121ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b801515811461068757600080fdfe45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212205f30bf2bc3aac575a2b68c78d3fb7a7fb0d40999adc27aec8887778a66fa938964736f6c63430008060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a457c2d71161008c578063d89135cd11610066578063d89135cd14610361578063dd62ed3e14610369578063f2fde38b146103af57600080fd5b8063a457c2d714610328578063a9059cbb1461033b578063cf456ae71461034e57600080fd5b806381ca7eba116100bd57806381ca7eba146102e55780638da5cb5b146102f857806395d89b411461032057600080fd5b8063715018a6146102c257806379cc6790146102ca5780638129fc1c146102dd57600080fd5b8063395093511161014557806342966c681161011f57806342966c681461026457806347786d371461027957806370a082311461028c57600080fd5b8063395093511461021b5780633dd08c381461022e57806340c10f191461025157600080fd5b806323b872dd1161017657806323b872dd146101f0578063313ce56714610203578063355274ea1461021257600080fd5b806306fdde031461019d578063095ea7b3146101bb57806318160ddd146101de575b600080fd5b6101a56103c2565b6040516101b29190612097565b60405180910390f35b6101ce6101c936600461201e565b610454565b60405190151581526020016101b2565b6035545b6040519081526020016101b2565b6101ce6101fe366004611fab565b61046a565b604051601281526020016101b2565b6101e260975481565b6101ce61022936600461201e565b610555565b6101ce61023c366004611f5d565b60986020526000908152604090205460ff1681565b6101ce61025f36600461201e565b61059e565b610277610272366004612065565b61067d565b005b610277610287366004612065565b61068a565b6101e261029a366004611f5d565b73ffffffffffffffffffffffffffffffffffffffff1660009081526033602052604090205490565b610277610782565b6102776102d836600461201e565b61080f565b610277610850565b6102776102f3366004611f5d565b610a13565b60655460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b6101a5610c0f565b6101ce61033636600461201e565b610c1e565b6101ce61034936600461201e565b610cf6565b61027761035c366004611fe7565b610d03565b6099546101e2565b6101e2610377366004611f78565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260346020908152604080832093909416825291909152205490565b6102776103bd366004611f5d565b610e8d565b6060603680546103d1906121b1565b80601f01602080910402602001604051908101604052809291908181526020018280546103fd906121b1565b801561044a5780601f1061041f5761010080835404028352916020019161044a565b820191906000526020600020905b81548152906001019060200180831161042d57829003601f168201915b5050505050905090565b6000610461338484610fba565b50600192915050565b600061047784848461116d565b73ffffffffffffffffffffffffffffffffffffffff841660009081526034602090815260408083203384529091529020548281101561053d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61054a8533858403610fba565b506001949350505050565b33600081815260346020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161046191859061059990869061210a565b610fba565b3360009081526098602052604081205460ff16610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f216d696e746572000000000000000000000000000000000000000000000000006044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260336020526040902054610647848461142c565b806106748573ffffffffffffffffffffffffffffffffffffffff1660009081526033602052604090205490565b11949350505050565b6106873382611558565b50565b60655473ffffffffffffffffffffffffffffffffffffffff16331461070b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b8061071560355490565b111561077d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f657863656564732063757272656e7420737570706c79000000000000000000006044820152606401610534565b609755565b60655473ffffffffffffffffffffffffffffffffffffffff163314610803576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b61080d6000611576565b565b6108428233610599846040518060600160405280602481526020016122436024913961083b8833610377565b91906115ed565b61084c8282611558565b5050565b600054610100900460ff1680610869575060005460ff16155b6108f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561093457600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6109a86040518060400160405280600d81526020017f506f6c795661756c74732e6669000000000000000000000000000000000000008152506040518060400160405280600381526020017f5056490000000000000000000000000000000000000000000000000000000000815250611633565b6109b061175d565b69d3c21bcecceda10000006097556109e233606460975460146109d3919061215d565b6109dd9190612122565b61142c565b801561068757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b60655473ffffffffffffffffffffffffffffffffffffffff163314610a94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610acf60655473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015610b3457600080fd5b505afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c919061207e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b158015610bd757600080fd5b505af1158015610beb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084c9190612048565b6060603780546103d1906121b1565b33600090815260346020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015610cdf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610534565b610cec3385858403610fba565b5060019392505050565b600061046133848461116d565b60655473ffffffffffffffffffffffffffffffffffffffff163314610d84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8216610e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105349060208082526004908201527f7a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff821660008181526098602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f279360e293bcf8120adefa5fb6f669c774022ed25c09e099edd1818d155c57b6910160405180910390a25050565b60655473ffffffffffffffffffffffffffffffffffffffff163314610f0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff8116610fb1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610534565b61068781611576565b73ffffffffffffffffffffffffffffffffffffffff831661105c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff82166110ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316611210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff82166112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610534565b6112be838383611851565b73ffffffffffffffffffffffffffffffffffffffff831660009081526033602052604090205481811015611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152603360205260408082208585039055918516815290812080548492906113b890849061210a565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161141e91815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff82166114a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610534565b6114b560008383611851565b80603560008282546114c7919061210a565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152603360205260408120805483929061150190849061210a565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b611562828261194f565b60995461156f9082611b48565b6099555050565b6065805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000818484111561162b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105349190612097565b505050900390565b600054610100900460ff168061164c575060005460ff16155b6116d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561171757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b61171f611b5b565b6117298383611c6f565b801561175857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b505050565b600054610100900460ff1680611776575060005460ff16155b611802576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff1615801561184157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b611849611b5b565b6109e2611dae565b73ffffffffffffffffffffffffffffffffffffffff83166118ea576097546118828261187c60355490565b90611b48565b11156118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f63617020657863656564656400000000000000000000000000000000000000006044820152606401610534565b73ffffffffffffffffffffffffffffffffffffffff82166117585760408051808201909152601781527f6275726e20616d6f756e7420657863656564732063617000000000000000000060208201526097546119479183906115ed565b609755505050565b73ffffffffffffffffffffffffffffffffffffffff82166119f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610534565b6119fe82600083611851565b73ffffffffffffffffffffffffffffffffffffffff821660009081526033602052604090205481811015611ab4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610534565b73ffffffffffffffffffffffffffffffffffffffff83166000908152603360205260408120838303905560358054849290611af090849061219a565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611b54828461210a565b9392505050565b600054610100900460ff1680611b74575060005460ff16155b611c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff161580156109e257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000016610101179055801561068757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16905550565b600054610100900460ff1680611c88575060005460ff16155b611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff16158015611d5357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b8251611d66906036906020860190611e9b565b508151611d7a906037906020850190611e9b565b50801561175857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055505050565b600054610100900460ff1680611dc7575060005460ff16155b611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610534565b600054610100900460ff16158015611e9257600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b6109e233611576565b828054611ea7906121b1565b90600052602060002090601f016020900481019282611ec95760008555611f0f565b82601f10611ee257805160ff1916838001178555611f0f565b82800160010185558215611f0f579182015b82811115611f0f578251825591602001919060010190611ef4565b50611f1b929150611f1f565b5090565b5b80821115611f1b5760008155600101611f20565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f5857600080fd5b919050565b600060208284031215611f6f57600080fd5b611b5482611f34565b60008060408385031215611f8b57600080fd5b611f9483611f34565b9150611fa260208401611f34565b90509250929050565b600080600060608486031215611fc057600080fd5b611fc984611f34565b9250611fd760208501611f34565b9150604084013590509250925092565b60008060408385031215611ffa57600080fd5b61200383611f34565b9150602083013561201381612234565b809150509250929050565b6000806040838503121561203157600080fd5b61203a83611f34565b946020939093013593505050565b60006020828403121561205a57600080fd5b8151611b5481612234565b60006020828403121561207757600080fd5b5035919050565b60006020828403121561209057600080fd5b5051919050565b600060208083528351808285015260005b818110156120c4578581018301518582016040015282016120a8565b818111156120d6576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6000821982111561211d5761211d612205565b500190565b600082612158577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561219557612195612205565b500290565b6000828210156121ac576121ac612205565b500390565b600181811c908216806121c557607f821691505b602082108114156121ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b801515811461068757600080fdfe45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212205f30bf2bc3aac575a2b68c78d3fb7a7fb0d40999adc27aec8887778a66fa938964736f6c63430008060033

Deployed Bytecode Sourcemap

30400:3471:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17964:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20131:169;;;;;;:::i;:::-;;:::i;:::-;;;2905:14:1;;2898:22;2880:41;;2868:2;2853:18;20131:169:0;2835:92:1;19084:108:0;19172:12;;19084:108;;;10286:25:1;;;10274:2;10259:18;19084:108:0;10241:76:1;20782:492:0;;;;;;:::i;:::-;;:::i;18926:93::-;;;19009:2;10464:36:1;;10452:2;10437:18;18926:93:0;10419:87:1;30507:18:0;;;;;;21683:215;;;;;;:::i;:::-;;:::i;30532:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;31836:242;;;;;;:::i;:::-;;:::i;32086:85::-;;;;;;:::i;:::-;;:::i;:::-;;31243:154;;;;;;:::i;:::-;;:::i;19255:127::-;;;;;;:::i;:::-;19356:18;;19329:7;19356:18;;;:9;:18;;;;;;;19255:127;29737:94;;;:::i;32179:236::-;;;;;;:::i;:::-;;:::i;30920:315::-;;;:::i;33715:153::-;;;;;;:::i;:::-;;:::i;29086:87::-;29159:6;;29086:87;;29159:6;;;;2353:74:1;;2341:2;2326:18;29086:87:0;2308:125:1;18183:104:0;;;:::i;22401:413::-;;;;;;:::i;:::-;;:::i;19595:175::-;;;;;;:::i;:::-;;:::i;31405:218::-;;;;;;:::i;:::-;;:::i;31681:93::-;31754:12;;31681:93;;19833:151;;;;;;:::i;:::-;19949:18;;;;19922:7;19949:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;19833:151;29986:192;;;;;;:::i;:::-;;:::i;17964:100::-;18018:13;18051:5;18044:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17964:100;:::o;20131:169::-;20214:4;20231:39;15540:10;20254:7;20263:6;20231:8;:39::i;:::-;-1:-1:-1;20288:4:0;20131:169;;;;:::o;20782:492::-;20922:4;20939:36;20949:6;20957:9;20968:6;20939:9;:36::i;:::-;21015:19;;;20988:24;21015:19;;;:11;:19;;;;;;;;15540:10;21015:33;;;;;;;;21067:26;;;;21059:79;;;;;;;7593:2:1;21059:79:0;;;7575:21:1;7632:2;7612:18;;;7605:30;7671:34;7651:18;;;7644:62;7742:10;7722:18;;;7715:38;7770:19;;21059:79:0;;;;;;;;;21174:57;21183:6;15540:10;21224:6;21205:16;:25;21174:8;:57::i;:::-;-1:-1:-1;21262:4:0;;20782:492;-1:-1:-1;;;;20782:492:0:o;21683:215::-;15540:10;21771:4;21820:25;;;:11;:25;;;;;;;;;:34;;;;;;;;;;21771:4;;21788:80;;21811:7;;21820:47;;21857:10;;21820:47;:::i;:::-;21788:8;:80::i;31836:242::-;30823:10;31916:4;30816:18;;;:6;:18;;;;;;;;30808:38;;;;;;;3795:2:1;30808:38:0;;;3777:21:1;3834:1;3814:18;;;3807:29;3872:9;3852:18;;;3845:37;3899:18;;30808:38:0;3767:156:1;30808:38:0;19356:18;;;31933:21:::1;19356:18:::0;;;:9;:18;;;;;;31989:26:::1;19356:18:::0;32007:7;31989:5:::1;:26::i;:::-;32057:13;32033:21;32043:10;19356:18:::0;;19329:7;19356:18;;;:9;:18;;;;;;;19255:127;32033:21:::1;:37;::::0;31836:242;-1:-1:-1;;;;31836:242:0:o;32086:85::-;32137:26;32143:10;32155:7;32137:5;:26::i;:::-;32086:85;:::o;31243:154::-;29159:6;;29306:23;29159:6;15540:10;29306:23;29298:68;;;;;;;8002:2:1;29298:68:0;;;7984:21:1;;;8021:18;;;8014:30;8080:34;8060:18;;;8053:62;8132:18;;29298:68:0;7974:182:1;29298:68:0;31331:7:::1;31314:13;19172:12:::0;;;19084:108;31314:13:::1;:24;;31306:59;;;::::0;::::1;::::0;;6827:2:1;31306:59:0::1;::::0;::::1;6809:21:1::0;6866:2;6846:18;;;6839:30;6905:24;6885:18;;;6878:52;6947:18;;31306:59:0::1;6799:172:1::0;31306:59:0::1;31376:3;:13:::0;31243:154::o;29737:94::-;29159:6;;29306:23;29159:6;15540:10;29306:23;29298:68;;;;;;;8002:2:1;29298:68:0;;;7984:21:1;;;8021:18;;;8014:30;8080:34;8060:18;;;8053:62;8132:18;;29298:68:0;7974:182:1;29298:68:0;29802:21:::1;29820:1;29802:9;:21::i;:::-;29737:94::o:0;32179:236::-;32252:120;32261:8;15540:10;32285:86;32323:7;32285:86;;;;;;;;;;;;;;;;;:33;32295:8;15540:10;19833:151;:::i;32285:33::-;:37;:86;:37;:86::i;32252:120::-;32383:24;32389:8;32399:7;32383:5;:24::i;:::-;32179:236;;:::o;30920:315::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14517:101;30972:53:::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;::::0;:29:::1;:53::i;:::-;31036:35;:33;:35::i;:::-;31088:13;31082:3;:19:::0;31141:37:::1;15540:10:::0;31174:3:::1;31162;;31168:2;31162:8;;;;:::i;:::-;31161:16;;;;:::i;:::-;31141:5;:37::i;:::-;14648:14:::0;14644:68;;;14695:5;14679:21;;;;;;14357:362;30920:315::o;33715:153::-;29159:6;;29306:23;29159:6;15540:10;29306:23;29298:68;;;;;;;8002:2:1;29298:68:0;;;7984:21:1;;;8021:18;;;8014:30;8080:34;8060:18;;;8053:62;8132:18;;29298:68:0;7974:182:1;29298:68:0;33794:6:::1;33787:23;;;33811:7;29159:6:::0;;;;;29086:87;33811:7:::1;33820:39;::::0;;;;33853:4:::1;33820:39;::::0;::::1;2353:74:1::0;33820:24:0::1;::::0;::::1;::::0;::::1;::::0;2326:18:1;;33820:39:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33787:73;::::0;;::::1;::::0;;;;;;2642:42:1;2630:55;;;33787:73:0::1;::::0;::::1;2612:74:1::0;2702:18;;;2695:34;2585:18;;33787:73:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;18183:104::-:0;18239:13;18272:7;18265:14;;;;;:::i;22401:413::-;15540:10;22494:4;22538:25;;;:11;:25;;;;;;;;;:34;;;;;;;;;;22591:35;;;;22583:85;;;;;;;9576:2:1;22583:85:0;;;9558:21:1;9615:2;9595:18;;;9588:30;9654:34;9634:18;;;9627:62;9725:7;9705:18;;;9698:35;9750:19;;22583:85:0;9548:227:1;22583:85:0;22704:67;15540:10;22727:7;22755:15;22736:16;:34;22704:8;:67::i;:::-;-1:-1:-1;22802:4:0;;22401:413;-1:-1:-1;;;22401:413:0:o;19595:175::-;19681:4;19698:42;15540:10;19722:9;19733:6;19698:9;:42::i;31405:218::-;29159:6;;29306:23;29159:6;15540:10;29306:23;29298:68;;;;;;;8002:2:1;29298:68:0;;;7984:21:1;;;8021:18;;;8014:30;8080:34;8060:18;;;8053:62;8132:18;;29298:68:0;7974:182:1;29298:68:0;31496:22:::1;::::0;::::1;31488:39;;;;;;;;;;;5747:2:1::0;5729:21;;;5786:1;5766:18;;;5759:29;5824:6;5819:2;5804:18;;5797:34;5863:2;5848:18;;5719:153;31488:39:0::1;31538:16;::::0;::::1;;::::0;;;:6:::1;:16;::::0;;;;;;;;:28;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;31582:33;;2880:41:1;;;31582:33:0::1;::::0;2853:18:1;31582:33:0::1;;;;;;;31405:218:::0;;:::o;29986:192::-;29159:6;;29306:23;29159:6;15540:10;29306:23;29298:68;;;;;;;8002:2:1;29298:68:0;;;7984:21:1;;;8021:18;;;8014:30;8080:34;8060:18;;;8053:62;8132:18;;29298:68:0;7974:182:1;29298:68:0;30075:22:::1;::::0;::::1;30067:73;;;::::0;::::1;::::0;;4937:2:1;30067:73:0::1;::::0;::::1;4919:21:1::0;4976:2;4956:18;;;4949:30;5015:34;4995:18;;;4988:62;5086:8;5066:18;;;5059:36;5112:19;;30067:73:0::1;4909:228:1::0;30067:73:0::1;30151:19;30161:8;30151:9;:19::i;26085:380::-:0;26221:19;;;26213:68;;;;;;;9171:2:1;26213:68:0;;;9153:21:1;9210:2;9190:18;;;9183:30;9249:34;9229:18;;;9222:62;9320:6;9300:18;;;9293:34;9344:19;;26213:68:0;9143:226:1;26213:68:0;26300:21;;;26292:68;;;;;;;5344:2:1;26292:68:0;;;5326:21:1;5383:2;5363:18;;;5356:30;5422:34;5402:18;;;5395:62;5493:4;5473:18;;;5466:32;5515:19;;26292:68:0;5316:224:1;26292:68:0;26373:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;26425:32;;10286:25:1;;;26425:32:0;;10259:18:1;26425:32:0;;;;;;;26085:380;;;:::o;23304:733::-;23444:20;;;23436:70;;;;;;;8765:2:1;23436:70:0;;;8747:21:1;8804:2;8784:18;;;8777:30;8843:34;8823:18;;;8816:62;8914:7;8894:18;;;8887:35;8939:19;;23436:70:0;8737:227:1;23436:70:0;23525:23;;;23517:71;;;;;;;4130:2:1;23517:71:0;;;4112:21:1;4169:2;4149:18;;;4142:30;4208:34;4188:18;;;4181:62;4279:5;4259:18;;;4252:33;4302:19;;23517:71:0;4102:225:1;23517:71:0;23601:47;23622:6;23630:9;23641:6;23601:20;:47::i;:::-;23685:17;;;23661:21;23685:17;;;:9;:17;;;;;;23721:23;;;;23713:74;;;;;;;6420:2:1;23713:74:0;;;6402:21:1;6459:2;6439:18;;;6432:30;6498:34;6478:18;;;6471:62;6569:8;6549:18;;;6542:36;6595:19;;23713:74:0;6392:228:1;23713:74:0;23823:17;;;;;;;;:9;:17;;;;;;23843:22;;;23823:42;;23887:20;;;;;;;;:30;;23859:6;;23823:17;23887:30;;23859:6;;23887:30;:::i;:::-;;;;;;;;23952:9;23935:35;;23944:6;23935:35;;;23963:6;23935:35;;;;10286:25:1;;10274:2;10259:18;;10241:76;23935:35:0;;;;;;;;23425:612;23304:733;;;:::o;24324:399::-;24408:21;;;24400:65;;;;;;;9982:2:1;24400:65:0;;;9964:21:1;10021:2;10001:18;;;9994:30;10060:33;10040:18;;;10033:61;10111:18;;24400:65:0;9954:181:1;24400:65:0;24478:49;24507:1;24511:7;24520:6;24478:20;:49::i;:::-;24556:6;24540:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;24573:18:0;;;;;;;:9;:18;;;;;:28;;24595:6;;24573:18;:28;;24595:6;;24573:28;:::i;:::-;;;;-1:-1:-1;;24617:37:0;;10286:25:1;;;24617:37:0;;;;24634:1;;24617:37;;10274:2:1;10259:18;24617:37:0;;;;;;;32179:236;;:::o;32813:168::-;32892:30;32904:8;32914:7;32892:11;:30::i;:::-;32948:12;;:25;;32965:7;32948:16;:25::i;:::-;32933:12;:40;-1:-1:-1;;32813:168:0:o;30186:173::-;30261:6;;;;30278:17;;;;;;;;;;;30311:40;;30261:6;;;30278:17;30261:6;;30311:40;;30242:16;;30311:40;30231:128;30186:173;:::o;7786:240::-;7906:7;7967:12;7959:6;;;;7951:29;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;8002:5:0;;;7786:240::o;17548:181::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14517:101;17646:26:::1;:24;:26::i;:::-;17683:38;17706:5;17713:7;17683:22;:38::i;:::-;14648:14:::0;14644:68;;;14695:5;14679:21;;;;;;14644:68;14357:362;17548:181;;:::o;28769:129::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14517:101;28827:26:::1;:24;:26::i;:::-;28864;:24;:26::i;33168:494::-:0;33368:19;;;33364:146;;33478:3;;33448:26;33466:7;33448:13;19172:12;;;19084:108;33448:13;:17;;:26::i;:::-;:33;;33440:58;;;;;;;6079:2:1;33440:58:0;;;6061:21:1;6118:2;6098:18;;;6091:30;6157:14;6137:18;;;6130:42;6189:18;;33440:58:0;6051:162:1;33440:58:0;33524:17;;;33520:135;;33600:43;;;;;;;;;;;;;;;;;:3;;:43;;33608:7;;33600;:43::i;:::-;33594:3;:49;33168:494;;;:::o;25056:591::-;25140:21;;;25132:67;;;;;;;8363:2:1;25132:67:0;;;8345:21:1;8402:2;8382:18;;;8375:30;8441:34;8421:18;;;8414:62;8512:3;8492:18;;;8485:31;8533:19;;25132:67:0;8335:223:1;25132:67:0;25212:49;25233:7;25250:1;25254:6;25212:20;:49::i;:::-;25299:18;;;25274:22;25299:18;;;:9;:18;;;;;;25336:24;;;;25328:71;;;;;;;4534:2:1;25328:71:0;;;4516:21:1;4573:2;4553:18;;;4546:30;4612:34;4592:18;;;4585:62;4683:4;4663:18;;;4656:32;4705:19;;25328:71:0;4506:224:1;25328:71:0;25435:18;;;;;;;:9;:18;;;;;25456:23;;;25435:44;;25501:12;:22;;25473:6;;25435:18;25501:22;;25473:6;;25501:22;:::i;:::-;;;;-1:-1:-1;;25541:37:0;;10286:25:1;;;25567:1:0;;25541:37;;;;;;10274:2:1;10259:18;25541:37:0;;;;;;;14357:362;17548:181;;:::o;5507:98::-;5565:7;5592:5;5596:1;5592;:5;:::i;:::-;5585:12;5507:98;-1:-1:-1;;;5507:98:0:o;15393:59::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14644:68;;;;14695:5;14679:21;;;;;;14357:362;15393:59::o;17737:157::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14517:101;17845:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;17869:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;;14648:14:::0;14644:68;;;14695:5;14679:21;;;;;;14357:362;17737:157;;:::o;28906:99::-;14376:13;;;;;;;;:30;;-1:-1:-1;14394:12:0;;;;14393:13;14376:30;14368:89;;;;;;;7178:2:1;14368:89:0;;;7160:21:1;7217:2;7197:18;;;7190:30;7256:34;7236:18;;;7229:62;7327:16;7307:18;;;7300:44;7361:19;;14368:89:0;7150:236:1;14368:89:0;14470:19;14493:13;;;;;;14492:14;14517:101;;;;14552:13;:20;;14587:19;;;;;;14517:101;28974:23:::1;15540:10:::0;28974:9:::1;:23::i;-1:-1:-1:-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:196:1;82:20;;142:42;131:54;;121:65;;111:2;;200:1;197;190:12;111:2;63:147;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:2;;;343:1;340;333:12;295:2;366:29;385:9;366:29;:::i;406:260::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:2;;;551:1;548;541:12;503:2;574:29;593:9;574:29;:::i;:::-;564:39;;622:38;656:2;645:9;641:18;622:38;:::i;:::-;612:48;;493:173;;;;;:::o;671:328::-;748:6;756;764;817:2;805:9;796:7;792:23;788:32;785:2;;;833:1;830;823:12;785:2;856:29;875:9;856:29;:::i;:::-;846:39;;904:38;938:2;927:9;923:18;904:38;:::i;:::-;894:48;;989:2;978:9;974:18;961:32;951:42;;775:224;;;;;:::o;1004:315::-;1069:6;1077;1130:2;1118:9;1109:7;1105:23;1101:32;1098:2;;;1146:1;1143;1136:12;1098:2;1169:29;1188:9;1169:29;:::i;:::-;1159:39;;1248:2;1237:9;1233:18;1220:32;1261:28;1283:5;1261:28;:::i;:::-;1308:5;1298:15;;;1088:231;;;;;:::o;1324:254::-;1392:6;1400;1453:2;1441:9;1432:7;1428:23;1424:32;1421:2;;;1469:1;1466;1459:12;1421:2;1492:29;1511:9;1492:29;:::i;:::-;1482:39;1568:2;1553:18;;;;1540:32;;-1:-1:-1;;;1411:167:1:o;1583:245::-;1650:6;1703:2;1691:9;1682:7;1678:23;1674:32;1671:2;;;1719:1;1716;1709:12;1671:2;1751:9;1745:16;1770:28;1792:5;1770:28;:::i;1833:180::-;1892:6;1945:2;1933:9;1924:7;1920:23;1916:32;1913:2;;;1961:1;1958;1951:12;1913:2;-1:-1:-1;1984:23:1;;1903:110;-1:-1:-1;1903:110:1:o;2018:184::-;2088:6;2141:2;2129:9;2120:7;2116:23;2112:32;2109:2;;;2157:1;2154;2147:12;2109:2;-1:-1:-1;2180:16:1;;2099:103;-1:-1:-1;2099:103:1:o;2932:656::-;3044:4;3073:2;3102;3091:9;3084:21;3134:6;3128:13;3177:6;3172:2;3161:9;3157:18;3150:34;3202:1;3212:140;3226:6;3223:1;3220:13;3212:140;;;3321:14;;;3317:23;;3311:30;3287:17;;;3306:2;3283:26;3276:66;3241:10;;3212:140;;;3370:6;3367:1;3364:13;3361:2;;;3440:1;3435:2;3426:6;3415:9;3411:22;3407:31;3400:42;3361:2;-1:-1:-1;3504:2:1;3492:15;3509:66;3488:88;3473:104;;;;3579:2;3469:113;;3053:535;-1:-1:-1;;;3053:535:1:o;10511:128::-;10551:3;10582:1;10578:6;10575:1;10572:13;10569:2;;;10588:18;;:::i;:::-;-1:-1:-1;10624:9:1;;10559:80::o;10644:274::-;10684:1;10710;10700:2;;10745:77;10742:1;10735:88;10846:4;10843:1;10836:15;10874:4;10871:1;10864:15;10700:2;-1:-1:-1;10903:9:1;;10690:228::o;10923:::-;10963:7;11089:1;11021:66;11017:74;11014:1;11011:81;11006:1;10999:9;10992:17;10988:105;10985:2;;;11096:18;;:::i;:::-;-1:-1:-1;11136:9:1;;10975:176::o;11156:125::-;11196:4;11224:1;11221;11218:8;11215:2;;;11229:18;;:::i;:::-;-1:-1:-1;11266:9:1;;11205:76::o;11286:437::-;11365:1;11361:12;;;;11408;;;11429:2;;11483:4;11475:6;11471:17;11461:27;;11429:2;11536;11528:6;11525:14;11505:18;11502:38;11499:2;;;11573:77;11570:1;11563:88;11674:4;11671:1;11664:15;11702:4;11699:1;11692:15;11499:2;;11341:382;;;:::o;11728:184::-;11780:77;11777:1;11770:88;11877:4;11874:1;11867:15;11901:4;11898:1;11891:15;11917:118;12003:5;11996:13;11989:21;11982:5;11979:32;11969:2;;12025:1;12022;12015:12

Swarm Source

ipfs://5f30bf2bc3aac575a2b68c78d3fb7a7fb0d40999adc27aec8887778a66fa9389

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.