Contract 0x9b4ed6f8904e976146b3dc0233cd48cf81835240

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb2b2f3479ce6b6371266378eeb175e286bc720bf6da3a04669625b4a924740e40x617a6960196134262021-09-28 14:39:0165 days 4 hrs ago0x7eeac6cddbd1d0b8af061742d41877d7f707289a IN  Contract Creation0 MATIC0.2117276
[ 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.15

Optimization Enabled:
N/A

Other Settings:
, None license

Contract Source Code (Vyper language format)

# @version 0.2.15
"""
@title StableSwap
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2020-2021 - all rights reserved
@notice 3 coin pool implementation with no lending
@dev ERC20 support for return True/revert, return True/False, return None
     Support for positive-rebasing and fee-on-transfer tokens
"""

from vyper.interfaces import ERC20

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


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

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

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

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

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

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

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

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

event StopRampA:
    A: uint256
    t: uint256


N_COINS: constant(int128) = 3
PRECISION: constant(uint256) = 10 ** 18

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

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

factory: address

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

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

rate_multipliers: uint256[N_COINS]

name: public(String[64])
symbol: public(String[32])

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


@external
def __init__():
    # we do this to prevent the implementation contract from being used as a pool
    self.fee = 31337


@external
def initialize(
    _name: String[32],
    _symbol: String[10],
    _coins: address[4],
    _rate_multipliers: uint256[4],
    _A: uint256,
    _fee: uint256,
):
    """
    @notice Contract constructor
    @param _name Name of the new pool
    @param _symbol Token symbol
    @param _coins List of all ERC20 conract addresses of coins
    @param _rate_multipliers List of number of decimals in coins
    @param _A Amplification coefficient multiplied by n ** (n - 1)
    @param _fee Fee to charge for exchanges
    """
    # check if fee was already set to prevent initializing contract twice
    assert self.fee == 0

    for i in range(N_COINS):
        coin: address = _coins[i]
        if coin == ZERO_ADDRESS:
            break
        self.coins[i] = coin
        self.rate_multipliers[i] = _rate_multipliers[i]

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

    self.name = concat("Curve.fi Factory Plain Pool: ", _name)
    self.symbol = concat(_symbol, "-f")

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


### ERC20 Functionality ###

@view
@external
def decimals() -> uint256:
    """
    @notice Get the number of decimals for this token
    @dev Implemented as a view method to reduce gas costs
    @return uint256 decimal places
    """
    return 18


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

    log Transfer(_from, _to, _value)


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


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

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

    return True


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

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


### StableSwap Functionality ###

@view
@internal
def _balances() -> uint256[N_COINS]:
    result: uint256[N_COINS] = empty(uint256[N_COINS])
    for i in range(N_COINS):
        result[i] = ERC20(self.coins[i]).balanceOf(self) - self.admin_balances[i]
    return result


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


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


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

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

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


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


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


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


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


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

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

    Converging solution:
    D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1)
    """
    S: uint256 = 0
    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(_rates: uint256[N_COINS], _balances: uint256[N_COINS], _amp: uint256) -> uint256:
    xp: uint256[N_COINS] = self._xp_mem(_rates, _balances)
    return self.get_D(xp, _amp)


@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()
    balances: uint256[N_COINS] = self._balances()
    xp: uint256[N_COINS] = self._xp_mem(self.rate_multipliers, balances)
    D: uint256 = self.get_D(xp, amp)
    # D is in the units similar to DAI (e.g. converted to precision 1e18)
    # When balanced, D = n * x_u - total virtual value of the portfolio
    return D * PRECISION / self.totalSupply


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

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


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

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

    total_supply: uint256 = self.totalSupply
    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        amount: uint256 = _amounts[i]
        if amount > 0:
            coin: address = self.coins[i]
            initial: uint256 = ERC20(coin).balanceOf(self)
            response: Bytes[32] = raw_call(
                coin,
                concat(
                    method_id("transferFrom(address,address,uint256)"),
                    convert(msg.sender, bytes32),
                    convert(self, bytes32),
                    convert(amount, bytes32),
                ),
                max_outsize=32,
            )
            if len(response) > 0:
                assert convert(response, bool)  # dev: failed transfer
            new_balances[i] += ERC20(coin).balanceOf(self) - initial
        else:
            assert total_supply != 0  # dev: initial deposit requires all coins

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

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

    assert mint_amount >= _min_mint_amount, "Slippage screwed you"

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

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

    return mint_amount


@view
@internal
def get_y(i: int128, j: int128, x: uint256, xp: uint256[N_COINS]) -> 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

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

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

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

    for _i in range(255):
        y_prev = y
        y = (y*y + c) / (2 * y + b - D)
        # Equality with the precision of 1
        if y > y_prev:
            if y - y_prev <= 1:
                return y
        else:
            if y_prev - y <= 1:
                return y
    raise


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

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


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

    coin: address = self.coins[i]
    dx: uint256 = ERC20(coin).balanceOf(self)
    response: Bytes[32] = raw_call(
        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)
    dx = ERC20(coin).balanceOf(self) - dx

    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, "Exchange resulted in fewer coins than expected"

    self.admin_balances[j] += (dy_fee * ADMIN_FEE / FEE_DENOMINATOR) * PRECISION / rates[j]

    response = raw_call(
        self.coins[j],
        concat(
            method_id("transfer(address,uint256)"),
            convert(_receiver, 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 remove_liquidity(
    _burn_amount: uint256,
    _min_amounts: uint256[N_COINS],
    _receiver: address = msg.sender
) -> uint256[N_COINS]:
    """
    @notice Withdraw coins from the pool
    @dev Withdrawal amounts are based on current deposit ratios
    @param _burn_amount Quantity of LP tokens to burn in the withdrawal
    @param _min_amounts Minimum amounts of underlying coins to receive
    @param _receiver Address that receives the withdrawn coins
    @return List of amounts of coins that were withdrawn
    """
    total_supply: uint256 = self.totalSupply
    amounts: uint256[N_COINS] = empty(uint256[N_COINS])
    balances: uint256[N_COINS] = self._balances()

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

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

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

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

    return amounts


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

    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        amount: uint256 = _amounts[i]
        if amount != 0:
            new_balances[i] -= amount
            response: Bytes[32] = raw_call(
                self.coins[i],
                concat(
                    method_id("transfer(address,uint256)"),
                    convert(_receiver, bytes32),
                    convert(amount, bytes32),
                ),
                max_outsize=32,
            )
            if len(response) > 0:
                assert convert(response, bool)
    D1: uint256 = self.get_D_mem(rates, new_balances, amp)

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

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

    total_supply -= burn_amount
    self.totalSupply = total_supply
    self.balanceOf[msg.sender] -= burn_amount
    log Transfer(msg.sender, ZERO_ADDRESS, burn_amount)
    log RemoveLiquidityImbalance(msg.sender, _amounts, fees, D1, total_supply)

    return burn_amount


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

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

    x_1 = (x_1**2 + c) / (2*x_1 + b)
    """
    # x in the input is converted to the same price/precision

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

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

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

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

    for _i in range(255):
        y_prev = y
        y = (y*y + c) / (2 * y + b - D)
        # Equality with the precision of 1
        if y > y_prev:
            if y - y_prev <= 1:
                return y
        else:
            if y_prev - y <= 1:
                return y
    raise


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

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

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

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

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

    return [dy, dy_0 - dy]


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


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

    self.admin_balances[i] += dy[1] * ADMIN_FEE / FEE_DENOMINATOR
    total_supply: uint256 = self.totalSupply - _burn_amount
    self.totalSupply = total_supply
    self.balanceOf[msg.sender] -= _burn_amount
    log Transfer(msg.sender, ZERO_ADDRESS, _burn_amount)

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

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

    return dy[0]


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

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

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

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

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


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

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

    log StopRampA(current_A, block.timestamp)


