ETH Price: $3,203.15 (+1.44%)
Gas: 3 Gwei

Contract

0xBfAb6FA95E0091ed66058ad493189D2cB29385E6
 
Transaction Hash
Method
Block
From
To
Remove_liquidity...202100992024-07-01 7:12:2313 days ago1719817943IN
0xBfAb6FA9...cB29385E6
0 ETH0.00030432.3152872
Add_liquidity202047392024-06-30 13:15:5913 days ago1719753359IN
0xBfAb6FA9...cB29385E6
28.7 ETH0.000402863.35076036
Approve202010482024-06-30 0:53:1114 days ago1719708791IN
0xBfAb6FA9...cB29385E6
0 ETH0.000077521.67574364
Add_liquidity202010432024-06-30 0:52:1114 days ago1719708731IN
0xBfAb6FA9...cB29385E6
31.3 ETH0.000194031.613834
Remove_liquidity...201903542024-06-28 13:02:2315 days ago1719579743IN
0xBfAb6FA9...cB29385E6
0 ETH0.000858376.30144448
Approve201599282024-06-24 7:03:1120 days ago1719212591IN
0xBfAb6FA9...cB29385E6
0 ETH0.000082911.79221626
Add_liquidity201599042024-06-24 6:58:2320 days ago1719212303IN
0xBfAb6FA9...cB29385E6
7.98 ETH0.000300132.13857546
Add_liquidity201323722024-06-20 10:34:1124 days ago1718879651IN
0xBfAb6FA9...cB29385E6
0 ETH0.001032567.36238418
Remove_liquidity...200947312024-06-15 4:10:2329 days ago1718424623IN
0xBfAb6FA9...cB29385E6
0 ETH0.000762185.79909451
Approve200836962024-06-13 15:08:2330 days ago1718291303IN
0xBfAb6FA9...cB29385E6
0 ETH0.0008521218.41827906
Approve200821792024-06-13 10:02:4731 days ago1718272967IN
0xBfAb6FA9...cB29385E6
0 ETH0.0004976510.75668359
Add_liquidity200821672024-06-13 10:00:2331 days ago1718272823IN
0xBfAb6FA9...cB29385E6
0.01435 ETH0.0013549511.27409337
Add_liquidity200781592024-06-12 20:33:2331 days ago1718224403IN
0xBfAb6FA9...cB29385E6
0.1591639 ETH0.0015985313.29549774
Remove_liquidity199379472024-05-24 6:26:5951 days ago1716532019IN
0xBfAb6FA9...cB29385E6
0 ETH0.000979299.85227646
Approve198993762024-05-18 21:01:1156 days ago1716066071IN
0xBfAb6FA9...cB29385E6
0 ETH0.000145043.15562792
Add_liquidity198993702024-05-18 20:59:5956 days ago1716065999IN
0xBfAb6FA9...cB29385E6
0.14 ETH0.000454323.77953493
Add_liquidity198596222024-05-13 7:31:5962 days ago1715585519IN
0xBfAb6FA9...cB29385E6
5.65 ETH0.000465593.87329018
Remove_liquidity...198558482024-05-12 18:52:3562 days ago1715539955IN
0xBfAb6FA9...cB29385E6
0 ETH0.00048013.65291415
Exchange198484722024-05-11 18:07:1163 days ago1715450831IN
0xBfAb6FA9...cB29385E6
0.00001 ETH0.000451613.8
Add_liquidity198484662024-05-11 18:05:5963 days ago1715450759IN
0xBfAb6FA9...cB29385E6
0.00001 ETH0.000454363.8
Add_liquidity198376852024-05-10 5:55:5965 days ago1715320559IN
0xBfAb6FA9...cB29385E6
8.1 ETH0.000480824
Add_liquidity198167072024-05-07 7:30:2368 days ago1715067023IN
0xBfAb6FA9...cB29385E6
1.88 ETH0.000911017.5787575
Approve198154772024-05-07 3:21:1168 days ago1715052071IN
0xBfAb6FA9...cB29385E6
0 ETH0.000216354.70457566
Add_liquidity198154742024-05-07 3:20:3568 days ago1715052035IN
0xBfAb6FA9...cB29385E6
0.36 ETH0.000407263.94991162
Add_liquidity198154122024-05-07 3:07:4768 days ago1715051267IN
0xBfAb6FA9...cB29385E6
0.32 ETH0.000487024.05151958
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
203041662024-07-14 10:32:231 hr ago1720953143
0xBfAb6FA9...cB29385E6
0.00399 ETH
203001302024-07-13 21:00:2315 hrs ago1720904423
0xBfAb6FA9...cB29385E6
0.017955 ETH
202970492024-07-13 10:40:1125 hrs ago1720867211
0xBfAb6FA9...cB29385E6
6.64934217 ETH
202957702024-07-13 6:23:3529 hrs ago1720851815
0xBfAb6FA9...cB29385E6
47.94871308 ETH
202957702024-07-13 6:23:3529 hrs ago1720851815
0xBfAb6FA9...cB29385E6
7.21871692 ETH
202957702024-07-13 6:23:3529 hrs ago1720851815
0xBfAb6FA9...cB29385E6
58.53853872 ETH
202957542024-07-13 6:20:2329 hrs ago1720851623
0xBfAb6FA9...cB29385E6
0.02310177 ETH
202955692024-07-13 5:42:3530 hrs ago1720849355
0xBfAb6FA9...cB29385E6
0.11732458 ETH
202952192024-07-13 4:32:1131 hrs ago1720845131
0xBfAb6FA9...cB29385E6
0.20875 ETH
202948572024-07-13 3:19:3532 hrs ago1720840775
0xBfAb6FA9...cB29385E6
0.002 ETH
202933412024-07-12 22:14:1137 hrs ago1720822451
0xBfAb6FA9...cB29385E6
1.19905645 ETH
202913872024-07-12 15:41:5944 hrs ago1720798919
0xBfAb6FA9...cB29385E6
0.72989128 ETH
202902962024-07-12 12:03:352 days ago1720785815
0xBfAb6FA9...cB29385E6
0.00149625 ETH
202900632024-07-12 11:16:352 days ago1720782995
0xBfAb6FA9...cB29385E6
0.03596699 ETH
202897892024-07-12 10:21:112 days ago1720779671
0xBfAb6FA9...cB29385E6
0.09035432 ETH
202895812024-07-12 9:39:232 days ago1720777163
0xBfAb6FA9...cB29385E6
0.09993687 ETH
202881902024-07-12 4:58:232 days ago1720760303
0xBfAb6FA9...cB29385E6
2.72303365 ETH
202881092024-07-12 4:42:112 days ago1720759331
0xBfAb6FA9...cB29385E6
0.12399848 ETH
202880142024-07-12 4:22:592 days ago1720758179
0xBfAb6FA9...cB29385E6
0.12399745 ETH
202879352024-07-12 4:07:112 days ago1720757231
0xBfAb6FA9...cB29385E6
0.12399206 ETH
202879032024-07-12 4:00:472 days ago1720756847
0xBfAb6FA9...cB29385E6
0.12294127 ETH
202878402024-07-12 3:48:112 days ago1720756091
0xBfAb6FA9...cB29385E6
0.09993715 ETH
202878132024-07-12 3:42:352 days ago1720755755
0xBfAb6FA9...cB29385E6
0.09993737 ETH
202877782024-07-12 3:35:352 days ago1720755335
0xBfAb6FA9...cB29385E6
0.09990054 ETH
202877572024-07-12 3:31:232 days ago1720755083
0xBfAb6FA9...cB29385E6
0.09990056 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.7

Optimization Enabled:
N/A

Other Settings:
MIT license

Contract Source Code (Vyper language format)

# @version ^0.3.7
"""
@title StableSwap
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2020-2023 - all rights reserved
@notice ETH <> wBETH Stableswap Pool.
"""

from vyper.interfaces import ERC20

interface Factory:
    def get_fee_receiver(_pool: address) -> address: view
    def admin() -> address: view

interface ERC1271:
    def isValidSignature(_hash: bytes32, _signature: Bytes[65]) -> bytes32: view


event Transfer:
    sender: indexed(address)
    receiver: indexed(address)
    value: uint256

event Approval:
    owner: indexed(address)
    spender: indexed(address)
    value: uint256

event TokenExchange:
    buyer: indexed(address)
    sold_id: int128
    tokens_sold: uint256
    bought_id: int128
    tokens_bought: uint256

event AddLiquidity:
    provider: indexed(address)
    token_amounts: uint256[N_COINS]
    fees: uint256[N_COINS]
    invariant: uint256
    token_supply: uint256

event RemoveLiquidity:
    provider: indexed(address)
    token_amounts: uint256[N_COINS]
    fees: uint256[N_COINS]
    token_supply: uint256

event RemoveLiquidityOne:
    provider: indexed(address)
    token_amount: uint256
    coin_amount: uint256
    token_supply: uint256

event RemoveLiquidityImbalance:
    provider: indexed(address)
    token_amounts: uint256[N_COINS]
    fees: uint256[N_COINS]
    invariant: uint256
    token_supply: uint256

event RampA:
    old_A: uint256
    new_A: uint256
    initial_time: uint256
    future_time: uint256

event StopRampA:
    A: uint256
    t: uint256

event CommitNewFee:
    new_fee: uint256

event ApplyNewFee:
    fee: uint256


N_COINS_128: constant(int128) = 2
N_COINS: constant(uint256) = 2
PRECISION: constant(uint256) = 10 ** 18
ADMIN_ACTIONS_DEADLINE_DT: constant(uint256) = 86400 * 3

FEE_DENOMINATOR: constant(uint256) = 10 ** 10
ADMIN_FEE: constant(uint256) = 5000000000

A_PRECISION: constant(uint256) = 100
MAX_FEE: constant(uint256) = 5 * 10 ** 9
MAX_A: constant(uint256) = 10 ** 6
MAX_A_CHANGE: constant(uint256) = 10
MIN_RAMP_TIME: constant(uint256) = 86400

ETH_ADDR: constant(address) = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

EIP712_TYPEHASH: constant(bytes32) = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
PERMIT_TYPEHASH: constant(bytes32) = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")

# keccak256("isValidSignature(bytes32,bytes)")[:4] << 224
ERC1271_MAGIC_VAL: constant(bytes32) = 0x1626ba7e00000000000000000000000000000000000000000000000000000000
version: public(constant(String[8])) = "v6.0.1"

factory: public(address)

admin_balances: public(uint256[N_COINS])
fee: public(uint256)  # fee * 1e10
future_fee: public(uint256)
admin_action_deadline: public(uint256)

initial_A: public(uint256)
future_A: public(uint256)
initial_A_time: public(uint256)
future_A_time: public(uint256)

RATE_MULTIPLIERS: constant(uint256[2]) = [10**18, 10**18]
# shift(2**32 - 1, 224)
ORACLE_BIT_MASK: constant(uint256) = (2**32 - 1) * 256**28

balanceOf: public(HashMap[address, uint256])
allowance: public(HashMap[address, HashMap[address, uint256]])
totalSupply: public(uint256)


DOMAIN_SEPARATOR: public(bytes32)
nonces: public(HashMap[address, uint256])

last_prices_packed: uint256  #  [last_price, ma_price]
ma_exp_time: public(uint256)
ma_last_time: public(uint256)

# wBETH specific constants:
name: public(constant(String[64])) = "Curve.fi ETH/wBETH"
symbol: public(constant(String[32])) = "ETHwBETHCRV"
decimals: public(constant(uint256)) = 18
coins: public(constant(address[N_COINS])) = [
    0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,
    0xa2E3356610840701BDf5611a53974510Ae27E2e1
]
# [bytes4 method_id][bytes8 <empty>][bytes20 oracle]
# Only for wBETH, which we get from the contract:
oracle_method: public(uint256)


@external
def __init__(
    _factory: address,
    _A: uint256,
    _fee: uint256,
    _oracle_method_id: bytes4,
    _oracle_addr: address,
):

    self.factory = _factory

    A: uint256 = _A * A_PRECISION
    self.initial_A = A
    self.future_A = A
    self.fee = _fee

    self.ma_exp_time = 866  # = 600 / ln(2)
    self.last_prices_packed = self.pack_prices(10**18, 10**18)
    self.ma_last_time = block.timestamp

    self.DOMAIN_SEPARATOR = keccak256(
        _abi_encode(EIP712_TYPEHASH, keccak256(name), keccak256(version), chain.id, self)
    )

    self.oracle_method = convert(_oracle_method_id, uint256) * 2**224 | convert(_oracle_addr, uint256)

    # fire a transfer event so block explorers identify the contract as an ERC20
    log Transfer(empty(address), self, 0)


### ERC20 Functionality ###

@internal
def _transfer(_from: address, _to: address, _value: uint256):
    # # NOTE: vyper does not allow underflows
    # #       so the following subtraction would revert on insufficient balance
    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value

    log Transfer(_from, _to, _value)


@external
def transfer(_to : address, _value : uint256) -> bool:
    """
    @dev Transfer token for a specified address
    @param _to The address to transfer to.
    @param _value The amount to be transferred.
    """
    self._transfer(msg.sender, _to, _value)
    return True


@external
def transferFrom(_from : address, _to : address, _value : uint256) -> bool:
    """
     @dev Transfer tokens from one address to another.
     @param _from address The address which you want to send tokens from
     @param _to address The address which you want to transfer to
     @param _value uint256 the amount of tokens to be transferred
    """
    self._transfer(_from, _to, _value)

    _allowance: uint256 = self.allowance[_from][msg.sender]
    if _allowance != max_value(uint256):
        self.allowance[_from][msg.sender] = _allowance - _value

    return True


@external
def approve(_spender : address, _value : uint256) -> bool:
    """
    @notice Approve the passed address to transfer the specified amount of
            tokens on behalf of msg.sender
    @dev Beware that changing an allowance via this method brings the risk that
         someone may use both the old and new allowance by unfortunate transaction
         ordering: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    @param _spender The address which will transfer the funds
    @param _value The amount of tokens that may be transferred
    @return bool success
    """
    self.allowance[msg.sender][_spender] = _value

    log Approval(msg.sender, _spender, _value)
    return True


