Contract 0x27E611FD27b276ACbd5Ffd632E5eAEBEC9761E40 4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x10b72860481c69f9b58fa2d95e13026ee8408d9576cb4f74c6087ce92bda2b18Approve545900502023-01-28 11:13:471 day 12 hrs ago0xdc8f486959af0d40483b5c4915431530ae612bbc IN  Curve.fi: 2Pool Pool0 FTM0.000700854658
0x5fc6ff28bb088a33ed8c87b4b0de43877697fad540a0a02db3028c1dc4aeb04eApprove545591722023-01-27 21:02:362 days 2 hrs ago0x354bc27b4bf791ccd572fc4c2e80f335de8dfb58 IN  Curve.fi: 2Pool Pool0 FTM0.001008101841
0xe0070237eb51970a72ad6633fc4e1eb8013534ffd7079102af374fe129c39da0Add_liquidity545551852023-01-27 19:02:302 days 4 hrs ago0xa1a3a5802a779f2d3d467f72913279d2c3a1850b IN  Curve.fi: 2Pool Pool0 FTM0.005745933303
0xbbdd5dcdd06ecfc8c5c33b11dca3c11505c12c430d633fb682eaf16bcabc9e28Exchange545536302023-01-27 17:57:342 days 5 hrs ago0xffa684dbe4f494d893b772da8608c6561c7cdb44 IN  Curve.fi: 2Pool Pool0 FTM0.00476135186
0xe1e185de3d5e7d2284ded00bb4729c5e31d35aacbf225735bfe3e26391075f52Exchange545511222023-01-27 16:30:342 days 6 hrs ago0xdb611d682cb1ad72fcbacd944a8a6e2606a6d158 IN  Curve.fi: 2Pool Pool0 FTM0.005399931
0xfaba475c1c976340244d7c91165c9f64fc2abb9c77ae5cc735e8490742cd34cbRemove_liquidity...545421682023-01-27 12:21:302 days 10 hrs ago0x5ac1af3039080ac8850a7926636d1d208e73d218 IN  Curve.fi: 2Pool Pool0 FTM0.006295623583
0x4ac47c552de9672c7822d53ce85f81e492fd5d6eb7552bdcef6dfcd9f2bddccdExchange545162482023-01-27 3:22:352 days 19 hrs ago0x6255cb7a706314835a22889500c8d55130912926 IN  Curve.fi: 2Pool Pool0 FTM0.022358930655
0x026366a972d48a4db30fa13e38e93c104f2bfaf4718df065cc5785b5d6645686Exchange544594962023-01-26 8:36:373 days 14 hrs ago0xa7355a9d9aa54e7e03fe96b5b7cb61b4971b9dca IN  Curve.fi: 2Pool Pool0 FTM0.044364024
0x52123c498d596744b4a35b9d0a0a56b70dbb7a714fab26c2f73f334c0bc4483eApprove544173692023-01-25 16:58:214 days 6 hrs ago0x3335334f2b19664e645bebe033857dc4f07561dd IN  Curve.fi: 2Pool Pool0 FTM0.002151125548
0x44c0840237f7cc591a17bfa51bdf4ed18fa09224266fb356d66d2e0ed519a9feExchange543587812023-01-24 17:44:185 days 5 hrs ago0x86d23cf8d880aeff82a66fc135495a26e0d175e9 IN  Curve.fi: 2Pool Pool0 FTM0.003976890752
0xafbe73b25c9c2785296322e5cc496a8c42917c8d2f21b1dce381720c292d1532Exchange543549822023-01-24 16:23:115 days 6 hrs ago0xb1e1496dc61cf93509b0f31f04739927e3213586 IN  Curve.fi: 2Pool Pool0 FTM0.004872932
0xd60b59ae136c40779a6ffb3c67b6a75e98e19cd976f7fb483fadaed9cf189353Approve543026502023-01-23 22:32:216 days 43 mins ago0xa507474d08bb0c41f2c2da0480d9901daae7ac87 IN  Curve.fi: 2Pool Pool0 FTM0.004819160677
0x5d884fa2d5a48ae369c3d328330c4ba577cad7be066c0463511a2950e0bcddccExchange543021452023-01-23 22:22:156 days 53 mins ago0x50cbefa2af5a509fe427c74512ebe19131f0f2f2 IN  Curve.fi: 2Pool Pool0 FTM0.010918463052
0xea43c9be1402c9a496acd8f1879dae5afc958f92d4f8f9662f52cebdc92d278eExchange542819792023-01-23 15:27:426 days 7 hrs ago0xdd9502ba6c0c012047cf21473427a1f2a8b3a989 IN  Curve.fi: 2Pool Pool0 FTM0.010067293722
0xa460c0441213f7821089e22cc10be983e8249984fdf3223bb879732a233898d6Remove_liquidity542541942023-01-23 5:49:466 days 17 hrs ago0x3ccbee8cc2a6eaba29274b64ed5792312c6fe4fd IN  Curve.fi: 2Pool Pool0 FTM0.003860929866
0x07f619a6926547d3c78197422061464e7c0d4ee6480247513126cbf7104e2d7fExchange542201662023-01-22 17:51:117 days 5 hrs ago0x77857d2f67f28bdb968fe29dee895f5cc1db2d0f IN  Curve.fi: 2Pool Pool0 FTM0.018492594844
0x18436542aff3f581f8efd7d5edffabecf343da9f38819bd2af08df2c94cd60a7Exchange542199322023-01-22 17:46:547 days 5 hrs ago0x4ff3aa332fd6b1ee6023fe71d67f595e5b515ea7 IN  Curve.fi: 2Pool Pool0 FTM0.018903081094
0x237f16717ecf7731df2f1d33f5e9796dc3a13f16feb18cc5767edbb830418481Exchange542150642023-01-22 16:08:587 days 7 hrs ago0x0df9a8932b1ccacfcad3f1409431ebf8800f42e8 IN  Curve.fi: 2Pool Pool0 FTM0.015810459151
0x987391c76eec4180dea08cb6dbb4f00260c45ef718467f362604bf9f3d63937bExchange542145222023-01-22 15:58:187 days 7 hrs ago0x0df9a8932b1ccacfcad3f1409431ebf8800f42e8 IN  Curve.fi: 2Pool Pool0 FTM0.036290536772
0x382885ccc021a108a4a5b79a4009c26569367033c2350510e763328d72317140Exchange541829582023-01-22 4:18:087 days 18 hrs ago0x32e76ce68901e81f6f4f3d0753215ec386c80dc5 IN  Curve.fi: 2Pool Pool0 FTM0.003454705871
0x06306f02742083edcd247ed815f02aa795da7fd429707f701ac0ac8769056a11Exchange541574752023-01-21 18:27:318 days 4 hrs ago0x05a2e50c5e4d724897b67b708db432a38c985f83 IN  Curve.fi: 2Pool Pool0 FTM0.003537835
0xdfaf7c7160d6ac1198d1c6b07f02635600ae0c31e8a956ac822eb5376b3eec81Remove_liquidity...540892432023-01-20 18:45:029 days 4 hrs ago0x451785b3f5fbbba2388d8cdeded58251b6999d91 IN  Curve.fi: 2Pool Pool0 FTM0.015871414091
0x6b6690234e9dd34fa3577d1664a361aac04942345ed605085f298763c5ed22c3Remove_liquidity...540479302023-01-19 19:58:2410 days 3 hrs ago0x427caf62d66fcec08fa55f0991dbca66a8bfa7e7 IN  Curve.fi: 2Pool Pool0 FTM0.004193742792
0xb98cece5b1e4b7872cf91edb09a63dcc1a1a86c5de44482622dd5a1b8350860dApprove540147892023-01-19 2:04:2010 days 21 hrs ago0x65a6baef398cd44ee4c6cab1daf54c7bba6d61dc IN  Curve.fi: 2Pool Pool0 FTM0.004237651571
0x37564841a23ba24deba2ce8373a0c00ece9ff0fe5d8debe8b267b41b57094616Add_liquidity540143542023-01-19 1:56:0710 days 21 hrs ago0x65a6baef398cd44ee4c6cab1daf54c7bba6d61dc IN  Curve.fi: 2Pool Pool0 FTM0.019141802353
[ Download CSV Export 

OVERVIEW

Curve is an exchange liquidity pool on Ethereum (like Uniswap) designed for (1) extremely efficient stablecoin trading (2) low risk, supplemental fee income for liquidity providers, without an opportunity cost.

Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xdd432d932cdd32bc56383034da821139d99f7048e869aa776e047e3fea2403f623209092021-02-20 18:18:52708 days 4 hrs ago Fantom: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.7

Optimization Enabled:
N/A

Other Settings:
None license

Contract Source Code (Vyper language format)

# @version ^0.2.7
"""
@title StableSwap
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2020 - all rights reserved
@notice Minimal pool implementation with no lending
@dev 3pool implementation on Fantom
"""

interface ERC20:
    def transfer(_receiver: address, _amount: uint256): nonpayable
    def transferFrom(_sender: address, _receiver: address, _amount: uint256): nonpayable
    def approve(_spender: address, _amount: uint256): nonpayable
    def balanceOf(_owner: address) -> uint256: view


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


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

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

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

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

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

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

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

event 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
PRECISION_MUL: constant(uint256[N_COINS]) = [1, 1000000000000]
RATES: constant(uint256[N_COINS]) = [1000000000000000000, 1000000000000000000000000000000]

# fixed constants
FEE_DENOMINATOR: constant(uint256) = 10 ** 10
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)

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

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

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

