ETH Price: $1,600.50 (-1.91%)
 

Overview

ETH Balance

99.578296130088310182 ETH

Eth Value

$159,375.14 (@ $1,600.50/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Remove_liquidity...221906202025-04-03 19:58:2312 days ago1743710303IN
Curve.fi: ETH/rETH Pool
0 ETH0.000060590.52614346
Remove_liquidity...221633032025-03-31 0:26:3516 days ago1743380795IN
Curve.fi: ETH/rETH Pool
0 ETH0.000069160.60050296
Remove_liquidity...221415602025-03-27 23:34:2319 days ago1743118463IN
Curve.fi: ETH/rETH Pool
0 ETH0.000054150.47033726
Remove_liquidity...221411812025-03-27 22:17:4719 days ago1743113867IN
Curve.fi: ETH/rETH Pool
0 ETH0.000053970.46886419
Remove_liquidity...221370872025-03-27 8:35:1119 days ago1743064511IN
Curve.fi: ETH/rETH Pool
0 ETH0.000057560.5
Add_liquidity221352372025-03-27 2:23:1120 days ago1743042191IN
Curve.fi: ETH/rETH Pool
0 ETH0.000102140.66625054
Add_liquidity221322692025-03-26 16:26:2320 days ago1743006383IN
Curve.fi: ETH/rETH Pool
0 ETH0.000225941.47383838
Remove_liquidity...221103512025-03-23 15:00:3523 days ago1742742035IN
Curve.fi: ETH/rETH Pool
0 ETH0.000104450.89833495
Remove_liquidity...219878572025-03-06 12:29:5940 days ago1741264199IN
Curve.fi: ETH/rETH Pool
0 ETH0.000246192.13809716
Remove_liquidity...219150042025-02-24 8:30:5950 days ago1740385859IN
Curve.fi: ETH/rETH Pool
0 ETH0.000230292
Remove_liquidity...218370832025-02-13 10:51:4761 days ago1739443907IN
Curve.fi: ETH/rETH Pool
0 ETH0.000103180.89613335
Exchange217644312025-02-03 7:16:1171 days ago1738566971IN
Curve.fi: ETH/rETH Pool
0 ETH0.0015070913.34283275
Exchange217644262025-02-03 7:15:1171 days ago1738566911IN
Curve.fi: ETH/rETH Pool
0 ETH0.0014532712.34812024
Remove_liquidity...216117632025-01-12 23:42:1193 days ago1736725331IN
Curve.fi: ETH/rETH Pool
0 ETH0.000216561.88077858
Remove_liquidity...215250112024-12-31 21:03:23105 days ago1735679003IN
Curve.fi: ETH/rETH Pool
0 ETH0.000744196.46151878
Remove_liquidity212650462024-11-25 13:23:11141 days ago1732540991IN
Curve.fi: ETH/rETH Pool
0 ETH0.0017030117.39153464
Remove_liquidity...212562662024-11-24 7:58:47142 days ago1732435127IN
Curve.fi: ETH/rETH Pool
0 ETH0.001093919.5
Remove_liquidity...211568012024-11-10 10:54:35156 days ago1731236075IN
Curve.fi: ETH/rETH Pool
0 ETH0.001117849.61378874
Remove_liquidity...208805992024-10-02 21:47:23195 days ago1727905643IN
Curve.fi: ETH/rETH Pool
0 ETH0.000947048.14485425
Remove_liquidity...206995622024-09-07 15:16:35220 days ago1725722195IN
Curve.fi: ETH/rETH Pool
0 ETH0.000216041.87581172
Remove_liquidity206432552024-08-30 18:42:11228 days ago1725043331IN
Curve.fi: ETH/rETH Pool
0 ETH0.000210672.5
Add_liquidity206128682024-08-26 12:48:59232 days ago1724676539IN
Curve.fi: ETH/rETH Pool
0.000001 ETH0.000320722.38153566
Add_liquidity205974982024-08-24 9:14:59234 days ago1724490899IN
Curve.fi: ETH/rETH Pool
0.000031 ETH0.000127180.9442374
Remove_liquidity205501272024-08-17 18:27:35241 days ago1723919255IN
Curve.fi: ETH/rETH Pool
0 ETH0.000127241.3
Add_liquidity205465162024-08-17 6:20:35241 days ago1723875635IN
Curve.fi: ETH/rETH Pool
0.00001 ETH0.000140131.00897442
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer222600602025-04-13 12:30:112 days ago1744547411
Curve.fi: ETH/rETH Pool
0.14173385 ETH
Transfer222298032025-04-09 7:18:116 days ago1744183091
Curve.fi: ETH/rETH Pool
0.01019451 ETH
Exchange222033462025-04-05 14:35:4710 days ago1743863747
Curve.fi: ETH/rETH Pool
0.0035368 ETH
Transfer221906202025-04-03 19:58:2312 days ago1743710303
Curve.fi: ETH/rETH Pool
0.24981781 ETH
Transfer221633032025-03-31 0:26:3516 days ago1743380795
Curve.fi: ETH/rETH Pool
0.09291154 ETH
Transfer221415602025-03-27 23:34:2319 days ago1743118463
Curve.fi: ETH/rETH Pool
0.0959568 ETH
Transfer221411812025-03-27 22:17:4719 days ago1743113867
Curve.fi: ETH/rETH Pool
0.01066212 ETH
Transfer221370872025-03-27 8:35:1119 days ago1743064511
Curve.fi: ETH/rETH Pool
0.00020689 ETH
Exchange221352272025-03-27 2:21:1120 days ago1743042071
Curve.fi: ETH/rETH Pool
0.19969751 ETH
Exchange221322592025-03-26 16:24:2320 days ago1743006263
Curve.fi: ETH/rETH Pool
0.24994999 ETH
Exchange221145712025-03-24 5:08:3522 days ago1742792915
Curve.fi: ETH/rETH Pool
0.67515834 ETH
Transfer221145702025-03-24 5:08:2322 days ago1742792903
Curve.fi: ETH/rETH Pool
0.6741161 ETH
Exchange221103522025-03-23 15:00:4723 days ago1742742047
Curve.fi: ETH/rETH Pool
1.03658778 ETH
Exchange221103512025-03-23 15:00:3523 days ago1742742035
Curve.fi: ETH/rETH Pool
12.41293668 ETH
Transfer221103512025-03-23 15:00:3523 days ago1742742035
Curve.fi: ETH/rETH Pool
26.40212664 ETH
Transfer219944902025-03-07 10:45:3539 days ago1741344335
Curve.fi: ETH/rETH Pool
0.00316805 ETH
Transfer219906792025-03-06 21:57:5940 days ago1741298279
Curve.fi: ETH/rETH Pool
0.08215463 ETH
Transfer219878572025-03-06 12:29:5940 days ago1741264199
Curve.fi: ETH/rETH Pool
0.01177897 ETH
Transfer219161242025-02-24 12:16:4750 days ago1740399407
Curve.fi: ETH/rETH Pool
0.00907115 ETH
Transfer219150042025-02-24 8:30:5950 days ago1740385859
Curve.fi: ETH/rETH Pool
0.00135331 ETH
Transfer219071102025-02-23 6:03:1151 days ago1740290591
Curve.fi: ETH/rETH Pool
0.01558318 ETH
Transfer218706992025-02-18 3:53:3556 days ago1739850815
Curve.fi: ETH/rETH Pool
0.00190971 ETH
Transfer218370832025-02-13 10:51:4761 days ago1739443907
Curve.fi: ETH/rETH Pool
0.00118768 ETH
Exchange218175942025-02-10 17:24:5964 days ago1739208299
Curve.fi: ETH/rETH Pool
1.10339046 ETH
Exchange218105732025-02-09 17:53:2365 days ago1739123603
Curve.fi: ETH/rETH Pool
0.01014755 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.12

Optimization Enabled:
N/A

Other Settings:
berlin EvmVersion, None license

Contract Source Code (Vyper language format)

# @version 0.2.12
"""
@title ETH/rETH StableSwap
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2021 - all rights reserved
"""

from vyper.interfaces import ERC20

# External Contracts
interface rETH:
    def getExchangeRate() -> uint256: view


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


# Events
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

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


# These constants must be set prior to compiling
N_COINS: constant(int128) = 2

# fixed constants
FEE_DENOMINATOR: constant(uint256) = 10 ** 10
LENDING_PRECISION: constant(uint256) = 10 ** 18
PRECISION: constant(uint256) = 10 ** 18  # The precision to convert to

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)
lp_token: public(address)

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,
    _A: uint256,
    _fee: uint256,
    _admin_fee: uint256,
):
    """
    @notice Contract constructor
    @param _owner Contract owner address
    @param _coins Addresses of ERC20 contracts of wrapped coins
    @param _pool_token Address of the token representing LP share
    @param _A Amplification coefficient multiplied by n * (n - 1)
    @param _fee Fee to charge for exchanges
    @param _admin_fee Admin fee
    """

    assert _coins[0] == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
    assert _coins[1] != 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


@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 _stored_rates() -> uint256[N_COINS]:
    return [
        convert(PRECISION, uint256),
        rETH(self.coins[1]).getExchangeRate()
    ]


@view
@internal
def _xp(rates: uint256[N_COINS]) -> uint256[N_COINS]:
    result: uint256[N_COINS] = rates
    for i in range(N_COINS):
        result[i] = result[i] * self.balances[i] / PRECISION
    return result


