Contract 0xc6a752948627becab5474a10821df73ff4771a49

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xa061a9ae2d2f3661e78029e2f6974242efcafb43ab65efff898c055e2e29b20784688732021-06-20 18:59:4428 mins ago0x42664ff369b16ab9b638b8e3030fed3192d68c5a IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00106995
0x04dc3e258b7c53c1729c575ff36763db4cd644dbbf24c5a6b7576d40a4604e8684687852021-06-20 18:55:2032 mins ago0xadea490eaf85345f9a448888ee1f8d78420875d7 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.0011107
0xbf2e755cb3bfea8277f876d20c063ca1a49fff758fffa406843bf8e78bae124c84687372021-06-20 18:52:5634 mins ago0x43d6a3d10d033893182604a3ef86d3f78f2f2963 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001162975
0x831d0110a12bc4cb83edb73e1a3109bdb910d4b0a9d75670b350ab7f433f99b484636442021-06-20 14:38:174 hrs 49 mins ago0xc0b09b78c00ebced69ed1b397f5fb6ad94938441 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00127145
0x0e777f6889049284c4fdf2f30b2b983e230f2797775ee52c28999694ab0a3fdf84621892021-06-20 13:25:326 hrs 2 mins ago0x7c56f8f1d89d3ef81d55635e0ef81561851d02f0 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001007645
0x1b1e2a657e76e86ac3b135cbcd0034d047b040f8c42f6880649255c488c8380884618252021-06-20 13:07:206 hrs 20 mins ago0x6bebbf542b5d45b0bf19229687288964bd7b014c IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00103588
0x2844c67ef423fdf720a03982d7d07324a0001b916d1c492f2fce3b4923e1c24984605782021-06-20 12:04:597 hrs 22 mins ago0xd29b324fb40eb54c206599ed3257b269a0748064 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001007765
0x9480120fb0d895d0f65e6a8d310eed8ce9573e9b3122ab99eb675d5f05c1354784581052021-06-20 10:01:199 hrs 26 mins ago0x0e66887191139a70edfcf34f5a22445a6470b6f6 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.0010912266
0x68aa54274a79080f696ebdda726842c267d35f4a86d805d3c8b12f8e507f86ba84580372021-06-20 9:57:559 hrs 29 mins ago0x0e66887191139a70edfcf34f5a22445a6470b6f6 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001091349
0x81f31fc6a9f17c0cb1d50bdd606bcf4ffdf70e22b43aa362e717f2efde71411984579962021-06-20 9:55:529 hrs 31 mins ago0x0e66887191139a70edfcf34f5a22445a6470b6f6 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001091349
0x1d476b8b5c95ad5291b54aca746a522a89d0e4ee8f50eb53ede2313ceaaebdd984579462021-06-20 9:53:229 hrs 34 mins ago0x0e66887191139a70edfcf34f5a22445a6470b6f6 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001220379
0xd21e6ab3f911a5a1f82336e7495bfb07e0fa942faba9da99a5b4fdae768ed0d684547762021-06-20 7:13:5312 hrs 13 mins ago0x3672468b4c241921891f7e5923a999e95e8ca3f0 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00129903
0x2371345053e0d90407868c360feb3fc006b0b82771956b91611d17ac3c8a48e684514992021-06-20 4:29:4314 hrs 58 mins ago0x6bebbf542b5d45b0bf19229687288964bd7b014c IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.0011107
0xe4abd101a5a04ac145ad6b7fc96081de729dbe41974d862736f5bc230883c27c84501992021-06-20 3:24:4316 hrs 3 mins ago0x69dec24d8f10f8be16b231b27401100afef52116 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00103582
0xdb961b68a3b53fd409455a1852abb8e8f9eab4b91be1afd3f5d4fc809192b97584501712021-06-20 3:23:1916 hrs 4 mins ago0x69dec24d8f10f8be16b231b27401100afef52116 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00127151
0xd104f872feccb29fefd865f674f43550ff2fc8193c8a1e2835a8eaeeff76ee7584499362021-06-20 3:11:3416 hrs 16 mins ago0x6e32a45cce1e03fc13d49e73ddc329db99a1364a IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001013035
0x396314de0552ca204bc677a403b299be1e9b1ec7fd0e0d9dd3e324c7fa38b86484494972021-06-20 2:49:3716 hrs 38 mins ago0xab5f26f288d65d122bcda3499f6b91e72b9e9a25 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.000956085
0x7b0b4c6b88b7dfec3461e9dd117a3eff9fb06d8fe4c39e10c21eca3aa952743984475882021-06-20 1:14:1018 hrs 13 mins ago0xb89dd673dca9181a238027d5a619098f8d2ec472 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.000880905
0x84d98bbed1c9bd64fd134a6dce55d86cb8cfb6e178ee351ef7d96c991f223dfd84475792021-06-20 1:13:4318 hrs 14 mins ago0xb89dd673dca9181a238027d5a619098f8d2ec472 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.000955905
0x2c3bd44db25f964ae1c1608a21a2399d9ad5e5b2c39fc04f6cc9eaaa3b39ec4a84474502021-06-20 1:07:1618 hrs 20 mins ago0x1f0e08a21aec9b7a401d00d96bea146d49e44742 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001143485
0x7bb8beb23e7b7e2ccd5c5461816a77cb74f5599420c79fda8bd837cb32595a4e84462992021-06-20 0:09:4319 hrs 18 mins ago0x9ae3329ca194a863454096f0c3fe7e63e333356d IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00106983
0x54bbac5a3c2ee6b45677c27df59b29fa5f4ff1d5891b456e901b4a5d1cd812f884462132021-06-20 0:05:2519 hrs 22 mins ago0xc6ff0822ee1daee3d2323618fcdbb75548342613 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00127145
0x8d5ee738583617ede5c071c0fb1e3ce48a3be28e2d9c12e6c1ed41697344ffe984445482021-06-19 22:42:0120 hrs 45 mins ago0x1f0e08a21aec9b7a401d00d96bea146d49e44742 IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00099483
0x5d926af9798f9c13e4053de4b0cb3d6be71b47184d22c9953bf25ead5f25180384416782021-06-19 20:18:3123 hrs 9 mins ago0x70ef271e741aa071018a57b6e121fe981409a16d IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.001088155
0x95e9cd417c6879cdbe16c2fbe6d00e86c525ab97c28c8373638ae9a9bca38f1b84401012021-06-19 18:59:401 day 28 mins ago0x575ae079b52b4b4386bc8833fa27b3e42c8ff7ba IN  0xc6a752948627becab5474a10821df73ff4771a490 BNB0.00118576
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.11

Optimization Enabled:
N/A

Other Settings:
, None license

Contract Source Code (Vyper language format)

# @version 0.2.11
# (c) Curve.Fi, 2020

from vyper.interfaces import ERC20

interface CurveToken:
    def totalSupply() -> uint256: view
    def mint(_to: address, _value: uint256) -> bool: nonpayable
    def burnFrom(_to: address, _value: uint256) -> bool: nonpayable

interface Curve:
    def coins(i: uint256) -> address: view
    def get_virtual_price() -> uint256: view
    def calc_token_amount(amounts: uint256[BASE_N_COINS], deposit: bool) -> uint256: view
    def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: view
    def fee() -> uint256: view
    def get_dy(i: int128, j: int128, dx: uint256) -> uint256: view
    def get_dy_underlying(i: int128, j: int128, dx: uint256) -> uint256: view
    def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256): nonpayable
    def add_liquidity(amounts: uint256[BASE_N_COINS], min_mint_amount: uint256): nonpayable
    def remove_liquidity_one_coin(_token_amount: uint256, i: int128, min_amount: uint256): nonpayable

interface FeeConverter:
    def convertFees(): nonpayable


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

event TokenExchangeUnderlying:
    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 CommitNewAdmin:
    deadline: indexed(uint256)
    admin: indexed(address)

event NewAdmin:
    admin: indexed(address)

event CommitNewFee:
    deadline: indexed(uint256)
    fee: uint256
    admin_fee: uint256

event NewFee:
    fee: uint256
    admin_fee: uint256

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

event StopRampA:
    A: uint256
    t: uint256


N_COINS: constant(int128) = 2
MAX_COIN: constant(int128) = N_COINS - 1

FEE_DENOMINATOR: constant(uint256) = 10 ** 10
PRECISION: constant(uint256) = 10 ** 18  # The precision to convert to
PRECISION_MUL: constant(uint256[N_COINS]) =  [1, 1]
RATES: constant(uint256[N_COINS]) = [1000000000000000000, 1000000000000000000]
BASE_N_COINS: constant(int128) = 3

# An asset which may have a transfer fee (USDT)
FEE_INDEX: constant(int128) = 3

MAX_ADMIN_FEE: constant(uint256) = 10 * 10 ** 9
MAX_FEE: constant(uint256) = 5 * 10 ** 9
MAX_A: constant(uint256) = 10 ** 6
MAX_A_CHANGE: constant(uint256) = 10

ADMIN_ACTIONS_DELAY: constant(uint256) = 3 * 86400
MIN_RAMP_TIME: constant(uint256) = 86400

coins: public(address[N_COINS])
balances: public(uint256[N_COINS])
fee: public(uint256)  # fee * 1e10
admin_fee: public(uint256)  # admin_fee * 1e10

owner: public(address)
fee_converter: public(address)
lp_token: public(address)

# Token corresponding to the pool is always the last one
BASE_CACHE_EXPIRES: constant(int128) = 10 * 60  # 10 min
base_pool: public(address)
base_virtual_price: public(uint256)
base_cache_updated: public(uint256)
base_coins: public(address[BASE_N_COINS])

A_PRECISION: constant(uint256) = 100
initial_A: public(uint256)
future_A: public(uint256)
initial_A_time: public(uint256)
future_A_time: public(uint256)

admin_actions_deadline: public(uint256)
transfer_ownership_deadline: public(uint256)
future_fee: public(uint256)
future_admin_fee: public(uint256)
future_owner: public(address)

is_killed: bool
kill_deadline: uint256
KILL_DEADLINE_DT: constant(uint256) = 2 * 30 * 86400