@external
def __init__(
    _name: String[32],
    _symbol: String[10],
    _owner: address,
    _coins: address[N_COINS],
    _A: uint256,
    _fee: uint256,
    _admin_fee: uint256
):
    """
    @notice Contract constructor
    @param _name Name of the new pool
    @param _symbol Token symbol
    @param _owner Contract owner address
    @param _coins Addresses of ERC20 conracts of coins
    @param _A Amplification coefficient multiplied by n * (n - 1)
    @param _fee Fee to charge for exchanges
    @param _admin_fee Admin fee
    """
    for i in range(N_COINS):
        assert _coins[i] != ZERO_ADDRESS
    self.coins = _coins
    self.initial_A = _A * A_PRECISION
    self.future_A = _A * A_PRECISION
    self.fee = _fee
    self.admin_fee = _admin_fee
    self.owner = _owner
    self.kill_deadline = block.timestamp + KILL_DEADLINE_DT

    self.name = _name
    self.symbol = _symbol

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

### ERC20 Functionality ###

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


@external
def transfer(_to : address, _value : uint256) -> bool:
    """
    @dev Transfer token for a specified address
    @param _to The address to transfer to.
    @param _value The amount to be transferred.
    """
    # NOTE: vyper does not allow underflows
    #       so the following subtraction would revert on insufficient balance
    self.balanceOf[msg.sender] -= _value
    self.balanceOf[_to] += _value

    log Transfer(msg.sender, _to, _value)
    return True


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

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

    log Transfer(_from, _to, _value)
    return True


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

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


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

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

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


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


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


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


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


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

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

    Converging solution:
    D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1)
    """
    S: uint256 = 0
    Dprev: uint256 = 0

    for _x in _xp:
        S += _x
    if S == 0:
        return 0

    D: uint256 = S
    Ann: uint256 = _amp * N_COINS
    for _i in range(255):
        D_P: uint256 = D
        for _x in _xp:
            D_P = D_P * D / (_x * N_COINS)  # If division by 0, this will be borked: only withdrawal will work. And that is good
        Dprev = D
        D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P)
        # Equality with the precision of 1
        if D > Dprev:
            if D - Dprev <= 1:
                return D
        else:
            if Dprev - D <= 1:
                return D
    # convergence typically occurs in 4 rounds or less, this should be unreachable!
    # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity`
    raise


@view
@internal
def _get_D_mem(_balances: uint256[N_COINS], _amp: uint256) -> uint256:
    return self._get_D(self._xp_mem(_balances), _amp)


@view
@external
def get_virtual_price() -> uint256:
    """
    @notice The current virtual price of the pool LP token
    @dev Useful for calculating profits
    @return LP token virtual price normalized to 1e18
    """
    D: uint256 = self._get_D(self._xp_sstore(), 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
    return D * PRECISION / self.totalSupply


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


@external
@nonreentrant('lock')
def add_liquidity(_amounts: uint256[N_COINS], _min_mint_amount: uint256) -> uint256:
    """
    @notice Deposit coins into the pool
    @param _amounts List of amounts of coins to deposit
    @param _min_mint_amount Minimum amount of LP tokens to mint from the deposit
    @return Amount of LP tokens received by depositing
    """
    assert not self.is_killed  # dev: is killed

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

    # Initial invariant
    D0: uint256 = self._get_D_mem(old_balances, amp)
    token_supply: uint256 = self.totalSupply
    new_balances: uint256[N_COINS] = old_balances
    for i in range(N_COINS):
        if token_supply == 0:
            assert _amounts[i] > 0  # dev: initial deposit requires all coins
        # balances store amounts of c-tokens
        new_balances[i] += _amounts[i]

    # Invariant after change
    D1: uint256 = self._get_D_mem(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
            new_balance: uint256 = new_balances[i]
            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] -= fees[i]
        D2 = self._get_D_mem(new_balances, amp)
        mint_amount = token_supply * (D2 - D0) / D0
    else:
        self.balances = new_balances
        mint_amount = D1  # Take the dust if there was any
    assert mint_amount >= _min_mint_amount, "Slippage screwed you"

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

    # Mint pool tokens
    token_supply += mint_amount
    self.balanceOf[msg.sender] += mint_amount
    self.totalSupply = token_supply
    log Transfer(ZERO_ADDRESS, msg.sender, mint_amount)

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

    return mint_amount


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

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

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

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

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

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

    for _i in range(N_COINS):
        if _i == i:
            _x = x
        elif _i != j:
            _x = _xp[_i]
        else:
            continue
        S += _x
        c = c * D / (_x * N_COINS)
    c = c * D * A_PRECISION / (Ann * N_COINS)
    b: uint256 = S + D * A_PRECISION / Ann  # - D
    y: uint256 = D
    for _i in range(255):
        y_prev = y
        y = (y*y + c) / (2 * y + b - D)
        # Equality with the precision of 1
        if y > y_prev:
            if y - y_prev <= 1:
                return y
        else:
            if y_prev - y <= 1:
                return y
    raise


@view
@external
def get_dy(i: int128, j: int128, _dx: uint256) -> uint256:
    xp: uint256[N_COINS] = self._xp_sstore()
    rates: uint256[N_COINS] = RATES

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


@external
@nonreentrant('lock')
def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> 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

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

    rates: uint256[N_COINS] = 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

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

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

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

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

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

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

    return dy


@external
@nonreentrant('lock')
def 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
    """
    total_supply: uint256 = self.totalSupply
    amounts: uint256[N_COINS] = empty(uint256[N_COINS])
    fees: uint256[N_COINS] = empty(uint256[N_COINS])  # Fees are unused but we've got them historically in event

    for i in range(N_COINS):
        old_balance: uint256 = self.balances[i]
        value: uint256 = old_balance * _amount / total_supply
        assert value >= _min_amounts[i], "Withdrawal resulted in fewer coins than expected"
        self.balances[i] = old_balance - value
        amounts[i] = value
        _response: Bytes[32] = raw_call(
            self.coins[i],
            concat(
                method_id("transfer(address,uint256)"),
                convert(msg.sender, bytes32),
                convert(value, bytes32),
            ),
            max_outsize=32,
        )
        if len(_response) > 0:
            assert convert(_response, bool)

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

    log RemoveLiquidity(msg.sender, amounts, fees, total_supply - _amount)

    return amounts