@internal
@pure
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(rates: uint256[N_COINS], _balances: uint256[N_COINS], amp: uint256) -> uint256:
    result: uint256[N_COINS] = rates
    for i in range(N_COINS):
        result[i] = result[i] * _balances[i] / PRECISION
    return self.get_D(result, 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
    """
    D: uint256 = self.get_D(self._xp(self._stored_rates()), self._A())
    # 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 = ERC20(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()
    rates: uint256[N_COINS] = self._stored_rates()
    _balances: uint256[N_COINS] = self.balances
    D0: uint256 = self.get_D_mem(rates, _balances, amp)
    for i in range(N_COINS):
        _amount: uint256 = amounts[i]
        if is_deposit:
            _balances[i] += _amount
        else:
            _balances[i] -= _amount
    D1: uint256 = self.get_D_mem(rates, _balances, amp)
    token_amount: uint256 = ERC20(self.lp_token).totalSupply()
    diff: uint256 = 0
    if is_deposit:
        diff = D1 - D0
    else:
        diff = D0 - D1
    return diff * token_amount / D0

@payable
@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
    amp: uint256 = self._A()
    rates: uint256[N_COINS] = self._stored_rates()
    _lp_token: address = self.lp_token
    token_supply: uint256 = ERC20(_lp_token).totalSupply()

    # Initial invariant
    D0: uint256 = 0
    old_balances: uint256[N_COINS] = self.balances
    if token_supply != 0:
        D0 = self.get_D_mem(rates, old_balances, amp)

    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        if token_supply == 0:
            assert amounts[i] > 0
        new_balances[i] += amounts[i]

    # 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
    D2: uint256 = D1
    fees: uint256[N_COINS] = empty(uint256[N_COINS])
    mint_amount: uint256 = 0
    if token_supply != 0:
        # Only account for fees if we are not the first to deposit
        _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
        _admin_fee: uint256 = self.admin_fee
        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(rates, 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
    assert msg.value == amounts[0]
    if amounts[1] > 0:
        assert ERC20(self.coins[1]).transferFrom(msg.sender, self, amounts[1])

    # 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:
    # 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:
    # dx and dy in c-units
    rates: uint256[N_COINS] = self._stored_rates()
    xp: uint256[N_COINS] = self._xp(rates)

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


@view
@external
def get_dx(i: int128, j: int128, dy: uint256) -> uint256:
    # dx and dy in c-units
    rates: uint256[N_COINS] = self._stored_rates()
    xp: uint256[N_COINS] = self._xp(rates)

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


@payable
@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] = self._stored_rates()

    xp: uint256[N_COINS] = self._xp(rates)
    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
    dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR

    self.balances[i] = x * PRECISION / rates[i]
    self.balances[j] = (y + (dy_fee - dy_admin_fee)) * PRECISION / rates[j]

    dy = (dy - dy_fee) * PRECISION / rates[j]
    assert dy >= min_dy, "Exchange resulted in fewer coins than expected"

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

    log TokenExchange(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 = ERC20(_lp_token).totalSupply()
    amounts: uint256[N_COINS] = empty(uint256[N_COINS])

    for i in range(N_COINS):
        _balance: uint256 = self.balances[i]
        value: uint256 = _balance * _amount / total_supply
        assert value >= min_amounts[i], "Withdrawal resulted in fewer coins than expected"
        self.balances[i] = _balance - value
        amounts[i] = value
        if i == 0:
            raw_call(msg.sender, b"", value=value)
        else:
            assert ERC20(self.coins[1]).transfer(msg.sender, value)

    CurveToken(_lp_token).burnFrom(msg.sender, _amount)  # Will raise if not enough

    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
    amp: uint256 = self._A()
    rates: uint256[N_COINS] = self._stored_rates()
    old_balances: uint256[N_COINS] = self.balances
    D0: uint256 = self.get_D_mem(rates, old_balances, amp)

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

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

    lp_token: address = self.lp_token
    token_supply: uint256 = ERC20(lp_token).totalSupply()
    token_amount: uint256 = (D0 - D2) * token_supply / D0
    assert token_amount != 0
    assert token_amount <= max_burn_amount, "Slippage screwed you"

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

    if amounts[0] != 0:
        raw_call(msg.sender, b"", value=amounts[0])
    if amounts[1] != 0:
        assert ERC20(self.coins[1]).transfer(msg.sender, amounts[1])

    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) -> (uint256, uint256):
    # First, need to calculate
    # * Get current D
    # * Solve Eqn against y_i for D - _token_amount
    amp: uint256 = self._A()
    rates: uint256[N_COINS] = self._stored_rates()
    xp: uint256[N_COINS] = self._xp(rates)
    D0: uint256 = self.get_D(xp, amp)

    total_supply: uint256 = ERC20(self.lp_token).totalSupply()

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

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

    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] -= _fee * dx_expected / FEE_DENOMINATOR

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

    return dy, dy_0 - dy


@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
    """
    return self._calc_withdraw_one_coin(_token_amount, i)[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

    dy: uint256 = 0
    dy_fee: uint256 = 0
    dy, dy_fee = self._calc_withdraw_one_coin(_token_amount, i)
    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

    if i == 0:
        raw_call(msg.sender, b"", value=dy)
    else:
        assert ERC20(self.coins[1]).transfer(msg.sender, dy)

    log RemoveLiquidityOne(msg.sender, _token_amount, dy)

    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
@nonreentrant('lock')
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
@nonreentrant('lock')
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:
    if i == 0:
        return self.balance - self.balances[0]
    return ERC20(self.coins[i]).balanceOf(self) - self.balances[i]


@external
@nonreentrant('lock')
def withdraw_admin_fees():
    assert msg.sender == self.owner  # dev: only owner

    amount: uint256 = self.balance - self.balances[0]
    if amount != 0:
        raw_call(msg.sender, b"", value=amount)

    amount = ERC20(self.coins[1]).balanceOf(self) - self.balances[1]
    if amount != 0:
        assert ERC20(self.coins[1]).transfer(msg.sender, amount)


@external
@nonreentrant('lock')
def donate_admin_fees():
    assert msg.sender == self.owner  # dev: only owner
    for i in range(N_COINS):
        if i == 0:
            self.balances[0] = self.balance
        else:
            self.balances[i] = ERC20(self.coins[i]).balanceOf(self)


@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 Security Audit

Contract ABI

API
[{"name":"TokenExchange","inputs":[{"name":"buyer","type":"address","indexed":true},{"name":"sold_id","type":"int128","indexed":false},{"name":"tokens_sold","type":"uint256","indexed":false},{"name":"bought_id","type":"int128","indexed":false},{"name":"tokens_bought","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amount","type":"uint256","indexed":false},{"name":"coin_amount","type":"uint256","indexed":false}],"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":"_A","type":"uint256"},{"name":"_fee","type":"uint256"},{"name":"_admin_fee","type":"uint256"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10374},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10336},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1026082},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"amounts","type":"uint256[2]"},{"name":"is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}],"gas":4025892},{"stateMutability":"payable","type":"function","name":"add_liquidity","inputs":[{"name":"amounts","type":"uint256[2]"},{"name":"min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":6196688},{"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":2465955},{"stateMutability":"view","type":"function","name":"get_dx","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2465989},{"stateMutability":"payable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"},{"name":"min_dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2666248},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_amount","type":"uint256"},{"name":"min_amounts","type":"uint256[2]"}],"outputs":[{"name":"","type":"uint256[2]"}],"gas":242315},{"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":6234504},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_token_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}],"gas":1192},{"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":3945455},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[],"gas":159369},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[],"gas":154830},{"stateMutability":"nonpayable","type":"function","name":"commit_new_fee","inputs":[{"name":"new_fee","type":"uint256"},{"name":"new_admin_fee","type":"uint256"}],"outputs":[],"gas":112788},{"stateMutability":"nonpayable","type":"function","name":"apply_new_fee","inputs":[],"outputs":[],"gas":160672},{"stateMutability":"nonpayable","type":"function","name":"revert_new_parameters","inputs":[],"outputs":[],"gas":22922},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"_owner","type":"address"}],"outputs":[],"gas":76960},{"stateMutability":"nonpayable","type":"function","name":"apply_transfer_ownership","inputs":[],"outputs":[],"gas":122840},{"stateMutability":"nonpayable","type":"function","name":"revert_transfer_ownership","inputs":[],"outputs":[],"gas":23012},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":10312},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[],"gas":112843},{"stateMutability":"nonpayable","type":"function","name":"donate_admin_fees","inputs":[],"outputs":[],"gas":140003},{"stateMutability":"nonpayable","type":"function","name":"kill_me","inputs":[],"outputs":[],"gas":40325},{"stateMutability":"nonpayable","type":"function","name":"unkill_me","inputs":[],"outputs":[],"gas":23162},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":3247},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3277},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3198},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3228},{"stateMutability":"view","type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3258},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3288},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3318},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3348},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3378},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3408},{"stateMutability":"view","type":"function","name":"admin_actions_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3438},{"stateMutability":"view","type":"function","name":"transfer_ownership_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3468},{"stateMutability":"view","type":"function","name":"future_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3498},{"stateMutability":"view","type":"function","name":"future_admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3528},{"stateMutability":"view","type":"function","name":"future_owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3558}]