@external
def withdraw_admin_fees():
    receiver: address = Factory(self.factory).get_fee_receiver(self)

    for i in range(N_COINS):
        amount: uint256 = self.admin_balances[i]
        if amount != 0:
            coin: address = self.coins[i]
            raw_call(
                coin,
                concat(
                    method_id("transfer(address,uint256)"),
                    convert(receiver, bytes32),
                    convert(amount, bytes32)
                )
            )
            self.admin_balances[i] = 0

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true},{"name":"spender","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"TokenExchange","inputs":[{"name":"buyer","type":"address","indexed":true},{"name":"sold_id","type":"int128","indexed":false},{"name":"tokens_sold","type":"uint256","indexed":false},{"name":"bought_id","type":"int128","indexed":false},{"name":"tokens_bought","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[3]","indexed":false},{"name":"fees","type":"uint256[3]","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[3]","indexed":false},{"name":"fees","type":"uint256[3]","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[3]","indexed":false},{"name":"fees","type":"uint256[3]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"name":"old_A","type":"uint256","indexed":false},{"name":"new_A","type":"uint256","indexed":false},{"name":"initial_time","type":"uint256","indexed":false},{"name":"future_time","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"name":"A","type":"uint256","indexed":false},{"name":"t","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"initialize","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_coins","type":"address[4]"},{"name":"_rate_multipliers","type":"uint256[4]"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"}],"outputs":[],"gas":541870},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":318},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":77977},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":115912},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":37851},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":22177},{"stateMutability":"view","type":"function","name":"get_balances","inputs":[],"outputs":[{"name":"","type":"uint256[3]"}],"gas":22153},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":498},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10824},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10786},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1220471},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}],"gas":4766613},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_min_mint_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2841911},{"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"}]},{"stateMutability":"nonpayable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[3]"}],"outputs":[{"name":"","type":"uint256[3]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[3]"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256[3]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_max_burn_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_max_burn_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}],"gas":1130},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[],"gas":162161},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[],"gas":157625},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[],"gas":99734},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":3093},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3123},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3108},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3138},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3168},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3198},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3228},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13488},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":11241},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3533},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3778},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3378}]