@external
@nonreentrant('lock')
def remove_liquidity_imbalance(_amounts: uint256[N_COINS], _max_burn_amount: uint256) -> uint256:
    """
    @notice Withdraw coins from the pool in an imbalanced amount
    @param _amounts List of amounts of underlying coins to withdraw
    @param _max_burn_amount Maximum amount of LP token to burn in the withdrawal
    @return Actual amount of the LP token burned in the withdrawal
    """
    assert not self.is_killed  # dev: is killed

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

    fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
    admin_fee: uint256 = self.admin_fee
    fees: uint256[N_COINS] = empty(uint256[N_COINS])
    for i in range(N_COINS):
        new_balance: uint256 = new_balances[i]
        ideal_balance: uint256 = D1 * old_balances[i] / D0
        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(new_balances, amp)

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

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

    for i in range(N_COINS):
        if _amounts[i] != 0:
            _response: Bytes[32] = raw_call(
                self.coins[i],
                concat(
                    method_id("transfer(address,uint256)"),
                    convert(msg.sender, bytes32),
                    convert(_amounts[i], bytes32),
                ),
                max_outsize=32,
            )
            if len(_response) > 0:
                assert convert(_response, bool)

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

    total_supply: uint256 = self.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
        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)
    precisions: uint256[N_COINS] = PRECISION_MUL
    dy = (dy - 1) / precisions[i]  # Withdraw less to account for rounding errors
    dy_0: uint256 = (xp[i] - new_y) / precisions[i]  # w/o fees

    return dy, dy_0 - dy, total_supply


@view
@external
def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256:
    """
    @notice Calculate the amount received when withdrawing a single coin
    @param _token_amount Amount of LP tokens to burn in the withdrawal
    @param i Index value of the coin to withdraw
    @return Amount of coin received
    """
    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
    total_supply: uint256 = 0
    dy, dy_fee, total_supply = 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)

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

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

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

    return dy


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

    initial_A: uint256 = self._A()
    future_A_p: uint256 = _future_A * A_PRECISION

    assert _future_A > 0 and _future_A < MAX_A
    if future_A_p < initial_A:
        assert future_A_p * MAX_A_CHANGE >= initial_A
    else:
        assert future_A_p <= initial_A * MAX_A_CHANGE

    self.initial_A = initial_A
    self.future_A = future_A_p
    self.initial_A_time = block.timestamp
    self.future_A_time = _future_time

    log RampA(initial_A, future_A_p, block.timestamp, _future_time)


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

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

    log StopRampA(current_A, block.timestamp)


@external
def commit_new_fee(_new_fee: uint256, _new_admin_fee: uint256):
    assert msg.sender == self.owner  # dev: only owner
    assert self.admin_actions_deadline == 0  # dev: active action
    assert _new_fee <= MAX_FEE  # dev: fee exceeds maximum
    assert _new_admin_fee <= MAX_ADMIN_FEE  # dev: admin fee exceeds maximum

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

    log CommitNewFee(deadline, _new_fee, _new_admin_fee)


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

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

    log NewFee(fee, admin_fee)


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

    self.admin_actions_deadline = 0


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

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

    log CommitNewAdmin(deadline, _owner)


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

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

    log NewAdmin(owner)


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

    self.transfer_ownership_deadline = 0


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


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

    for i in range(N_COINS):
        coin: address = self.coins[i]
        value: uint256 = ERC20(coin).balanceOf(self) - self.balances[i]
        if value > 0:
            _response: Bytes[32] = raw_call(
                coin,
                concat(
                    method_id("transfer(address,uint256)"),
                    convert(msg.sender, bytes32),
                    convert(value, bytes32),
                ),
                max_outsize=32,
            )  # dev: failed transfer
            if len(_response) > 0:
                assert convert(_response, bool)


@external
def donate_admin_fees():
    assert msg.sender == self.owner  # dev: only owner
    for i in range(N_COINS):
        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

[{"name":"Transfer","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"receiver","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"name":"TokenExchange","inputs":[{"type":"address","name":"buyer","indexed":true},{"type":"int128","name":"sold_id","indexed":false},{"type":"uint256","name":"tokens_sold","indexed":false},{"type":"int128","name":"bought_id","indexed":false},{"type":"uint256","name":"tokens_bought","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"invariant","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256","name":"token_amount","indexed":false},{"type":"uint256","name":"coin_amount","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityImbalance","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"invariant","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitNewAdmin","inputs":[{"type":"uint256","name":"deadline","indexed":true},{"type":"address","name":"admin","indexed":true}],"anonymous":false,"type":"event"},{"name":"NewAdmin","inputs":[{"type":"address","name":"admin","indexed":true}],"anonymous":false,"type":"event"},{"name":"CommitNewFee","inputs":[{"type":"uint256","name":"deadline","indexed":true},{"type":"uint256","name":"fee","indexed":false},{"type":"uint256","name":"admin_fee","indexed":false}],"anonymous":false,"type":"event"},{"name":"NewFee","inputs":[{"type":"uint256","name":"fee","indexed":false},{"type":"uint256","name":"admin_fee","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"type":"uint256","name":"old_A","indexed":false},{"type":"uint256","name":"new_A","indexed":false},{"type":"uint256","name":"initial_time","indexed":false},{"type":"uint256","name":"future_time","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"type":"uint256","name":"A","indexed":false},{"type":"uint256","name":"t","indexed":false}],"anonymous":false,"type":"event"},{"outputs":[],"inputs":[{"type":"string","name":"_name"},{"type":"string","name":"_symbol"},{"type":"address","name":"_owner"},{"type":"address[2]","name":"_coins"},{"type":"uint256","name":"_A"},{"type":"uint256","name":"_fee"},{"type":"uint256","name":"_admin_fee"}],"stateMutability":"nonpayable","type":"constructor"},{"name":"decimals","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":261},{"name":"transfer","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":74713},{"name":"transferFrom","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":111355},{"name":"approve","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":37794},{"name":"A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":5439},{"name":"A_precise","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":5401},{"name":"get_virtual_price","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1009729},{"name":"calc_token_amount","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"_amounts"},{"type":"bool","name":"_is_deposit"}],"stateMutability":"view","type":"function","gas":4016564},{"name":"add_liquidity","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"_amounts"},{"type":"uint256","name":"_min_mint_amount"}],"stateMutability":"nonpayable","type":"function","gas":6262149},{"name":"get_dy","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"_dx"}],"stateMutability":"view","type":"function","gas":2447901},{"name":"exchange","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"_dx"},{"type":"uint256","name":"_min_dy"}],"stateMutability":"nonpayable","type":"function","gas":2610850},{"name":"remove_liquidity","outputs":[{"type":"uint256[2]","name":""}],"inputs":[{"type":"uint256","name":"_amount"},{"type":"uint256[2]","name":"_min_amounts"}],"stateMutability":"nonpayable","type":"function","gas":238744},{"name":"remove_liquidity_imbalance","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"_amounts"},{"type":"uint256","name":"_max_burn_amount"}],"stateMutability":"nonpayable","type":"function","gas":6261825},{"name":"calc_withdraw_one_coin","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_token_amount"},{"type":"int128","name":"i"}],"stateMutability":"view","type":"function","gas":1609},{"name":"remove_liquidity_one_coin","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_token_amount"},{"type":"int128","name":"i"},{"type":"uint256","name":"_min_amount"}],"stateMutability":"nonpayable","type":"function","gas":3947982},{"name":"ramp_A","outputs":[],"inputs":[{"type":"uint256","name":"_future_A"},{"type":"uint256","name":"_future_time"}],"stateMutability":"nonpayable","type":"function","gas":152014},{"name":"stop_ramp_A","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":148775},{"name":"commit_new_fee","outputs":[],"inputs":[{"type":"uint256","name":"_new_fee"},{"type":"uint256","name":"_new_admin_fee"}],"stateMutability":"nonpayable","type":"function","gas":110491},{"name":"apply_new_fee","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":97272},{"name":"revert_new_parameters","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":21925},{"name":"commit_transfer_ownership","outputs":[],"inputs":[{"type":"address","name":"_owner"}],"stateMutability":"nonpayable","type":"function","gas":74663},{"name":"apply_transfer_ownership","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":60740},{"name":"revert_transfer_ownership","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":22015},{"name":"admin_balances","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"i"}],"stateMutability":"view","type":"function","gas":3511},{"name":"withdraw_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":15067},{"name":"donate_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":74995},{"name":"kill_me","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":38028},{"name":"unkill_me","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":22165},{"name":"coins","outputs":[{"type":"address","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":2250},{"name":"balances","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":2280},{"name":"fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2201},{"name":"admin_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2231},{"name":"owner","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2261},{"name":"initial_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2291},{"name":"future_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2321},{"name":"initial_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2351},{"name":"future_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2381},{"name":"admin_actions_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2411},{"name":"transfer_ownership_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2441},{"name":"future_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2471},{"name":"future_admin_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2501},{"name":"future_owner","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2531},{"name":"name","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":8963},{"name":"symbol","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":8016},{"name":"balanceOf","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":2836},{"name":"allowance","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"},{"type":"address","name":"arg1"}],"stateMutability":"view","type":"function","gas":3081},{"name":"totalSupply","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2681}]