60e061483b61014039602061483b60c03960c05160a01c1561002057600080fd5b6020602061483b0160c03960c05160a01c1561003b57600080fd5b6020604061483b0160c03960c05160a01c1561005657600080fd5b6020606061483b0160c03960c05160a01c1561007157600080fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee610160511461009457600080fd5b600061018051186100a457600080fd5b600060c052602060c020610160518155610180516001820155506101c051606480820282158284830414176100d857600080fd5b809050905090506006556101c051606480820282158284830414176100fc57600080fd5b809050905090506007556101e051600255610200516003556101405160045542624f1a0081818301101561012f57600080fd5b808201905090506010556101a05160055561482356600436101561000d5761311d565b600035601c52600051630b4c7e4d81141561082a576011541561002f57600080fd5b6001601155600f541561004157600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506005546101a052602061024060046318160ddd6101e0526101fc6101a0515afa6100c357600080fd5b601f3d116100d057600080fd5b600050610240516101c05260006101e05260018060c052602060c020546102005260018160c052602060c0200154610220525060006101c05118156101a1576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261018051610260526102005161028052610220516102a052610140516102c0526102c0516102a05161028051610260516102405160065801613745565b6103205261022052610200526101e0526101c0526101a052610180526101605261014052610320516101e0525b6102005161024052610220516102605261028060006002818352015b6101c05115156101eb576000600461028051600281106101dc57600080fd5b6020020135116101eb57600080fd5b61024061028051600281106101ff57600080fd5b6020020180516004610280516002811061021857600080fd5b602002013581818301101561022c57600080fd5b808201905090508152505b81516001018083528114156101bd575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610180516102c052610240516102e0526102605161030052610140516103205261032051610300516102e0516102c0516102a05160065801613745565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526101e051610280511161030457600080fd5b610280516102a0526060366102c03760006101c051181561067d576002546002808202821582848304141761033857600080fd5b80905090509050600480820490509050610320526003546103405261036060006002818352015b61028051610200610360516002811061037757600080fd5b6020020151808202821582848304141761039057600080fd5b809050905090506101e05180806103a657600080fd5b8204905090506103805260006103a05261024061036051600281106103ca57600080fd5b6020020151610380511115610413576103805161024061036051600281106103f157600080fd5b60200201518082101561040357600080fd5b808203905090506103a052610449565b610240610360516002811061042757600080fd5b6020020151610380518082101561043d57600080fd5b808203905090506103a0525b610320516103a051808202821582848304141761046557600080fd5b809050905090506402540be400808204905090506102c0610360516002811061048d57600080fd5b602002015261024061036051600281106104a657600080fd5b60200201516102c061036051600281106104bf57600080fd5b60200201516103405180820282158284830414176104dc57600080fd5b809050905090506402540be40080820490509050808210156104fd57600080fd5b80820390509050610360516002811061051557600080fd5b600160c052602060c0200155610240610360516002811061053557600080fd5b6020020180516102c0610360516002811061054f57600080fd5b60200201518082101561056157600080fd5b808203905090508152505b815160010180835281141561035f575b5050610140610360525b610360515160206103605101610360526103606103605110156105a857610586565b6101605161038052610180516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a0516103805160065801613745565b61046052610340610360525b610360515260206103605103610360526101406103605110151561061c576105f9565b610460516102a0526101c0516102a0516101e0518082101561063d57600080fd5b80820390509050808202821582848304141761065857600080fd5b809050905090506101e051808061066e57600080fd5b820490509050610300526106a0565b600160c052602060c0206102405181556102605160018201555061028051610300525b60443561030051101515156106f4576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b600435341461070257600080fd5b600060243511156107695760206103e060646323b872dd61032052336103405230610360526024356103805261033c60006001600060c052602060c02001545af161074c57600080fd5b601f3d1161075957600080fd5b6000506103e05161076957600080fd5b60206103c060446340c10f19610320523361034052610300516103605261033c60006101a0515af161079a57600080fd5b601f3d116107a757600080fd5b6000506103c05060406004610320376102c051610360526102e05161038052610280516103a0526101c051610300518181830110156107e557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600060115560206000f35b633df02124811415610e28576011541561084357600080fd5b60016011556004358080600081121561085857195b607f1c1561086557600080fd5b9050506024358080600081121561087857195b607f1c1561088557600080fd5b905050600f541561089557600080fd5b6101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a052506101806004356002811061093857600080fd5b60200201516044356101406004356002811061095357600080fd5b6020020151808202821582848304141761096c57600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561099257600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160406004610200376101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110610a2957600080fd5b60200201516101e05180821015610a3f57600080fd5b80820390509050600180821015610a5557600080fd5b8082039050905061020052610200516002548082028215828483041417610a7b57600080fd5b809050905090506402540be4008082049050905061022052610220516003548082028215828483041417610aae57600080fd5b809050905090506402540be40080820490509050610240526101c051670de0b6b3a76400008082028215828483041417610ae757600080fd5b8090509050905061014060043560028110610b0157600080fd5b60200201518080610b1157600080fd5b82049050905060043560028110610b2757600080fd5b600160c052602060c02001556101e051610220516102405180821015610b4c57600080fd5b80820390509050818183011015610b6257600080fd5b80820190509050670de0b6b3a76400008082028215828483041417610b8657600080fd5b8090509050905061014060243560028110610ba057600080fd5b60200201518080610bb057600080fd5b82049050905060243560028110610bc657600080fd5b600160c052602060c0200155610200516102205180821015610be757600080fd5b80820390509050670de0b6b3a76400008082028215828483041417610c0b57600080fd5b8090509050905061014060243560028110610c2557600080fd5b60200201518080610c3557600080fd5b820490509050610200526064356102005110151515610cb8576308c379a061026052602061028052602e6102a0527f45786368616e676520726573756c74656420696e20666577657220636f696e736102c0527f207468616e2065787065637465640000000000000000000000000000000000006102e0526102a050608461027cfd5b6001600060c052602060c0200154610260526004351515610d34576044353414610ce157600080fd5b6020610320604463a9059cbb61028052336102a052610200516102c05261029c6000610260515af1610d1257600080fd5b601f3d11610d1f57600080fd5b60005061032051610d2f57600080fd5b610dd1565b3415610d3f57600080fd5b602061034060646323b872dd61028052336102a052306102c0526044356102e05261029c6000610260515af1610d7457600080fd5b601f3d11610d8157600080fd5b60005061034051610d9157600080fd5b6000610280526102808051602001806102c08284600060045af1610db457600080fd5b5050600060006102c0516102e061020051335af1610dd157600080fd5b600435610280526044356102a0526024356102c052610200516102e052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610280a261020051600052600060115560206000f35b3415610e3357600080fd5b63f446c1d0811415610e625760065801613123565b610140526101405160648082049050905060005260206000f35b6376a2f0f0811415610e885760065801613123565b610140526101405160005260206000f35b63bb7b8b808114156110d15761014051600658016132bb565b61016052610180526101405261016080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101a0516101e0526101c05161020052610200516101e0516006580161335b565b61026052610280526101c0526101a05261018052610160526101405261026080516102a05280602001516102c052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c05160065801613123565b6102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610300526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516102a051610320526102c0516103405261030051610360526103605161034051610320516006580161344b565b6103c052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103c0516101405260206101e060046318160ddd6101805261019c6005545afa61107357600080fd5b601f3d1161108057600080fd5b6000506101e0516101605261014051670de0b6b3a764000080820282158284830414176110ac57600080fd5b809050905090506101605180806110c257600080fd5b82049050905060005260206000f35b63ed8e84f38114156113f45760443560011c156110ed57600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c051610260526101405161028052610280516102605161024051610220516102005160065801613745565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261020060006002818352015b6004610200516002811061120857600080fd5b60200201356102205260443515611255576101a0610200516002811061122d57600080fd5b6020020180516102205181818301101561124657600080fd5b8082019050905081525061128b565b6101a0610200516002811061126957600080fd5b602002018051610220518082101561128057600080fd5b808203905090508152505b81516001018083528114156111f5575b50506101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a051610260526101c05161028052610140516102a0526102a0516102805161026051610240516102205160065801613745565b61030052610200526101e0526101c0526101a052610180526101605261014052610300516102005260206102a060046318160ddd6102405261025c6005545afa61134757600080fd5b601f3d1161135457600080fd5b6000506102a051610220526000610240526044351561139257610200516101e0518082101561138257600080fd5b80820390509050610240526113b3565b6101e05161020051808210156113a757600080fd5b80820390509050610240525b610240516102205180820282158284830414176113cf57600080fd5b809050905090506101e05180806113e557600080fd5b82049050905060005260206000f35b635e0d443f81141561169a576004358080600081121561141057195b607f1c1561141d57600080fd5b9050506024358080600081121561143057195b607f1c1561143d57600080fd5b9050506101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a05250610180600435600281106114e357600080fd5b6020020151604435610140600435600281106114fe57600080fd5b6020020151808202821582848304141761151757600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561153d57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160406004610200376101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e052610180602435600281106115d457600080fd5b60200201516101e051808210156115ea57600080fd5b808203905090506102005260025461020051808202821582848304141761161057600080fd5b809050905090506402540be400808204905090506102205261020051610220518082101561163d57600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761166157600080fd5b809050905090506101406024356002811061167b57600080fd5b6020020151808061168b57600080fd5b82049050905060005260206000f35b6367df02ca81141561194857600435808060008112156116b657195b607f1c156116c357600080fd5b905050602435808060008112156116d657195b607f1c156116e357600080fd5b9050506101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a052506101806024356002811061178957600080fd5b60200201516044356402540be40080820282158284830414176117ab57600080fd5b809050905090506402540be400600254808210156117c857600080fd5b8082039050905080806117da57600080fd5b820490509050610140602435600281106117f357600080fd5b6020020151808202821582848304141761180c57600080fd5b80905090509050670de0b6b3a7640000808204905090508082101561183057600080fd5b808203905090506101c0526101405161016051610180516101a0516101c0516101e05160243561020052600435610220526101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101e051610180600435600281106118d157600080fd5b6020020151808210156118e357600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761190757600080fd5b809050905090506101406004356002811061192157600080fd5b6020020151808061193157600080fd5b820490509050610200526102005160005260206000f35b635b36389c811415611c61576011541561196157600080fd5b60016011556005546101405260206101e060046318160ddd6101805261019c610140515afa61198f57600080fd5b601f3d1161199c57600080fd5b6000506101e05161016052604036610180376101c060006002818352015b6101c051600281106119cb57600080fd5b600160c052602060c02001546101e0526101e05160043580820282158284830414176119f657600080fd5b80905090509050610160518080611a0c57600080fd5b8204905090506102005260246101c05160028110611a2957600080fd5b60200201356102005110151515611aa4576308c379a0610220526020610240526030610260527f5769746864726177616c20726573756c74656420696e20666577657220636f69610280527f6e73207468616e206578706563746564000000000000000000000000000000006102a05261026050608461023cfd5b6101e0516102005180821015611ab957600080fd5b808203905090506101c05160028110611ad157600080fd5b600160c052602060c0200155610200516101806101c05160028110611af557600080fd5b60200201526101c0511515611b49576000610220526102208051602001806102608284600060045af1611b2757600080fd5b5050600060006102605161028061020051335af1611b4457600080fd5b611ba1565b60206102c0604463a9059cbb610220523361024052610200516102605261023c60006001600060c052602060c02001545af1611b8457600080fd5b601f3d11611b9157600080fd5b6000506102c051611ba157600080fd5b81516001018083528114156119ba575b5050602061026060446379cc67906101c052336101e052600435610200526101dc6000610140515af1611be357600080fd5b601f3d11611bf057600080fd5b60005061026050610180516101c0526101a0516101e052604036610200376101605160043580821015611c2257600080fd5b8082039050905061024052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101c0a260006011556040610180f35b63e31032738114156123ed5760115415611c7a57600080fd5b6001601155600f5415611c8c57600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c051610260526101405161028052610280516102605161024051610220516102005160065801613745565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101a051610200526101c0516102205261024060006002818352015b6102006102405160028110611db857600080fd5b60200201805160046102405160028110611dd157600080fd5b602002013580821015611de357600080fd5b808203905090508152505b8151600101808352811415611da4575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101805161028052610200516102a052610220516102c052610140516102e0526102e0516102c0516102a051610280516102605160065801613745565b610340526102405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610240526040366102603760025460028082028215828483041417611eb957600080fd5b809050905090506004808204905090506102a0526003546102c0526102e060006002818352015b610240516101a06102e05160028110611ef857600080fd5b60200201518082028215828483041417611f1157600080fd5b809050905090506101e0518080611f2757600080fd5b820490509050610300526102006102e05160028110611f4557600080fd5b60200201516103205260006103405261032051610300511115611f8757610300516103205180821015611f7757600080fd5b8082039050905061034052611fa8565b610320516103005180821015611f9c57600080fd5b80820390509050610340525b6102a051610340518082028215828483041417611fc457600080fd5b809050905090506402540be400808204905090506102606102e05160028110611fec57600080fd5b6020020152610320516102606102e0516002811061200957600080fd5b60200201516102c051808202821582848304141761202657600080fd5b809050905090506402540be400808204905090508082101561204757600080fd5b808203905090506102e0516002811061205f57600080fd5b600160c052602060c0200155610320516102606102e0516002811061208357600080fd5b60200201518082101561209557600080fd5b808203905090506102006102e051600281106120b057600080fd5b60200201525b8151600101808352811415611ee0575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05161016051610300526101805161032052610200516103405261022051610360526101405161038052610380516103605161034051610320516103005160065801613745565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e0526005546103005260206103a060046318160ddd6103405261035c610300515afa6121b257600080fd5b601f3d116121bf57600080fd5b6000506103a051610320526101e0516102e051808210156121df57600080fd5b808203905090506103205180820282158284830414176121fe57600080fd5b809050905090506101e051808061221457600080fd5b820490509050610340526000610340511861222e57600080fd5b6044356103405111151515612282576308c379a06103605260206103805260146103a0527f536c697070616765207363726577656420796f750000000000000000000000006103c0526103a050606461037cfd5b602061040060446379cc6790610360523361038052610340516103a05261037c6000610300515af16122b357600080fd5b601f3d116122c057600080fd5b6000506104005060006004351815612311576000610360526103608051602001806103a08284600060045af16122f557600080fd5b5050600060006103a0516103c0600435335af161231157600080fd5b60006024351815612373576020610400604463a9059cbb6103605233610380526024356103a05261037c60006001600060c052602060c02001545af161235657600080fd5b601f3d1161236357600080fd5b6000506104005161237357600080fd5b6040600461036037610260516103a052610280516103c052610240516103e0526103205161034051808210156123a857600080fd5b8082039050905061040052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610360a261034051600052600060115560206000f35b63cc2b27d781141561246d576024358080600081121561240957195b607f1c1561241657600080fd5b9050506004356101405260243561016052610160516101405160065801614057565b6101c0526101e0526101c080808080516102005250506020810190508080805161022052505050506102005160005260206000f35b631a4d01d281141561272c576011541561248657600080fd5b60016011556024358080600081121561249b57195b607f1c156124a857600080fd5b905050600f54156124b857600080fd5b604036610140376101405161016051600435610180526024356101a0526101a0516101805160065801614057565b61020052610220526101605261014052610200808080805161024052505060208101905080808051610260525050505061024080516101405280602001516101605250604435610140511015151561257d576308c379a06101805260206101a05260186101c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006101e0526101c050606461019cfd5b6024356002811061258d57600080fd5b600160c052602060c020018054610140516101605160035480820282158284830414176125b957600080fd5b809050905090506402540be400808204905090508181830110156125dc57600080fd5b80820190509050808210156125f057600080fd5b80820390509050815550602061022060446379cc679061018052336101a0526004356101c05261019c60006005545af161262957600080fd5b601f3d1161263657600080fd5b60005061022050602435151561268b576000610180526101808051602001806101c08284600060045af161266957600080fd5b5050600060006101c0516101e061014051335af161268657600080fd5b6126e3565b6020610220604463a9059cbb61018052336101a052610140516101c05261019c60006001600060c052602060c02001545af16126c657600080fd5b601f3d116126d357600080fd5b600050610220516126e357600080fd5b60043561018052610140516101a052337f9e96dd3b997a2a257eec4df9bb6eaf626e206df5f543bd963682d143300be3106040610180a261014051600052600060115560206000f35b633c157e648114156128cd57600454331461274657600080fd5b6008546201518081818301101561275c57600080fd5b8082019050905042101561276f57600080fd5b426201518081818301101561278357600080fd5b80820190509050602435101561279857600080fd5b6101405160065801613123565b61016052610140526101605161014052600435606480820282158284830414176127ce57600080fd5b8090509050905061016052600060043511156127f157620f4240600435106127f4565b60005b6127fd57600080fd5b61014051610160511015612840576101405161016051600a808202821582848304141761282957600080fd5b80905090509050101561283b57600080fd5b612870565b61014051600a808202821582848304141761285a57600080fd5b8090509050905061016051111561287057600080fd5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a65888114156129505760045433146128e757600080fd5b6101405160065801613123565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a1467811415612a0c57600454331461296a57600080fd5b600a541561297757600080fd5b64012a05f200600435111561298b57600080fd5b6402540be400602435111561299f57600080fd5b426203f4808181830110156129b357600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97811415612ab55760115415612a2557600080fd5b60016011556004543314612a3857600080fd5b600a54421015612a4757600080fd5b6000600a5418612a5657600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a16000601155005b63226840fb811415612ad6576004543314612acf57600080fd5b6000600a55005b636b441a40811415612b685760043560a01c15612af257600080fd5b6004543314612b0057600080fd5b600b5415612b0d57600080fd5b426203f480818183011015612b2157600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae811415612bf65760115415612b8157600080fd5b60016011556004543314612b9457600080fd5b600b54421015612ba357600080fd5b6000600b5418612bb257600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a26000601155005b6386fbf193811415612c17576004543314612c1057600080fd5b6000600b55005b63e2e7d264811415612ce1576004351515612c555747600160c052602060c0205480821015612c4557600080fd5b8082039050905060005260206000f35b60206101c060246370a0823161014052306101605261015c60043560028110612c7d57600080fd5b600060c052602060c02001545afa612c9457600080fd5b601f3d11612ca157600080fd5b6000506101c05160043560028110612cb857600080fd5b600160c052602060c020015480821015612cd157600080fd5b8082039050905060005260206000f35b6330c54085811415612e535760115415612cfa57600080fd5b60016011556004543314612d0d57600080fd5b47600160c052602060c0205480821015612d2657600080fd5b80820390509050610140526000610140511815612d7d576000610160526101608051602001806101a08284600060045af1612d6057600080fd5b5050600060006101a0516101c061014051335af1612d7d57600080fd5b60206101e060246370a0823161016052306101805261017c6001600060c052602060c02001545afa612dae57600080fd5b601f3d11612dbb57600080fd5b6000506101e0516001600160c052602060c020015480821015612ddd57600080fd5b80820390509050610140526000610140511815612e4c576020610200604463a9059cbb610160523361018052610140516101a05261017c60006001600060c052602060c02001545af1612e2f57600080fd5b601f3d11612e3c57600080fd5b60005061020051612e4c57600080fd5b6000601155005b63524c3901811415612f315760115415612e6c57600080fd5b60016011556004543314612e7f57600080fd5b61014060006002818352015b610140511515612ea65747600160c052602060c02055612f18565b60206101e060246370a0823161016052306101805261017c6101405160028110612ecf57600080fd5b600060c052602060c02001545afa612ee657600080fd5b601f3d11612ef357600080fd5b6000506101e0516101405160028110612f0b57600080fd5b600160c052602060c02001555b8151600101808352811415612e8b575b50506000601155005b63e3698853811415612f60576004543314612f4b57600080fd5b4260105411612f5957600080fd5b6001600f55005b633046f972811415612f81576004543314612f7a57600080fd5b6000600f55005b63c6610657811415612fb25760043560028110612f9d57600080fd5b600060c052602060c020015460005260206000f35b634903b0d1811415612fe35760043560028110612fce57600080fd5b600160c052602060c020015460005260206000f35b63ddca3f43811415612ffb5760025460005260206000f35b63fee3f7f98114156130135760035460005260206000f35b638da5cb5b81141561302b5760045460005260206000f35b6382c630668114156130435760055460005260206000f35b635409491a81141561305b5760065460005260206000f35b63b4b577ad8114156130735760075460005260206000f35b632081066c81141561308b5760085460005260206000f35b63140522888114156130a35760095460005260206000f35b63405e28f88114156130bb57600a5460005260206000f35b63e0a0b5868114156130d357600b5460005260206000f35b6358680d0b8114156130eb57600c5460005260206000f35b63e382446281141561310357600d5460005260206000f35b631ec0cdc181141561311b57600e5460005260206000f35b505b60006000fd5b610140526009546101605260075461018052610160514210156132a9576006546101a0526008546101c0526101a051610180511115613203576101a051610180516101a0518082101561317557600080fd5b80820390509050426101c0518082101561318e57600080fd5b8082039050905080820282158284830414176131a957600080fd5b80905090509050610160516101c051808210156131c557600080fd5b8082039050905080806131d757600080fd5b8204905090508181830110156131ec57600080fd5b8082019050905060005260005161014051566132a4565b6101a0516101a051610180518082101561321c57600080fd5b80820390509050426101c0518082101561323557600080fd5b80820390509050808202821582848304141761325057600080fd5b80905090509050610160516101c0518082101561326c57600080fd5b80820390509050808061327e57600080fd5b8204905090508082101561329157600080fd5b8082039050905060005260005161014051565b6132b9565b6101805160005260005161014051565b005b61014052670de0b6b3a76400006101605260206101e0600463e6aa216c6101805261019c6001600060c052602060c02001545afa6132f857600080fd5b601f3d1161330557600080fd5b6000506101e05161020052610160516102405261020051610260526040610220525b60006102205111151561333957613355565b6020610220510361024001516020610220510361022052613327565b61014051565b610180526101405261016052610140516101a052610160516101c0526101e060006002818352015b6101a06101e0516002811061339757600080fd5b60200201516101e051600281106133ad57600080fd5b600160c052602060c020015480820282158284830414176133cd57600080fd5b80905090509050670de0b6b3a7640000808204905090506101a06101e051600281106133f857600080fd5b60200201525b8151600101808352811415613383575b505060406101e0525b60006101e05111151561342957613445565b60206101e051036101a0015160206101e051036101e052613417565b61018051565b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c080516102005181818301101561349657600080fd5b808201905090508152505b815160010180835281141561346e575b50506101c05115156134cb5760006000526000516101a051565b6101c0516102005261018051600280820282158284830414176134ed57600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a051026101400151610280526102605161020051808202821582848304141761354457600080fd5b80905090509050610280516002808202821582848304141761356557600080fd5b80905090509050808061357757600080fd5b820490509050610260525b8151600101808352811415613518575b5050610200516101e052610220516101c05180820282158284830414176135b857600080fd5b8090509050905060648082049050905061026051600280820282158284830414176135e257600080fd5b809050905090508181830110156135f857600080fd5b8082019050905061020051808202821582848304141761361757600080fd5b809050905090506102205160648082101561363157600080fd5b8082039050905061020051808202821582848304141761365057600080fd5b80905090509050606480820490509050600361026051808202821582848304141761367a57600080fd5b8090509050905081818301101561369057600080fd5b8082019050905080806136a257600080fd5b820490509050610200526101e0516102005111156136f6576001610200516101e051808210156136d157600080fd5b808203905090501115156136f1576102005160005250506000516101a051565b61372d565b60016101e051610200518082101561370d57600080fd5b8082039050905011151561372d576102005160005250506000516101a051565b8151600101808352811415613504575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526101405161020052610160516102205261024060006002818352015b610200610240516002811061378d57600080fd5b602002015161018061024051600281106137a657600080fd5b602002015180820282158284830414176137bf57600080fd5b80905090509050670de0b6b3a76400008082049050905061020061024051600281106137ea57600080fd5b60200201525b8151600101808352811415613779575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610200516102405261022051610260526101c051610280526102805161026051610240516006580161344b565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516000526000516101e051565b6101e0526101405261016052610180526101a0526101c0526101605161014051186138ad57600080fd5b60006101605112156138be57600080fd5b600261016051126138ce57600080fd5b60006101405112156138df57600080fd5b600261014051126138ef57600080fd5b6101405161016051610180516101a0516101c0516101e0516102005160065801613123565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c0516102605261020051610280526102805161026051610240516006580161344b565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205261020051600280820282158284830414176139cf57600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e0511415613a1057610180516102a052613a45565b610160516102e0511815613a40576101a06102e05160028110613a3257600080fd5b60200201516102a052613a45565b613ac1565b61028080516102a051818183011015613a5d57600080fd5b8082019050905081525061026051610220518082028215828483041417613a8357600080fd5b809050905090506102a05160028082028215828483041417613aa457600080fd5b809050905090508080613ab657600080fd5b820490509050610260525b81516001018083528114156139f5575b505061026051610220518082028215828483041417613aef57600080fd5b8090509050905060648082028215828483041417613b0c57600080fd5b809050905090506102405160028082028215828483041417613b2d57600080fd5b809050905090508080613b3f57600080fd5b82049050905061026052610280516102205160648082028215828483041417613b6757600080fd5b80905090509050610240518080613b7d57600080fd5b820490509050818183011015613b9257600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c05261030051610300518082028215828483041417613bd557600080fd5b8090509050905061026051818183011015613bef57600080fd5b808201905090506002610300518082028215828483041417613c1057600080fd5b809050905090506102e051818183011015613c2a57600080fd5b808201905090506102205180821015613c4257600080fd5b808203905090508080613c5457600080fd5b820490509050610300526102c051610300511115613ca8576001610300516102c05180821015613c8357600080fd5b80820390509050111515613ca3576103005160005250506000516101e051565b613cdf565b60016102c0516103005180821015613cbf57600080fd5b80820390509050111515613cdf576103005160005250506000516101e051565b8151600101808352811415613bb1575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526000610160511215613d2057600080fd5b60026101605112613d3057600080fd5b6101405160028082028215828483041417613d4a57600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a0511815613da0576101806102a05160028110613d9257600080fd5b602002015161026052613da5565b613e21565b610240805161026051818183011015613dbd57600080fd5b80820190509050815250610220516101c0518082028215828483041417613de357600080fd5b809050905090506102605160028082028215828483041417613e0457600080fd5b809050905090508080613e1657600080fd5b820490509050610220525b8151600101808352811415613d70575b5050610220516101c0518082028215828483041417613e4f57600080fd5b8090509050905060648082028215828483041417613e6c57600080fd5b809050905090506102005160028082028215828483041417613e8d57600080fd5b809050905090508080613e9f57600080fd5b82049050905061022052610240516101c05160648082028215828483041417613ec757600080fd5b80905090509050610200518080613edd57600080fd5b820490509050818183011015613ef257600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c0518082028215828483041417613f3557600080fd5b8090509050905061022051818183011015613f4f57600080fd5b8082019050905060026102c0518082028215828483041417613f7057600080fd5b809050905090506102a051818183011015613f8a57600080fd5b808201905090506101c05180821015613fa257600080fd5b808203905090508080613fb457600080fd5b8204905090506102c052610280516102c05111156140085760016102c0516102805180821015613fe357600080fd5b80820390509050111515614003576102c05160005250506000516101e051565b61403f565b6001610280516102c0518082101561401f57600080fd5b8082039050905011151561403f576102c05160005250506000516101e051565b8151600101808352811415613f11575b505060006000fd5b6101805261014052610160526101405161016051610180516101a05160065801613123565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e051600658016132bb565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e0516102605261026051610240516006580161335b565b6102c0526102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102c0805161020052806020015161022052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610200516102605261022051610280526101a0516102a0526102a05161028051610260516006580161344b565b610300526102405261022052610200526101e0526101c0526101a052610180526101605261014052610300516102405260206102e060046318160ddd6102805261029c6005545afa61420a57600080fd5b601f3d1161421757600080fd5b6000506102e05161026052610240516101405161024051808202821582848304141761424257600080fd5b8090509050905061026051808061425857600080fd5b8204905090508082101561426b57600080fd5b80820390509050610280526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101a0516102c052610160516102e0526102005161030052610220516103205261028051610340526103405161032051610300516102e0516102c05160065801613cf7565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a052610200516102c052610220516102e0526002546002808202821582848304141761435057600080fd5b809050905090506004808204905090506103005261032060006002818352015b600061034052610200610320516002811061438a57600080fd5b602002015161036052610160516103205114156143fa57610360516102805180820282158284830414176143bd57600080fd5b809050905090506102405180806143d357600080fd5b8204905090506102a051808210156143ea57600080fd5b808203905090506103405261444f565b610360516103605161028051808202821582848304141761441a57600080fd5b8090509050905061024051808061443057600080fd5b8204905090508082101561444357600080fd5b80820390509050610340525b6102c0610320516002811061446357600080fd5b6020020180516103005161034051808202821582848304141761448557600080fd5b809050905090506402540be40080820490509050808210156144a657600080fd5b808203905090508152505b8151600101808352811415614370575b50506102c061016051600281106144d757600080fd5b6020020151610140610340525b61034051516020610340510161034052610340610340511015614506576144e4565b6101a0516103605261016051610380526102c0516103a0526102e0516103c052610280516103e0526103e0516103c0516103a051610380516103605160065801613cf7565b61044052610320610340525b610340515260206103405103610340526101406103405110151561457a57614557565b610440518082101561458b57600080fd5b80820390509050610320526101c061016051600281106145aa57600080fd5b602002015161034052610320516001808210156145c657600080fd5b80820390509050670de0b6b3a764000080820282158284830414176145ea57600080fd5b8090509050905061034051808061460057600080fd5b82049050905061032052610200610160516002811061461e57600080fd5b60200201516102a0518082101561463457600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761465857600080fd5b8090509050905061034051808061466e57600080fd5b820490509050610360526103c061032051815261036051610320518082101561469657600080fd5b808203905090508160200152506040610400525b6000610400511115156146bc576146d8565b602061040051036103c0015160206104005103610400526146aa565b61018051565b61014561482303610145600039610145614823036000f3000000000000000000000000edf2c58e16cc606da1977e79e1e69e79c54fe242000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000009559aaa82d9649c7a7b220e7c461d2e74c9a359300000000000000000000000053a901d48795c58f485cbb38df08fa96a24669d5000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200