@external
def permit(
    _owner: address,
    _spender: address,
    _value: uint256,
    _deadline: uint256,
    _v: uint8,
    _r: bytes32,
    _s: bytes32
) -> bool:
    """
    @notice Approves spender by owner's signature to expend owner's tokens.
        See https://eips.ethereum.org/EIPS/eip-2612.
    @dev Inspired by https://github.com/yearn/yearn-vaults/blob/main/contracts/Vault.vy#L753-L793
    @dev Supports smart contract wallets which implement ERC1271
        https://eips.ethereum.org/EIPS/eip-1271
    @param _owner The address which is a source of funds and has signed the Permit.
    @param _spender The address which is allowed to spend the funds.
    @param _value The amount of tokens to be spent.
    @param _deadline The timestamp after which the Permit is no longer valid.
    @param _v The bytes[64] of the valid secp256k1 signature of permit by owner
    @param _r The bytes[0:32] of the valid secp256k1 signature of permit by owner
    @param _s The bytes[32:64] of the valid secp256k1 signature of permit by owner
    @return True, if transaction completes successfully
    """
    assert _owner != empty(address)
    assert block.timestamp <= _deadline

    nonce: uint256 = self.nonces[_owner]
    digest: bytes32 = keccak256(
        concat(
            b"\x19\x01",
            self.DOMAIN_SEPARATOR,
            keccak256(_abi_encode(PERMIT_TYPEHASH, _owner, _spender, _value, nonce, _deadline))
        )
    )

    if _owner.is_contract:
        sig: Bytes[65] = concat(_abi_encode(_r, _s), slice(convert(_v, bytes32), 31, 1))
        # reentrancy not a concern since this is a staticcall
        assert ERC1271(_owner).isValidSignature(digest, sig) == ERC1271_MAGIC_VAL
    else:
        assert ecrecover(digest, convert(_v, uint256), convert(_r, uint256), convert(_s, uint256)) == _owner

    self.allowance[_owner][_spender] = _value
    self.nonces[_owner] = nonce + 1

    log Approval(_owner, _spender, _value)
    return True


### StableSwap Functionality ###

@pure
@internal
def pack_prices(p1: uint256, p2: uint256) -> uint256:
    assert p1 < 2**128
    assert p2 < 2**128
    return p1 | shift(p2, 128)


@view
@external
def last_price() -> uint256:
    return self.last_prices_packed & (2**128 - 1)


@view
@external
def ema_price() -> uint256:
    return shift(self.last_prices_packed, -128)


@view
@internal
def _stored_rates() -> uint256[N_COINS]:

    rates: uint256[N_COINS] = RATE_MULTIPLIERS
    oracle: uint256 = self.oracle_method

    if oracle != 0:
        # NOTE: assumed that response is of precision 10**18
        response: Bytes[32] = raw_call(
            convert(oracle % 2**160, address),
            _abi_encode(oracle & ORACLE_BIT_MASK),
            max_outsize=32,
            is_static_call=True,
        )
        assert len(response) != 0
        rates[1] = rates[1] * convert(response, uint256) / PRECISION

    return rates


@view
@external
def stored_rates() -> uint256[N_COINS]:
    return self._stored_rates()


@view
@internal
def _balances(_value: uint256 = 0) -> uint256[N_COINS]:
    return [
        self.balance - self.admin_balances[0] - _value,
        ERC20(coins[1]).balanceOf(self) - self.admin_balances[1]
    ]


@view
@external
def balances(i: uint256) -> uint256:
    """
    @notice Get the current balance of a coin within the
            pool, less the accrued admin fees
    @param i Index value for the coin to query balance of
    @return Token balance
    """
    return self._balances()[i]


@view
@internal
def _A() -> uint256:
    """
    Handle ramping A up or down
    """
    t1: uint256 = self.future_A_time
    A1: uint256 = self.future_A

    if block.timestamp < t1:
        A0: uint256 = self.initial_A
        t0: uint256 = self.initial_A_time
        # Expressions in uint256 cannot have negative numbers, thus "if"
        if A1 > A0:
            return A0 + (A1 - A0) * (block.timestamp - t0) / (t1 - t0)
        else:
            return A0 - (A0 - A1) * (block.timestamp - t0) / (t1 - t0)

    else:  # when t1 == 0 or block.timestamp >= t1
        return A1


@view
@external
def admin_fee() -> uint256:
    return ADMIN_FEE


@view
@external
def A() -> uint256:
    return self._A() / A_PRECISION


@view
@external
def A_precise() -> uint256:
    return self._A()


@pure
@internal
def _xp_mem(_rates: uint256[N_COINS], _balances: uint256[N_COINS]) -> uint256[N_COINS]:
    result: uint256[N_COINS] = empty(uint256[N_COINS])
    for i in range(N_COINS):
        result[i] = _rates[i] * _balances[i] / PRECISION
    return result


@pure
@internal
def get_D(_xp: uint256[N_COINS], _amp: uint256) -> uint256:
    """
    D invariant calculation in non-overflowing integer operations
    iteratively

    A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i))

    Converging solution:
    D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1)
    """
    S: uint256 = 0
    for x in _xp:
        S += x
    if S == 0:
        return 0

    D: uint256 = S
    Ann: uint256 = _amp * N_COINS
    for i in range(255):
        D_P: uint256 = D * D / _xp[0] * D / _xp[1] / (N_COINS)**2
        Dprev: uint256 = D
        D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P)
        # Equality with the precision of 1
        if D > Dprev:
            if D - Dprev <= 1:
                return D
        else:
            if Dprev - D <= 1:
                return D
    # convergence typically occurs in 4 rounds or less, this should be unreachable!
    # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity`
    raise


@view
@internal
def get_D_mem(_rates: uint256[N_COINS], _balances: uint256[N_COINS], _amp: uint256) -> uint256:
    xp: uint256[N_COINS] = self._xp_mem(_rates, _balances)
    return self.get_D(xp, _amp)


@internal
@view
def _get_p(xp: uint256[N_COINS], amp: uint256, D: uint256) -> uint256:
    # dx_0 / dx_1 only, however can have any number of coins in pool
    ANN: uint256 = amp * N_COINS
    Dr: uint256 = D / (N_COINS**N_COINS)
    for i in range(N_COINS):
        Dr = Dr * D / xp[i]
    return 10**18 * (ANN * xp[0] / A_PRECISION + Dr * xp[0] / xp[1]) / (ANN * xp[0] / A_PRECISION + Dr)


@external
@view
def get_p() -> uint256:
    amp: uint256 = self._A()
    xp: uint256[N_COINS] = self._xp_mem(self._stored_rates(), self._balances())
    D: uint256 = self.get_D(xp, amp)
    return self._get_p(xp, amp, D)


@internal
@view
def exp(power: int256) -> uint256:
    if power <= -42139678854452767551:
        return 0

    if power >= 135305999368893231589:
        raise "exp overflow"

    x: int256 = unsafe_div(unsafe_mul(power, 2**96), 10**18)

    k: int256 = unsafe_div(
        unsafe_add(
            unsafe_div(unsafe_mul(x, 2**96), 54916777467707473351141471128),
            2**95),
        2**96)
    x = unsafe_sub(x, unsafe_mul(k, 54916777467707473351141471128))

    y: int256 = unsafe_add(x, 1346386616545796478920950773328)
    y = unsafe_add(unsafe_div(unsafe_mul(y, x), 2**96), 57155421227552351082224309758442)
    p: int256 = unsafe_sub(unsafe_add(y, x), 94201549194550492254356042504812)
    p = unsafe_add(unsafe_div(unsafe_mul(p, y), 2**96), 28719021644029726153956944680412240)
    p = unsafe_add(unsafe_mul(p, x), (4385272521454847904659076985693276 * 2**96))

    q: int256 = x - 2855989394907223263936484059900
    q = unsafe_add(unsafe_div(unsafe_mul(q, x), 2**96), 50020603652535783019961831881945)
    q = unsafe_sub(unsafe_div(unsafe_mul(q, x), 2**96), 533845033583426703283633433725380)
    q = unsafe_add(unsafe_div(unsafe_mul(q, x), 2**96), 3604857256930695427073651918091429)
    q = unsafe_sub(unsafe_div(unsafe_mul(q, x), 2**96), 14423608567350463180887372962807573)
    q = unsafe_add(unsafe_div(unsafe_mul(q, x), 2**96), 26449188498355588339934803723976023)

    return shift(
        unsafe_mul(convert(unsafe_div(p, q), uint256), 3822833074963236453042738258902158003155416615667),
        unsafe_sub(k, 195))


@internal
@view
def _ma_price() -> uint256:
    ma_last_time: uint256 = self.ma_last_time

    pp: uint256 = self.last_prices_packed
    last_price: uint256 = min(pp & (2**128 - 1), 2 * 10**18)  # Limit the price going into EMA to not be more than 2.0
    last_ema_price: uint256 = shift(pp, -128)

    if ma_last_time < block.timestamp:
        alpha: uint256 = self.exp(- convert((block.timestamp - ma_last_time) * 10**18 / self.ma_exp_time, int256))
        return (last_price * (10**18 - alpha) + last_ema_price * alpha) / 10**18

    else:
        return last_ema_price


@external
@view
@nonreentrant('lock')
def price_oracle() -> uint256:
    """
    @notice EMA price oracle based on the last state prices
            Prices are taken after rate multiplier is applied (if it is set)
    """
    return self._ma_price()


@internal
def save_p_from_price(last_price: uint256):
    """
    Saves current price and its EMA
    """
    if last_price != 0:
        self.last_prices_packed = self.pack_prices(last_price, self._ma_price())
        if self.ma_last_time < block.timestamp:
            self.ma_last_time = block.timestamp


@internal
def save_p(xp: uint256[N_COINS], amp: uint256, D: uint256):
    """
    Saves current price and its EMA
    """
    self.save_p_from_price(self._get_p(xp, amp, D))


@view
@external
@nonreentrant('lock')
def get_virtual_price() -> uint256:
    """
    @notice The current virtual price of the pool LP token
    @dev Useful for calculating profits
    @return LP token virtual price normalized to 1e18
    """
    amp: uint256 = self._A()
    xp: uint256[N_COINS] = self._xp_mem(self._stored_rates(), self._balances())
    D: uint256 = self.get_D(xp, amp)
    # D is in the units similar to DAI (e.g. converted to precision 1e18)
    # When balanced, D = n * x_u - total virtual value of the portfolio
    return D * PRECISION / self.totalSupply


@view
@external
def calc_token_amount(_amounts: uint256[N_COINS], _is_deposit: bool) -> uint256:
    """
    @notice Calculate addition or reduction in token supply from a deposit or withdrawal
    @dev This calculation accounts for slippage, but not fees.
         Needed to prevent front-running, not for precise calculations!
    @param _amounts Amount of each coin being deposited
    @param _is_deposit set True for deposits, False for withdrawals
    @return Expected amount of LP tokens received
    """
    amp: uint256 = self._A()
    balances: uint256[N_COINS] = self._balances()
    rates: uint256[N_COINS] = self._stored_rates()

    D0: uint256 = self.get_D_mem(rates, balances, amp)
    for i in range(N_COINS):
        amount: uint256 = _amounts[i]
        if _is_deposit:
            balances[i] += amount
        else:
            balances[i] -= amount
    D1: uint256 = self.get_D_mem(rates, balances, amp)
    diff: uint256 = 0
    if _is_deposit:
        diff = D1 - D0
    else:
        diff = D0 - D1
    return diff * self.totalSupply / D0


@payable
@external
@nonreentrant('lock')
def add_liquidity(
    _amounts: uint256[N_COINS],
    _min_mint_amount: uint256,
    _receiver: address = msg.sender
) -> uint256:
    """
    @notice Deposit coins into the pool
    @param _amounts List of amounts of coins to deposit
    @param _min_mint_amount Minimum amount of LP tokens to mint from the deposit
    @param _receiver Address that owns the minted LP tokens
    @return Amount of LP tokens received by depositing
    """
    amp: uint256 = self._A()
    old_balances: uint256[N_COINS] = self._balances(msg.value)
    rates: uint256[N_COINS] = self._stored_rates()

    # Initial invariant
    D0: uint256 = self.get_D_mem(rates, old_balances, amp)

    total_supply: uint256 = self.totalSupply
    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        amount: uint256 = _amounts[i]
        if total_supply == 0:
            assert amount > 0  # dev: initial deposit requires all coins
        new_balances[i] += amount

    # Invariant after change
    D1: uint256 = self.get_D_mem(rates, new_balances, amp)
    assert D1 > D0

    # We need to recalculate the invariant accounting for fees
    # to calculate fair user's share
    fees: uint256[N_COINS] = empty(uint256[N_COINS])
    mint_amount: uint256 = 0
    if total_supply > 0:
        # Only account for fees if we are not the first to deposit
        base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
        for i in range(N_COINS):
            ideal_balance: uint256 = D1 * old_balances[i] / D0
            difference: uint256 = 0
            new_balance: uint256 = new_balances[i]
            if ideal_balance > new_balance:
                difference = ideal_balance - new_balance
            else:
                difference = new_balance - ideal_balance
            fees[i] = base_fee * difference / FEE_DENOMINATOR
            self.admin_balances[i] += fees[i] * ADMIN_FEE / FEE_DENOMINATOR
            new_balances[i] -= fees[i]
        xp: uint256[N_COINS] = self._xp_mem(rates, new_balances)
        D2: uint256 = self.get_D(xp, amp)
        mint_amount = total_supply * (D2 - D0) / D0
        self.save_p(xp, amp, D2)
    else:
        mint_amount = D1  # Take the dust if there was any

    assert mint_amount >= _min_mint_amount, "Slippage screwed you"

    # Take coins from the sender
    assert msg.value == _amounts[0]
    if _amounts[1] > 0:
        assert ERC20(coins[1]).transferFrom(msg.sender, self, _amounts[1], default_return_value=True)  # dev: failed transfer

    # Mint pool tokens
    total_supply += mint_amount
    self.balanceOf[_receiver] += mint_amount
    self.totalSupply = total_supply
    log Transfer(empty(address), _receiver, mint_amount)

    log AddLiquidity(msg.sender, _amounts, fees, D1, total_supply)

    return mint_amount