@external
def __init__(
    _owner: address,
    _coins: address[N_COINS],
    _pool_token: address,
    _base_pool: address,
    _A: uint256,
    _fee: uint256,
    _admin_fee: uint256,
    _fee_converter: address,
):
    """
    @notice Contract constructor
    @param _owner Contract owner address
    @param _coins Addresses of ERC20 conracts of coins
    @param _pool_token Address of the token representing LP share
    @param _base_pool Address of the base pool (which will have a virtual price)
    @param _A Amplification coefficient multiplied by n * (n - 1)
    @param _fee Fee to charge for exchanges
    @param _admin_fee Admin fee
    """
    for i in range(N_COINS):
        assert _coins[i] != ZERO_ADDRESS
    self.coins = _coins
    self.initial_A = _A * A_PRECISION
    self.future_A = _A * A_PRECISION
    self.fee = _fee
    self.admin_fee = _admin_fee
    self.owner = _owner
    self.kill_deadline = block.timestamp + KILL_DEADLINE_DT
    self.lp_token = _pool_token
    self.fee_converter = _fee_converter

    self.base_pool = _base_pool
    self.base_virtual_price = Curve(_base_pool).get_virtual_price()
    self.base_cache_updated = block.timestamp
    for i in range(BASE_N_COINS):
        base_coin: address = Curve(_base_pool).coins(convert(i, uint256))
        self.base_coins[i] = base_coin

        # approve underlying coins for infinite transfers
        response: Bytes[32] = raw_call(
            base_coin,
            concat(
                method_id("approve(address,uint256)"),
                convert(_base_pool, bytes32),
                convert(MAX_UINT256, bytes32),
            ),
            max_outsize=32,
        )
        if len(response) > 0:
            assert convert(response, bool)


@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 A() -> uint256:
    return self._A() / A_PRECISION


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


@view
@internal
def _xp(_vp_rate: uint256) -> uint256[N_COINS]:
    result: uint256[N_COINS] = RATES
    result[MAX_COIN] = _vp_rate  # virtual price for the metacurrency
    for i in range(N_COINS):
        result[i] = result[i] * self.balances[i] / PRECISION
    return result


@pure
@internal
def _xp_mem(_vp_rate: uint256, _balances: uint256[N_COINS]) -> uint256[N_COINS]:
    result: uint256[N_COINS] = RATES
    result[MAX_COIN] = _vp_rate  # virtual price for the metacurrency
    for i in range(N_COINS):
        result[i] = result[i] * _balances[i] / PRECISION
    return result


@internal
def _vp_rate() -> uint256:
    if block.timestamp > self.base_cache_updated + BASE_CACHE_EXPIRES:
        vprice: uint256 = Curve(self.base_pool).get_virtual_price()
        self.base_virtual_price = vprice
        self.base_cache_updated = block.timestamp
        return vprice
    else:
        return self.base_virtual_price


@internal
@view
def _vp_rate_ro() -> uint256:
    if block.timestamp > self.base_cache_updated + BASE_CACHE_EXPIRES:
        return Curve(self.base_pool).get_virtual_price()
    else:
        return self.base_virtual_price


@pure
@internal
def _get_D(_xp: uint256[N_COINS], _amp: uint256) -> uint256:
    S: uint256 = 0
    Dprev: 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
        for _x in _xp:
            D_P = D_P * D / (_x * N_COINS)  # If division by 0, this will be borked: only withdrawal will work. And that is good
        Dprev = 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(_vp_rate: uint256, _balances: uint256[N_COINS], _amp: uint256) -> uint256:
    return self._get_D(self._xp_mem(_vp_rate, _balances), _amp)


@view
@external
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()
    vp_rate: uint256 = self._vp_rate_ro()
    xp: uint256[N_COINS] = self._xp(vp_rate)
    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
    token_supply: uint256 = CurveToken(self.lp_token).totalSupply()
    return D * PRECISION / token_supply


@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()
    vp_rate: uint256 = self._vp_rate_ro()
    balances: uint256[N_COINS] = self.balances
    D0: uint256 = self._get_D_mem(vp_rate, balances, amp)
    for i in range(N_COINS):
        if _is_deposit:
            balances[i] += _amounts[i]
        else:
            balances[i] -= _amounts[i]
    D1: uint256 = self._get_D_mem(vp_rate, balances, amp)
    token_amount: uint256 = CurveToken(self.lp_token).totalSupply()
    diff: uint256 = 0
    if _is_deposit:
        diff = D1 - D0
    else:
        diff = D0 - D1
    return diff * token_amount / D0


