MATIC Price: $1.01 (-1.98%)
Gas: 114 GWei
 

Sponsored

Transaction Hash
Method
Block
From
To
Value
Zap Mint178611082021-08-11 8:02:35960 days ago1628668955IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000325661
Zap Mint178610132021-08-11 7:59:21960 days ago1628668761IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000361511.11
Zap Mint175253472021-08-02 6:22:12969 days ago1627885332IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000287941.11
Zap Mint163528212021-07-01 5:07:031001 days ago1625116023IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000540681.8315
Zap Mint163495632021-07-01 3:11:481001 days ago1625109108IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000442811.5
Zap Mint163476522021-07-01 2:05:561001 days ago1625105156IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000278111
Zap Mint163475732021-07-01 2:03:101001 days ago1625104990IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000295211
Zap Mint163474342021-07-01 1:58:241001 days ago1625104704IN
0xC7b1F244...467A7Ed2F
0 MATIC0.00030871.11
Zap Mint163473822021-07-01 1:56:361001 days ago1625104596IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000295211
Zap Mint163318382021-06-30 16:20:471002 days ago1625070047IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000545571.84815
Zap Mint163240812021-06-30 11:26:371002 days ago1625052397IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000295211
Zap Mint162772622021-06-29 6:35:211003 days ago1624948521IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000345241.2321
Zap Mint162428202021-06-28 9:08:551004 days ago1624871335IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000280231
Zap Mint162024062021-06-27 8:51:311005 days ago1624783891IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000324751.09999998
Zap Mint161762452021-06-26 16:35:241005 days ago1624725324IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000516781.96393527
Zap Mint160773612021-06-24 2:11:341008 days ago1624500694IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000278051
Zap Mint160772282021-06-24 2:06:491008 days ago1624500409IN
0xC7b1F244...467A7Ed2F
0 MATIC0.0029516410
Zap Mint160018352021-06-22 3:21:191010 days ago1624332079IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000437681
Zap Mint159991422021-06-22 1:40:131010 days ago1624326013IN
0xC7b1F244...467A7Ed2F
0 MATIC0.0134481630
Zap Mint159773652021-06-21 12:00:531011 days ago1624276853IN
0xC7b1F244...467A7Ed2F
0 MATIC0.00066851.443
Zap Mint159590992021-06-21 0:54:111011 days ago1624236851IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000448241.000001
Zap Mint159582152021-06-21 0:19:351011 days ago1624234775IN
0xC7b1F244...467A7Ed2F
0 MATIC0.00066441.51807041
Zap Mint159575582021-06-20 23:56:571011 days ago1624233417IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000448221
Zap Mint159369092021-06-20 11:25:461012 days ago1624188346IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000497551.11000111
Zap Mint159306362021-06-20 7:42:411012 days ago1624174961IN
0xC7b1F244...467A7Ed2F
0 MATIC0.000552281.2321
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
ZapPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-09
*/

// Sources flattened with hardhat v2.2.1 https://hardhat.org
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^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/token/ERC20/extensions/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @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);
}

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^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 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) {
        return msg.sender;
    }

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

// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^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, IERC20Metadata {
    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 defaut 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.
     */
    constructor(string memory name_, string memory symbol_) {
        _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");
        _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");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

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

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += 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 += amount;
        _balances[account] += 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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= 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 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/utils/[email protected]

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/security/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// File contracts/interfaces/IUniswapV2Router.sol

pragma solidity 0.8.4;

interface IUniswapV2Router {
    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);
}

// File contracts/interfaces/ITreasury.sol

pragma solidity 0.8.4;

interface ITreasury {
    function hasPool(address _address) external view returns (bool);

    function collateralReserve() external view returns (address);

    function globalCollateralBalance() external view returns (uint256);

    function globalCollateralValue() external view returns (uint256);

    function requestTransfer(
        address token,
        address receiver,
        uint256 amount
    ) external;

    function info()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        );
}

// File contracts/interfaces/IOracle.sol

pragma solidity 0.8.4;
pragma experimental ABIEncoderV2;

interface IOracle {
    function consult() external view returns (uint256);
}

// File contracts/interfaces/IShare.sol

pragma solidity 0.8.4;

interface IShare {
    function poolBurnFrom(address _address, uint256 _amount) external;

    function poolMint(address _address, uint256 m_amount) external;
}

// File contracts/interfaces/IDollar.sol

pragma solidity 0.8.4;

interface IDollar {
    function poolBurnFrom(address _address, uint256 _amount) external;

    function poolMint(address _address, uint256 m_amount) external;
}

// File @openzeppelin/contracts/utils/math/[email protected]

pragma solidity ^0.8.0;

// 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. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * 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;
        }
    }
}

// File contracts/ERC20/ERC20Custom.sol

pragma solidity 0.8.4;

// Due to compiling issues, _name, _symbol, and _decimals were removed

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

    mapping(address => uint256) internal _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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.approve(address spender, uint256 amount)
     */
    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 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);
    }

    /**
     * @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 is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal 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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

    /**
     * @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:using-hooks.adoc[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File contracts/ZapPool.sol

pragma solidity 0.8.4;

contract ZapPool is Ownable, ReentrancyGuard, Initializable {
    using SafeERC20 for ERC20;
    using Address for address;

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

    IOracle public oracle;
    IDollar public dollar;
    ERC20 public collateral;
    IShare public share;
    ITreasury public treasury;
    uint256 private missing_decimals;

    IUniswapV2Router public router;
    address[] public router_path;

    // Constants for various precisions
    uint256 private constant PRICE_PRECISION = 1e6;
    uint256 private constant RATIO_PRECISION = 1e6;
    uint256 private constant COLLATERAL_RATIO_MAX = 1e6;
    uint256 private constant SLIPPAGE_MAX = 100000; // 10%
    uint256 private constant LIMIT_SWAP_TIME = 10 minutes;
    uint256 public slippage = 50000;
    // AccessControl state variables
    bool public mint_paused = false;

    modifier notContract() {
        require(!msg.sender.isContract(), "Allow non-contract only");
        _;
    }

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

    function initialize(
        ITreasury _treasury,
        IDollar _dollar,
        IShare _share,
        ERC20 _collateral,
        IOracle _oracleCollateral
    ) external initializer onlyOwner {
        treasury = _treasury;
        dollar = _dollar;
        share = _share;
        collateral = _collateral;
        oracle = _oracleCollateral;
        missing_decimals = 18 - _collateral.decimals();
    }

    /* ========== PUBLIC FUNCTIONS ========== */

    function collateralReserve() public view returns (address) {
        return treasury.collateralReserve();
    }

    function getCollateralPrice() public view returns (uint256) {
        return oracle.consult();
    }

    function unclaimed_pool_collateral() public pure returns (uint256) {
        return 0; // to avoid treasury call exception
    }

    function zapMint(uint256 _collateral_amount, uint256 _dollar_out_min) external notContract nonReentrant {
        require(mint_paused == false, "Minting is paused");
        (, uint256 _share_price, , uint256 _tcr, , , uint256 _minting_fee, ) = ITreasury(treasury).info();
        require(_share_price > 0, "Invalid share price");
        uint256 _price_collateral = getCollateralPrice();

        uint256 _collateral_value = (_collateral_amount * (10**missing_decimals) * _price_collateral) / PRICE_PRECISION;
        uint256 _actual_dollar_amount = _collateral_value - ((_collateral_value * _minting_fee) / PRICE_PRECISION);
        require(_actual_dollar_amount >= _dollar_out_min, "slippage");

        collateral.safeTransferFrom(msg.sender, address(this), _collateral_amount);
        if (_tcr < COLLATERAL_RATIO_MAX) {
            uint256 _share_value = (_collateral_value * (RATIO_PRECISION - _tcr)) / RATIO_PRECISION;
            uint256 _min_share_amount = (_share_value * PRICE_PRECISION * (RATIO_PRECISION - slippage)) / _share_price / RATIO_PRECISION;
            uint256 _swap_collateral_amount = (_collateral_amount * (RATIO_PRECISION - _tcr)) / RATIO_PRECISION;
            collateral.safeApprove(address(router), 0);
            collateral.safeApprove(address(router), _swap_collateral_amount);
            uint256[] memory _received_amounts = router.swapExactTokensForTokens(_swap_collateral_amount, _min_share_amount, router_path, address(this), block.timestamp + LIMIT_SWAP_TIME);
            emit ZapSwapped(_swap_collateral_amount, _received_amounts[_received_amounts.length - 1]);
        }

        uint256 _balanceShare = ERC20(address(share)).balanceOf(address(this));
        uint256 _balanceCollateral = collateral.balanceOf(address(this));
        if (_balanceShare > 0) {
            ERC20Custom(address(share)).burn(_balanceShare);
        }
        if (_balanceCollateral > 0) {
            _transferCollateralToReserve(_balanceCollateral); // transfer all collateral to reserve no matter what;
        }
        dollar.poolMint(msg.sender, _actual_dollar_amount);
    }

    function _transferCollateralToReserve(uint256 _amount) internal {
        address _reserve = collateralReserve();
        require(_reserve != address(0), "Invalid reserve address");
        collateral.safeTransfer(_reserve, _amount);
        emit TransferedCollateral(_amount);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function toggleMinting() external onlyOwner {
        mint_paused = !mint_paused;
    }

    function setSlippage(uint256 _slippage) external onlyOwner {
        require(_slippage <= SLIPPAGE_MAX, "SLIPPAGE TOO HIGH");
        slippage = _slippage;
    }

    function setTreasury(ITreasury _treasury) external onlyOwner {
        require(address(_treasury) != address(0), "Invalid address");
        treasury = _treasury;
    }

    function setOracle(IOracle _oracle) external onlyOwner {
        require(address(_oracle) != address(0), "Invalid address");
        oracle = _oracle;
    }

    function setRouter(address _router, address[] calldata _path) external onlyOwner {
        require(_router != address(0), "Invalid router");
        router = IUniswapV2Router(_router);
        router_path = _path;
    }

    event TransferedCollateral(uint256 indexed collateralAmount);
    event ZapSwapped(uint256 indexed collateralAmount, uint256 indexed shareAmount);
}

