false
false
0
Contract Address Details
contract

0xaDA27cdFDB5C9360BFc6F39173c2111668c2c2e0

Sponsored: ERAM, a pioneering Central Bank Blockchain. The First Banking Regulatory Blockchain, Licensed by the Central Bank.

ERAM, Central Bank Digital Currency (CBDC) (STABLE COIN)

Overview

ERAM Balance

0 ERAM

ERAM Value

$0.00

Token Holdings

Fetching tokens...

More Info

Private Name Tags

Last Balance Update

Blocks Validated

Sponsored

Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
PancakeStableSwapTwoPoolInfo




Optimization enabled
true
Compiler version
v0.8.10+commit.fc410830




Optimization runs
100
EVM Version
default




Verified at
2024-07-20T03:17:31.237413Z

contracts/PancakeStableSwapTwoPoolInfo.sol

Sol2uml
new
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "./openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IPancakeStableSwap.sol";

contract PancakeStableSwapTwoPoolInfo {
    uint256 public constant N_COINS = 2;
    uint256 public constant FEE_DENOMINATOR = 1e10;
    uint256 public constant PRECISION = 1e18;

    function token(address _swap) public view returns (IERC20) {
        return IERC20(IPancakeStableSwap(_swap).token());
    }

    function balances(address _swap) public view returns (uint256[N_COINS] memory swapBalances) {
        for (uint256 i = 0; i < N_COINS; i++) {
            swapBalances[i] = IPancakeStableSwap(_swap).balances(i);
        }
    }

    function RATES(address _swap) public view returns (uint256[N_COINS] memory swapRATES) {
        for (uint256 i = 0; i < N_COINS; i++) {
            swapRATES[i] = IPancakeStableSwap(_swap).RATES(i);
        }
    }

    function PRECISION_MUL(address _swap) public view returns (uint256[N_COINS] memory swapPRECISION_MUL) {
        for (uint256 i = 0; i < N_COINS; i++) {
            swapPRECISION_MUL[i] = IPancakeStableSwap(_swap).PRECISION_MUL(i);
        }
    }

    function calc_coins_amount(address _swap, uint256 _amount) external view returns (uint256[N_COINS] memory) {
        uint256 total_supply = token(_swap).totalSupply();
        uint256[N_COINS] memory amounts;

        for (uint256 i = 0; i < N_COINS; i++) {
            uint256 value = (IPancakeStableSwap(_swap).balances(i) * _amount) / total_supply;
            amounts[i] = value;
        }
        return amounts;
    }

    function get_D_mem(address _swap, uint256[N_COINS] memory _balances, uint256 amp) public view returns (uint256) {
        return get_D(_xp_mem(_swap, _balances), amp);
    }

    function get_add_liquidity_mint_amount(
        address _swap,
        uint256[N_COINS] memory amounts
    ) external view returns (uint256) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256[N_COINS] memory fees;
        uint256 _fee = (swap.fee() * N_COINS) / (4 * (N_COINS - 1));
        uint256 amp = swap.A();

        uint256 token_supply = token(_swap).totalSupply();
        //Initial invariant
        uint256 D0;
        uint256[N_COINS] memory old_balances = balances(_swap);
        if (token_supply > 0) {
            D0 = get_D_mem(_swap, old_balances, amp);
        }
        uint256[N_COINS] memory new_balances = [old_balances[0], old_balances[1]];

        for (uint256 i = 0; i < N_COINS; i++) {
            if (token_supply == 0) {
                require(amounts[i] > 0, "Initial deposit requires all coins");
            }
            // balances store amounts of c-tokens
            new_balances[i] = old_balances[i] + amounts[i];
        }

        // Invariant after change
        uint256 D1 = get_D_mem(_swap, new_balances, amp);
        require(D1 > D0, "D1 must be greater than D0");

        // We need to recalculate the invariant accounting for fees
        // to calculate fair user's share
        uint256 D2 = D1;
        if (token_supply > 0) {
            // Only account for fees if we are not the first to deposit
            for (uint256 i = 0; i < N_COINS; i++) {
                uint256 ideal_balance = (D1 * old_balances[i]) / D0;
                uint256 difference;
                if (ideal_balance > new_balances[i]) {
                    difference = ideal_balance - new_balances[i];
                } else {
                    difference = new_balances[i] - ideal_balance;
                }

                fees[i] = (_fee * difference) / FEE_DENOMINATOR;
                new_balances[i] -= fees[i];
            }
            D2 = get_D_mem(_swap, new_balances, amp);
        }

        // Calculate, how much pool tokens to mint
        uint256 mint_amount;
        if (token_supply == 0) {
            mint_amount = D1; // Take the dust if there was any
        } else {
            mint_amount = (token_supply * (D2 - D0)) / D0;
        }
        return mint_amount;
    }

    function get_add_liquidity_fee(
        address _swap,
        uint256[N_COINS] memory amounts
    ) external view returns (uint256[N_COINS] memory liquidityFee) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256 _fee = (swap.fee() * N_COINS) / (4 * (N_COINS - 1));
        uint256 _admin_fee = swap.admin_fee();
        uint256 amp = swap.A();

        uint256 token_supply = token(_swap).totalSupply();
        //Initial invariant
        uint256 D0;
        uint256[N_COINS] memory old_balances = balances(_swap);

        if (token_supply > 0) {
            D0 = get_D_mem(_swap, old_balances, amp);
        }
        uint256[N_COINS] memory new_balances = [old_balances[0], old_balances[1]];

        for (uint256 i = 0; i < N_COINS; i++) {
            if (token_supply == 0) {
                require(amounts[i] > 0, "Initial deposit requires all coins");
            }
            new_balances[i] = old_balances[i] + amounts[i];
        }

        // Invariant after change
        uint256 D1 = get_D_mem(_swap, new_balances, amp);
        require(D1 > D0, "D1 must be greater than D0");
        if (token_supply > 0) {
            // Only account for fees if we are not the first to deposit
            for (uint256 i = 0; i < N_COINS; i++) {
                uint256 ideal_balance = (D1 * old_balances[i]) / D0;
                uint256 difference;
                if (ideal_balance > new_balances[i]) {
                    difference = ideal_balance - new_balances[i];
                } else {
                    difference = new_balances[i] - ideal_balance;
                }
                uint256 coinFee;
                coinFee = (_fee * difference) / FEE_DENOMINATOR;
                liquidityFee[i] = ((coinFee * _admin_fee) / FEE_DENOMINATOR);
            }
        }
    }

    function get_remove_liquidity_imbalance_fee(
        address _swap,
        uint256[N_COINS] memory amounts
    ) external view returns (uint256[N_COINS] memory liquidityFee) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256 _fee = (swap.fee() * N_COINS) / (4 * (N_COINS - 1));
        uint256 _admin_fee = swap.admin_fee();
        uint256 amp = swap.A();

        uint256[N_COINS] memory old_balances = balances(_swap);
        uint256[N_COINS] memory new_balances = [old_balances[0], old_balances[1]];
        uint256 D0 = get_D_mem(_swap, old_balances, amp);
        for (uint256 i = 0; i < N_COINS; i++) {
            new_balances[i] -= amounts[i];
        }
        uint256 D1 = get_D_mem(_swap, new_balances, amp);
        for (uint256 i = 0; i < N_COINS; i++) {
            uint256 ideal_balance = (D1 * old_balances[i]) / D0;
            uint256 difference;
            if (ideal_balance > new_balances[i]) {
                difference = ideal_balance - new_balances[i];
            } else {
                difference = new_balances[i] - ideal_balance;
            }
            uint256 coinFee;
            coinFee = (_fee * difference) / FEE_DENOMINATOR;
            liquidityFee[i] = ((coinFee * _admin_fee) / FEE_DENOMINATOR);
        }
    }

    function _xp_mem(
        address _swap,
        uint256[N_COINS] memory _balances
    ) public view returns (uint256[N_COINS] memory result) {
        result = RATES(_swap);
        for (uint256 i = 0; i < N_COINS; i++) {
            result[i] = (result[i] * _balances[i]) / PRECISION;
        }
    }

    function get_D(uint256[N_COINS] memory xp, uint256 amp) internal pure returns (uint256) {
        uint256 S;
        for (uint256 i = 0; i < N_COINS; i++) {
            S += xp[i];
        }
        if (S == 0) {
            return 0;
        }

        uint256 Dprev;
        uint256 D = S;
        uint256 Ann = amp * N_COINS;
        for (uint256 j = 0; j < 255; j++) {
            uint256 D_P = D;
            for (uint256 k = 0; k < N_COINS; k++) {
                D_P = (D_P * D) / (xp[k] * N_COINS); // If division by 0, this will be borked: only withdrawal will work. And that is good
            }
            Dprev = D;
            D = ((Ann * S + D_P * N_COINS) * D) / ((Ann - 1) * D + (N_COINS + 1) * D_P);
            // Equality with the precision of 1
            if (D > Dprev) {
                if (D - Dprev <= 1) {
                    break;
                }
            } else {
                if (Dprev - D <= 1) {
                    break;
                }
            }
        }
        return D;
    }

    function get_y(
        address _swap,
        uint256 i,
        uint256 j,
        uint256 x,
        uint256[N_COINS] memory xp_
    ) internal view returns (uint256) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256 amp = swap.A();
        uint256 D = get_D(xp_, amp);
        uint256 c = D;
        uint256 S_;
        uint256 Ann = amp * N_COINS;

        uint256 _x;
        for (uint256 k = 0; k < N_COINS; k++) {
            if (k == i) {
                _x = x;
            } else if (k != j) {
                _x = xp_[k];
            } else {
                continue;
            }
            S_ += _x;
            c = (c * D) / (_x * N_COINS);
        }
        c = (c * D) / (Ann * N_COINS);
        uint256 b = S_ + D / Ann; // - D
        uint256 y_prev;
        uint256 y = D;

        for (uint256 m = 0; m < 255; m++) {
            y_prev = y;
            y = (y * y + c) / (2 * y + b - D);
            // Equality with the precision of 1
            if (y > y_prev) {
                if (y - y_prev <= 1) {
                    break;
                }
            } else {
                if (y_prev - y <= 1) {
                    break;
                }
            }
        }
        return y;
    }

    function get_exchange_fee(
        address _swap,
        uint256 i,
        uint256 j,
        uint256 dx
    ) external view returns (uint256 exFee, uint256 exAdminFee) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);

        uint256[N_COINS] memory old_balances = balances(_swap);
        uint256[N_COINS] memory xp = _xp_mem(_swap, old_balances);
        uint256[N_COINS] memory rates = RATES(_swap);
        uint256 x = xp[i] + (dx * rates[i]) / PRECISION;
        uint256 y = get_y(_swap, i, j, x, xp);

        uint256 dy = xp[j] - y - 1; //  -1 just in case there were some rounding errors
        uint256 dy_fee = (dy * swap.fee()) / FEE_DENOMINATOR;

        uint256 dy_admin_fee = (dy_fee * swap.admin_fee()) / FEE_DENOMINATOR;
        dy_fee = (dy_fee * PRECISION) / rates[j];
        dy_admin_fee = (dy_admin_fee * PRECISION) / rates[j];
        exFee = dy_fee;
        exAdminFee = dy_admin_fee;
    }

    function _xp(address _swap) internal view returns (uint256[N_COINS] memory result) {
        result = RATES(_swap);
        for (uint256 i = 0; i < N_COINS; i++) {
            result[i] = (result[i] * IPancakeStableSwap(_swap).balances(i)) / PRECISION;
        }
    }

    function get_y_D(uint256 A_, uint256 i, uint256[N_COINS] memory xp, uint256 D) internal pure returns (uint256) {
        /**
        Calculate x[i] if one reduces D from being calculated for xp to D

        Done by solving quadratic equation iteratively.
        x_1**2 + x1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A)
        x_1**2 + b*x_1 = c

        x_1 = (x_1**2 + c) / (2*x_1 + b)
        */
        // x in the input is converted to the same price/precision
        require(i < N_COINS, "dev: i above N_COINS");
        uint256 c = D;
        uint256 S_;
        uint256 Ann = A_ * N_COINS;

        uint256 _x;
        for (uint256 k = 0; k < N_COINS; k++) {
            if (k != i) {
                _x = xp[k];
            } else {
                continue;
            }
            S_ += _x;
            c = (c * D) / (_x * N_COINS);
        }
        c = (c * D) / (Ann * N_COINS);
        uint256 b = S_ + D / Ann;
        uint256 y_prev;
        uint256 y = D;

        for (uint256 k = 0; k < 255; k++) {
            y_prev = y;
            y = (y * y + c) / (2 * y + b - D);
            // Equality with the precision of 1
            if (y > y_prev) {
                if (y - y_prev <= 1) {
                    break;
                }
            } else {
                if (y_prev - y <= 1) {
                    break;
                }
            }
        }
        return y;
    }

    function _calc_withdraw_one_coin(
        address _swap,
        uint256 _token_amount,
        uint256 i
    ) internal view returns (uint256, uint256) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256 amp = swap.A();
        uint256 _fee = (swap.fee() * N_COINS) / (4 * (N_COINS - 1));
        uint256[N_COINS] memory precisions = PRECISION_MUL(_swap);

        uint256[N_COINS] memory xp = _xp(_swap);

        uint256 D0 = get_D(xp, amp);
        uint256 D1 = D0 - (_token_amount * D0) / (token(_swap).totalSupply());
        uint256[N_COINS] memory xp_reduced = xp;

        uint256 new_y = get_y_D(amp, i, xp, D1);
        uint256 dy_0 = (xp[i] - new_y) / precisions[i]; // w/o fees

        for (uint256 k = 0; k < N_COINS; k++) {
            uint256 dx_expected;
            if (k == i) {
                dx_expected = (xp[k] * D1) / D0 - new_y;
            } else {
                dx_expected = xp[k] - (xp[k] * D1) / D0;
            }
            xp_reduced[k] -= (_fee * dx_expected) / FEE_DENOMINATOR;
        }
        uint256 dy = xp_reduced[i] - get_y_D(amp, i, xp_reduced, D1);
        dy = (dy - 1) / precisions[i]; // Withdraw less to account for rounding errors

        return (dy, dy_0 - dy);
    }

    function get_remove_liquidity_one_coin_fee(
        address _swap,
        uint256 _token_amount,
        uint256 i
    ) external view returns (uint256 adminFee) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        (, uint256 dy_fee) = _calc_withdraw_one_coin(_swap, _token_amount, i);
        adminFee = (dy_fee * swap.admin_fee()) / FEE_DENOMINATOR;
    }

    function get_dx(address _swap, uint256 i, uint256 j, uint256 dy, uint256 max_dx) external view returns (uint256) {
        IPancakeStableSwap swap = IPancakeStableSwap(_swap);
        uint256[N_COINS] memory old_balances = balances(_swap);
        uint256[N_COINS] memory xp = _xp_mem(_swap, old_balances);

        uint256 dy_with_fee = (dy * FEE_DENOMINATOR) / (FEE_DENOMINATOR - swap.fee());
        require(dy_with_fee < old_balances[j], "Excess balance");
        uint256[N_COINS] memory rates = RATES(_swap);
        uint256 y = xp[j] - (dy_with_fee * rates[j]) / PRECISION;
        uint256 x = get_y(_swap, j, i, y, xp);

        uint256 dx = x - xp[i];

        // Convert all to real units
        dx = (dx * PRECISION) / rates[i] + 1; // +1 for round lose.
        require(dx <= max_dx, "Exchange resulted in fewer coins than expected");
        return dx;
    }
}
        

