Overview
ETH Balance
350.189919129810073345 ETH
Eth Value
$1,089,775.75 (@ $3,111.96/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,040 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Remove_liquidity... | 19853330 | 5 days ago | IN | 0 ETH | 0.00037736 | ||||
Exchange | 19847305 | 6 days ago | IN | 0.000033 ETH | 0.00054336 | ||||
Add_liquidity | 19847305 | 6 days ago | IN | 0.000033 ETH | 0.00061314 | ||||
Remove_liquidity... | 19817447 | 10 days ago | IN | 0 ETH | 0.0005817 | ||||
Exchange | 19815940 | 10 days ago | IN | 0.00001 ETH | 0.00044555 | ||||
Add_liquidity | 19815936 | 10 days ago | IN | 0.00001 ETH | 0.00050277 | ||||
Exchange | 19749611 | 20 days ago | IN | 0.0000008 ETH | 0.00046621 | ||||
Add_liquidity | 19749607 | 20 days ago | IN | 0.0000008 ETH | 0.00055017 | ||||
Exchange | 19749216 | 20 days ago | IN | 0.0001 ETH | 0.00052162 | ||||
Add_liquidity | 19749108 | 20 days ago | IN | 0.0001 ETH | 0.00060087 | ||||
Remove_liquidity... | 19614565 | 39 days ago | IN | 0 ETH | 0.00197082 | ||||
Remove_liquidity... | 19554096 | 47 days ago | IN | 0 ETH | 0.00249035 | ||||
Remove_liquidity... | 19514709 | 53 days ago | IN | 0 ETH | 0.00222786 | ||||
Remove_liquidity... | 19442118 | 63 days ago | IN | 0 ETH | 0.00351033 | ||||
Remove_liquidity... | 19408568 | 68 days ago | IN | 0 ETH | 0.00492555 | ||||
Remove_liquidity... | 19330767 | 78 days ago | IN | 0 ETH | 0.00554604 | ||||
Remove_liquidity... | 19167139 | 101 days ago | IN | 0 ETH | 0.00167634 | ||||
Add_liquidity | 19152831 | 103 days ago | IN | 0.000041 ETH | 0.0017926 | ||||
Add_liquidity | 19116321 | 109 days ago | IN | 0.0013 ETH | 0.00210669 | ||||
Remove_liquidity... | 19109317 | 110 days ago | IN | 0 ETH | 0.00098742 | ||||
Remove_liquidity... | 19109311 | 110 days ago | IN | 0 ETH | 0.00104928 | ||||
Remove_liquidity... | 19109298 | 110 days ago | IN | 0 ETH | 0.00103937 | ||||
Remove_liquidity... | 19109290 | 110 days ago | IN | 0 ETH | 0.00106777 | ||||
Remove_liquidity... | 19109284 | 110 days ago | IN | 0 ETH | 0.00103504 | ||||
Remove_liquidity... | 19109275 | 110 days ago | IN | 0 ETH | 0.00109826 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19892022 | 7 hrs ago | 0.03959496 ETH | ||||
19887830 | 21 hrs ago | 2.501 ETH | ||||
19886181 | 27 hrs ago | 1.1268894 ETH | ||||
19885394 | 29 hrs ago | 3 ETH | ||||
19885148 | 30 hrs ago | 0.00204579 ETH | ||||
19883797 | 35 hrs ago | 0.13260282 ETH | ||||
19883091 | 37 hrs ago | 0.20197994 ETH | ||||
19882958 | 37 hrs ago | 0.00095971 ETH | ||||
19882607 | 39 hrs ago | 6.1 ETH | ||||
19880091 | 47 hrs ago | 0.4423 ETH | ||||
19879358 | 2 days ago | 0.29 ETH | ||||
19878996 | 2 days ago | 0.10379999 ETH | ||||
19875772 | 2 days ago | 5.45298068 ETH | ||||
19875066 | 2 days ago | 0.00097076 ETH | ||||
19871903 | 3 days ago | 1.74227841 ETH | ||||
19871125 | 3 days ago | 4.5 ETH | ||||
19871087 | 3 days ago | 8.44153557 ETH | ||||
19869697 | 3 days ago | 0.11820537 ETH | ||||
19866505 | 3 days ago | 0.52971905 ETH | ||||
19863952 | 4 days ago | 0.10093132 ETH | ||||
19860878 | 4 days ago | 0.00096189 ETH | ||||
19858344 | 5 days ago | 0.11181944 ETH | ||||
19858231 | 5 days ago | 0.10973875 ETH | ||||
19857863 | 5 days ago | 0.10407786 ETH | ||||
19856100 | 5 days ago | 0.11170207 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.8
Contract Source Code (Vyper language format)
# @version 0.2.8 """ @title ETH/ankrETH StableSwap @author Curve.Fi @license Copyright (c) Curve.Fi, 2020 - all rights reserved """ from vyper.interfaces import ERC20 # External Contracts interface aETH: def ratio() -> uint256: view interface CurveToken: def mint(_to: address, _value: uint256) -> bool: nonpayable def burnFrom(_to: address, _value: uint256) -> bool: nonpayable # Events event TokenExchange: buyer: indexed(address) sold_id: int128 tokens_sold: uint256 bought_id: int128 tokens_bought: uint256 event AddLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event RemoveLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] token_supply: uint256 event RemoveLiquidityOne: provider: indexed(address) token_amount: uint256 coin_amount: uint256 event RemoveLiquidityImbalance: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event CommitNewAdmin: deadline: indexed(uint256) admin: indexed(address) event NewAdmin: admin: indexed(address) event CommitNewFee: deadline: indexed(uint256) fee: uint256 admin_fee: uint256 event NewFee: fee: uint256 admin_fee: uint256 event RampA: old_A: uint256 new_A: uint256 initial_time: uint256 future_time: uint256 event StopRampA: A: uint256 t: uint256 # These constants must be set prior to compiling N_COINS: constant(int128) = 2 # fixed constants FEE_DENOMINATOR: constant(uint256) = 10 ** 10 LENDING_PRECISION: constant(uint256) = 10 ** 18 PRECISION: constant(uint256) = 10 ** 18 # The precision to convert to MAX_ADMIN_FEE: constant(uint256) = 10 * 10 ** 9 MAX_FEE: constant(uint256) = 5 * 10 ** 9 MAX_A: constant(uint256) = 10 ** 6 MAX_A_CHANGE: constant(uint256) = 10 ADMIN_ACTIONS_DELAY: constant(uint256) = 3 * 86400 MIN_RAMP_TIME: constant(uint256) = 86400 coins: public(address[N_COINS]) balances: public(uint256[N_COINS]) fee: public(uint256) # fee * 1e10 admin_fee: public(uint256) # admin_fee * 1e10 owner: public(address) lp_token: public(address) A_PRECISION: constant(uint256) = 100 initial_A: public(uint256) future_A: public(uint256) initial_A_time: public(uint256) future_A_time: public(uint256) admin_actions_deadline: public(uint256) transfer_ownership_deadline: public(uint256) future_fee: public(uint256) future_admin_fee: public(uint256) future_owner: public(address) is_killed: bool kill_deadline: uint256 KILL_DEADLINE_DT: constant(uint256) = 2 * 30 * 86400 @external def __init__( _owner: address, _coins: address[N_COINS], _pool_token: address, _A: uint256, _fee: uint256, _admin_fee: uint256, ): """ @notice Contract constructor @param _owner Contract owner address @param _coins Addresses of ERC20 contracts of wrapped coins @param _pool_token Address of the token representing LP share @param _A Amplification coefficient multiplied by n * (n - 1) @param _fee Fee to charge for exchanges @param _admin_fee Admin fee """ assert _coins[0] == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE assert _coins[1] != ZERO_ADDRESS self.coins = _coins self.initial_A = _A * A_PRECISION self.future_A = _A * A_PRECISION self.fee = _fee self.admin_fee = _admin_fee self.owner = _owner self.kill_deadline = block.timestamp + KILL_DEADLINE_DT self.lp_token = _pool_token @view @internal def _A() -> uint256: """ Handle ramping A up or down """ t1: uint256 = self.future_A_time A1: uint256 = self.future_A if block.timestamp < t1: A0: uint256 = self.initial_A t0: uint256 = self.initial_A_time # Expressions in uint256 cannot have negative numbers, thus "if" if A1 > A0: return A0 + (A1 - A0) * (block.timestamp - t0) / (t1 - t0) else: return A0 - (A0 - A1) * (block.timestamp - t0) / (t1 - t0) else: # when t1 == 0 or block.timestamp >= t1 return A1 @view @external def A() -> uint256: return self._A() / A_PRECISION @view @external def A_precise() -> uint256: return self._A() @view @internal def _stored_rates() -> uint256[N_COINS]: return [ convert(PRECISION, uint256), PRECISION * LENDING_PRECISION / aETH(self.coins[1]).ratio() ] @view @internal def _xp(rates: uint256[N_COINS]) -> uint256[N_COINS]: result: uint256[N_COINS] = rates for i in range(N_COINS): result[i] = result[i] * self.balances[i] / PRECISION return result @internal @view def get_D(xp: uint256[N_COINS], amp: uint256) -> uint256: S: uint256 = 0 Dprev: uint256 = 0 for _x in xp: S += _x if S == 0: return 0 D: uint256 = S Ann: uint256 = amp * N_COINS for _i in range(255): D_P: uint256 = D for _x in xp: D_P = D_P * D / (_x * N_COINS) # If division by 0, this will be borked: only withdrawal will work. And that is good Dprev = D D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P) # Equality with the precision of 1 if D > Dprev: if D - Dprev <= 1: return D else: if Dprev - D <= 1: return D # convergence typically occurs in 4 rounds or less, this should be unreachable! # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity` raise @view @internal def get_D_mem(rates: uint256[N_COINS], _balances: uint256[N_COINS], amp: uint256) -> uint256: result: uint256[N_COINS] = rates for i in range(N_COINS): result[i] = result[i] * _balances[i] / PRECISION return self.get_D(result, amp) @view @external def get_virtual_price() -> uint256: """ @notice The current virtual price of the pool LP token @dev Useful for calculating profits @return LP token virtual price normalized to 1e18 """ D: uint256 = self.get_D(self._xp(self._stored_rates()), self._A()) # D is in the units similar to DAI (e.g. converted to precision 1e18) # When balanced, D = n * x_u - total virtual value of the portfolio token_supply: uint256 = ERC20(self.lp_token).totalSupply() return D * PRECISION / token_supply @view @external def calc_token_amount(amounts: uint256[N_COINS], is_deposit: bool) -> uint256: """ @notice Calculate addition or reduction in token supply from a deposit or withdrawal @dev This calculation accounts for slippage, but not fees. Needed to prevent front-running, not for precise calculations! @param amounts Amount of each coin being deposited @param is_deposit set True for deposits, False for withdrawals @return Expected amount of LP tokens received """ amp: uint256 = self._A() rates: uint256[N_COINS] = self._stored_rates() _balances: uint256[N_COINS] = self.balances D0: uint256 = self.get_D_mem(rates, _balances, amp) for i in range(N_COINS): _amount: uint256 = amounts[i] if is_deposit: _balances[i] += _amount else: _balances[i] -= _amount D1: uint256 = self.get_D_mem(rates, _balances, amp) token_amount: uint256 = ERC20(self.lp_token).totalSupply() diff: uint256 = 0 if is_deposit: diff = D1 - D0 else: diff = D0 - D1 return diff * token_amount / D0 @payable @external @nonreentrant('lock') def add_liquidity(amounts: uint256[N_COINS], min_mint_amount: uint256) -> uint256: """ @notice Deposit coins into the pool @param amounts List of amounts of coins to deposit @param min_mint_amount Minimum amount of LP tokens to mint from the deposit @return Amount of LP tokens received by depositing """ assert not self.is_killed amp: uint256 = self._A() rates: uint256[N_COINS] = self._stored_rates() _lp_token: address = self.lp_token token_supply: uint256 = ERC20(_lp_token).totalSupply() # Initial invariant D0: uint256 = 0 old_balances: uint256[N_COINS] = self.balances if token_supply != 0: D0 = self.get_D_mem(rates, old_balances, amp) new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): if token_supply == 0: assert amounts[i] > 0 new_balances[i] += amounts[i] # Invariant after change D1: uint256 = self.get_D_mem(rates, new_balances, amp) assert D1 > D0 # We need to recalculate the invariant accounting for fees # to calculate fair user's share D2: uint256 = D1 fees: uint256[N_COINS] = empty(uint256[N_COINS]) mint_amount: uint256 = 0 if token_supply != 0: # Only account for fees if we are not the first to deposit _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) _admin_fee: uint256 = self.admin_fee for i in range(N_COINS): ideal_balance: uint256 = D1 * old_balances[i] / D0 difference: uint256 = 0 if ideal_balance > new_balances[i]: difference = ideal_balance - new_balances[i] else: difference = new_balances[i] - ideal_balance fees[i] = _fee * difference / FEE_DENOMINATOR self.balances[i] = new_balances[i] - (fees[i] * _admin_fee / FEE_DENOMINATOR) new_balances[i] -= fees[i] D2 = self.get_D_mem(rates, new_balances, amp) mint_amount = token_supply * (D2 - D0) / D0 else: self.balances = new_balances mint_amount = D1 # Take the dust if there was any assert mint_amount >= min_mint_amount, "Slippage screwed you" # Take coins from the sender assert msg.value == amounts[0] if amounts[1] > 0: assert ERC20(self.coins[1]).transferFrom(msg.sender, self, amounts[1]) # Mint pool tokens CurveToken(_lp_token).mint(msg.sender, mint_amount) log AddLiquidity(msg.sender, amounts, fees, D1, token_supply + mint_amount) return mint_amount @view @internal def get_y(i: int128, j: int128, x: uint256, xp_: uint256[N_COINS]) -> uint256: # x in the input is converted to the same price/precision assert i != j # dev: same coin assert j >= 0 # dev: j below zero assert j < N_COINS # dev: j above N_COINS # should be unreachable, but good for safety assert i >= 0 assert i < N_COINS A_: uint256 = self._A() D: uint256 = self.get_D(xp_, A_) Ann: uint256 = A_ * N_COINS c: uint256 = D S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 for _i in range(N_COINS): if _i == i: _x = x elif _i != j: _x = xp_[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann # - D y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @external def get_dy(i: int128, j: int128, dx: uint256) -> uint256: # dx and dy in c-units rates: uint256[N_COINS] = self._stored_rates() xp: uint256[N_COINS] = self._xp(rates) x: uint256 = xp[i] + dx * rates[i] / PRECISION y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y _fee: uint256 = self.fee * dy / FEE_DENOMINATOR return (dy - _fee) * PRECISION / rates[j] @view @external def get_dx(i: int128, j: int128, dy: uint256) -> uint256: # dx and dy in c-units rates: uint256[N_COINS] = self._stored_rates() xp: uint256[N_COINS] = self._xp(rates) y: uint256 = xp[j] - (dy * FEE_DENOMINATOR / (FEE_DENOMINATOR - self.fee)) * rates[j] / PRECISION x: uint256 = self.get_y(j, i, y, xp) dx: uint256 = (x - xp[i]) * PRECISION / rates[i] return dx @payable @external @nonreentrant('lock') def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256: """ @notice Perform an exchange between two coins @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param dx Amount of `i` being exchanged @param min_dy Minimum amount of `j` to receive @return Actual amount of `j` received """ assert not self.is_killed # dev: is killed rates: uint256[N_COINS] = self._stored_rates() xp: uint256[N_COINS] = self._xp(rates) x: uint256 = xp[i] + dx * rates[i] / PRECISION y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 # -1 just in case there were some rounding errors dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR self.balances[i] = x * PRECISION / rates[i] self.balances[j] = (y + (dy_fee - dy_admin_fee)) * PRECISION / rates[j] dy = (dy - dy_fee) * PRECISION / rates[j] assert dy >= min_dy, "Exchange resulted in fewer coins than expected" coin: address = self.coins[1] if i == 0: assert msg.value == dx assert ERC20(coin).transfer(msg.sender, dy) else: assert msg.value == 0 assert ERC20(coin).transferFrom(msg.sender, self, dx) raw_call(msg.sender, b"", value=dy) log TokenExchange(msg.sender, i, dx, j, dy) return dy @external @nonreentrant('lock') def remove_liquidity(_amount: uint256, min_amounts: uint256[N_COINS]) -> uint256[N_COINS]: """ @notice Withdraw coins from the pool @dev Withdrawal amounts are based on current deposit ratios @param _amount Quantity of LP tokens to burn in the withdrawal @param min_amounts Minimum amounts of underlying coins to receive @return List of amounts of coins that were withdrawn """ _lp_token: address = self.lp_token total_supply: uint256 = ERC20(_lp_token).totalSupply() amounts: uint256[N_COINS] = empty(uint256[N_COINS]) for i in range(N_COINS): _balance: uint256 = self.balances[i] value: uint256 = _balance * _amount / total_supply assert value >= min_amounts[i], "Withdrawal resulted in fewer coins than expected" self.balances[i] = _balance - value amounts[i] = value if i == 0: raw_call(msg.sender, b"", value=value) else: assert ERC20(self.coins[1]).transfer(msg.sender, value) CurveToken(_lp_token).burnFrom(msg.sender, _amount) # Will raise if not enough log RemoveLiquidity(msg.sender, amounts, empty(uint256[N_COINS]), total_supply - _amount) return amounts @external @nonreentrant('lock') def remove_liquidity_imbalance(amounts: uint256[N_COINS], max_burn_amount: uint256) -> uint256: """ @notice Withdraw coins from the pool in an imbalanced amount @param amounts List of amounts of underlying coins to withdraw @param max_burn_amount Maximum amount of LP token to burn in the withdrawal @return Actual amount of the LP token burned in the withdrawal """ assert not self.is_killed amp: uint256 = self._A() rates: uint256[N_COINS] = self._stored_rates() old_balances: uint256[N_COINS] = self.balances D0: uint256 = self.get_D_mem(rates, old_balances, amp) new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): new_balances[i] -= amounts[i] D1: uint256 = self.get_D_mem(rates, new_balances, amp) fees: uint256[N_COINS] = empty(uint256[N_COINS]) _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) _admin_fee: uint256 = self.admin_fee for i in range(N_COINS): ideal_balance: uint256 = D1 * old_balances[i] / D0 new_balance: uint256 = new_balances[i] difference: uint256 = 0 if ideal_balance > new_balance: difference = ideal_balance - new_balance else: difference = new_balance - ideal_balance fees[i] = _fee * difference / FEE_DENOMINATOR self.balances[i] = new_balance - (fees[i] * _admin_fee / FEE_DENOMINATOR) new_balances[i] = new_balance - fees[i] D2: uint256 = self.get_D_mem(rates, new_balances, amp) lp_token: address = self.lp_token token_supply: uint256 = ERC20(lp_token).totalSupply() token_amount: uint256 = (D0 - D2) * token_supply / D0 assert token_amount != 0 assert token_amount <= max_burn_amount, "Slippage screwed you" CurveToken(lp_token).burnFrom(msg.sender, token_amount) # dev: insufficient funds if amounts[0] != 0: raw_call(msg.sender, b"", value=amounts[0]) if amounts[1] != 0: assert ERC20(self.coins[1]).transfer(msg.sender, amounts[1]) log RemoveLiquidityImbalance(msg.sender, amounts, fees, D1, token_supply - token_amount) return token_amount @pure @internal def get_y_D(A_: uint256, i: int128, xp: uint256[N_COINS], D: uint256) -> uint256: """ Calculate x[i] if one reduces D from being calculated for xp to D Done by solving quadratic equation iteratively. x_1**2 + x_1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i >= 0 # dev: i below zero assert i < N_COINS # dev: i above N_COINS Ann: uint256 = A_ * N_COINS c: uint256 = D S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 for _i in range(N_COINS): if _i != i: _x = xp[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @internal def _calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> (uint256, uint256): # First, need to calculate # * Get current D # * Solve Eqn against y_i for D - _token_amount amp: uint256 = self._A() rates: uint256[N_COINS] = self._stored_rates() xp: uint256[N_COINS] = self._xp(rates) D0: uint256 = self.get_D(xp, amp) total_supply: uint256 = ERC20(self.lp_token).totalSupply() D1: uint256 = D0 - _token_amount * D0 / total_supply new_y: uint256 = self.get_y_D(amp, i, xp, D1) xp_reduced: uint256[N_COINS] = xp _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) for j in range(N_COINS): dx_expected: uint256 = 0 xp_j: uint256 = xp[j] if j == i: dx_expected = xp_j * D1 / D0 - new_y else: dx_expected = xp_j - xp_j * D1 / D0 xp_reduced[j] -= _fee * dx_expected / FEE_DENOMINATOR dy: uint256 = xp_reduced[i] - self.get_y_D(amp, i, xp_reduced, D1) rate: uint256 = rates[i] dy = (dy - 1) * PRECISION / rate # Withdraw less to account for rounding errors dy_0: uint256 = (xp[i] - new_y) * PRECISION / rate # w/o fees return dy, dy_0 - dy @view @external def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: """ @notice Calculate the amount received when withdrawing a single coin @param _token_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @return Amount of coin received """ return self._calc_withdraw_one_coin(_token_amount, i)[0] @external @nonreentrant('lock') def remove_liquidity_one_coin(_token_amount: uint256, i: int128, _min_amount: uint256) -> uint256: """ @notice Withdraw a single coin from the pool @param _token_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @param _min_amount Minimum amount of coin to receive @return Amount of coin received """ assert not self.is_killed # dev: is killed dy: uint256 = 0 dy_fee: uint256 = 0 dy, dy_fee = self._calc_withdraw_one_coin(_token_amount, i) assert dy >= _min_amount, "Not enough coins removed" self.balances[i] -= (dy + dy_fee * self.admin_fee / FEE_DENOMINATOR) CurveToken(self.lp_token).burnFrom(msg.sender, _token_amount) # dev: insufficient funds if i == 0: raw_call(msg.sender, b"", value=dy) else: assert ERC20(self.coins[1]).transfer(msg.sender, dy) log RemoveLiquidityOne(msg.sender, _token_amount, dy) return dy ### Admin functions ### @external def ramp_A(_future_A: uint256, _future_time: uint256): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.initial_A_time + MIN_RAMP_TIME assert _future_time >= block.timestamp + MIN_RAMP_TIME # dev: insufficient time _initial_A: uint256 = self._A() _future_A_p: uint256 = _future_A * A_PRECISION assert _future_A > 0 and _future_A < MAX_A if _future_A_p < _initial_A: assert _future_A_p * MAX_A_CHANGE >= _initial_A else: assert _future_A_p <= _initial_A * MAX_A_CHANGE self.initial_A = _initial_A self.future_A = _future_A_p self.initial_A_time = block.timestamp self.future_A_time = _future_time log RampA(_initial_A, _future_A_p, block.timestamp, _future_time) @external def stop_ramp_A(): assert msg.sender == self.owner # dev: only owner current_A: uint256 = self._A() self.initial_A = current_A self.future_A = current_A self.initial_A_time = block.timestamp self.future_A_time = block.timestamp # now (block.timestamp < t1) is always False, so we return saved A log StopRampA(current_A, block.timestamp) @external def commit_new_fee(new_fee: uint256, new_admin_fee: uint256): assert msg.sender == self.owner # dev: only owner assert self.admin_actions_deadline == 0 # dev: active action assert new_fee <= MAX_FEE # dev: fee exceeds maximum assert new_admin_fee <= MAX_ADMIN_FEE # dev: admin fee exceeds maximum _deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.admin_actions_deadline = _deadline self.future_fee = new_fee self.future_admin_fee = new_admin_fee log CommitNewFee(_deadline, new_fee, new_admin_fee) @external @nonreentrant('lock') def apply_new_fee(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.admin_actions_deadline # dev: insufficient time assert self.admin_actions_deadline != 0 # dev: no active action self.admin_actions_deadline = 0 _fee: uint256 = self.future_fee _admin_fee: uint256 = self.future_admin_fee self.fee = _fee self.admin_fee = _admin_fee log NewFee(_fee, _admin_fee) @external def revert_new_parameters(): assert msg.sender == self.owner # dev: only owner self.admin_actions_deadline = 0 @external def commit_transfer_ownership(_owner: address): assert msg.sender == self.owner # dev: only owner assert self.transfer_ownership_deadline == 0 # dev: active transfer _deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.transfer_ownership_deadline = _deadline self.future_owner = _owner log CommitNewAdmin(_deadline, _owner) @external @nonreentrant('lock') def apply_transfer_ownership(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.transfer_ownership_deadline # dev: insufficient time assert self.transfer_ownership_deadline != 0 # dev: no active transfer self.transfer_ownership_deadline = 0 _owner: address = self.future_owner self.owner = _owner log NewAdmin(_owner) @external def revert_transfer_ownership(): assert msg.sender == self.owner # dev: only owner self.transfer_ownership_deadline = 0 @view @external def admin_balances(i: uint256) -> uint256: if i == 0: return self.balance - self.balances[0] return ERC20(self.coins[i]).balanceOf(self) - self.balances[i] @external @nonreentrant('lock') def withdraw_admin_fees(): assert msg.sender == self.owner # dev: only owner amount: uint256 = self.balance - self.balances[0] if amount != 0: raw_call(msg.sender, b"", value=amount) amount = ERC20(self.coins[1]).balanceOf(self) - self.balances[1] if amount != 0: assert ERC20(self.coins[1]).transfer(msg.sender, amount) @external @nonreentrant('lock') def donate_admin_fees(): assert msg.sender == self.owner # dev: only owner for i in range(N_COINS): if i == 0: self.balances[0] = self.balance else: self.balances[i] = ERC20(self.coins[i]).balanceOf(self) @external def kill_me(): assert msg.sender == self.owner # dev: only owner assert self.kill_deadline > block.timestamp # dev: deadline has passed self.is_killed = True @external def unkill_me(): assert msg.sender == self.owner # dev: only owner self.is_killed = False
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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}],"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":"address","name":"_owner"},{"type":"address[2]","name":"_coins"},{"type":"address","name":"_pool_token"},{"type":"uint256","name":"_A"},{"type":"uint256","name":"_fee"},{"type":"uint256","name":"_admin_fee"}],"stateMutability":"nonpayable","type":"constructor"},{"name":"A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":5289},{"name":"A_precise","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":5251},{"name":"get_virtual_price","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1012100},{"name":"calc_token_amount","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"amounts"},{"type":"bool","name":"is_deposit"}],"stateMutability":"view","type":"function","gas":4012448},{"name":"add_liquidity","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"amounts"},{"type":"uint256","name":"min_mint_amount"}],"stateMutability":"payable","type":"function","gas":6174226},{"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":2449175},{"name":"get_dx","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"dy"}],"stateMutability":"view","type":"function","gas":2449203},{"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":"payable","type":"function","gas":2639978},{"name":"remove_liquidity","outputs":[{"type":"uint256[2]","name":""}],"inputs":[{"type":"uint256","name":"_amount"},{"type":"uint256[2]","name":"min_amounts"}],"stateMutability":"nonpayable","type":"function","gas":228298},{"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":6209362},{"name":"calc_withdraw_one_coin","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_token_amount"},{"type":"int128","name":"i"}],"stateMutability":"view","type":"function","gas":1495},{"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":3909935},{"name":"ramp_A","outputs":[],"inputs":[{"type":"uint256","name":"_future_A"},{"type":"uint256","name":"_future_time"}],"stateMutability":"nonpayable","type":"function","gas":151894},{"name":"stop_ramp_A","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":148655},{"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":153175},{"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":116643},{"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":4655},{"name":"withdraw_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":99086},{"name":"donate_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":130986},{"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":"lp_token","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2291},{"name":"initial_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2321},{"name":"future_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2351},{"name":"initial_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2381},{"name":"future_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2411},{"name":"admin_actions_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2441},{"name":"transfer_ownership_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2471},{"name":"future_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2501},{"name":"future_admin_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2531},{"name":"future_owner","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2561}]
Contract Creation Code
60e0614b55610140396020614b5560c03960c05160a01c1561002057600080fd5b60206020614b550160c03960c05160a01c1561003b57600080fd5b60206040614b550160c03960c05160a01c1561005657600080fd5b60206060614b550160c03960c05160a01c1561007157600080fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee610160511461009457600080fd5b600061018051186100a457600080fd5b600060c052602060c020610160518155610180516001820155506101c051606480820282158284830414176100d857600080fd5b809050905090506006556101c051606480820282158284830414176100fc57600080fd5b809050905090506007556101e051600255610200516003556101405160045542624f1a0081818301101561012f57600080fd5b808201905090506010556101a051600555614b3d56600436101561000d576149f2565b600035601c526000156101b6575b610140526009546101605260075461018052610160514210156101a3576006546101a0526008546101c0526101a0516101805111156100fc576101a051610180516101a0518082101561006d57600080fd5b80820390509050426101c0518082101561008657600080fd5b8082039050905080820282158284830414176100a157600080fd5b80905090509050610160516101c051808210156100bd57600080fd5b8082039050905080806100cf57600080fd5b8204905090508181830110156100e457600080fd5b8082019050905060005260005161014051565061019e565b6101a0516101a051610180518082101561011557600080fd5b80820390509050426101c0518082101561012e57600080fd5b80820390509050808202821582848304141761014957600080fd5b80905090509050610160516101c0518082101561016557600080fd5b80820390509050808061017757600080fd5b8204905090508082101561018a57600080fd5b808203905090506000526000516101405156505b6101b4565b610180516000526000516101405156505b005b63f446c1d060005114156101f45734156101cf57600080fd5b6006580161001b565b610140526101405160648082049050905060005260206000f350005b6376a2f0f0600051141561022957341561020d57600080fd5b6006580161001b565b610140526101405160005260206000f350005b6000156102e4575b61014052670de0b6b3a7640000610200526ec097ce7bc90715b34b9f100000000060206101c060046371ca337d6101605261017c6001600060c052602060c02001545afa61027e57600080fd5b601f3d1161028b57600080fd5b6000506101c051808061029d57600080fd5b8204905090506102205260406101e0525b60006101e0511115156102c0576102dc565b60206101e05103610200015160206101e051036101e0526102ae565b610140515650005b6000156103dd575b610180526101405261016052610140516101a052610160516101c0526101e060006002818352015b6101a06101e0516002811061032857600080fd5b60200201516101e0516002811061033e57600080fd5b600160c052602060c0200154808202821582848304141761035e57600080fd5b80905090509050670de0b6b3a7640000808204905090506101a06101e0516002811061038957600080fd5b60200201525b8151600101808352811415610314575b505060406101e0525b60006101e0511115156103ba576103d6565b60206101e051036101a0015160206101e051036101e0526103a8565b6101805156005b6000156106e5575b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c080516102005181818301101561043057600080fd5b808201905090508152505b8151600101808352811415610408575b50506101c05115156104665760006000526000516101a05156505b6101c05161020052610180516002808202821582848304141761048857600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a05102610140015161028052610260516102005180820282158284830414176104df57600080fd5b80905090509050610280516002808202821582848304141761050057600080fd5b80905090509050808061051257600080fd5b820490509050610260525b81516001018083528114156104b3575b5050610200516101e052610220516101c051808202821582848304141761055357600080fd5b80905090509050606480820490509050610260516002808202821582848304141761057d57600080fd5b8090509050905081818301101561059357600080fd5b808201905090506102005180820282158284830414176105b257600080fd5b80905090509050610220516064808210156105cc57600080fd5b808203905090506102005180820282158284830414176105eb57600080fd5b80905090509050606480820490509050600361026051808202821582848304141761061557600080fd5b8090509050905081818301101561062b57600080fd5b80820190509050808061063d57600080fd5b820490509050610200526101e051610200511115610692576001610200516101e0518082101561066c57600080fd5b8082039050905011151561068d576102005160005250506000516101a05156505b6106cb565b60016101e05161020051808210156106a957600080fd5b808203905090501115156106ca576102005160005250506000516101a05156505b5b5b815160010180835281141561049f575b505060006000fd005b60001561082d575b6101e0526101405261016052610180526101a0526101c0526101405161020052610160516102205261024060006002818352015b610200610240516002811061073557600080fd5b6020020151610180610240516002811061074e57600080fd5b6020020151808202821582848304141761076757600080fd5b80905090509050670de0b6b3a764000080820490509050610200610240516002811061079257600080fd5b60200201525b8151600101808352811415610721575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610200516102405261022051610260526101c05161028052610280516102605161024051600658016103e5565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516000526000516101e0515650005b63bb7b8b806000511415610a8557341561084657600080fd5b6101405160065801610231565b61016052610180526101405261016080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101a0516101e0526101c05161020052610200516101e051600658016102ec565b61026052610280526101c0526101a05261018052610160526101405261026080516102a05280602001516102c052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516006580161001b565b6102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610300526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516102a051610320526102c051610340526103005161036052610360516103405161032051600658016103e5565b6103c052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103c0516101405260206101e060046318160ddd6101805261019c6005545afa610a2557600080fd5b601f3d11610a3257600080fd5b6000506101e0516101605261014051670de0b6b3a76400008082028215828483041417610a5e57600080fd5b80905090509050610160518080610a7457600080fd5b82049050905060005260206000f350005b63ed8e84f36000511415610db8573415610a9e57600080fd5b60443560011c15610aae57600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c0516102605261014051610280526102805161026051610240516102205161020051600658016106ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261020060006002818352015b60046102005160028110610bc957600080fd5b60200201356102205260443515610c16576101a06102005160028110610bee57600080fd5b60200201805161022051818183011015610c0757600080fd5b80820190509050815250610c4c565b6101a06102005160028110610c2a57600080fd5b6020020180516102205180821015610c4157600080fd5b808203905090508152505b5b8151600101808352811415610bb6575b50506101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a051610260526101c05161028052610140516102a0526102a05161028051610260516102405161022051600658016106ed565b61030052610200526101e0526101c0526101a052610180526101605261014052610300516102005260206102a060046318160ddd6102405261025c6005545afa610d0957600080fd5b601f3d11610d1657600080fd5b6000506102a0516102205260006102405260443515610d5457610200516101e05180821015610d4457600080fd5b8082039050905061024052610d75565b6101e0516102005180821015610d6957600080fd5b80820390509050610240525b61024051610220518082028215828483041417610d9157600080fd5b809050905090506101e0518080610da757600080fd5b82049050905060005260206000f350005b630b4c7e4d60005114156115e55762ffffff5415610dd557600080fd5b600162ffffff55600f5415610de957600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506005546101a052602061024060046318160ddd6101e0526101fc6101a0515afa610e6b57600080fd5b601f3d11610e7857600080fd5b600050610240516101c05260006101e05260018060c052602060c020546102005260018160c052602060c0200154610220525060006101c0511815610f49576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261018051610260526102005161028052610220516102a052610140516102c0526102c0516102a051610280516102605161024051600658016106ed565b6103205261022052610200526101e0526101c0526101a052610180526101605261014052610320516101e0525b6102005161024052610220516102605261028060006002818352015b6101c0511515610f9457600060046102805160028110610f8457600080fd5b602002013511610f9357600080fd5b5b6102406102805160028110610fa857600080fd5b60200201805160046102805160028110610fc157600080fd5b6020020135818183011015610fd557600080fd5b808201905090508152505b8151600101808352811415610f65575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610180516102c052610240516102e0526102605161030052610140516103205261032051610300516102e0516102c0516102a051600658016106ed565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526101e05161028051116110ad57600080fd5b610280516102a0526060366102c03760006101c051181561142657600254600280820282158284830414176110e157600080fd5b80905090509050600480820490509050610320526003546103405261036060006002818352015b61028051610200610360516002811061112057600080fd5b6020020151808202821582848304141761113957600080fd5b809050905090506101e051808061114f57600080fd5b8204905090506103805260006103a052610240610360516002811061117357600080fd5b60200201516103805111156111bc5761038051610240610360516002811061119a57600080fd5b6020020151808210156111ac57600080fd5b808203905090506103a0526111f2565b61024061036051600281106111d057600080fd5b602002015161038051808210156111e657600080fd5b808203905090506103a0525b610320516103a051808202821582848304141761120e57600080fd5b809050905090506402540be400808204905090506102c0610360516002811061123657600080fd5b6020020152610240610360516002811061124f57600080fd5b60200201516102c0610360516002811061126857600080fd5b602002015161034051808202821582848304141761128557600080fd5b809050905090506402540be40080820490509050808210156112a657600080fd5b8082039050905061036051600281106112be57600080fd5b600160c052602060c020015561024061036051600281106112de57600080fd5b6020020180516102c061036051600281106112f857600080fd5b60200201518082101561130a57600080fd5b808203905090508152505b8151600101808352811415611108575b5050610140610360525b610360515160206103605101610360526103606103605110156113515761132f565b6101605161038052610180516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a05161038051600658016106ed565b61046052610340610360525b61036051526020610360510361036052610140610360511015156113c5576113a2565b610460516102a0526101c0516102a0516101e051808210156113e657600080fd5b80820390509050808202821582848304141761140157600080fd5b809050905090506101e051808061141757600080fd5b82049050905061030052611449565b600160c052602060c0206102405181556102605160018201555061028051610300525b604435610300511015151561149d576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b60043534146114ab57600080fd5b600060243511156115135760206103e060646323b872dd61032052336103405230610360526024356103805261033c60006001600060c052602060c02001545af16114f557600080fd5b601f3d1161150257600080fd5b6000506103e05161151257600080fd5b5b60206103c060446340c10f19610320523361034052610300516103605261033c60006101a0515af161154457600080fd5b601f3d1161155157600080fd5b6000506103c05060043561032052602435610340526102c051610360526102e05161038052610280516103a0526101c0516103005181818301101561159557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015611a67575b6101e0526101405261016052610180526101a0526101c05261016051610140511861161757600080fd5b600061016051121561162857600080fd5b6002610160511261163857600080fd5b600061014051121561164957600080fd5b6002610140511261165957600080fd5b6101405161016051610180516101a0516101c0516101e051610200516006580161001b565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c051610260526102005161028052610280516102605161024051600658016103e5565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e05161022052610200516002808202821582848304141761173957600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e051141561177a57610180516102a0526117b0565b610160516102e05118156117aa576101a06102e0516002811061179c57600080fd5b60200201516102a0526117af565b61182c565b5b61028080516102a0518181830110156117c857600080fd5b80820190509050815250610260516102205180820282158284830414176117ee57600080fd5b809050905090506102a0516002808202821582848304141761180f57600080fd5b80905090509050808061182157600080fd5b820490509050610260525b815160010180835281141561175f575b50506102605161022051808202821582848304141761185a57600080fd5b809050905090506064808202821582848304141761187757600080fd5b80905090509050610240516002808202821582848304141761189857600080fd5b8090509050905080806118aa57600080fd5b820490509050610260526102805161022051606480820282158284830414176118d257600080fd5b809050905090506102405180806118e857600080fd5b8204905090508181830110156118fd57600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c0526103005161030051808202821582848304141761194057600080fd5b809050905090506102605181818301101561195a57600080fd5b80820190509050600261030051808202821582848304141761197b57600080fd5b809050905090506102e05181818301101561199557600080fd5b8082019050905061022051808210156119ad57600080fd5b8082039050905080806119bf57600080fd5b820490509050610300526102c051610300511115611a14576001610300516102c051808210156119ee57600080fd5b80820390509050111515611a0f576103005160005250506000516101e05156505b611a4d565b60016102c0516103005180821015611a2b57600080fd5b80820390509050111515611a4c576103005160005250506000516101e05156505b5b5b815160010180835281141561191c575b505060006000fd005b635e0d443f6000511415611d22573415611a8057600080fd5b60043580806000811215611a9057195b607f1c15611a9d57600080fd5b90505060243580806000811215611ab057195b607f1c15611abd57600080fd5b905050610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a0525061018060043560028110611b6357600080fd5b602002015160443561014060043560028110611b7e57600080fd5b60200201518082028215828483041417611b9757600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611bbd57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110611c5a57600080fd5b60200201516101e05180821015611c7057600080fd5b8082039050905061020052600254610200518082028215828483041417611c9657600080fd5b809050905090506402540be4008082049050905061022052610200516102205180821015611cc357600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611ce757600080fd5b8090509050905061014060243560028110611d0157600080fd5b60200201518080611d1157600080fd5b82049050905060005260206000f350005b6367df02ca6000511415611fdf573415611d3b57600080fd5b60043580806000811215611d4b57195b607f1c15611d5857600080fd5b90505060243580806000811215611d6b57195b607f1c15611d7857600080fd5b905050610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a0525061018060243560028110611e1e57600080fd5b60200201516044356402540be4008082028215828483041417611e4057600080fd5b809050905090506402540be40060025480821015611e5d57600080fd5b808203905090508080611e6f57600080fd5b82049050905061014060243560028110611e8857600080fd5b60200201518082028215828483041417611ea157600080fd5b80905090509050670de0b6b3a76400008082049050905080821015611ec557600080fd5b808203905090506101c0526101405161016051610180516101a0516101c0516101e05160243561020052600435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101e05161018060043560028110611f6657600080fd5b602002015180821015611f7857600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611f9c57600080fd5b8090509050905061014060043560028110611fb657600080fd5b60200201518080611fc657600080fd5b820490509050610200526102005160005260206000f350005b633df0212460005114156125f55762ffffff5415611ffc57600080fd5b600162ffffff556004358080600081121561201357195b607f1c1561202057600080fd5b9050506024358080600081121561203357195b607f1c1561204057600080fd5b905050600f541561205057600080fd5b610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a05250610180600435600281106120f357600080fd5b60200201516044356101406004356002811061210e57600080fd5b6020020151808202821582848304141761212757600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561214d57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e052610180602435600281106121ea57600080fd5b60200201516101e0518082101561220057600080fd5b8082039050905060018082101561221657600080fd5b808203905090506102005261020051600254808202821582848304141761223c57600080fd5b809050905090506402540be400808204905090506102205261022051600354808202821582848304141761226f57600080fd5b809050905090506402540be40080820490509050610240526101c051670de0b6b3a764000080820282158284830414176122a857600080fd5b80905090509050610140600435600281106122c257600080fd5b602002015180806122d257600080fd5b820490509050600435600281106122e857600080fd5b600160c052602060c02001556101e05161022051610240518082101561230d57600080fd5b8082039050905081818301101561232357600080fd5b80820190509050670de0b6b3a7640000808202821582848304141761234757600080fd5b809050905090506101406024356002811061236157600080fd5b6020020151808061237157600080fd5b8204905090506024356002811061238757600080fd5b600160c052602060c02001556102005161022051808210156123a857600080fd5b80820390509050670de0b6b3a764000080820282158284830414176123cc57600080fd5b80905090509050610140602435600281106123e657600080fd5b602002015180806123f657600080fd5b820490509050610200526064356102005110151515612479576308c379a061026052602061028052602e6102a0527f45786368616e676520726573756c74656420696e20666577657220636f696e736102c0527f207468616e2065787065637465640000000000000000000000000000000000006102e0526102a050608461027cfd5b6001600060c052602060c02001546102605260043515156124f55760443534146124a257600080fd5b6020610320604463a9059cbb61028052336102a052610200516102c05261029c6000610260515af16124d357600080fd5b601f3d116124e057600080fd5b600050610320516124f057600080fd5b612593565b341561250057600080fd5b602061034060646323b872dd61028052336102a052306102c0526044356102e05261029c6000610260515af161253557600080fd5b601f3d1161254257600080fd5b6000506103405161255257600080fd5b6000610280526102808051602001806102c08284600060045af161257557600080fd5b5050600060006102c0516102e061020051335af161259257600080fd5b5b600435610280526044356102a0526024356102c052610200516102e052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610280a261020051600052600062ffffff5560206000f350600062ffffff55005b635b36389c600051141561292b5762ffffff541561261257600080fd5b600162ffffff55341561262457600080fd5b6005546101405260206101e060046318160ddd6101805261019c610140515afa61264d57600080fd5b601f3d1161265a57600080fd5b6000506101e05161016052604036610180376101c060006002818352015b6101c0516002811061268957600080fd5b600160c052602060c02001546101e0526101e05160043580820282158284830414176126b457600080fd5b809050905090506101605180806126ca57600080fd5b8204905090506102005260246101c051600281106126e757600080fd5b60200201356102005110151515612762576308c379a0610220526020610240526030610260527f5769746864726177616c20726573756c74656420696e20666577657220636f69610280527f6e73207468616e206578706563746564000000000000000000000000000000006102a05261026050608461023cfd5b6101e051610200518082101561277757600080fd5b808203905090506101c0516002811061278f57600080fd5b600160c052602060c0200155610200516101806101c051600281106127b357600080fd5b60200201526101c0511515612807576000610220526102208051602001806102608284600060045af16127e557600080fd5b5050600060006102605161028061020051335af161280257600080fd5b612860565b60206102c0604463a9059cbb610220523361024052610200516102605261023c60006001600060c052602060c02001545af161284257600080fd5b601f3d1161284f57600080fd5b6000506102c05161285f57600080fd5b5b5b8151600101808352811415612678575b5050602061026060446379cc67906101c052336101e052600435610200526101dc6000610140515af16128a357600080fd5b601f3d116128b057600080fd5b60005061026050610180516101c0526101a0516101e0526040366102003761016051600435808210156128e257600080fd5b8082039050905061024052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101c0a2600062ffffff556040610180f3600062ffffff55005b63e310327360005114156130db5762ffffff541561294857600080fd5b600162ffffff55341561295a57600080fd5b600f541561296757600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c0516102605261014051610280526102805161026051610240516102205161020051600658016106ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101a051610200526101c0516102205261024060006002818352015b6102006102405160028110612a9357600080fd5b60200201805160046102405160028110612aac57600080fd5b602002013580821015612abe57600080fd5b808203905090508152505b8151600101808352811415612a7f575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101805161028052610200516102a052610220516102c052610140516102e0526102e0516102c0516102a0516102805161026051600658016106ed565b610340526102405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610240526040366102603760025460028082028215828483041417612b9457600080fd5b809050905090506004808204905090506102a0526003546102c0526102e060006002818352015b610240516101a06102e05160028110612bd357600080fd5b60200201518082028215828483041417612bec57600080fd5b809050905090506101e0518080612c0257600080fd5b820490509050610300526102006102e05160028110612c2057600080fd5b60200201516103205260006103405261032051610300511115612c6257610300516103205180821015612c5257600080fd5b8082039050905061034052612c83565b610320516103005180821015612c7757600080fd5b80820390509050610340525b6102a051610340518082028215828483041417612c9f57600080fd5b809050905090506402540be400808204905090506102606102e05160028110612cc757600080fd5b6020020152610320516102606102e05160028110612ce457600080fd5b60200201516102c0518082028215828483041417612d0157600080fd5b809050905090506402540be4008082049050905080821015612d2257600080fd5b808203905090506102e05160028110612d3a57600080fd5b600160c052602060c0200155610320516102606102e05160028110612d5e57600080fd5b602002015180821015612d7057600080fd5b808203905090506102006102e05160028110612d8b57600080fd5b60200201525b8151600101808352811415612bbb575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610160516103005261018051610320526102005161034052610220516103605261014051610380526103805161036051610340516103205161030051600658016106ed565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e0526005546103005260206103a060046318160ddd6103405261035c610300515afa612e8d57600080fd5b601f3d11612e9a57600080fd5b6000506103a051610320526101e0516102e05180821015612eba57600080fd5b80820390509050610320518082028215828483041417612ed957600080fd5b809050905090506101e0518080612eef57600080fd5b8204905090506103405260006103405118612f0957600080fd5b6044356103405111151515612f5d576308c379a06103605260206103805260146103a0527f536c697070616765207363726577656420796f750000000000000000000000006103c0526103a050606461037cfd5b602061040060446379cc6790610360523361038052610340516103a05261037c6000610300515af1612f8e57600080fd5b601f3d11612f9b57600080fd5b6000506104005060006004351815612fed576000610360526103608051602001806103a08284600060045af1612fd057600080fd5b5050600060006103a0516103c0600435335af1612fec57600080fd5b5b60006024351815613050576020610400604463a9059cbb6103605233610380526024356103a05261037c60006001600060c052602060c02001545af161303257600080fd5b601f3d1161303f57600080fd5b6000506104005161304f57600080fd5b5b6004356103605260243561038052610260516103a052610280516103c052610240516103e05261032051610340518082101561308b57600080fd5b8082039050905061040052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610360a261034051600052600062ffffff5560206000f350600062ffffff55005b600015613448575b6101e0526101405261016052610180526101a0526101c052600061016051121561310c57600080fd5b6002610160511261311c57600080fd5b610140516002808202821582848304141761313657600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a051181561318c576101806102a0516002811061317e57600080fd5b602002015161026052613191565b61320d565b6102408051610260518181830110156131a957600080fd5b80820190509050815250610220516101c05180820282158284830414176131cf57600080fd5b8090509050905061026051600280820282158284830414176131f057600080fd5b80905090509050808061320257600080fd5b820490509050610220525b815160010180835281141561315c575b5050610220516101c051808202821582848304141761323b57600080fd5b809050905090506064808202821582848304141761325857600080fd5b80905090509050610200516002808202821582848304141761327957600080fd5b80905090509050808061328b57600080fd5b82049050905061022052610240516101c051606480820282158284830414176132b357600080fd5b809050905090506102005180806132c957600080fd5b8204905090508181830110156132de57600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c051808202821582848304141761332157600080fd5b809050905090506102205181818301101561333b57600080fd5b8082019050905060026102c051808202821582848304141761335c57600080fd5b809050905090506102a05181818301101561337657600080fd5b808201905090506101c0518082101561338e57600080fd5b8082039050905080806133a057600080fd5b8204905090506102c052610280516102c05111156133f55760016102c05161028051808210156133cf57600080fd5b808203905090501115156133f0576102c05160005250506000516101e05156505b61342e565b6001610280516102c0518082101561340c57600080fd5b8082039050905011151561342d576102c05160005250506000516101e05156505b5b5b81516001018083528114156132fd575b505060006000fd005b600015613aee575b6101805261014052610160526101405161016051610180516101a0516006580161001b565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e05160065801610231565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e051610260526102605161024051600658016102ec565b6102c0526102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102c0805161020052806020015161022052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610200516102605261022051610280526101a0516102a0526102a0516102805161026051600658016103e5565b610300526102405261022052610200526101e0526101c0526101a052610180526101605261014052610300516102405260206102e060046318160ddd6102805261029c6005545afa61360357600080fd5b601f3d1161361057600080fd5b6000506102e05161026052610240516101405161024051808202821582848304141761363b57600080fd5b8090509050905061026051808061365157600080fd5b8204905090508082101561366457600080fd5b80820390509050610280526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101a0516102c052610160516102e0526102005161030052610220516103205261028051610340526103405161032051610300516102e0516102c051600658016130e3565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a052610200516102c052610220516102e0526002546002808202821582848304141761374957600080fd5b809050905090506004808204905090506103005261032060006002818352015b600061034052610200610320516002811061378357600080fd5b602002015161036052610160516103205114156137f357610360516102805180820282158284830414176137b657600080fd5b809050905090506102405180806137cc57600080fd5b8204905090506102a051808210156137e357600080fd5b8082039050905061034052613848565b610360516103605161028051808202821582848304141761381357600080fd5b8090509050905061024051808061382957600080fd5b8204905090508082101561383c57600080fd5b80820390509050610340525b6102c0610320516002811061385c57600080fd5b6020020180516103005161034051808202821582848304141761387e57600080fd5b809050905090506402540be400808204905090508082101561389f57600080fd5b808203905090508152505b8151600101808352811415613769575b50506102c061016051600281106138d057600080fd5b6020020151610140610340525b610340515160206103405101610340526103406103405110156138ff576138dd565b6101a0516103605261016051610380526102c0516103a0526102e0516103c052610280516103e0526103e0516103c0516103a0516103805161036051600658016130e3565b61044052610320610340525b610340515260206103405103610340526101406103405110151561397357613950565b610440518082101561398457600080fd5b80820390509050610320526101c061016051600281106139a357600080fd5b602002015161034052610320516001808210156139bf57600080fd5b80820390509050670de0b6b3a764000080820282158284830414176139e357600080fd5b809050905090506103405180806139f957600080fd5b820490509050610320526102006101605160028110613a1757600080fd5b60200201516102a05180821015613a2d57600080fd5b80820390509050670de0b6b3a76400008082028215828483041417613a5157600080fd5b80905090509050610340518080613a6757600080fd5b8204905090506103605261038080808061032051815250506020810190508080610360516103205180821015613a9c57600080fd5b808203905090508152505060409050905060c05260c0516103c0525b60006103c051111515613aca57613ae6565b60206103c05103610380015160206103c051036103c052613ab8565b610180515650005b63cc2b27d76000511415613b7d573415613b0757600080fd5b60243580806000811215613b1757195b607f1c15613b2457600080fd5b9050506004356101405260243561016052610160516101405160065801613450565b6101c0526101e0526101c080808080516102005250506020810190508080805161022052505050506102005160005260206000f350005b631a4d01d26000511415613e595762ffffff5415613b9a57600080fd5b600162ffffff553415613bac57600080fd5b60243580806000811215613bbc57195b607f1c15613bc957600080fd5b905050600f5415613bd957600080fd5b604036610140376101405161016051600435610180526024356101a0526101a0516101805160065801613450565b610200526102205261016052610140526102008080808051610240525050602081019050808080516102605250505050610240805161014052806020015161016052506044356101405110151515613c9e576308c379a06101805260206101a05260186101c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006101e0526101c050606461019cfd5b60243560028110613cae57600080fd5b600160c052602060c02001805461014051610160516003548082028215828483041417613cda57600080fd5b809050905090506402540be40080820490509050818183011015613cfd57600080fd5b8082019050905080821015613d1157600080fd5b80820390509050815550602061022060446379cc679061018052336101a0526004356101c05261019c60006005545af1613d4a57600080fd5b601f3d11613d5757600080fd5b600050610220506024351515613dac576000610180526101808051602001806101c08284600060045af1613d8a57600080fd5b5050600060006101c0516101e061014051335af1613da757600080fd5b613e05565b6020610220604463a9059cbb61018052336101a052610140516101c05261019c60006001600060c052602060c02001545af1613de757600080fd5b601f3d11613df457600080fd5b60005061022051613e0457600080fd5b5b60043561018052610140516101a052337f9e96dd3b997a2a257eec4df9bb6eaf626e206df5f543bd963682d143300be3106040610180a261014051600052600062ffffff5560206000f350600062ffffff55005b633c157e646000511415614008573415613e7257600080fd5b6004543314613e8057600080fd5b60085462015180818183011015613e9657600080fd5b80820190509050421015613ea957600080fd5b4262015180818183011015613ebd57600080fd5b808201905090506024351015613ed257600080fd5b610140516006580161001b565b6101605261014052610160516101405260043560648082028215828483041417613f0857600080fd5b809050905090506101605260006004351115613f2b57620f424060043510613f2e565b60005b613f3757600080fd5b61014051610160511015613f7a576101405161016051600a8082028215828483041417613f6357600080fd5b809050905090501015613f7557600080fd5b613fab565b61014051600a8082028215828483041417613f9457600080fd5b80905090509050610160511115613faa57600080fd5b5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588600051141561409857341561402157600080fd5b600454331461402f57600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a146760005114156141615734156140b157600080fd5b60045433146140bf57600080fd5b600a54156140cc57600080fd5b64012a05f20060043511156140e057600080fd5b6402540be40060243511156140f457600080fd5b426203f48081818301101561410857600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97600051141561421d5762ffffff541561417e57600080fd5b600162ffffff55341561419057600080fd5b600454331461419e57600080fd5b600a544210156141ad57600080fd5b6000600a54186141bc57600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1600062ffffff55005b63226840fb600051141561424b57341561423657600080fd5b600454331461424457600080fd5b6000600a55005b636b441a4060005114156142ea57341561426457600080fd5b60043560a01c1561427457600080fd5b600454331461428257600080fd5b600b541561428f57600080fd5b426203f4808181830110156142a357600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae600051141561438b5762ffffff541561430757600080fd5b600162ffffff55341561431957600080fd5b600454331461432757600080fd5b600b5442101561433657600080fd5b6000600b541861434557600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2600062ffffff55005b6386fbf19360005114156143b95734156143a457600080fd5b60045433146143b257600080fd5b6000600b55005b63e2e7d26460005114156144935734156143d257600080fd5b60043515156144055747600160c052602060c02054808210156143f457600080fd5b8082039050905060005260206000f3505b60206101c060246370a0823161014052306101605261015c6004356002811061442d57600080fd5b600060c052602060c02001545afa61444457600080fd5b601f3d1161445157600080fd5b6000506101c0516004356002811061446857600080fd5b600160c052602060c02001548082101561448157600080fd5b8082039050905060005260206000f350005b6330c54085600051141561461a5762ffffff54156144b057600080fd5b600162ffffff5534156144c257600080fd5b60045433146144d057600080fd5b47600160c052602060c02054808210156144e957600080fd5b80820390509050610140526000610140511815614541576000610160526101608051602001806101a08284600060045af161452357600080fd5b5050600060006101a0516101c061014051335af161454057600080fd5b5b60206101e060246370a0823161016052306101805261017c6001600060c052602060c02001545afa61457257600080fd5b601f3d1161457f57600080fd5b6000506101e0516001600160c052602060c0200154808210156145a157600080fd5b80820390509050610140526000610140511815614611576020610200604463a9059cbb610160523361018052610140516101a05261017c60006001600060c052602060c02001545af16145f357600080fd5b601f3d1161460057600080fd5b6000506102005161461057600080fd5b5b600062ffffff55005b63524c3901600051141561470c5762ffffff541561463757600080fd5b600162ffffff55341561464957600080fd5b600454331461465757600080fd5b61014060006002818352015b61014051151561467e5747600160c052602060c020556146f0565b60206101e060246370a0823161016052306101805261017c61014051600281106146a757600080fd5b600060c052602060c02001545afa6146be57600080fd5b601f3d116146cb57600080fd5b6000506101e05161014051600281106146e357600080fd5b600160c052602060c02001555b5b8151600101808352811415614663575b5050600062ffffff55005b63e3698853600051141561474857341561472557600080fd5b600454331461473357600080fd5b426010541161474157600080fd5b6001600f55005b633046f972600051141561477657341561476157600080fd5b600454331461476f57600080fd5b6000600f55005b63c661065760005114156147b657341561478f57600080fd5b6004356002811061479f57600080fd5b600060c052602060c020015460005260206000f350005b634903b0d160005114156147f65734156147cf57600080fd5b600435600281106147df57600080fd5b600160c052602060c020015460005260206000f350005b63ddca3f43600051141561481d57341561480f57600080fd5b60025460005260206000f350005b63fee3f7f9600051141561484457341561483657600080fd5b60035460005260206000f350005b638da5cb5b600051141561486b57341561485d57600080fd5b60045460005260206000f350005b6382c63066600051141561489257341561488457600080fd5b60055460005260206000f350005b635409491a60005114156148b95734156148ab57600080fd5b60065460005260206000f350005b63b4b577ad60005114156148e05734156148d257600080fd5b60075460005260206000f350005b632081066c60005114156149075734156148f957600080fd5b60085460005260206000f350005b6314052288600051141561492e57341561492057600080fd5b60095460005260206000f350005b63405e28f8600051141561495557341561494757600080fd5b600a5460005260206000f350005b63e0a0b586600051141561497c57341561496e57600080fd5b600b5460005260206000f350005b6358680d0b60005114156149a357341561499557600080fd5b600c5460005260206000f350005b63e382446260005114156149ca5734156149bc57600080fd5b600d5460005260206000f350005b631ec0cdc160005114156149f15734156149e357600080fd5b600e5460005260206000f350005b5b60006000fd5b610145614b3d03610145600039610145614b3d036000f30000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000e95a203b1a91a908f9b9ce46459d101078c2c3cb000000000000000000000000aa17a236f2badc98ddc0cf999abb47d47fc0a6cf000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
Deployed Bytecode
0x600436101561000d576149f2565b600035601c526000156101b6575b610140526009546101605260075461018052610160514210156101a3576006546101a0526008546101c0526101a0516101805111156100fc576101a051610180516101a0518082101561006d57600080fd5b80820390509050426101c0518082101561008657600080fd5b8082039050905080820282158284830414176100a157600080fd5b80905090509050610160516101c051808210156100bd57600080fd5b8082039050905080806100cf57600080fd5b8204905090508181830110156100e457600080fd5b8082019050905060005260005161014051565061019e565b6101a0516101a051610180518082101561011557600080fd5b80820390509050426101c0518082101561012e57600080fd5b80820390509050808202821582848304141761014957600080fd5b80905090509050610160516101c0518082101561016557600080fd5b80820390509050808061017757600080fd5b8204905090508082101561018a57600080fd5b808203905090506000526000516101405156505b6101b4565b610180516000526000516101405156505b005b63f446c1d060005114156101f45734156101cf57600080fd5b6006580161001b565b610140526101405160648082049050905060005260206000f350005b6376a2f0f0600051141561022957341561020d57600080fd5b6006580161001b565b610140526101405160005260206000f350005b6000156102e4575b61014052670de0b6b3a7640000610200526ec097ce7bc90715b34b9f100000000060206101c060046371ca337d6101605261017c6001600060c052602060c02001545afa61027e57600080fd5b601f3d1161028b57600080fd5b6000506101c051808061029d57600080fd5b8204905090506102205260406101e0525b60006101e0511115156102c0576102dc565b60206101e05103610200015160206101e051036101e0526102ae565b610140515650005b6000156103dd575b610180526101405261016052610140516101a052610160516101c0526101e060006002818352015b6101a06101e0516002811061032857600080fd5b60200201516101e0516002811061033e57600080fd5b600160c052602060c0200154808202821582848304141761035e57600080fd5b80905090509050670de0b6b3a7640000808204905090506101a06101e0516002811061038957600080fd5b60200201525b8151600101808352811415610314575b505060406101e0525b60006101e0511115156103ba576103d6565b60206101e051036101a0015160206101e051036101e0526103a8565b6101805156005b6000156106e5575b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c080516102005181818301101561043057600080fd5b808201905090508152505b8151600101808352811415610408575b50506101c05115156104665760006000526000516101a05156505b6101c05161020052610180516002808202821582848304141761048857600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a05102610140015161028052610260516102005180820282158284830414176104df57600080fd5b80905090509050610280516002808202821582848304141761050057600080fd5b80905090509050808061051257600080fd5b820490509050610260525b81516001018083528114156104b3575b5050610200516101e052610220516101c051808202821582848304141761055357600080fd5b80905090509050606480820490509050610260516002808202821582848304141761057d57600080fd5b8090509050905081818301101561059357600080fd5b808201905090506102005180820282158284830414176105b257600080fd5b80905090509050610220516064808210156105cc57600080fd5b808203905090506102005180820282158284830414176105eb57600080fd5b80905090509050606480820490509050600361026051808202821582848304141761061557600080fd5b8090509050905081818301101561062b57600080fd5b80820190509050808061063d57600080fd5b820490509050610200526101e051610200511115610692576001610200516101e0518082101561066c57600080fd5b8082039050905011151561068d576102005160005250506000516101a05156505b6106cb565b60016101e05161020051808210156106a957600080fd5b808203905090501115156106ca576102005160005250506000516101a05156505b5b5b815160010180835281141561049f575b505060006000fd005b60001561082d575b6101e0526101405261016052610180526101a0526101c0526101405161020052610160516102205261024060006002818352015b610200610240516002811061073557600080fd5b6020020151610180610240516002811061074e57600080fd5b6020020151808202821582848304141761076757600080fd5b80905090509050670de0b6b3a764000080820490509050610200610240516002811061079257600080fd5b60200201525b8151600101808352811415610721575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610200516102405261022051610260526101c05161028052610280516102605161024051600658016103e5565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516000526000516101e0515650005b63bb7b8b806000511415610a8557341561084657600080fd5b6101405160065801610231565b61016052610180526101405261016080516101a05280602001516101c052506101405161016051610180516101a0516101c0516101a0516101e0526101c05161020052610200516101e051600658016102ec565b61026052610280526101c0526101a05261018052610160526101405261026080516102a05280602001516102c052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516006580161001b565b6102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526102e051610300526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516102a051610320526102c051610340526103005161036052610360516103405161032051600658016103e5565b6103c052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103c0516101405260206101e060046318160ddd6101805261019c6005545afa610a2557600080fd5b601f3d11610a3257600080fd5b6000506101e0516101605261014051670de0b6b3a76400008082028215828483041417610a5e57600080fd5b80905090509050610160518080610a7457600080fd5b82049050905060005260206000f350005b63ed8e84f36000511415610db8573415610a9e57600080fd5b60443560011c15610aae57600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c0516102605261014051610280526102805161026051610240516102205161020051600658016106ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261020060006002818352015b60046102005160028110610bc957600080fd5b60200201356102205260443515610c16576101a06102005160028110610bee57600080fd5b60200201805161022051818183011015610c0757600080fd5b80820190509050815250610c4c565b6101a06102005160028110610c2a57600080fd5b6020020180516102205180821015610c4157600080fd5b808203905090508152505b5b8151600101808352811415610bb6575b50506101405161016051610180516101a0516101c0516101e05161020051610160516102205261018051610240526101a051610260526101c05161028052610140516102a0526102a05161028051610260516102405161022051600658016106ed565b61030052610200526101e0526101c0526101a052610180526101605261014052610300516102005260206102a060046318160ddd6102405261025c6005545afa610d0957600080fd5b601f3d11610d1657600080fd5b6000506102a0516102205260006102405260443515610d5457610200516101e05180821015610d4457600080fd5b8082039050905061024052610d75565b6101e0516102005180821015610d6957600080fd5b80820390509050610240525b61024051610220518082028215828483041417610d9157600080fd5b809050905090506101e0518080610da757600080fd5b82049050905060005260206000f350005b630b4c7e4d60005114156115e55762ffffff5415610dd557600080fd5b600162ffffff55600f5415610de957600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a0805161016052806020015161018052506005546101a052602061024060046318160ddd6101e0526101fc6101a0515afa610e6b57600080fd5b601f3d11610e7857600080fd5b600050610240516101c05260006101e05260018060c052602060c020546102005260018160c052602060c0200154610220525060006101c0511815610f49576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261018051610260526102005161028052610220516102a052610140516102c0526102c0516102a051610280516102605161024051600658016106ed565b6103205261022052610200526101e0526101c0526101a052610180526101605261014052610320516101e0525b6102005161024052610220516102605261028060006002818352015b6101c0511515610f9457600060046102805160028110610f8457600080fd5b602002013511610f9357600080fd5b5b6102406102805160028110610fa857600080fd5b60200201805160046102805160028110610fc157600080fd5b6020020135818183011015610fd557600080fd5b808201905090508152505b8151600101808352811415610f65575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610180516102c052610240516102e0526102605161030052610140516103205261032051610300516102e0516102c0516102a051600658016106ed565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526101e05161028051116110ad57600080fd5b610280516102a0526060366102c03760006101c051181561142657600254600280820282158284830414176110e157600080fd5b80905090509050600480820490509050610320526003546103405261036060006002818352015b61028051610200610360516002811061112057600080fd5b6020020151808202821582848304141761113957600080fd5b809050905090506101e051808061114f57600080fd5b8204905090506103805260006103a052610240610360516002811061117357600080fd5b60200201516103805111156111bc5761038051610240610360516002811061119a57600080fd5b6020020151808210156111ac57600080fd5b808203905090506103a0526111f2565b61024061036051600281106111d057600080fd5b602002015161038051808210156111e657600080fd5b808203905090506103a0525b610320516103a051808202821582848304141761120e57600080fd5b809050905090506402540be400808204905090506102c0610360516002811061123657600080fd5b6020020152610240610360516002811061124f57600080fd5b60200201516102c0610360516002811061126857600080fd5b602002015161034051808202821582848304141761128557600080fd5b809050905090506402540be40080820490509050808210156112a657600080fd5b8082039050905061036051600281106112be57600080fd5b600160c052602060c020015561024061036051600281106112de57600080fd5b6020020180516102c061036051600281106112f857600080fd5b60200201518082101561130a57600080fd5b808203905090508152505b8151600101808352811415611108575b5050610140610360525b610360515160206103605101610360526103606103605110156113515761132f565b6101605161038052610180516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a05161038051600658016106ed565b61046052610340610360525b61036051526020610360510361036052610140610360511015156113c5576113a2565b610460516102a0526101c0516102a0516101e051808210156113e657600080fd5b80820390509050808202821582848304141761140157600080fd5b809050905090506101e051808061141757600080fd5b82049050905061030052611449565b600160c052602060c0206102405181556102605160018201555061028051610300525b604435610300511015151561149d576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b60043534146114ab57600080fd5b600060243511156115135760206103e060646323b872dd61032052336103405230610360526024356103805261033c60006001600060c052602060c02001545af16114f557600080fd5b601f3d1161150257600080fd5b6000506103e05161151257600080fd5b5b60206103c060446340c10f19610320523361034052610300516103605261033c60006101a0515af161154457600080fd5b601f3d1161155157600080fd5b6000506103c05060043561032052602435610340526102c051610360526102e05161038052610280516103a0526101c0516103005181818301101561159557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015611a67575b6101e0526101405261016052610180526101a0526101c05261016051610140511861161757600080fd5b600061016051121561162857600080fd5b6002610160511261163857600080fd5b600061014051121561164957600080fd5b6002610140511261165957600080fd5b6101405161016051610180516101a0516101c0516101e051610200516006580161001b565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c051610260526102005161028052610280516102605161024051600658016103e5565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e05161022052610200516002808202821582848304141761173957600080fd5b80905090509050610240526102205161026052606036610280376102e060006002818352015b610140516102e051141561177a57610180516102a0526117b0565b610160516102e05118156117aa576101a06102e0516002811061179c57600080fd5b60200201516102a0526117af565b61182c565b5b61028080516102a0518181830110156117c857600080fd5b80820190509050815250610260516102205180820282158284830414176117ee57600080fd5b809050905090506102a0516002808202821582848304141761180f57600080fd5b80905090509050808061182157600080fd5b820490509050610260525b815160010180835281141561175f575b50506102605161022051808202821582848304141761185a57600080fd5b809050905090506064808202821582848304141761187757600080fd5b80905090509050610240516002808202821582848304141761189857600080fd5b8090509050905080806118aa57600080fd5b820490509050610260526102805161022051606480820282158284830414176118d257600080fd5b809050905090506102405180806118e857600080fd5b8204905090508181830110156118fd57600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b610300516102c0526103005161030051808202821582848304141761194057600080fd5b809050905090506102605181818301101561195a57600080fd5b80820190509050600261030051808202821582848304141761197b57600080fd5b809050905090506102e05181818301101561199557600080fd5b8082019050905061022051808210156119ad57600080fd5b8082039050905080806119bf57600080fd5b820490509050610300526102c051610300511115611a14576001610300516102c051808210156119ee57600080fd5b80820390509050111515611a0f576103005160005250506000516101e05156505b611a4d565b60016102c0516103005180821015611a2b57600080fd5b80820390509050111515611a4c576103005160005250506000516101e05156505b5b5b815160010180835281141561191c575b505060006000fd005b635e0d443f6000511415611d22573415611a8057600080fd5b60043580806000811215611a9057195b607f1c15611a9d57600080fd5b90505060243580806000811215611ab057195b607f1c15611abd57600080fd5b905050610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a0525061018060043560028110611b6357600080fd5b602002015160443561014060043560028110611b7e57600080fd5b60200201518082028215828483041417611b9757600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611bbd57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110611c5a57600080fd5b60200201516101e05180821015611c7057600080fd5b8082039050905061020052600254610200518082028215828483041417611c9657600080fd5b809050905090506402540be4008082049050905061022052610200516102205180821015611cc357600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611ce757600080fd5b8090509050905061014060243560028110611d0157600080fd5b60200201518080611d1157600080fd5b82049050905060005260206000f350005b6367df02ca6000511415611fdf573415611d3b57600080fd5b60043580806000811215611d4b57195b607f1c15611d5857600080fd5b90505060243580806000811215611d6b57195b607f1c15611d7857600080fd5b905050610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a0525061018060243560028110611e1e57600080fd5b60200201516044356402540be4008082028215828483041417611e4057600080fd5b809050905090506402540be40060025480821015611e5d57600080fd5b808203905090508080611e6f57600080fd5b82049050905061014060243560028110611e8857600080fd5b60200201518082028215828483041417611ea157600080fd5b80905090509050670de0b6b3a76400008082049050905080821015611ec557600080fd5b808203905090506101c0526101405161016051610180516101a0516101c0516101e05160243561020052600435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101e05161018060043560028110611f6657600080fd5b602002015180821015611f7857600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611f9c57600080fd5b8090509050905061014060043560028110611fb657600080fd5b60200201518080611fc657600080fd5b820490509050610200526102005160005260206000f350005b633df0212460005114156125f55762ffffff5415611ffc57600080fd5b600162ffffff556004358080600081121561201357195b607f1c1561202057600080fd5b9050506024358080600081121561203357195b607f1c1561204057600080fd5b905050600f541561205057600080fd5b610140516101605160065801610231565b610180526101a0526101605261014052610180805161014052806020015161016052506101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c051600658016102ec565b61024052610260526101a05261018052610160526101405261024080516101805280602001516101a05250610180600435600281106120f357600080fd5b60200201516044356101406004356002811061210e57600080fd5b6020020151808202821582848304141761212757600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561214d57600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a051610280526102805161026051610240516102205161020051600658016115ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e052610180602435600281106121ea57600080fd5b60200201516101e0518082101561220057600080fd5b8082039050905060018082101561221657600080fd5b808203905090506102005261020051600254808202821582848304141761223c57600080fd5b809050905090506402540be400808204905090506102205261022051600354808202821582848304141761226f57600080fd5b809050905090506402540be40080820490509050610240526101c051670de0b6b3a764000080820282158284830414176122a857600080fd5b80905090509050610140600435600281106122c257600080fd5b602002015180806122d257600080fd5b820490509050600435600281106122e857600080fd5b600160c052602060c02001556101e05161022051610240518082101561230d57600080fd5b8082039050905081818301101561232357600080fd5b80820190509050670de0b6b3a7640000808202821582848304141761234757600080fd5b809050905090506101406024356002811061236157600080fd5b6020020151808061237157600080fd5b8204905090506024356002811061238757600080fd5b600160c052602060c02001556102005161022051808210156123a857600080fd5b80820390509050670de0b6b3a764000080820282158284830414176123cc57600080fd5b80905090509050610140602435600281106123e657600080fd5b602002015180806123f657600080fd5b820490509050610200526064356102005110151515612479576308c379a061026052602061028052602e6102a0527f45786368616e676520726573756c74656420696e20666577657220636f696e736102c0527f207468616e2065787065637465640000000000000000000000000000000000006102e0526102a050608461027cfd5b6001600060c052602060c02001546102605260043515156124f55760443534146124a257600080fd5b6020610320604463a9059cbb61028052336102a052610200516102c05261029c6000610260515af16124d357600080fd5b601f3d116124e057600080fd5b600050610320516124f057600080fd5b612593565b341561250057600080fd5b602061034060646323b872dd61028052336102a052306102c0526044356102e05261029c6000610260515af161253557600080fd5b601f3d1161254257600080fd5b6000506103405161255257600080fd5b6000610280526102808051602001806102c08284600060045af161257557600080fd5b5050600060006102c0516102e061020051335af161259257600080fd5b5b600435610280526044356102a0526024356102c052610200516102e052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610280a261020051600052600062ffffff5560206000f350600062ffffff55005b635b36389c600051141561292b5762ffffff541561261257600080fd5b600162ffffff55341561262457600080fd5b6005546101405260206101e060046318160ddd6101805261019c610140515afa61264d57600080fd5b601f3d1161265a57600080fd5b6000506101e05161016052604036610180376101c060006002818352015b6101c0516002811061268957600080fd5b600160c052602060c02001546101e0526101e05160043580820282158284830414176126b457600080fd5b809050905090506101605180806126ca57600080fd5b8204905090506102005260246101c051600281106126e757600080fd5b60200201356102005110151515612762576308c379a0610220526020610240526030610260527f5769746864726177616c20726573756c74656420696e20666577657220636f69610280527f6e73207468616e206578706563746564000000000000000000000000000000006102a05261026050608461023cfd5b6101e051610200518082101561277757600080fd5b808203905090506101c0516002811061278f57600080fd5b600160c052602060c0200155610200516101806101c051600281106127b357600080fd5b60200201526101c0511515612807576000610220526102208051602001806102608284600060045af16127e557600080fd5b5050600060006102605161028061020051335af161280257600080fd5b612860565b60206102c0604463a9059cbb610220523361024052610200516102605261023c60006001600060c052602060c02001545af161284257600080fd5b601f3d1161284f57600080fd5b6000506102c05161285f57600080fd5b5b5b8151600101808352811415612678575b5050602061026060446379cc67906101c052336101e052600435610200526101dc6000610140515af16128a357600080fd5b601f3d116128b057600080fd5b60005061026050610180516101c0526101a0516101e0526040366102003761016051600435808210156128e257600080fd5b8082039050905061024052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101c0a2600062ffffff556040610180f3600062ffffff55005b63e310327360005114156130db5762ffffff541561294857600080fd5b600162ffffff55341561295a57600080fd5b600f541561296757600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051610160516101805160065801610231565b6101a0526101c0526101805261016052610140526101a08051610160528060200151610180525060018060c052602060c020546101a05260018160c052602060c02001546101c052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526101c0516102605261014051610280526102805161026051610240516102205161020051600658016106ed565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e0526101a051610200526101c0516102205261024060006002818352015b6102006102405160028110612a9357600080fd5b60200201805160046102405160028110612aac57600080fd5b602002013580821015612abe57600080fd5b808203905090508152505b8151600101808352811415612a7f575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101805161028052610200516102a052610220516102c052610140516102e0526102e0516102c0516102a0516102805161026051600658016106ed565b610340526102405261022052610200526101e0526101c0526101a05261018052610160526101405261034051610240526040366102603760025460028082028215828483041417612b9457600080fd5b809050905090506004808204905090506102a0526003546102c0526102e060006002818352015b610240516101a06102e05160028110612bd357600080fd5b60200201518082028215828483041417612bec57600080fd5b809050905090506101e0518080612c0257600080fd5b820490509050610300526102006102e05160028110612c2057600080fd5b60200201516103205260006103405261032051610300511115612c6257610300516103205180821015612c5257600080fd5b8082039050905061034052612c83565b610320516103005180821015612c7757600080fd5b80820390509050610340525b6102a051610340518082028215828483041417612c9f57600080fd5b809050905090506402540be400808204905090506102606102e05160028110612cc757600080fd5b6020020152610320516102606102e05160028110612ce457600080fd5b60200201516102c0518082028215828483041417612d0157600080fd5b809050905090506402540be4008082049050905080821015612d2257600080fd5b808203905090506102e05160028110612d3a57600080fd5b600160c052602060c0200155610320516102606102e05160028110612d5e57600080fd5b602002015180821015612d7057600080fd5b808203905090506102006102e05160028110612d8b57600080fd5b60200201525b8151600101808352811415612bbb575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610160516103005261018051610320526102005161034052610220516103605261014051610380526103805161036051610340516103205161030051600658016106ed565b6103e0526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e0516102e0526005546103005260206103a060046318160ddd6103405261035c610300515afa612e8d57600080fd5b601f3d11612e9a57600080fd5b6000506103a051610320526101e0516102e05180821015612eba57600080fd5b80820390509050610320518082028215828483041417612ed957600080fd5b809050905090506101e0518080612eef57600080fd5b8204905090506103405260006103405118612f0957600080fd5b6044356103405111151515612f5d576308c379a06103605260206103805260146103a0527f536c697070616765207363726577656420796f750000000000000000000000006103c0526103a050606461037cfd5b602061040060446379cc6790610360523361038052610340516103a05261037c6000610300515af1612f8e57600080fd5b601f3d11612f9b57600080fd5b6000506104005060006004351815612fed576000610360526103608051602001806103a08284600060045af1612fd057600080fd5b5050600060006103a0516103c0600435335af1612fec57600080fd5b5b60006024351815613050576020610400604463a9059cbb6103605233610380526024356103a05261037c60006001600060c052602060c02001545af161303257600080fd5b601f3d1161303f57600080fd5b6000506104005161304f57600080fd5b5b6004356103605260243561038052610260516103a052610280516103c052610240516103e05261032051610340518082101561308b57600080fd5b8082039050905061040052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610360a261034051600052600062ffffff5560206000f350600062ffffff55005b600015613448575b6101e0526101405261016052610180526101a0526101c052600061016051121561310c57600080fd5b6002610160511261311c57600080fd5b610140516002808202821582848304141761313657600080fd5b80905090509050610200526101c05161022052606036610240376102a060006002818352015b610160516102a051181561318c576101806102a0516002811061317e57600080fd5b602002015161026052613191565b61320d565b6102408051610260518181830110156131a957600080fd5b80820190509050815250610220516101c05180820282158284830414176131cf57600080fd5b8090509050905061026051600280820282158284830414176131f057600080fd5b80905090509050808061320257600080fd5b820490509050610220525b815160010180835281141561315c575b5050610220516101c051808202821582848304141761323b57600080fd5b809050905090506064808202821582848304141761325857600080fd5b80905090509050610200516002808202821582848304141761327957600080fd5b80905090509050808061328b57600080fd5b82049050905061022052610240516101c051606480820282158284830414176132b357600080fd5b809050905090506102005180806132c957600080fd5b8204905090508181830110156132de57600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610280526102c0516102c051808202821582848304141761332157600080fd5b809050905090506102205181818301101561333b57600080fd5b8082019050905060026102c051808202821582848304141761335c57600080fd5b809050905090506102a05181818301101561337657600080fd5b808201905090506101c0518082101561338e57600080fd5b8082039050905080806133a057600080fd5b8204905090506102c052610280516102c05111156133f55760016102c05161028051808210156133cf57600080fd5b808203905090501115156133f0576102c05160005250506000516101e05156505b61342e565b6001610280516102c0518082101561340c57600080fd5b8082039050905011151561342d576102c05160005250506000516101e05156505b5b5b81516001018083528114156132fd575b505060006000fd005b600015613aee575b6101805261014052610160526101405161016051610180516101a0516006580161001b565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e05160065801610231565b61020052610220526101e0526101c0526101a05261018052610160526101405261020080516101c05280602001516101e052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e051610260526102605161024051600658016102ec565b6102c0526102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102c0805161020052806020015161022052506101405161016051610180516101a0516101c0516101e051610200516102205161024051610200516102605261022051610280526101a0516102a0526102a0516102805161026051600658016103e5565b610300526102405261022052610200526101e0526101c0526101a052610180526101605261014052610300516102405260206102e060046318160ddd6102805261029c6005545afa61360357600080fd5b601f3d1161361057600080fd5b6000506102e05161026052610240516101405161024051808202821582848304141761363b57600080fd5b8090509050905061026051808061365157600080fd5b8204905090508082101561366457600080fd5b80820390509050610280526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516101a0516102c052610160516102e0526102005161030052610220516103205261028051610340526103405161032051610300516102e0516102c051600658016130e3565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a052610200516102c052610220516102e0526002546002808202821582848304141761374957600080fd5b809050905090506004808204905090506103005261032060006002818352015b600061034052610200610320516002811061378357600080fd5b602002015161036052610160516103205114156137f357610360516102805180820282158284830414176137b657600080fd5b809050905090506102405180806137cc57600080fd5b8204905090506102a051808210156137e357600080fd5b8082039050905061034052613848565b610360516103605161028051808202821582848304141761381357600080fd5b8090509050905061024051808061382957600080fd5b8204905090508082101561383c57600080fd5b80820390509050610340525b6102c0610320516002811061385c57600080fd5b6020020180516103005161034051808202821582848304141761387e57600080fd5b809050905090506402540be400808204905090508082101561389f57600080fd5b808203905090508152505b8151600101808352811415613769575b50506102c061016051600281106138d057600080fd5b6020020151610140610340525b610340515160206103405101610340526103406103405110156138ff576138dd565b6101a0516103605261016051610380526102c0516103a0526102e0516103c052610280516103e0526103e0516103c0516103a0516103805161036051600658016130e3565b61044052610320610340525b610340515260206103405103610340526101406103405110151561397357613950565b610440518082101561398457600080fd5b80820390509050610320526101c061016051600281106139a357600080fd5b602002015161034052610320516001808210156139bf57600080fd5b80820390509050670de0b6b3a764000080820282158284830414176139e357600080fd5b809050905090506103405180806139f957600080fd5b820490509050610320526102006101605160028110613a1757600080fd5b60200201516102a05180821015613a2d57600080fd5b80820390509050670de0b6b3a76400008082028215828483041417613a5157600080fd5b80905090509050610340518080613a6757600080fd5b8204905090506103605261038080808061032051815250506020810190508080610360516103205180821015613a9c57600080fd5b808203905090508152505060409050905060c05260c0516103c0525b60006103c051111515613aca57613ae6565b60206103c05103610380015160206103c051036103c052613ab8565b610180515650005b63cc2b27d76000511415613b7d573415613b0757600080fd5b60243580806000811215613b1757195b607f1c15613b2457600080fd5b9050506004356101405260243561016052610160516101405160065801613450565b6101c0526101e0526101c080808080516102005250506020810190508080805161022052505050506102005160005260206000f350005b631a4d01d26000511415613e595762ffffff5415613b9a57600080fd5b600162ffffff553415613bac57600080fd5b60243580806000811215613bbc57195b607f1c15613bc957600080fd5b905050600f5415613bd957600080fd5b604036610140376101405161016051600435610180526024356101a0526101a0516101805160065801613450565b610200526102205261016052610140526102008080808051610240525050602081019050808080516102605250505050610240805161014052806020015161016052506044356101405110151515613c9e576308c379a06101805260206101a05260186101c0527f4e6f7420656e6f75676820636f696e732072656d6f76656400000000000000006101e0526101c050606461019cfd5b60243560028110613cae57600080fd5b600160c052602060c02001805461014051610160516003548082028215828483041417613cda57600080fd5b809050905090506402540be40080820490509050818183011015613cfd57600080fd5b8082019050905080821015613d1157600080fd5b80820390509050815550602061022060446379cc679061018052336101a0526004356101c05261019c60006005545af1613d4a57600080fd5b601f3d11613d5757600080fd5b600050610220506024351515613dac576000610180526101808051602001806101c08284600060045af1613d8a57600080fd5b5050600060006101c0516101e061014051335af1613da757600080fd5b613e05565b6020610220604463a9059cbb61018052336101a052610140516101c05261019c60006001600060c052602060c02001545af1613de757600080fd5b601f3d11613df457600080fd5b60005061022051613e0457600080fd5b5b60043561018052610140516101a052337f9e96dd3b997a2a257eec4df9bb6eaf626e206df5f543bd963682d143300be3106040610180a261014051600052600062ffffff5560206000f350600062ffffff55005b633c157e646000511415614008573415613e7257600080fd5b6004543314613e8057600080fd5b60085462015180818183011015613e9657600080fd5b80820190509050421015613ea957600080fd5b4262015180818183011015613ebd57600080fd5b808201905090506024351015613ed257600080fd5b610140516006580161001b565b6101605261014052610160516101405260043560648082028215828483041417613f0857600080fd5b809050905090506101605260006004351115613f2b57620f424060043510613f2e565b60005b613f3757600080fd5b61014051610160511015613f7a576101405161016051600a8082028215828483041417613f6357600080fd5b809050905090501015613f7557600080fd5b613fab565b61014051600a8082028215828483041417613f9457600080fd5b80905090509050610160511115613faa57600080fd5b5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588600051141561409857341561402157600080fd5b600454331461402f57600080fd5b610140516006580161001b565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a146760005114156141615734156140b157600080fd5b60045433146140bf57600080fd5b600a54156140cc57600080fd5b64012a05f20060043511156140e057600080fd5b6402540be40060243511156140f457600080fd5b426203f48081818301101561410857600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97600051141561421d5762ffffff541561417e57600080fd5b600162ffffff55341561419057600080fd5b600454331461419e57600080fd5b600a544210156141ad57600080fd5b6000600a54186141bc57600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1600062ffffff55005b63226840fb600051141561424b57341561423657600080fd5b600454331461424457600080fd5b6000600a55005b636b441a4060005114156142ea57341561426457600080fd5b60043560a01c1561427457600080fd5b600454331461428257600080fd5b600b541561428f57600080fd5b426203f4808181830110156142a357600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae600051141561438b5762ffffff541561430757600080fd5b600162ffffff55341561431957600080fd5b600454331461432757600080fd5b600b5442101561433657600080fd5b6000600b541861434557600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2600062ffffff55005b6386fbf19360005114156143b95734156143a457600080fd5b60045433146143b257600080fd5b6000600b55005b63e2e7d26460005114156144935734156143d257600080fd5b60043515156144055747600160c052602060c02054808210156143f457600080fd5b8082039050905060005260206000f3505b60206101c060246370a0823161014052306101605261015c6004356002811061442d57600080fd5b600060c052602060c02001545afa61444457600080fd5b601f3d1161445157600080fd5b6000506101c0516004356002811061446857600080fd5b600160c052602060c02001548082101561448157600080fd5b8082039050905060005260206000f350005b6330c54085600051141561461a5762ffffff54156144b057600080fd5b600162ffffff5534156144c257600080fd5b60045433146144d057600080fd5b47600160c052602060c02054808210156144e957600080fd5b80820390509050610140526000610140511815614541576000610160526101608051602001806101a08284600060045af161452357600080fd5b5050600060006101a0516101c061014051335af161454057600080fd5b5b60206101e060246370a0823161016052306101805261017c6001600060c052602060c02001545afa61457257600080fd5b601f3d1161457f57600080fd5b6000506101e0516001600160c052602060c0200154808210156145a157600080fd5b80820390509050610140526000610140511815614611576020610200604463a9059cbb610160523361018052610140516101a05261017c60006001600060c052602060c02001545af16145f357600080fd5b601f3d1161460057600080fd5b6000506102005161461057600080fd5b5b600062ffffff55005b63524c3901600051141561470c5762ffffff541561463757600080fd5b600162ffffff55341561464957600080fd5b600454331461465757600080fd5b61014060006002818352015b61014051151561467e5747600160c052602060c020556146f0565b60206101e060246370a0823161016052306101805261017c61014051600281106146a757600080fd5b600060c052602060c02001545afa6146be57600080fd5b601f3d116146cb57600080fd5b6000506101e05161014051600281106146e357600080fd5b600160c052602060c02001555b5b8151600101808352811415614663575b5050600062ffffff55005b63e3698853600051141561474857341561472557600080fd5b600454331461473357600080fd5b426010541161474157600080fd5b6001600f55005b633046f972600051141561477657341561476157600080fd5b600454331461476f57600080fd5b6000600f55005b63c661065760005114156147b657341561478f57600080fd5b6004356002811061479f57600080fd5b600060c052602060c020015460005260206000f350005b634903b0d160005114156147f65734156147cf57600080fd5b600435600281106147df57600080fd5b600160c052602060c020015460005260206000f350005b63ddca3f43600051141561481d57341561480f57600080fd5b60025460005260206000f350005b63fee3f7f9600051141561484457341561483657600080fd5b60035460005260206000f350005b638da5cb5b600051141561486b57341561485d57600080fd5b60045460005260206000f350005b6382c63066600051141561489257341561488457600080fd5b60055460005260206000f350005b635409491a60005114156148b95734156148ab57600080fd5b60065460005260206000f350005b63b4b577ad60005114156148e05734156148d257600080fd5b60075460005260206000f350005b632081066c60005114156149075734156148f957600080fd5b60085460005260206000f350005b6314052288600051141561492e57341561492057600080fd5b60095460005260206000f350005b63405e28f8600051141561495557341561494757600080fd5b600a5460005260206000f350005b63e0a0b586600051141561497c57341561496e57600080fd5b600b5460005260206000f350005b6358680d0b60005114156149a357341561499557600080fd5b600c5460005260206000f350005b63e382446260005114156149ca5734156149bc57600080fd5b600d5460005260206000f350005b631ec0cdc160005114156149f15734156149e357600080fd5b600e5460005260206000f350005b5b60006000fd
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000e95a203b1a91a908f9b9ce46459d101078c2c3cb000000000000000000000000aa17a236f2badc98ddc0cf999abb47d47fc0a6cf000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
-----Decoded View---------------
Arg [0] : _owner (address): 0x7EeAC6CDdbd1D0B8aF061742D41877D7F707289a
Arg [1] : _coins (address[2]): 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,0xE95A203B1a91a908F9B9CE46459d101078c2c3cb
Arg [2] : _pool_token (address): 0xaA17A236F2bAdc98DDc0Cf999AbB47D47Fc0A6Cf
Arg [3] : _A (uint256): 10
Arg [4] : _fee (uint256): 4000000
Arg [5] : _admin_fee (uint256): 5000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a
Arg [1] : 000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Arg [2] : 000000000000000000000000e95a203b1a91a908f9b9ce46459d101078c2c3cb
Arg [3] : 000000000000000000000000aa17a236f2badc98ddc0cf999abb47d47fc0a6cf
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [6] : 000000000000000000000000000000000000000000000000000000012a05f200
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.