Contract Security Audit

Contract ABI

[{"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":"uint256","name":"collateralAmount","type":"uint256"}],"name":"TransferedCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"shareAmount","type":"uint256"}],"name":"ZapSwapped","type":"event"},{"inputs":[],"name":"collateral","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateralReserve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dollar","outputs":[{"internalType":"contract IDollar","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollateralPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"},{"internalType":"contract IDollar","name":"_dollar","type":"address"},{"internalType":"contract IShare","name":"_share","type":"address"},{"internalType":"contract ERC20","name":"_collateral","type":"address"},{"internalType":"contract IOracle","name":"_oracleCollateral","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"router_path","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IOracle","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"share","outputs":[{"internalType":"contract IShare","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ITreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimed_pool_collateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collateral_amount","type":"uint256"},{"internalType":"uint256","name":"_dollar_out_min","type":"uint256"}],"name":"zapMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261c350600a55600b805460ff1916905534801561002057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055611b2d806100756000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063a8d5fd65116100b8578063f0f442601161007c578063f0f4426014610287578063f0fa55a91461029a578063f2fde38b146102ad578063f7683bbc146102c0578063f887ea40146102c8578063ff626c5f146102db57600080fd5b8063a8d5fd651461021e578063b15582fc14610231578063c7d2722814610244578063d43eb1f614610261578063d8dfeb451461027457600080fd5b806369871a4b1161010a57806369871a4b146101be578063715018a6146101d15780637adbf973146101d95780637d55094d146101ec5780637dc0d1d0146101f45780638da5cb5b1461020d57600080fd5b80631459457a146101475780633e032a3b1461015c578063465b0c411461017857806351adeb571461019857806361d027b3146101ab575b600080fd5b61015a6101553660046116d4565b6102e2565b005b610165600a5481565b6040519081526020015b60405180910390f35b6101806104ad565b6040516001600160a01b03909116815260200161016f565b600354610180906001600160a01b031681565b600654610180906001600160a01b031681565b6101806101cc366004611744565b61052f565b61015a610559565b61015a6101e7366004611539565b6105cd565b61015a610669565b600254610180906201000090046001600160a01b031681565b6000546001600160a01b0316610180565b600554610180906001600160a01b031681565b61015a61023f366004611774565b6106a7565b600b546102519060ff1681565b604051901515815260200161016f565b61015a61026f366004611571565b610cf1565b600454610180906001600160a01b031681565b61015a610295366004611539565b610d8f565b61015a6102a8366004611744565b610e23565b61015a6102bb366004611539565b610e99565b610165610f83565b600854610180906001600160a01b031681565b6000610165565b600254610100900460ff16806102fb575060025460ff16155b6103635760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600254610100900460ff16158015610385576002805461ffff19166101011790555b6000546001600160a01b031633146103af5760405162461bcd60e51b815260040161035a90611861565b600680546001600160a01b038089166001600160a01b03199283161790925560038054888416908316179055600580548784169083161790556004805486841692168217815560028054938616620100000262010000600160b01b0319909416939093179092556040805163313ce56760e01b81529051919263313ce567928282019260209290829003018186803b15801561044a57600080fd5b505afa15801561045e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048291906117f1565b61048d906012611a64565b60ff1660075580156104a5576002805461ff00191690555b505050505050565b6006546040805163465b0c4160e01b815290516000926001600160a01b03169163465b0c41916004808301926020929190829003018186803b1580156104f257600080fd5b505afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190611555565b905090565b6009818154811061053f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146105835760405162461bcd60e51b815260040161035a90611861565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146105f75760405162461bcd60e51b815260040161035a90611861565b6001600160a01b03811661063f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161035a565b600280546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b031633146106935760405162461bcd60e51b815260040161035a90611861565b600b805460ff19811660ff90911615179055565b333b156106f65760405162461bcd60e51b815260206004820152601760248201527f416c6c6f77206e6f6e2d636f6e7472616374206f6e6c79000000000000000000604482015260640161035a565b600260015414156107495760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155600b5460ff16156107955760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604482015260640161035a565b6000806000600660009054906101000a90046001600160a01b03166001600160a01b031663370158ea6040518163ffffffff1660e01b81526004016101006040518083038186803b1580156107e957600080fd5b505afa1580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108219190611795565b5096505050945050935050600083116108725760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420736861726520707269636560681b604482015260640161035a565b600061087c610f83565b90506000620f424082600754600a6108949190611984565b61089e908a611a2e565b6108a89190611a2e565b6108b29190611921565b90506000620f42406108c48584611a2e565b6108ce9190611921565b6108d89083611a4d565b9050868110156109155760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b604482015260640161035a565b60045461092d906001600160a01b031633308b611009565b620f4240851015610b09576000620f42406109488782611a4d565b6109529085611a2e565b61095c9190611921565b90506000620f424088600a54620f42406109769190611a4d565b610983620f424086611a2e565b61098d9190611a2e565b6109979190611921565b6109a19190611921565b90506000620f42406109b38982611a4d565b6109bd908d611a2e565b6109c79190611921565b6008546004549192506109e8916001600160a01b0390811691166000611074565b600854600454610a05916001600160a01b03918216911683611074565b6008546000906001600160a01b03166338ed17398385600930610a2a61025842611909565b6040518663ffffffff1660e01b8152600401610a4a959493929190611896565b600060405180830381600087803b158015610a6457600080fd5b505af1158015610a78573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610aa091908101906115f4565b90508060018251610ab19190611a4d565b81518110610acf57634e487b7160e01b600052603260045260246000fd5b6020026020010151827f9a7cc9b6c1f51a777fb37d6c91eb790726cd40df4ab357f471bed3927b63652b60405160405180910390a3505050505b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610b4d57600080fd5b505afa158015610b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b85919061175c565b600480546040516370a0823160e01b815230928101929092529192506000916001600160a01b0316906370a082319060240160206040518083038186803b158015610bcf57600080fd5b505afa158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c07919061175c565b90508115610c6e57600554604051630852cd8d60e31b8152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b505050505b8015610c7d57610c7d8161119d565b6003546040516306203eab60e11b8152336004820152602481018590526001600160a01b0390911690630c407d5690604401600060405180830381600087803b158015610cc957600080fd5b505af1158015610cdd573d6000803e3d6000fd5b505060018055505050505050505050505050565b6000546001600160a01b03163314610d1b5760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038316610d625760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b604482015260640161035a565b600880546001600160a01b0319166001600160a01b038516179055610d89600983836114c1565b50505050565b6000546001600160a01b03163314610db95760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038116610e015760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161035a565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e4d5760405162461bcd60e51b815260040161035a90611861565b620186a0811115610e945760405162461bcd60e51b81526020600482015260116024820152700a69892a0a0828e8a40a89e9e4090928e9607b1b604482015260640161035a565b600a55565b6000546001600160a01b03163314610ec35760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038116610f285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600060028054906101000a90046001600160a01b03166001600160a01b0316637eeda7036040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd157600080fd5b505afa158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a919061175c565b6040516001600160a01b0380851660248301528316604482015260648101829052610d899085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611245565b8015806110fd5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156110c357600080fd5b505afa1580156110d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fb919061175c565b155b6111685760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161035a565b6040516001600160a01b03831660248201526044810182905261119890849063095ea7b360e01b9060640161103d565b505050565b60006111a76104ad565b90506001600160a01b0381166111ff5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420726573657276652061646472657373000000000000000000604482015260640161035a565b600454611216906001600160a01b03168284611317565b60405182907f2bf577f6535de30cf4d125aa3f75ffd45df72933d5062f8c3aedcb1d93d572d890600090a25050565b600061129a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113479092919063ffffffff16565b80519091501561119857808060200190518101906112b891906116b4565b6111985760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161035a565b6040516001600160a01b03831660248201526044810182905261119890849063a9059cbb60e01b9060640161103d565b60606113568484600085611360565b90505b9392505050565b6060824710156113c15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161035a565b843b61140f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035a565b600080866001600160a01b0316858760405161142b9190611812565b60006040518083038185875af1925050503d8060008114611468576040519150601f19603f3d011682016040523d82523d6000602084013e61146d565b606091505b509150915061147d828286611488565b979650505050505050565b60608315611497575081611359565b8251156114a75782518084602001fd5b8160405162461bcd60e51b815260040161035a919061182e565b828054828255906000526020600020908101928215611514579160200282015b828111156115145781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906114e1565b50611520929150611524565b5090565b5b808211156115205760008155600101611525565b60006020828403121561154a578081fd5b813561135981611adf565b600060208284031215611566578081fd5b815161135981611adf565b600080600060408486031215611585578182fd5b833561159081611adf565b9250602084013567ffffffffffffffff808211156115ac578384fd5b818601915086601f8301126115bf578384fd5b8135818111156115cd578485fd5b8760208260051b85010111156115e1578485fd5b6020830194508093505050509250925092565b60006020808385031215611606578182fd5b825167ffffffffffffffff8082111561161d578384fd5b818501915085601f830112611630578384fd5b81518181111561164257611642611ac9565b8060051b604051601f19603f8301168101818110858211171561166757611667611ac9565b604052828152858101935084860182860187018a1015611685578788fd5b8795505b838610156116a7578051855260019590950194938601938601611689565b5098975050505050505050565b6000602082840312156116c5578081fd5b81518015158114611359578182fd5b600080600080600060a086880312156116eb578081fd5b85356116f681611adf565b9450602086013561170681611adf565b9350604086013561171681611adf565b9250606086013561172681611adf565b9150608086013561173681611adf565b809150509295509295909350565b600060208284031215611755578081fd5b5035919050565b60006020828403121561176d578081fd5b5051919050565b60008060408385031215611786578182fd5b50508035926020909101359150565b600080600080600080600080610100898b0312156117b1578283fd5b505086516020880151604089015160608a015160808b015160a08c015160c08d015160e0909d0151959e949d50929b919a50985090965094509092509050565b600060208284031215611802578081fd5b815160ff81168114611359578182fd5b60008251611824818460208701611a87565b9190910192915050565b602081526000825180602084015261184d816040850160208701611a87565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875480845260c0860191508885528285209350845b818110156118e85784546001600160a01b0316835260019485019492840192016118c3565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561191c5761191c611ab3565b500190565b60008261193c57634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111561197c57816000190482111561196257611962611ab3565b8085161561196f57918102915b93841c9390800290611946565b509250929050565b6000611359838360008261199a57506001611a28565b816119a757506000611a28565b81600181146119bd57600281146119c7576119e3565b6001915050611a28565b60ff8411156119d8576119d8611ab3565b50506001821b611a28565b5060208310610133831016604e8410600b8410161715611a06575081810a611a28565b611a108383611941565b8060001904821115611a2457611a24611ab3565b0290505b92915050565b6000816000190483118215151615611a4857611a48611ab3565b500290565b600082821015611a5f57611a5f611ab3565b500390565b600060ff821660ff841680821015611a7e57611a7e611ab3565b90039392505050565b60005b83811015611aa2578181015183820152602001611a8a565b83811115610d895750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611af457600080fd5b5056fea2646970667358221220b87fc305141d1807352af7f3cece7efa177978d372cebdbc32bb669eb8df4baa64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063a8d5fd65116100b8578063f0f442601161007c578063f0f4426014610287578063f0fa55a91461029a578063f2fde38b146102ad578063f7683bbc146102c0578063f887ea40146102c8578063ff626c5f146102db57600080fd5b8063a8d5fd651461021e578063b15582fc14610231578063c7d2722814610244578063d43eb1f614610261578063d8dfeb451461027457600080fd5b806369871a4b1161010a57806369871a4b146101be578063715018a6146101d15780637adbf973146101d95780637d55094d146101ec5780637dc0d1d0146101f45780638da5cb5b1461020d57600080fd5b80631459457a146101475780633e032a3b1461015c578063465b0c411461017857806351adeb571461019857806361d027b3146101ab575b600080fd5b61015a6101553660046116d4565b6102e2565b005b610165600a5481565b6040519081526020015b60405180910390f35b6101806104ad565b6040516001600160a01b03909116815260200161016f565b600354610180906001600160a01b031681565b600654610180906001600160a01b031681565b6101806101cc366004611744565b61052f565b61015a610559565b61015a6101e7366004611539565b6105cd565b61015a610669565b600254610180906201000090046001600160a01b031681565b6000546001600160a01b0316610180565b600554610180906001600160a01b031681565b61015a61023f366004611774565b6106a7565b600b546102519060ff1681565b604051901515815260200161016f565b61015a61026f366004611571565b610cf1565b600454610180906001600160a01b031681565b61015a610295366004611539565b610d8f565b61015a6102a8366004611744565b610e23565b61015a6102bb366004611539565b610e99565b610165610f83565b600854610180906001600160a01b031681565b6000610165565b600254610100900460ff16806102fb575060025460ff16155b6103635760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600254610100900460ff16158015610385576002805461ffff19166101011790555b6000546001600160a01b031633146103af5760405162461bcd60e51b815260040161035a90611861565b600680546001600160a01b038089166001600160a01b03199283161790925560038054888416908316179055600580548784169083161790556004805486841692168217815560028054938616620100000262010000600160b01b0319909416939093179092556040805163313ce56760e01b81529051919263313ce567928282019260209290829003018186803b15801561044a57600080fd5b505afa15801561045e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048291906117f1565b61048d906012611a64565b60ff1660075580156104a5576002805461ff00191690555b505050505050565b6006546040805163465b0c4160e01b815290516000926001600160a01b03169163465b0c41916004808301926020929190829003018186803b1580156104f257600080fd5b505afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190611555565b905090565b6009818154811061053f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146105835760405162461bcd60e51b815260040161035a90611861565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146105f75760405162461bcd60e51b815260040161035a90611861565b6001600160a01b03811661063f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161035a565b600280546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b031633146106935760405162461bcd60e51b815260040161035a90611861565b600b805460ff19811660ff90911615179055565b333b156106f65760405162461bcd60e51b815260206004820152601760248201527f416c6c6f77206e6f6e2d636f6e7472616374206f6e6c79000000000000000000604482015260640161035a565b600260015414156107495760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155600b5460ff16156107955760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604482015260640161035a565b6000806000600660009054906101000a90046001600160a01b03166001600160a01b031663370158ea6040518163ffffffff1660e01b81526004016101006040518083038186803b1580156107e957600080fd5b505afa1580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108219190611795565b5096505050945050935050600083116108725760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420736861726520707269636560681b604482015260640161035a565b600061087c610f83565b90506000620f424082600754600a6108949190611984565b61089e908a611a2e565b6108a89190611a2e565b6108b29190611921565b90506000620f42406108c48584611a2e565b6108ce9190611921565b6108d89083611a4d565b9050868110156109155760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b604482015260640161035a565b60045461092d906001600160a01b031633308b611009565b620f4240851015610b09576000620f42406109488782611a4d565b6109529085611a2e565b61095c9190611921565b90506000620f424088600a54620f42406109769190611a4d565b610983620f424086611a2e565b61098d9190611a2e565b6109979190611921565b6109a19190611921565b90506000620f42406109b38982611a4d565b6109bd908d611a2e565b6109c79190611921565b6008546004549192506109e8916001600160a01b0390811691166000611074565b600854600454610a05916001600160a01b03918216911683611074565b6008546000906001600160a01b03166338ed17398385600930610a2a61025842611909565b6040518663ffffffff1660e01b8152600401610a4a959493929190611896565b600060405180830381600087803b158015610a6457600080fd5b505af1158015610a78573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610aa091908101906115f4565b90508060018251610ab19190611a4d565b81518110610acf57634e487b7160e01b600052603260045260246000fd5b6020026020010151827f9a7cc9b6c1f51a777fb37d6c91eb790726cd40df4ab357f471bed3927b63652b60405160405180910390a3505050505b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610b4d57600080fd5b505afa158015610b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b85919061175c565b600480546040516370a0823160e01b815230928101929092529192506000916001600160a01b0316906370a082319060240160206040518083038186803b158015610bcf57600080fd5b505afa158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c07919061175c565b90508115610c6e57600554604051630852cd8d60e31b8152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b505050505b8015610c7d57610c7d8161119d565b6003546040516306203eab60e11b8152336004820152602481018590526001600160a01b0390911690630c407d5690604401600060405180830381600087803b158015610cc957600080fd5b505af1158015610cdd573d6000803e3d6000fd5b505060018055505050505050505050505050565b6000546001600160a01b03163314610d1b5760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038316610d625760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103937baba32b960911b604482015260640161035a565b600880546001600160a01b0319166001600160a01b038516179055610d89600983836114c1565b50505050565b6000546001600160a01b03163314610db95760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038116610e015760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161035a565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610e4d5760405162461bcd60e51b815260040161035a90611861565b620186a0811115610e945760405162461bcd60e51b81526020600482015260116024820152700a69892a0a0828e8a40a89e9e4090928e9607b1b604482015260640161035a565b600a55565b6000546001600160a01b03163314610ec35760405162461bcd60e51b815260040161035a90611861565b6001600160a01b038116610f285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600060028054906101000a90046001600160a01b03166001600160a01b0316637eeda7036040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd157600080fd5b505afa158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a919061175c565b6040516001600160a01b0380851660248301528316604482015260648101829052610d899085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611245565b8015806110fd5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156110c357600080fd5b505afa1580156110d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fb919061175c565b155b6111685760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161035a565b6040516001600160a01b03831660248201526044810182905261119890849063095ea7b360e01b9060640161103d565b505050565b60006111a76104ad565b90506001600160a01b0381166111ff5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420726573657276652061646472657373000000000000000000604482015260640161035a565b600454611216906001600160a01b03168284611317565b60405182907f2bf577f6535de30cf4d125aa3f75ffd45df72933d5062f8c3aedcb1d93d572d890600090a25050565b600061129a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113479092919063ffffffff16565b80519091501561119857808060200190518101906112b891906116b4565b6111985760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161035a565b6040516001600160a01b03831660248201526044810182905261119890849063a9059cbb60e01b9060640161103d565b60606113568484600085611360565b90505b9392505050565b6060824710156113c15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161035a565b843b61140f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035a565b600080866001600160a01b0316858760405161142b9190611812565b60006040518083038185875af1925050503d8060008114611468576040519150601f19603f3d011682016040523d82523d6000602084013e61146d565b606091505b509150915061147d828286611488565b979650505050505050565b60608315611497575081611359565b8251156114a75782518084602001fd5b8160405162461bcd60e51b815260040161035a919061182e565b828054828255906000526020600020908101928215611514579160200282015b828111156115145781546001600160a01b0319166001600160a01b038435161782556020909201916001909101906114e1565b50611520929150611524565b5090565b5b808211156115205760008155600101611525565b60006020828403121561154a578081fd5b813561135981611adf565b600060208284031215611566578081fd5b815161135981611adf565b600080600060408486031215611585578182fd5b833561159081611adf565b9250602084013567ffffffffffffffff808211156115ac578384fd5b818601915086601f8301126115bf578384fd5b8135818111156115cd578485fd5b8760208260051b85010111156115e1578485fd5b6020830194508093505050509250925092565b60006020808385031215611606578182fd5b825167ffffffffffffffff8082111561161d578384fd5b818501915085601f830112611630578384fd5b81518181111561164257611642611ac9565b8060051b604051601f19603f8301168101818110858211171561166757611667611ac9565b604052828152858101935084860182860187018a1015611685578788fd5b8795505b838610156116a7578051855260019590950194938601938601611689565b5098975050505050505050565b6000602082840312156116c5578081fd5b81518015158114611359578182fd5b600080600080600060a086880312156116eb578081fd5b85356116f681611adf565b9450602086013561170681611adf565b9350604086013561171681611adf565b9250606086013561172681611adf565b9150608086013561173681611adf565b809150509295509295909350565b600060208284031215611755578081fd5b5035919050565b60006020828403121561176d578081fd5b5051919050565b60008060408385031215611786578182fd5b50508035926020909101359150565b600080600080600080600080610100898b0312156117b1578283fd5b505086516020880151604089015160608a015160808b015160a08c015160c08d015160e0909d0151959e949d50929b919a50985090965094509092509050565b600060208284031215611802578081fd5b815160ff81168114611359578182fd5b60008251611824818460208701611a87565b9190910192915050565b602081526000825180602084015261184d816040850160208701611a87565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875480845260c0860191508885528285209350845b818110156118e85784546001600160a01b0316835260019485019492840192016118c3565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561191c5761191c611ab3565b500190565b60008261193c57634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111561197c57816000190482111561196257611962611ab3565b8085161561196f57918102915b93841c9390800290611946565b509250929050565b6000611359838360008261199a57506001611a28565b816119a757506000611a28565b81600181146119bd57600281146119c7576119e3565b6001915050611a28565b60ff8411156119d8576119d8611ab3565b50506001821b611a28565b5060208310610133831016604e8410600b8410161715611a06575081810a611a28565b611a108383611941565b8060001904821115611a2457611a24611ab3565b0290505b92915050565b6000816000190483118215151615611a4857611a48611ab3565b500290565b600082821015611a5f57611a5f611ab3565b500390565b600060ff821660ff841680821015611a7e57611a7e611ab3565b90039392505050565b60005b83811015611aa2578181015183820152602001611a8a565b83811115610d895750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611af457600080fd5b5056fea2646970667358221220b87fc305141d1807352af7f3cece7efa177978d372cebdbc32bb669eb8df4baa64736f6c63430008040033