@external
@nonreentrant('lock')
def add_liquidity(_amounts: uint256[N_COINS], _min_mint_amount: uint256) -> 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
    @return Amount of LP tokens received by depositing
    """
    assert not self.is_killed  # dev: is killed

    amp: uint256 = self._A()
    vp_rate: uint256 = self._vp_rate()
    old_balances: uint256[N_COINS] = self.balances

    # Initial invariant
    D0: uint256 = self._get_D_mem(vp_rate, old_balances, amp)

    lp_token: address = self.lp_token
    token_supply: uint256 = CurveToken(lp_token).totalSupply()
    new_balances: uint256[N_COINS] = old_balances

    for i in range(N_COINS):
        if token_supply == 0:
            assert _amounts[i] > 0  # dev: initial deposit requires all coins
        # balances store amounts of c-tokens
        new_balances[i] = old_balances[i] + _amounts[i]

    # Invariant after change
    D1: uint256 = self._get_D_mem(vp_rate, 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])
    D2: uint256 = D1
    mint_amount: uint256 = 0
    if token_supply > 0:
        fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
        admin_fee: uint256 = self.admin_fee
        # Only account for fees if we are not the first to deposit
        for i in range(N_COINS):
            ideal_balance: uint256 = D1 * old_balances[i] / D0
            difference: uint256 = 0
            if ideal_balance > new_balances[i]:
                difference = ideal_balance - new_balances[i]
            else:
                difference = new_balances[i] - ideal_balance
            fees[i] = fee * difference / FEE_DENOMINATOR
            self.balances[i] = new_balances[i] - (fees[i] * admin_fee / FEE_DENOMINATOR)
            new_balances[i] -= fees[i]
        D2 = self._get_D_mem(vp_rate, new_balances, amp)
        mint_amount = token_supply * (D2 - D0) / D0
    else:
        self.balances = new_balances
        mint_amount = D1  # Take the dust if there was any

    assert mint_amount >= _min_mint_amount, "Slippage screwed you"

    # Take coins from the sender
    for i in range(N_COINS):
        if _amounts[i] > 0:
            # "safeTransferFrom" which works for ERC20s which return bool or not
            response: Bytes[32] = raw_call(
                self.coins[i],
                concat(
                    method_id("transferFrom(address,address,uint256)"),
                    convert(msg.sender, bytes32),
                    convert(self, bytes32),
                    convert(_amounts[i], bytes32),
                ),
                max_outsize=32,
            )
            if len(response) > 0:
                assert convert(response, bool)  # dev: failed transfer
            # end "safeTransferFrom"

    # Mint pool tokens
    CurveToken(lp_token).mint(msg.sender, mint_amount)

    log AddLiquidity(msg.sender, _amounts, fees, D1, token_supply + mint_amount)

    return mint_amount


@view
@internal
def _get_y(i: int128, j: int128, x: uint256, _xp: uint256[N_COINS]) -> 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  # dev: j above N_COINS

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

    A: uint256 = self._A()
    D: uint256 = self._get_D(_xp, A)
    Ann: uint256 = A * N_COINS
    c: uint256 = D
    S: uint256 = 0
    _x: uint256 = 0
    y_prev: uint256 = 0

    for _i in range(N_COINS):
        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:
    rates: uint256[N_COINS] = RATES
    rates[MAX_COIN] = self._vp_rate_ro()
    xp: uint256[N_COINS] = self._xp(rates[MAX_COIN])

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


@view
@external
def get_dy_underlying(i: int128, j: int128, _dx: uint256) -> uint256:
    # dx and dy in underlying units
    vp_rate: uint256 = self._vp_rate_ro()
    xp: uint256[N_COINS] = self._xp(vp_rate)
    precisions: uint256[N_COINS] = PRECISION_MUL
    base_pool: address = self.base_pool

    # Use base_i or base_j if they are >= 0
    base_i: int128 = i - MAX_COIN
    base_j: int128 = j - MAX_COIN
    meta_i: int128 = MAX_COIN
    meta_j: int128 = MAX_COIN
    if base_i < 0:
        meta_i = i
    if base_j < 0:
        meta_j = j

    x: uint256 = 0
    if base_i < 0:
        x = xp[i] + _dx * precisions[i]
    else:
        if base_j < 0:
            # i is from BasePool
            # At first, get the amount of pool tokens
            base_inputs: uint256[BASE_N_COINS] = empty(uint256[BASE_N_COINS])
            base_inputs[base_i] = _dx
            # Token amount transformed to underlying "dollars"
            x = Curve(base_pool).calc_token_amount(base_inputs, True) * vp_rate / PRECISION
            # Accounting for deposit/withdraw fees approximately
            x -= x * Curve(base_pool).fee() / (2 * FEE_DENOMINATOR)
            # Adding number of pool tokens
            x += xp[MAX_COIN]
        else:
            # If both are from the base pool
            return Curve(base_pool).get_dy(base_i, base_j, _dx)

    # This pool is involved only when in-pool assets are used
    y: uint256 = self._get_y(meta_i, meta_j, x, xp)
    dy: uint256 = xp[meta_j] - y - 1
    dy = (dy - self.fee * dy / FEE_DENOMINATOR)

    # If output is going via the metapool
    if base_j < 0:
        dy /= precisions[meta_j]
    else:
        # j is from BasePool
        # The fee is already accounted for
        dy = Curve(base_pool).calc_withdraw_one_coin(dy * PRECISION / vp_rate, base_j)

    return dy


@external
@nonreentrant('lock')
def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> 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
    """
    assert not self.is_killed  # dev: is killed
    rates: uint256[N_COINS] = RATES
    rates[MAX_COIN] = self._vp_rate()

    old_balances: uint256[N_COINS] = self.balances
    xp: uint256[N_COINS] = self._xp_mem(rates[MAX_COIN], old_balances)

    x: uint256 = xp[i] + _dx * rates[i] / PRECISION
    y: uint256 = self._get_y(i, j, x, xp)

    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, "Too few coins in result"

    dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR
    dy_admin_fee = dy_admin_fee * PRECISION / rates[j]

    # Change balances exactly in same way as we change actual ERC20 coin amounts
    self.balances[i] = old_balances[i] + _dx
    # When rounding errors happen, we undercharge admin fee in favor of LP
    self.balances[j] = old_balances[j] - dy - dy_admin_fee

    response: Bytes[32] = raw_call(
        self.coins[i],
        concat(
            method_id("transferFrom(address,address,uint256)"),
            convert(msg.sender, bytes32),
            convert(self, bytes32),
            convert(_dx, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) > 0:
        assert convert(response, bool)

    response = raw_call(
        self.coins[j],
        concat(
            method_id("transfer(address,uint256)"),
            convert(msg.sender, bytes32),
            convert(dy, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) > 0:
        assert convert(response, bool)

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

    return dy


@external
@nonreentrant('lock')
def exchange_underlying(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
    """
    @notice Perform an exchange between two underlying coins
    @dev Index values can be found via the `underlying_coins` public getter method
    @param i Index value for the underlying coin to send
    @param j Index valie of the underlying 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
    """
    assert not self.is_killed  # dev: is killed
    rates: uint256[N_COINS] = RATES
    rates[MAX_COIN] = self._vp_rate()
    base_pool: address = self.base_pool

    # Use base_i or base_j if they are >= 0
    base_i: int128 = i - MAX_COIN
    base_j: int128 = j - MAX_COIN
    meta_i: int128 = MAX_COIN
    meta_j: int128 = MAX_COIN
    if base_i < 0:
        meta_i = i
    if base_j < 0:
        meta_j = j
    dy: uint256 = 0

    # Addresses for input and output coins
    input_coin: address = ZERO_ADDRESS
    output_coin: address = ZERO_ADDRESS
    if base_i < 0:
        input_coin = self.coins[i]
    else:
        input_coin = self.base_coins[base_i]
    if base_j < 0:
        output_coin = self.coins[j]
    else:
        output_coin = self.base_coins[base_j]

    # Handle potential Tether fees
    dx_w_fee: uint256 = _dx
    if i == FEE_INDEX:
        dx_w_fee = ERC20(input_coin).balanceOf(self)

    response: Bytes[32] = raw_call(
        input_coin,
        concat(
            method_id("transferFrom(address,address,uint256)"),
            convert(msg.sender, bytes32),
            convert(self, bytes32),
            convert(_dx, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) > 0:
        assert convert(response, bool)

    # Handle potential Tether fees
    if i == FEE_INDEX:
        dx_w_fee = ERC20(input_coin).balanceOf(self) - dx_w_fee

    if base_i < 0 or base_j < 0:
        old_balances: uint256[N_COINS] = self.balances
        xp: uint256[N_COINS] = self._xp_mem(rates[MAX_COIN], old_balances)

        x: uint256 = 0
        if base_i < 0:
            x = xp[i] + dx_w_fee * rates[i] / PRECISION
        else:
            # i is from BasePool
            # At first, get the amount of pool tokens
            base_inputs: uint256[BASE_N_COINS] = empty(uint256[BASE_N_COINS])
            base_inputs[base_i] = dx_w_fee
            coin_i: address = self.coins[MAX_COIN]
            # Deposit and measure delta
            x = ERC20(coin_i).balanceOf(self)
            Curve(base_pool).add_liquidity(base_inputs, 0)
            # Need to convert pool token to "virtual" units using rates
            # dx is also different now
            dx_w_fee = ERC20(coin_i).balanceOf(self) - x
            x = dx_w_fee * rates[MAX_COIN] / PRECISION
            # Adding number of pool tokens
            x += xp[MAX_COIN]

        y: uint256 = self._get_y(meta_i, meta_j, x, xp)

        # Either a real coin or token
        dy = xp[meta_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
        # Works for both pool coins and real coins
        dy = (dy - dy_fee) * PRECISION / rates[meta_j]

        dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR
        dy_admin_fee = dy_admin_fee * PRECISION / rates[meta_j]

        # Change balances exactly in same way as we change actual ERC20 coin amounts
        self.balances[meta_i] = old_balances[meta_i] + dx_w_fee
        # When rounding errors happen, we undercharge admin fee in favor of LP
        self.balances[meta_j] = old_balances[meta_j] - dy - dy_admin_fee

        # Withdraw from the base pool if needed
        if base_j >= 0:
            out_amount: uint256 = ERC20(output_coin).balanceOf(self)
            Curve(base_pool).remove_liquidity_one_coin(dy, base_j, 0)
            dy = ERC20(output_coin).balanceOf(self) - out_amount

        assert dy >= _min_dy, "Too few coins in result"

    else:
        # If both are from the base pool
        dy = ERC20(output_coin).balanceOf(self)
        Curve(base_pool).exchange(base_i, base_j, dx_w_fee, _min_dy)
        dy = ERC20(output_coin).balanceOf(self) - dy

    # "safeTransfer" which works for ERC20s which return bool or not
    response = raw_call(
        output_coin,
        concat(
            method_id("transfer(address,uint256)"),
            convert(msg.sender, bytes32),
            convert(dy, bytes32),
        ),
        max_outsize=32,
    )  # dev: failed transfer
    if len(response) > 0:
        assert convert(response, bool)  # dev: failed transfer
    # end "safeTransfer"

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

    return dy


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

    for i in range(N_COINS):
        old_balance: uint256 = self.balances[i]
        value: uint256 = old_balance * _amount / total_supply
        assert value >= _min_amounts[i], "Withdrawal resulted in fewer coins than expected"
        self.balances[i] = old_balance - value
        amounts[i] = value
        ERC20(self.coins[i]).transfer(msg.sender, value)

    CurveToken(lp_token).burnFrom(msg.sender, _amount)  # dev: insufficient funds

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

    return amounts


@external
@nonreentrant('lock')
def remove_liquidity_imbalance(_amounts: uint256[N_COINS], _max_burn_amount: uint256) -> 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
    @return Actual amount of the LP token burned in the withdrawal
    """
    assert not self.is_killed  # dev: is killed

    amp: uint256 = self._A()
    vp_rate: uint256 = self._vp_rate()
    old_balances: uint256[N_COINS] = self.balances
    new_balances: uint256[N_COINS] = old_balances
    D0: uint256 = self._get_D_mem(vp_rate, old_balances, amp)
    for i in range(N_COINS):
        new_balances[i] -= _amounts[i]
    D1: uint256 = self._get_D_mem(vp_rate, new_balances, amp)

    fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
    admin_fee: uint256 = self.admin_fee
    fees: uint256[N_COINS] = empty(uint256[N_COINS])
    for i in range(N_COINS):
        ideal_balance: uint256 = D1 * old_balances[i] / D0
        difference: uint256 = 0
        if ideal_balance > new_balances[i]:
            difference = ideal_balance - new_balances[i]
        else:
            difference = new_balances[i] - ideal_balance
        fees[i] = fee * difference / FEE_DENOMINATOR
        self.balances[i] = new_balances[i] - (fees[i] * admin_fee / FEE_DENOMINATOR)
        new_balances[i] -= fees[i]
    D2: uint256 = self._get_D_mem(vp_rate, new_balances, amp)

    lp_token: address = self.lp_token
    token_supply: uint256 = CurveToken(lp_token).totalSupply()
    token_amount: uint256 = (D0 - D2) * token_supply / D0
    assert token_amount != 0  # dev: zero tokens burned
    token_amount += 1  # In case of rounding errors - make it unfavorable for the "attacker"
    assert token_amount <= _max_burn_amount, "Slippage screwed you"

    CurveToken(lp_token).burnFrom(msg.sender, token_amount)  # dev: insufficient funds
    for i in range(N_COINS):
        if _amounts[i] != 0:
            ERC20(self.coins[i]).transfer(msg.sender, _amounts[i])

    log RemoveLiquidityImbalance(msg.sender, _amounts, fees, D1, token_supply - token_amount)

    return token_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  # dev: i above N_COINS

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

    for _i in range(N_COINS):
        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(_token_amount: uint256, i: int128, _vp_rate: uint256) -> (uint256, uint256, uint256):
    # First, need to calculate
    # * Get current D
    # * Solve Eqn against y_i for D - _token_amount
    amp: uint256 = self._A()
    xp: uint256[N_COINS] = self._xp(_vp_rate)
    D0: uint256 = self._get_D(xp, amp)

    total_supply: uint256 = CurveToken(self.lp_token).totalSupply()
    D1: uint256 = D0 - _token_amount * D0 / total_supply
    new_y: uint256 = self._get_y_D(amp, i, xp, D1)

    fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
    rates: uint256[N_COINS] = RATES
    rates[MAX_COIN] = _vp_rate

    xp_reduced: uint256[N_COINS] = xp
    dy_0: uint256 = (xp[i] - new_y) * PRECISION / rates[i]  # w/o fees

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

    dy: uint256 = xp_reduced[i] - self._get_y_D(amp, i, xp_reduced, D1)
    dy = (dy - 1) * PRECISION / rates[i]  # Withdraw less to account for rounding errors

    return dy, dy_0 - dy, total_supply


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


@external
@nonreentrant('lock')
def remove_liquidity_one_coin(_token_amount: uint256, i: int128, _min_amount: uint256) -> uint256:
    """
    @notice Withdraw a single coin from the pool
    @param _token_amount Amount of LP tokens to burn in the withdrawal
    @param i Index value of the coin to withdraw
    @param _min_amount Minimum amount of coin to receive
    @return Amount of coin received
    """
    assert not self.is_killed  # dev: is killed

    vp_rate: uint256 = self._vp_rate()
    dy: uint256 = 0
    dy_fee: uint256 = 0
    total_supply: uint256 = 0
    dy, dy_fee, total_supply = self._calc_withdraw_one_coin(_token_amount, i, vp_rate)
    assert dy >= _min_amount, "Not enough coins removed"

    self.balances[i] -= (dy + dy_fee * self.admin_fee / FEE_DENOMINATOR)
    CurveToken(self.lp_token).burnFrom(msg.sender, _token_amount)  # dev: insufficient funds

    ERC20(self.coins[i]).transfer(msg.sender, dy)

    log RemoveLiquidityOne(msg.sender, _token_amount, dy, total_supply - _token_amount)

    return dy


### Admin functions ###
@external
def ramp_A(_future_A: uint256, _future_time: uint256):
    assert msg.sender == self.owner  # 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 == self.owner  # 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 commit_new_fee(_new_fee: uint256, _new_admin_fee: uint256):
    assert msg.sender == self.owner  # dev: only owner
    assert self.admin_actions_deadline == 0  # dev: active action
    assert _new_fee <= MAX_FEE  # dev: fee exceeds maximum
    assert _new_admin_fee <= MAX_ADMIN_FEE  # dev: admin fee exceeds maximum

    deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY
    self.admin_actions_deadline = deadline
    self.future_fee = _new_fee
    self.future_admin_fee = _new_admin_fee

    log CommitNewFee(deadline, _new_fee, _new_admin_fee)


@external
def apply_new_fee():
    assert msg.sender == self.owner  # dev: only owner
    assert block.timestamp >= self.admin_actions_deadline  # dev: insufficient time
    assert self.admin_actions_deadline != 0  # dev: no active action

    self.admin_actions_deadline = 0
    fee: uint256 = self.future_fee
    admin_fee: uint256 = self.future_admin_fee
    self.fee = fee
    self.admin_fee = admin_fee

    log NewFee(fee, admin_fee)


@external
def revert_new_parameters():
    assert msg.sender == self.owner  # dev: only owner

    self.admin_actions_deadline = 0


@external
def commit_transfer_ownership(_owner: address):
    assert msg.sender == self.owner  # dev: only owner
    assert self.transfer_ownership_deadline == 0  # dev: active transfer

    deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY
    self.transfer_ownership_deadline = deadline
    self.future_owner = _owner

    log CommitNewAdmin(deadline, _owner)


@external
def apply_transfer_ownership():
    assert msg.sender == self.owner  # dev: only owner
    assert block.timestamp >= self.transfer_ownership_deadline  # dev: insufficient time
    assert self.transfer_ownership_deadline != 0  # dev: no active transfer

    self.transfer_ownership_deadline = 0
    owner: address = self.future_owner
    self.owner = owner

    log NewAdmin(owner)


@external
def revert_transfer_ownership():
    assert msg.sender == self.owner  # dev: only owner

    self.transfer_ownership_deadline = 0


@view
@external
def admin_balances(i: uint256) -> uint256:
    return ERC20(self.coins[i]).balanceOf(self) - self.balances[i]


@external
def withdraw_admin_fees():
    fee_converter: address = self.fee_converter
    for i in range(N_COINS):
        c: address = self.coins[i]
        value: uint256 = ERC20(c).balanceOf(self) - self.balances[i]
        # "safeTransfer" which works for ERC20s which return bool or not
        _response: Bytes[32] = raw_call(
            c,
            concat(
                method_id("transfer(address,uint256)"),
                convert(fee_converter, bytes32),
                convert(value, bytes32),
            ),
            max_outsize=32,
        )  # dev: failed transfer
        if len(_response) > 0:
            assert convert(_response, bool)  # dev: failed transfer
    FeeConverter(fee_converter).convertFees()


@external
def kill_me():
    assert msg.sender == self.owner  # dev: only owner
    assert self.kill_deadline > block.timestamp  # dev: deadline has passed
    self.is_killed = True


@external
def unkill_me():
    assert msg.sender == self.owner  # dev: only owner
    self.is_killed = False

Contract ABI

[{"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":"TokenExchangeUnderlying","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":"CommitNewAdmin","inputs":[{"name":"deadline","type":"uint256","indexed":true},{"name":"admin","type":"address","indexed":true}],"anonymous":false,"type":"event"},{"name":"NewAdmin","inputs":[{"name":"admin","type":"address","indexed":true}],"anonymous":false,"type":"event"},{"name":"CommitNewFee","inputs":[{"name":"deadline","type":"uint256","indexed":true},{"name":"fee","type":"uint256","indexed":false},{"name":"admin_fee","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"NewFee","inputs":[{"name":"fee","type":"uint256","indexed":false},{"name":"admin_fee","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"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_owner","type":"address"},{"name":"_coins","type":"address[2]"},{"name":"_pool_token","type":"address"},{"name":"_base_pool","type":"address"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"},{"name":"_admin_fee","type":"uint256"},{"name":"_fee_converter","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":5174},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":5136},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1011946},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}],"gas":4017190},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":6259605},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2449165},{"stateMutability":"view","type":"function","name":"get_dy_underlying","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2452371},{"stateMutability":"nonpayable","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"}],"gas":2682071},{"stateMutability":"nonpayable","type":"function","name":"exchange_underlying","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2691001},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[2]"}],"outputs":[{"name":"","type":"uint256[2]"}],"gas":160333},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_max_burn_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":6253244},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_token_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}],"gas":3974},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_token_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3944030},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[],"gas":151599},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[],"gas":148360},{"stateMutability":"nonpayable","type":"function","name":"commit_new_fee","inputs":[{"name":"_new_fee","type":"uint256"},{"name":"_new_admin_fee","type":"uint256"}],"outputs":[],"gas":110218},{"stateMutability":"nonpayable","type":"function","name":"apply_new_fee","inputs":[],"outputs":[],"gas":96999},{"stateMutability":"nonpayable","type":"function","name":"revert_new_parameters","inputs":[],"outputs":[],"gas":21652},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"_owner","type":"address"}],"outputs":[],"gas":74390},{"stateMutability":"nonpayable","type":"function","name":"apply_transfer_ownership","inputs":[],"outputs":[],"gas":60467},{"stateMutability":"nonpayable","type":"function","name":"revert_transfer_ownership","inputs":[],"outputs":[],"gas":21742},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3238},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[],"gas":16237},{"stateMutability":"nonpayable","type":"function","name":"kill_me","inputs":[],"outputs":[],"gas":37725},{"stateMutability":"nonpayable","type":"function","name":"unkill_me","inputs":[],"outputs":[],"gas":21862},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":1947},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":1977},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1898},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1928},{"stateMutability":"view","type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1958},{"stateMutability":"view","type":"function","name":"fee_converter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1988},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2018},{"stateMutability":"view","type":"function","name":"base_pool","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2048},{"stateMutability":"view","type":"function","name":"base_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2078},{"stateMutability":"view","type":"function","name":"base_cache_updated","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2108},{"stateMutability":"view","type":"function","name":"base_coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":2247},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2168},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2198},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2228},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2258},{"stateMutability":"view","type":"function","name":"admin_actions_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2288},{"stateMutability":"view","type":"function","name":"transfer_ownership_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2318},{"stateMutability":"view","type":"function","name":"future_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2348},{"stateMutability":"view","type":"function","name":"future_admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2378},{"stateMutability":"view","type":"function","name":"future_owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2408}]

610120615ebb610140396020615ebb60c03960c05160a01c1561002157600080fd5b60206020615ebb0160c03960c05160a01c1561003c57600080fd5b60206040615ebb0160c03960c05160a01c1561005757600080fd5b60206060615ebb0160c03960c05160a01c1561007257600080fd5b60206080615ebb0160c03960c05160a01c1561008d57600080fd5b6020610100615ebb0160c03960c05160a01c156100a957600080fd5b61026060006002818352015b600061016061026051600281106100cb57600080fd5b6020020151186100da57600080fd5b81516001018083528114156100b5575b5050600060c052602060c020610160518155610180516001820155506101e0516064808202821582848304141761012057600080fd5b80905090509050600b556101e0516064808202821582848304141761014457600080fd5b80905090509050600c5561020051600255610220516003556101405160045542624f1a0081818301101561017757600080fd5b808201905090506015556101a051600655610240516005556101c05160075560206102c0600463bb7b8b806102605261027c6101c0515afa6101b857600080fd5b601f3d116101c557600080fd5b6000506102c0516008554260095561026060006003818352015b6020610320602463c66106576102a05261026051600081121561020157600080fd5b6102c0526102bc6101c0515afa61021757600080fd5b601f3d1161022457600080fd5b600050610320516102805261028051610260516003811061024457600080fd5b600a60c052602060c020015560006004610300527f095ea7b3000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150506101c0516020826103600101526020810190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602082610360010152602081019050806103605261036090508051602001806104008284600060045af161030657600080fd5b505060206104c0610400516104206000610280515af161032557600080fd5b60203d808211156103365780610338565b815b905090506104a0526104a08051602001806102a08284600060045af161035d57600080fd5b505060006102a05111156103af576102a080602001516000825180602090131561038657600080fd5b809190121561039457600080fd5b806020036101000a820490509050905015156103af57600080fd5b81516001018083528114156101df575b5050615ea356600436101561000d576143ba565b600035601c52600051341561002157600080fd5b63f446c1d081141561005057600658016143c0565b610140526101405160648082049050905060005260206000f35b6376a2f0f081141561007657600658016143c0565b610140526101405160005260206000f35b63bb7b8b808114156101f45761014051600658016143c0565b610160526101405261016051610140526101405161016051600658016147e8565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801614558565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a052506101405161016051610180516101a0516101c051610180516101e0526101a05161020052610140516102205261022051610200516101e05160065801614865565b610280526101c0526101a052610180526101605261014052610280516101c052602061026060046318160ddd6102005261021c6006545afa61019657600080fd5b601f3d116101a357600080fd5b600050610260516101e0526101c051670de0b6b3a764000080820282158284830414176101cf57600080fd5b809050905090506101e05180806101e557600080fd5b82049050905060005260206000f35b63ed8e84f38114156104e45760443560011c1561021057600080fd5b61014051600658016143c0565b610160526101405261016051610140526101405161016051600658016147e8565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801614b5f565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526101e060006002818352015b60443515610345576101806101e0516002811061030957600080fd5b60200201805160046101e0516002811061032257600080fd5b602002013581818301101561033657600080fd5b8082019050905081525061038f565b6101806101e0516002811061035957600080fd5b60200201805160046101e0516002811061037257600080fd5b60200201358082101561038457600080fd5b808203905090508152505b81516001018083528114156102ed575b50506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261014051610260526102605161024051610220516102005160065801614b5f565b6102c0526101e0526101c0526101a0526101805261016052610140526102c0516101e052602061028060046318160ddd6102205261023c6006545afa61043757600080fd5b601f3d1161044457600080fd5b600050610280516102005260006102205260443515610482576101e0516101c0518082101561047257600080fd5b80820390509050610220526104a3565b6101c0516101e0518082101561049757600080fd5b80820390509050610220525b610220516102005180820282158284830414176104bf57600080fd5b809050905090506101c05180806104d557600080fd5b82049050905060005260206000f35b630b4c7e4d811415610df057601654156104fd57600080fd5b60016016556014541561050f57600080fd5b61014051600658016143c0565b61016052610140526101605161014052610140516101605160065801614758565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801614b5f565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526006546101e052602061028060046318160ddd6102205261023c6101e0515afa61060957600080fd5b601f3d1161061657600080fd5b600050610280516102005261018051610220526101a0516102405261026060006002818352015b61020051151561066b5760006004610260516002811061065c57600080fd5b60200201351161066b57600080fd5b610180610260516002811061067f57600080fd5b60200201516004610260516002811061069757600080fd5b60200201358181830110156106ab57600080fd5b8082019050905061022061026051600281106106c657600080fd5b60200201525b815160010180835281141561063d575b50506101405161016051610180516101a0516101c0516101e051610200516102205161024051610260516101605161028052610220516102a052610240516102c052610140516102e0526102e0516102c0516102a0516102805160065801614b5f565b61034052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610260526101c051610260511161078557600080fd5b60403661028037610260516102c05260006102e0526000610200511115610af857600254600280820282158284830414176107bf57600080fd5b80905090509050600480820490509050610300526003546103205261034060006002818352015b6102605161018061034051600281106107fe57600080fd5b6020020151808202821582848304141761081757600080fd5b809050905090506101c051808061082d57600080fd5b82049050905061036052600061038052610220610340516002811061085157600080fd5b602002015161036051111561089a5761036051610220610340516002811061087857600080fd5b60200201518082101561088a57600080fd5b80820390509050610380526108d0565b61022061034051600281106108ae57600080fd5b602002015161036051808210156108c457600080fd5b80820390509050610380525b610300516103805180820282158284830414176108ec57600080fd5b809050905090506402540be40080820490509050610280610340516002811061091457600080fd5b6020020152610220610340516002811061092d57600080fd5b6020020151610280610340516002811061094657600080fd5b602002015161032051808202821582848304141761096357600080fd5b809050905090506402540be400808204905090508082101561098457600080fd5b80820390509050610340516002811061099c57600080fd5b600160c052602060c020015561022061034051600281106109bc57600080fd5b60200201805161028061034051600281106109d657600080fd5b6020020151808210156109e857600080fd5b808203905090508152505b81516001018083528114156107e6575b5050610140610340525b61034051516020610340510161034052610340610340511015610a2f57610a0d565b61016051610360526102205161038052610240516103a052610140516103c0526103c0516103a051610380516103605160065801614b5f565b61042052610320610340525b6103405152602061034051036103405261014061034051101515610a9757610a74565b610420516102c052610200516102c0516101c05180821015610ab857600080fd5b808203905090508082028215828483041417610ad357600080fd5b809050905090506101c0518080610ae957600080fd5b8204905090506102e052610b1b565b600160c052602060c02061022051815561024051600182015550610260516102e0525b6044356102e05110151515610b6f576308c379a0610300526020610320526014610340527f536c697070616765207363726577656420796f750000000000000000000000006103605261034050606461031cfd5b61030060006002818352015b600060046103005160028110610b9057600080fd5b60200201351115610d175760006004610380527f23b872dd000000000000000000000000000000000000000000000000000000006103a0526103806004806020846103e001018260208501600060045af1505080518201915050336020826103e0010152602081019050306020826103e001015260208101905060046103005160028110610c1d57600080fd5b60200201356020826103e0010152602081019050806103e0526103e090508051602001806104a08284600060045af1610c5557600080fd5b505060206105806104a0516104c060006103005160028110610c7657600080fd5b600060c052602060c02001545af1610c8d57600080fd5b60203d80821115610c9e5780610ca0565b815b90509050610560526105608051602001806103208284600060045af1610cc557600080fd5b50506000610320511115610d1757610320806020015160008251806020901315610cee57600080fd5b8091901215610cfc57600080fd5b806020036101000a82049050905090501515610d1757600080fd5b8151600101808352811415610b7b575b505060206103a060446340c10f196103005233610320526102e0516103405261031c60006101e0515af1610d5a57600080fd5b601f3d11610d6757600080fd5b6000506103a050600435610300526024356103205261028051610340526102a051610360526102605161038052610200516102e051818183011015610dab57600080fd5b808201905090506103a052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610300a26102e051600052600060165560206000f35b635e0d443f8114156110b15760043580806000811215610e0c57195b607f1c15610e1957600080fd5b90505060243580806000811215610e2c57195b607f1c15610e3957600080fd5b905050670de0b6b3a764000061014052670de0b6b3a7640000610160526101405161016051600658016147e8565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801614558565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a0525061018060043560028110610ede57600080fd5b602002015160443561014060043560028110610ef957600080fd5b60200201518082028215828483041417610f1257600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015610f3857600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801614c94565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110610fd557600080fd5b60200201516101e05180821015610feb57600080fd5b8082039050905060018082101561100157600080fd5b808203905090506102005260025461020051808202821582848304141761102757600080fd5b809050905090506402540be400808204905090506102205261020051610220518082101561105457600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761107857600080fd5b809050905090506101406024356002811061109257600080fd5b602002015180806110a257600080fd5b82049050905060005260206000f35b6307211ef781141561164c57600435808060008112156110cd57195b607f1c156110da57600080fd5b905050602435808060008112156110ed57195b607f1c156110fa57600080fd5b90505061014051600658016147e8565b61016052610140526101605161014052610140516101605161018051610140516101a0526101a05160065801614558565b61020052610220526101805261016052610140526102008051610160528060200151610180525060016101a05260016101c0526007546101e05260043560018082038080600081121561118a57195b607f1c1561119757600080fd5b905090509050610200526024356001808203808060008112156111b657195b607f1c156111c357600080fd5b9050905090506102205260016102405260016102605260006102005112156111ed57600435610240525b600061022051121561120157602435610260525b6000610280526000610200511215611280576101606004356002811061122657600080fd5b60200201516044356101a06004356002811061124157600080fd5b6020020151808202821582848304141761125a57600080fd5b8090509050905081818301101561127057600080fd5b8082019050905061028052611431565b60006102205112156113db576060366102a0376044356102a061020051600381106112aa57600080fd5b602002015260206103e06084633883e119610300526102a051610320526102c051610340526102e0516103605260016103805261031c6101e0515afa6112ef57600080fd5b601f3d116112fc57600080fd5b6000506103e05161014051808202821582848304141761131b57600080fd5b80905090509050670de0b6b3a764000080820490509050610280526102808051610280516020610360600463ddca3f436103005261031c6101e0515afa61136157600080fd5b601f3d1161136e57600080fd5b60005061036051808202821582848304141761138957600080fd5b809050905090506404a817c80080820490509050808210156113aa57600080fd5b808203905090508152506102808051610180518181830110156113cc57600080fd5b80820190509050815250611431565b60206103606064635e0d443f6102a052610200516102c052610220516102e052604435610300526102bc6101e0515afa61141457600080fd5b601f3d1161142157600080fd5b6000506103605160005260206000f35b6101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a051610240516102c052610260516102e0526102805161030052610160516103205261018051610340526103405161032051610300516102e0516102c05160065801614c94565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a05261016061026051600281106114f657600080fd5b60200201516102a0518082101561150c57600080fd5b8082039050905060018082101561152257600080fd5b808203905090506102c0526102c0516002546102c051808202821582848304141761154c57600080fd5b809050905090506402540be400808204905090508082101561156d57600080fd5b808203905090506102c05260006102205112156115bb576102c080516101a0610260516002811061159d57600080fd5b602002015180806115ad57600080fd5b82049050905081525061163f565b6020610380604463cc2b27d76102e0526102c051670de0b6b3a764000080820282158284830414176115ec57600080fd5b8090509050905061014051808061160257600080fd5b8204905090506103005261022051610320526102fc6101e0515afa61162657600080fd5b601f3d1161163357600080fd5b600050610380516102c0525b6102c05160005260206000f35b633df02124811415611e22576016541561166557600080fd5b60016016556004358080600081121561167a57195b607f1c1561168757600080fd5b9050506024358080600081121561169a57195b607f1c156116a757600080fd5b905050601454156116b757600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801614758565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261024051610220516102005160065801614656565b6102a0526102c0526101e0526101c0526101a0526101805261016052610140526102a080516101c05280602001516101e052506101c0600435600281106117a357600080fd5b6020020151604435610140600435600281106117be57600080fd5b602002015180820282158284830414176117d757600080fd5b80905090509050670de0b6b3a7640000808204905090508181830110156117fd57600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e0516102005161022051600435610240526024356102605261020051610280526101c0516102a0526101e0516102c0526102c0516102a05161028051610260516102405160065801614c94565b6103205261022052610200526101e0526101c0526101a05261018052610160526101405261032051610220526101c0602435600281106118aa57600080fd5b602002015161022051808210156118c057600080fd5b808203905090506001808210156118d657600080fd5b80820390509050610240526102405160025480820282158284830414176118fc57600080fd5b809050905090506402540be400808204905090506102605261024051610260518082101561192957600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761194d57600080fd5b809050905090506101406024356002811061196757600080fd5b6020020151808061197757600080fd5b8204905090506102405260643561024051101515156119d5576308c379a06102805260206102a05260176102c0527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006102e0526102c050606461029cfd5b6102605160035480820282158284830414176119f057600080fd5b809050905090506402540be400808204905090506102805261028051670de0b6b3a76400008082028215828483041417611a2957600080fd5b8090509050905061014060243560028110611a4357600080fd5b60200201518080611a5357600080fd5b8204905090506102805261018060043560028110611a7057600080fd5b6020020151604435818183011015611a8757600080fd5b8082019050905060043560028110611a9e57600080fd5b600160c052602060c020015561018060243560028110611abd57600080fd5b60200201516102405180821015611ad357600080fd5b808203905090506102805180821015611aeb57600080fd5b8082039050905060243560028110611b0257600080fd5b600160c052602060c020015560006004610300527f23b872dd000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905030602082610360010152602081019050604435602082610360010152602081019050806103605261036090508051602001806104208284600060045af1611bb357600080fd5b5050602061050061042051610440600060043560028110611bd357600080fd5b600060c052602060c02001545af1611bea57600080fd5b60203d80821115611bfb5780611bfd565b815b905090506104e0526104e08051602001806102a08284600060045af1611c2257600080fd5b505060006102a0511115611c74576102a0806020015160008251806020901315611c4b57600080fd5b8091901215611c5957600080fd5b806020036101000a82049050905090501515611c7457600080fd5b60006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905061024051602082610360010152602081019050806103605261036090508051602001806104008284600060045af1611d0a57600080fd5b505060206104c061040051610420600060243560028110611d2a57600080fd5b600060c052602060c02001545af1611d4157600080fd5b60203d80821115611d525780611d54565b815b905090506104a0526104a08051602001806102a08284600060045af1611d7957600080fd5b505060006102a0511115611dcb576102a0806020015160008251806020901315611da257600080fd5b8091901215611db057600080fd5b806020036101000a82049050905090501515611dcb57600080fd5b6004356103005260443561032052602435610340526102405161036052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610300a261024051600052600060165560206000f35b63a6417ed6811415612b855760165415611e3b57600080fd5b600160165560043580806000811215611e5057195b607f1c15611e5d57600080fd5b90505060243580806000811215611e7057195b607f1c15611e7d57600080fd5b90505060145415611e8d57600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801614758565b610180526101605261014052610180516101605260075461018052600435600180820380806000811215611ee857195b607f1c15611ef557600080fd5b9050905090506101a052602435600180820380806000811215611f1457195b607f1c15611f2157600080fd5b9050905090506101c05260016101e05260016102005260006101a0511215611f4b576004356101e0525b60006101c0511215611f5f57602435610200525b6060366102203760006101a0511215611f975760043560028110611f8257600080fd5b600060c052602060c020015461024052611fb9565b6101a05160038110611fa857600080fd5b600a60c052602060c0200154610240525b60006101c0511215611fea5760243560028110611fd557600080fd5b600060c052602060c02001546102605261200c565b6101c05160038110611ffb57600080fd5b600a60c052602060c0200154610260525b604435610280526003600435141561205e57602061032060246370a082316102a052306102c0526102bc610240515afa61204557600080fd5b601f3d1161205257600080fd5b60005061032051610280525b60006004610300527f23b872dd000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905030602082610360010152602081019050604435602082610360010152602081019050806103605261036090508051602001806104208284600060045af161210357600080fd5b50506020610500610420516104406000610240515af161212257600080fd5b60203d808211156121335780612135565b815b905090506104e0526104e08051602001806102a08284600060045af161215a57600080fd5b505060006102a05111156121ac576102a080602001516000825180602090131561218357600080fd5b809190121561219157600080fd5b806020036101000a820490509050905015156121ac57600080fd5b6003600435141561220f57602061038060246370a0823161030052306103205261031c610240515afa6121de57600080fd5b601f3d116121eb57600080fd5b60005061038051610280518082101561220357600080fd5b80820390509050610280525b60006101a051121561222257600161222a565b60006101c051125b156129085760018060c052602060c020546103005260018160c052602060c02001546103205250610140610380525b6103805151602061038051016103805261038061038051101561227b57612259565b610160516103a052610300516103c052610320516103e0526103e0516103c0516103a05160065801614656565b6104405261046052610360610380525b61038051526020610380510361038052610140610380511015156122db576122b8565b6104408051610340528060200151610360525060006103805260006101a051121561237e576103406004356002811061231357600080fd5b6020020151610280516101406004356002811061232f57600080fd5b6020020151808202821582848304141761234857600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561236e57600080fd5b80820190509050610380526124f3565b6060366103a037610280516103a06101a0516003811061239d57600080fd5b60200201526001600060c052602060c02001546104005260206104a060246370a0823161042052306104405261043c610400515afa6123db57600080fd5b601f3d116123e857600080fd5b6000506104a05161038052610180513b61240157600080fd5b600060006084634515cef3610420526103a051610440526103c051610460526103e0516104805260006104a05261043c6000610180515af161244257600080fd5b60206104a060246370a0823161042052306104405261043c610400515afa61246957600080fd5b601f3d1161247657600080fd5b6000506104a051610380518082101561248e57600080fd5b8082039050905061028052610280516101605180820282158284830414176124b557600080fd5b80905090509050670de0b6b3a764000080820490509050610380526103808051610360518181830110156124e857600080fd5b808201905090508152505b6101406103c0525b6103c0515160206103c051016103c0526103c06103c051101561251d576124fb565b6101e0516103e0526102005161040052610380516104205261034051610440526103605161046052610460516104405161042051610400516103e05160065801614c94565b6104c0526103a06103c0525b6103c0515260206103c051036103c0526101406103c0511015156125915761256e565b6104c0516103a05261034061020051600281106125ad57600080fd5b60200201516103a051808210156125c357600080fd5b808203905090506001808210156125d957600080fd5b80820390509050610220526102205160025480820282158284830414176125ff57600080fd5b809050905090506402540be400808204905090506103c052610220516103c0518082101561262c57600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761265057600080fd5b80905090509050610140610200516002811061266b57600080fd5b6020020151808061267b57600080fd5b820490509050610220526103c05160035480820282158284830414176126a057600080fd5b809050905090506402540be400808204905090506103e0526103e051670de0b6b3a764000080820282158284830414176126d957600080fd5b8090509050905061014061020051600281106126f457600080fd5b6020020151808061270457600080fd5b8204905090506103e0526103006101e0516002811061272257600080fd5b60200201516102805181818301101561273a57600080fd5b808201905090506101e0516002811061275257600080fd5b600160c052602060c0200155610300610200516002811061277257600080fd5b6020020151610220518082101561278857600080fd5b808203905090506103e051808210156127a057600080fd5b8082039050905061020051600281106127b857600080fd5b600160c052602060c020015560006101c0511215156128af5760206104a060246370a0823161042052306104405261043c610260515afa6127f857600080fd5b601f3d1161280557600080fd5b6000506104a05161040052610180513b61281e57600080fd5b600060006064631a4d01d26104205261022051610440526101c0516104605260006104805261043c6000610180515af161285757600080fd5b60206104a060246370a0823161042052306104405261043c610260515afa61287e57600080fd5b601f3d1161288b57600080fd5b6000506104a05161040051808210156128a357600080fd5b80820390509050610220525b6064356102205110151515612903576308c379a0610400526020610420526017610440527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006104605261044050606461041cfd5b6129ef565b602061038060246370a0823161030052306103205261031c610260515afa61292f57600080fd5b601f3d1161293c57600080fd5b6000506103805161022052610180513b61295557600080fd5b600060006084633df02124610300526101a051610320526101c0516103405261028051610360526064356103805261031c6000610180515af161299757600080fd5b602061038060246370a0823161030052306103205261031c610260515afa6129be57600080fd5b601f3d116129cb57600080fd5b6000506103805161022051808210156129e357600080fd5b80820390509050610220525b60006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905061022051602082610360010152602081019050806103605261036090508051602001806104008284600060045af1612a8557600080fd5b505060206104c0610400516104206000610260515af1612aa457600080fd5b60203d80821115612ab55780612ab7565b815b905090506104a0526104a08051602001806102a08284600060045af1612adc57600080fd5b505060006102a0511115612b2e576102a0806020015160008251806020901315612b0557600080fd5b8091901215612b1357600080fd5b806020036101000a82049050905090501515612b2e57600080fd5b6004356103005260443561032052602435610340526102205161036052337fd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b6080610300a261022051600052600060165560206000f35b635b36389c811415612e565760165415612b9e57600080fd5b60016016556006546101405260206101e060046318160ddd6101805261019c610140515afa612bcc57600080fd5b601f3d11612bd957600080fd5b6000506101e05161016052604036610180376101c060006002818352015b6101c05160028110612c0857600080fd5b600160c052602060c02001546101e0526101e0516004358082028215828483041417612c3357600080fd5b80905090509050610160518080612c4957600080fd5b8204905090506102005260246101c05160028110612c6657600080fd5b60200201356102005110151515612ce1576308c379a0610220526020610240526030610260527f5769746864726177616c20726573756c74656420696e20666577657220636f69610280527f6e73207468616e206578706563746564000000000000000000000000000000006102a05261026050608461023cfd5b6101e0516102005180821015612cf657600080fd5b808203905090506101c05160028110612d0e57600080fd5b600160c052602060c0200155610200516101806101c05160028110612d3257600080fd5b602002015260206102c0604463a9059cbb610220523361024052610200516102605261023c60006101c05160028110612d6a57600080fd5b600060c052602060c02001545af1612d8157600080fd5b601f3d11612d8e57600080fd5b6000506102c0505b8151600101808352811415612bf7575b5050602061026060446379cc67906101c052336101e052600435610200526101dc6000610140515af1612dd857600080fd5b601f3d11612de557600080fd5b60005061026050610180516101c0526101a0516101e052604036610200376101605160043580821015612e1757600080fd5b8082039050905061024052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101c0a260006016556040610180f35b63e31032738114156136015760165415612e6f57600080fd5b600160165560145415612e8157600080fd5b61014051600658016143c0565b61016052610140526101605161014052610140516101605160065801614758565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a05250610180516101c0526101a0516101e0526101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a0516102605261014051610280526102805161026051610240516102205160065801614b5f565b6102e052610200526101e0526101c0526101a0526101805261016052610140526102e0516102005261022060006002818352015b6101c06102205160028110612f9257600080fd5b60200201805160046102205160028110612fab57600080fd5b602002013580821015612fbd57600080fd5b808203905090508152505b8151600101808352811415612f7e575b50506101405161016051610180516101a0516101c0516101e051610200516102205161016051610240526101c051610260526101e05161028052610140516102a0526102a05161028051610260516102405160065801614b5f565b6103005261022052610200526101e0526101c0526101a05261018052610160526101405261030051610220526002546002808202821582848304141761307857600080fd5b809050905090506004808204905090506102405260035461026052604036610280376102c060006002818352015b610220516101806102c051600281106130be57600080fd5b602002015180820282158284830414176130d757600080fd5b809050905090506102005180806130ed57600080fd5b8204905090506102e0526000610300526101c06102c0516002811061311157600080fd5b60200201516102e051111561315a576102e0516101c06102c0516002811061313857600080fd5b60200201518082101561314a57600080fd5b8082039050905061030052613190565b6101c06102c0516002811061316e57600080fd5b60200201516102e0518082101561318457600080fd5b80820390509050610300525b610240516103005180820282158284830414176131ac57600080fd5b809050905090506402540be400808204905090506102806102c051600281106131d457600080fd5b60200201526101c06102c051600281106131ed57600080fd5b60200201516102806102c0516002811061320657600080fd5b602002015161026051808202821582848304141761322357600080fd5b809050905090506402540be400808204905090508082101561324457600080fd5b808203905090506102c0516002811061325c57600080fd5b600160c052602060c02001556101c06102c0516002811061327c57600080fd5b6020020180516102806102c0516002811061329657600080fd5b6020020151808210156132a857600080fd5b808203905090508152505b81516001018083528114156130a6575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c051610160516102e0526101c051610300526101e0516103205261014051610340526103405161032051610300516102e05160065801614b5f565b6103a0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102c0526006546102e052602061038060046318160ddd6103205261033c6102e0515afa61339b57600080fd5b601f3d116133a857600080fd5b6000506103805161030052610200516102c051808210156133c857600080fd5b808203905090506103005180820282158284830414176133e757600080fd5b809050905090506102005180806133fd57600080fd5b820490509050610320526000610320511861341757600080fd5b6103208051600181818301101561342d57600080fd5b80820190509050815250604435610320511115151561348b576308c379a0610340526020610360526014610380527f536c697070616765207363726577656420796f750000000000000000000000006103a05261038050606461035cfd5b60206103e060446379cc6790610340523361036052610320516103805261035c60006102e0515af16134bc57600080fd5b601f3d116134c957600080fd5b6000506103e05061034060006002818352015b6000600461034051600281106134f157600080fd5b6020020135181561356f576020610400604463a9059cbb6103605233610380526004610340516002811061352457600080fd5b60200201356103a05261037c6000610340516002811061354357600080fd5b600060c052602060c02001545af161355a57600080fd5b601f3d1161356757600080fd5b600050610400505b81516001018083528114156134dc575b5050600435610340526024356103605261028051610380526102a0516103a052610220516103c0526103005161032051808210156135bc57600080fd5b808203905090506103e052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610340a261032051600052600060165560206000f35b63cc2b27d78114156136c6576024358080600081121561361d57195b607f1c1561362a57600080fd5b90505061014051600658016147e8565b61016052610140526101605161014052610140516004356101605260243561018052610140516101a0526101a051610180516101605160065801615468565b61020052610220526102405261014052610200808080805161026052505060208101905080808051610280525050602081019050808080516102a052505050506102605160005260206000f35b631a4d01d28114156139b157601654156136df57600080fd5b6001601655602435808060008112156136f457195b607f1c1561370157600080fd5b9050506014541561371157600080fd5b6101405160065801614758565b61016052610140526101605161014052606036610160376101405161016051610180516101a0516004356101c0526024356101e0526101405161020052610200516101e0516101c05160065801615468565b61026052610280526102a0526101a05261018052610160526101405261026080808080516102c0525050602081019050808080516102e05250506020810190508080805161030052505050506102c080516101605280602001516101805280604001516101a05250604435610160511015151561382c576308c379a06101c05260206101e0526018610200527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610220526102005060646101dcfd5b6024356002811061383c57600080fd5b600160c052602060c0200180546101605161018051600354808202821582848304141761386857600080fd5b809050905090506402540be4008082049050905081818301101561388b57600080fd5b808201905090508082101561389f57600080fd5b80820390509050815550602061026060446379cc67906101c052336101e052600435610200526101dc60006006545af16138d857600080fd5b601f3d116138e557600080fd5b600050610260506020610260604463a9059cbb6101c052336101e05261016051610200526101dc60006024356002811061391e57600080fd5b600060c052602060c02001545af161393557600080fd5b601f3d1161394257600080fd5b600050610260506004356101c052610160516101e0526101a0516004358082101561396c57600080fd5b8082039050905061020052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a060606101c0a261016051600052600060165560206000f35b633c157e64811415613b525760045433146139cb57600080fd5b600d54620151808181830110156139e157600080fd5b808201905090504210156139f457600080fd5b4262015180818183011015613a0857600080fd5b808201905090506024351015613a1d57600080fd5b61014051600658016143c0565b6101605261014052610160516101405260043560648082028215828483041417613a5357600080fd5b809050905090506101605260006004351115613a7657620f424060043510613a79565b60005b613a8257600080fd5b61014051610160511015613ac5576101405161016051600a8082028215828483041417613aae57600080fd5b809050905090501015613ac057600080fd5b613af5565b61014051600a8082028215828483041417613adf57600080fd5b80905090509050610160511115613af557600080fd5b61014051600b5561016051600c5542600d55602435600e556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588811415613bd5576004543314613b6c57600080fd5b61014051600658016143c0565b6101605261014052610160516101405261014051600b5561014051600c5542600d5542600e55610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a1467811415613c91576004543314613bef57600080fd5b600f5415613bfc57600080fd5b64012a05f2006004351115613c1057600080fd5b6402540be4006024351115613c2457600080fd5b426203f480818183011015613c3857600080fd5b808201905090506101405261014051600f556004356011556024356012556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97811415613d23576004543314613cab57600080fd5b600f54421015613cba57600080fd5b6000600f5418613cc957600080fd5b6000600f55601154610140526012546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb811415613d44576004543314613d3d57600080fd5b6000600f55005b636b441a40811415613dd65760043560a01c15613d6057600080fd5b6004543314613d6e57600080fd5b60105415613d7b57600080fd5b426203f480818183011015613d8f57600080fd5b808201905090506101405261014051601055600435601355600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae811415613e4d576004543314613df057600080fd5b601054421015613dff57600080fd5b600060105418613e0e57600080fd5b60006010556013546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193811415613e6e576004543314613e6757600080fd5b6000601055005b63e2e7d264811415613f065760206101c060246370a0823161014052306101605261015c60043560028110613ea257600080fd5b600060c052602060c02001545afa613eb957600080fd5b601f3d11613ec657600080fd5b6000506101c05160043560028110613edd57600080fd5b600160c052602060c020015480821015613ef657600080fd5b8082039050905060005260206000f35b6330c5408581141561413d576005546101405261016060006002818352015b6101605160028110613f3657600080fd5b600060c052602060c020015461018052602061024060246370a082316101c052306101e0526101dc610180515afa613f6d57600080fd5b601f3d11613f7a57600080fd5b600050610240516101605160028110613f9257600080fd5b600160c052602060c020015480821015613fab57600080fd5b808203905090506101a05260006004610220527fa9059cbb000000000000000000000000000000000000000000000000000000006102405261022060048060208461028001018260208501600060045af1505080518201915050610140516020826102800101526020810190506101a051602082610280010152602081019050806102805261028090508051602001806103208284600060045af161404f57600080fd5b505060206103e0610320516103406000610180515af161406e57600080fd5b60203d8082111561407f5780614081565b815b905090506103c0526103c08051602001806101c08284600060045af16140a657600080fd5b505060006101c05111156140f8576101c08060200151600082518060209013156140cf57600080fd5b80919012156140dd57600080fd5b806020036101000a820490509050905015156140f857600080fd5b8151600101808352811415613f25575b5050610140513b61411857600080fd5b600060006004632b5335c36101605261017c6000610140515af161413b57600080fd5b005b63e369885381141561416c57600454331461415757600080fd5b426015541161416557600080fd5b6001601455005b633046f97281141561418d57600454331461418657600080fd5b6000601455005b63c66106578114156141be57600435600281106141a957600080fd5b600060c052602060c020015460005260206000f35b634903b0d18114156141ef57600435600281106141da57600080fd5b600160c052602060c020015460005260206000f35b63ddca3f438114156142075760025460005260206000f35b63fee3f7f981141561421f5760035460005260206000f35b638da5cb5b8114156142375760045460005260206000f35b63d90097f781141561424f5760055460005260206000f35b6382c630668114156142675760065460005260206000f35b635d6362bb81141561427f5760075460005260206000f35b6395ccc02f8114156142975760085460005260206000f35b638296f84f8114156142af5760095460005260206000f35b6387cb4f578114156142e057600435600381106142cb57600080fd5b600a60c052602060c020015460005260206000f35b635409491a8114156142f857600b5460005260206000f35b63b4b577ad81141561431057600c5460005260206000f35b632081066c81141561432857600d5460005260206000f35b631405228881141561434057600e5460005260206000f35b63405e28f881141561435857600f5460005260206000f35b63e0a0b5868114156143705760105460005260206000f35b6358680d0b8114156143885760115460005260206000f35b63e38244628114156143a05760125460005260206000f35b631ec0cdc18114156143b85760135460005260206000f35b505b60006000fd5b61014052600e5461016052600c54610180526101605142101561454657600b546101a052600d546101c0526101a0516101805111156144a0576101a051610180516101a0518082101561441257600080fd5b80820390509050426101c0518082101561442b57600080fd5b80820390509050808202821582848304141761444657600080fd5b80905090509050610160516101c0518082101561446257600080fd5b80820390509050808061447457600080fd5b82049050905081818301101561448957600080fd5b808201905090506000526000516101405156614541565b6101a0516101a05161018051808210156144b957600080fd5b80820390509050426101c051808210156144d257600080fd5b8082039050905080820282158284830414176144ed57600080fd5b80905090509050610160516101c0518082101561450957600080fd5b80820390509050808061451b57600080fd5b8204905090508082101561452e57600080fd5b8082039050905060005260005161014051565b614556565b6101805160005260005161014051565b005b6101605261014052670de0b6b3a764000061018052670de0b6b3a76400006101a052610140516101a0526101c060006002818352015b6101806101c051600281106145a257600080fd5b60200201516101c051600281106145b857600080fd5b600160c052602060c020015480820282158284830414176145d857600080fd5b80905090509050670de0b6b3a7640000808204905090506101806101c0516002811061460357600080fd5b60200201525b815160010180835281141561458e575b505060406101c0525b60006101c05111151561463457614650565b60206101c05103610180015160206101c051036101c052614622565b61016051565b6101a052610140526101605261018052670de0b6b3a76400006101c052670de0b6b3a76400006101e052610140516101e05261020060006002818352015b6101c061020051600281106146a857600080fd5b602002015161016061020051600281106146c157600080fd5b602002015180820282158284830414176146da57600080fd5b80905090509050670de0b6b3a7640000808204905090506101c0610200516002811061470557600080fd5b60200201525b8151600101808352811415614694575b50506040610200525b60006102005111151561473657614752565b602061020051036101c001516020610200510361020052614724565b6101a051565b6101405260095461025881818301101561477157600080fd5b808201905090504211156147d75760206101e0600463bb7b8b806101805261019c6007545afa6147a057600080fd5b601f3d116147ad57600080fd5b6000506101e0516101605261016051600855426009556101605160005260005161014051566147e6565b60085460005260005161014051565b005b6101405260095461025881818301101561480157600080fd5b808201905090504211156148545760206101c0600463bb7b8b806101605261017c6007545afa61483057600080fd5b601f3d1161483d57600080fd5b6000506101c0516000526000516101405156614863565b60085460005260005161014051565b005b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c08051610200518181830110156148b057600080fd5b808201905090508152505b8151600101808352811415614888575b50506101c05115156148e55760006000526000516101a051565b6101c05161020052610180516002808202821582848304141761490757600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a051026101400151610280526102605161020051808202821582848304141761495e57600080fd5b80905090509050610280516002808202821582848304141761497f57600080fd5b80905090509050808061499157600080fd5b820490509050610260525b8151600101808352811415614932575b5050610200516101e052610220516101c05180820282158284830414176149d257600080fd5b8090509050905060648082049050905061026051600280820282158284830414176149fc57600080fd5b80905090509050818183011015614a1257600080fd5b80820190509050610200518082028215828483041417614a3157600080fd5b8090509050905061022051606480821015614a4b57600080fd5b80820390509050610200518082028215828483041417614a6a57600080fd5b809050905090506064808204905090506003610260518082028215828483041417614a9457600080fd5b80905090509050818183011015614aaa57600080fd5b808201905090508080614abc57600080fd5b820490509050610200526101e051610200511115614b10576001610200516101e05180821015614aeb57600080fd5b80820390509050111515614b0b576102005160005250506000516101a051565b614b47565b60016101e0516102005180821015614b2757600080fd5b80820390509050111515614b47576102005160005250506000516101a051565b815160010180835281141561491e575b505060006000fd5b6101c0526101405261016052610180526101a0526101405161016051610180516101a0516101c051610140516101e0526101605161020052610180516102205261022051610200516101e05160065801614656565b610280526102a0526101c0526101a05261018052610160526101405261028080516102c05280602001516102e052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e0516102c051610300526102e051610320526101a0516103405261034051610320516103005160065801614865565b6103a0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516000526000516101c051565b6101e0526101405261016052610180526101a0526101c052610160516101405118614cbe57600080fd5b6000610160511215614ccf57600080fd5b60026101605112614cdf57600080fd5b6000610140511215614cf057600080fd5b60026101405112614d0057600080fd5b6101405161016051610180516101a0516101c0516101e05161020051600658016143c0565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c05161026052610200516102805261028051610260516102405160065801614865565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610220526102005160028082028215828483041417614de057600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e0511415614e2157610180516102a052614e56565b610160516102e0511815614e51576101a06102e05160028110614e4357600080fd5b60200201516102a052614e56565b614ed2565b61028080516102a051818183011015614e6e57600080fd5b8082019050905081525061026051610220518082028215828483041417614e9457600080fd5b809050905090506102a05160028082028215828483041417614eb557600080fd5b809050905090508080614ec757600080fd5b820490509050610260525b8151600101808352811415614e06575b505061026051610220518082028215828483041417614f0057600080fd5b8090509050905060648082028215828483041417614f1d57600080fd5b809050905090506102405160028082028215828483041417614f3e57600080fd5b809050905090508080614f5057600080fd5b82049050905061026052610280516102205160648082028215828483041417614f7857600080fd5b80905090509050610240518080614f8e57600080fd5b820490509050818183011015614fa357600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c05261030051610300518082028215828483041417614fe657600080fd5b809050905090506102605181818301101561500057600080fd5b80820190509050600261030051808202821582848304141761502157600080fd5b809050905090506102e05181818301101561503b57600080fd5b80820190509050610220518082101561505357600080fd5b80820390509050808061506557600080fd5b820490509050610300526102c0516103005111156150b9576001610300516102c0518082101561509457600080fd5b808203905090501115156150b4576103005160005250506000516101e051565b6150f0565b60016102c05161030051808210156150d057600080fd5b808203905090501115156150f0576103005160005250506000516101e051565b8151600101808352811415614fc2575b505060006000fd5b6101e0526101405261016052610180526101a0526101c052600061016051121561513157600080fd5b6002610160511261514157600080fd5b610140516002808202821582848304141761515b57600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a05118156151b1576101806102a051600281106151a357600080fd5b6020020151610260526151b6565b615232565b6102408051610260518181830110156151ce57600080fd5b80820190509050815250610220516101c05180820282158284830414176151f457600080fd5b80905090509050610260516002808202821582848304141761521557600080fd5b80905090509050808061522757600080fd5b820490509050610220525b8151600101808352811415615181575b5050610220516101c051808202821582848304141761526057600080fd5b809050905090506064808202821582848304141761527d57600080fd5b80905090509050610200516002808202821582848304141761529e57600080fd5b8090509050905080806152b057600080fd5b82049050905061022052610240516101c051606480820282158284830414176152d857600080fd5b809050905090506102005180806152ee57600080fd5b82049050905081818301101561530357600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c051808202821582848304141761534657600080fd5b809050905090506102205181818301101561536057600080fd5b8082019050905060026102c051808202821582848304141761538157600080fd5b809050905090506102a05181818301101561539b57600080fd5b808201905090506101c051808210156153b357600080fd5b8082039050905080806153c557600080fd5b8204905090506102c052610280516102c05111156154195760016102c05161028051808210156153f457600080fd5b80820390509050111515615414576102c05160005250506000516101e051565b615450565b6001610280516102c0518082101561543057600080fd5b80820390509050111515615450576102c05160005250506000516101e051565b8151600101808352811415615322575b505060006000fd5b6101a0526101405261016052610180526101405161016051610180516101a0516101c051600658016143c0565b6101e0526101c0526101a0526101805261016052610140526101e0516101c0526101405161016051610180516101a0516101c0516101e0516102005161018051610220526102205160065801614558565b610280526102a052610200526101e0526101c0526101a05261018052610160526101405261028080516101e052806020015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101e0516102405261020051610260526101c0516102805261028051610260516102405160065801614865565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260206102c060046318160ddd6102605261027c6006545afa6155b757600080fd5b601f3d116155c457600080fd5b6000506102c0516102405261022051610140516102205180820282158284830414176155ef57600080fd5b8090509050905061024051808061560557600080fd5b8204905090508082101561561857600080fd5b80820390509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101c0516102a052610160516102c0526101e0516102e0526102005161030052610260516103205261032051610300516102e0516102c0516102a05160065801615108565b6103805261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103805161028052600254600280820282158284830414176156e557600080fd5b809050905090506004808204905090506102a052670de0b6b3a76400006102c052670de0b6b3a76400006102e052610180516102e0526101e0516103005261020051610320526101e0610160516002811061573f57600080fd5b6020020151610280518082101561575557600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761577957600080fd5b809050905090506102c0610160516002811061579457600080fd5b602002015180806157a457600080fd5b8204905090506103405261036060006002818352015b6000610380526101605161036051141561583c576101e061036051600281106157e257600080fd5b60200201516102605180820282158284830414176157ff57600080fd5b8090509050905061022051808061581557600080fd5b820490509050610280518082101561582c57600080fd5b80820390509050610380526158bb565b6101e0610360516002811061585057600080fd5b60200201516101e0610360516002811061586957600080fd5b602002015161026051808202821582848304141761588657600080fd5b8090509050905061022051808061589c57600080fd5b820490509050808210156158af57600080fd5b80820390509050610380525b61030061036051600281106158cf57600080fd5b6020020180516102a0516103805180820282158284830414176158f157600080fd5b809050905090506402540be400808204905090508082101561591257600080fd5b808203905090508152505b81516001018083528114156157ba575b5050610300610160516002811061594357600080fd5b6020020151610140610380525b6103805151602061038051016103805261038061038051101561597257615950565b6101c0516103a052610160516103c052610300516103e0526103205161040052610260516104205261042051610400516103e0516103c0516103a05160065801615108565b61048052610360610380525b61038051526020610380510361038052610140610380511015156159e6576159c3565b61048051808210156159f757600080fd5b808203905090506103605261036051600180821015615a1557600080fd5b80820390509050670de0b6b3a76400008082028215828483041417615a3957600080fd5b809050905090506102c06101605160028110615a5457600080fd5b60200201518080615a6457600080fd5b820490509050610360526103e0610360518152610340516103605180821015615a8c57600080fd5b808203905090508160200152610240518160400152506060610440525b600061044051111515615abb57615ad7565b602061044051036103e001516020610440510361044052615aa9565b6101a051565b6103c6615ea3036103c66000396103c6615ea3036000f3000000000000000000000000abc00210a691ce0f3d7d0602d7d84aea4d91cdfd0000000000000000000000001af3f329e8be154074d8769d1ffa4ee058b1dbc3000000000000000000000000af4de8e872131ae328ce21d909c74705d3aaf4520000000000000000000000000bc3a8239b0a63e945ea1bd6722ba747b9557e56000000000000000000000000160caed03795365f3a589f10c379ffa7d75d4e76000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200000000000000000000000000dd6df5ffed7b770355de53a9b60577b795a27b66

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

000000000000000000000000abc00210a691ce0f3d7d0602d7d84aea4d91cdfd0000000000000000000000001af3f329e8be154074d8769d1ffa4ee058b1dbc3000000000000000000000000af4de8e872131ae328ce21d909c74705d3aaf4520000000000000000000000000bc3a8239b0a63e945ea1bd6722ba747b9557e56000000000000000000000000160caed03795365f3a589f10c379ffa7d75d4e76000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200000000000000000000000000dd6df5ffed7b770355de53a9b60577b795a27b66

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000abc00210a691ce0f3d7d0602d7d84aea4d91cdfd
Arg [1] : 0000000000000000000000001af3f329e8be154074d8769d1ffa4ee058b1dbc3
Arg [2] : 000000000000000000000000af4de8e872131ae328ce21d909c74705d3aaf452
Arg [3] : 0000000000000000000000000bc3a8239b0a63e945ea1bd6722ba747b9557e56
Arg [4] : 000000000000000000000000160caed03795365f3a589f10c379ffa7d75d4e76
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [6] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [7] : 000000000000000000000000000000000000000000000000000000012a05f200
Arg [8] : 000000000000000000000000dd6df5ffed7b770355de53a9b60577b795a27b66


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.