Deployed Bytecode

0x600436101561000d5761311d565b600035601c52600051630b4c7e4d81141561082a576011541561002f57600080fd5b6001601155600f541561004157600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506005546101a052602061024060046318160ddd6101e0526101fc6101a0515afa6100c357600080fd5b601f3d116100d057600080fd5b600050610240516101c05260006101e05260018060c052602060c020546102005260018160c052602060c0200154610220525060006101c05118156101a1576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261018051610260526102005161028052610220516102a052610140516102c0526102c0516102a05161028051610260516102405160065801613745565b6103205261022052610200526101e0526101c0526101a052610180526101605261014052610320516101e0525b6102005161024052610220516102605261028060006002818352015b6101c05115156101eb576000600461028051600281106101dc57600080fd5b6020020135116101eb57600080fd5b61024061028051600281106101ff57600080fd5b6020020180516004610280516002811061021857600080fd5b602002013581818301101561022c57600080fd5b808201905090508152505b81516001018083528114156101bd575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610180516102c052610240516102e0526102605161030052610140516103205261032051610300516102e0516102c0516102a05160065801613745565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526101e051610280511161030457600080fd5b610280516102a0526060366102c03760006101c051181561067d576002546002808202821582848304141761033857600080fd5b80905090509050600480820490509050610320526003546103405261036060006002818352015b61028051610200610360516002811061037757600080fd5b6020020151808202821582848304141761039057600080fd5b809050905090506101e05180806103a657600080fd5b8204905090506103805260006103a05261024061036051600281106103ca57600080fd5b6020020151610380511115610413576103805161024061036051600281106103f157600080fd5b60200201518082101561040357600080fd5b808203905090506103a052610449565b610240610360516002811061042757600080fd5b6020020151610380518082101561043d57600080fd5b808203905090506103a0525b610320516103a051808202821582848304141761046557600080fd5b809050905090506402540be400808204905090506102c0610360516002811061048d57600080fd5b602002015261024061036051600281106104a657600080fd5b60200201516102c061036051600281106104bf57600080fd5b60200201516103405180820282158284830414176104dc57600080fd5b809050905090506402540be40080820490509050808210156104fd57600080fd5b80820390509050610360516002811061051557600080fd5b600160c052602060c0200155610240610360516002811061053557600080fd5b6020020180516102c0610360516002811061054f57600080fd5b60200201518082101561056157600080fd5b808203905090508152505b815160010180835281141561035f575b5050610140610360525b610360515160206103605101610360526103606103605110156105a857610586565b6101605161038052610180516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a0516103805160065801613745565b61046052610340610360525b610360515260206103605103610360526101406103605110151561061c576105f9565b610460516102a0526101c0516102a0516101e0518082101561063d57600080fd5b80820390509050808202821582848304141761065857600080fd5b809050905090506101e051808061066e57600080fd5b820490509050610300526106a0565b600160c052602060c0206102405181556102605160018201555061028051610300525b60443561030051101515156106f4576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b600435341461070257600080fd5b600060243511156107695760206103e060646323b872dd61032052336103405230610360526024356103805261033c60006001600060c052602060c02001545af161074c57600080fd5b601f3d1161075957600080fd5b6000506103e05161076957600080fd5b60206103c060446340c10f19610320523361034052610300516103605261033c60006101a0515af161079a57600080fd5b601f3d116107a757600080fd5b6000506103c05060406004610320376102c051610360526102e05161038052610280516103a0526101c051610300518181830110156107e557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600060115560206000f35b633df02124811415610e28576011541561084357600080fd5b60016011556004358080600081121561085857195b607f1c1561086557600080fd5b9050506024358080600081121561087857195b607f1c1561088557600080fd5b905050600f541561089557600080fd5b6101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a052506101806004356002811061093857600080fd5b60200201516044356101406004356002811061095357600080fd5b6020020151808202821582848304141761096c57600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561099257600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160406004610200376101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110610a2957600080fd5b60200201516101e05180821015610a3f57600080fd5b80820390509050600180821015610a5557600080fd5b8082039050905061020052610200516002548082028215828483041417610a7b57600080fd5b809050905090506402540be4008082049050905061022052610220516003548082028215828483041417610aae57600080fd5b809050905090506402540be40080820490509050610240526101c051670de0b6b3a76400008082028215828483041417610ae757600080fd5b8090509050905061014060043560028110610b0157600080fd5b60200201518080610b1157600080fd5b82049050905060043560028110610b2757600080fd5b600160c052602060c02001556101e051610220516102405180821015610b4c57600080fd5b80820390509050818183011015610b6257600080fd5b80820190509050670de0b6b3a76400008082028215828483041417610b8657600080fd5b8090509050905061014060243560028110610ba057600080fd5b60200201518080610bb057600080fd5b82049050905060243560028110610bc657600080fd5b600160c052602060c0200155610200516102205180821015610be757600080fd5b80820390509050670de0b6b3a76400008082028215828483041417610c0b57600080fd5b8090509050905061014060243560028110610c2557600080fd5b60200201518080610c3557600080fd5b820490509050610200526064356102005110151515610cb8576308c379a061026052602061028052602e6102a0527f45786368616e676520726573756c74656420696e20666577657220636f696e736102c0527f207468616e2065787065637465640000000000000000000000000000000000006102e0526102a050608461027cfd5b6001600060c052602060c0200154610260526004351515610d34576044353414610ce157600080fd5b6020610320604463a9059cbb61028052336102a052610200516102c05261029c6000610260515af1610d1257600080fd5b601f3d11610d1f57600080fd5b60005061032051610d2f57600080fd5b610dd1565b3415610d3f57600080fd5b602061034060646323b872dd61028052336102a052306102c0526044356102e05261029c6000610260515af1610d7457600080fd5b601f3d11610d8157600080fd5b60005061034051610d9157600080fd5b6000610280526102808051602001806102c08284600060045af1610db457600080fd5b5050600060006102c0516102e061020051335af1610dd157600080fd5b600435610280526044356102a0526024356102c052610200516102e052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610280a261020051600052600060115560206000f35b3415610e3357600080fd5b63f446c1d0811415610e625760065801613123565b610140526101405160648082049050905060005260206000f35b6376a2f0f0811415610e885760065801613123565b610140526101405160005260206000f35b63bb7b8b808114156110d15761014051600658016132bb565b61016052610180526101405261016080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101a0516101e0526101c05161020052610200516101e0516006580161335b565b61026052610280526101c0526101a05261018052610160526101405261026080516102a05280602001516102c052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c05160065801613123565b6102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610300526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516102a051610320526102c0516103405261030051610360526103605161034051610320516006580161344b565b6103c052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103c0516101405260206101e060046318160ddd6101805261019c6005545afa61107357600080fd5b601f3d1161108057600080fd5b6000506101e0516101605261014051670de0b6b3a764000080820282158284830414176110ac57600080fd5b809050905090506101605180806110c257600080fd5b82049050905060005260206000f35b63ed8e84f38114156113f45760443560011c156110ed57600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c051610260526101405161028052610280516102605161024051610220516102005160065801613745565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261020060006002818352015b6004610200516002811061120857600080fd5b60200201356102205260443515611255576101a0610200516002811061122d57600080fd5b6020020180516102205181818301101561124657600080fd5b8082019050905081525061128b565b6101a0610200516002811061126957600080fd5b602002018051610220518082101561128057600080fd5b808203905090508152505b81516001018083528114156111f5575b50506101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a051610260526101c05161028052610140516102a0526102a0516102805161026051610240516102205160065801613745565b61030052610200526101e0526101c0526101a052610180526101605261014052610300516102005260206102a060046318160ddd6102405261025c6005545afa61134757600080fd5b601f3d1161135457600080fd5b6000506102a051610220526000610240526044351561139257610200516101e0518082101561138257600080fd5b80820390509050610240526113b3565b6101e05161020051808210156113a757600080fd5b80820390509050610240525b610240516102205180820282158284830414176113cf57600080fd5b809050905090506101e05180806113e557600080fd5b82049050905060005260206000f35b635e0d443f81141561169a576004358080600081121561141057195b607f1c1561141d57600080fd5b9050506024358080600081121561143057195b607f1c1561143d57600080fd5b9050506101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a05250610180600435600281106114e357600080fd5b6020020151604435610140600435600281106114fe57600080fd5b6020020151808202821582848304141761151757600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561153d57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160406004610200376101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e052610180602435600281106115d457600080fd5b60200201516101e051808210156115ea57600080fd5b808203905090506102005260025461020051808202821582848304141761161057600080fd5b809050905090506402540be400808204905090506102205261020051610220518082101561163d57600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761166157600080fd5b809050905090506101406024356002811061167b57600080fd5b6020020151808061168b57600080fd5b82049050905060005260206000f35b6367df02ca81141561194857600435808060008112156116b657195b607f1c156116c357600080fd5b905050602435808060008112156116d657195b607f1c156116e357600080fd5b9050506101405161016051600658016132bb565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c0516006580161335b565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a052506101806024356002811061178957600080fd5b60200201516044356402540be40080820282158284830414176117ab57600080fd5b809050905090506402540be400600254808210156117c857600080fd5b8082039050905080806117da57600080fd5b820490509050610140602435600281106117f357600080fd5b6020020151808202821582848304141761180c57600080fd5b80905090509050670de0b6b3a7640000808204905090508082101561183057600080fd5b808203905090506101c0526101405161016051610180516101a0516101c0516101e05160243561020052600435610220526101c0516102405261018051610260526101a05161028052610280516102605161024051610220516102005160065801613883565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101e051610180600435600281106118d157600080fd5b6020020151808210156118e357600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761190757600080fd5b809050905090506101406004356002811061192157600080fd5b6020020151808061193157600080fd5b820490509050610200526102005160005260206000f35b635b36389c811415611c61576011541561196157600080fd5b60016011556005546101405260206101e060046318160ddd6101805261019c610140515afa61198f57600080fd5b601f3d1161199c57600080fd5b6000506101e05161016052604036610180376101c060006002818352015b6101c051600281106119cb57600080fd5b600160c052602060c02001546101e0526101e05160043580820282158284830414176119f657600080fd5b80905090509050610160518080611a0c57600080fd5b8204905090506102005260246101c05160028110611a2957600080fd5b60200201356102005110151515611aa4576308c379a0610220526020610240526030610260527f5769746864726177616c20726573756c74656420696e20666577657220636f69610280527f6e73207468616e206578706563746564000000000000000000000000000000006102a05261026050608461023cfd5b6101e0516102005180821015611ab957600080fd5b808203905090506101c05160028110611ad157600080fd5b600160c052602060c0200155610200516101806101c05160028110611af557600080fd5b60200201526101c0511515611b49576000610220526102208051602001806102608284600060045af1611b2757600080fd5b5050600060006102605161028061020051335af1611b4457600080fd5b611ba1565b60206102c0604463a9059cbb610220523361024052610200516102605261023c60006001600060c052602060c02001545af1611b8457600080fd5b601f3d11611b9157600080fd5b6000506102c051611ba157600080fd5b81516001018083528114156119ba575b5050602061026060446379cc67906101c052336101e052600435610200526101dc6000610140515af1611be357600080fd5b601f3d11611bf057600080fd5b60005061026050610180516101c0526101a0516101e052604036610200376101605160043580821015611c2257600080fd5b8082039050905061024052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101c0a260006011556040610180f35b63e31032738114156123ed5760115415611c7a57600080fd5b6001601155600f5415611c8c57600080fd5b6101405160065801613123565b61016052610140526101605161014052610140516101605161018051600658016132bb565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c051610260526101405161028052610280516102605161024051610220516102005160065801613745565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101a051610200526101c0516102205261024060006002818352015b6102006102405160028110611db857600080fd5b60200201805160046102405160028110611dd157600080fd5b602002013580821015611de357600080fd5b808203905090508152505b8151600101808352811415611da4575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101805161028052610200516102a052610220516102c052610140516102e0526102e0516102c0516102a051610280516102605160065801613745565b610340526102405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610240526040366102603760025460028082028215828483041417611eb957600080fd5b809050905090506004808204905090506102a0526003546102c0526102e060006002818352015b610240516101a06102e05160028110611ef857600080fd5b60200201518082028215828483041417611f1157600080fd5b809050905090506101e0518080611f2757600080fd5b820490509050610300526102006102e05160028110611f4557600080fd5b60200201516103205260006103405261032051610300511115611f8757610300516103205180821015611f7757600080fd5b8082039050905061034052611fa8565b610320516103005180821015611f9c57600080fd5b80820390509050610340525b6102a051610340518082028215828483041417611fc457600080fd5b809050905090506402540be400808204905090506102606102e05160028110611fec57600080fd5b6020020152610320516102606102e0516002811061200957600080fd5b60200201516102c051808202821582848304141761202657600080fd5b809050905090506402540be400808204905090508082101561204757600080fd5b808203905090506102e0516002811061205f57600080fd5b600160c052602060c0200155610320516102606102e0516002811061208357600080fd5b60200201518082101561209557600080fd5b808203905090506102006102e051600281106120b057600080fd5b60200201525b8151600101808352811415611ee0575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05161016051610300526101805161032052610200516103405261022051610360526101405161038052610380516103605161034051610320516103005160065801613745565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e0526005546103005260206103a060046318160ddd6103405261035c610300515afa6121b257600080fd5b601f3d116121bf57600080fd5b6000506103a051610320526101e0516102e051808210156121df57600080fd5b808203905090506103205180820282158284830414176121fe57600080fd5b809050905090506101e051808061221457600080fd5b820490509050610340526000610340511861222e57600080fd5b6044356103405111151515612282576308c379a06103605260206103805260146103a0527f536c697070616765207363726577656420796f750000000000000000000000006103c0526103a050606461037cfd5b602061040060446379cc6790610360523361038052610340516103a05261037c6000610300515af16122b357600080fd5b601f3d116122c057600080fd5b6000506104005060006004351815612311576000610360526103608051602001806103a08284600060045af16122f557600080fd5b5050600060006103a0516103c0600435335af161231157600080fd5b60006024351815612373576020610400604463a9059cbb6103605233610380526024356103a05261037c60006001600060c052602060c02001545af161235657600080fd5b601f3d1161236357600080fd5b6000506104005161237357600080fd5b6040600461036037610260516103a052610280516103c052610240516103e0526103205161034051808210156123a857600080fd5b8082039050905061040052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610360a261034051600052600060115560206000f35b63cc2b27d781141561246d576024358080600081121561240957195b607f1c1561241657600080fd5b9050506004356101405260243561016052610160516101405160065801614057565b6101c0526101e0526101c080808080516102005250506020810190508080805161022052505050506102005160005260206000f35b631a4d01d281141561272c576011541561248657600080fd5b60016011556024358080600081121561249b57195b607f1c156124a857600080fd5b905050600f54156124b857600080fd5b604036610140376101405161016051600435610180526024356101a0526101a0516101805160065801614057565b61020052610220526101605261014052610200808080805161024052505060208101905080808051610260525050505061024080516101405280602001516101605250604435610140511015151561257d576308c379a06101805260206101a05260186101c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006101e0526101c050606461019cfd5b6024356002811061258d57600080fd5b600160c052602060c020018054610140516101605160035480820282158284830414176125b957600080fd5b809050905090506402540be400808204905090508181830110156125dc57600080fd5b80820190509050808210156125f057600080fd5b80820390509050815550602061022060446379cc679061018052336101a0526004356101c05261019c60006005545af161262957600080fd5b601f3d1161263657600080fd5b60005061022050602435151561268b576000610180526101808051602001806101c08284600060045af161266957600080fd5b5050600060006101c0516101e061014051335af161268657600080fd5b6126e3565b6020610220604463a9059cbb61018052336101a052610140516101c05261019c60006001600060c052602060c02001545af16126c657600080fd5b601f3d116126d357600080fd5b600050610220516126e357600080fd5b60043561018052610140516101a052337f9e96dd3b997a2a257eec4df9bb6eaf626e206df5f543bd963682d143300be3106040610180a261014051600052600060115560206000f35b633c157e648114156128cd57600454331461274657600080fd5b6008546201518081818301101561275c57600080fd5b8082019050905042101561276f57600080fd5b426201518081818301101561278357600080fd5b80820190509050602435101561279857600080fd5b6101405160065801613123565b61016052610140526101605161014052600435606480820282158284830414176127ce57600080fd5b8090509050905061016052600060043511156127f157620f4240600435106127f4565b60005b6127fd57600080fd5b61014051610160511015612840576101405161016051600a808202821582848304141761282957600080fd5b80905090509050101561283b57600080fd5b612870565b61014051600a808202821582848304141761285a57600080fd5b8090509050905061016051111561287057600080fd5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a65888114156129505760045433146128e757600080fd5b6101405160065801613123565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a1467811415612a0c57600454331461296a57600080fd5b600a541561297757600080fd5b64012a05f200600435111561298b57600080fd5b6402540be400602435111561299f57600080fd5b426203f4808181830110156129b357600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97811415612ab55760115415612a2557600080fd5b60016011556004543314612a3857600080fd5b600a54421015612a4757600080fd5b6000600a5418612a5657600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a16000601155005b63226840fb811415612ad6576004543314612acf57600080fd5b6000600a55005b636b441a40811415612b685760043560a01c15612af257600080fd5b6004543314612b0057600080fd5b600b5415612b0d57600080fd5b426203f480818183011015612b2157600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae811415612bf65760115415612b8157600080fd5b60016011556004543314612b9457600080fd5b600b54421015612ba357600080fd5b6000600b5418612bb257600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a26000601155005b6386fbf193811415612c17576004543314612c1057600080fd5b6000600b55005b63e2e7d264811415612ce1576004351515612c555747600160c052602060c0205480821015612c4557600080fd5b8082039050905060005260206000f35b60206101c060246370a0823161014052306101605261015c60043560028110612c7d57600080fd5b600060c052602060c02001545afa612c9457600080fd5b601f3d11612ca157600080fd5b6000506101c05160043560028110612cb857600080fd5b600160c052602060c020015480821015612cd157600080fd5b8082039050905060005260206000f35b6330c54085811415612e535760115415612cfa57600080fd5b60016011556004543314612d0d57600080fd5b47600160c052602060c0205480821015612d2657600080fd5b80820390509050610140526000610140511815612d7d576000610160526101608051602001806101a08284600060045af1612d6057600080fd5b5050600060006101a0516101c061014051335af1612d7d57600080fd5b60206101e060246370a0823161016052306101805261017c6001600060c052602060c02001545afa612dae57600080fd5b601f3d11612dbb57600080fd5b6000506101e0516001600160c052602060c020015480821015612ddd57600080fd5b80820390509050610140526000610140511815612e4c576020610200604463a9059cbb610160523361018052610140516101a05261017c60006001600060c052602060c02001545af1612e2f57600080fd5b601f3d11612e3c57600080fd5b60005061020051612e4c57600080fd5b6000601155005b63524c3901811415612f315760115415612e6c57600080fd5b60016011556004543314612e7f57600080fd5b61014060006002818352015b610140511515612ea65747600160c052602060c02055612f18565b60206101e060246370a0823161016052306101805261017c6101405160028110612ecf57600080fd5b600060c052602060c02001545afa612ee657600080fd5b601f3d11612ef357600080fd5b6000506101e0516101405160028110612f0b57600080fd5b600160c052602060c02001555b8151600101808352811415612e8b575b50506000601155005b63e3698853811415612f60576004543314612f4b57600080fd5b4260105411612f5957600080fd5b6001600f55005b633046f972811415612f81576004543314612f7a57600080fd5b6000600f55005b63c6610657811415612fb25760043560028110612f9d57600080fd5b600060c052602060c020015460005260206000f35b634903b0d1811415612fe35760043560028110612fce57600080fd5b600160c052602060c020015460005260206000f35b63ddca3f43811415612ffb5760025460005260206000f35b63fee3f7f98114156130135760035460005260206000f35b638da5cb5b81141561302b5760045460005260206000f35b6382c630668114156130435760055460005260206000f35b635409491a81141561305b5760065460005260206000f35b63b4b577ad8114156130735760075460005260206000f35b632081066c81141561308b5760085460005260206000f35b63140522888114156130a35760095460005260206000f35b63405e28f88114156130bb57600a5460005260206000f35b63e0a0b5868114156130d357600b5460005260206000f35b6358680d0b8114156130eb57600c5460005260206000f35b63e382446281141561310357600d5460005260206000f35b631ec0cdc181141561311b57600e5460005260206000f35b505b60006000fd5b610140526009546101605260075461018052610160514210156132a9576006546101a0526008546101c0526101a051610180511115613203576101a051610180516101a0518082101561317557600080fd5b80820390509050426101c0518082101561318e57600080fd5b8082039050905080820282158284830414176131a957600080fd5b80905090509050610160516101c051808210156131c557600080fd5b8082039050905080806131d757600080fd5b8204905090508181830110156131ec57600080fd5b8082019050905060005260005161014051566132a4565b6101a0516101a051610180518082101561321c57600080fd5b80820390509050426101c0518082101561323557600080fd5b80820390509050808202821582848304141761325057600080fd5b80905090509050610160516101c0518082101561326c57600080fd5b80820390509050808061327e57600080fd5b8204905090508082101561329157600080fd5b8082039050905060005260005161014051565b6132b9565b6101805160005260005161014051565b005b61014052670de0b6b3a76400006101605260206101e0600463e6aa216c6101805261019c6001600060c052602060c02001545afa6132f857600080fd5b601f3d1161330557600080fd5b6000506101e05161020052610160516102405261020051610260526040610220525b60006102205111151561333957613355565b6020610220510361024001516020610220510361022052613327565b61014051565b610180526101405261016052610140516101a052610160516101c0526101e060006002818352015b6101a06101e0516002811061339757600080fd5b60200201516101e051600281106133ad57600080fd5b600160c052602060c020015480820282158284830414176133cd57600080fd5b80905090509050670de0b6b3a7640000808204905090506101a06101e051600281106133f857600080fd5b60200201525b8151600101808352811415613383575b505060406101e0525b60006101e05111151561342957613445565b60206101e051036101a0015160206101e051036101e052613417565b61018051565b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c080516102005181818301101561349657600080fd5b808201905090508152505b815160010180835281141561346e575b50506101c05115156134cb5760006000526000516101a051565b6101c0516102005261018051600280820282158284830414176134ed57600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a051026101400151610280526102605161020051808202821582848304141761354457600080fd5b80905090509050610280516002808202821582848304141761356557600080fd5b80905090509050808061357757600080fd5b820490509050610260525b8151600101808352811415613518575b5050610200516101e052610220516101c05180820282158284830414176135b857600080fd5b8090509050905060648082049050905061026051600280820282158284830414176135e257600080fd5b809050905090508181830110156135f857600080fd5b8082019050905061020051808202821582848304141761361757600080fd5b809050905090506102205160648082101561363157600080fd5b8082039050905061020051808202821582848304141761365057600080fd5b80905090509050606480820490509050600361026051808202821582848304141761367a57600080fd5b8090509050905081818301101561369057600080fd5b8082019050905080806136a257600080fd5b820490509050610200526101e0516102005111156136f6576001610200516101e051808210156136d157600080fd5b808203905090501115156136f1576102005160005250506000516101a051565b61372d565b60016101e051610200518082101561370d57600080fd5b8082039050905011151561372d576102005160005250506000516101a051565b8151600101808352811415613504575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526101405161020052610160516102205261024060006002818352015b610200610240516002811061378d57600080fd5b602002015161018061024051600281106137a657600080fd5b602002015180820282158284830414176137bf57600080fd5b80905090509050670de0b6b3a76400008082049050905061020061024051600281106137ea57600080fd5b60200201525b8151600101808352811415613779575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610200516102405261022051610260526101c051610280526102805161026051610240516006580161344b565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516000526000516101e051565b6101e0526101405261016052610180526101a0526101c0526101605161014051186138ad57600080fd5b60006101605112156138be57600080fd5b600261016051126138ce57600080fd5b60006101405112156138df57600080fd5b600261014051126138ef57600080fd5b6101405161016051610180516101a0516101c0516101e0516102005160065801613123565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c0516102605261020051610280526102805161026051610240516006580161344b565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205261020051600280820282158284830414176139cf57600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e0511415613a1057610180516102a052613a45565b610160516102e0511815613a40576101a06102e05160028110613a3257600080fd5b60200201516102a052613a45565b613ac1565b61028080516102a051818183011015613a5d57600080fd5b8082019050905081525061026051610220518082028215828483041417613a8357600080fd5b809050905090506102a05160028082028215828483041417613aa457600080fd5b809050905090508080613ab657600080fd5b820490509050610260525b81516001018083528114156139f5575b505061026051610220518082028215828483041417613aef57600080fd5b8090509050905060648082028215828483041417613b0c57600080fd5b809050905090506102405160028082028215828483041417613b2d57600080fd5b809050905090508080613b3f57600080fd5b82049050905061026052610280516102205160648082028215828483041417613b6757600080fd5b80905090509050610240518080613b7d57600080fd5b820490509050818183011015613b9257600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c05261030051610300518082028215828483041417613bd557600080fd5b8090509050905061026051818183011015613bef57600080fd5b808201905090506002610300518082028215828483041417613c1057600080fd5b809050905090506102e051818183011015613c2a57600080fd5b808201905090506102205180821015613c4257600080fd5b808203905090508080613c5457600080fd5b820490509050610300526102c051610300511115613ca8576001610300516102c05180821015613c8357600080fd5b80820390509050111515613ca3576103005160005250506000516101e051565b613cdf565b60016102c0516103005180821015613cbf57600080fd5b80820390509050111515613cdf576103005160005250506000516101e051565b8151600101808352811415613bb1575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526000610160511215613d2057600080fd5b60026101605112613d3057600080fd5b6101405160028082028215828483041417613d4a57600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a0511815613da0576101806102a05160028110613d9257600080fd5b602002015161026052613da5565b613e21565b610240805161026051818183011015613dbd57600080fd5b80820190509050815250610220516101c0518082028215828483041417613de357600080fd5b809050905090506102605160028082028215828483041417613e0457600080fd5b809050905090508080613e1657600080fd5b820490509050610220525b8151600101808352811415613d70575b5050610220516101c0518082028215828483041417613e4f57600080fd5b8090509050905060648082028215828483041417613e6c57600080fd5b809050905090506102005160028082028215828483041417613e8d57600080fd5b809050905090508080613e9f57600080fd5b82049050905061022052610240516101c05160648082028215828483041417613ec757600080fd5b80905090509050610200518080613edd57600080fd5b820490509050818183011015613ef257600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c0518082028215828483041417613f3557600080fd5b8090509050905061022051818183011015613f4f57600080fd5b8082019050905060026102c0518082028215828483041417613f7057600080fd5b809050905090506102a051818183011015613f8a57600080fd5b808201905090506101c05180821015613fa257600080fd5b808203905090508080613fb457600080fd5b8204905090506102c052610280516102c05111156140085760016102c0516102805180821015613fe357600080fd5b80820390509050111515614003576102c05160005250506000516101e051565b61403f565b6001610280516102c0518082101561401f57600080fd5b8082039050905011151561403f576102c05160005250506000516101e051565b8151600101808352811415613f11575b505060006000fd5b6101805261014052610160526101405161016051610180516101a05160065801613123565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e051600658016132bb565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e0516102605261026051610240516006580161335b565b6102c0526102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102c0805161020052806020015161022052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610200516102605261022051610280526101a0516102a0526102a05161028051610260516006580161344b565b610300526102405261022052610200526101e0526101c0526101a052610180526101605261014052610300516102405260206102e060046318160ddd6102805261029c6005545afa61420a57600080fd5b601f3d1161421757600080fd5b6000506102e05161026052610240516101405161024051808202821582848304141761424257600080fd5b8090509050905061026051808061425857600080fd5b8204905090508082101561426b57600080fd5b80820390509050610280526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101a0516102c052610160516102e0526102005161030052610220516103205261028051610340526103405161032051610300516102e0516102c05160065801613cf7565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a052610200516102c052610220516102e0526002546002808202821582848304141761435057600080fd5b809050905090506004808204905090506103005261032060006002818352015b600061034052610200610320516002811061438a57600080fd5b602002015161036052610160516103205114156143fa57610360516102805180820282158284830414176143bd57600080fd5b809050905090506102405180806143d357600080fd5b8204905090506102a051808210156143ea57600080fd5b808203905090506103405261444f565b610360516103605161028051808202821582848304141761441a57600080fd5b8090509050905061024051808061443057600080fd5b8204905090508082101561444357600080fd5b80820390509050610340525b6102c0610320516002811061446357600080fd5b6020020180516103005161034051808202821582848304141761448557600080fd5b809050905090506402540be40080820490509050808210156144a657600080fd5b808203905090508152505b8151600101808352811415614370575b50506102c061016051600281106144d757600080fd5b6020020151610140610340525b61034051516020610340510161034052610340610340511015614506576144e4565b6101a0516103605261016051610380526102c0516103a0526102e0516103c052610280516103e0526103e0516103c0516103a051610380516103605160065801613cf7565b61044052610320610340525b610340515260206103405103610340526101406103405110151561457a57614557565b610440518082101561458b57600080fd5b80820390509050610320526101c061016051600281106145aa57600080fd5b602002015161034052610320516001808210156145c657600080fd5b80820390509050670de0b6b3a764000080820282158284830414176145ea57600080fd5b8090509050905061034051808061460057600080fd5b82049050905061032052610200610160516002811061461e57600080fd5b60200201516102a0518082101561463457600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761465857600080fd5b8090509050905061034051808061466e57600080fd5b820490509050610360526103c061032051815261036051610320518082101561469657600080fd5b808203905090508160200152506040610400525b6000610400511115156146bc576146d8565b602061040051036103c0015160206104005103610400526146aa565b6101805156

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

000000000000000000000000edf2c58e16cc606da1977e79e1e69e79c54fe242000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000009559aaa82d9649c7a7b220e7c461d2e74c9a359300000000000000000000000053a901d48795c58f485cbb38df08fa96a24669d5000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200

-----Decoded View---------------
Arg [0] : _owner (address): 0xEdf2C58E16Cc606Da1977e79E1e69e79C54fe242
Arg [1] : _coins (address[2]): 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,0x9559Aaa82d9649C7A7b220E7c461d2E74c9a3593
Arg [2] : _pool_token (address): 0x53a901d48795C58f485cBB38df08FA96a24669D5
Arg [3] : _A (uint256): 10
Arg [4] : _fee (uint256): 4000000
Arg [5] : _admin_fee (uint256): 5000000000

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000edf2c58e16cc606da1977e79e1e69e79c54fe242
Arg [1] : 000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Arg [2] : 0000000000000000000000009559aaa82d9649c7a7b220e7c461d2e74c9a3593
Arg [3] : 00000000000000000000000053a901d48795c58f485cbb38df08fa96a24669d5
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [6] : 000000000000000000000000000000000000000000000000000000012a05f200


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.