Deployed Bytecode Sourcemap

54036:5392:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55089:422;;;;;;:::i;:::-;;:::i;:::-;;54804:31;;;;;;;;;15306:25:1;;;15294:2;15279:18;54804:31:0;;;;;;;;55571:113;;;:::i;:::-;;;-1:-1:-1;;;;;6308:32:1;;;6290:51;;6278:2;6263:18;55571:113:0;6245:102:1;54248:21:0;;;;;-1:-1:-1;;;;;54248:21:0;;;54332:25;;;;;-1:-1:-1;;;;;54332:25:0;;;54442:28;;;;;;:::i;:::-;;:::i;29533:148::-;;;:::i;58880:159::-;;;;;;:::i;:::-;;:::i;58432:89::-;;;:::i;54220:21::-;;;;;;;;-1:-1:-1;;;;;54220:21:0;;;28882:87;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;28882:87;;54306:19;;;;;-1:-1:-1;;;;;54306:19:0;;;55940:2132;;;;;;:::i;:::-;;:::i;54880:31::-;;;;;;;;;;;;7485:14:1;;7478:22;7460:41;;7448:2;7433:18;54880:31:0;7415:92:1;59047:223:0;;;;;;:::i;:::-;;:::i;54276:23::-;;;;;-1:-1:-1;;;;;54276:23:0;;;58701:171;;;;;;:::i;:::-;;:::i;58529:164::-;;;;;;:::i;:::-;;:::i;29836:244::-;;;;;;:::i;:::-;;:::i;55692:102::-;;;:::i;54405:30::-;;;;;-1:-1:-1;;;;;54405:30:0;;;55802:130;55860:7;55802:130;;55089:422;31623:13;;;;;;;;:30;;-1:-1:-1;31641:12:0;;;;31640:13;31623:30;31615:89;;;;-1:-1:-1;;;31615:89:0;;11645:2:1;31615:89:0;;;11627:21:1;11684:2;11664:18;;;11657:30;11723:34;11703:18;;;11696:62;-1:-1:-1;;;11774:18:1;;;11767:44;11828:19;;31615:89:0;;;;;;;;;31740:13;;;;;;;31739:14;31764:101;;;;31799:13;:20;;-1:-1:-1;;31834:19:0;;;;;31764:101;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23:::1;29094:68;;;;-1:-1:-1::0;;;29094:68:0::1;;;;;;;:::i;:::-;55302:8:::2;:20:::0;;-1:-1:-1;;;;;55302:20:0;;::::2;-1:-1:-1::0;;;;;;55302:20:0;;::::2;;::::0;;;55333:6:::2;:16:::0;;;;::::2;::::0;;::::2;;::::0;;55360:5:::2;:14:::0;;;;::::2;::::0;;::::2;;::::0;;55385:10:::2;:24:::0;;;;::::2;::::0;::::2;::::0;::::2;::::0;;-1:-1:-1;55420:26:0;;;;::::2;::::0;::::2;-1:-1:-1::0;;;;;;55420:26:0;;::::2;::::0;;;::::2;::::0;;;55481:22:::2;::::0;;-1:-1:-1;;;55481:22:0;;;;55385:24;;55481:20:::2;::::0;:22;;::::2;::::0;::::2;::::0;;;;;;;55385:24;55481:22;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55476:27;::::0;:2:::2;:27;:::i;:::-;55457:46;;:16;:46:::0;31891:68;;;;31926:13;:21;;-1:-1:-1;;31926:21:0;;;31891:68;55089:422;;;;;;:::o;55571:113::-;55648:8;;:28;;;-1:-1:-1;;;55648:28:0;;;;55621:7;;-1:-1:-1;;;;;55648:8:0;;:26;;:28;;;;;;;;;;;;;;:8;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55641:35;;55571:113;:::o;54442:28::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54442:28:0;;-1:-1:-1;54442:28:0;:::o;29533:148::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;29640:1:::1;29624:6:::0;;29603:40:::1;::::0;-1:-1:-1;;;;;29624:6:0;;::::1;::::0;29603:40:::1;::::0;29640:1;;29603:40:::1;29671:1;29654:19:::0;;-1:-1:-1;;;;;;29654:19:0::1;::::0;;29533:148::o;58880:159::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58954:30:0;::::1;58946:58;;;::::0;-1:-1:-1;;;58946:58:0;;9453:2:1;58946:58:0::1;::::0;::::1;9435:21:1::0;9492:2;9472:18;;;9465:30;-1:-1:-1;;;9511:18:1;;;9504:45;9566:18;;58946:58:0::1;9425:165:1::0;58946:58:0::1;59015:6;:16:::0;;-1:-1:-1;;;;;59015:16:0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;;59015:16:0;;::::1;::::0;;;::::1;::::0;;58880:159::o;58432:89::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;58502:11:::1;::::0;;-1:-1:-1;;58487:26:0;::::1;58502:11;::::0;;::::1;58501:12;58487:26;::::0;;58432:89::o;55940:2132::-;54963:10;1243:20;1291:8;54954:60;;;;-1:-1:-1;;;54954:60:0;;13816:2:1;54954:60:0;;;13798:21:1;13855:2;13835:18;;;13828:30;13894:25;13874:18;;;13867:53;13937:18;;54954:60:0;13788:173:1;54954:60:0;33722:1:::1;34318:7;;:19;;34310:63;;;::::0;-1:-1:-1;;;34310:63:0;;14579:2:1;34310:63:0::1;::::0;::::1;14561:21:1::0;14618:2;14598:18;;;14591:30;14657:33;14637:18;;;14630:61;14708:18;;34310:63:0::1;14551:181:1::0;34310:63:0::1;33722:1;34451:7;:18:::0;56063:11:::2;::::0;::::2;;:20;56055:50;;;::::0;-1:-1:-1;;;56055:50:0;;12769:2:1;56055:50:0::2;::::0;::::2;12751:21:1::0;12808:2;12788:18;;;12781:30;-1:-1:-1;;;12827:18:1;;;12820:47;12884:18;;56055:50:0::2;12741:167:1::0;56055:50:0::2;56119:20;56143:12:::0;56161:20:::2;56197:8;;;;;;;;;-1:-1:-1::0;;;;;56197:8:0::2;-1:-1:-1::0;;;;;56187:24:0::2;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56116:97;;;;;;;;;;;56247:1;56232:12;:16;56224:48;;;::::0;-1:-1:-1;;;56224:48:0;;12421:2:1;56224:48:0::2;::::0;::::2;12403:21:1::0;12460:2;12440:18;;;12433:30;-1:-1:-1;;;12479:18:1;;;12472:49;12538:18;;56224:48:0::2;12393:169:1::0;56224:48:0::2;56283:25;56311:20;:18;:20::i;:::-;56283:48;;56344:25;54563:3;56419:17;56399:16;;56395:2;:20;;;;:::i;:::-;56373:43;::::0;:18;:43:::2;:::i;:::-;:63;;;;:::i;:::-;56372:83;;;;:::i;:::-;56344:111:::0;-1:-1:-1;56466:29:0::2;54563:3;56520:32;56540:12:::0;56344:111;56520:32:::2;:::i;:::-;56519:52;;;;:::i;:::-;56498:74;::::0;:17;:74:::2;:::i;:::-;56466:106;;56616:15;56591:21;:40;;56583:61;;;::::0;-1:-1:-1;;;56583:61:0;;9797:2:1;56583:61:0::2;::::0;::::2;9779:21:1::0;9836:1;9816:18;;;9809:29;-1:-1:-1;;;9854:18:1;;;9847:38;9902:18;;56583:61:0::2;9769:157:1::0;56583:61:0::2;56657:10;::::0;:74:::2;::::0;-1:-1:-1;;;;;56657:10:0::2;56685;56705:4;56712:18:::0;56657:27:::2;:74::i;:::-;54674:3;56746:4;:27;56742:830;;;56790:20;54616:3;56835:22;56853:4:::0;54616:3;56835:22:::2;:::i;:::-;56814:44;::::0;:17;:44:::2;:::i;:::-;56813:64;;;;:::i;:::-;56790:87;;56892:25;54616:3;56986:12;56973:8;;54616:3;56955:26;;;;:::i;:::-;56921:30;54563:3;56921:12:::0;:30:::2;:::i;:::-;:61;;;;:::i;:::-;56920:78;;;;:::i;:::-;:96;;;;:::i;:::-;56892:124:::0;-1:-1:-1;57031:31:0::2;54616:3;57088:22;57106:4:::0;54616:3;57088:22:::2;:::i;:::-;57066:45;::::0;:18;:45:::2;:::i;:::-;57065:65;;;;:::i;:::-;57176:6;::::0;57145:10:::2;::::0;57031:99;;-1:-1:-1;57145:42:0::2;::::0;-1:-1:-1;;;;;57145:10:0;;::::2;::::0;57176:6:::2;;57145:22;:42::i;:::-;57233:6;::::0;57202:10:::2;::::0;:64:::2;::::0;-1:-1:-1;;;;;57202:10:0;;::::2;::::0;57233:6:::2;57242:23:::0;57202:22:::2;:64::i;:::-;57318:6;::::0;57281:34:::2;::::0;-1:-1:-1;;;;;57318:6:0::2;:31;57350:23:::0;57375:17;57394:11:::2;57415:4;57422:33;54787:10;57422:15;:33;:::i;:::-;57318:138;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;57318:138:0::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;:::i;:::-;57281:175;;57512:17;57557:1;57530:17;:24;:28;;;;:::i;:::-;57512:47;;;;;;-1:-1:-1::0;;;57512:47:0::2;;;;;;;;;;;;;;;57487:23;57476:84;;;;;;;;;;56742:830;;;;;57622:5;::::0;57608:46:::2;::::0;-1:-1:-1;;;57608:46:0;;57648:4:::2;57608:46;::::0;::::2;6290:51:1::0;57584:21:0::2;::::0;-1:-1:-1;;;;;57622:5:0::2;::::0;57608:31:::2;::::0;6263:18:1;;57608:46:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57694:10;::::0;;:35:::2;::::0;-1:-1:-1;;;57694:35:0;;57723:4:::2;57694:35:::0;;::::2;6290:51:1::0;;;;57584:70:0;;-1:-1:-1;57665:26:0::2;::::0;-1:-1:-1;;;;;57694:10:0::2;::::0;:20:::2;::::0;6263:18:1;;57694:35:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57665:64:::0;-1:-1:-1;57744:17:0;;57740:97:::2;;57798:5;::::0;57778:47:::2;::::0;-1:-1:-1;;;57778:47:0;;::::2;::::0;::::2;15306:25:1::0;;;-1:-1:-1;;;;;57798:5:0;;::::2;::::0;57778:32:::2;::::0;15279:18:1;;57778:47:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;57740:97;57851:22:::0;;57847:157:::2;;57890:48;57919:18;57890:28;:48::i;:::-;58014:6;::::0;:50:::2;::::0;-1:-1:-1;;;58014:50:0;;58030:10:::2;58014:50;::::0;::::2;7215:51:1::0;7282:18;;;7275:34;;;-1:-1:-1;;;;;58014:6:0;;::::2;::::0;:15:::2;::::0;7188:18:1;;58014:50:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;33678:1:0::1;34630:22:::0;;-1:-1:-1;;;;;;;;;;;;55940:2132:0:o;59047:223::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;59147:21:0;::::1;59139:48;;;::::0;-1:-1:-1;;;59139:48:0;;13473:2:1;59139:48:0::1;::::0;::::1;13455:21:1::0;13512:2;13492:18;;;13485:30;-1:-1:-1;;;13531:18:1;;;13524:44;13585:18;;59139:48:0::1;13445:164:1::0;59139:48:0::1;59198:6;:34:::0;;-1:-1:-1;;;;;;59198:34:0::1;-1:-1:-1::0;;;;;59198:34:0;::::1;;::::0;;59243:19:::1;:11;59257:5:::0;;59243:19:::1;:::i;:::-;;59047:223:::0;;;:::o;58701:171::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58781:32:0;::::1;58773:60;;;::::0;-1:-1:-1;;;58773:60:0;;9453:2:1;58773:60:0::1;::::0;::::1;9435:21:1::0;9492:2;9472:18;;;9465:30;-1:-1:-1;;;9511:18:1;;;9504:45;9566:18;;58773:60:0::1;9425:165:1::0;58773:60:0::1;58844:8;:20:::0;;-1:-1:-1;;;;;;58844:20:0::1;-1:-1:-1::0;;;;;58844:20:0;;;::::1;::::0;;;::::1;::::0;;58701:171::o;58529:164::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;54724:6:::1;58607:9;:25;;58599:55;;;::::0;-1:-1:-1;;;58599:55:0;;11299:2:1;58599:55:0::1;::::0;::::1;11281:21:1::0;11338:2;11318:18;;;11311:30;-1:-1:-1;;;11357:18:1;;;11350:47;11414:18;;58599:55:0::1;11271:167:1::0;58599:55:0::1;58665:8;:20:::0;58529:164::o;29836:244::-;28928:7;28955:6;-1:-1:-1;;;;;28955:6:0;12558:10;29102:23;29094:68;;;;-1:-1:-1;;;29094:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29925:22:0;::::1;29917:73;;;::::0;-1:-1:-1;;;29917:73:0;;10133:2:1;29917:73:0::1;::::0;::::1;10115:21:1::0;10172:2;10152:18;;;10145:30;10211:34;10191:18;;;10184:62;-1:-1:-1;;;10262:18:1;;;10255:36;10308:19;;29917:73:0::1;10105:228:1::0;29917:73:0::1;30027:6;::::0;;30006:38:::1;::::0;-1:-1:-1;;;;;30006:38:0;;::::1;::::0;30027:6;::::1;::::0;30006:38:::1;::::0;::::1;30055:6;:17:::0;;-1:-1:-1;;;;;;30055:17:0::1;-1:-1:-1::0;;;;;30055:17:0;;;::::1;::::0;;;::::1;::::0;;29836:244::o;55692:102::-;55743:7;55770:6;;;;;;;;-1:-1:-1;;;;;55770:6:0;-1:-1:-1;;;;;55770:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;24635:248::-;24806:68;;-1:-1:-1;;;;;6919:15:1;;;24806:68:0;;;6901:34:1;6971:15;;6951:18;;;6944:43;7003:18;;;6996:34;;;24779:96:0;;24799:5;;-1:-1:-1;;;24829:27:0;6836:18:1;;24806:68:0;;;;-1:-1:-1;;24806:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24806:68:0;-1:-1:-1;;;;;;24806:68:0;;;;;;;;;;24779:19;:96::i;25152:633::-;25556:10;;;25555:62;;-1:-1:-1;25572:39:0;;-1:-1:-1;;;25572:39:0;;25596:4;25572:39;;;6564:34:1;-1:-1:-1;;;;;6634:15:1;;;6614:18;;;6607:43;25572:15:0;;;;;6499:18:1;;25572:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;25555:62;25547:129;;;;-1:-1:-1;;;25547:129:0;;14939:2:1;25547:129:0;;;14921:21:1;14978:2;14958:18;;;14951:30;15017:34;14997:18;;;14990:62;-1:-1:-1;;;15068:18:1;;;15061:52;15130:19;;25547:129:0;14911:244:1;25547:129:0;25714:62;;-1:-1:-1;;;;;7233:32:1;;25714:62:0;;;7215:51:1;7282:18;;;7275:34;;;25687:90:0;;25707:5;;-1:-1:-1;;;25737:22:0;7188:18:1;;25714:62:0;7170:145:1;25687:90:0;25152:633;;;:::o;58080:288::-;58155:16;58174:19;:17;:19::i;:::-;58155:38;-1:-1:-1;;;;;;58212:22:0;;58204:58;;;;-1:-1:-1;;;58204:58:0;;10540:2:1;58204:58:0;;;10522:21:1;10579:2;10559:18;;;10552:30;10618:25;10598:18;;;10591:53;10661:18;;58204:58:0;10512:173:1;58204:58:0;58273:10;;:42;;-1:-1:-1;;;;;58273:10:0;58297:8;58307:7;58273:23;:42::i;:::-;58331:29;;58352:7;;58331:29;;;;;58080:288;;:::o;27006:774::-;27430:23;27456:69;27484:4;27456:69;;;;;;;;;;;;;;;;;27464:5;-1:-1:-1;;;;;27456:27:0;;;:69;;;;;:::i;:::-;27540:17;;27430:95;;-1:-1:-1;27540:21:0;27536:237;;27695:10;27684:30;;;;;;;;;;;;:::i;:::-;27676:85;;;;-1:-1:-1;;;27676:85:0;;14168:2:1;27676:85:0;;;14150:21:1;14207:2;14187:18;;;14180:30;14246:34;14226:18;;;14219:62;-1:-1:-1;;;14297:18:1;;;14290:40;14347:19;;27676:85:0;14140:232:1;24416:211:0;24560:58;;-1:-1:-1;;;;;7233:32:1;;24560:58:0;;;7215:51:1;7282:18;;;7275:34;;;24533:86:0;;24553:5;;-1:-1:-1;;;24583:23:0;7188:18:1;;24560:58:0;7170:145:1;3803:229:0;3940:12;3972:52;3994:6;4002:4;4008:1;4011:12;3972:21;:52::i;:::-;3965:59;;3803:229;;;;;;:::o;4923:571::-;5093:12;5151:5;5126:21;:30;;5118:81;;;;-1:-1:-1;;;5118:81:0;;10892:2:1;5118:81:0;;;10874:21:1;10931:2;10911:18;;;10904:30;10970:34;10950:18;;;10943:62;-1:-1:-1;;;11021:18:1;;;11014:36;11067:19;;5118:81:0;10864:228:1;5118:81:0;1243:20;;5210:60;;;;-1:-1:-1;;;5210:60:0;;13115:2:1;5210:60:0;;;13097:21:1;13154:2;13134:18;;;13127:30;13193:31;13173:18;;;13166:59;13242:18;;5210:60:0;13087:179:1;5210:60:0;5344:12;5358:23;5385:6;-1:-1:-1;;;;;5385:11:0;5404:5;5411:4;5385:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5343:73;;;;5434:52;5452:7;5461:10;5473:12;5434:17;:52::i;:::-;5427:59;4923:571;-1:-1:-1;;;;;;;4923:571:0:o;7572:777::-;7722:12;7751:7;7747:595;;;-1:-1:-1;7782:10:0;7775:17;;7747:595;7896:17;;:21;7892:439;;8159:10;8153:17;8220:15;8207:10;8203:2;8199:19;8192:44;8107:148;8302:12;8295:20;;-1:-1:-1;;;8295:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:257:1;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:261::-;346:6;399:2;387:9;378:7;374:23;370:32;367:2;;;420:6;412;405:22;367:2;457:9;451:16;476:31;501:5;476:31;:::i;542:800::-;637:6;645;653;706:2;694:9;685:7;681:23;677:32;674:2;;;727:6;719;712:22;674:2;771:9;758:23;790:31;815:5;790:31;:::i;:::-;840:5;-1:-1:-1;896:2:1;881:18;;868:32;919:18;949:14;;;946:2;;;981:6;973;966:22;946:2;1024:6;1013:9;1009:22;999:32;;1069:7;1062:4;1058:2;1054:13;1050:27;1040:2;;1096:6;1088;1081:22;1040:2;1141;1128:16;1167:2;1159:6;1156:14;1153:2;;;1188:6;1180;1173:22;1153:2;1246:7;1241:2;1231:6;1228:1;1224:14;1220:2;1216:23;1212:32;1209:45;1206:2;;;1272:6;1264;1257:22;1206:2;1308;1304;1300:11;1290:21;;1330:6;1320:16;;;;;664:678;;;;;:::o;1347:1161::-;1442:6;1473:2;1516;1504:9;1495:7;1491:23;1487:32;1484:2;;;1537:6;1529;1522:22;1484:2;1575:9;1569:16;1604:18;1645:2;1637:6;1634:14;1631:2;;;1666:6;1658;1651:22;1631:2;1709:6;1698:9;1694:22;1684:32;;1754:7;1747:4;1743:2;1739:13;1735:27;1725:2;;1781:6;1773;1766:22;1725:2;1815;1809:9;1837:2;1833;1830:10;1827:2;;;1843:18;;:::i;:::-;1889:2;1886:1;1882:10;1921:2;1915:9;1984:2;1980:7;1975:2;1971;1967:11;1963:25;1955:6;1951:38;2039:6;2027:10;2024:22;2019:2;2007:10;2004:18;2001:46;1998:2;;;2050:18;;:::i;:::-;2086:2;2079:22;2136:18;;;2170:15;;;;-1:-1:-1;2205:11:1;;;2235;;;2231:20;;2228:33;-1:-1:-1;2225:2:1;;;2279:6;2271;2264:22;2225:2;2306:6;2297:15;;2321:156;2335:2;2332:1;2329:9;2321:156;;;2392:10;;2380:23;;2353:1;2346:9;;;;;2423:12;;;;2455;;2321:156;;;-1:-1:-1;2496:6:1;1453:1055;-1:-1:-1;;;;;;;;1453:1055:1:o;2513:297::-;2580:6;2633:2;2621:9;2612:7;2608:23;2604:32;2601:2;;;2654:6;2646;2639:22;2601:2;2691:9;2685:16;2744:5;2737:13;2730:21;2723:5;2720:32;2710:2;;2771:6;2763;2756:22;3373:901;3546:6;3554;3562;3570;3578;3631:3;3619:9;3610:7;3606:23;3602:33;3599:2;;;3653:6;3645;3638:22;3599:2;3697:9;3684:23;3716:31;3741:5;3716:31;:::i;:::-;3766:5;-1:-1:-1;3823:2:1;3808:18;;3795:32;3836:33;3795:32;3836:33;:::i;:::-;3888:7;-1:-1:-1;3947:2:1;3932:18;;3919:32;3960:33;3919:32;3960:33;:::i;:::-;4012:7;-1:-1:-1;4071:2:1;4056:18;;4043:32;4084:33;4043:32;4084:33;:::i;:::-;4136:7;-1:-1:-1;4195:3:1;4180:19;;4167:33;4209;4167;4209;:::i;:::-;4261:7;4251:17;;;3589:685;;;;;;;;:::o;4279:190::-;4338:6;4391:2;4379:9;4370:7;4366:23;4362:32;4359:2;;;4412:6;4404;4397:22;4359:2;-1:-1:-1;4440:23:1;;4349:120;-1:-1:-1;4349:120:1:o;4474:194::-;4544:6;4597:2;4585:9;4576:7;4572:23;4568:32;4565:2;;;4618:6;4610;4603:22;4565:2;-1:-1:-1;4646:16:1;;4555:113;-1:-1:-1;4555:113:1:o;4673:258::-;4741:6;4749;4802:2;4790:9;4781:7;4777:23;4773:32;4770:2;;;4823:6;4815;4808:22;4770:2;-1:-1:-1;;4851:23:1;;;4921:2;4906:18;;;4893:32;;-1:-1:-1;4760:171:1:o;4936:626::-;5069:6;5077;5085;5093;5101;5109;5117;5125;5178:3;5166:9;5157:7;5153:23;5149:33;5146:2;;;5200:6;5192;5185:22;5146:2;-1:-1:-1;;5228:16:1;;5284:2;5269:18;;5263:25;5328:2;5313:18;;5307:25;5372:2;5357:18;;5351:25;5416:3;5401:19;;5395:26;5461:3;5446:19;;5440:26;5506:3;5491:19;;5485:26;5551:3;5536:19;;;5530:26;5228:16;;5263:25;;-1:-1:-1;5307:25:1;;5351;;-1:-1:-1;5395:26:1;-1:-1:-1;5440:26:1;;-1:-1:-1;5485:26:1;-1:-1:-1;5530:26:1;;-1:-1:-1;5136:426:1;-1:-1:-1;5136:426:1:o;5567:293::-;5635:6;5688:2;5676:9;5667:7;5663:23;5659:32;5656:2;;;5709:6;5701;5694:22;5656:2;5746:9;5740:16;5796:4;5789:5;5785:16;5778:5;5775:27;5765:2;;5821:6;5813;5806:22;5865:274;5994:3;6032:6;6026:13;6048:53;6094:6;6089:3;6082:4;6074:6;6070:17;6048:53;:::i;:::-;6117:16;;;;;6002:137;-1:-1:-1;;6002:137:1:o;8863:383::-;9012:2;9001:9;8994:21;8975:4;9044:6;9038:13;9087:6;9082:2;9071:9;9067:18;9060:34;9103:66;9162:6;9157:2;9146:9;9142:18;9137:2;9129:6;9125:15;9103:66;:::i;:::-;9230:2;9209:15;-1:-1:-1;;9205:29:1;9190:45;;;;9237:2;9186:54;;8984:262;-1:-1:-1;;8984:262:1:o;11858:356::-;12060:2;12042:21;;;12079:18;;;12072:30;12138:34;12133:2;12118:18;;12111:62;12205:2;12190:18;;12032:182::o;15342:1004::-;15593:4;15641:3;15630:9;15626:19;15672:6;15661:9;15654:25;15698:2;15736:6;15731:2;15720:9;15716:18;15709:34;15779:3;15774:2;15763:9;15759:18;15752:31;15803:6;15838;15832:13;15869:6;15861;15854:22;15907:3;15896:9;15892:19;15885:26;;15933:6;15927:4;15920:20;15979:2;15973:4;15963:19;15949:33;;16000:4;16013:194;16027:6;16024:1;16021:13;16013:194;;;16092:13;;-1:-1:-1;;;;;16088:39:1;16076:52;;16124:1;16183:14;;;;16148:12;;;;16042:9;16013:194;;;-1:-1:-1;;;;;;;16263:32:1;;;;16258:2;16243:18;;16236:60;-1:-1:-1;;;16327:3:1;16312:19;16305:35;16224:3;15602:744;-1:-1:-1;;;15602:744:1:o;16351:128::-;16391:3;16422:1;16418:6;16415:1;16412:13;16409:2;;;16428:18;;:::i;:::-;-1:-1:-1;16464:9:1;;16399:80::o;16484:217::-;16524:1;16550;16540:2;;-1:-1:-1;;;16575:31:1;;16629:4;16626:1;16619:15;16657:4;16582:1;16647:15;16540:2;-1:-1:-1;16686:9:1;;16530:171::o;16706:422::-;16795:1;16838:5;16795:1;16852:270;16873:7;16863:8;16860:21;16852:270;;;16932:4;16928:1;16924:6;16920:17;16914:4;16911:27;16908:2;;;16941:18;;:::i;:::-;16991:7;16981:8;16977:22;16974:2;;;17011:16;;;;16974:2;17090:22;;;;17050:15;;;;16852:270;;;16856:3;16770:358;;;;;:::o;17133:131::-;17193:5;17222:36;17249:8;17243:4;17318:5;17348:8;17338:2;;-1:-1:-1;17389:1:1;17403:5;;17338:2;17437:4;17427:2;;-1:-1:-1;17474:1:1;17488:5;;17427:2;17519:4;17537:1;17532:59;;;;17605:1;17600:130;;;;17512:218;;17532:59;17562:1;17553:10;;17576:5;;;17600:130;17637:3;17627:8;17624:17;17621:2;;;17644:18;;:::i;:::-;-1:-1:-1;;17700:1:1;17686:16;;17715:5;;17512:218;;17814:2;17804:8;17801:16;17795:3;17789:4;17786:13;17782:36;17776:2;17766:8;17763:16;17758:2;17752:4;17749:12;17745:35;17742:77;17739:2;;;-1:-1:-1;17851:19:1;;;17883:5;;17739:2;17930:34;17955:8;17949:4;17930:34;:::i;:::-;18000:6;17996:1;17992:6;17988:19;17979:7;17976:32;17973:2;;;18011:18;;:::i;:::-;18049:20;;-1:-1:-1;17328:747:1;;;;;:::o;18080:168::-;18120:7;18186:1;18182;18178:6;18174:14;18171:1;18168:21;18163:1;18156:9;18149:17;18145:45;18142:2;;;18193:18;;:::i;:::-;-1:-1:-1;18233:9:1;;18132:116::o;18253:125::-;18293:4;18321:1;18318;18315:8;18312:2;;;18326:18;;:::i;:::-;-1:-1:-1;18363:9:1;;18302:76::o;18383:195::-;18421:4;18458;18455:1;18451:12;18490:4;18487:1;18483:12;18515:3;18510;18507:12;18504:2;;;18522:18;;:::i;:::-;18559:13;;;18430:148;-1:-1:-1;;;18430:148:1:o;18583:258::-;18655:1;18665:113;18679:6;18676:1;18673:13;18665:113;;;18755:11;;;18749:18;18736:11;;;18729:39;18701:2;18694:10;18665:113;;;18796:6;18793:1;18790:13;18787:2;;;-1:-1:-1;;18831:1:1;18813:16;;18806:27;18636:205::o;18846:127::-;18907:10;18902:3;18898:20;18895:1;18888:31;18938:4;18935:1;18928:15;18962:4;18959:1;18952:15;18978:127;19039:10;19034:3;19030:20;19027:1;19020:31;19070:4;19067:1;19060:15;19094:4;19091:1;19084:15;19110:131;-1:-1:-1;;;;;19185:31:1;;19175:42;;19165:2;;19231:1;19228;19221:12;19165:2;19155:86;:::o

Swarm Source

ipfs://b87fc305141d1807352af7f3cece7efa177978d372cebdbc32bb669eb8df4baa

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn 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.