contracts/interfaces/IPancakeStableSwap.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

interface IPancakeStableSwap {
    function token() external view returns (address);

    function balances(uint256 i) external view returns (uint256);

    function N_COINS() external view returns (uint256);

    function RATES(uint256 i) external view returns (uint256);

    function coins(uint256 i) external view returns (address);

    function PRECISION_MUL(uint256 i) external view returns (uint256);

    function fee() external view returns (uint256);

    function admin_fee() external view returns (uint256);

    function A() external view returns (uint256);

    function get_D_mem(uint256[2] memory _balances, uint256 amp) external view returns (uint256);

    function get_y(uint256 i, uint256 j, uint256 x, uint256[2] memory xp_) external view returns (uint256);

    function calc_withdraw_one_coin(uint256 _token_amount, uint256 i) external view returns (uint256);
}
          

contracts/openzeppelin/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, 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);
}
          

contracts/openzeppelin/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for 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'
        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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}
          

contracts/openzeppelin/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

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

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":100,"enabled":true},"libraries":{}}
              

Contract ABI

[{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FEE_DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"N_COINS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"PRECISION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"swapPRECISION_MUL","internalType":"uint256[2]"}],"name":"PRECISION_MUL","inputs":[{"type":"address","name":"_swap","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"swapRATES","internalType":"uint256[2]"}],"name":"RATES","inputs":[{"type":"address","name":"_swap","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"result","internalType":"uint256[2]"}],"name":"_xp_mem","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256[2]","name":"_balances","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"swapBalances","internalType":"uint256[2]"}],"name":"balances","inputs":[{"type":"address","name":"_swap","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"","internalType":"uint256[2]"}],"name":"calc_coins_amount","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"get_D_mem","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256[2]","name":"_balances","internalType":"uint256[2]"},{"type":"uint256","name":"amp","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"liquidityFee","internalType":"uint256[2]"}],"name":"get_add_liquidity_fee","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256[2]","name":"amounts","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"get_add_liquidity_mint_amount","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256[2]","name":"amounts","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"get_dx","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256","name":"i","internalType":"uint256"},{"type":"uint256","name":"j","internalType":"uint256"},{"type":"uint256","name":"dy","internalType":"uint256"},{"type":"uint256","name":"max_dx","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"exFee","internalType":"uint256"},{"type":"uint256","name":"exAdminFee","internalType":"uint256"}],"name":"get_exchange_fee","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256","name":"i","internalType":"uint256"},{"type":"uint256","name":"j","internalType":"uint256"},{"type":"uint256","name":"dx","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2]","name":"liquidityFee","internalType":"uint256[2]"}],"name":"get_remove_liquidity_imbalance_fee","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256[2]","name":"amounts","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"adminFee","internalType":"uint256"}],"name":"get_remove_liquidity_one_coin_fee","inputs":[{"type":"address","name":"_swap","internalType":"address"},{"type":"uint256","name":"_token_amount","internalType":"uint256"},{"type":"uint256","name":"i","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"token","inputs":[{"type":"address","name":"_swap","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b50612544806100206000396000f3fe608060405234801561001057600080fd5b50600436106100e05760003560e01c80636c92118e116100875780636c92118e146101ab5780636d46a1db146101be578063aaf5eb68146101e9578063ae6452b4146101f8578063b6f03ac11461020b578063ca4bc7141461021e578063d73792a914610231578063f74d92e71461023d57600080fd5b80630d098fa9146100e557806315a4d7fe1461010e5780631f38b0c7146101215780632494acbd14610149578063279a07cc1461015c57806327e235e31461016f57806329357750146101825780635779dcd814610198575b600080fd5b6100f86100f33660046121fe565b610250565b6040516101059190612234565b60405180910390f35b6100f861011c366004612265565b610694565b61013461012f366004612291565b6107dd565b60408051928352602083019190915201610105565b6100f86101573660046122cc565b610a22565b6100f861016a3660046122cc565b610ace565b6100f861017d3660046122cc565b610b74565b61018a600281565b604051908152602001610105565b61018a6101a63660046122f0565b610c1a565b6100f86101b93660046121fe565b610cb2565b6101d16101cc3660046122cc565b610ff6565b6040516001600160a01b039091168152602001610105565b61018a670de0b6b3a764000081565b6100f86102063660046121fe565b61105a565b61018a6102193660046121fe565b6110f4565b61018a61022c366004612325565b611529565b61018a6402540be40081565b61018a61024b366004612369565b61176d565b61025861214a565b826000610267600160026123be565b6102729060046123d5565b6002836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d691906123f4565b6102e091906123d5565b6102ea919061240d565b90506000826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035091906123f4565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b691906123f4565b905060006103c388610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610400573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042491906123f4565b90506000806104328a610b74565b90508215610448576104458a828661176d565b91505b60006040518060400160405280836000600281106104685761046861242f565b60200201518152602001836001600281106104855761048561242f565b60200201519052905060005b600281101561053f57846104de5760008b82600281106104b3576104b361242f565b6020020151116104de5760405162461bcd60e51b81526004016104d590612445565b60405180910390fd5b8a81600281106104f0576104f061242f565b60200201518382600281106105075761050761242f565b60200201516105169190612487565b8282600281106105285761052861242f565b6020020152806105378161249f565b915050610491565b50600061054d8c838861176d565b905083811161056e5760405162461bcd60e51b81526004016104d5906124ba565b84156106855760005b6002811015610683576000858583600281106105955761059561242f565b60200201516105a490856123d5565b6105ae919061240d565b905060008483600281106105c4576105c461242f565b60200201518211156105f8578483600281106105e2576105e261242f565b60200201516105f190836123be565b905061061d565b8185846002811061060b5761060b61242f565b602002015161061a91906123be565b90505b60006402540be40061062f838e6123d5565b610639919061240d565b90506402540be40061064b8c836123d5565b610655919061240d565b8e85600281106106675761066761242f565b60200201525082915061067b90508161249f565b915050610577565b505b50505050505050505092915050565b61069c61214a565b60006106a784610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070891906123f4565b905061071261214a565b60005b60028110156107d25760008386886001600160a01b0316634903b0d1856040518263ffffffff1660e01b815260040161075091815260200190565b602060405180830381865afa15801561076d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079191906123f4565b61079b91906123d5565b6107a5919061240d565b9050808383600281106107ba576107ba61242f565b602002015250806107ca8161249f565b915050610715565b509150505b92915050565b60008085816107eb82610b74565b905060006107f9898361105a565b905060006108068a610a22565b90506000670de0b6b3a7640000828b600281106108255761082561242f565b6020020151610834908a6123d5565b61083e919061240d565b838b600281106108505761085061242f565b602002015161085f9190612487565b905060006108708c8c8c858861178a565b90506000600182868d600281106108895761088961242f565b602002015161089891906123be565b6108a291906123be565b905060006402540be400886001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e91906123f4565b61091890846123d5565b610922919061240d565b905060006402540be400896001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e91906123f4565b61099890846123d5565b6109a2919061240d565b9050858d600281106109b6576109b661242f565b60200201516109cd670de0b6b3a7640000846123d5565b6109d7919061240d565b9150858d600281106109eb576109eb61242f565b6020020151610a02670de0b6b3a7640000836123d5565b610a0c919061240d565b919f919e50909c50505050505050505050505050565b610a2a61214a565b60005b6002811015610ac8576040516318880f5d60e21b8152600481018290526001600160a01b038416906362203d7490602401602060405180830381865afa158015610a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9f91906123f4565b828260028110610ab157610ab161242f565b602002015280610ac08161249f565b915050610a2d565b50919050565b610ad661214a565b60005b6002811015610ac857604051631f6be8d960e21b8152600481018290526001600160a01b03841690637dafa36490602401602060405180830381865afa158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4b91906123f4565b828260028110610b5d57610b5d61242f565b602002015280610b6c8161249f565b915050610ad9565b610b7c61214a565b60005b6002811015610ac857604051634903b0d160e01b8152600481018290526001600160a01b03841690634903b0d190602401602060405180830381865afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906123f4565b828260028110610c0357610c0361242f565b602002015280610c128161249f565b915050610b7f565b60008381610c2982868661198a565b9150506402540be400826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9491906123f4565b610c9e90836123d5565b610ca8919061240d565b9695505050505050565b610cba61214a565b826000610cc9600160026123be565b610cd49060046123d5565b6002836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3891906123f4565b610d4291906123d5565b610d4c919061240d565b90506000826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906123f4565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1891906123f4565b90506000610e2588610b74565b90506000604051806040016040528083600060028110610e4757610e4761242f565b6020020151815260200183600160028110610e6457610e6461242f565b6020020151905290506000610e7a8a848661176d565b905060005b6002811015610ed757898160028110610e9a57610e9a61242f565b6020020151838260028110610eb157610eb161242f565b60200201818151610ec291906123be565b90525080610ecf8161249f565b915050610e7f565b506000610ee58b848761176d565b905060005b600281101561068557600083868360028110610f0857610f0861242f565b6020020151610f1790856123d5565b610f21919061240d565b90506000858360028110610f3757610f3761242f565b6020020151821115610f6b57858360028110610f5557610f5561242f565b6020020151610f6490836123be565b9050610f90565b81868460028110610f7e57610f7e61242f565b6020020151610f8d91906123be565b90505b60006402540be400610fa2838d6123d5565b610fac919061240d565b90506402540be400610fbe8b836123d5565b610fc8919061240d565b8d8560028110610fda57610fda61242f565b602002015250829150610fee90508161249f565b915050610eea565b6000816001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d791906124f1565b61106261214a565b61106b83610a22565b905060005b60028110156110ed57670de0b6b3a76400008382600281106110945761109461242f565b60200201518383600281106110ab576110ab61242f565b60200201516110ba91906123d5565b6110c4919061240d565b8282600281106110d6576110d661242f565b6020020152806110e58161249f565b915050611070565b5092915050565b6000826110ff61214a565b600061110d600160026123be565b6111189060046123d5565b6002846001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117c91906123f4565b61118691906123d5565b611190919061240d565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f691906123f4565b9050600061120388610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611240573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126491906123f4565b90506000806112728a610b74565b90508215611288576112858a828661176d565b91505b60006040518060400160405280836000600281106112a8576112a861242f565b60200201518152602001836001600281106112c5576112c561242f565b60200201519052905060005b600281101561137657846113155760008b82600281106112f3576112f361242f565b6020020151116113155760405162461bcd60e51b81526004016104d590612445565b8a81600281106113275761132761242f565b602002015183826002811061133e5761133e61242f565b602002015161134d9190612487565b82826002811061135f5761135f61242f565b60200201528061136e8161249f565b9150506112d1565b5060006113848c838861176d565b90508381116113a55760405162461bcd60e51b81526004016104d5906124ba565b8085156114e85760005b60028110156114d9576000868683600281106113cd576113cd61242f565b60200201516113dc90866123d5565b6113e6919061240d565b905060008583600281106113fc576113fc61242f565b60200201518211156114305785836002811061141a5761141a61242f565b602002015161142990836123be565b9050611455565b818684600281106114435761144361242f565b602002015161145291906123be565b90505b6402540be400611465828d6123d5565b61146f919061240d565b8c84600281106114815761148161242f565b60200201528b83600281106114985761149861242f565b60200201518684600281106114af576114af61242f565b602002018181516114c091906123be565b9052508291506114d190508161249f565b9150506113af565b506114e58d848961176d565b90505b6000866114f6575081611518565b8561150181846123be565b61150b90896123d5565b611515919061240d565b90505b9d9c50505050505050505050505050565b6000858161153682610b74565b90506000611544898361105a565b90506000836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa91906123f4565b6115b9906402540be4006123be565b6115c86402540be400896123d5565b6115d2919061240d565b90508288600281106115e6576115e661242f565b6020020151811061162a5760405162461bcd60e51b815260206004820152600e60248201526d4578636573732062616c616e636560901b60448201526064016104d5565b60006116358b610a22565b90506000670de0b6b3a7640000828b600281106116545761165461242f565b602002015161166390856123d5565b61166d919061240d565b848b6002811061167f5761167f61242f565b602002015161168e91906123be565b9050600061169f8d8c8e858961178a565b90506000858d600281106116b5576116b561242f565b60200201516116c490836123be565b9050838d600281106116d8576116d861242f565b60200201516116ef670de0b6b3a7640000836123d5565b6116f9919061240d565b611704906001612487565b9050898111156115185760405162461bcd60e51b815260206004820152602e60248201527f45786368616e676520726573756c74656420696e20666577657220636f696e7360448201526d081d1a185b88195e1c1958dd195960921b60648201526084016104d5565b600061178261177c858561105a565b83611d13565b949350505050565b6000808690506000816001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906123f4565b905060006118028583611d13565b9050806000806118136002866123d5565b90506000805b600281101561189c578c811415611832578a915061185c565b8b81146118575789816002811061184b5761184b61242f565b6020020151915061185c565b61188a565b6118668285612487565b93506118736002836123d5565b61187d87876123d5565b611887919061240d565b94505b806118948161249f565b915050611819565b506118a86002836123d5565b6118b286866123d5565b6118bc919061240d565b935060006118ca838761240d565b6118d49085612487565b9050600086815b60ff8110156119765781925088848360026118f691906123d5565b6119009190612487565b61190a91906123be565b8861191584806123d5565b61191f9190612487565b611929919061240d565b91508282111561194e57600161193f84846123be565b1161194957611976565b611964565b600161195a83856123be565b1161196457611976565b8061196e8161249f565b9150506118db565b509f9e505050505050505050505050505050565b60008060008590506000816001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f691906123f4565b90506000611a06600160026123be565b611a119060046123d5565b6002846001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7591906123f4565b611a7f91906123d5565b611a89919061240d565b90506000611a9689610ace565b90506000611aa38a611ea9565b90506000611ab18286611d13565b90506000611abe8c610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1f91906123f4565b611b29838d6123d5565b611b33919061240d565b611b3d90836123be565b9050826000611b4e888d8486611f8f565b90506000868d60028110611b6457611b6461242f565b602002015182878f60028110611b7c57611b7c61242f565b6020020151611b8b91906123be565b611b95919061240d565b905060005b6002811015611c915760008e821415611bec578387878a8560028110611bc257611bc261242f565b6020020151611bd191906123d5565b611bdb919061240d565b611be591906123be565b9050611c3d565b8686898460028110611c0057611c0061242f565b6020020151611c0f91906123d5565b611c19919061240d565b888360028110611c2b57611c2b61242f565b6020020151611c3a91906123be565b90505b6402540be400611c4d828c6123d5565b611c57919061240d565b858360028110611c6957611c6961242f565b60200201818151611c7a91906123be565b905250819050611c898161249f565b915050611b9a565b506000611ca08a8f8688611f8f565b848f60028110611cb257611cb261242f565b6020020151611cc191906123be565b9050878e60028110611cd557611cd561242f565b6020020151611ce56001836123be565b611cef919061240d565b905080611cfc81846123be565b9c509c505050505050505050505050935093915050565b60008060005b6002811015611d5757848160028110611d3457611d3461242f565b6020020151611d439083612487565b915080611d4f8161249f565b915050611d19565b5080611d675760009150506107d7565b60008181611d766002876123d5565b905060005b60ff811015611e9d578260005b6002811015611ddc5760028a8260028110611da557611da561242f565b6020020151611db491906123d5565b611dbe86846123d5565b611dc8919061240d565b915080611dd48161249f565b915050611d88565b508394508060026001611def9190612487565b611df991906123d5565b84611e056001866123be565b611e0f91906123d5565b611e199190612487565b84611e256002846123d5565b611e2f89876123d5565b611e399190612487565b611e4391906123d5565b611e4d919061240d565b935084841115611e73576001611e6386866123be565b11611e6e5750611e9d565b611e8a565b6001611e7f85876123be565b11611e8a5750611e9d565b5080611e958161249f565b915050611d7b565b50909695505050505050565b611eb161214a565b611eba82610a22565b905060005b6002811015610ac857604051634903b0d160e01b815260048101829052670de0b6b3a7640000906001600160a01b03851690634903b0d190602401602060405180830381865afa158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b91906123f4565b838360028110611f4d57611f4d61242f565b6020020151611f5c91906123d5565b611f66919061240d565b828260028110611f7857611f7861242f565b602002015280611f878161249f565b915050611ebf565b600060028410611fd85760405162461bcd60e51b81526020600482015260146024820152736465763a20692061626f7665204e5f434f494e5360601b60448201526064016104d5565b81600080611fe76002896123d5565b90506000805b60028110156120605788811461201b5787816002811061200f5761200f61242f565b60200201519150612020565b61204e565b61202a8285612487565b93506120376002836123d5565b61204188876123d5565b61204b919061240d565b94505b806120588161249f565b915050611fed565b5061206c6002836123d5565b61207687866123d5565b612080919061240d565b9350600061208e838861240d565b6120989085612487565b9050600087815b60ff81101561213a5781925089848360026120ba91906123d5565b6120c49190612487565b6120ce91906123be565b886120d984806123d5565b6120e39190612487565b6120ed919061240d565b91508282111561211257600161210384846123be565b1161210d5761213a565b612128565b600161211e83856123be565b116121285761213a565b806121328161249f565b91505061209f565b509b9a5050505050505050505050565b60405180604001604052806002906020820280368337509192915050565b6001600160a01b038116811461217d57600080fd5b50565b600082601f83011261219157600080fd5b6040516040810181811067ffffffffffffffff821117156121c257634e487b7160e01b600052604160045260246000fd5b80604052508060408401858111156121d957600080fd5b845b818110156121f35780358352602092830192016121db565b509195945050505050565b6000806060838503121561221157600080fd5b823561221c81612168565b915061222b8460208501612180565b90509250929050565b60408101818360005b600281101561225c57815183526020928301929091019060010161223d565b50505092915050565b6000806040838503121561227857600080fd5b823561228381612168565b946020939093013593505050565b600080600080608085870312156122a757600080fd5b84356122b281612168565b966020860135965060408601359560600135945092505050565b6000602082840312156122de57600080fd5b81356122e981612168565b9392505050565b60008060006060848603121561230557600080fd5b833561231081612168565b95602085013595506040909401359392505050565b600080600080600060a0868803121561233d57600080fd5b853561234881612168565b97602087013597506040870135966060810135965060800135945092505050565b60008060006080848603121561237e57600080fd5b833561238981612168565b92506123988560208601612180565b9150606084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b6000828210156123d0576123d06123a8565b500390565b60008160001904831182151516156123ef576123ef6123a8565b500290565b60006020828403121561240657600080fd5b5051919050565b60008261242a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526022908201527f496e697469616c206465706f73697420726571756972657320616c6c20636f696040820152616e7360f01b606082015260800190565b6000821982111561249a5761249a6123a8565b500190565b60006000198214156124b3576124b36123a8565b5060010190565b6020808252601a908201527f4431206d7573742062652067726561746572207468616e204430000000000000604082015260600190565b60006020828403121561250357600080fd5b81516122e98161216856fea2646970667358221220d34c338ad761fc39f8d672d458512d99f4ea5e46d712dda8a979c5a9c038664f64736f6c634300080a0033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100e05760003560e01c80636c92118e116100875780636c92118e146101ab5780636d46a1db146101be578063aaf5eb68146101e9578063ae6452b4146101f8578063b6f03ac11461020b578063ca4bc7141461021e578063d73792a914610231578063f74d92e71461023d57600080fd5b80630d098fa9146100e557806315a4d7fe1461010e5780631f38b0c7146101215780632494acbd14610149578063279a07cc1461015c57806327e235e31461016f57806329357750146101825780635779dcd814610198575b600080fd5b6100f86100f33660046121fe565b610250565b6040516101059190612234565b60405180910390f35b6100f861011c366004612265565b610694565b61013461012f366004612291565b6107dd565b60408051928352602083019190915201610105565b6100f86101573660046122cc565b610a22565b6100f861016a3660046122cc565b610ace565b6100f861017d3660046122cc565b610b74565b61018a600281565b604051908152602001610105565b61018a6101a63660046122f0565b610c1a565b6100f86101b93660046121fe565b610cb2565b6101d16101cc3660046122cc565b610ff6565b6040516001600160a01b039091168152602001610105565b61018a670de0b6b3a764000081565b6100f86102063660046121fe565b61105a565b61018a6102193660046121fe565b6110f4565b61018a61022c366004612325565b611529565b61018a6402540be40081565b61018a61024b366004612369565b61176d565b61025861214a565b826000610267600160026123be565b6102729060046123d5565b6002836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d691906123f4565b6102e091906123d5565b6102ea919061240d565b90506000826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035091906123f4565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b691906123f4565b905060006103c388610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610400573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042491906123f4565b90506000806104328a610b74565b90508215610448576104458a828661176d565b91505b60006040518060400160405280836000600281106104685761046861242f565b60200201518152602001836001600281106104855761048561242f565b60200201519052905060005b600281101561053f57846104de5760008b82600281106104b3576104b361242f565b6020020151116104de5760405162461bcd60e51b81526004016104d590612445565b60405180910390fd5b8a81600281106104f0576104f061242f565b60200201518382600281106105075761050761242f565b60200201516105169190612487565b8282600281106105285761052861242f565b6020020152806105378161249f565b915050610491565b50600061054d8c838861176d565b905083811161056e5760405162461bcd60e51b81526004016104d5906124ba565b84156106855760005b6002811015610683576000858583600281106105955761059561242f565b60200201516105a490856123d5565b6105ae919061240d565b905060008483600281106105c4576105c461242f565b60200201518211156105f8578483600281106105e2576105e261242f565b60200201516105f190836123be565b905061061d565b8185846002811061060b5761060b61242f565b602002015161061a91906123be565b90505b60006402540be40061062f838e6123d5565b610639919061240d565b90506402540be40061064b8c836123d5565b610655919061240d565b8e85600281106106675761066761242f565b60200201525082915061067b90508161249f565b915050610577565b505b50505050505050505092915050565b61069c61214a565b60006106a784610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070891906123f4565b905061071261214a565b60005b60028110156107d25760008386886001600160a01b0316634903b0d1856040518263ffffffff1660e01b815260040161075091815260200190565b602060405180830381865afa15801561076d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079191906123f4565b61079b91906123d5565b6107a5919061240d565b9050808383600281106107ba576107ba61242f565b602002015250806107ca8161249f565b915050610715565b509150505b92915050565b60008085816107eb82610b74565b905060006107f9898361105a565b905060006108068a610a22565b90506000670de0b6b3a7640000828b600281106108255761082561242f565b6020020151610834908a6123d5565b61083e919061240d565b838b600281106108505761085061242f565b602002015161085f9190612487565b905060006108708c8c8c858861178a565b90506000600182868d600281106108895761088961242f565b602002015161089891906123be565b6108a291906123be565b905060006402540be400886001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e91906123f4565b61091890846123d5565b610922919061240d565b905060006402540be400896001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e91906123f4565b61099890846123d5565b6109a2919061240d565b9050858d600281106109b6576109b661242f565b60200201516109cd670de0b6b3a7640000846123d5565b6109d7919061240d565b9150858d600281106109eb576109eb61242f565b6020020151610a02670de0b6b3a7640000836123d5565b610a0c919061240d565b919f919e50909c50505050505050505050505050565b610a2a61214a565b60005b6002811015610ac8576040516318880f5d60e21b8152600481018290526001600160a01b038416906362203d7490602401602060405180830381865afa158015610a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9f91906123f4565b828260028110610ab157610ab161242f565b602002015280610ac08161249f565b915050610a2d565b50919050565b610ad661214a565b60005b6002811015610ac857604051631f6be8d960e21b8152600481018290526001600160a01b03841690637dafa36490602401602060405180830381865afa158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4b91906123f4565b828260028110610b5d57610b5d61242f565b602002015280610b6c8161249f565b915050610ad9565b610b7c61214a565b60005b6002811015610ac857604051634903b0d160e01b8152600481018290526001600160a01b03841690634903b0d190602401602060405180830381865afa158015610bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf191906123f4565b828260028110610c0357610c0361242f565b602002015280610c128161249f565b915050610b7f565b60008381610c2982868661198a565b9150506402540be400826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9491906123f4565b610c9e90836123d5565b610ca8919061240d565b9695505050505050565b610cba61214a565b826000610cc9600160026123be565b610cd49060046123d5565b6002836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3891906123f4565b610d4291906123d5565b610d4c919061240d565b90506000826001600160a01b031663fee3f7f96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906123f4565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1891906123f4565b90506000610e2588610b74565b90506000604051806040016040528083600060028110610e4757610e4761242f565b6020020151815260200183600160028110610e6457610e6461242f565b6020020151905290506000610e7a8a848661176d565b905060005b6002811015610ed757898160028110610e9a57610e9a61242f565b6020020151838260028110610eb157610eb161242f565b60200201818151610ec291906123be565b90525080610ecf8161249f565b915050610e7f565b506000610ee58b848761176d565b905060005b600281101561068557600083868360028110610f0857610f0861242f565b6020020151610f1790856123d5565b610f21919061240d565b90506000858360028110610f3757610f3761242f565b6020020151821115610f6b57858360028110610f5557610f5561242f565b6020020151610f6490836123be565b9050610f90565b81868460028110610f7e57610f7e61242f565b6020020151610f8d91906123be565b90505b60006402540be400610fa2838d6123d5565b610fac919061240d565b90506402540be400610fbe8b836123d5565b610fc8919061240d565b8d8560028110610fda57610fda61242f565b602002015250829150610fee90508161249f565b915050610eea565b6000816001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d791906124f1565b61106261214a565b61106b83610a22565b905060005b60028110156110ed57670de0b6b3a76400008382600281106110945761109461242f565b60200201518383600281106110ab576110ab61242f565b60200201516110ba91906123d5565b6110c4919061240d565b8282600281106110d6576110d661242f565b6020020152806110e58161249f565b915050611070565b5092915050565b6000826110ff61214a565b600061110d600160026123be565b6111189060046123d5565b6002846001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117c91906123f4565b61118691906123d5565b611190919061240d565b90506000836001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f691906123f4565b9050600061120388610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611240573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126491906123f4565b90506000806112728a610b74565b90508215611288576112858a828661176d565b91505b60006040518060400160405280836000600281106112a8576112a861242f565b60200201518152602001836001600281106112c5576112c561242f565b60200201519052905060005b600281101561137657846113155760008b82600281106112f3576112f361242f565b6020020151116113155760405162461bcd60e51b81526004016104d590612445565b8a81600281106113275761132761242f565b602002015183826002811061133e5761133e61242f565b602002015161134d9190612487565b82826002811061135f5761135f61242f565b60200201528061136e8161249f565b9150506112d1565b5060006113848c838861176d565b90508381116113a55760405162461bcd60e51b81526004016104d5906124ba565b8085156114e85760005b60028110156114d9576000868683600281106113cd576113cd61242f565b60200201516113dc90866123d5565b6113e6919061240d565b905060008583600281106113fc576113fc61242f565b60200201518211156114305785836002811061141a5761141a61242f565b602002015161142990836123be565b9050611455565b818684600281106114435761144361242f565b602002015161145291906123be565b90505b6402540be400611465828d6123d5565b61146f919061240d565b8c84600281106114815761148161242f565b60200201528b83600281106114985761149861242f565b60200201518684600281106114af576114af61242f565b602002018181516114c091906123be565b9052508291506114d190508161249f565b9150506113af565b506114e58d848961176d565b90505b6000866114f6575081611518565b8561150181846123be565b61150b90896123d5565b611515919061240d565b90505b9d9c50505050505050505050505050565b6000858161153682610b74565b90506000611544898361105a565b90506000836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa91906123f4565b6115b9906402540be4006123be565b6115c86402540be400896123d5565b6115d2919061240d565b90508288600281106115e6576115e661242f565b6020020151811061162a5760405162461bcd60e51b815260206004820152600e60248201526d4578636573732062616c616e636560901b60448201526064016104d5565b60006116358b610a22565b90506000670de0b6b3a7640000828b600281106116545761165461242f565b602002015161166390856123d5565b61166d919061240d565b848b6002811061167f5761167f61242f565b602002015161168e91906123be565b9050600061169f8d8c8e858961178a565b90506000858d600281106116b5576116b561242f565b60200201516116c490836123be565b9050838d600281106116d8576116d861242f565b60200201516116ef670de0b6b3a7640000836123d5565b6116f9919061240d565b611704906001612487565b9050898111156115185760405162461bcd60e51b815260206004820152602e60248201527f45786368616e676520726573756c74656420696e20666577657220636f696e7360448201526d081d1a185b88195e1c1958dd195960921b60648201526084016104d5565b600061178261177c858561105a565b83611d13565b949350505050565b6000808690506000816001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906123f4565b905060006118028583611d13565b9050806000806118136002866123d5565b90506000805b600281101561189c578c811415611832578a915061185c565b8b81146118575789816002811061184b5761184b61242f565b6020020151915061185c565b61188a565b6118668285612487565b93506118736002836123d5565b61187d87876123d5565b611887919061240d565b94505b806118948161249f565b915050611819565b506118a86002836123d5565b6118b286866123d5565b6118bc919061240d565b935060006118ca838761240d565b6118d49085612487565b9050600086815b60ff8110156119765781925088848360026118f691906123d5565b6119009190612487565b61190a91906123be565b8861191584806123d5565b61191f9190612487565b611929919061240d565b91508282111561194e57600161193f84846123be565b1161194957611976565b611964565b600161195a83856123be565b1161196457611976565b8061196e8161249f565b9150506118db565b509f9e505050505050505050505050505050565b60008060008590506000816001600160a01b031663f446c1d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f691906123f4565b90506000611a06600160026123be565b611a119060046123d5565b6002846001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7591906123f4565b611a7f91906123d5565b611a89919061240d565b90506000611a9689610ace565b90506000611aa38a611ea9565b90506000611ab18286611d13565b90506000611abe8c610ff6565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1f91906123f4565b611b29838d6123d5565b611b33919061240d565b611b3d90836123be565b9050826000611b4e888d8486611f8f565b90506000868d60028110611b6457611b6461242f565b602002015182878f60028110611b7c57611b7c61242f565b6020020151611b8b91906123be565b611b95919061240d565b905060005b6002811015611c915760008e821415611bec578387878a8560028110611bc257611bc261242f565b6020020151611bd191906123d5565b611bdb919061240d565b611be591906123be565b9050611c3d565b8686898460028110611c0057611c0061242f565b6020020151611c0f91906123d5565b611c19919061240d565b888360028110611c2b57611c2b61242f565b6020020151611c3a91906123be565b90505b6402540be400611c4d828c6123d5565b611c57919061240d565b858360028110611c6957611c6961242f565b60200201818151611c7a91906123be565b905250819050611c898161249f565b915050611b9a565b506000611ca08a8f8688611f8f565b848f60028110611cb257611cb261242f565b6020020151611cc191906123be565b9050878e60028110611cd557611cd561242f565b6020020151611ce56001836123be565b611cef919061240d565b905080611cfc81846123be565b9c509c505050505050505050505050935093915050565b60008060005b6002811015611d5757848160028110611d3457611d3461242f565b6020020151611d439083612487565b915080611d4f8161249f565b915050611d19565b5080611d675760009150506107d7565b60008181611d766002876123d5565b905060005b60ff811015611e9d578260005b6002811015611ddc5760028a8260028110611da557611da561242f565b6020020151611db491906123d5565b611dbe86846123d5565b611dc8919061240d565b915080611dd48161249f565b915050611d88565b508394508060026001611def9190612487565b611df991906123d5565b84611e056001866123be565b611e0f91906123d5565b611e199190612487565b84611e256002846123d5565b611e2f89876123d5565b611e399190612487565b611e4391906123d5565b611e4d919061240d565b935084841115611e73576001611e6386866123be565b11611e6e5750611e9d565b611e8a565b6001611e7f85876123be565b11611e8a5750611e9d565b5080611e958161249f565b915050611d7b565b50909695505050505050565b611eb161214a565b611eba82610a22565b905060005b6002811015610ac857604051634903b0d160e01b815260048101829052670de0b6b3a7640000906001600160a01b03851690634903b0d190602401602060405180830381865afa158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b91906123f4565b838360028110611f4d57611f4d61242f565b6020020151611f5c91906123d5565b611f66919061240d565b828260028110611f7857611f7861242f565b602002015280611f878161249f565b915050611ebf565b600060028410611fd85760405162461bcd60e51b81526020600482015260146024820152736465763a20692061626f7665204e5f434f494e5360601b60448201526064016104d5565b81600080611fe76002896123d5565b90506000805b60028110156120605788811461201b5787816002811061200f5761200f61242f565b60200201519150612020565b61204e565b61202a8285612487565b93506120376002836123d5565b61204188876123d5565b61204b919061240d565b94505b806120588161249f565b915050611fed565b5061206c6002836123d5565b61207687866123d5565b612080919061240d565b9350600061208e838861240d565b6120989085612487565b9050600087815b60ff81101561213a5781925089848360026120ba91906123d5565b6120c49190612487565b6120ce91906123be565b886120d984806123d5565b6120e39190612487565b6120ed919061240d565b91508282111561211257600161210384846123be565b1161210d5761213a565b612128565b600161211e83856123be565b116121285761213a565b806121328161249f565b91505061209f565b509b9a5050505050505050505050565b60405180604001604052806002906020820280368337509192915050565b6001600160a01b038116811461217d57600080fd5b50565b600082601f83011261219157600080fd5b6040516040810181811067ffffffffffffffff821117156121c257634e487b7160e01b600052604160045260246000fd5b80604052508060408401858111156121d957600080fd5b845b818110156121f35780358352602092830192016121db565b509195945050505050565b6000806060838503121561221157600080fd5b823561221c81612168565b915061222b8460208501612180565b90509250929050565b60408101818360005b600281101561225c57815183526020928301929091019060010161223d565b50505092915050565b6000806040838503121561227857600080fd5b823561228381612168565b946020939093013593505050565b600080600080608085870312156122a757600080fd5b84356122b281612168565b966020860135965060408601359560600135945092505050565b6000602082840312156122de57600080fd5b81356122e981612168565b9392505050565b60008060006060848603121561230557600080fd5b833561231081612168565b95602085013595506040909401359392505050565b600080600080600060a0868803121561233d57600080fd5b853561234881612168565b97602087013597506040870135966060810135965060800135945092505050565b60008060006080848603121561237e57600080fd5b833561238981612168565b92506123988560208601612180565b9150606084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b6000828210156123d0576123d06123a8565b500390565b60008160001904831182151516156123ef576123ef6123a8565b500290565b60006020828403121561240657600080fd5b5051919050565b60008261242a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526022908201527f496e697469616c206465706f73697420726571756972657320616c6c20636f696040820152616e7360f01b606082015260800190565b6000821982111561249a5761249a6123a8565b500190565b60006000198214156124b3576124b36123a8565b5060010190565b6020808252601a908201527f4431206d7573742062652067726561746572207468616e204430000000000000604082015260600190565b60006020828403121561250357600080fd5b81516122e98161216856fea2646970667358221220d34c338ad761fc39f8d672d458512d99f4ea5e46d712dda8a979c5a9c038664f64736f6c634300080a0033