@view
@internal
def get_y(i: int128, j: int128, x: uint256, xp: uint256[N_COINS], _amp: uint256, _D: uint256) -> uint256:
    """
    Calculate x[j] if one makes x[i] = x

    Done by solving quadratic equation iteratively.
    x_1**2 + x_1 * (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

    assert i != j       # dev: same coin
    assert j >= 0       # dev: j below zero
    assert j < N_COINS_128  # dev: j above N_COINS

    # should be unreachable, but good for safety
    assert i >= 0
    assert i < N_COINS_128

    amp: uint256 = _amp
    D: uint256 = _D
    if _D == 0:
        amp = self._A()
        D = self.get_D(xp, amp)
    S_: uint256 = 0
    _x: uint256 = 0
    y_prev: uint256 = 0
    c: uint256 = D
    Ann: uint256 = amp * N_COINS

    for _i in range(N_COINS_128):
        if _i == i:
            _x = x
        elif _i != j:
            _x = xp[_i]
        else:
            continue
        S_ += _x
        c = c * D / (_x * N_COINS)

    c = c * D * A_PRECISION / (Ann * N_COINS)
    b: uint256 = S_ + D * A_PRECISION / Ann  # - D
    y: uint256 = D

    for _i in range(255):
        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:
                return y
        else:
            if y_prev - y <= 1:
                return y
    raise


@view
@external
def get_dy(i: int128, j: int128, dx: uint256) -> uint256:
    """
    @notice Calculate the current output dy given input dx
    @dev Index values can be found via the `coins` public getter method
    @param i Index value for the coin to send
    @param j Index value of the coin to recieve
    @param dx Amount of `i` being exchanged
    @return Amount of `j` predicted
    """
    rates: uint256[N_COINS] = self._stored_rates()
    xp: uint256[N_COINS] = self._xp_mem(rates, self._balances())

    x: uint256 = xp[i] + (dx * rates[i] / PRECISION)
    y: uint256 = self.get_y(i, j, x, xp, 0, 0)
    dy: uint256 = xp[j] - y - 1
    fee: uint256 = self.fee * dy / FEE_DENOMINATOR
    return (dy - fee) * PRECISION / rates[j]


@payable
@external
@nonreentrant('lock')
def exchange(
    i: int128,
    j: int128,
    _dx: uint256,
    _min_dy: uint256,
    _receiver: address = msg.sender,
) -> uint256:
    """
    @notice Perform an exchange between two coins
    @dev Index values can be found via the `coins` public getter method
    @param i Index value for the coin to send
    @param j Index valie of the coin to recieve
    @param _dx Amount of `i` being exchanged
    @param _min_dy Minimum amount of `j` to receive
    @return Actual amount of `j` received
    """
    rates: uint256[N_COINS] = self._stored_rates()
    old_balances: uint256[N_COINS] = self._balances(msg.value)
    xp: uint256[N_COINS] = self._xp_mem(rates, old_balances)

    x: uint256 = xp[i] + _dx * rates[i] / PRECISION

    amp: uint256 = self._A()
    D: uint256 = self.get_D(xp, amp)
    y: uint256 = self.get_y(i, j, x, xp, amp, D)

    dy: uint256 = xp[j] - y - 1  # -1 just in case there were some rounding errors
    dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR

    # Convert all to real units
    dy = (dy - dy_fee) * PRECISION / rates[j]
    assert dy >= _min_dy, "Exchange resulted in fewer coins than expected"

    # xp is not used anymore, so we reuse it for price calc
    xp[i] = x
    xp[j] = y
    # D is not changed because we did not apply a fee
    self.save_p(xp, amp, D)

    dy_admin_fee: uint256 = dy_fee * ADMIN_FEE / FEE_DENOMINATOR * PRECISION / rates[j]
    if dy_admin_fee != 0:
        self.admin_balances[j] += dy_admin_fee

    coin: address = coins[1]
    if i == 0:
        assert msg.value == _dx
        assert ERC20(coin).transfer(_receiver, dy, default_return_value=True)
    else:
        assert msg.value == 0
        assert ERC20(coin).transferFrom(msg.sender, self, _dx, default_return_value=True)
        raw_call(_receiver, b"", value=dy)

    log TokenExchange(msg.sender, i, _dx, j, dy)

    return dy


@external
@nonreentrant('lock')
def remove_liquidity(
    _burn_amount: uint256,
    _min_amounts: uint256[N_COINS],
    _receiver: address = msg.sender
) -> uint256[N_COINS]:
    """
    @notice Withdraw coins from the pool
    @dev Withdrawal amounts are based on current deposit ratios
    @param _burn_amount Quantity of LP tokens to burn in the withdrawal
    @param _min_amounts Minimum amounts of underlying coins to receive
    @param _receiver Address that receives the withdrawn coins
    @return List of amounts of coins that were withdrawn
    """
    total_supply: uint256 = self.totalSupply
    amounts: uint256[N_COINS] = self._balances()

    for i in range(N_COINS):
        value: uint256 = amounts[i] * _burn_amount / total_supply
        assert value >= _min_amounts[i], "Withdrawal resulted in fewer coins than expected"
        amounts[i] = value

        if i == 0:
            raw_call(_receiver, b"", value=value)
        else:
            assert ERC20(coins[1]).transfer(_receiver, value, default_return_value=True)

    total_supply -= _burn_amount
    self.balanceOf[msg.sender] -= _burn_amount
    self.totalSupply = total_supply
    log Transfer(msg.sender, empty(address), _burn_amount)

    log RemoveLiquidity(msg.sender, amounts, empty(uint256[N_COINS]), total_supply)

    return amounts


@external
@nonreentrant('lock')
def remove_liquidity_imbalance(
    _amounts: uint256[N_COINS],
    _max_burn_amount: uint256,
    _receiver: address = msg.sender
) -> uint256:
    """
    @notice Withdraw coins from the pool in an imbalanced amount
    @param _amounts List of amounts of underlying coins to withdraw
    @param _max_burn_amount Maximum amount of LP token to burn in the withdrawal
    @param _receiver Address that receives the withdrawn coins
    @return Actual amount of the LP token burned in the withdrawal
    """
    amp: uint256 = self._A()
    rates: uint256[N_COINS] = self._stored_rates()
    old_balances: uint256[N_COINS] = self._balances()
    D0: uint256 = self.get_D_mem(rates, old_balances, amp)

    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        new_balances[i] -= _amounts[i]
    D1: uint256 = self.get_D_mem(rates, new_balances, amp)

    fees: uint256[N_COINS] = empty(uint256[N_COINS])
    base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
    for i in range(N_COINS):
        ideal_balance: uint256 = D1 * old_balances[i] / D0
        difference: uint256 = 0
        new_balance: uint256 = new_balances[i]
        if ideal_balance > new_balance:
            difference = ideal_balance - new_balance
        else:
            difference = new_balance - ideal_balance
        fees[i] = base_fee * difference / FEE_DENOMINATOR
        self.admin_balances[i] += fees[i] * ADMIN_FEE / FEE_DENOMINATOR
        new_balances[i] -= fees[i]
    new_balances = self._xp_mem(rates, new_balances)
    D2: uint256 = self.get_D(new_balances, amp)

    self.save_p(new_balances, amp, D2)

    total_supply: uint256 = self.totalSupply
    burn_amount: uint256 = ((D0 - D2) * total_supply / D0) + 1
    assert burn_amount > 1  # dev: zero tokens burned
    assert burn_amount <= _max_burn_amount, "Slippage screwed you"

    total_supply -= burn_amount
    self.totalSupply = total_supply
    self.balanceOf[msg.sender] -= burn_amount
    log Transfer(msg.sender, empty(address), burn_amount)

    if _amounts[0] != 0:
        raw_call(_receiver, b"", value=_amounts[0])
    if _amounts[1] != 0:
        assert ERC20(coins[1]).transfer(_receiver, _amounts[1], default_return_value=True)

    log RemoveLiquidityImbalance(msg.sender, _amounts, fees, D1, total_supply)

    return burn_amount


@pure
@internal
def get_y_D(A: uint256, i: int128, xp: uint256[N_COINS], D: uint256) -> uint256:
    """
    Calculate x[i] if one reduces D from being calculated for xp to D

    Done by solving quadratic equation iteratively.
    x_1**2 + x_1 * (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

    assert i >= 0  # dev: i below zero
    assert i < N_COINS_128  # dev: i above N_COINS

    S_: uint256 = 0
    _x: uint256 = 0
    y_prev: uint256 = 0
    c: uint256 = D
    Ann: uint256 = A * N_COINS

    for _i in range(N_COINS_128):
        if _i != i:
            _x = xp[_i]
        else:
            continue
        S_ += _x
        c = c * D / (_x * N_COINS)

    c = c * D * A_PRECISION / (Ann * N_COINS)
    b: uint256 = S_ + D * A_PRECISION / Ann
    y: uint256 = D

    for _i in range(255):
        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:
                return y
        else:
            if y_prev - y <= 1:
                return y
    raise


@view
@internal
def _calc_withdraw_one_coin(_burn_amount: uint256, i: int128) -> uint256[3]:
    # First, need to calculate
    # * Get current D
    # * Solve Eqn against y_i for D - _token_amount
    amp: uint256 = self._A()
    rates: uint256[N_COINS] = self._stored_rates()
    xp: uint256[N_COINS] = self._xp_mem(rates, self._balances())
    D0: uint256 = self.get_D(xp, amp)

    total_supply: uint256 = self.totalSupply
    D1: uint256 = D0 - _burn_amount * D0 / total_supply
    new_y: uint256 = self.get_y_D(amp, i, xp, D1)

    base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
    xp_reduced: uint256[N_COINS] = empty(uint256[N_COINS])

    for j in range(N_COINS_128):
        dx_expected: uint256 = 0
        xp_j: uint256 = xp[j]
        if j == i:
            dx_expected = xp_j * D1 / D0 - new_y
        else:
            dx_expected = xp_j - xp_j * D1 / D0
        xp_reduced[j] = xp_j - base_fee * dx_expected / FEE_DENOMINATOR

    dy: uint256 = xp_reduced[i] - self.get_y_D(amp, i, xp_reduced, D1)
    dy_0: uint256 = (xp[i] - new_y) * PRECISION / rates[i]  # w/o fees
    dy = (dy - 1) * PRECISION / rates[i]  # Withdraw less to account for rounding errors

    xp[i] = new_y
    last_p: uint256 = 0
    if new_y > 0:
        last_p = self._get_p(xp, amp, D1)

    return [dy, dy_0 - dy, last_p]


@view
@external
def calc_withdraw_one_coin(_burn_amount: uint256, i: int128) -> uint256:
    """
    @notice Calculate the amount received when withdrawing a single coin
    @param _burn_amount Amount of LP tokens to burn in the withdrawal
    @param i Index value of the coin to withdraw
    @return Amount of coin received
    """
    return self._calc_withdraw_one_coin(_burn_amount, i)[0]


@external
@nonreentrant('lock')
def remove_liquidity_one_coin(
    _burn_amount: uint256,
    i: int128,
    _min_received: uint256,
    _receiver: address = msg.sender,
) -> uint256:
    """
    @notice Withdraw a single coin from the pool
    @param _burn_amount Amount of LP tokens to burn in the withdrawal
    @param i Index value of the coin to withdraw
    @param _min_received Minimum amount of coin to receive
    @param _receiver Address that receives the withdrawn coins
    @return Amount of coin received
    """
    dy: uint256[3] = self._calc_withdraw_one_coin(_burn_amount, i)
    assert dy[0] >= _min_received, "Not enough coins removed"

    self.admin_balances[i] += dy[1] * ADMIN_FEE / FEE_DENOMINATOR

    total_supply: uint256 = self.totalSupply - _burn_amount
    self.totalSupply = total_supply
    self.balanceOf[msg.sender] -= _burn_amount
    log Transfer(msg.sender, empty(address), _burn_amount)

    if i == 0:
        raw_call(_receiver, b"", value=dy[0])
    else:
        assert ERC20(coins[1]).transfer(_receiver, dy[0], default_return_value=True)

    log RemoveLiquidityOne(msg.sender, _burn_amount, dy[0], total_supply)

    self.save_p_from_price(dy[2])

    return dy[0]


@external
def ramp_A(_future_A: uint256, _future_time: uint256):
    assert msg.sender == Factory(self.factory).admin()  # dev: only owner
    assert block.timestamp >= self.initial_A_time + MIN_RAMP_TIME
    assert _future_time >= block.timestamp + MIN_RAMP_TIME  # dev: insufficient time

    _initial_A: uint256 = self._A()
    _future_A_p: uint256 = _future_A * A_PRECISION

    assert _future_A > 0 and _future_A < MAX_A
    if _future_A_p < _initial_A:
        assert _future_A_p * MAX_A_CHANGE >= _initial_A
    else:
        assert _future_A_p <= _initial_A * MAX_A_CHANGE

    self.initial_A = _initial_A
    self.future_A = _future_A_p
    self.initial_A_time = block.timestamp
    self.future_A_time = _future_time

    log RampA(_initial_A, _future_A_p, block.timestamp, _future_time)


@external
def stop_ramp_A():
    assert msg.sender == Factory(self.factory).admin()  # dev: only owner

    current_A: uint256 = self._A()
    self.initial_A = current_A
    self.future_A = current_A
    self.initial_A_time = block.timestamp
    self.future_A_time = block.timestamp
    # now (block.timestamp < t1) is always False, so we return saved A

    log StopRampA(current_A, block.timestamp)


@external
def withdraw_admin_fees():

    receiver: address = Factory(self.factory).get_fee_receiver(self)
    assert receiver != empty(address), "dev: fee receiver is zero address"

    amount: uint256 = self.admin_balances[0]
    if amount != 0:
        raw_call(receiver, b"", value=amount)

    amount = self.admin_balances[1]
    if amount != 0:
        assert ERC20(coins[1]).transfer(receiver, amount, default_return_value=True)

    self.admin_balances = empty(uint256[N_COINS])


@external
def commit_new_fee(_new_fee: uint256):
    assert msg.sender == Factory(self.factory).admin()
    assert _new_fee <= MAX_FEE
    assert self.admin_action_deadline == 0

    self.future_fee = _new_fee
    self.admin_action_deadline = block.timestamp + ADMIN_ACTIONS_DEADLINE_DT
    log CommitNewFee(_new_fee)


@external
def apply_new_fee():
    assert msg.sender == Factory(self.factory).admin()
    deadline: uint256 = self.admin_action_deadline
    assert deadline != 0 and block.timestamp >= deadline

    fee: uint256 = self.future_fee
    self.fee = fee
    self.admin_action_deadline = 0
    log ApplyNewFee(fee)


@external
def set_ma_exp_time(_ma_exp_time: uint256):
    assert msg.sender == Factory(self.factory).admin()  # dev: only owner
    assert _ma_exp_time != 0

    self.ma_exp_time = _ma_exp_time


@external
@view
def owner() -> address:
    return Factory(self.factory).admin()


@external
@view
def admin_fee_receiver() -> address:
    return Factory(self.factory).get_fee_receiver(self)

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true},{"name":"spender","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"TokenExchange","inputs":[{"name":"buyer","type":"address","indexed":true},{"name":"sold_id","type":"int128","indexed":false},{"name":"tokens_sold","type":"uint256","indexed":false},{"name":"bought_id","type":"int128","indexed":false},{"name":"tokens_bought","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amount","type":"uint256","indexed":false},{"name":"coin_amount","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityImbalance","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"name":"old_A","type":"uint256","indexed":false},{"name":"new_A","type":"uint256","indexed":false},{"name":"initial_time","type":"uint256","indexed":false},{"name":"future_time","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"name":"A","type":"uint256","indexed":false},{"name":"t","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitNewFee","inputs":[{"name":"new_fee","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyNewFee","inputs":[{"name":"fee","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_factory","type":"address"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"},{"name":"_oracle_method_id","type":"bytes4"},{"name":"_oracle_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"permit","inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_deadline","type":"uint256"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"view","type":"function","name":"last_price","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"ema_price","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"stored_rates","inputs":[],"outputs":[{"name":"","type":"uint256[2]"}]},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_p","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"price_oracle","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"payable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"payable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_min_mint_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"payable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"payable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[2]"}],"outputs":[{"name":"","type":"uint256[2]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[2]"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256[2]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_max_burn_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_max_burn_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"commit_new_fee","inputs":[{"name":"_new_fee","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"apply_new_fee","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_ma_exp_time","inputs":[{"name":"_ma_exp_time","type":"uint256"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"admin_fee_receiver","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"version","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"factory","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"future_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"admin_action_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32"}]},{"stateMutability":"view","type":"function","name":"nonces","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"ma_exp_time","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"ma_last_time","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"oracle_method","inputs":[],"outputs":[{"name":"","type":"uint256"}]}]

60206147f06000396000518060a01c6147eb5760805260206148506000396000518060201b6147eb5760a05260206148706000396000518060a01c6147eb5760c052346147eb576080516001556020614810600039600051606481028160648204186147eb57905060e05260e05160075560e0516008556020614830600039600051600455610362601155670de0b6b3a7640000604052670de0b6b3a76400006060526100ad6101006147a7565b61010051601055426012557f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f610120527f57460011919dcd819dc86ce858dd09eef33a7f4ea46286bc3bc48bf26fa94b00610140527f0b9d98da55727756af85ff51e956250f080813d8ad137f20852fe4ea074e6420610160524661018052306101a05260a061010052610100805160208201209050600e5560c05160a0518060e01c90508060e01b818160e01c186147eb579050176013553060007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000610100526020610100a36145ff6101a8610000396145ff610000f36003361161000c57612fc9565b60003560e01c630b4c7e4d811861002f57606436106145ed573361032052610052565b630c3e4b54811861064157608436106145ed576064358060a01c6145ed57610320525b6000546002146145ed57600260005561006c61036061321e565b6103605161034052346040526100836103a061319b565b6103a0805161036052602081015161038052506100a16103e0613093565b6103e080516103a05260208101516103c052506103a051610160526103c05161018052610360516101a052610380516101c052610340516101e0526100e76104006135cb565b610400516103e052600d54610400526103605161042052610380516104405260006002905b806104605261046051600181116145ed5760051b60040135610480526104005161013a5761048051156145ed575b61046051600181116145ed5760051b610420018051610480518082018281106145ed579050905081525060010181811861010c5750506103a051610160526103c05161018052610420516101a052610440516101c052610340516101e0526101a36104806135cb565b61048051610460526103e0516104605111156145ed57606036610480376104005115610440576004548060011b818160011c186145ed5790508060021c90506104e05260006002905b80610500526104605161050051600181116145ed5760051b61036001518082028115838383041417156145ed57905090506103e05180156145ed57808204905090506105205260006105405261050051600181116145ed5760051b61042001516105605261056051610520511161027c5761056051610520518082038281116145ed579050905061054052610297565b61052051610560518082038281116145ed5790509050610540525b6104e051610540518082028115838383041417156145ed57905090506402540be4008104905061050051600181116145ed5760051b610480015261050051600181116145ed57600201805461050051600181116145ed5760051b610480015164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed579050905081555061050051600181116145ed5760051b61042001805161050051600181116145ed5760051b61048001518082038281116145ed57905090508152506001018181186101ec5750506103a0516040526103c051606052610420516080526104405160a052610396610540613343565b610540805161050052602081015161052052506105005160405261052051606052610340516080526103c96105606133ca565b610560516105405261040051610540516103e0518082038281116145ed57905090508082028115838383041417156145ed57905090506103e05180156145ed57808204905090506104c05261050051610260526105205161028052610340516102a052610540516102c052610449613c1f56610449565b610460516104c0525b6044356104c05110156104bc5760146104e0527f536c697070616765207363726577656420796f75000000000000000000000000610500526104e0506104e0518061050001601f826000031636823750506308c379a06104a05260206104c052601f19601f6104e05101166044016104bcfd5b60043534186145ed5760243515610567576323b872dd6104e052336105005230610520526024356105405260206104e060646104fc600073a2e3356610840701bdf5611a53974510ae27e2e15af1610519573d600060003e3d6000fd5b3d6105445773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016105605261055d565b60203d106145ed576104e0518060011c6145ed57610560525b61056051156145ed575b610400516104c0518082018281106145ed579050905061040052600b61032051602052600052604060002080546104c0518082018281106145ed579050905081555061040051600d556103205160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6104c0516104e05260206104e0a3337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768604060046104e03761048051610520526104a051610540526104605161056052610400516105805260c06104e0a260206104c06003600055f35b633df02124811861065e57608436106145ed57336103c052610681565b63ddc1f59d8118610bf45760a436106145ed576084358060a01c6145ed576103c0525b60043580600f0b81186145ed576103805260243580600f0b81186145ed576103a0526000546002146145ed5760026000556106bd610420613093565b61042080516103e05260208101516104005250346040526106df61046061319b565b610460805161042052602081015161044052506103e05160405261040051606052610420516080526104405160a0526107196104a0613343565b6104a08051610460526020810151610480525061038051600181116145ed5760051b610460015160443561038051600181116145ed5760051b6103e001518082028115838383041417156145ed5790509050670de0b6b3a7640000810490508082018281106145ed57905090506104a0526107956104e061321e565b6104e0516104c05261046051604052610480516060526104c0516080526107bd6105006133ca565b610500516104e05261038051610160526103a051610180526104a0516101a052610460516101c052610480516101e0526104c051610200526104e05161022052610808610520613c60565b61052051610500526103a051600181116145ed5760051b6104600151610500518082038281116145ed5790509050600181038181116145ed57905061052052610520516004548082028115838383041417156145ed57905090506402540be400810490506105405261052051610540518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103e0015180156145ed57808204905090506105205260643561052051101561096157602e610560527f45786368616e676520726573756c74656420696e20666577657220636f696e73610580527f207468616e2065787065637465640000000000000000000000000000000000006105a05261056050610560518061058001601f826000031636823750506308c379a061052052602061054052601f19601f61056051011660440161053cfd5b6104a05161038051600181116145ed5760051b6104600152610500516103a051600181116145ed5760051b6104600152610460516102605261048051610280526104c0516102a0526104e0516102c0526109b9613c1f565b6105405164012a05f20081028164012a05f2008204186145ed5790506402540be40081049050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103e0015180156145ed5780820490509050610560526105605115610a52576103a051600181116145ed576002018054610560518082018281106145ed57905090508155505b73a2e3356610840701bdf5611a53974510ae27e2e16105805261038051610af75760443534186145ed576105805163a9059cbb6105a0526103c0516105c052610520516105e05260206105a060446105bc6000855af1610ab7573d600060003e3d6000fd5b3d610ace57803b156145ed57600161060052610ae7565b60203d106145ed576105a0518060011c6145ed57610600525b610600905051156145ed57610ba1565b346145ed57610580516323b872dd6105a052336105c052306105e0526044356106005260206105a060646105bc6000855af1610b38573d600060003e3d6000fd5b3d610b4f57803b156145ed57600161062052610b68565b60203d106145ed576105a0518060011c6145ed57610620525b610620905051156145ed5760006105a0526105a050600060006105a0516105c0610520516103c0515af1610ba1573d600060003e3d6000fd5b337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140610380516105a0526044356105c0526103a0516105e052610520516106005260806105a0a260206105206003600055f35b346145ed5763a9059cbb8118610c3d57604436106145ed576004358060a01c6145ed5760c0523360405260c051606052602435608052610c32613013565b600160e052602060e0f35b6323b872dd8118610d1757606436106145ed576004358060a01c6145ed5760c0526024358060a01c6145ed5760e05260c05160405260e051606052604435608052610c86613013565b600c60c051602052600052604060002080336020526000526040600020905054610100527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101005114610d0a57610100516044358082038281116145ed5790509050600c60c0516020526000526040600020803360205260005260406000209050555b6001610120526020610120f35b63095ea7b38118610d9657604436106145ed576004358060a01c6145ed57604052602435600c336020526000526040600020806040516020526000526040600020905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b63d505accf81186110c45760e436106145ed576004358060a01c6145ed576040526024358060a01c6145ed576060526084358060081c6145ed57608052604051156145ed5760643542116145ed57600f60405160205260005260406000205460a0526000600260e0527f19010000000000000000000000000000000000000000000000000000000000006101005260e0805160208201836102200181518152505080830192505050600e548161022001526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96101405260405161016052606051610180526044356101a05260a0516101c0526064356101e05260c0610120526101208051602082012090508161022001526020810190508061020052610200905080516020820120905060c0526040513b1561100d576000604060a46101803760406101605261016080516020820183610240018281848460045afa505050808301925050506080516101c0526101c0601f81018051610200525060016101e0526101e090508051602082018361024001815181525050808301925050508061022052610220905080518060e0526020820181610100838360045afa505050507f1626ba7e00000000000000000000000000000000000000000000000000000000604051631626ba7e61016052604060c05161018052806101a052806101800160e0518082526020820181818361010060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081015050602061016060c461017c845afa610ff5573d600060003e3d6000fd5b60203d106145ed57610160905051186145ed57611041565b60405160c05160e0526080516101005260a4356101205260c4356101405260206000608060e060015afa50600051186145ed575b604435600c604051602052600052604060002080606051602052600052604060002090505560a051600181018181106145ed579050600f6040516020526000526040600020556060516040517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560443560e052602060e0a3600160e052602060e0f35b63fde625e681186110f557600436106145ed576fffffffffffffffffffffffffffffffff6010541660405260206040f35b63c24c7c29811861111a57600436106145ed576010548060801c905060405260206040f35b63fd0684b1811861113f57600436106145ed57604061113a610160613093565b610160f35b634903b0d1811861117957602436106145ed576020600060405261116360a061319b565b60a0600435600181116145ed5760051b81019050f35b63fee3f7f9811861119b57600436106145ed5764012a05f20060405260206040f35b63f446c1d081186111ca57600436106145ed576111b860c061321e565b60c05160648104905060e052602060e0f35b6376a2f0f081186111ed57600436106145ed5760206111e960c061321e565b60c0f35b63f2388acb81186112e457600436106145ed5761120b61018061321e565b610180516101605261121e6101c0613093565b6101c080516102805260208101516102a05250600060405261124161020061319b565b61020080516102c05260208101516102e05250610280516040526102a0516060526102c0516080526102e05160a05261127b610240613343565b61024080516101805260208101516101a05250610180516040526101a051606052610160516080526112ae6101e06133ca565b6101e0516101c0526020610180516040526101a051606052610160516080526101c05160a0526112df6101e061362e565b6101e0f35b6386fc88d3811861131357600436106145ed576000546002146145ed57602061130e6101c0613a61565b6101c0f35b63bb7b8b80811861142357600436106145ed576000546002146145ed5761133b61018061321e565b610180516101605261134e6101c0613093565b6101c080516102805260208101516102a05250600060405261137161020061319b565b61020080516102c05260208101516102e05250610280516040526102a0516060526102c0516080526102e05160a0526113ab610240613343565b61024080516101805260208101516101a05250610180516040526101a051606052610160516080526113de6101e06133ca565b6101e0516101c0526101c051670de0b6b3a7640000810281670de0b6b3a76400008204186145ed579050600d5480156145ed57808204905090506101e05260206101e0f35b63ed8e84f3811861161e57606436106145ed576044358060011c6145ed57610280526114506102c061321e565b6102c0516102a052600060405261146861030061319b565b61030080516102c05260208101516102e05250611486610340613093565b61034080516103005260208101516103205250610300516101605261032051610180526102c0516101a0526102e0516101c0526102a0516101e0526114cc6103606135cb565b610360516103405260006002905b806103605261036051600181116145ed5760051b60040135610380526102805161152d5761036051600181116145ed5760051b6102c0018051610380518082038281116145ed5790509050815250611558565b61036051600181116145ed5760051b6102c0018051610380518082018281106145ed57905090508152505b6001018181186114da575050610300516101605261032051610180526102c0516101a0526102e0516101c0526102a0516101e0526115976103806135cb565b6103805161036052600061038052610280516115cc5761034051610360518082038281116145ed5790509050610380526115e7565b61036051610340518082038281116145ed5790509050610380525b61038051600d548082028115838383041417156145ed57905090506103405180156145ed57808204905090506103a05260206103a0f35b635e0d443f811861183e57606436106145ed5760043580600f0b81186145ed576103805260243580600f0b81186145ed576103a05261165e610400613093565b61040080516103c05260208101516103e052506103c0516104c0526103e0516104e052600060405261169161044061319b565b610440805161050052602081015161052052506104c0516040526104e051606052610500516080526105205160a0526116cb610480613343565b6104808051610400526020810151610420525061038051600181116145ed5760051b610400015160443561038051600181116145ed5760051b6103c001518082028115838383041417156145ed5790509050670de0b6b3a7640000810490508082018281106145ed57905090506104405261038051610160526103a05161018052610440516101a052610400516101c052610420516101e05260403661020037611776610480613c60565b61048051610460526103a051600181116145ed5760051b6104000151610460518082038281116145ed5790509050600181038181116145ed57905061048052600454610480518082028115838383041417156145ed57905090506402540be400810490506104a052610480516104a0518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103c0015180156145ed57808204905090506104c05260206104c0f35b635b36389c811861185a57606436106145ed573360a05261187c565b633eb1719f8118611b5a57608436106145ed576064358060a01c6145ed5760a0525b6000546002146145ed576002600055600d5460c05260006040526118a161012061319b565b610120805160e0526020810151610100525060006002905b806101205261012051600181116145ed5760051b60e001516004358082028115838383041417156145ed579050905060c05180156145ed57808204905090506101405261012051600181116145ed5760051b602401356101405110156119a4576030610160527f5769746864726177616c20726573756c74656420696e20666577657220636f69610180527f6e73207468616e206578706563746564000000000000000000000000000000006101a05261016050610160518061018001601f826000031636823750506308c379a061012052602061014052601f19601f61016051011660440161013cfd5b6101405161012051600181116145ed5760051b60e00152610120516119f4576000610160526101605060006000610160516101806101405160a0515af1611a8c573d600060003e3d6000fd611a8c565b63a9059cbb6101605260a05161018052610140516101a0526020610160604461017c600073a2e3356610840701bdf5611a53974510ae27e2e15af1611a3e573d600060003e3d6000fd5b3d611a695773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016101c052611a82565b60203d106145ed57610160518060011c6145ed576101c0525b6101c051156145ed575b6001018181186118b957505060c0516004358082038281116145ed579050905060c052600b33602052600052604060002080546004358082038281116145ed579050905081555060c051600d556000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610120526020610120a3337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60e0516101205261010051610140526040366101603760c0516101a05260a0610120a2604060e06003600055f35b63e31032738118611b7757606436106145ed573361032052611b9a565b6352d2cfdd811861218857608436106145ed576064358060a01c6145ed57610320525b6000546002146145ed576002600055611bb461036061321e565b6103605161034052611bc76103a0613093565b6103a0805161036052602081015161038052506000604052611bea6103e061319b565b6103e080516103a05260208101516103c05250610360516101605261038051610180526103a0516101a0526103c0516101c052610340516101e052611c306104006135cb565b610400516103e0526103a051610400526103c0516104205260006002905b806104405261044051600181116145ed5760051b61040001805161044051600181116145ed5760051b600401358082038281116145ed5790509050815250600101818118611c4e57505061036051610160526103805161018052610400516101a052610420516101c052610340516101e052611ccb6104606135cb565b6104605161044052604036610460376004548060011b818160011c186145ed5790508060021c90506104a05260006002905b806104c052610440516104c051600181116145ed5760051b6103a001518082028115838383041417156145ed57905090506103e05180156145ed57808204905090506104e0526000610500526104c051600181116145ed5760051b610400015161052052610520516104e05111611d8d57610520516104e0518082038281116145ed579050905061050052611da8565b6104e051610520518082038281116145ed5790509050610500525b6104a051610500518082028115838383041417156145ed57905090506402540be400810490506104c051600181116145ed5760051b61046001526104c051600181116145ed5760020180546104c051600181116145ed5760051b610460015164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed57905090508155506104c051600181116145ed5760051b6104000180516104c051600181116145ed5760051b61046001518082038281116145ed5790509050815250600101818118611cfd5750506103605160405261038051606052610400516080526104205160a052611ea76104c0613343565b6104c080516104005260208101516104205250610400516040526104205160605261034051608052611eda6104e06133ca565b6104e0516104c05261040051610260526104205161028052610340516102a0526104c0516102c052611f0a613c1f565b600d546104e0526103e0516104c0518082038281116145ed57905090506104e0518082028115838383041417156145ed57905090506103e05180156145ed5780820490509050600181018181106145ed57905061050052600261050051106145ed57604435610500511115611fdf576014610520527f536c697070616765207363726577656420796f750000000000000000000000006105405261052050610520518061054001601f826000031636823750506308c379a06104e052602061050052601f19601f6105205101166044016104fcfd5b6104e051610500518082038281116145ed57905090506104e0526104e051600d55600b3360205260005260406000208054610500518082038281116145ed57905090508155506000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef61050051610520526020610520a36004351561208c57600061052052610520506000600061052051610540600435610320515af161208c573d600060003e3d6000fd5b6024351561212c5763a9059cbb610520526103205161054052602435610560526020610520604461053c600073a2e3356610840701bdf5611a53974510ae27e2e15af16120de573d600060003e3d6000fd5b3d6121095773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed57600161058052612122565b60203d106145ed57610520518060011c6145ed57610580525b61058051156145ed575b337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e604060046105203761046051610560526104805161058052610440516105a0526104e0516105c05260c0610520a260206105006003600055f35b63cc2b27d781186121cd57604436106145ed5760243580600f0b81186145ed576104205260206004356101e05261042051610200526121c86104406141d0565b610440f35b631a4d01d281186121ea57606436106145ed57336104405261220d565b63081579a581186124c057608436106145ed576064358060a01c6145ed57610440525b60243580600f0b81186145ed57610420526000546002146145ed5760026000556004356101e05261042051610200526122476104c06141d0565b6104c080516104605260208101516104805260408101516104a052506044356104605110156122d65760186104c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006104e0526104c0506104c051806104e001601f826000031636823750506308c379a06104805260206104a052601f19601f6104c051011660440161049cfd5b61042051600181116145ed5760020180546104805164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed5790509050815550600d546004358082038281116145ed57905090506104c0526104c051600d55600b33602052600052604060002080546004358082038281116145ed57905090508155506000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6004356104e05260206104e0a3610420516123cc5760006104e0526104e050600060006104e05161050061046051610440515af1612465573d600060003e3d6000fd612465565b63a9059cbb6104e0526104405161050052610460516105205260206104e060446104fc600073a2e3356610840701bdf5611a53974510ae27e2e15af1612417573d600060003e3d6000fd5b3d6124425773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016105405261245b565b60203d106145ed576104e0518060011c6145ed57610540525b61054051156145ed575b337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06004356104e05261046051610500526104c0516105205260606104e0a26104a0516101c0526124b4613bca565b60206104606003600055f35b633c157e64811861262f57604436106145ed5760015463f851a44060c052602060c0600460dc845afa6124f8573d600060003e3d6000fd5b60203d106145ed5760c0518060a01c6145ed576101005261010090505133186145ed576009546201518081018181106145ed57905042106145ed57426201518081018181106145ed579050602435106145ed5761255560e061321e565b60e05160c052600435606481028160648204186145ed57905060e0526004351561258757620f423f600435111561258a565b60005b156145ed5760c05160e051106125ba5760c051600a810281600a8204186145ed57905060e051116145ed576125d6565b60c05160e051600a810281600a8204186145ed579050106145ed575b60c05160075560e05160085542600955602435600a557fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c25460c0516101005260e051610120524261014052602435610160526080610100a1005b63551a658881186126e157600436106145ed5760015463f851a44060c052602060c0600460dc845afa612667573d600060003e3d6000fd5b60203d106145ed5760c0518060a01c6145ed576101005261010090505133186145ed5761269460e061321e565b60e05160c05260c05160075560c0516008554260095542600a557f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc20193860c05160e0524261010052604060e0a1005b6330c5408581186128a157600436106145ed5760015463154aa8f560605230608052602060606024607c845afa61271d573d600060003e3d6000fd5b60203d106145ed576060518060a01c6145ed5760a05260a09050516040526040516127c35760216060527f6465763a20666565207265636569766572206973207a65726f206164647265736080527f730000000000000000000000000000000000000000000000000000000000000060a05260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b600254606052606051156127f95760006080526080506000600060805160a06060516040515af16127f9573d600060003e3d6000fd5b600354606052606051156128955763a9059cbb60805260405160a05260605160c052602060806044609c600073a2e3356610840701bdf5611a53974510ae27e2e15af161284b573d600060003e3d6000fd5b3d6128755773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed57600160e05261288c565b60203d106145ed576080518060011c6145ed5760e0525b60e051156145ed575b60006002556000600355005b63a48eac9d811861295657602436106145ed5760015463f851a440604052602060406004605c845afa6128d9573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed5764012a05f200600435116145ed576006546145ed57600435600555426203f48081018181106145ed5790506006557f878eb36b3f197f05821c06953d9bc8f14b332a227b1e26df06a4215bbfe5d73f60043560405260206040a1005b634f12fe978118612a0f57600436106145ed5760015463f851a440604052602060406004605c845afa61298e573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed57600654604052604051156129c8576040514210156129cb565b60005b156145ed5760055460605260605160045560006006557fa8715770654f54603947addf38c689adbd7182e21673b28bcf306a957aaba21560605160805260206080a1005b637f3e17cb8118612a7857602436106145ed5760015463f851a440604052602060406004605c845afa612a47573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed57600435156145ed57600435601155005b638da5cb5b8118612ace57600436106145ed57602060015463f851a440604052602060406004605c845afa612ab2573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed5760805260809050f35b636e42e4d28118612b2857600436106145ed57602060015463154aa8f560405230606052602060406024605c845afa612b0c573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed5760805260809050f35b6354fd4d508118612bb057600436106145ed5760208060805260066040527f76362e302e31000000000000000000000000000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b63c45a01558118612bcf57600436106145ed5760015460405260206040f35b63e2e7d2648118612bfa57602436106145ed57600435600181116145ed576002015460405260206040f35b63ddca3f438118612c1957600436106145ed5760045460405260206040f35b6358680d0b8118612c3857600436106145ed5760055460405260206040f35b63e66f43f58118612c5757600436106145ed5760065460405260206040f35b635409491a8118612c7657600436106145ed5760075460405260206040f35b63b4b577ad8118612c9557600436106145ed5760085460405260206040f35b632081066c8118612cb457600436106145ed5760095460405260206040f35b63140522888118612cd357600436106145ed57600a5460405260206040f35b6370a082318118612d0e57602436106145ed576004358060a01c6145ed57604052600b60405160205260005260406000205460605260206060f35b63dd62ed3e8118612d6857604436106145ed576004358060a01c6145ed576040526024358060a01c6145ed57606052600c604051602052600052604060002080606051602052600052604060002090505460805260206080f35b6318160ddd8118612d8757600436106145ed57600d5460405260206040f35b633644e5158118612da657600436106145ed57600e5460405260206040f35b637ecebe008118612de157602436106145ed576004358060a01c6145ed57604052600f60405160205260005260406000205460605260206060f35b631be913a58118612e0057600436106145ed5760115460405260206040f35b631ddc3b018118612e1f57600436106145ed5760125460405260206040f35b6306fdde038118612ea757600436106145ed5760208060805260126040527f43757276652e6669204554482f7742455448000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b6395d89b418118612f2f57600436106145ed57602080608052600b6040527f455448774245544843525600000000000000000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b63313ce5678118612f4d57600436106145ed57601260405260206040f35b63c66106578118612fa857602436106145ed57602073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60405273a2e3356610840701bdf5611a53974510ae27e2e16060526040600435600181116145ed5760051b81019050f35b633495018d8118612fc757600436106145ed5760135460405260206040f35b505b60006000fd5b6fffffffffffffffffffffffffffffffff604051116145ed576fffffffffffffffffffffffffffffffff606051116145ed576060518060801b905060405117815250565b600b604051602052600052604060002080546080518082038281116145ed5790509050815550600b606051602052600052604060002080546080518082018281106145ed57905090508155506060516040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60805160a052602060a0a3565b670de0b6b3a7640000604052670de0b6b3a76400006060526013546080526080511561318b577fffffffff000000000000000000000000000000000000000000000000000000006080511661010052602060e05260e050602061014060e05161010060805173ffffffffffffffffffffffffffffffffffffffff811690508060a01c6145ed575afa61312a573d600060003e3d6000fd5b3d602081183d60201002186101205261012080518060a05260208201805160c05250505060a051156145ed5760605160c05160a05160200360031b1c8082028115838383041417156145ed5790509050670de0b6b3a7640000810490506060525b6040518152606051602082015250565b476002548082038281116145ed57905090506040518082038281116145ed579050905081526370a0823160605230608052602060606024607c73a2e3356610840701bdf5611a53974510ae27e2e15afa6131fa573d600060003e3d6000fd5b60203d106145ed576060516003548082038281116145ed5790509050602082015250565b600a5460405260085460605260405142106132425760605181525061334156613341565b60075460805260095460a052608051606051116132d1576080516080516060518082038281116145ed57905090504260a0518082038281116145ed57905090508082028115838383041417156145ed579050905060405160a0518082038281116145ed579050905080156145ed57808204905090508082038281116145ed579050905081525061334156613341565b6080516060516080518082038281116145ed57905090504260a0518082038281116145ed57905090508082028115838383041417156145ed579050905060405160a0518082038281116145ed579050905080156145ed57808204905090508082018281106145ed57905090508152505b565b60403660c03760006002905b806101005261010051600181116145ed5760051b6040015161010051600181116145ed5760051b608001518082028115838383041417156145ed5790509050670de0b6b3a76400008104905061010051600181116145ed5760051b60c0015260010181811861334f57505060c051815260e051602082015250565b600060a05260006002905b8060051b6040015160c05260a05160c0518082018281106145ed579050905060a0526001018181186133d557505060a0516134145760008152506135c9565b60a05160c0526080518060011b818160011c186145ed57905060e052600060ff905b806101005260c05160c0518082028115838383041417156145ed579050905060405180156145ed578082049050905060c0518082028115838383041417156145ed579050905060605180156145ed57808204905090508060021c90506101205260c0516101405260e05160a0518082028115838383041417156145ed5790509050606481049050610120518060011b818160011c186145ed5790508082018281106145ed579050905060c0518082028115838383041417156145ed579050905060e051606481038181116145ed57905060c0518082028115838383041417156145ed579050905060648104905061012051600381028160038204186145ed5790508082018281106145ed579050905080156145ed578082049050905060c0526101405160c0511161358e5760016101405160c0518082038281116145ed5790509050116135b75760c05183525050506135c9566135b7565b600160c051610140518082038281116145ed5790509050116135b75760c05183525050506135c9565b60010181811861343657505060006000fd5b565b61016051604052610180516060526101a0516080526101c05160a0526135f2610240613343565b6102408051610200526020810151610220525061020051604052610220516060526101e0516080526136256102406133ca565b61024051815250565b6080518060011b818160011c186145ed57905060c05260a0518060021c905060e05260006002905b806101005260e05160a0518082028115838383041417156145ed579050905061010051600181116145ed5760051b6040015180156145ed578082049050905060e05260010181811861365657505060c0516040518082028115838383041417156145ed579050905060648104905060e0516040518082028115838383041417156145ed579050905060605180156145ed57808204905090508082018281106145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905060c0516040518082028115838383041417156145ed579050905060648104905060e0518082018281106145ed579050905080156145ed5780820490509050815250565b7ffffffffffffffffffffffffffffffffffffffffffffffffdb731c958f34d94c160405113613790576000815250613a5f565b680755bf798b4a1bf1e5604051126137ff57600c6060527f657870206f766572666c6f77000000000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b670de0b6b3a764000060405160601b056060526c010000000000000000000000006b8000000000000000000000006bb17217f7d1cf79abc9e3b39860605160601b0501056080526bb17217f7d1cf79abc9e3b39860805102606051036060526c10fe68e7fd37d0007b713f76506060510160a0526d02d16720577bd19bf614176fe9ea6c0100000000000000000000000060605160a05102050160a0526d04a4fd9f2a8b96949216d2255a6c60605160a051010360c0526e0587f503bb6ea29d25fcb7401964506c0100000000000000000000000060a05160c05102050160c05279d835ebba824c98fb31b83b2ca45c00000000000000000000000060605160c051020160c0526060516c240c330e9fb2d9cbaf0fd5aafc81038181136145ed57905060e0526d0277594991cfc85f6e2461837cd96c0100000000000000000000000060605160e05102050160e0526d1a521255e34f6a5061b25ef1c9c46c0100000000000000000000000060605160e05102050360e0526db1bbb201f443cf962f1a1d3db4a56c0100000000000000000000000060605160e05102050160e0526e02c72388d9f74f51a9331fed693f156c0100000000000000000000000060605160e05102050360e0526e05180bb14799ab47a8a8cb2a527d576c0100000000000000000000000060605160e05102050160e05274029d9dc38563c32e5c2f6dc192ee70ef65f9978af360e05160c05105600081126145ed570260c3608051037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811315613a505781811b613a57565b81816000031c5b905090508152505b565b60125461010052601054610120526fffffffffffffffffffffffffffffffff6101205116671bc16d674ec80000818118671bc16d674ec8000083100218905061014052610120518060801c905061016052426101005110613acc5761016051815250613bc856613bc8565b42610100518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905060115480156145ed57808204905090508060ff1c6145ed577f800000000000000000000000000000000000000000000000000000000000000081146145ed57600003604052613b4d6101a061375d565b6101a05161018052610140516101805180670de0b6b3a764000003670de0b6b3a764000081116145ed5790508082028115838383041417156145ed579050905061016051610180518082028115838383041417156145ed57905090508082018281106145ed5790509050670de0b6b3a7640000810490508152505b565b6101c05115613c1d576101c05161022052613be66101e0613a61565b6101e051610240526102205160405261024051606052613c07610200612fcf565b61020051601055426012541015613c1d57426012555b565b61026051604052610280516060526102a0516080526102c05160a052613c466102e061362e565b6102e05161030052610300516101c052613c5e613bca565b565b6101805161016051146145ed57600061018051126145ed57600161018051136145ed57600061016051126145ed57600161016051136145ed576102005161024052610220516102605261022051613ced57613cbc61028061321e565b61028051610240526101c0516040526101e05160605261024051608052613ce46102806133ca565b61028051610260525b60603661028037610260516102e052610240518060011b818160011c186145ed5790506103005260006002905b8061032052610160516103205118613d39576101a0516102a052613d67565b610180516103205114613dc35761032051600181116145ed5760051b6101c001516102a052613d6756613dc3565b610280516102a0518082018281106145ed5790509050610280526102e051610260518082028115838383041417156145ed57905090506102a0518060011b818160011c186145ed57905080156145ed57808204905090506102e0525b600101818118613d1a5750506102e051610260518082028115838383041417156145ed5790509050606481028160648204186145ed579050610300518060011b818160011c186145ed57905080156145ed57808204905090506102e0526102805161026051606481028160648204186145ed5790506103005180156145ed57808204905090508082018281106145ed5790509050610320526102605161034052600060ff905b8061036052610340516102c05261034051610340518082028115838383041417156145ed57905090506102e0518082018281106145ed5790509050610340518060011b818160011c186145ed579050610320518082018281106145ed5790509050610260518082038281116145ed579050905080156145ed5780820490509050610340526102c0516103405111613f295760016102c051610340518082038281116145ed579050905011613f5457610340518352505050613f6656613f54565b6001610340516102c0518082038281116145ed579050905011613f5457610340518352505050613f66565b600101818118613e6957505060006000fd5b565b6000606051126145ed576001606051136145ed5760603660e03760c051610140526040518060011b818160011c186145ed5790506101605260006002905b806101805260605161018051146140305761018051600181116145ed5760051b6080015161010052613fd756614030565b60e051610100518082018281106145ed579050905060e0526101405160c0518082028115838383041417156145ed5790509050610100518060011b818160011c186145ed57905080156145ed5780820490509050610140525b600101818118613fa65750506101405160c0518082028115838383041417156145ed5790509050606481028160648204186145ed579050610160518060011b818160011c186145ed57905080156145ed57808204905090506101405260e05160c051606481028160648204186145ed5790506101605180156145ed57808204905090508082018281106145ed57905090506101805260c0516101a052600060ff905b806101c0526101a051610120526101a0516101a0518082028115838383041417156145ed5790509050610140518082018281106145ed57905090506101a0518060011b818160011c186145ed579050610180518082018281106145ed579050905060c0518082038281116145ed579050905080156145ed57808204905090506101a052610120516101a05111614191576001610120516101a0518082038281116145ed5790509050116141bc576101a05183525050506141ce566141bc565b60016101a051610120518082038281116145ed5790509050116141bc576101a05183525050506141ce565b6001018181186140d257505060006000fd5b565b6141db61024061321e565b61024051610220526141ee610280613093565b610280805161024052602081015161026052506102405161034052610260516103605260006040526142216102c061319b565b6102c080516103805260208101516103a052506103405160405261036051606052610380516080526103a05160a05261425b610300613343565b61030080516102805260208101516102a05250610280516040526102a0516060526102205160805261428e6102e06133ca565b6102e0516102c052600d546102e0526102c0516101e0516102c0518082028115838383041417156145ed57905090506102e05180156145ed57808204905090508082038281116145ed5790509050610300526102205160405261020051606052610280516080526102a05160a0526103005160c05261430e610340613f68565b61034051610320526004548060011b818160011c186145ed5790508060021c9050610340526040366103603760006002905b806103a05260006103c0526103a051600181116145ed5760051b61028001516103e052610200516103a051186143b8576103e051610300518082028115838383041417156145ed57905090506102c05180156145ed5780820490509050610320518082038281116145ed57905090506103c0526143fc565b6103e0516103e051610300518082028115838383041417156145ed57905090506102c05180156145ed57808204905090508082038281116145ed57905090506103c0525b6103e051610340516103c0518082028115838383041417156145ed57905090506402540be400810490508082038281116145ed57905090506103a051600181116145ed5760051b610360015260010181811861434057505061020051600181116145ed5760051b61036001516102205160405261020051606052610360516080526103805160a0526103005160c0526144966103c0613f68565b6103c0518082038281116145ed57905090506103a05261020051600181116145ed5760051b6102800151610320518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905061020051600181116145ed5760051b610240015180156145ed57808204905090506103c0526103a051600181038181116145ed579050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905061020051600181116145ed5760051b610240015180156145ed57808204905090506103a0526103205161020051600181116145ed5760051b610280015260006103e05261032051156145c057610280516040526102a051606052610220516080526103005160a0526145b761040061362e565b610400516103e0525b6103a05181526103c0516103a0518082038281116145ed579050905060208201526103e051604082015250565b600080fda165767970657283000307000b5b6fffffffffffffffffffffffffffffffff604051116147eb576fffffffffffffffffffffffffffffffff606051116147eb576060518060801b905060405117815250565b600080fd000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d400000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000003d09003ba0b9a900000000000000000000000000000000000000000000000000000000000000000000000000000000a2e3356610840701bdf5611a53974510ae27e2e1

Deployed Bytecode

0x6003361161000c57612fc9565b60003560e01c630b4c7e4d811861002f57606436106145ed573361032052610052565b630c3e4b54811861064157608436106145ed576064358060a01c6145ed57610320525b6000546002146145ed57600260005561006c61036061321e565b6103605161034052346040526100836103a061319b565b6103a0805161036052602081015161038052506100a16103e0613093565b6103e080516103a05260208101516103c052506103a051610160526103c05161018052610360516101a052610380516101c052610340516101e0526100e76104006135cb565b610400516103e052600d54610400526103605161042052610380516104405260006002905b806104605261046051600181116145ed5760051b60040135610480526104005161013a5761048051156145ed575b61046051600181116145ed5760051b610420018051610480518082018281106145ed579050905081525060010181811861010c5750506103a051610160526103c05161018052610420516101a052610440516101c052610340516101e0526101a36104806135cb565b61048051610460526103e0516104605111156145ed57606036610480376104005115610440576004548060011b818160011c186145ed5790508060021c90506104e05260006002905b80610500526104605161050051600181116145ed5760051b61036001518082028115838383041417156145ed57905090506103e05180156145ed57808204905090506105205260006105405261050051600181116145ed5760051b61042001516105605261056051610520511161027c5761056051610520518082038281116145ed579050905061054052610297565b61052051610560518082038281116145ed5790509050610540525b6104e051610540518082028115838383041417156145ed57905090506402540be4008104905061050051600181116145ed5760051b610480015261050051600181116145ed57600201805461050051600181116145ed5760051b610480015164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed579050905081555061050051600181116145ed5760051b61042001805161050051600181116145ed5760051b61048001518082038281116145ed57905090508152506001018181186101ec5750506103a0516040526103c051606052610420516080526104405160a052610396610540613343565b610540805161050052602081015161052052506105005160405261052051606052610340516080526103c96105606133ca565b610560516105405261040051610540516103e0518082038281116145ed57905090508082028115838383041417156145ed57905090506103e05180156145ed57808204905090506104c05261050051610260526105205161028052610340516102a052610540516102c052610449613c1f56610449565b610460516104c0525b6044356104c05110156104bc5760146104e0527f536c697070616765207363726577656420796f75000000000000000000000000610500526104e0506104e0518061050001601f826000031636823750506308c379a06104a05260206104c052601f19601f6104e05101166044016104bcfd5b60043534186145ed5760243515610567576323b872dd6104e052336105005230610520526024356105405260206104e060646104fc600073a2e3356610840701bdf5611a53974510ae27e2e15af1610519573d600060003e3d6000fd5b3d6105445773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016105605261055d565b60203d106145ed576104e0518060011c6145ed57610560525b61056051156145ed575b610400516104c0518082018281106145ed579050905061040052600b61032051602052600052604060002080546104c0518082018281106145ed579050905081555061040051600d556103205160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6104c0516104e05260206104e0a3337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768604060046104e03761048051610520526104a051610540526104605161056052610400516105805260c06104e0a260206104c06003600055f35b633df02124811861065e57608436106145ed57336103c052610681565b63ddc1f59d8118610bf45760a436106145ed576084358060a01c6145ed576103c0525b60043580600f0b81186145ed576103805260243580600f0b81186145ed576103a0526000546002146145ed5760026000556106bd610420613093565b61042080516103e05260208101516104005250346040526106df61046061319b565b610460805161042052602081015161044052506103e05160405261040051606052610420516080526104405160a0526107196104a0613343565b6104a08051610460526020810151610480525061038051600181116145ed5760051b610460015160443561038051600181116145ed5760051b6103e001518082028115838383041417156145ed5790509050670de0b6b3a7640000810490508082018281106145ed57905090506104a0526107956104e061321e565b6104e0516104c05261046051604052610480516060526104c0516080526107bd6105006133ca565b610500516104e05261038051610160526103a051610180526104a0516101a052610460516101c052610480516101e0526104c051610200526104e05161022052610808610520613c60565b61052051610500526103a051600181116145ed5760051b6104600151610500518082038281116145ed5790509050600181038181116145ed57905061052052610520516004548082028115838383041417156145ed57905090506402540be400810490506105405261052051610540518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103e0015180156145ed57808204905090506105205260643561052051101561096157602e610560527f45786368616e676520726573756c74656420696e20666577657220636f696e73610580527f207468616e2065787065637465640000000000000000000000000000000000006105a05261056050610560518061058001601f826000031636823750506308c379a061052052602061054052601f19601f61056051011660440161053cfd5b6104a05161038051600181116145ed5760051b6104600152610500516103a051600181116145ed5760051b6104600152610460516102605261048051610280526104c0516102a0526104e0516102c0526109b9613c1f565b6105405164012a05f20081028164012a05f2008204186145ed5790506402540be40081049050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103e0015180156145ed5780820490509050610560526105605115610a52576103a051600181116145ed576002018054610560518082018281106145ed57905090508155505b73a2e3356610840701bdf5611a53974510ae27e2e16105805261038051610af75760443534186145ed576105805163a9059cbb6105a0526103c0516105c052610520516105e05260206105a060446105bc6000855af1610ab7573d600060003e3d6000fd5b3d610ace57803b156145ed57600161060052610ae7565b60203d106145ed576105a0518060011c6145ed57610600525b610600905051156145ed57610ba1565b346145ed57610580516323b872dd6105a052336105c052306105e0526044356106005260206105a060646105bc6000855af1610b38573d600060003e3d6000fd5b3d610b4f57803b156145ed57600161062052610b68565b60203d106145ed576105a0518060011c6145ed57610620525b610620905051156145ed5760006105a0526105a050600060006105a0516105c0610520516103c0515af1610ba1573d600060003e3d6000fd5b337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140610380516105a0526044356105c0526103a0516105e052610520516106005260806105a0a260206105206003600055f35b346145ed5763a9059cbb8118610c3d57604436106145ed576004358060a01c6145ed5760c0523360405260c051606052602435608052610c32613013565b600160e052602060e0f35b6323b872dd8118610d1757606436106145ed576004358060a01c6145ed5760c0526024358060a01c6145ed5760e05260c05160405260e051606052604435608052610c86613013565b600c60c051602052600052604060002080336020526000526040600020905054610100527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101005114610d0a57610100516044358082038281116145ed5790509050600c60c0516020526000526040600020803360205260005260406000209050555b6001610120526020610120f35b63095ea7b38118610d9657604436106145ed576004358060a01c6145ed57604052602435600c336020526000526040600020806040516020526000526040600020905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b63d505accf81186110c45760e436106145ed576004358060a01c6145ed576040526024358060a01c6145ed576060526084358060081c6145ed57608052604051156145ed5760643542116145ed57600f60405160205260005260406000205460a0526000600260e0527f19010000000000000000000000000000000000000000000000000000000000006101005260e0805160208201836102200181518152505080830192505050600e548161022001526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96101405260405161016052606051610180526044356101a05260a0516101c0526064356101e05260c0610120526101208051602082012090508161022001526020810190508061020052610200905080516020820120905060c0526040513b1561100d576000604060a46101803760406101605261016080516020820183610240018281848460045afa505050808301925050506080516101c0526101c0601f81018051610200525060016101e0526101e090508051602082018361024001815181525050808301925050508061022052610220905080518060e0526020820181610100838360045afa505050507f1626ba7e00000000000000000000000000000000000000000000000000000000604051631626ba7e61016052604060c05161018052806101a052806101800160e0518082526020820181818361010060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081015050602061016060c461017c845afa610ff5573d600060003e3d6000fd5b60203d106145ed57610160905051186145ed57611041565b60405160c05160e0526080516101005260a4356101205260c4356101405260206000608060e060015afa50600051186145ed575b604435600c604051602052600052604060002080606051602052600052604060002090505560a051600181018181106145ed579050600f6040516020526000526040600020556060516040517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560443560e052602060e0a3600160e052602060e0f35b63fde625e681186110f557600436106145ed576fffffffffffffffffffffffffffffffff6010541660405260206040f35b63c24c7c29811861111a57600436106145ed576010548060801c905060405260206040f35b63fd0684b1811861113f57600436106145ed57604061113a610160613093565b610160f35b634903b0d1811861117957602436106145ed576020600060405261116360a061319b565b60a0600435600181116145ed5760051b81019050f35b63fee3f7f9811861119b57600436106145ed5764012a05f20060405260206040f35b63f446c1d081186111ca57600436106145ed576111b860c061321e565b60c05160648104905060e052602060e0f35b6376a2f0f081186111ed57600436106145ed5760206111e960c061321e565b60c0f35b63f2388acb81186112e457600436106145ed5761120b61018061321e565b610180516101605261121e6101c0613093565b6101c080516102805260208101516102a05250600060405261124161020061319b565b61020080516102c05260208101516102e05250610280516040526102a0516060526102c0516080526102e05160a05261127b610240613343565b61024080516101805260208101516101a05250610180516040526101a051606052610160516080526112ae6101e06133ca565b6101e0516101c0526020610180516040526101a051606052610160516080526101c05160a0526112df6101e061362e565b6101e0f35b6386fc88d3811861131357600436106145ed576000546002146145ed57602061130e6101c0613a61565b6101c0f35b63bb7b8b80811861142357600436106145ed576000546002146145ed5761133b61018061321e565b610180516101605261134e6101c0613093565b6101c080516102805260208101516102a05250600060405261137161020061319b565b61020080516102c05260208101516102e05250610280516040526102a0516060526102c0516080526102e05160a0526113ab610240613343565b61024080516101805260208101516101a05250610180516040526101a051606052610160516080526113de6101e06133ca565b6101e0516101c0526101c051670de0b6b3a7640000810281670de0b6b3a76400008204186145ed579050600d5480156145ed57808204905090506101e05260206101e0f35b63ed8e84f3811861161e57606436106145ed576044358060011c6145ed57610280526114506102c061321e565b6102c0516102a052600060405261146861030061319b565b61030080516102c05260208101516102e05250611486610340613093565b61034080516103005260208101516103205250610300516101605261032051610180526102c0516101a0526102e0516101c0526102a0516101e0526114cc6103606135cb565b610360516103405260006002905b806103605261036051600181116145ed5760051b60040135610380526102805161152d5761036051600181116145ed5760051b6102c0018051610380518082038281116145ed5790509050815250611558565b61036051600181116145ed5760051b6102c0018051610380518082018281106145ed57905090508152505b6001018181186114da575050610300516101605261032051610180526102c0516101a0526102e0516101c0526102a0516101e0526115976103806135cb565b6103805161036052600061038052610280516115cc5761034051610360518082038281116145ed5790509050610380526115e7565b61036051610340518082038281116145ed5790509050610380525b61038051600d548082028115838383041417156145ed57905090506103405180156145ed57808204905090506103a05260206103a0f35b635e0d443f811861183e57606436106145ed5760043580600f0b81186145ed576103805260243580600f0b81186145ed576103a05261165e610400613093565b61040080516103c05260208101516103e052506103c0516104c0526103e0516104e052600060405261169161044061319b565b610440805161050052602081015161052052506104c0516040526104e051606052610500516080526105205160a0526116cb610480613343565b6104808051610400526020810151610420525061038051600181116145ed5760051b610400015160443561038051600181116145ed5760051b6103c001518082028115838383041417156145ed5790509050670de0b6b3a7640000810490508082018281106145ed57905090506104405261038051610160526103a05161018052610440516101a052610400516101c052610420516101e05260403661020037611776610480613c60565b61048051610460526103a051600181116145ed5760051b6104000151610460518082038281116145ed5790509050600181038181116145ed57905061048052600454610480518082028115838383041417156145ed57905090506402540be400810490506104a052610480516104a0518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed5790506103a051600181116145ed5760051b6103c0015180156145ed57808204905090506104c05260206104c0f35b635b36389c811861185a57606436106145ed573360a05261187c565b633eb1719f8118611b5a57608436106145ed576064358060a01c6145ed5760a0525b6000546002146145ed576002600055600d5460c05260006040526118a161012061319b565b610120805160e0526020810151610100525060006002905b806101205261012051600181116145ed5760051b60e001516004358082028115838383041417156145ed579050905060c05180156145ed57808204905090506101405261012051600181116145ed5760051b602401356101405110156119a4576030610160527f5769746864726177616c20726573756c74656420696e20666577657220636f69610180527f6e73207468616e206578706563746564000000000000000000000000000000006101a05261016050610160518061018001601f826000031636823750506308c379a061012052602061014052601f19601f61016051011660440161013cfd5b6101405161012051600181116145ed5760051b60e00152610120516119f4576000610160526101605060006000610160516101806101405160a0515af1611a8c573d600060003e3d6000fd611a8c565b63a9059cbb6101605260a05161018052610140516101a0526020610160604461017c600073a2e3356610840701bdf5611a53974510ae27e2e15af1611a3e573d600060003e3d6000fd5b3d611a695773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016101c052611a82565b60203d106145ed57610160518060011c6145ed576101c0525b6101c051156145ed575b6001018181186118b957505060c0516004358082038281116145ed579050905060c052600b33602052600052604060002080546004358082038281116145ed579050905081555060c051600d556000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610120526020610120a3337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60e0516101205261010051610140526040366101603760c0516101a05260a0610120a2604060e06003600055f35b63e31032738118611b7757606436106145ed573361032052611b9a565b6352d2cfdd811861218857608436106145ed576064358060a01c6145ed57610320525b6000546002146145ed576002600055611bb461036061321e565b6103605161034052611bc76103a0613093565b6103a0805161036052602081015161038052506000604052611bea6103e061319b565b6103e080516103a05260208101516103c05250610360516101605261038051610180526103a0516101a0526103c0516101c052610340516101e052611c306104006135cb565b610400516103e0526103a051610400526103c0516104205260006002905b806104405261044051600181116145ed5760051b61040001805161044051600181116145ed5760051b600401358082038281116145ed5790509050815250600101818118611c4e57505061036051610160526103805161018052610400516101a052610420516101c052610340516101e052611ccb6104606135cb565b6104605161044052604036610460376004548060011b818160011c186145ed5790508060021c90506104a05260006002905b806104c052610440516104c051600181116145ed5760051b6103a001518082028115838383041417156145ed57905090506103e05180156145ed57808204905090506104e0526000610500526104c051600181116145ed5760051b610400015161052052610520516104e05111611d8d57610520516104e0518082038281116145ed579050905061050052611da8565b6104e051610520518082038281116145ed5790509050610500525b6104a051610500518082028115838383041417156145ed57905090506402540be400810490506104c051600181116145ed5760051b61046001526104c051600181116145ed5760020180546104c051600181116145ed5760051b610460015164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed57905090508155506104c051600181116145ed5760051b6104000180516104c051600181116145ed5760051b61046001518082038281116145ed5790509050815250600101818118611cfd5750506103605160405261038051606052610400516080526104205160a052611ea76104c0613343565b6104c080516104005260208101516104205250610400516040526104205160605261034051608052611eda6104e06133ca565b6104e0516104c05261040051610260526104205161028052610340516102a0526104c0516102c052611f0a613c1f565b600d546104e0526103e0516104c0518082038281116145ed57905090506104e0518082028115838383041417156145ed57905090506103e05180156145ed5780820490509050600181018181106145ed57905061050052600261050051106145ed57604435610500511115611fdf576014610520527f536c697070616765207363726577656420796f750000000000000000000000006105405261052050610520518061054001601f826000031636823750506308c379a06104e052602061050052601f19601f6105205101166044016104fcfd5b6104e051610500518082038281116145ed57905090506104e0526104e051600d55600b3360205260005260406000208054610500518082038281116145ed57905090508155506000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef61050051610520526020610520a36004351561208c57600061052052610520506000600061052051610540600435610320515af161208c573d600060003e3d6000fd5b6024351561212c5763a9059cbb610520526103205161054052602435610560526020610520604461053c600073a2e3356610840701bdf5611a53974510ae27e2e15af16120de573d600060003e3d6000fd5b3d6121095773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed57600161058052612122565b60203d106145ed57610520518060011c6145ed57610580525b61058051156145ed575b337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e604060046105203761046051610560526104805161058052610440516105a0526104e0516105c05260c0610520a260206105006003600055f35b63cc2b27d781186121cd57604436106145ed5760243580600f0b81186145ed576104205260206004356101e05261042051610200526121c86104406141d0565b610440f35b631a4d01d281186121ea57606436106145ed57336104405261220d565b63081579a581186124c057608436106145ed576064358060a01c6145ed57610440525b60243580600f0b81186145ed57610420526000546002146145ed5760026000556004356101e05261042051610200526122476104c06141d0565b6104c080516104605260208101516104805260408101516104a052506044356104605110156122d65760186104c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006104e0526104c0506104c051806104e001601f826000031636823750506308c379a06104805260206104a052601f19601f6104c051011660440161049cfd5b61042051600181116145ed5760020180546104805164012a05f20081028164012a05f2008204186145ed5790506402540be400810490508082018281106145ed5790509050815550600d546004358082038281116145ed57905090506104c0526104c051600d55600b33602052600052604060002080546004358082038281116145ed57905090508155506000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6004356104e05260206104e0a3610420516123cc5760006104e0526104e050600060006104e05161050061046051610440515af1612465573d600060003e3d6000fd612465565b63a9059cbb6104e0526104405161050052610460516105205260206104e060446104fc600073a2e3356610840701bdf5611a53974510ae27e2e15af1612417573d600060003e3d6000fd5b3d6124425773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed5760016105405261245b565b60203d106145ed576104e0518060011c6145ed57610540525b61054051156145ed575b337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06004356104e05261046051610500526104c0516105205260606104e0a26104a0516101c0526124b4613bca565b60206104606003600055f35b633c157e64811861262f57604436106145ed5760015463f851a44060c052602060c0600460dc845afa6124f8573d600060003e3d6000fd5b60203d106145ed5760c0518060a01c6145ed576101005261010090505133186145ed576009546201518081018181106145ed57905042106145ed57426201518081018181106145ed579050602435106145ed5761255560e061321e565b60e05160c052600435606481028160648204186145ed57905060e0526004351561258757620f423f600435111561258a565b60005b156145ed5760c05160e051106125ba5760c051600a810281600a8204186145ed57905060e051116145ed576125d6565b60c05160e051600a810281600a8204186145ed579050106145ed575b60c05160075560e05160085542600955602435600a557fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c25460c0516101005260e051610120524261014052602435610160526080610100a1005b63551a658881186126e157600436106145ed5760015463f851a44060c052602060c0600460dc845afa612667573d600060003e3d6000fd5b60203d106145ed5760c0518060a01c6145ed576101005261010090505133186145ed5761269460e061321e565b60e05160c05260c05160075560c0516008554260095542600a557f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc20193860c05160e0524261010052604060e0a1005b6330c5408581186128a157600436106145ed5760015463154aa8f560605230608052602060606024607c845afa61271d573d600060003e3d6000fd5b60203d106145ed576060518060a01c6145ed5760a05260a09050516040526040516127c35760216060527f6465763a20666565207265636569766572206973207a65726f206164647265736080527f730000000000000000000000000000000000000000000000000000000000000060a05260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b600254606052606051156127f95760006080526080506000600060805160a06060516040515af16127f9573d600060003e3d6000fd5b600354606052606051156128955763a9059cbb60805260405160a05260605160c052602060806044609c600073a2e3356610840701bdf5611a53974510ae27e2e15af161284b573d600060003e3d6000fd5b3d6128755773a2e3356610840701bdf5611a53974510ae27e2e13b156145ed57600160e05261288c565b60203d106145ed576080518060011c6145ed5760e0525b60e051156145ed575b60006002556000600355005b63a48eac9d811861295657602436106145ed5760015463f851a440604052602060406004605c845afa6128d9573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed5764012a05f200600435116145ed576006546145ed57600435600555426203f48081018181106145ed5790506006557f878eb36b3f197f05821c06953d9bc8f14b332a227b1e26df06a4215bbfe5d73f60043560405260206040a1005b634f12fe978118612a0f57600436106145ed5760015463f851a440604052602060406004605c845afa61298e573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed57600654604052604051156129c8576040514210156129cb565b60005b156145ed5760055460605260605160045560006006557fa8715770654f54603947addf38c689adbd7182e21673b28bcf306a957aaba21560605160805260206080a1005b637f3e17cb8118612a7857602436106145ed5760015463f851a440604052602060406004605c845afa612a47573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed57608052608090505133186145ed57600435156145ed57600435601155005b638da5cb5b8118612ace57600436106145ed57602060015463f851a440604052602060406004605c845afa612ab2573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed5760805260809050f35b636e42e4d28118612b2857600436106145ed57602060015463154aa8f560405230606052602060406024605c845afa612b0c573d600060003e3d6000fd5b60203d106145ed576040518060a01c6145ed5760805260809050f35b6354fd4d508118612bb057600436106145ed5760208060805260066040527f76362e302e31000000000000000000000000000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b63c45a01558118612bcf57600436106145ed5760015460405260206040f35b63e2e7d2648118612bfa57602436106145ed57600435600181116145ed576002015460405260206040f35b63ddca3f438118612c1957600436106145ed5760045460405260206040f35b6358680d0b8118612c3857600436106145ed5760055460405260206040f35b63e66f43f58118612c5757600436106145ed5760065460405260206040f35b635409491a8118612c7657600436106145ed5760075460405260206040f35b63b4b577ad8118612c9557600436106145ed5760085460405260206040f35b632081066c8118612cb457600436106145ed5760095460405260206040f35b63140522888118612cd357600436106145ed57600a5460405260206040f35b6370a082318118612d0e57602436106145ed576004358060a01c6145ed57604052600b60405160205260005260406000205460605260206060f35b63dd62ed3e8118612d6857604436106145ed576004358060a01c6145ed576040526024358060a01c6145ed57606052600c604051602052600052604060002080606051602052600052604060002090505460805260206080f35b6318160ddd8118612d8757600436106145ed57600d5460405260206040f35b633644e5158118612da657600436106145ed57600e5460405260206040f35b637ecebe008118612de157602436106145ed576004358060a01c6145ed57604052600f60405160205260005260406000205460605260206060f35b631be913a58118612e0057600436106145ed5760115460405260206040f35b631ddc3b018118612e1f57600436106145ed5760125460405260206040f35b6306fdde038118612ea757600436106145ed5760208060805260126040527f43757276652e6669204554482f7742455448000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b6395d89b418118612f2f57600436106145ed57602080608052600b6040527f455448774245544843525600000000000000000000000000000000000000000060605260408160800181518082526020830160208301815181525050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190506080f35b63313ce5678118612f4d57600436106145ed57601260405260206040f35b63c66106578118612fa857602436106145ed57602073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60405273a2e3356610840701bdf5611a53974510ae27e2e16060526040600435600181116145ed5760051b81019050f35b633495018d8118612fc757600436106145ed5760135460405260206040f35b505b60006000fd5b6fffffffffffffffffffffffffffffffff604051116145ed576fffffffffffffffffffffffffffffffff606051116145ed576060518060801b905060405117815250565b600b604051602052600052604060002080546080518082038281116145ed5790509050815550600b606051602052600052604060002080546080518082018281106145ed57905090508155506060516040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60805160a052602060a0a3565b670de0b6b3a7640000604052670de0b6b3a76400006060526013546080526080511561318b577fffffffff000000000000000000000000000000000000000000000000000000006080511661010052602060e05260e050602061014060e05161010060805173ffffffffffffffffffffffffffffffffffffffff811690508060a01c6145ed575afa61312a573d600060003e3d6000fd5b3d602081183d60201002186101205261012080518060a05260208201805160c05250505060a051156145ed5760605160c05160a05160200360031b1c8082028115838383041417156145ed5790509050670de0b6b3a7640000810490506060525b6040518152606051602082015250565b476002548082038281116145ed57905090506040518082038281116145ed579050905081526370a0823160605230608052602060606024607c73a2e3356610840701bdf5611a53974510ae27e2e15afa6131fa573d600060003e3d6000fd5b60203d106145ed576060516003548082038281116145ed5790509050602082015250565b600a5460405260085460605260405142106132425760605181525061334156613341565b60075460805260095460a052608051606051116132d1576080516080516060518082038281116145ed57905090504260a0518082038281116145ed57905090508082028115838383041417156145ed579050905060405160a0518082038281116145ed579050905080156145ed57808204905090508082038281116145ed579050905081525061334156613341565b6080516060516080518082038281116145ed57905090504260a0518082038281116145ed57905090508082028115838383041417156145ed579050905060405160a0518082038281116145ed579050905080156145ed57808204905090508082018281106145ed57905090508152505b565b60403660c03760006002905b806101005261010051600181116145ed5760051b6040015161010051600181116145ed5760051b608001518082028115838383041417156145ed5790509050670de0b6b3a76400008104905061010051600181116145ed5760051b60c0015260010181811861334f57505060c051815260e051602082015250565b600060a05260006002905b8060051b6040015160c05260a05160c0518082018281106145ed579050905060a0526001018181186133d557505060a0516134145760008152506135c9565b60a05160c0526080518060011b818160011c186145ed57905060e052600060ff905b806101005260c05160c0518082028115838383041417156145ed579050905060405180156145ed578082049050905060c0518082028115838383041417156145ed579050905060605180156145ed57808204905090508060021c90506101205260c0516101405260e05160a0518082028115838383041417156145ed5790509050606481049050610120518060011b818160011c186145ed5790508082018281106145ed579050905060c0518082028115838383041417156145ed579050905060e051606481038181116145ed57905060c0518082028115838383041417156145ed579050905060648104905061012051600381028160038204186145ed5790508082018281106145ed579050905080156145ed578082049050905060c0526101405160c0511161358e5760016101405160c0518082038281116145ed5790509050116135b75760c05183525050506135c9566135b7565b600160c051610140518082038281116145ed5790509050116135b75760c05183525050506135c9565b60010181811861343657505060006000fd5b565b61016051604052610180516060526101a0516080526101c05160a0526135f2610240613343565b6102408051610200526020810151610220525061020051604052610220516060526101e0516080526136256102406133ca565b61024051815250565b6080518060011b818160011c186145ed57905060c05260a0518060021c905060e05260006002905b806101005260e05160a0518082028115838383041417156145ed579050905061010051600181116145ed5760051b6040015180156145ed578082049050905060e05260010181811861365657505060c0516040518082028115838383041417156145ed579050905060648104905060e0516040518082028115838383041417156145ed579050905060605180156145ed57808204905090508082018281106145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905060c0516040518082028115838383041417156145ed579050905060648104905060e0518082018281106145ed579050905080156145ed5780820490509050815250565b7ffffffffffffffffffffffffffffffffffffffffffffffffdb731c958f34d94c160405113613790576000815250613a5f565b680755bf798b4a1bf1e5604051126137ff57600c6060527f657870206f766572666c6f77000000000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b670de0b6b3a764000060405160601b056060526c010000000000000000000000006b8000000000000000000000006bb17217f7d1cf79abc9e3b39860605160601b0501056080526bb17217f7d1cf79abc9e3b39860805102606051036060526c10fe68e7fd37d0007b713f76506060510160a0526d02d16720577bd19bf614176fe9ea6c0100000000000000000000000060605160a05102050160a0526d04a4fd9f2a8b96949216d2255a6c60605160a051010360c0526e0587f503bb6ea29d25fcb7401964506c0100000000000000000000000060a05160c05102050160c05279d835ebba824c98fb31b83b2ca45c00000000000000000000000060605160c051020160c0526060516c240c330e9fb2d9cbaf0fd5aafc81038181136145ed57905060e0526d0277594991cfc85f6e2461837cd96c0100000000000000000000000060605160e05102050160e0526d1a521255e34f6a5061b25ef1c9c46c0100000000000000000000000060605160e05102050360e0526db1bbb201f443cf962f1a1d3db4a56c0100000000000000000000000060605160e05102050160e0526e02c72388d9f74f51a9331fed693f156c0100000000000000000000000060605160e05102050360e0526e05180bb14799ab47a8a8cb2a527d576c0100000000000000000000000060605160e05102050160e05274029d9dc38563c32e5c2f6dc192ee70ef65f9978af360e05160c05105600081126145ed570260c3608051037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811315613a505781811b613a57565b81816000031c5b905090508152505b565b60125461010052601054610120526fffffffffffffffffffffffffffffffff6101205116671bc16d674ec80000818118671bc16d674ec8000083100218905061014052610120518060801c905061016052426101005110613acc5761016051815250613bc856613bc8565b42610100518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905060115480156145ed57808204905090508060ff1c6145ed577f800000000000000000000000000000000000000000000000000000000000000081146145ed57600003604052613b4d6101a061375d565b6101a05161018052610140516101805180670de0b6b3a764000003670de0b6b3a764000081116145ed5790508082028115838383041417156145ed579050905061016051610180518082028115838383041417156145ed57905090508082018281106145ed5790509050670de0b6b3a7640000810490508152505b565b6101c05115613c1d576101c05161022052613be66101e0613a61565b6101e051610240526102205160405261024051606052613c07610200612fcf565b61020051601055426012541015613c1d57426012555b565b61026051604052610280516060526102a0516080526102c05160a052613c466102e061362e565b6102e05161030052610300516101c052613c5e613bca565b565b6101805161016051146145ed57600061018051126145ed57600161018051136145ed57600061016051126145ed57600161016051136145ed576102005161024052610220516102605261022051613ced57613cbc61028061321e565b61028051610240526101c0516040526101e05160605261024051608052613ce46102806133ca565b61028051610260525b60603661028037610260516102e052610240518060011b818160011c186145ed5790506103005260006002905b8061032052610160516103205118613d39576101a0516102a052613d67565b610180516103205114613dc35761032051600181116145ed5760051b6101c001516102a052613d6756613dc3565b610280516102a0518082018281106145ed5790509050610280526102e051610260518082028115838383041417156145ed57905090506102a0518060011b818160011c186145ed57905080156145ed57808204905090506102e0525b600101818118613d1a5750506102e051610260518082028115838383041417156145ed5790509050606481028160648204186145ed579050610300518060011b818160011c186145ed57905080156145ed57808204905090506102e0526102805161026051606481028160648204186145ed5790506103005180156145ed57808204905090508082018281106145ed5790509050610320526102605161034052600060ff905b8061036052610340516102c05261034051610340518082028115838383041417156145ed57905090506102e0518082018281106145ed5790509050610340518060011b818160011c186145ed579050610320518082018281106145ed5790509050610260518082038281116145ed579050905080156145ed5780820490509050610340526102c0516103405111613f295760016102c051610340518082038281116145ed579050905011613f5457610340518352505050613f6656613f54565b6001610340516102c0518082038281116145ed579050905011613f5457610340518352505050613f66565b600101818118613e6957505060006000fd5b565b6000606051126145ed576001606051136145ed5760603660e03760c051610140526040518060011b818160011c186145ed5790506101605260006002905b806101805260605161018051146140305761018051600181116145ed5760051b6080015161010052613fd756614030565b60e051610100518082018281106145ed579050905060e0526101405160c0518082028115838383041417156145ed5790509050610100518060011b818160011c186145ed57905080156145ed5780820490509050610140525b600101818118613fa65750506101405160c0518082028115838383041417156145ed5790509050606481028160648204186145ed579050610160518060011b818160011c186145ed57905080156145ed57808204905090506101405260e05160c051606481028160648204186145ed5790506101605180156145ed57808204905090508082018281106145ed57905090506101805260c0516101a052600060ff905b806101c0526101a051610120526101a0516101a0518082028115838383041417156145ed5790509050610140518082018281106145ed57905090506101a0518060011b818160011c186145ed579050610180518082018281106145ed579050905060c0518082038281116145ed579050905080156145ed57808204905090506101a052610120516101a05111614191576001610120516101a0518082038281116145ed5790509050116141bc576101a05183525050506141ce566141bc565b60016101a051610120518082038281116145ed5790509050116141bc576101a05183525050506141ce565b6001018181186140d257505060006000fd5b565b6141db61024061321e565b61024051610220526141ee610280613093565b610280805161024052602081015161026052506102405161034052610260516103605260006040526142216102c061319b565b6102c080516103805260208101516103a052506103405160405261036051606052610380516080526103a05160a05261425b610300613343565b61030080516102805260208101516102a05250610280516040526102a0516060526102205160805261428e6102e06133ca565b6102e0516102c052600d546102e0526102c0516101e0516102c0518082028115838383041417156145ed57905090506102e05180156145ed57808204905090508082038281116145ed5790509050610300526102205160405261020051606052610280516080526102a05160a0526103005160c05261430e610340613f68565b61034051610320526004548060011b818160011c186145ed5790508060021c9050610340526040366103603760006002905b806103a05260006103c0526103a051600181116145ed5760051b61028001516103e052610200516103a051186143b8576103e051610300518082028115838383041417156145ed57905090506102c05180156145ed5780820490509050610320518082038281116145ed57905090506103c0526143fc565b6103e0516103e051610300518082028115838383041417156145ed57905090506102c05180156145ed57808204905090508082038281116145ed57905090506103c0525b6103e051610340516103c0518082028115838383041417156145ed57905090506402540be400810490508082038281116145ed57905090506103a051600181116145ed5760051b610360015260010181811861434057505061020051600181116145ed5760051b61036001516102205160405261020051606052610360516080526103805160a0526103005160c0526144966103c0613f68565b6103c0518082038281116145ed57905090506103a05261020051600181116145ed5760051b6102800151610320518082038281116145ed5790509050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905061020051600181116145ed5760051b610240015180156145ed57808204905090506103c0526103a051600181038181116145ed579050670de0b6b3a7640000810281670de0b6b3a76400008204186145ed57905061020051600181116145ed5760051b610240015180156145ed57808204905090506103a0526103205161020051600181116145ed5760051b610280015260006103e05261032051156145c057610280516040526102a051606052610220516080526103005160a0526145b761040061362e565b610400516103e0525b6103a05181526103c0516103a0518082038281116145ed579050905060208201526103e051604082015250565b600080fda165767970657283000307000b

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

000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d400000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000003d09003ba0b9a900000000000000000000000000000000000000000000000000000000000000000000000000000000a2e3356610840701bdf5611a53974510ae27e2e1

-----Decoded View---------------
Arg [0] : _factory (address): 0xB9fC157394Af804a3578134A6585C0dc9cc990d4
Arg [1] : _A (uint256): 500
Arg [2] : _fee (uint256): 4000000
Arg [3] : _oracle_method_id (bytes4): 0x3ba0b9a9
Arg [4] : _oracle_addr (address): 0xa2E3356610840701BDf5611a53974510Ae27E2e1

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d4
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [2] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [3] : 3ba0b9a900000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000a2e3356610840701bdf5611a53974510ae27e2e1


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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.