610100614e966101403960406020614e9660c03960c051614e96016102403960206020614e9660c03960c05160040135111561003a57600080fd5b602a60206020614e960160c03960c051614e96016102a039600a60206020614e960160c03960c05160040135111561007157600080fd5b60206040614e960160c03960c05160a01c1561008c57600080fd5b60206060614e960160c03960c05160a01c156100a757600080fd5b60206080614e960160c03960c05160a01c156100c257600080fd5b61030060006002818352015b60006101a061030051600281106100e457600080fd5b6020020151186100f357600080fd5b5b81516001018083528114156100ce575b5050600060c052602060c0206101a05181556101c0516001820155506101e0516064808202821582848304141761013a57600080fd5b809050905090506005556101e0516064808202821582848304141761015e57600080fd5b8090509050905060065561020051600255610220516003556101805160045542624f1a0081818301101561019157600080fd5b80820190509050600f5561024080601060c052602060c020602082510161012060006002818352015b826101205160200211156101cd576101ef565b61012051602002850151610120518501555b81516001018083528114156101ba575b5050505050506102a080601160c052602060c020602082510161012060006002818352015b8261012051602002111561022757610249565b61012051602002850151610120518501555b8151600101808352811415610214575b5050505050506000610300523060007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610300a3614e7e56341561000a57600080fd5b600436101561001857614bf4565b600035601c5263313ce567600051141561003957601260005260206000f350005b63a9059cbb60005114156100ee5760043560a01c1561005757600080fd5b60123360e05260c052604060c02080546024358082101561007757600080fd5b80820390509050815550601260043560e05260c052604060c02080546024358181830110156100a557600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b6323b872dd600051141561023c5760043560a01c1561010c57600080fd5b60243560a01c1561011c57600080fd5b601260043560e05260c052604060c02080546044358082101561013e57600080fd5b80820390509050815550601260243560e05260c052604060c020805460443581818301101561016c57600080fd5b80820190509050815550601360043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101405118156101fb5761014051604435808210156101d657600080fd5b80820390509050601360043560e05260c052604060c0203360e05260c052604060c020555b604435610160526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a3600160005260206000f350005b63095ea7b360005114156102b95760043560a01c1561025a57600080fd5b60243560133360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b60001561045c575b61014052600854610160526006546101805261016051421015610449576005546101a0526007546101c0526101a0516101805111156103a2576101a051610180516101a0518082101561031357600080fd5b80820390509050426101c0518082101561032c57600080fd5b80820390509050808202821582848304141761034757600080fd5b80905090509050610160516101c0518082101561036357600080fd5b80820390509050808061037557600080fd5b82049050905081818301101561038a57600080fd5b80820190509050600052600051610140515650610444565b6101a0516101a05161018051808210156103bb57600080fd5b80820390509050426101c051808210156103d457600080fd5b8082039050905080820282158284830414176103ef57600080fd5b80905090509050610160516101c0518082101561040b57600080fd5b80820390509050808061041d57600080fd5b8204905090508082101561043057600080fd5b808203905090506000526000516101405156505b61045a565b610180516000526000516101405156505b005b63f446c1d0600051141561048f57600658016102c1565b610140526101405160648082049050905060005260206000f350005b6376a2f0f060005114156104b957600658016102c1565b610140526101405160005260206000f350005b6000156105b9575b61014052670de0b6b3a7640000610160526c0c9f2c9cd04674edea40000000610180526101a060006002818352015b6101606101a0516002811061050457600080fd5b60200201516101a0516002811061051a57600080fd5b600160c052602060c0200154808202821582848304141761053a57600080fd5b80905090509050670de0b6b3a7640000808204905090506101606101a0516002811061056557600080fd5b60200201525b81516001018083528114156104f0575b505060406101a0525b60006101a051111515610596576105b2565b60206101a05103610160015160206101a051036101a052610584565b6101405156005b6000156106bd575b610180526101405261016052670de0b6b3a76400006101a0526c0c9f2c9cd04674edea400000006101c0526101e060006002818352015b6101a06101e0516002811061060c57600080fd5b60200201516101406101e0516002811061062557600080fd5b6020020151808202821582848304141761063e57600080fd5b80905090509050670de0b6b3a7640000808204905090506101a06101e0516002811061066957600080fd5b60200201525b81516001018083528114156105f8575b505060406101e0525b60006101e05111151561069a576106b6565b60206101e051036101a0015160206101e051036101e052610688565b6101805156005b6000156109c5575b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c080516102005181818301101561071057600080fd5b808201905090508152505b81516001018083528114156106e8575b50506101c05115156107465760006000526000516101a05156505b6101c05161020052610180516002808202821582848304141761076857600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a05102610140015161028052610260516102005180820282158284830414176107bf57600080fd5b8090509050905061028051600280820282158284830414176107e057600080fd5b8090509050905080806107f257600080fd5b820490509050610260525b8151600101808352811415610793575b5050610200516101e052610220516101c051808202821582848304141761083357600080fd5b80905090509050606480820490509050610260516002808202821582848304141761085d57600080fd5b8090509050905081818301101561087357600080fd5b8082019050905061020051808202821582848304141761089257600080fd5b80905090509050610220516064808210156108ac57600080fd5b808203905090506102005180820282158284830414176108cb57600080fd5b8090509050905060648082049050905060036102605180820282158284830414176108f557600080fd5b8090509050905081818301101561090b57600080fd5b80820190509050808061091d57600080fd5b820490509050610200526101e051610200511115610972576001610200516101e0518082101561094c57600080fd5b8082039050905011151561096d576102005160005250506000516101a05156505b6109ab565b60016101e051610200518082101561098957600080fd5b808203905090501115156109aa576102005160005250506000516101a05156505b5b5b815160010180835281141561077f575b505060006000fd005b600015610adc575b6101a0526101405261016052610180526101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016105c1565b61024052610260526101a05261018052610160526101405261024080516102805280602001516102a052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a051610280516102c0526102a0516102e0526101805161030052610300516102e0516102c051600658016106c5565b610360526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610360516000526000516101a0515650005b63bb7b8b806000511415610c0b5761014051600658016104c1565b61016052610180526101405261016080516101a05280602001516101c052506101405161016051610180516101a0516101c051600658016102c1565b6101e0526101c0526101a0526101805261016052610140526101e051610200526101405161016051610180516101a0516101c0516101e051610200516101a051610220526101c051610240526102005161026052610260516102405161022051600658016106c5565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516101405261014051670de0b6b3a76400008082028215828483041417610be557600080fd5b809050905090506014548080610bfa57600080fd5b82049050905060005260206000f350005b63ed8e84f36000511415610e795760443560011c15610c2957600080fd5b61014051600658016102c1565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c020015461018052506101405161016051610180516101a051610160516101c052610180516101e0526101405161020052610200516101e0516101c051600658016109cd565b610260526101a052610180526101605261014052610260516101a0526101c060006002818352015b60443515610d25576101606101c05160028110610ce957600080fd5b60200201805160046101c05160028110610d0257600080fd5b6020020135818183011015610d1657600080fd5b80820190509050815250610d6f565b6101606101c05160028110610d3957600080fd5b60200201805160046101c05160028110610d5257600080fd5b602002013580821015610d6457600080fd5b808203905090508152505b5b8151600101808352811415610ccd575b50506101405161016051610180516101a0516101c051610160516101e0526101805161020052610140516102205261022051610200516101e051600658016109cd565b610280526101c0526101a052610180526101605261014052610280516101c05260006101e05260443515610e16576101c0516101a05180821015610e0657600080fd5b808203905090506101e052610e37565b6101a0516101c05180821015610e2b57600080fd5b808203905090506101e0525b6101e0516014548082028215828483041417610e5257600080fd5b809050905090506101a0518080610e6857600080fd5b82049050905060005260206000f350005b630b4c7e4d60005114156116f05762ffffff5415610e9657600080fd5b600162ffffff55600e5415610eaa57600080fd5b61014051600658016102c1565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c020015461018052506101405161016051610180516101a051610160516101c052610180516101e0526101405161020052610200516101e0516101c051600658016109cd565b610260526101a052610180526101605261014052610260516101a0526014546101c052610160516101e052610180516102005261022060006002818352015b6101c0511515610f9457600060046102205160028110610f8457600080fd5b602002013511610f9357600080fd5b5b6101e06102205160028110610fa857600080fd5b60200201805160046102205160028110610fc157600080fd5b6020020135818183011015610fd557600080fd5b808201905090508152505b8151600101808352811415610f65575b50506101405161016051610180516101a0516101c0516101e05161020051610220516101e0516102405261020051610260526101405161028052610280516102605161024051600658016109cd565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610220526101a051610220511161107d57600080fd5b61022051610240526060366102603760006101c05111156113a757600254600280820282158284830414176110b157600080fd5b809050905090506004808204905090506102c0526003546102e05261030060006002818352015b6102205161016061030051600281106110f057600080fd5b6020020151808202821582848304141761110957600080fd5b809050905090506101a051808061111f57600080fd5b820490509050610320526000610340526101e0610300516002811061114357600080fd5b6020020151610360526103605161032051111561117f5761032051610360518082101561116f57600080fd5b80820390509050610340526111a0565b61036051610320518082101561119457600080fd5b80820390509050610340525b6102c0516103405180820282158284830414176111bc57600080fd5b809050905090506402540be4008082049050905061026061030051600281106111e457600080fd5b602002015261036051610260610300516002811061120157600080fd5b60200201516102e051808202821582848304141761121e57600080fd5b809050905090506402540be400808204905090508082101561123f57600080fd5b80820390509050610300516002811061125757600080fd5b600160c052602060c02001556101e0610300516002811061127757600080fd5b602002018051610260610300516002811061129157600080fd5b6020020151808210156112a357600080fd5b808203905090508152505b81516001018083528114156110d8575b5050610140610300525b610300515160206103005101610300526103006103005110156112ea576112c8565b6101e0516103205261020051610340526101405161036052610360516103405161032051600658016109cd565b6103c0526102e0610300525b610300515260206103005103610300526101406103005110151561134657611323565b6103c051610240526101c051610240516101a0518082101561136757600080fd5b80820390509050808202821582848304141761138257600080fd5b809050905090506101a051808061139857600080fd5b8204905090506102a0526113ca565b600160c052602060c0206101e051815561020051600182015550610220516102a0525b6044356102a0511015151561141e576308c379a06102c05260206102e0526014610300527f536c697070616765207363726577656420796f75000000000000000000000000610320526103005060646102dcfd5b6102c060006002818352015b600060046102c0516002811061143f57600080fd5b602002013511156115c85760006004610340527f23b872dd00000000000000000000000000000000000000000000000000000000610360526103406004806020846103a001018260208501600060045af1505080518201915050336020826103a0010152602081019050306020826103a001015260208101905060046102c051600281106114cc57600080fd5b60200201356020826103a0010152602081019050806103a0526103a090508051602001806104608284600060045af161150457600080fd5b505060206105406104605161048060006102c0516002811061152557600080fd5b600060c052602060c02001545af161153c57600080fd5b60203d8082111561154d578061154f565b815b90509050610520526105208051602001806102e08284600060045af161157457600080fd5b505060006102e05111156115c7576102e080602001516000825180602090131561159d57600080fd5b80919012156115ab57600080fd5b806020036101000a820490509050905015156115c657600080fd5b5b5b5b815160010180835281141561142a575b50506101c080516102a0518181830110156115f357600080fd5b8082019050905081525060123360e05260c052604060c02080546102a05181818301101561162057600080fd5b808201905090508155506101c0516014556102a0516102c0523360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206102c0a36004356102c0526024356102e0526102605161030052610280516103205261022051610340526101c0516102a0518181830110156116a057600080fd5b8082019050905061036052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c06102c0a26102a051600052600062ffffff5560206000f350600062ffffff55005b600015611b72575b6101e0526101405261016052610180526101a0526101c05261016051610140511861172257600080fd5b600061016051121561173357600080fd5b6002610160511261174357600080fd5b600061014051121561175457600080fd5b6002610140511261176457600080fd5b6101405161016051610180516101a0516101c0516101e05161020051600658016102c1565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c051610260526102005161028052610280516102605161024051600658016106c5565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e05161022052610200516002808202821582848304141761184457600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e051141561188557610180516102a0526118bb565b610160516102e05118156118b5576101a06102e051600281106118a757600080fd5b60200201516102a0526118ba565b611937565b5b61028080516102a0518181830110156118d357600080fd5b80820190509050815250610260516102205180820282158284830414176118f957600080fd5b809050905090506102a0516002808202821582848304141761191a57600080fd5b80905090509050808061192c57600080fd5b820490509050610260525b815160010180835281141561186a575b50506102605161022051808202821582848304141761196557600080fd5b809050905090506064808202821582848304141761198257600080fd5b8090509050905061024051600280820282158284830414176119a357600080fd5b8090509050905080806119b557600080fd5b820490509050610260526102805161022051606480820282158284830414176119dd57600080fd5b809050905090506102405180806119f357600080fd5b820490509050818183011015611a0857600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c05261030051610300518082028215828483041417611a4b57600080fd5b8090509050905061026051818183011015611a6557600080fd5b808201905090506002610300518082028215828483041417611a8657600080fd5b809050905090506102e051818183011015611aa057600080fd5b808201905090506102205180821015611ab857600080fd5b808203905090508080611aca57600080fd5b820490509050610300526102c051610300511115611b1f576001610300516102c05180821015611af957600080fd5b80820390509050111515611b1a576103005160005250506000516101e05156505b611b58565b60016102c0516103005180821015611b3657600080fd5b80820390509050111515611b57576103005160005250506000516101e05156505b5b5b8151600101808352811415611a27575b505060006000fd005b635e0d443f6000511415611dfb5760043580806000811215611b9057195b607f1c15611b9d57600080fd5b90505060243580806000811215611bb057195b607f1c15611bbd57600080fd5b9050506101405161016051600658016104c1565b610180526101a052610160526101405261018080516101405280602001516101605250670de0b6b3a7640000610180526c0c9f2c9cd04674edea400000006101a05261014060043560028110611c2657600080fd5b602002015160443561018060043560028110611c4157600080fd5b60200201518082028215828483041417611c5a57600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611c8057600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c05161024052610140516102605261016051610280526102805161026051610240516102205161020051600658016116f8565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261014060243560028110611d1d57600080fd5b60200201516101e05180821015611d3357600080fd5b80820390509050600180821015611d4957600080fd5b8082039050905061020052600254610200518082028215828483041417611d6f57600080fd5b809050905090506402540be4008082049050905061022052610200516102205180821015611d9c57600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611dc057600080fd5b8090509050905061018060243560028110611dda57600080fd5b60200201518080611dea57600080fd5b82049050905060005260206000f350005b633df0212460005114156125cd5762ffffff5415611e1857600080fd5b600162ffffff5560043580806000811215611e2f57195b607f1c15611e3c57600080fd5b90505060243580806000811215611e4f57195b607f1c15611e5c57600080fd5b905050600e5415611e6c57600080fd5b60018060c052602060c020546101405260018160c052602060c020015461016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016105c1565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a05250670de0b6b3a76400006101c0526c0c9f2c9cd04674edea400000006101e05261018060043560028110611f1c57600080fd5b60200201516044356101c060043560028110611f3757600080fd5b60200201518082028215828483041417611f5057600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611f7657600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e051610200516102205160043561024052602435610260526102005161028052610180516102a0526101a0516102c0526102c0516102a051610280516102605161024051600658016116f8565b6103205261022052610200526101e0526101c0526101a05261018052610160526101405261032051610220526101806024356002811061202357600080fd5b6020020151610220518082101561203957600080fd5b8082039050905060018082101561204f57600080fd5b808203905090506102405261024051600254808202821582848304141761207557600080fd5b809050905090506402540be40080820490509050610260526102405161026051808210156120a257600080fd5b80820390509050670de0b6b3a764000080820282158284830414176120c657600080fd5b809050905090506101c0602435600281106120e057600080fd5b602002015180806120f057600080fd5b820490509050610240526064356102405110151515612173576308c379a06102805260206102a052602e6102c0527f45786368616e676520726573756c74656420696e20666577657220636f696e736102e0527f207468616e206578706563746564000000000000000000000000000000000000610300526102c050608461029cfd5b61026051600354808202821582848304141761218e57600080fd5b809050905090506402540be400808204905090506102805261028051670de0b6b3a764000080820282158284830414176121c757600080fd5b809050905090506101c0602435600281106121e157600080fd5b602002015180806121f157600080fd5b820490509050610280526101406004356002811061220e57600080fd5b602002015160443581818301101561222557600080fd5b808201905090506004356002811061223c57600080fd5b600160c052602060c02001556101406024356002811061225b57600080fd5b6020020151610240518082101561227157600080fd5b80820390509050610280518082101561228957600080fd5b80820390509050602435600281106122a057600080fd5b600160c052602060c020015560006004610300527f23b872dd000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905030602082610360010152602081019050604435602082610360010152602081019050806103605261036090508051602001806104208284600060045af161235157600080fd5b505060206105006104205161044060006004356002811061237157600080fd5b600060c052602060c02001545af161238857600080fd5b60203d80821115612399578061239b565b815b905090506104e0526104e08051602001806102a08284600060045af16123c057600080fd5b505060006102a0511115612413576102a08060200151600082518060209013156123e957600080fd5b80919012156123f757600080fd5b806020036101000a8204905090509050151561241257600080fd5b5b60006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905061024051602082610360010152602081019050806103605261036090508051602001806104008284600060045af16124a957600080fd5b505060206104c0610400516104206000602435600281106124c957600080fd5b600060c052602060c02001545af16124e057600080fd5b60203d808211156124f157806124f3565b815b905090506104a0526104a08051602001806102a08284600060045af161251857600080fd5b505060006102a051111561256b576102a080602001516000825180602090131561254157600080fd5b809190121561254f57600080fd5b806020036101000a8204905090509050151561256a57600080fd5b5b6004356103005260443561032052602435610340526102405161036052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610300a261024051600052600062ffffff5560206000f350600062ffffff55005b635b36389c60005114156129b55762ffffff54156125ea57600080fd5b600162ffffff5560145461014052608036610160376101e060006002818352015b6101e0516002811061261c57600080fd5b600160c052602060c02001546102005261020051600435808202821582848304141761264757600080fd5b8090509050905061014051808061265d57600080fd5b8204905090506102205260246101e0516002811061267a57600080fd5b602002013561022051101515156126f5576308c379a0610240526020610260526030610280527f5769746864726177616c20726573756c74656420696e20666577657220636f696102a0527f6e73207468616e206578706563746564000000000000000000000000000000006102c05261028050608461025cfd5b61020051610220518082101561270a57600080fd5b808203905090506101e0516002811061272257600080fd5b600160c052602060c0200155610220516101606101e0516002811061274657600080fd5b6020020152600060046102a0527fa9059cbb000000000000000000000000000000000000000000000000000000006102c0526102a060048060208461030001018260208501600060045af15050805182019150503360208261030001015260208101905061022051602082610300010152602081019050806103005261030090508051602001806103a08284600060045af16127e157600080fd5b505060206104606103a0516103c060006101e0516002811061280257600080fd5b600060c052602060c02001545af161281957600080fd5b60203d8082111561282a578061282c565b815b90509050610440526104408051602001806102408284600060045af161285157600080fd5b505060006102405111156128a45761024080602001516000825180602090131561287a57600080fd5b809190121561288857600080fd5b806020036101000a820490509050905015156128a357600080fd5b5b5b815160010180835281141561260b575b50506101408051600435808210156128cc57600080fd5b8082039050905081525060123360e05260c052604060c0208054600435808210156128f657600080fd5b80820390509050815550610140516014556004356101e0526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101e0a3610160516101e05261018051610200526101a051610220526101c05161024052610140516004358082101561296c57600080fd5b8082039050905061026052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101e0a2600062ffffff556040610160f3600062ffffff55005b63e310327360005114156131ca5762ffffff54156129d257600080fd5b600162ffffff55600e54156129e657600080fd5b61014051600658016102c1565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c020015461018052506101405161016051610180516101a051610160516101c052610180516101e0526101405161020052610200516101e0516101c051600658016109cd565b610260526101a052610180526101605261014052610260516101a052610160516101c052610180516101e05261020060006002818352015b6101c06102005160028110612aae57600080fd5b60200201805160046102005160028110612ac757600080fd5b602002013580821015612ad957600080fd5b808203905090508152505b8151600101808352811415612a9a575b50506101405161016051610180516101a0516101c0516101e051610200516101c051610220526101e051610240526101405161026052610260516102405161022051600658016109cd565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516102005260025460028082028215828483041417612b8057600080fd5b809050905090506004808204905090506102205260035461024052604036610260376102a060006002818352015b6101c06102a05160028110612bc257600080fd5b60200201516102c052610200516101606102a05160028110612be357600080fd5b60200201518082028215828483041417612bfc57600080fd5b809050905090506101a0518080612c1257600080fd5b8204905090506102e0526000610300526102c0516102e0511115612c55576102e0516102c05180821015612c4557600080fd5b8082039050905061030052612c76565b6102c0516102e05180821015612c6a57600080fd5b80820390509050610300525b61022051610300518082028215828483041417612c9257600080fd5b809050905090506402540be400808204905090506102606102a05160028110612cba57600080fd5b60200201526102c0516102606102a05160028110612cd757600080fd5b6020020151610240518082028215828483041417612cf457600080fd5b809050905090506402540be4008082049050905080821015612d1557600080fd5b808203905090506102a05160028110612d2d57600080fd5b600160c052602060c02001556102c0516102606102a05160028110612d5157600080fd5b602002015180821015612d6357600080fd5b808203905090506101c06102a05160028110612d7e57600080fd5b60200201525b8151600101808352811415612bae575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101c0516102c0526101e0516102e0526101405161030052610300516102e0516102c051600658016109cd565b610360526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610360516102a0526014546102c0526101a0516102a05180821015612e4b57600080fd5b808203905090506102c0518082028215828483041417612e6a57600080fd5b809050905090506101a0518080612e8057600080fd5b8204905090506102e05260006102e05118612e9a57600080fd5b6102e080516001818183011015612eb057600080fd5b808201905090508152506044356102e05111151515612f0e576308c379a0610300526020610320526014610340527f536c697070616765207363726577656420796f750000000000000000000000006103605261034050606461031cfd5b6102c080516102e05180821015612f2457600080fd5b808203905090508152506102c05160145560123360e05260c052604060c02080546102e05180821015612f5657600080fd5b808203905090508155506102e051610300526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610300a361030060006002818352015b600060046103005160028110612fb357600080fd5b6020020135181561312c5760006004610380527fa9059cbb000000000000000000000000000000000000000000000000000000006103a0526103806004806020846103e001018260208501600060045af1505080518201915050336020826103e00101526020810190506004610300516002811061303057600080fd5b60200201356020826103e0010152602081019050806103e0526103e090508051602001806104808284600060045af161306857600080fd5b50506020610540610480516104a06000610300516002811061308957600080fd5b600060c052602060c02001545af16130a057600080fd5b60203d808211156130b157806130b3565b815b90509050610520526105208051602001806103208284600060045af16130d857600080fd5b5050600061032051111561312b5761032080602001516000825180602090131561310157600080fd5b809190121561310f57600080fd5b806020036101000a8204905090509050151561312a57600080fd5b5b5b5b8151600101808352811415612f9e575b505060043561030052602435610320526102605161034052610280516103605261020051610380526102c0516102e0518082101561317a57600080fd5b808203905090506103a052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610300a26102e051600052600062ffffff5560206000f350600062ffffff55005b600015613537575b6101e0526101405261016052610180526101a0526101c05260006101605112156131fb57600080fd5b6002610160511261320b57600080fd5b610140516002808202821582848304141761322557600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a051181561327b576101806102a0516002811061326d57600080fd5b602002015161026052613280565b6132fc565b61024080516102605181818301101561329857600080fd5b80820190509050815250610220516101c05180820282158284830414176132be57600080fd5b8090509050905061026051600280820282158284830414176132df57600080fd5b8090509050905080806132f157600080fd5b820490509050610220525b815160010180835281141561324b575b5050610220516101c051808202821582848304141761332a57600080fd5b809050905090506064808202821582848304141761334757600080fd5b80905090509050610200516002808202821582848304141761336857600080fd5b80905090509050808061337a57600080fd5b82049050905061022052610240516101c051606480820282158284830414176133a257600080fd5b809050905090506102005180806133b857600080fd5b8204905090508181830110156133cd57600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c051808202821582848304141761341057600080fd5b809050905090506102205181818301101561342a57600080fd5b8082019050905060026102c051808202821582848304141761344b57600080fd5b809050905090506102a05181818301101561346557600080fd5b808201905090506101c0518082101561347d57600080fd5b80820390509050808061348f57600080fd5b8204905090506102c052610280516102c05111156134e45760016102c05161028051808210156134be57600080fd5b808203905090501115156134df576102c05160005250506000516101e05156505b61351d565b6001610280516102c051808210156134fb57600080fd5b8082039050905011151561351c576102c05160005250506000516101e05156505b5b5b81516001018083528114156133ec575b505060006000fd005b600015613b16575b6101805261014052610160526101405161016051610180516101a051600658016102c1565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e051600658016104c1565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e052506101405161016051610180516101a0516101c0516101e051610200516101c051610220526101e051610240526101a05161026052610260516102405161022051600658016106c5565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516102005260145461022052610200516101405161020051808202821582848304141761366c57600080fd5b8090509050905061022051808061368257600080fd5b8204905090508082101561369557600080fd5b80820390509050610240526101405161016051610180516101a0516101c0516101e051610200516102205161024051610260516101a05161028052610160516102a0526101c0516102c0526101e0516102e0526102405161030052610300516102e0516102c0516102a05161028051600658016131d2565b61036052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610260526101c051610280526101e0516102a0526002546002808202821582848304141761376a57600080fd5b809050905090506004808204905090506102c0526102e060006002818352015b600061030052610160516102e051141561380c576101c06102e051600281106137b257600080fd5b60200201516102405180820282158284830414176137cf57600080fd5b809050905090506102005180806137e557600080fd5b82049050905061026051808210156137fc57600080fd5b808203905090506103005261388b565b6101c06102e0516002811061382057600080fd5b60200201516101c06102e0516002811061383957600080fd5b602002015161024051808202821582848304141761385657600080fd5b8090509050905061020051808061386c57600080fd5b8204905090508082101561387f57600080fd5b80820390509050610300525b6102806102e0516002811061389f57600080fd5b6020020180516102c0516103005180820282158284830414176138c157600080fd5b809050905090506402540be40080820490509050808210156138e257600080fd5b808203905090508152505b815160010180835281141561378a575b5050610280610160516002811061391357600080fd5b6020020151610140610300525b6103005151602061030051016103005261030061030051101561394257613920565b6101a05161032052610160516103405261028051610360526102a05161038052610240516103a0526103a05161038051610360516103405161032051600658016131d2565b610400526102e0610300525b61030051526020610300510361030052610140610300511015156139b657613993565b61040051808210156139c757600080fd5b808203905090506102e05260016103005264e8d4a51000610320526102e0516001808210156139f557600080fd5b808203905090506103006101605160028110613a1057600080fd5b60200201518080613a2057600080fd5b8204905090506102e0526101c06101605160028110613a3e57600080fd5b60200201516102605180821015613a5457600080fd5b808203905090506103006101605160028110613a6f57600080fd5b60200201518080613a7f57600080fd5b820490509050610340526103608080806102e051815250506020810190508080610340516102e05180821015613ab457600080fd5b80820390509050815250506020810190508080610220518152505060609050905060c05260c0516103c0525b60006103c051111515613af257613b0e565b60206103c05103610360015160206103c051036103c052613ae0565b610180515650005b63cc2b27d76000511415613bae5760243580806000811215613b3457195b607f1c15613b4157600080fd5b905050600435610140526024356101605261016051610140516006580161353f565b6101c0526101e052610200526101c08080808051610220525050602081019050808080516102405250506020810190508080805161026052505050506102205160005260206000f350005b631a4d01d26000511415613fb25762ffffff5415613bcb57600080fd5b600162ffffff5560243580806000811215613be257195b607f1c15613bef57600080fd5b905050600e5415613bff57600080fd5b606036610140376101405161016051610180516004356101a0526024356101c0526101c0516101a0516006580161353f565b6102205261024052610260526101805261016052610140526102208080808051610280525050602081019050808080516102a0525050602081019050808080516102c05250505050610280805161014052806020015161016052806040015161018052506044356101405110151515613ce9576308c379a06101a05260206101c05260186101e0527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610200526101e05060646101bcfd5b60243560028110613cf957600080fd5b600160c052602060c02001805461014051610160516003548082028215828483041417613d2557600080fd5b809050905090506402540be40080820490509050818183011015613d4857600080fd5b8082019050905080821015613d5c57600080fd5b80820390509050815550610180805160043580821015613d7b57600080fd5b808203905090508152506101805160145560123360e05260c052604060c020805460043580821015613dac57600080fd5b808203905090508155506004356101a0526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a360006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061014051602082610260010152602081019050806102605261026090508051602001806103008284600060045af1613e7d57600080fd5b505060206103c061030051610320600060243560028110613e9d57600080fd5b600060c052602060c02001545af1613eb457600080fd5b60203d80821115613ec55780613ec7565b815b905090506103a0526103a08051602001806101a08284600060045af1613eec57600080fd5b505060006101a0511115613f3f576101a0806020015160008251806020901315613f1557600080fd5b8091901215613f2357600080fd5b806020036101000a82049050905090501515613f3e57600080fd5b5b6004356102005261014051610220526101805160043580821015613f6257600080fd5b8082039050905061024052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06060610200a261014051600052600062ffffff5560206000f350600062ffffff55005b633c157e646000511415614156576004543314613fce57600080fd5b60075462015180818183011015613fe457600080fd5b80820190509050421015613ff757600080fd5b426201518081818301101561400b57600080fd5b80820190509050602435101561402057600080fd5b61014051600658016102c1565b610160526101405261016051610140526004356064808202821582848304141761405657600080fd5b80905090509050610160526000600435111561407957620f42406004351061407c565b60005b61408557600080fd5b610140516101605110156140c8576101405161016051600a80820282158284830414176140b157600080fd5b8090509050905010156140c357600080fd5b6140f9565b61014051600a80820282158284830414176140e257600080fd5b809050905090506101605111156140f857600080fd5b5b6101405160055561016051600655426007556024356008556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a658860005114156141db57600454331461417257600080fd5b61014051600658016102c1565b6101605261014052610160516101405261014051600555610140516006554260075542600855610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a146760005114156142995760045433146141f757600080fd5b6009541561420457600080fd5b64012a05f200600435111561421857600080fd5b6402540be400602435111561422c57600080fd5b426203f48081818301101561424057600080fd5b808201905090506101405261014051600955600435600b55602435600c556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97600051141561432d5760045433146142b557600080fd5b6009544210156142c457600080fd5b6000600954186142d357600080fd5b6000600955600b5461014052600c546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb600051141561435057600454331461434957600080fd5b6000600955005b636b441a4060005114156143e45760043560a01c1561436e57600080fd5b600454331461437c57600080fd5b600a541561438957600080fd5b426203f48081818301101561439d57600080fd5b808201905090506101405261014051600a55600435600d55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae600051141561445d57600454331461440057600080fd5b600a5442101561440f57600080fd5b6000600a541861441e57600080fd5b6000600a55600d546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193600051141561448057600454331461447957600080fd5b6000600a55005b63e2e7d264600051141561451c5760206101c060246370a0823161014052306101605261015c600435600281106144b657600080fd5b600060c052602060c02001545afa6144cd57600080fd5b601f3d116144da57600080fd5b6000506101c051600435600281106144f157600080fd5b600160c052602060c02001548082101561450a57600080fd5b8082039050905060005260206000f350005b6330c54085600051141561473757600454331461453857600080fd5b61014060006002818352015b610140516002811061455557600080fd5b600060c052602060c020015461016052602061022060246370a082316101a052306101c0526101bc610160515afa61458c57600080fd5b601f3d1161459957600080fd5b6000506102205161014051600281106145b157600080fd5b600160c052602060c0200154808210156145ca57600080fd5b808203905090506101805260006101805111156147225760006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061018051602082610260010152602081019050806102605261026090508051602001806103008284600060045af161467757600080fd5b505060206103c0610300516103206000610160515af161469657600080fd5b60203d808211156146a757806146a9565b815b905090506103a0526103a08051602001806101a08284600060045af16146ce57600080fd5b505060006101a0511115614721576101a08060200151600082518060209013156146f757600080fd5b809190121561470557600080fd5b806020036101000a8204905090509050151561472057600080fd5b5b5b5b8151600101808352811415614544575b5050005b63524c390160005114156147e557600454331461475357600080fd5b61014060006002818352015b60206101e060246370a0823161016052306101805261017c610140516002811061478857600080fd5b600060c052602060c02001545afa61479f57600080fd5b601f3d116147ac57600080fd5b6000506101e05161014051600281106147c457600080fd5b600160c052602060c02001555b815160010180835281141561475f575b5050005b63e3698853600051141561481657600454331461480157600080fd5b42600f541161480f57600080fd5b6001600e55005b633046f972600051141561483957600454331461483257600080fd5b6000600e55005b63c6610657600051141561486e576004356002811061485757600080fd5b600060c052602060c020015460005260206000f350005b634903b0d160005114156148a3576004356002811061488c57600080fd5b600160c052602060c020015460005260206000f350005b63ddca3f4360005114156148bf5760025460005260206000f350005b63fee3f7f960005114156148db5760035460005260206000f350005b638da5cb5b60005114156148f75760045460005260206000f350005b635409491a60005114156149135760055460005260206000f350005b63b4b577ad600051141561492f5760065460005260206000f350005b632081066c600051141561494b5760075460005260206000f350005b631405228860005114156149675760085460005260206000f350005b63405e28f860005114156149835760095460005260206000f350005b63e0a0b586600051141561499f57600a5460005260206000f350005b6358680d0b60005114156149bb57600b5460005260206000f350005b63e382446260005114156149d757600c5460005260206000f350005b631ec0cdc160005114156149f357600d5460005260206000f350005b6306fdde036000511415614a9c5760108060c052602060c020610180602082540161012060006003818352015b82610120516020021115614a3357614a55565b61012051850154610120516020028501525b8151600101808352811415614a20575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b416000511415614b455760118060c052602060c020610180602082540161012060006002818352015b82610120516020021115614adc57614afe565b61012051850154610120516020028501525b8151600101808352811415614ac9575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6370a082316000511415614b7f5760043560a01c15614b6357600080fd5b601260043560e05260c052604060c0205460005260206000f350005b63dd62ed3e6000511415614bd75760043560a01c15614b9d57600080fd5b60243560a01c15614bad57600080fd5b601360043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b6318160ddd6000511415614bf35760145460005260206000f350005b5b60006000fd5b610284614e7e03610284600039610284614e7e036000f3000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000002d407ddb06311396fe14d4b49da5f0471447d45c0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e00000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b7500000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200000000000000000000000000000000000000000000000000000000000000001143757276652e6669204441492f5553444300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084441492b55534443000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000002d407ddb06311396fe14d4b49da5f0471447d45c0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e00000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b7500000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200000000000000000000000000000000000000000000000000000000000000001143757276652e6669204441492f5553444300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084441492b55534443000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Curve.fi DAI/USDC
Arg [1] : _symbol (string): DAI+USDC
Arg [2] : _owner (address): 0x2d407ddb06311396fe14d4b49da5f0471447d45c
Arg [3] : _coins (address[2]): 0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e,0x04068da6c83afcfa0e13ba15a6696662335d5b75
Arg [4] : _A (uint256): 450
Arg [5] : _fee (uint256): 4000000
Arg [6] : _admin_fee (uint256): 5000000000

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000002d407ddb06311396fe14d4b49da5f0471447d45c
Arg [3] : 0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e
Arg [4] : 00000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c2
Arg [6] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [7] : 000000000000000000000000000000000000000000000000000000012a05f200
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [9] : 43757276652e6669204441492f55534443000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [11] : 4441492b55534443000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.