Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x67e9ff05653c1800466db7e7e6f93f953667a543afe9b190584461ac2d2c1714 | 0x617a6960 | 1402067 | 499 days 10 hrs ago | 0x7eeac6cddbd1d0b8af061742d41877d7f707289a | IN | Create: Vyper_contract | 0 ETH | 0.100435297846 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.15
Contract Source Code (Vyper language format)
# @version 0.2.15 """ @title StableSwap @author Curve.Fi @license Copyright (c) Curve.Fi, 2020-2021 - all rights reserved @notice 2 coin pool implementation with no lending @dev ERC20 support for return True/revert, return True/False, return None Support for positive-rebasing and fee-on-transfer tokens """ from vyper.interfaces import ERC20 interface Factory: def convert_fees() -> bool: nonpayable def get_fee_receiver(_pool: address) -> address: view def admin() -> address: view event Transfer: sender: indexed(address) receiver: indexed(address) value: uint256 event Approval: owner: indexed(address) spender: indexed(address) value: uint256 event TokenExchange: buyer: indexed(address) sold_id: int128 tokens_sold: uint256 bought_id: int128 tokens_bought: uint256 event AddLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event RemoveLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] token_supply: uint256 event RemoveLiquidityOne: provider: indexed(address) token_amount: uint256 coin_amount: uint256 token_supply: uint256 event RemoveLiquidityImbalance: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event RampA: old_A: uint256 new_A: uint256 initial_time: uint256 future_time: uint256 event StopRampA: A: uint256 t: uint256 N_COINS: constant(int128) = 2 PRECISION: constant(uint256) = 10 ** 18 FEE_DENOMINATOR: constant(uint256) = 10 ** 10 ADMIN_FEE: constant(uint256) = 5000000000 A_PRECISION: constant(uint256) = 100 MAX_A: constant(uint256) = 10 ** 6 MAX_A_CHANGE: constant(uint256) = 10 MIN_RAMP_TIME: constant(uint256) = 86400 factory: address coins: public(address[N_COINS]) admin_balances: public(uint256[N_COINS]) fee: public(uint256) # fee * 1e10 initial_A: public(uint256) future_A: public(uint256) initial_A_time: public(uint256) future_A_time: public(uint256) rate_multipliers: uint256[N_COINS] name: public(String[64]) symbol: public(String[32]) balanceOf: public(HashMap[address, uint256]) allowance: public(HashMap[address, HashMap[address, uint256]]) totalSupply: public(uint256) @external def __init__(): # we do this to prevent the implementation contract from being used as a pool self.fee = 31337 @external def initialize( _name: String[32], _symbol: String[10], _coins: address[4], _rate_multipliers: uint256[4], _A: uint256, _fee: uint256, ): """ @notice Contract constructor @param _name Name of the new pool @param _symbol Token symbol @param _coins List of all ERC20 conract addresses of coins @param _rate_multipliers List of number of decimals in coins @param _A Amplification coefficient multiplied by n ** (n - 1) @param _fee Fee to charge for exchanges """ # check if fee was already set to prevent initializing contract twice assert self.fee == 0 for i in range(N_COINS): coin: address = _coins[i] if coin == ZERO_ADDRESS: break self.coins[i] = coin self.rate_multipliers[i] = _rate_multipliers[i] A: uint256 = _A * A_PRECISION self.initial_A = A self.future_A = A self.fee = _fee self.factory = msg.sender self.name = concat("Curve.fi Factory Plain Pool: ", _name) self.symbol = concat(_symbol, "-f") # fire a transfer event so block explorers identify the contract as an ERC20 log Transfer(ZERO_ADDRESS, self, 0) ### ERC20 Functionality ### @view @external def decimals() -> uint256: """ @notice Get the number of decimals for this token @dev Implemented as a view method to reduce gas costs @return uint256 decimal places """ return 18 @internal def _transfer(_from: address, _to: address, _value: uint256): # # NOTE: vyper does not allow underflows # # so the following subtraction would revert on insufficient balance self.balanceOf[_from] -= _value self.balanceOf[_to] += _value log Transfer(_from, _to, _value) @external def transfer(_to : address, _value : uint256) -> bool: """ @dev Transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred. """ self._transfer(msg.sender, _to, _value) return True @external def transferFrom(_from : address, _to : address, _value : uint256) -> bool: """ @dev Transfer tokens from one address to another. @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred """ self._transfer(_from, _to, _value) _allowance: uint256 = self.allowance[_from][msg.sender] if _allowance != MAX_UINT256: self.allowance[_from][msg.sender] = _allowance - _value return True @external def approve(_spender : address, _value : uint256) -> bool: """ @notice Approve the passed address to transfer the specified amount of tokens on behalf of msg.sender @dev Beware that changing an allowance via this method brings the risk that someone may use both the old and new allowance by unfortunate transaction ordering: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 @param _spender The address which will transfer the funds @param _value The amount of tokens that may be transferred @return bool success """ self.allowance[msg.sender][_spender] = _value log Approval(msg.sender, _spender, _value) return True ### StableSwap Functionality ### @view @internal def _balances() -> uint256[N_COINS]: result: uint256[N_COINS] = empty(uint256[N_COINS]) for i in range(N_COINS): result[i] = ERC20(self.coins[i]).balanceOf(self) - self.admin_balances[i] return result @view @external def balances(i: uint256) -> uint256: """ @notice Get the current balance of a coin within the pool, less the accrued admin fees @param i Index value for the coin to query balance of @return Token balance """ return self._balances()[i] @view @external def get_balances() -> uint256[N_COINS]: return self._balances() @view @internal def _A() -> uint256: """ Handle ramping A up or down """ t1: uint256 = self.future_A_time A1: uint256 = self.future_A if block.timestamp < t1: A0: uint256 = self.initial_A t0: uint256 = self.initial_A_time # Expressions in uint256 cannot have negative numbers, thus "if" if A1 > A0: return A0 + (A1 - A0) * (block.timestamp - t0) / (t1 - t0) else: return A0 - (A0 - A1) * (block.timestamp - t0) / (t1 - t0) else: # when t1 == 0 or block.timestamp >= t1 return A1 @view @external def admin_fee() -> uint256: return ADMIN_FEE @view @external def A() -> uint256: return self._A() / A_PRECISION @view @external def A_precise() -> uint256: return self._A() @pure @internal def _xp_mem(_rates: uint256[N_COINS], _balances: uint256[N_COINS]) -> uint256[N_COINS]: result: uint256[N_COINS] = empty(uint256[N_COINS]) for i in range(N_COINS): result[i] = _rates[i] * _balances[i] / PRECISION return result @pure @internal def get_D(_xp: uint256[N_COINS], _amp: uint256) -> uint256: """ D invariant calculation in non-overflowing integer operations iteratively A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i)) Converging solution: D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1) """ S: uint256 = 0 for x in _xp: S += x if S == 0: return 0 D: uint256 = S Ann: uint256 = _amp * N_COINS for i in range(255): D_P: uint256 = D * D / _xp[0] * D / _xp[1] / (N_COINS)**2 Dprev: uint256 = D D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P) # Equality with the precision of 1 if D > Dprev: if D - Dprev <= 1: return D else: if Dprev - D <= 1: return D # convergence typically occurs in 4 rounds or less, this should be unreachable! # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity` raise @view @internal def get_D_mem(_rates: uint256[N_COINS], _balances: uint256[N_COINS], _amp: uint256) -> uint256: xp: uint256[N_COINS] = self._xp_mem(_rates, _balances) return self.get_D(xp, _amp) @view @external def get_virtual_price() -> uint256: """ @notice The current virtual price of the pool LP token @dev Useful for calculating profits @return LP token virtual price normalized to 1e18 """ amp: uint256 = self._A() balances: uint256[N_COINS] = self._balances() xp: uint256[N_COINS] = self._xp_mem(self.rate_multipliers, balances) D: uint256 = self.get_D(xp, amp) # D is in the units similar to DAI (e.g. converted to precision 1e18) # When balanced, D = n * x_u - total virtual value of the portfolio return D * PRECISION / self.totalSupply @view @external def calc_token_amount(_amounts: uint256[N_COINS], _is_deposit: bool) -> uint256: """ @notice Calculate addition or reduction in token supply from a deposit or withdrawal @dev This calculation accounts for slippage, but not fees. Needed to prevent front-running, not for precise calculations! @param _amounts Amount of each coin being deposited @param _is_deposit set True for deposits, False for withdrawals @return Expected amount of LP tokens received """ amp: uint256 = self._A() balances: uint256[N_COINS] = self._balances() D0: uint256 = self.get_D_mem(self.rate_multipliers, balances, amp) for i in range(N_COINS): amount: uint256 = _amounts[i] if _is_deposit: balances[i] += amount else: balances[i] -= amount D1: uint256 = self.get_D_mem(self.rate_multipliers, balances, amp) diff: uint256 = 0 if _is_deposit: diff = D1 - D0 else: diff = D0 - D1 return diff * self.totalSupply / D0 @external @nonreentrant('lock') def add_liquidity( _amounts: uint256[N_COINS], _min_mint_amount: uint256, _receiver: address = msg.sender ) -> uint256: """ @notice Deposit coins into the pool @param _amounts List of amounts of coins to deposit @param _min_mint_amount Minimum amount of LP tokens to mint from the deposit @param _receiver Address that owns the minted LP tokens @return Amount of LP tokens received by depositing """ amp: uint256 = self._A() old_balances: uint256[N_COINS] = self._balances() rates: uint256[N_COINS] = self.rate_multipliers # Initial invariant D0: uint256 = self.get_D_mem(rates, old_balances, amp) total_supply: uint256 = self.totalSupply new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): amount: uint256 = _amounts[i] if amount > 0: coin: address = self.coins[i] initial: uint256 = ERC20(coin).balanceOf(self) response: Bytes[32] = raw_call( coin, concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(amount, bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) # dev: failed transfer new_balances[i] += ERC20(coin).balanceOf(self) - initial else: assert total_supply != 0 # dev: initial deposit requires all coins # Invariant after change D1: uint256 = self.get_D_mem(rates, new_balances, amp) assert D1 > D0 # We need to recalculate the invariant accounting for fees # to calculate fair user's share fees: uint256[N_COINS] = empty(uint256[N_COINS]) mint_amount: uint256 = 0 if total_supply > 0: # Only account for fees if we are not the first to deposit base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) for i in range(N_COINS): ideal_balance: uint256 = D1 * old_balances[i] / D0 difference: uint256 = 0 new_balance: uint256 = new_balances[i] if ideal_balance > new_balance: difference = ideal_balance - new_balance else: difference = new_balance - ideal_balance fees[i] = base_fee * difference / FEE_DENOMINATOR self.admin_balances[i] += fees[i] * ADMIN_FEE / FEE_DENOMINATOR new_balances[i] -= fees[i] D2: uint256 = self.get_D_mem(rates, new_balances, amp) mint_amount = total_supply * (D2 - D0) / D0 else: mint_amount = D1 # Take the dust if there was any assert mint_amount >= _min_mint_amount, "Slippage screwed you" # Mint pool tokens total_supply += mint_amount self.balanceOf[_receiver] += mint_amount self.totalSupply = total_supply log Transfer(ZERO_ADDRESS, _receiver, mint_amount) log AddLiquidity(msg.sender, _amounts, fees, D1, total_supply) return mint_amount @view @internal def get_y(i: int128, j: int128, x: uint256, xp: uint256[N_COINS]) -> uint256: """ Calculate x[j] if one makes x[i] = x Done by solving quadratic equation iteratively. x_1**2 + x_1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i != j # dev: same coin assert j >= 0 # dev: j below zero assert j < N_COINS # dev: j above N_COINS # should be unreachable, but good for safety assert i >= 0 assert i < N_COINS amp: uint256 = self._A() D: uint256 = self.get_D(xp, amp) S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 c: uint256 = D Ann: uint256 = amp * N_COINS for _i in range(N_COINS): if _i == i: _x = x elif _i != j: _x = xp[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann # - D y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @external def get_dy(i: int128, j: int128, dx: uint256) -> uint256: """ @notice Calculate the current output dy given input dx @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param dx Amount of `i` being exchanged @return Amount of `j` predicted """ rates: uint256[N_COINS] = self.rate_multipliers xp: uint256[N_COINS] = self._xp_mem(rates, self._balances()) x: uint256 = xp[i] + (dx * rates[i] / PRECISION) y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 fee: uint256 = self.fee * dy / FEE_DENOMINATOR return (dy - fee) * PRECISION / rates[j] @external @nonreentrant('lock') def exchange( i: int128, j: int128, _dx: uint256, _min_dy: uint256, _receiver: address = msg.sender, ) -> uint256: """ @notice Perform an exchange between two coins @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param _dx Amount of `i` being exchanged @param _min_dy Minimum amount of `j` to receive @return Actual amount of `j` received """ rates: uint256[N_COINS] = self.rate_multipliers old_balances: uint256[N_COINS] = self._balances() xp: uint256[N_COINS] = self._xp_mem(rates, old_balances) coin: address = self.coins[i] dx: uint256 = ERC20(coin).balanceOf(self) response: Bytes[32] = raw_call( coin, concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(_dx, bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) dx = ERC20(coin).balanceOf(self) - dx x: uint256 = xp[i] + dx * rates[i] / PRECISION y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 # -1 just in case there were some rounding errors dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR # Convert all to real units dy = (dy - dy_fee) * PRECISION / rates[j] assert dy >= _min_dy, "Exchange resulted in fewer coins than expected" self.admin_balances[j] += (dy_fee * ADMIN_FEE / FEE_DENOMINATOR) * PRECISION / rates[j] response = raw_call( self.coins[j], concat( method_id("transfer(address,uint256)"), convert(_receiver, bytes32), convert(dy, bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) log TokenExchange(msg.sender, i, _dx, j, dy) return dy @external @nonreentrant('lock') def remove_liquidity( _burn_amount: uint256, _min_amounts: uint256[N_COINS], _receiver: address = msg.sender ) -> uint256[N_COINS]: """ @notice Withdraw coins from the pool @dev Withdrawal amounts are based on current deposit ratios @param _burn_amount Quantity of LP tokens to burn in the withdrawal @param _min_amounts Minimum amounts of underlying coins to receive @param _receiver Address that receives the withdrawn coins @return List of amounts of coins that were withdrawn """ total_supply: uint256 = self.totalSupply amounts: uint256[N_COINS] = empty(uint256[N_COINS]) balances: uint256[N_COINS] = self._balances() for i in range(N_COINS): value: uint256 = balances[i] * _burn_amount / total_supply assert value >= _min_amounts[i], "Withdrawal resulted in fewer coins than expected" amounts[i] = value response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(_receiver, bytes32), convert(value, bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) total_supply -= _burn_amount self.balanceOf[msg.sender] -= _burn_amount self.totalSupply = total_supply log Transfer(msg.sender, ZERO_ADDRESS, _burn_amount) log RemoveLiquidity(msg.sender, amounts, empty(uint256[N_COINS]), total_supply) return amounts @external @nonreentrant('lock') def remove_liquidity_imbalance( _amounts: uint256[N_COINS], _max_burn_amount: uint256, _receiver: address = msg.sender ) -> uint256: """ @notice Withdraw coins from the pool in an imbalanced amount @param _amounts List of amounts of underlying coins to withdraw @param _max_burn_amount Maximum amount of LP token to burn in the withdrawal @param _receiver Address that receives the withdrawn coins @return Actual amount of the LP token burned in the withdrawal """ amp: uint256 = self._A() old_balances: uint256[N_COINS] = self._balances() rates: uint256[N_COINS] = self.rate_multipliers D0: uint256 = self.get_D_mem(rates, old_balances, amp) new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): amount: uint256 = _amounts[i] if amount != 0: new_balances[i] -= amount response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(_receiver, bytes32), convert(amount, bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) D1: uint256 = self.get_D_mem(rates, new_balances, amp) fees: uint256[N_COINS] = empty(uint256[N_COINS]) base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) for i in range(N_COINS): ideal_balance: uint256 = D1 * old_balances[i] / D0 difference: uint256 = 0 new_balance: uint256 = new_balances[i] if ideal_balance > new_balance: difference = ideal_balance - new_balance else: difference = new_balance - ideal_balance fees[i] = base_fee * difference / FEE_DENOMINATOR self.admin_balances[i] += fees[i] * ADMIN_FEE / FEE_DENOMINATOR new_balances[i] -= fees[i] D2: uint256 = self.get_D_mem(rates, new_balances, amp) total_supply: uint256 = self.totalSupply burn_amount: uint256 = ((D0 - D2) * total_supply / D0) + 1 assert burn_amount > 1 # dev: zero tokens burned assert burn_amount <= _max_burn_amount, "Slippage screwed you" total_supply -= burn_amount self.totalSupply = total_supply self.balanceOf[msg.sender] -= burn_amount log Transfer(msg.sender, ZERO_ADDRESS, burn_amount) log RemoveLiquidityImbalance(msg.sender, _amounts, fees, D1, total_supply) return burn_amount @pure @internal def get_y_D(A: uint256, i: int128, xp: uint256[N_COINS], D: uint256) -> uint256: """ Calculate x[i] if one reduces D from being calculated for xp to D Done by solving quadratic equation iteratively. x_1**2 + x_1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i >= 0 # dev: i below zero assert i < N_COINS # dev: i above N_COINS S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 c: uint256 = D Ann: uint256 = A * N_COINS for _i in range(N_COINS): if _i != i: _x = xp[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @internal def _calc_withdraw_one_coin(_burn_amount: uint256, i: int128) -> uint256[2]: # First, need to calculate # * Get current D # * Solve Eqn against y_i for D - _token_amount amp: uint256 = self._A() rates: uint256[N_COINS] = self.rate_multipliers xp: uint256[N_COINS] = self._xp_mem(rates, self._balances()) D0: uint256 = self.get_D(xp, amp) total_supply: uint256 = self.totalSupply D1: uint256 = D0 - _burn_amount * D0 / total_supply new_y: uint256 = self.get_y_D(amp, i, xp, D1) base_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) xp_reduced: uint256[N_COINS] = empty(uint256[N_COINS]) for j in range(N_COINS): dx_expected: uint256 = 0 xp_j: uint256 = xp[j] if j == i: dx_expected = xp_j * D1 / D0 - new_y else: dx_expected = xp_j - xp_j * D1 / D0 xp_reduced[j] = xp_j - base_fee * dx_expected / FEE_DENOMINATOR dy: uint256 = xp_reduced[i] - self.get_y_D(amp, i, xp_reduced, D1) dy_0: uint256 = (xp[i] - new_y) * PRECISION / rates[i] # w/o fees dy = (dy - 1) * PRECISION / rates[i] # Withdraw less to account for rounding errors return [dy, dy_0 - dy] @view @external def calc_withdraw_one_coin(_burn_amount: uint256, i: int128) -> uint256: """ @notice Calculate the amount received when withdrawing a single coin @param _burn_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @return Amount of coin received """ return self._calc_withdraw_one_coin(_burn_amount, i)[0] @external @nonreentrant('lock') def remove_liquidity_one_coin( _burn_amount: uint256, i: int128, _min_received: uint256, _receiver: address = msg.sender, ) -> uint256: """ @notice Withdraw a single coin from the pool @param _burn_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @param _min_received Minimum amount of coin to receive @param _receiver Address that receives the withdrawn coins @return Amount of coin received """ dy: uint256[2] = self._calc_withdraw_one_coin(_burn_amount, i) assert dy[0] >= _min_received, "Not enough coins removed" self.admin_balances[i] += dy[1] * ADMIN_FEE / FEE_DENOMINATOR total_supply: uint256 = self.totalSupply - _burn_amount self.totalSupply = total_supply self.balanceOf[msg.sender] -= _burn_amount log Transfer(msg.sender, ZERO_ADDRESS, _burn_amount) response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(_receiver, bytes32), convert(dy[0], bytes32), ), max_outsize=32, ) if len(response) > 0: assert convert(response, bool) log RemoveLiquidityOne(msg.sender, _burn_amount, dy[0], total_supply) return dy[0] @external def ramp_A(_future_A: uint256, _future_time: uint256): assert msg.sender == Factory(self.factory).admin() # dev: only owner assert block.timestamp >= self.initial_A_time + MIN_RAMP_TIME assert _future_time >= block.timestamp + MIN_RAMP_TIME # dev: insufficient time _initial_A: uint256 = self._A() _future_A_p: uint256 = _future_A * A_PRECISION assert _future_A > 0 and _future_A < MAX_A if _future_A_p < _initial_A: assert _future_A_p * MAX_A_CHANGE >= _initial_A else: assert _future_A_p <= _initial_A * MAX_A_CHANGE self.initial_A = _initial_A self.future_A = _future_A_p self.initial_A_time = block.timestamp self.future_A_time = _future_time log RampA(_initial_A, _future_A_p, block.timestamp, _future_time) @external def stop_ramp_A(): assert msg.sender == Factory(self.factory).admin() # dev: only owner current_A: uint256 = self._A() self.initial_A = current_A self.future_A = current_A self.initial_A_time = block.timestamp self.future_A_time = block.timestamp # now (block.timestamp < t1) is always False, so we return saved A log StopRampA(current_A, block.timestamp) @external def withdraw_admin_fees(): receiver: address = Factory(self.factory).get_fee_receiver(self) for i in range(N_COINS): amount: uint256 = self.admin_balances[i] if amount != 0: coin: address = self.coins[i] raw_call( coin, concat( method_id("transfer(address,uint256)"), convert(receiver, bytes32), convert(amount, bytes32) ) ) self.admin_balances[i] = 0
[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true},{"name":"spender","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"TokenExchange","inputs":[{"name":"buyer","type":"address","indexed":true},{"name":"sold_id","type":"int128","indexed":false},{"name":"tokens_sold","type":"uint256","indexed":false},{"name":"bought_id","type":"int128","indexed":false},{"name":"tokens_bought","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amount","type":"uint256","indexed":false},{"name":"coin_amount","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityImbalance","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[2]","indexed":false},{"name":"fees","type":"uint256[2]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"name":"old_A","type":"uint256","indexed":false},{"name":"new_A","type":"uint256","indexed":false},{"name":"initial_time","type":"uint256","indexed":false},{"name":"future_time","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"name":"A","type":"uint256","indexed":false},{"name":"t","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"initialize","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_coins","type":"address[4]"},{"name":"_rate_multipliers","type":"uint256[4]"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"}],"outputs":[],"gas":471502},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":318},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":77977},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":115912},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":37851},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":15163},{"stateMutability":"view","type":"function","name":"get_balances","inputs":[],"outputs":[{"name":"","type":"uint256[2]"}],"gas":15139},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":498},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10824},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":10786},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":859368},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}],"gas":3347181},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_min_mint_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2128404},{"stateMutability":"nonpayable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[2]"}],"outputs":[{"name":"","type":"uint256[2]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[2]"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256[2]"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_max_burn_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[2]"},{"name":"_max_burn_amount","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}],"gas":1130},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_received","type":"uint256"},{"name":"_receiver","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[],"gas":162161},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[],"gas":157625},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[],"gas":68306},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":3093},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3123},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3108},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3138},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3168},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3198},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3228},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13488},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":11241},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3533},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3778},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3378}]
Contract Creation Code
617a69600a5561469b56600436101561000d576131ff565b600035601c526000513461468c5763a461b3c881141561030e576040600435600401610140376020600435600401351161468c57602a6024356004016101a037600a602435600401351161468c5760443560a01c61468c5760643560a01c61468c5760843560a01c61468c5760a43560a01c61468c57600a5461468c5761020060006002818352015b604461020051600481101561468c57602002013561022052610220516100bb5761010c565b61022051600161020051600281101561468c57026006015560c461020051600481101561468c576020020135600161020051600281101561468c5702600f01555b8151600101808352811415610096575b505061014435606480820282158284830414171561468c57809050905090506102005261020051600b5561020051600c5561016435600a55336005556000601d610220527f43757276652e666920466163746f727920506c61696e20506f6f6c3a2000000061024052610220601d8060208461028001018260208501600060045af150508051820191505061014060208060208461028001018260208501600060045af150508051820191505080610280526102809050806011602082510161012060006003818352015b826101205160200211156101ea5761020c565b61012051602002850151610120518501555b81516001018083528114156101d7575b50505050505060006101a0600a8060208461028001018260208501600060045af15050805182019150506002610220527f2d660000000000000000000000000000000000000000000000000000000000006102405261022060028060208461028001018260208501600060045af150508051820191505080610280526102809050806015602082510161012060006002818352015b826101205160200211156102b4576102d6565b61012051602002850151610120518501555b81516001018083528114156102a1575b5050505050506000610220523060007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610220a3005b63313ce56781141561032557601260005260206000f35b63a9059cbb8114156103715760043560a01c61468c573361014052600435610160526024356101805261018051610160516101405160065801613205565b600050600160005260206000f35b6323b872dd8114156104485760043560a01c61468c5760243560a01c61468c5760043561014052602435610160526044356101805261018051610160516101405160065801613205565b600050601960043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561043d576101405160443580821061468c5780820390509050601960043560e05260c052604060c0203360e05260c052604060c020555b600160005260206000f35b63095ea7b38114156104bb5760043560a01c61468c5760243560193360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b634903b0d18114156104f557600658016132a4565b6101405261016052610140600435600281101561468c57602002015160005260206000f35b6314f05979811415610519576040600658016132a4565b6101405261016052610140f35b63fee3f7f98114156105345764012a05f20060005260206000f35b63f446c1d08114156105635760065801613381565b610140526101405160648082049050905060005260206000f35b6376a2f0f08114156105895760065801613381565b610140526101405160005260206000f35b63bb7b8b80811415610712576101405160065801613381565b61016052610140526101605161014052610140516101605161018051600658016132a4565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506101405161016051610180516101a0516101c051600f80546101e05260018101546102005250610160516102205261018051610240526102405161022051610200516101e051600658016134d9565b6102a0526102c0526101c0526101a0526101805261016052610140526102a080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101e0516101a051610200526101c051610220526101405161024052610240516102205161020051600658016135b2565b6102a0526101e0526101c0526101a0526101805261016052610140526102a0516101e0526101e051670de0b6b3a764000080820282158284830414171561468c5780905090509050601a5480801561468c5782049050905060005260206000f35b63ed8e84f381141561098c5760443560011c61468c576101405160065801613381565b61016052610140526101605161014052610140516101605161018051600658016132a4565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506101405161016051610180516101a051600f80546101c05260018101546101e052506101605161020052610180516102205261014051610240526102405161022051610200516101e0516101c05160065801613840565b6102a0526101a0526101805261016052610140526102a0516101a0526101c060006002818352015b60046101c051600281101561468c5760200201356101e05260443515610852576101606101c051600281101561468c576020020180516101e051818183011061468c578082019050905081525061087e565b6101606101c051600281101561468c576020020180516101e05180821061468c57808203905090508152505b5b8151600101808352811415610800575b50506101405161016051610180516101a0516101c051600f80546101e05260018101546102005250610160516102205261018051610240526101405161026052610260516102405161022051610200516101e05160065801613840565b6102c0526101c0526101a0526101805261016052610140526102c0516101c05260006101e05260443515610939576101c0516101a05180821061468c57808203905090506101e052610954565b6101a0516101c05180821061468c57808203905090506101e0525b6101e051601a5480820282158284830414171561468c57809050905090506101a05180801561468c5782049050905060005260206000f35b630b4c7e4d8114156109a25733610140526109cd565b630c3e4b548114156109c85760643560a01c61468c5760206064610140376000506109cd565b611208565b60005461468c576001600055610140516101605160065801613381565b61018052610160526101405261018051610160526101405161016051610180516101a051600658016132a4565b6101c0526101e0526101a0526101805261016052610140526101c080516101805280602001516101a05250600f80546101c05260018101546101e052506101405161016051610180516101a0516101c0516101e051610200516101c051610220526101e0516102405261018051610260526101a05161028052610160516102a0526102a0516102805161026051610240516102205160065801613840565b61030052610200526101e0526101c0526101a0526101805261016052610140526103005161020052601a546102205261018051610240526101a0516102605261028060006002818352015b600461028051600281101561468c5760200201356102a05260006102a0511115610d1857600161028051600281101561468c5702600601546102c052602061038060246370a0823161030052306103205261031c6102c0515afa1561468c57601f3d111561468c57600050610380516102e05260006004610360527f23b872dd00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050336020826103c0010152602081019050306020826103c00101526020810190506102a0516020826103c0010152602081019050806103c0526103c090508051602001806104808284600060045af11561468c5750506020610560610480516104a060006102c0515af11561468c5760203d80821115610c415780610c43565b815b90509050610540526105408051602001806103008284600060045af11561468c5750506000610300511115610ca557610300806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b61024061028051600281101561468c5760200201805160206103e060246370a0823161036052306103805261037c6102c0515afa1561468c57601f3d111561468c576000506103e0516102e05180821061468c5780820390509050818183011061468c5780820190509050815250610d25565b600061022051181561468c575b5b8151600101808352811415610b00575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101c0516102a0526101e0516102c052610240516102e0526102605161030052610160516103205261032051610300516102e0516102c0516102a05160065801613840565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526102005161028051111561468c576060366102a03760006102205111156110c957600a54600280820282158284830414171561468c57809050905090506004808204905090506103005261032060006002818352015b6102805161018061032051600281101561468c57602002015180820282158284830414171561468c57809050905090506102005180801561468c578204905090506103405260006103605261024061032051600281101561468c5760200201516103805261038051610340511115610ec857610340516103805180821061468c578082039050905061036052610ee3565b610380516103405180821061468c5780820390509050610360525b610300516103605180820282158284830414171561468c57809050905090506402540be400808204905090506102a061032051600281101561468c576020020152600161032051600281101561468c570260080180546102a061032051600281101561468c57602002015164012a05f20080820282158284830414171561468c57809050905090506402540be40080820490509050818183011061468c578082019050905081555061024061032051600281101561468c576020020180516102a061032051600281101561468c57602002015180821061468c57808203905090508152505b8151600101808352811415610e37575b5050610140610340525b6103405151602061034051016103405261034061034051101561100457610fe2565b6101c051610360526101e05161038052610240516103a052610260516103c052610160516103e0526103e0516103c0516103a051610380516103605160065801613840565b61044052610320610340525b61034051526020610340510361034052610140610340511061107657611055565b610440516103205261022051610320516102005180821061468c578082039050905080820282158284830414171561468c57809050905090506102005180801561468c578204905090506102e0526110d2565b610280516102e0525b6044356102e0511015611124576308c379a0610300526020610320526014610340527f536c697070616765207363726577656420796f750000000000000000000000006103605261034050606461031cfd5b61022080516102e051818183011061468c578082019050905081525060186101405160e05260c052604060c02080546102e051818183011061468c578082019050905081555061022051601a556102e051610300526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610300a360406004610300376102a051610340526102c051610360526102805161038052610220516103a052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610300a26102e051600052600060005560206000f35b635e0d443f8114156114da576004358080600081121561122457195b607f1c61468c579050506024358080600081121561123e57195b607f1c61468c57905050600f805461014052600181015461016052506101405161016051610180516101a051600658016132a4565b6101c0526101e0526101a0526101805261016052610140526101c0805161020052806020015161022052506101405161016051610180516101a0516101c0516101e0516102005161022051610140516102405261016051610260526102005161028052610220516102a0526102a051610280516102605161024051600658016134d9565b610300526103205261022052610200526101e0526101c0526101a05261018052610160526101405261030080516101805280602001516101a05250610180600435600281101561468c576020020151604435610140600435600281101561468c57602002015180820282158284830414171561468c5780905090509050670de0b6b3a764000080820490509050818183011061468c57808201905090506101c0526101405161016051610180516101a0516101c0516101e05160406004610200376101c0516102405261018051610260526101a0516102805261028051610260516102405161022051610200516006580161396d565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e052610180602435600281101561468c5760200201516101e05180821061468c5780820390509050600180821061468c578082039050905061020052600a546102005180820282158284830414171561468c57809050905090506402540be4008082049050905061022052610200516102205180821061468c5780820390509050670de0b6b3a764000080820282158284830414171561468c5780905090509050610140602435600281101561468c57602002015180801561468c5782049050905060005260206000f35b633df021248114156114f057336101405261151b565b63ddc1f59d8114156115165760843560a01c61468c57602060846101403760005061151b565b611c89565b60015461468c5760016001556004358080600081121561153757195b607f1c61468c579050506024358080600081121561155157195b607f1c61468c57905050600f805461016052600181015461018052506101405161016051610180516101a0516101c051600658016132a4565b6101e052610200526101c0526101a0526101805261016052610140526101e080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a051610260526101c0516102805261028051610260516102405161022051600658016134d9565b6102e05261030052610200526101e0526101c0526101a0526101805261016052610140526102e080516101e052806020015161020052506001600435600281101561468c5702600601546102205260206102e060246370a0823161026052306102805261027c610220515afa1561468c57601f3d111561468c576000506102e05161024052600060046102c0527f23b872dd000000000000000000000000000000000000000000000000000000006102e0526102c060048060208461032001018260208501600060045af15050805182019150503360208261032001015260208101905030602082610320010152602081019050604435602082610320010152602081019050806103205261032090508051602001806103e08284600060045af11561468c57505060206104c06103e0516104006000610220515af11561468c5760203d808211156117605780611762565b815b905090506104a0526104a08051602001806102608284600060045af11561468c57505060006102605111156117c457610260806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b602061034060246370a082316102c052306102e0526102dc610220515afa1561468c57601f3d111561468c57600050610340516102405180821061468c5780820390509050610240526101e0600435600281101561468c57602002015161024051610160600435600281101561468c57602002015180820282158284830414171561468c5780905090509050670de0b6b3a764000080820490509050818183011061468c57808201905090506102c0526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05160406004610300376102c051610340526101e05161036052610200516103805261038051610360516103405161032051610300516006580161396d565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e0526101e0602435600281101561468c5760200201516102e05180821061468c5780820390509050600180821061468c57808203905090506103005261030051600a5480820282158284830414171561468c57809050905090506402540be4008082049050905061032052610300516103205180821061468c5780820390509050670de0b6b3a764000080820282158284830414171561468c5780905090509050610160602435600281101561468c57602002015180801561468c5782049050905061030052606435610300511015611a68576308c379a061034052602061036052602e610380527f45786368616e676520726573756c74656420696e20666577657220636f696e736103a0527f207468616e2065787065637465640000000000000000000000000000000000006103c05261038050608461035cfd5b6001602435600281101561468c570260080180546103205164012a05f20080820282158284830414171561468c57809050905090506402540be40080820490509050670de0b6b3a764000080820282158284830414171561468c5780905090509050610160602435600281101561468c57602002015180801561468c57820490509050818183011061468c578082019050905081555060006004610340527fa9059cbb00000000000000000000000000000000000000000000000000000000610360526103406004806020846103a001018260208501600060045af1505080518201915050610140516020826103a0010152602081019050610300516020826103a0010152602081019050806103a0526103a090508051602001806104408284600060045af11561468c57505060206105006104405161046060006001602435600281101561468c5702600601545af11561468c5760203d80821115611bce5780611bd0565b815b905090506104e0526104e08051602001806102608284600060045af11561468c5750506000610260511115611c3257610260806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b600435610340526044356103605260243561038052610300516103a052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610340a261030051600052600060015560206000f35b635b36389c811415611c9f573361014052611cca565b633eb1719f811415611cc55760643560a01c61468c576020606461014037600050611cca565b612039565b60025461468c576001600255601a5461016052604036610180376101405161016051610180516101a0516101c0516101e051600658016132a4565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e0525061020060006002818352015b6101c061020051600281101561468c57602002015160043580820282158284830414171561468c57809050905090506101605180801561468c5782049050905061022052602461020051600281101561468c576020020135610220511015611e10576308c379a0610240526020610260526030610280527f5769746864726177616c20726573756c74656420696e20666577657220636f696102a0527f6e73207468616e206578706563746564000000000000000000000000000000006102c05261028050608461025cfd5b6102205161018061020051600281101561468c576020020152600060046102a0527fa9059cbb000000000000000000000000000000000000000000000000000000006102c0526102a060048060208461030001018260208501600060045af15050805182019150506101405160208261030001015260208101905061022051602082610300010152602081019050806103005261030090508051602001806103a08284600060045af11561468c57505060206104606103a0516103c06000600161020051600281101561468c5702600601545af11561468c5760203d80821115611efa5780611efc565b815b90509050610440526104408051602001806102408284600060045af11561468c5750506000610240511115611f5e57610240806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b5b8151600101808352811415611d44575b5050610160805160043580821061468c578082039050905081525060183360e05260c052604060c020805460043580821061468c578082039050905081555061016051601a55600435610200526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610200a361018051610200526101a05161022052604036610240376101605161028052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a0610200a260006002556040610180f35b63e310327381141561204f57336101405261207a565b6352d2cfdd8114156120755760643560a01c61468c57602060646101403760005061207a565b612816565b60035461468c576001600355610140516101605160065801613381565b61018052610160526101405261018051610160526101405161016051610180516101a051600658016132a4565b6101c0526101e0526101a0526101805261016052610140526101c080516101805280602001516101a05250600f80546101c05260018101546101e052506101405161016051610180516101a0516101c0516101e051610200516101c051610220526101e0516102405261018051610260526101a05161028052610160516102a0526102a0516102805161026051610240516102205160065801613840565b61030052610200526101e0526101c0526101a052610180526101605261014052610300516102005261018051610220526101a0516102405261026060006002818352015b600461026051600281101561468c57602002013561028052600061028051181561232b5761022061026051600281101561468c576020020180516102805180821061468c578082039050905081525060006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150506101405160208261036001015260208101905061028051602082610360010152602081019050806103605261036090508051602001806104008284600060045af11561468c57505060206104c0610400516104206000600161026051600281101561468c5702600601545af11561468c5760203d808211156122c657806122c8565b815b905090506104a0526104a08051602001806102a08284600060045af11561468c57505060006102a051111561232a576102a0806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b5b5b81516001018083528114156121a6575b50506101405161016051610180516101a0516101c0516101e051610200516102205161024051610260516101c051610280526101e0516102a052610220516102c052610240516102e0526101605161030052610300516102e0516102c0516102a0516102805160065801613840565b61036052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610360516102605260403661028037600a54600280820282158284830414171561468c57809050905090506004808204905090506102c0526102e060006002818352015b610260516101806102e051600281101561468c57602002015180820282158284830414171561468c57809050905090506102005180801561468c57820490509050610300526000610320526102206102e051600281101561468c57602002015161034052610340516103005111156124ac57610300516103405180821061468c5780820390509050610320526124c7565b610340516103005180821061468c5780820390509050610320525b6102c0516103205180820282158284830414171561468c57809050905090506402540be400808204905090506102806102e051600281101561468c57602002015260016102e051600281101561468c570260080180546102806102e051600281101561468c57602002015164012a05f20080820282158284830414171561468c57809050905090506402540be40080820490509050818183011061468c57808201905090508155506102206102e051600281101561468c576020020180516102806102e051600281101561468c57602002015180821061468c57808203905090508152505b815160010180835281141561241b575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e0516101c051610300526101e05161032052610220516103405261024051610360526101605161038052610380516103605161034051610320516103005160065801613840565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e052601a5461030052610200516102e05180821061468c57808203905090506103005180820282158284830414171561468c57809050905090506102005180801561468c578204905090506001818183011061468c578082019050905061032052600161032051111561468c5760443561032051111561273c576308c379a0610340526020610360526014610380527f536c697070616765207363726577656420796f750000000000000000000000006103a05261038050606461035cfd5b61030080516103205180821061468c578082039050905081525061030051601a5560183360e05260c052604060c02080546103205180821061468c578082039050905081555061032051610340526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610340a3604060046103403761028051610380526102a0516103a052610260516103c052610300516103e052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610340a261032051600052600060035560206000f35b63cc2b27d7811415612870576024358080600081121561283257195b607f1c61468c579050506004356101405260243561016052610160516101405160065801614058565b6101c0526101e0526101c05160005260206000f35b631a4d01d28114156128865733610140526128b1565b63081579a58114156128ac5760643560a01c61468c5760206064610140376000506128b1565b612bc9565b60045461468c576001600455602435808060008112156128cd57195b607f1c61468c579050506101405161016051610180516004356101a0526024356101c0526101c0516101a05160065801614058565b61022052610240526101805261016052610140526102208051610160528060200151610180525060443561016051101561297b576308c379a06101a05260206101c05260186101e0527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610200526101e05060646101bcfd5b6001602435600281101561468c570260080180546101805164012a05f20080820282158284830414171561468c57809050905090506402540be40080820490509050818183011061468c5780820190509050815550601a5460043580821061468c57808203905090506101a0526101a051601a5560183360e05260c052604060c020805460043580821061468c57808203905090508155506004356101c0526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a360006004610220527fa9059cbb000000000000000000000000000000000000000000000000000000006102405261022060048060208461028001018260208501600060045af15050805182019150506101405160208261028001015260208101905061016051602082610280010152602081019050806102805261028090508051602001806103208284600060045af11561468c57505060206103e06103205161034060006001602435600281101561468c5702600601545af11561468c5760203d80821115612b145780612b16565b815b905090506103c0526103c08051602001806101c08284600060045af11561468c57505060006101c0511115612b78576101c0806020015160008251806020901361468c578091901261468c57806020036101000a82049050905090501561468c575b6004356102205261016051610240526101a05161026052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06060610220a261016051600052600060045560206000f35b633c157e64811415612d5d5760206101a0600463f851a4406101405261015c6005545afa1561468c57601f3d111561468c576000506101a05133141561468c57600d5462015180818183011061468c5780820190509050421061468c574262015180818183011061468c57808201905090506024351061468c576101405160065801613381565b61016052610140526101605161014052600435606480820282158284830414171561468c57809050905090506101605260006004351115612c9857620f424060043510612c9b565b60005b1561468c5761014051610160511015612cd9576101405161016051600a80820282158284830414171561468c57809050905090501061468c57612d00565b61014051600a80820282158284830414171561468c5780905090509050610160511161468c575b61014051600b5561016051600c5542600d55602435600e556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588811415612e065760206101a0600463f851a4406101405261015c6005545afa1561468c57601f3d111561468c576000506101a05133141561468c576101405160065801613381565b6101605261014052610160516101405261014051600b5561014051600c5542600d5542600e55610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b6330c54085811415612f6b5760206101e0602463154aa8f561016052306101805261017c6005545afa1561468c57601f3d111561468c576000506101e0516101405261016060006002818352015b600161016051600281101561468c570260080154610180526000610180511815612f5657600161016051600281101561468c5702600601546101a052600060046101c0527fa9059cbb000000000000000000000000000000000000000000000000000000006101e0526101c060048060208461022001018260208501600060045af15050805182019150506101405160208261022001015260208101905061018051602082610220010152602081019050806102205261022090508051602001806102c08284600060045af11561468c575050600060006102c0516102e060006101a0515af11561468c576000600161016051600281101561468c5702600801555b5b8151600101808352811415612e54575b5050005b63c6610657811415612f93576001600435600281101561468c57026006015460005260206000f35b63e2e7d264811415612fbb576001600435600281101561468c57026008015460005260206000f35b63ddca3f43811415612fd357600a5460005260206000f35b635409491a811415612feb57600b5460005260206000f35b63b4b577ad81141561300357600c5460005260206000f35b632081066c81141561301b57600d5460005260206000f35b631405228881141561303357600e5460005260206000f35b6306fdde038114156130d057601180610180602082540161012060006003818352015b826101205160200211156130695761308b565b61012051850154610120516020028501525b8151600101808352811415613056575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b4181141561316d57601580610180602082540161012060006002818352015b8261012051602002111561310657613128565b61012051850154610120516020028501525b81516001018083528114156130f3575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6370a0823181141561319d5760043560a01c61468c57601860043560e05260c052604060c0205460005260206000f35b63dd62ed3e8114156131e55760043560a01c61468c5760243560a01c61468c57601960043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6318160ddd8114156131fd57601a5460005260206000f35b505b60006000fd5b6101a05261014052610160526101805260186101405160e05260c052604060c02080546101805180821061468c578082039050905081555060186101605160e05260c052604060c020805461018051818183011061468c5780820190509050815550610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b61014052604036610160376101a060006002818352015b602061024060246370a082316101c052306101e0526101dc60016101a051600281101561468c5702600601545afa1561468c57601f3d111561468c576000506102405160016101a051600281101561468c57026008015480821061468c57808203905090506101606101a051600281101561468c5760200201525b81516001018083528114156132bb575b505060406101a0525b60006101a0511161335f5761337b565b60206101a05103610160015160206101a051036101a05261334f565b61014051565b61014052600e5461016052600c5461018052610160514210156134c757600b546101a052600d546101c0526101a051610180511115613441576101a051610180516101a05180821061468c5780820390509050426101c05180821061468c578082039050905080820282158284830414171561468c5780905090509050610160516101c05180821061468c578082039050905080801561468c57820490509050818183011061468c578082019050905060005260005161014051566134c2565b6101a0516101a0516101805180821061468c5780820390509050426101c05180821061468c578082039050905080820282158284830414171561468c5780905090509050610160516101c05180821061468c578082039050905080801561468c5782049050905080821061468c578082039050905060005260005161014051565b6134d7565b6101805160005260005161014051565b005b6101c0526101405261016052610180526101a0526040366101e03761022060006002818352015b61014061022051600281101561468c57602002015161018061022051600281101561468c57602002015180820282158284830414171561468c5780905090509050670de0b6b3a7640000808204905090506101e061022051600281101561468c5760200201525b8151600101808352811415613500575b50506040610220525b60006102205111613590576135ac565b602061022051036101e001516020610220510361022052613580565b6101c051565b6101a05261014052610160526101805260006101c05261020060006002818352015b6020610200510261014001516101e0526101c080516101e051818183011061468c57808201905090508152505b81516001018083528114156135d4575b50506101c0516136295760006000526000516101a051565b6101c0516101e05261018051600280820282158284830414171561468c578090509050905061020052610220600060ff818352015b6101e0516101e05180820282158284830414171561468c57809050905090506101405180801561468c578204905090506101e05180820282158284830414171561468c57809050905090506101605180801561468c57820490509050600480820490509050610240526101e05161026052610200516101c05180820282158284830414171561468c578090509050905060648082049050905061024051600280820282158284830414171561468c5780905090509050818183011061468c57808201905090506101e05180820282158284830414171561468c578090509050905061020051606480821061468c57808203905090506101e05180820282158284830414171561468c578090509050905060648082049050905060036102405180820282158284830414171561468c5780905090509050818183011061468c578082019050905080801561468c578204905090506101e052610260516101e05111156137f75760016101e0516102605180821061468c5780820390509050116137f2576101e05160005250506000516101a051565b613827565b6001610260516101e05180821061468c578082039050905011613826576101e05160005250506000516101a051565b5b5b815160010180835281141561365e575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526101405161016051610180516101a0516101c0516101e05161020051610220516101405161024052610160516102605261018051610280526101a0516102a0526102a051610280516102605161024051600658016134d9565b610300526103205261022052610200526101e0526101c0526101a052610180526101605261014052610300805161020052806020015161022052506101405161016051610180516101a0516101c0516101e0516102005161022051610200516102405261022051610260526101c05161028052610280516102605161024051600658016135b2565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516000526000516101e051565b6101e0526101405261016052610180526101a0526101c0526101605161014051181561468c576000610160511261468c57600261016051121561468c576000610140511261468c57600261014051121561468c576101405161016051610180516101a0516101c0516101e0516102005160065801613381565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c051610260526102005161028052610280516102605161024051600658016135b2565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260603661024037610220516102a05261020051600280820282158284830414171561468c57809050905090506102c0526102e060006002818352015b610140516102e0511415613ade576101805161026052613b10565b610160516102e0511815613b0a576101a06102e051600281101561468c57602002015161026052613b0f565b613b7a565b5b610240805161026051818183011061468c57808201905090508152506102a0516102205180820282158284830414171561468c578090509050905061026051600280820282158284830414171561468c578090509050905080801561468c578204905090506102a0525b8151600101808352811415613ac3575b50506102a0516102205180820282158284830414171561468c5780905090509050606480820282158284830414171561468c57809050905090506102c051600280820282158284830414171561468c578090509050905080801561468c578204905090506102a0526102405161022051606480820282158284830414171561468c57809050905090506102c05180801561468c57820490509050818183011061468c57808201905090506102e0526102205161030052610320600060ff818352015b6103005161028052610300516103005180820282158284830414171561468c57809050905090506102a051818183011061468c578082019050905060026103005180820282158284830414171561468c57809050905090506102e051818183011061468c57808201905090506102205180821061468c578082039050905080801561468c578204905090506103005261028051610300511115613d1d576001610300516102805180821061468c578082039050905011613d18576103005160005250506000516101e051565b613d4d565b6001610280516103005180821061468c578082039050905011613d4c576103005160005250506000516101e051565b5b5b8151600101808352811415613c4c575b505060006000fd5b6101e0526101405261016052610180526101a0526101c0526000610160511261468c57600261016051121561468c57606036610200376101c0516102605261014051600280820282158284830414171561468c5780905090509050610280526102a060006002818352015b610160516102a0511815613dfd576101806102a051600281101561468c57602002015161022052613e02565b613e6c565b610200805161022051818183011061468c5780820190509050815250610260516101c05180820282158284830414171561468c578090509050905061022051600280820282158284830414171561468c578090509050905080801561468c57820490509050610260525b8151600101808352811415613dd1575b5050610260516101c05180820282158284830414171561468c5780905090509050606480820282158284830414171561468c578090509050905061028051600280820282158284830414171561468c578090509050905080801561468c5782049050905061026052610200516101c051606480820282158284830414171561468c57809050905090506102805180801561468c57820490509050818183011061468c57808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610240526102c0516102c05180820282158284830414171561468c578090509050905061026051818183011061468c578082019050905060026102c05180820282158284830414171561468c57809050905090506102a051818183011061468c57808201905090506101c05180821061468c578082039050905080801561468c578204905090506102c052610240516102c051111561400f5760016102c0516102405180821061468c57808203905090501161400a576102c05160005250506000516101e051565b61403f565b6001610240516102c05180821061468c57808203905090501161403e576102c05160005250506000516101e051565b5b5b8151600101808352811415613f3e575b505060006000fd5b6101805261014052610160526101405161016051610180516101a05160065801613381565b6101c0526101a0526101805261016052610140526101c0516101a052600f80546101c05260018101546101e052506101405161016051610180516101a0516101c0516101e0516102005161022051600658016132a4565b610240526102605261022052610200526101e0526101c0526101a05261018052610160526101405261024080516102805280602001516102a052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101c0516102c0526101e0516102e05261028051610300526102a0516103205261032051610300516102e0516102c051600658016134d9565b610380526103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610380805161020052806020015161022052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610200516102605261022051610280526101a0516102a0526102a0516102805161026051600658016135b2565b610300526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103005161024052601a546102605261024051610140516102405180820282158284830414171561468c57809050905090506102605180801561468c5782049050905080821061468c5780820390509050610280526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101a0516102c052610160516102e0526102005161030052610220516103205261028051610340526103405161032051610300516102e0516102c05160065801613d66565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a052600a54600280820282158284830414171561468c57809050905090506004808204905090506102c0526040366102e03761032060006002818352015b60006103405261020061032051600281101561468c57602002015161036052610160516103205114156143f657610360516102805180820282158284830414171561468c57809050905090506102405180801561468c578204905090506102a05180821061468c57808203905090506103405261443d565b61036051610360516102805180820282158284830414171561468c57809050905090506102405180801561468c5782049050905080821061468c5780820390509050610340525b610360516102c0516103405180820282158284830414171561468c57809050905090506402540be4008082049050905080821061468c57808203905090506102e061032051600281101561468c5760200201525b815160010180835281141561437e575b50506102e061016051600281101561468c576020020151610140610340525b610340515160206103405101610340526103406103405110156144e2576144c0565b6101a0516103605261016051610380526102e0516103a052610300516103c052610280516103e0526103e0516103c0516103a051610380516103605160065801613d66565b61044052610320610340525b61034051526020610340510361034052610140610340511061455457614533565b6104405180821061468c57808203905090506103205261020061016051600281101561468c5760200201516102a05180821061468c5780820390509050670de0b6b3a764000080820282158284830414171561468c57809050905090506101c061016051600281101561468c57602002015180801561468c578204905090506103405261032051600180821061468c5780820390509050670de0b6b3a764000080820282158284830414171561468c57809050905090506101c061016051600281101561468c57602002015180801561468c57820490509050610320526103205161038052610340516103205180821061468c57808203905090506103a0526040610360525b6000610360511161466a57614686565b602061036051036103800151602061036051036103605261465a565b61018051565b600080fd5b61000a61469b0361000a60003961000a61469b036000f3
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.