617a69600c55614b5656600436101561000d57613556565b600035601c5260005134614b475763a461b3c881141561030e5760406004356004016101403760206004356004013511614b4757602a6024356004016101a037600a6024356004013511614b475760443560a01c614b475760643560a01c614b475760843560a01c614b475760a43560a01c614b4757600c54614b475761020060006003818352015b6044610200516004811015614b4757602002013561022052610220516100bb5761010c565b610220516001610200516003811015614b4757026006015560c4610200516004811015614b475760200201356001610200516003811015614b475702601101555b8151600101808352811415610096575b5050610144356064808202821582848304141715614b4757809050905090506102005261020051600d5561020051600e5561016435600c55336005556000601d610220527f43757276652e666920466163746f727920506c61696e20506f6f6c3a2000000061024052610220601d8060208461028001018260208501600060045af150508051820191505061014060208060208461028001018260208501600060045af150508051820191505080610280526102809050806014602082510161012060006003818352015b826101205160200211156101ea5761020c565b61012051602002850151610120518501555b81516001018083528114156101d7575b50505050505060006101a0600a8060208461028001018260208501600060045af15050805182019150506002610220527f2d660000000000000000000000000000000000000000000000000000000000006102405261022060028060208461028001018260208501600060045af150508051820191505080610280526102809050806018602082510161012060006002818352015b826101205160200211156102b4576102d6565b61012051602002850151610120518501555b81516001018083528114156102a1575b5050505050506000610220523060007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610220a3005b63313ce56781141561032557601260005260206000f35b63a9059cbb8114156103715760043560a01c614b4757336101405260043561016052602435610180526101805161016051610140516006580161355c565b600050600160005260206000f35b6323b872dd8114156104485760043560a01c614b475760243560a01c614b47576004356101405260243561016052604435610180526101805161016051610140516006580161355c565b600050601c60043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561043d5761014051604435808210614b475780820390509050601c60043560e05260c052604060c0203360e05260c052604060c020555b600160005260206000f35b63095ea7b38114156104bb5760043560a01c614b4757602435601c3360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b634903b0d18114156104f957600658016135fb565b6101405261016052610180526101406004356003811015614b4757602002015160005260206000f35b6314f05979811415610521576060600658016135fb565b610140526101605261018052610140f35b63fee3f7f981141561053c5764012a05f20060005260206000f35b63f446c1d081141561056b57600658016136d8565b610140526101405160648082049050905060005260206000f35b6376a2f0f081141561059157600658016136d8565b610140526101405160005260206000f35b63bb7b8b808114156107815761014051600658016136d8565b610160526101405261016051610140526101405161016051610180516101a051600658016135fb565b6101c0526101e052610200526101a0526101805261016052610140526101c080516101605280602001516101805280604001516101a052506101405161016051610180516101a0516101c0516101e051610200516011805461022052600181015461024052600281015461026052506101605161028052610180516102a0526101a0516102c0526102c0516102a0516102805161026051610240516102205160065801613830565b610320526103405261036052610200526101e0526101c0526101a05261018052610160526101405261032080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e051610260526102005161028052610140516102a0526102a05161028051610260516102405160065801613911565b6103005261022052610200526101e0526101c0526101a052610180526101605261014052610300516102205261022051670de0b6b3a7640000808202821582848304141715614b475780905090509050601d54808015614b475782049050905060005260206000f35b633883e119811415610a525760643560011c614b475761014051600658016136d8565b610160526101405261016051610140526101405161016051610180516101a051600658016135fb565b6101c0526101e052610200526101a0526101805261016052610140526101c080516101605280602001516101805280604001516101a052506101405161016051610180516101a0516101c051601180546101e05260018101546102005260028101546102205250610160516102405261018051610260526101a05161028052610140516102a0526102a05161028051610260516102405161022051610200516101e05160065801613bbf565b610300526101c0526101a052610180526101605261014052610300516101c0526101e060006003818352015b60046101e0516003811015614b4757602002013561020052606435156108f7576101606101e0516003811015614b4757602002018051610200518181830110614b475780820190509050815250610923565b6101606101e0516003811015614b475760200201805161020051808210614b4757808203905090508152505b5b81516001018083528114156108a5575b50506101405161016051610180516101a0516101c0516101e051601180546102005260018101546102205260028101546102405250610160516102605261018051610280526101a0516102a052610140516102c0526102c0516102a051610280516102605161024051610220516102005160065801613bbf565b610320526101e0526101c0526101a052610180526101605261014052610320516101e052600061020052606435156109ff576101e0516101c051808210614b47578082039050905061020052610a1a565b6101c0516101e051808210614b475780820390509050610200525b61020051601d54808202821582848304141715614b4757809050905090506101c051808015614b475782049050905060005260206000f35b634515cef3811415610a68573361014052610a93565b6375b96abc811415610a8e5760843560a01c614b47576020608461014037600050610a93565b61136d565b600054614b475760016000556101405161016051600658016136d8565b61018052610160526101405261018051610160526101405161016051610180516101a0516101c051600658016135fb565b6101e05261020052610220526101c0526101a0526101805261016052610140526101e080516101805280602001516101a05280604001516101c05250601180546101e052600181015461020052600281015461022052506101405161016051610180516101a0516101c0516101e0516102005161022051610240516101e051610260526102005161028052610220516102a052610180516102c0526101a0516102e0526101c05161030052610160516103205261032051610300516102e0516102c0516102a051610280516102605160065801613bbf565b610380526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103805161024052601d546102605261018051610280526101a0516102a0526101c0516102c0526102e060006003818352015b60046102e0516003811015614b47576020020135610300526000610300511115610e2c5760016102e0516003811015614b475702600601546103205260206103e060246370a0823161036052306103805261037c610320515afa15614b4757601f3d1115614b47576000506103e05161034052600060046103c0527f23b872dd000000000000000000000000000000000000000000000000000000006103e0526103c060048060208461042001018260208501600060045af1505080518201915050336020826104200101526020810190503060208261042001015260208101905061030051602082610420010152602081019050806104205261042090508051602001806104e08284600060045af115614b4757505060206105c06104e0516105006000610320515af115614b475760203d80821115610d555780610d57565b815b905090506105a0526105a08051602001806103608284600060045af115614b475750506000610360511115610db9576103608060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b6102806102e0516003811015614b4757602002018051602061044060246370a082316103c052306103e0526103dc610320515afa15614b4757601f3d1115614b47576000506104405161034051808210614b4757808203905090508181830110614b475780820190509050815250610e39565b6000610260511815614b47575b5b8151600101808352811415610c14575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e0516101e051610300526102005161032052610220516103405261028051610360526102a051610380526102c0516103a052610160516103c0526103c0516103a051610380516103605161034051610320516103005160065801613bbf565b610420526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610420516102e052610240516102e0511115614b475760803661030037600061026051111561122557600c546003808202821582848304141715614b475780905090509050600880820490509050610380526103a060006003818352015b6102e0516101806103a0516003811015614b47576020020151808202821582848304141715614b47578090509050905061024051808015614b47578204905090506103c05260006103e0526102806103a0516003811015614b4757602002015161040052610400516103c051111561100c576103c05161040051808210614b4757808203905090506103e052611027565b610400516103c051808210614b4757808203905090506103e0525b610380516103e051808202821582848304141715614b4757809050905090506402540be400808204905090506103006103a0516003811015614b4757602002015260016103a0516003811015614b47570260090180546103006103a0516003811015614b4757602002015164012a05f200808202821582848304141715614b4757809050905090506402540be400808204905090508181830110614b4757808201905090508155506102806103a0516003811015614b47576020020180516103006103a0516003811015614b47576020020151808210614b4757808203905090508152505b8151600101808352811415610f7b575b50506101406103c0525b6103c0515160206103c051016103c0526103c06103c051101561114857611126565b6101e0516103e0526102005161040052610220516104205261028051610440526102a051610460526102c05161048052610160516104a0526104a05161048051610460516104405161042051610400516103e05160065801613bbf565b610500526103a06103c0525b6103c0515260206103c051036103c0526101406103c051106111d2576111b1565b610500516103a052610260516103a05161024051808210614b475780820390509050808202821582848304141715614b47578090509050905061024051808015614b47578204905090506103605261122e565b6102e051610360525b606435610360511015611280576308c379a06103805260206103a05260146103c0527f536c697070616765207363726577656420796f750000000000000000000000006103e0526103c050606461039cfd5b6102608051610360518181830110614b475780820190509050815250601b6101405160e05260c052604060c0208054610360518181830110614b47578082019050905081555061026051601d5561036051610380526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610380a36060600461038037610300516103e052610320516104005261034051610420526102e051610440526102605161046052337f423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d610100610380a261036051600052600060005560206000f35b635e0d443f8114156116c6576004358080600081121561138957195b607f1c614b4757905050602435808060008112156113a357195b607f1c614b47579050506011805461014052600181015461016052600281015461018052506101405161016051610180516101a0516101c0516101e051600658016135fb565b6102005261022052610240526101e0526101c0526101a05261018052610160526101405261020080516102605280602001516102805280604001516102a052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a051610140516102c052610160516102e0526101805161030052610260516103205261028051610340526102a05161036052610360516103405161032051610300516102e0516102c05160065801613830565b6103c0526103e052610400526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103c080516101a05280602001516101c05280604001516101e052506101a06004356003811015614b475760200201516044356101406004356003811015614b47576020020151808202821582848304141715614b475780905090509050670de0b6b3a7640000808204905090508181830110614b475780820190509050610200526101405161016051610180516101a0516101c0516101e0516102005161022051604060046102403761020051610280526101a0516102a0526101c0516102c0526101e0516102e0526102e0516102c0516102a05161028051610260516102405160065801613d55565b6103405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610220526101a06024356003811015614b4757602002015161022051808210614b4757808203905090506001808210614b47578082039050905061024052600c5461024051808202821582848304141715614b4757809050905090506402540be40080820490509050610260526102405161026051808210614b475780820390509050670de0b6b3a7640000808202821582848304141715614b4757809050905090506101406024356003811015614b47576020020151808015614b475782049050905060005260206000f35b633df021248114156116dc573361014052611707565b63ddc1f59d8114156117025760843560a01c614b47576020608461014037600050611707565b611efc565b600154614b475760016001556004358080600081121561172357195b607f1c614b47579050506024358080600081121561173d57195b607f1c614b4757905050601180546101605260018101546101805260028101546101a052506101405161016051610180516101a0516101c0516101e05161020051600658016135fb565b610220526102405261026052610200526101e0526101c0526101a05261018052610160526101405261022080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610260516101605161028052610180516102a0526101a0516102c0526101c0516102e0526101e05161030052610200516103205261032051610300516102e0516102c0516102a0516102805160065801613830565b610380526103a0526103c052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103808051610220528060200151610240528060400151610260525060016004356003811015614b4757026006015461028052602061034060246370a082316102c052306102e0526102dc610280515afa15614b4757601f3d1115614b4757600050610340516102a05260006004610320527f23b872dd000000000000000000000000000000000000000000000000000000006103405261032060048060208461038001018260208501600060045af15050805182019150503360208261038001015260208101905030602082610380010152602081019050604435602082610380010152602081019050806103805261038090508051602001806104408284600060045af115614b475750506020610520610440516104606000610280515af115614b475760203d808211156119af57806119b1565b815b90509050610500526105008051602001806102c08284600060045af115614b4757505060006102c0511115611a13576102c08060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b60206103a060246370a0823161032052306103405261033c610280515afa15614b4757601f3d1115614b47576000506103a0516102a051808210614b4757808203905090506102a0526102206004356003811015614b475760200201516102a0516101606004356003811015614b47576020020151808202821582848304141715614b475780905090509050670de0b6b3a7640000808204905090508181830110614b475780820190509050610320526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e0516103005161032051610340516040600461036037610320516103a052610220516103c052610240516103e0526102605161040052610400516103e0516103c0516103a051610380516103605160065801613d55565b610460526103405261032052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261046051610340526102206024356003811015614b4757602002015161034051808210614b4757808203905090506001808210614b4757808203905090506103605261036051600c54808202821582848304141715614b4757809050905090506402540be40080820490509050610380526103605161038051808210614b475780820390509050670de0b6b3a7640000808202821582848304141715614b4757809050905090506101606024356003811015614b47576020020151808015614b475782049050905061036052606435610360511015611cdb576308c379a06103a05260206103c052602e6103e0527f45786368616e676520726573756c74656420696e20666577657220636f696e73610400527f207468616e206578706563746564000000000000000000000000000000000000610420526103e05060846103bcfd5b60016024356003811015614b47570260090180546103805164012a05f200808202821582848304141715614b4757809050905090506402540be40080820490509050670de0b6b3a7640000808202821582848304141715614b4757809050905090506101606024356003811015614b47576020020151808015614b47578204905090508181830110614b475780820190509050815550600060046103a0527fa9059cbb000000000000000000000000000000000000000000000000000000006103c0526103a060048060208461040001018260208501600060045af15050805182019150506101405160208261040001015260208101905061036051602082610400010152602081019050806104005261040090508051602001806104a08284600060045af115614b4757505060206105606104a0516104c0600060016024356003811015614b475702600601545af115614b475760203d80821115611e415780611e43565b815b90509050610540526105408051602001806102c08284600060045af115614b4757505060006102c0511115611ea5576102c08060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b6004356103a0526044356103c0526024356103e0526103605161040052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd9714060806103a0a261036051600052600060015560206000f35b63ecb586a5811415611f12573361014052611f3d565b632da5dc21811415611f385760843560a01c614b47576020608461014037600050611f3d565b6122d1565b600254614b47576001600255601d5461016052606036610180376101405161016051610180516101a0516101c0516101e0516102005161022051600658016135fb565b61024052610260526102805261022052610200526101e0526101c0526101a05261018052610160526101405261024080516101e0528060200151610200528060400151610220525061024060006003818352015b6101e0610240516003811015614b47576020020151600435808202821582848304141715614b47578090509050905061016051808015614b4757820490509050610260526024610240516003811015614b475760200201356102605110156120a0576308c379a06102805260206102a05260306102c0527f5769746864726177616c20726573756c74656420696e20666577657220636f696102e0527f6e73207468616e20657870656374656400000000000000000000000000000000610300526102c050608461029cfd5b61026051610180610240516003811015614b47576020020152600060046102e0527fa9059cbb00000000000000000000000000000000000000000000000000000000610300526102e060048060208461034001018260208501600060045af15050805182019150506101405160208261034001015260208101905061026051602082610340010152602081019050806103405261034090508051602001806103e08284600060045af115614b4757505060206104a06103e05161040060006001610240516003811015614b475702600601545af115614b475760203d8082111561218a578061218c565b815b90509050610480526104808051602001806102808284600060045af115614b4757505060006102805111156121ee576102808060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b5b8151600101808352811415611fd4575b50506101608051600435808210614b475780820390509050815250601b3360e05260c052604060c0208054600435808210614b47578082039050905081555061016051601d55600435610240526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610240a361018051610240526101a051610260526101c051610280526060366102a0376101605161030052337fa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d60e0610240a260006002556060610180f35b639fdaea0c8114156122e7573361014052612312565b639504fae881141561230d5760843560a01c614b47576020608461014037600050612312565b612b6d565b600354614b475760016003556101405161016051600658016136d8565b61018052610160526101405261018051610160526101405161016051610180516101a0516101c051600658016135fb565b6101e05261020052610220526101c0526101a0526101805261016052610140526101e080516101805280602001516101a05280604001516101c05250601180546101e052600181015461020052600281015461022052506101405161016051610180516101a0516101c0516101e0516102005161022051610240516101e051610260526102005161028052610220516102a052610180516102c0526101a0516102e0526101c05161030052610160516103205261032051610300516102e0516102c0516102a051610280516102605160065801613bbf565b610380526102405261022052610200526101e0526101c0526101a052610180526101605261014052610380516102405261018051610260526101a051610280526101c0516102a0526102c060006003818352015b60046102c0516003811015614b475760200201356102e05260006102e0511815612611576102606102c0516003811015614b47576020020180516102e051808210614b47578082039050905081525060006004610360527fa9059cbb00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050610140516020826103c00101526020810190506102e0516020826103c0010152602081019050806103c0526103c090508051602001806104608284600060045af115614b47575050602061052061046051610480600060016102c0516003811015614b475702600601545af115614b475760203d808211156125ac57806125ae565b815b90509050610500526105008051602001806103008284600060045af115614b475750506000610300511115612610576103008060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b5b5b815160010180835281141561248c575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516101e0516102e05261020051610300526102205161032052610260516103405261028051610360526102a05161038052610160516103a0526103a05161038051610360516103405161032051610300516102e05160065801613bbf565b610400526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610400516102c0526060366102e037600c546003808202821582848304141715614b4757809050905090506008808204905090506103405261036060006003818352015b6102c051610180610360516003811015614b47576020020151808202821582848304141715614b47578090509050905061024051808015614b47578204905090506103805260006103a052610260610360516003811015614b475760200201516103c0526103c0516103805111156127c257610380516103c051808210614b4757808203905090506103a0526127dd565b6103c05161038051808210614b4757808203905090506103a0525b610340516103a051808202821582848304141715614b4757809050905090506402540be400808204905090506102e0610360516003811015614b475760200201526001610360516003811015614b47570260090180546102e0610360516003811015614b4757602002015164012a05f200808202821582848304141715614b4757809050905090506402540be400808204905090508181830110614b475780820190509050815550610260610360516003811015614b47576020020180516102e0610360516003811015614b47576020020151808210614b4757808203905090508152505b8151600101808352811415612731575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516103205161034051610360516101e05161038052610200516103a052610220516103c052610260516103e05261028051610400526102a0516104205261016051610440526104405161042051610400516103e0516103c0516103a0516103805160065801613bbf565b6104a052610360526103405261032052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526104a05161036052601d54610380526102405161036051808210614b47578082039050905061038051808202821582848304141715614b47578090509050905061024051808015614b475782049050905060018181830110614b4757808201905090506103a05260016103a0511115614b47576064356103a0511115612a8a576308c379a06103c05260206103e0526014610400527f536c697070616765207363726577656420796f75000000000000000000000000610420526104005060646103dcfd5b61038080516103a051808210614b47578082039050905081525061038051601d55601b3360e05260c052604060c02080546103a051808210614b4757808203905090508155506103a0516103c0526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206103c0a3606060046103c0376102e05161042052610300516104405261032051610460526102c05161048052610380516104a052337f173599dbf9c6ca6f7c3b590df07ae98a45d74ff54065505141e7de6c46a624c26101006103c0a26103a051600052600060035560206000f35b63cc2b27d7811415612bc75760243580806000811215612b8957195b607f1c614b47579050506004356101405260243561016052610160516101405160065801614464565b6101c0526101e0526101c05160005260206000f35b631a4d01d2811415612bdd573361014052612c08565b63081579a5811415612c035760643560a01c614b47576020606461014037600050612c08565b612f20565b600454614b4757600160045560243580806000811215612c2457195b607f1c614b47579050506101405161016051610180516004356101a0526024356101c0526101c0516101a05160065801614464565b610220526102405261018052610160526101405261022080516101605280602001516101805250604435610160511015612cd2576308c379a06101a05260206101c05260186101e0527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610200526101e05060646101bcfd5b60016024356003811015614b47570260090180546101805164012a05f200808202821582848304141715614b4757809050905090506402540be400808204905090508181830110614b475780820190509050815550601d54600435808210614b4757808203905090506101a0526101a051601d55601b3360e05260c052604060c0208054600435808210614b4757808203905090508155506004356101c0526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a360006004610220527fa9059cbb000000000000000000000000000000000000000000000000000000006102405261022060048060208461028001018260208501600060045af15050805182019150506101405160208261028001015260208101905061016051602082610280010152602081019050806102805261028090508051602001806103208284600060045af115614b4757505060206103e061032051610340600060016024356003811015614b475702600601545af115614b475760203d80821115612e6b5780612e6d565b815b905090506103c0526103c08051602001806101c08284600060045af115614b4757505060006101c0511115612ecf576101c08060200151600082518060209013614b475780919012614b4757806020036101000a820490509050905015614b47575b6004356102205261016051610240526101a05161026052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06060610220a261016051600052600060045560206000f35b633c157e648114156130b45760206101a0600463f851a4406101405261015c6005545afa15614b4757601f3d1115614b47576000506101a051331415614b4757600f54620151808181830110614b4757808201905090504210614b475742620151808181830110614b47578082019050905060243510614b475761014051600658016136d8565b610160526101405261016051610140526004356064808202821582848304141715614b4757809050905090506101605260006004351115612fef57620f424060043510612ff2565b60005b15614b475761014051610160511015613030576101405161016051600a808202821582848304141715614b47578090509050905010614b4757613057565b61014051600a808202821582848304141715614b4757809050905090506101605111614b47575b61014051600d5561016051600e5542600f556024356010556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a658881141561315d5760206101a0600463f851a4406101405261015c6005545afa15614b4757601f3d1115614b47576000506101a051331415614b475761014051600658016136d8565b6101605261014052610160516101405261014051600d5561014051600e5542600f5542601055610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b6330c540858114156132c25760206101e0602463154aa8f561016052306101805261017c6005545afa15614b4757601f3d1115614b47576000506101e0516101405261016060006003818352015b6001610160516003811015614b475702600901546101805260006101805118156132ad576001610160516003811015614b475702600601546101a052600060046101c0527fa9059cbb000000000000000000000000000000000000000000000000000000006101e0526101c060048060208461022001018260208501600060045af15050805182019150506101405160208261022001015260208101905061018051602082610220010152602081019050806102205261022090508051602001806102c08284600060045af115614b47575050600060006102c0516102e060006101a0515af115614b475760006001610160516003811015614b475702600901555b5b81516001018083528114156131ab575b5050005b63c66106578114156132ea5760016004356003811015614b4757026006015460005260206000f35b63e2e7d2648114156133125760016004356003811015614b4757026009015460005260206000f35b63ddca3f4381141561332a57600c5460005260206000f35b635409491a81141561334257600d5460005260206000f35b63b4b577ad81141561335a57600e5460005260206000f35b632081066c81141561337257600f5460005260206000f35b631405228881141561338a5760105460005260206000f35b6306fdde0381141561342757601480610180602082540161012060006003818352015b826101205160200211156133c0576133e2565b61012051850154610120516020028501525b81516001018083528114156133ad575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b418114156134c457601880610180602082540161012060006002818352015b8261012051602002111561345d5761347f565b61012051850154610120516020028501525b815160010180835281141561344a575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6370a082318114156134f45760043560a01c614b4757601b60043560e05260c052604060c0205460005260206000f35b63dd62ed3e81141561353c5760043560a01c614b475760243560a01c614b4757601c60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6318160ddd81141561355457601d5460005260206000f35b505b60006000fd5b6101a052610140526101605261018052601b6101405160e05260c052604060c020805461018051808210614b475780820390509050815550601b6101605160e05260c052604060c0208054610180518181830110614b475780820190509050815550610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b61014052606036610160376101c060006003818352015b602061026060246370a082316101e05230610200526101fc60016101c0516003811015614b475702600601545afa15614b4757601f3d1115614b47576000506102605160016101c0516003811015614b47570260090154808210614b4757808203905090506101606101c0516003811015614b475760200201525b8151600101808352811415613612575b505060606101c0525b60006101c051116136b6576136d2565b60206101c05103610160015160206101c051036101c0526136a6565b61014051565b6101405260105461016052600e54610180526101605142101561381e57600d546101a052600f546101c0526101a051610180511115613798576101a051610180516101a051808210614b475780820390509050426101c051808210614b475780820390509050808202821582848304141715614b475780905090509050610160516101c051808210614b475780820390509050808015614b47578204905090508181830110614b4757808201905090506000526000516101405156613819565b6101a0516101a05161018051808210614b475780820390509050426101c051808210614b475780820390509050808202821582848304141715614b475780905090509050610160516101c051808210614b475780820390509050808015614b4757820490509050808210614b47578082039050905060005260005161014051565b61382e565b6101805160005260005161014051565b005b610200526101405261016052610180526101a0526101c0526101e0526060366102203761028060006003818352015b610140610280516003811015614b475760200201516101a0610280516003811015614b47576020020151808202821582848304141715614b475780905090509050670de0b6b3a764000080820490509050610220610280516003811015614b475760200201525b815160010180835281141561385f575b50506060610280525b600061028051116138ef5761390b565b60206102805103610220015160206102805103610280526138df565b61020051565b6101c0526101405261016052610180526101a0526040366101e03761024060006003818352015b602061024051026101400151610220526101e08051610220518181830110614b4757808201905090508152505b8151600101808352811415613938575b50506101e05161398d5760006000526000516101c051565b6101e051610220526101a0516003808202821582848304141715614b47578090509050905061024052610260600060ff818352015b61022051610280526102c060006003818352015b60206102c0510261014001516102a0526102805161022051808202821582848304141715614b4757809050905090506102a0516003808202821582848304141715614b475780905090509050808015614b4757820490509050610280525b81516001018083528114156139d6575b50506102205161020052610240516101e051808202821582848304141715614b475780905090509050606480820490509050610280516003808202821582848304141715614b4757809050905090508181830110614b47578082019050905061022051808202821582848304141715614b475780905090509050610240516064808210614b47578082039050905061022051808202821582848304141715614b475780905090509050606480820490509050600461028051808202821582848304141715614b4757809050905090508181830110614b475780820190509050808015614b47578204905090506102205261020051610220511115613b765760016102205161020051808210614b47578082039050905011613b71576102205160005250506000516101c051565b613ba6565b60016102005161022051808210614b47578082039050905011613ba5576102205160005250506000516101c051565b5b5b81516001018083528114156139c2575b505060006000fd5b610220526101405261016052610180526101a0526101c0526101e052610200526101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610140516102a052610160516102c052610180516102e0526101a051610300526101c051610320526101e051610340526103405161032051610300516102e0516102c0516102a05160065801613830565b6103a0526103c0526103e05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0805161024052806020015161026052806040015161028052506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610240516102a052610260516102c052610280516102e0526102005161030052610300516102e0516102c0516102a05160065801613911565b6103605261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103605160005260005161022051565b610200526101405261016052610180526101a0526101c0526101e05261016051610140511815614b475760006101605112614b47576003610160511215614b475760006101405112614b47576003610140511215614b47576101405161016051610180516101a0516101c0516101e0516102005161022051600658016136d8565b6102405261022052610200526101e0526101c0526101a05261018052610160526101405261024051610220526101405161016051610180516101a0516101c0516101e0516102005161022051610240516101a051610260526101c051610280526101e0516102a052610220516102c0526102c0516102a051610280516102605160065801613911565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516102405260603661026037610240516102c052610220516003808202821582848304141715614b4757809050905090506102e05261030060006003818352015b61014051610300511415613ee6576101805161028052613f18565b61016051610300511815613f12576101a0610300516003811015614b4757602002015161028052613f17565b613f82565b5b6102608051610280518181830110614b4757808201905090508152506102c05161024051808202821582848304141715614b475780905090509050610280516003808202821582848304141715614b475780905090509050808015614b47578204905090506102c0525b8151600101808352811415613ecb575b50506102c05161024051808202821582848304141715614b4757809050905090506064808202821582848304141715614b4757809050905090506102e0516003808202821582848304141715614b475780905090509050808015614b47578204905090506102c05261026051610240516064808202821582848304141715614b4757809050905090506102e051808015614b47578204905090508181830110614b475780820190509050610300526102405161032052610340600060ff818352015b610320516102a0526103205161032051808202821582848304141715614b4757809050905090506102c0518181830110614b475780820190509050600261032051808202821582848304141715614b475780905090509050610300518181830110614b47578082019050905061024051808210614b475780820390509050808015614b4757820490509050610320526102a051610320511115614125576001610320516102a051808210614b475780820390509050116141205761032051600052505060005161020051565b614155565b60016102a05161032051808210614b475780820390509050116141545761032051600052505060005161020051565b5b5b8151600101808352811415614054575b505060006000fd5b610200526101405261016052610180526101a0526101c0526101e05260006101605112614b47576003610160511215614b4757606036610220376101e05161028052610140516003808202821582848304141715614b4757809050905090506102a0526102c060006003818352015b610160516102c0511815614209576101806102c0516003811015614b475760200201516102405261420e565b614278565b6102208051610240518181830110614b475780820190509050815250610280516101e051808202821582848304141715614b475780905090509050610240516003808202821582848304141715614b475780905090509050808015614b4757820490509050610280525b81516001018083528114156141dd575b5050610280516101e051808202821582848304141715614b4757809050905090506064808202821582848304141715614b4757809050905090506102a0516003808202821582848304141715614b475780905090509050808015614b475782049050905061028052610220516101e0516064808202821582848304141715614b4757809050905090506102a051808015614b47578204905090508181830110614b4757808201905090506102c0526101e0516102e052610300600060ff818352015b6102e051610260526102e0516102e051808202821582848304141715614b475780905090509050610280518181830110614b47578082019050905060026102e051808202821582848304141715614b4757809050905090506102c0518181830110614b4757808201905090506101e051808210614b475780820390509050808015614b47578204905090506102e052610260516102e051111561441b5760016102e05161026051808210614b47578082039050905011614416576102e051600052505060005161020051565b61444b565b6001610260516102e051808210614b4757808203905090501161444a576102e051600052505060005161020051565b5b5b815160010180835281141561434a575b505060006000fd5b6101805261014052610160526101405161016051610180516101a051600658016136d8565b6101c0526101a0526101805261016052610140526101c0516101a052601180546101c05260018101546101e052600281015461020052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051600658016135fb565b610280526102a0526102c052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261028080516102e052806020015161030052806040015161032052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05161030051610320516101c051610340526101e0516103605261020051610380526102e0516103a052610300516103c052610320516103e0526103e0516103c0516103a05161038051610360516103405160065801613830565b61044052610460526104805261032052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610440805161022052806020015161024052806040015161026052506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610220516102a052610240516102c052610260516102e0526101a05161030052610300516102e0516102c0516102a05160065801613911565b6103605261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103605161028052601d546102a052610280516101405161028051808202821582848304141715614b4757809050905090506102a051808015614b4757820490509050808210614b4757808203905090506102c0526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e0516101a0516103005261016051610320526102205161034052610240516103605261026051610380526102c0516103a0526103a05161038051610360516103405161032051610300516006580161416e565b610400526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610400516102e052600c546003808202821582848304141715614b475780905090509050600880820490509050610300526060366103203761038060006003818352015b60006103a052610220610380516003811015614b475760200201516103c052610160516103805114156148a5576103c0516102c051808202821582848304141715614b47578090509050905061028051808015614b47578204905090506102e051808210614b4757808203905090506103a0526148ec565b6103c0516103c0516102c051808202821582848304141715614b47578090509050905061028051808015614b4757820490509050808210614b4757808203905090506103a0525b6103c051610300516103a051808202821582848304141715614b4757809050905090506402540be40080820490509050808210614b475780820390509050610320610380516003811015614b475760200201525b815160010180835281141561482d575b5050610320610160516003811015614b475760200201516101406103a0525b6103a0515160206103a051016103a0526103a06103a05110156149915761496f565b6101a0516103c052610160516103e0526103205161040052610340516104205261036051610440526102c05161046052610460516104405161042051610400516103e0516103c0516006580161416e565b6104c0526103806103a0525b6103a0515260206103a051036103a0526101406103a05110614a0f576149ee565b6104c051808210614b47578082039050905061038052610220610160516003811015614b475760200201516102e051808210614b475780820390509050670de0b6b3a7640000808202821582848304141715614b4757809050905090506101c0610160516003811015614b47576020020151808015614b47578204905090506103a052610380516001808210614b475780820390509050670de0b6b3a7640000808202821582848304141715614b4757809050905090506101c0610160516003811015614b47576020020151808015614b475782049050905061038052610380516103e0526103a05161038051808210614b4757808203905090506104005260406103c0525b60006103c05111614b2557614b41565b60206103c051036103e0015160206103c051036103c052614b15565b61018051565b600080fd5b61000a614b560361000a60003961000a614b56036000f3

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.