More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 19,318 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove_liquidity... | 20656797 | 159 days ago | IN | 0 ETH | 0.00018944 | ||||
Remove_liquidity | 20096641 | 237 days ago | IN | 0 ETH | 0.00040951 | ||||
Exchange_underly... | 18165156 | 508 days ago | IN | 0 ETH | 0.00679329 | ||||
Exchange_underly... | 16307907 | 768 days ago | IN | 0 ETH | 0.00351523 | ||||
Exchange_underly... | 15747580 | 847 days ago | IN | 0 ETH | 0.00388721 | ||||
Exchange_underly... | 15740011 | 848 days ago | IN | 0 ETH | 0.01117951 | ||||
Exchange_underly... | 15730384 | 849 days ago | IN | 0 ETH | 0.00421304 | ||||
Exchange_underly... | 15730345 | 849 days ago | IN | 0 ETH | 0.00428707 | ||||
Exchange_underly... | 15642548 | 861 days ago | IN | 0 ETH | 0.00244431 | ||||
Exchange_underly... | 15626129 | 864 days ago | IN | 0 ETH | 0.00716259 | ||||
Exchange_underly... | 15626124 | 864 days ago | IN | 0 ETH | 0.0076862 | ||||
Exchange_underly... | 15608894 | 866 days ago | IN | 0 ETH | 0.00160171 | ||||
Exchange_underly... | 15607011 | 866 days ago | IN | 0 ETH | 0.0013572 | ||||
Exchange_underly... | 15606926 | 866 days ago | IN | 0 ETH | 0.00098212 | ||||
Exchange_underly... | 15606308 | 866 days ago | IN | 0 ETH | 0.00102921 | ||||
Exchange_underly... | 15604808 | 867 days ago | IN | 0 ETH | 0.00147825 | ||||
Exchange_underly... | 15604749 | 867 days ago | IN | 0 ETH | 0.0014653 | ||||
Exchange_underly... | 15407441 | 897 days ago | IN | 0 ETH | 0.00171347 | ||||
Exchange_underly... | 15177556 | 933 days ago | IN | 0 ETH | 0.00429451 | ||||
Exchange_underly... | 15059708 | 951 days ago | IN | 0 ETH | 0.00687042 | ||||
Exchange_underly... | 14986420 | 965 days ago | IN | 0 ETH | 0.02772764 | ||||
Exchange_underly... | 14921670 | 976 days ago | IN | 0 ETH | 0.01438445 | ||||
Exchange_underly... | 14879741 | 983 days ago | IN | 0 ETH | 0.01975735 | ||||
Exchange_underly... | 14877683 | 983 days ago | IN | 0 ETH | 0.00726481 | ||||
Exchange_underly... | 14876452 | 983 days ago | IN | 0 ETH | 0.02359667 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21790747 | 23 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 ETH | |||||
21789145 | 28 hrs ago | 0 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 Curve UST Metapool @author Curve.Fi @license Copyright (c) Curve.Fi, 2020 - all rights reserved @dev Utilizes 3Pool to allow swaps between UST / DAI / USDC / USDT """ from vyper.interfaces import ERC20 interface CurveToken: def totalSupply() -> uint256: view def mint(_to: address, _value: uint256) -> bool: nonpayable def burnFrom(_to: address, _value: uint256) -> bool: nonpayable interface Curve: def coins(i: uint256) -> address: view def get_virtual_price() -> uint256: view def calc_token_amount(amounts: uint256[BASE_N_COINS], deposit: bool) -> uint256: view def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: view def fee() -> uint256: view def get_dy(i: int128, j: int128, dx: uint256) -> uint256: view def get_dy_underlying(i: int128, j: int128, dx: uint256) -> uint256: view def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256): nonpayable def add_liquidity(amounts: uint256[BASE_N_COINS], min_mint_amount: uint256): nonpayable def remove_liquidity_one_coin(_token_amount: uint256, i: int128, min_amount: uint256): nonpayable # Events event TokenExchange: buyer: indexed(address) sold_id: int128 tokens_sold: uint256 bought_id: int128 tokens_bought: uint256 event TokenExchangeUnderlying: buyer: indexed(address) sold_id: int128 tokens_sold: uint256 bought_id: int128 tokens_bought: uint256 event AddLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event RemoveLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] token_supply: uint256 event RemoveLiquidityOne: provider: indexed(address) token_amount: uint256 coin_amount: uint256 token_supply: uint256 event RemoveLiquidityImbalance: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event CommitNewAdmin: deadline: indexed(uint256) admin: indexed(address) event NewAdmin: admin: indexed(address) event CommitNewFee: deadline: indexed(uint256) fee: uint256 admin_fee: uint256 event NewFee: fee: uint256 admin_fee: uint256 event RampA: old_A: uint256 new_A: uint256 initial_time: uint256 future_time: uint256 event StopRampA: A: uint256 t: uint256 N_COINS: constant(int128) = 2 MAX_COIN: constant(int128) = N_COINS - 1 FEE_DENOMINATOR: constant(uint256) = 10 ** 10 PRECISION: constant(uint256) = 10 ** 18 # The precision to convert to PRECISION_MUL: constant(uint256[N_COINS]) = [1, 1] RATES: constant(uint256[N_COINS]) = [1000000000000000000, 1000000000000000000] BASE_N_COINS: constant(int128) = 3 # An asset which may have a transfer fee (USDT) FEE_ASSET: constant(address) = 0xdAC17F958D2ee523a2206206994597C13D831ec7 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) token: public(CurveToken) # Token corresponding to the pool is always the last one BASE_CACHE_EXPIRES: constant(int128) = 10 * 60 # 10 min base_pool: public(address) base_virtual_price: public(uint256) base_cache_updated: public(uint256) base_coins: public(address[BASE_N_COINS]) 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, _base_pool: address, _A: uint256, _fee: uint256, _admin_fee: uint256 ): """ @notice Contract constructor @param _owner Contract owner address @param _coins Addresses of ERC20 conracts of coins @param _pool_token Address of the token representing LP share @param _base_pool Address of the base pool (which will have a virtual price) @param _A Amplification coefficient multiplied by n * (n - 1) @param _fee Fee to charge for exchanges @param _admin_fee Admin fee """ for i in range(N_COINS): assert _coins[i] != ZERO_ADDRESS self.coins = _coins self.initial_A = _A * A_PRECISION self.future_A = _A * A_PRECISION self.fee = _fee self.admin_fee = _admin_fee self.owner = _owner self.kill_deadline = block.timestamp + KILL_DEADLINE_DT self.token = CurveToken(_pool_token) self.base_pool = _base_pool self.base_virtual_price = Curve(_base_pool).get_virtual_price() self.base_cache_updated = block.timestamp for i in range(BASE_N_COINS): _base_coin: address = Curve(_base_pool).coins(convert(i, uint256)) self.base_coins[i] = _base_coin # approve underlying coins for infinite transfers _response: Bytes[32] = raw_call( _base_coin, concat( method_id("approve(address,uint256)"), convert(_base_pool, bytes32), convert(MAX_UINT256, bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) @view @internal def _A() -> uint256: """ Handle ramping A up or down """ t1: uint256 = self.future_A_time A1: uint256 = self.future_A if block.timestamp < t1: A0: uint256 = self.initial_A t0: uint256 = self.initial_A_time # Expressions in uint256 cannot have negative numbers, thus "if" if A1 > A0: return A0 + (A1 - A0) * (block.timestamp - t0) / (t1 - t0) else: return A0 - (A0 - A1) * (block.timestamp - t0) / (t1 - t0) else: # when t1 == 0 or block.timestamp >= t1 return A1 @view @external def A() -> uint256: return self._A() / A_PRECISION @view @external def A_precise() -> uint256: return self._A() @view @internal def _xp(vp_rate: uint256) -> uint256[N_COINS]: result: uint256[N_COINS] = RATES result[MAX_COIN] = vp_rate # virtual price for the metacurrency for i in range(N_COINS): result[i] = result[i] * self.balances[i] / PRECISION return result @pure @internal def _xp_mem(vp_rate: uint256, _balances: uint256[N_COINS]) -> uint256[N_COINS]: result: uint256[N_COINS] = RATES result[MAX_COIN] = vp_rate # virtual price for the metacurrency for i in range(N_COINS): result[i] = result[i] * _balances[i] / PRECISION return result @internal def _vp_rate() -> uint256: if block.timestamp > self.base_cache_updated + BASE_CACHE_EXPIRES: vprice: uint256 = Curve(self.base_pool).get_virtual_price() self.base_virtual_price = vprice self.base_cache_updated = block.timestamp return vprice else: return self.base_virtual_price @internal @view def _vp_rate_ro() -> uint256: if block.timestamp > self.base_cache_updated + BASE_CACHE_EXPIRES: return Curve(self.base_pool).get_virtual_price() else: return self.base_virtual_price @pure @internal 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(vp_rate: uint256, _balances: uint256[N_COINS], amp: uint256) -> uint256: xp: uint256[N_COINS] = self._xp_mem(vp_rate, _balances) return self.get_D(xp, amp) @view @external def get_virtual_price() -> uint256: """ @notice The current virtual price of the pool LP token @dev Useful for calculating profits @return LP token virtual price normalized to 1e18 """ amp: uint256 = self._A() vp_rate: uint256 = self._vp_rate_ro() xp: uint256[N_COINS] = self._xp(vp_rate) D: uint256 = self.get_D(xp, amp) # D is in the units similar to DAI (e.g. converted to precision 1e18) # When balanced, D = n * x_u - total virtual value of the portfolio token_supply: uint256 = self.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() vp_rate: uint256 = self._vp_rate_ro() _balances: uint256[N_COINS] = self.balances D0: uint256 = self.get_D_mem(vp_rate, _balances, amp) for i in range(N_COINS): if is_deposit: _balances[i] += amounts[i] else: _balances[i] -= amounts[i] D1: uint256 = self.get_D_mem(vp_rate, _balances, amp) token_amount: uint256 = self.token.totalSupply() diff: uint256 = 0 if is_deposit: diff = D1 - D0 else: diff = D0 - D1 return diff * token_amount / D0 @external @nonreentrant('lock') def add_liquidity(amounts: uint256[N_COINS], min_mint_amount: uint256) -> uint256: """ @notice Deposit coins into the pool @param amounts List of amounts of coins to deposit @param min_mint_amount Minimum amount of LP tokens to mint from the deposit @return Amount of LP tokens received by depositing """ assert not self.is_killed # dev: is killed amp: uint256 = self._A() vp_rate: uint256 = self._vp_rate() token_supply: uint256 = self.token.totalSupply() _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) _admin_fee: uint256 = self.admin_fee # Initial invariant D0: uint256 = 0 old_balances: uint256[N_COINS] = self.balances if token_supply > 0: D0 = self.get_D_mem(vp_rate, old_balances, amp) new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): if token_supply == 0: assert amounts[i] > 0 # dev: initial deposit requires all coins # balances store amounts of c-tokens new_balances[i] = old_balances[i] + amounts[i] # Invariant after change D1: uint256 = self.get_D_mem(vp_rate, new_balances, amp) assert D1 > D0 # We need to recalculate the invariant accounting for fees # to calculate fair user's share fees: uint256[N_COINS] = empty(uint256[N_COINS]) D2: uint256 = D1 if token_supply > 0: # Only account for fees if we are not the first to deposit 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(vp_rate, new_balances, amp) else: self.balances = new_balances # Calculate, how much pool tokens to mint mint_amount: uint256 = 0 if token_supply == 0: mint_amount = D1 # Take the dust if there was any else: mint_amount = token_supply * (D2 - D0) / D0 assert mint_amount >= min_mint_amount, "Slippage screwed you" # Take coins from the sender for i in range(N_COINS): if amounts[i] > 0: assert ERC20(self.coins[i]).transferFrom(msg.sender, self, amounts[i]) # dev: failed transfer # Mint pool tokens self.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 amp: uint256 = self._A() D: uint256 = self.get_D(xp_, amp) S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 c: uint256 = D Ann: uint256 = amp * N_COINS for _i in range(N_COINS): if _i == i: _x = x elif _i != j: _x = xp_[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann # - D y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @external def get_dy(i: int128, j: int128, dx: uint256) -> uint256: # dx and dy in c-units rates: uint256[N_COINS] = RATES rates[MAX_COIN] = self._vp_rate_ro() xp: uint256[N_COINS] = self._xp(rates[MAX_COIN]) x: uint256 = xp[i] + (dx * rates[i] / PRECISION) y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 _fee: uint256 = self.fee * dy / FEE_DENOMINATOR return (dy - _fee) * PRECISION / rates[j] @view @external def get_dy_underlying(i: int128, j: int128, dx: uint256) -> uint256: # dx and dy in underlying units vp_rate: uint256 = self._vp_rate_ro() xp: uint256[N_COINS] = self._xp(vp_rate) precisions: uint256[N_COINS] = PRECISION_MUL _base_pool: address = self.base_pool # Use base_i or base_j if they are >= 0 base_i: int128 = i - MAX_COIN base_j: int128 = j - MAX_COIN meta_i: int128 = MAX_COIN meta_j: int128 = MAX_COIN if base_i < 0: meta_i = i if base_j < 0: meta_j = j x: uint256 = 0 if base_i < 0: x = xp[i] + dx * precisions[i] else: if base_j < 0: # i is from BasePool # At first, get the amount of pool tokens base_inputs: uint256[BASE_N_COINS] = empty(uint256[BASE_N_COINS]) base_inputs[base_i] = dx # Token amount transformed to underlying "dollars" x = Curve(_base_pool).calc_token_amount(base_inputs, True) * vp_rate / PRECISION # Accounting for deposit/withdraw fees approximately x -= x * Curve(_base_pool).fee() / (2 * FEE_DENOMINATOR) # Adding number of pool tokens x += xp[MAX_COIN] else: # If both are from the base pool return Curve(_base_pool).get_dy(base_i, base_j, dx) # This pool is involved only when in-pool assets are used y: uint256 = self.get_y(meta_i, meta_j, x, xp) dy: uint256 = xp[meta_j] - y - 1 dy = (dy - self.fee * dy / FEE_DENOMINATOR) # If output is going via the metapool if base_j < 0: dy /= precisions[meta_j] else: # j is from BasePool # The fee is already accounted for dy = Curve(_base_pool).calc_withdraw_one_coin(dy * PRECISION / vp_rate, base_j) return dy @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] = RATES rates[MAX_COIN] = self._vp_rate() old_balances: uint256[N_COINS] = self.balances xp: uint256[N_COINS] = self._xp_mem(rates[MAX_COIN], old_balances) x: uint256 = xp[i] + dx * rates[i] / PRECISION y: uint256 = self.get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 # -1 just in case there were some rounding errors dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR # Convert all to real units dy = (dy - dy_fee) * PRECISION / rates[j] assert dy >= min_dy, "Too few coins in result" dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR dy_admin_fee = dy_admin_fee * PRECISION / rates[j] # Change balances exactly in same way as we change actual ERC20 coin amounts self.balances[i] = old_balances[i] + dx # When rounding errors happen, we undercharge admin fee in favor of LP self.balances[j] = old_balances[j] - dy - dy_admin_fee assert ERC20(self.coins[i]).transferFrom(msg.sender, self, dx) assert ERC20(self.coins[j]).transfer(msg.sender, dy) log TokenExchange(msg.sender, i, dx, j, dy) return dy @external @nonreentrant('lock') def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256: """ @notice Perform an exchange between two underlying coins @dev Index values can be found via the `underlying_coins` public getter method @param i Index value for the underlying coin to send @param j Index valie of the underlying 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] = RATES rates[MAX_COIN] = self._vp_rate() _base_pool: address = self.base_pool # Use base_i or base_j if they are >= 0 base_i: int128 = i - MAX_COIN base_j: int128 = j - MAX_COIN meta_i: int128 = MAX_COIN meta_j: int128 = MAX_COIN if base_i < 0: meta_i = i if base_j < 0: meta_j = j dy: uint256 = 0 # Addresses for input and output coins input_coin: address = ZERO_ADDRESS if base_i < 0: input_coin = self.coins[i] else: input_coin = self.base_coins[base_i] output_coin: address = ZERO_ADDRESS if base_j < 0: output_coin = self.coins[j] else: output_coin = self.base_coins[base_j] # Handle potential Tether fees dx_w_fee: uint256 = dx if input_coin == FEE_ASSET: dx_w_fee = ERC20(FEE_ASSET).balanceOf(self) # "safeTransferFrom" which works for ERC20s which return bool or not _response: Bytes[32] = raw_call( input_coin, concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(dx, bytes32), ), max_outsize=32, ) # dev: failed transfer if len(_response) > 0: assert convert(_response, bool) # dev: failed transfer # end "safeTransferFrom" # Handle potential Tether fees if input_coin == FEE_ASSET: dx_w_fee = ERC20(FEE_ASSET).balanceOf(self) - dx_w_fee if base_i < 0 or base_j < 0: old_balances: uint256[N_COINS] = self.balances xp: uint256[N_COINS] = self._xp_mem(rates[MAX_COIN], old_balances) x: uint256 = 0 if base_i < 0: x = xp[i] + dx_w_fee * rates[i] / PRECISION else: # i is from BasePool # At first, get the amount of pool tokens base_inputs: uint256[BASE_N_COINS] = empty(uint256[BASE_N_COINS]) base_inputs[base_i] = dx_w_fee coin_i: address = self.coins[MAX_COIN] # Deposit and measure delta x = ERC20(coin_i).balanceOf(self) Curve(_base_pool).add_liquidity(base_inputs, 0) # Need to convert pool token to "virtual" units using rates # dx is also different now dx_w_fee = ERC20(coin_i).balanceOf(self) - x x = dx_w_fee * rates[MAX_COIN] / PRECISION # Adding number of pool tokens x += xp[MAX_COIN] y: uint256 = self.get_y(meta_i, meta_j, x, xp) # Either a real coin or token dy = xp[meta_j] - y - 1 # -1 just in case there were some rounding errors dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR # Convert all to real units # Works for both pool coins and real coins dy = (dy - dy_fee) * PRECISION / rates[meta_j] dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR dy_admin_fee = dy_admin_fee * PRECISION / rates[meta_j] # Change balances exactly in same way as we change actual ERC20 coin amounts self.balances[meta_i] = old_balances[meta_i] + dx_w_fee # When rounding errors happen, we undercharge admin fee in favor of LP self.balances[meta_j] = old_balances[meta_j] - dy - dy_admin_fee # Withdraw from the base pool if needed if base_j >= 0: out_amount: uint256 = ERC20(output_coin).balanceOf(self) Curve(_base_pool).remove_liquidity_one_coin(dy, base_j, 0) dy = ERC20(output_coin).balanceOf(self) - out_amount assert dy >= min_dy, "Too few coins in result" else: # If both are from the base pool dy = ERC20(output_coin).balanceOf(self) Curve(_base_pool).exchange(base_i, base_j, dx_w_fee, min_dy) dy = ERC20(output_coin).balanceOf(self) - dy # "safeTransfer" which works for ERC20s which return bool or not _response = raw_call( output_coin, concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(dy, bytes32), ), max_outsize=32, ) # dev: failed transfer if len(_response) > 0: assert convert(_response, bool) # dev: failed transfer # end "safeTransfer" log TokenExchangeUnderlying(msg.sender, i, dx, j, dy) return dy @external @nonreentrant('lock') def remove_liquidity(_amount: uint256, min_amounts: uint256[N_COINS]) -> uint256[N_COINS]: """ @notice Withdraw coins from the pool @dev Withdrawal amounts are based on current deposit ratios @param _amount Quantity of LP tokens to burn in the withdrawal @param min_amounts Minimum amounts of underlying coins to receive @return List of amounts of coins that were withdrawn """ total_supply: uint256 = self.token.totalSupply() amounts: uint256[N_COINS] = empty(uint256[N_COINS]) fees: uint256[N_COINS] = empty(uint256[N_COINS]) # Fees are unused but we've got them historically in event for i in range(N_COINS): value: uint256 = self.balances[i] * _amount / total_supply assert value >= min_amounts[i], "Too few coins in result" self.balances[i] -= value amounts[i] = value assert ERC20(self.coins[i]).transfer(msg.sender, value) self.token.burnFrom(msg.sender, _amount) # dev: insufficient funds log RemoveLiquidity(msg.sender, amounts, fees, total_supply - _amount) return amounts @external @nonreentrant('lock') def remove_liquidity_imbalance(amounts: uint256[N_COINS], max_burn_amount: uint256) -> uint256: """ @notice Withdraw coins from the pool in an imbalanced amount @param amounts List of amounts of underlying coins to withdraw @param max_burn_amount Maximum amount of LP token to burn in the withdrawal @return Actual amount of the LP token burned in the withdrawal """ assert not self.is_killed # dev: is killed amp: uint256 = self._A() vp_rate: uint256 = self._vp_rate() token_supply: uint256 = self.token.totalSupply() assert token_supply != 0 # dev: zero total supply _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) _admin_fee: uint256 = self.admin_fee old_balances: uint256[N_COINS] = self.balances new_balances: uint256[N_COINS] = old_balances D0: uint256 = self.get_D_mem(vp_rate, old_balances, amp) for i in range(N_COINS): new_balances[i] -= amounts[i] D1: uint256 = self.get_D_mem(vp_rate, new_balances, amp) fees: uint256[N_COINS] = empty(uint256[N_COINS]) 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: uint256 = self.get_D_mem(vp_rate, new_balances, amp) token_amount: uint256 = (D0 - D2) * token_supply / D0 assert token_amount != 0 # dev: zero tokens burned token_amount += 1 # In case of rounding errors - make it unfavorable for the "attacker" assert token_amount <= max_burn_amount, "Slippage screwed you" self.token.burnFrom(msg.sender, token_amount) # dev: insufficient funds for i in range(N_COINS): if amounts[i] != 0: assert ERC20(self.coins[i]).transfer(msg.sender, amounts[i]) log RemoveLiquidityImbalance(msg.sender, amounts, fees, D1, token_supply - token_amount) return token_amount @view @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 + x1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i >= 0 # dev: i below zero assert i < N_COINS # dev: i above N_COINS S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 c: uint256 = D Ann: uint256 = A_ * N_COINS for _i in range(N_COINS): if _i != i: _x = xp[_i] else: continue S_ += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S_ + D * A_PRECISION / Ann y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @internal def _calc_withdraw_one_coin(_token_amount: uint256, i: int128, vp_rate: uint256) -> (uint256, uint256, uint256): # First, need to calculate # * Get current D # * Solve Eqn against y_i for D - _token_amount amp: uint256 = self._A() xp: uint256[N_COINS] = self._xp(vp_rate) D0: uint256 = self.get_D(xp, amp) total_supply: uint256 = self.token.totalSupply() D1: uint256 = D0 - _token_amount * D0 / total_supply new_y: uint256 = self.get_y_D(amp, i, xp, D1) _fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) rates: uint256[N_COINS] = RATES rates[MAX_COIN] = vp_rate xp_reduced: uint256[N_COINS] = xp dy_0: uint256 = (xp[i] - new_y) * PRECISION / rates[i] # w/o fees for j in range(N_COINS): dx_expected: uint256 = 0 if j == i: dx_expected = xp[j] * D1 / D0 - new_y else: dx_expected = xp[j] - xp[j] * D1 / D0 xp_reduced[j] -= _fee * dx_expected / FEE_DENOMINATOR dy: uint256 = xp_reduced[i] - self.get_y_D(amp, i, xp_reduced, D1) dy = (dy - 1) * PRECISION / rates[i] # Withdraw less to account for rounding errors return dy, dy_0 - dy, total_supply @view @external def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: """ @notice Calculate the amount received when withdrawing a single coin @param _token_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @return Amount of coin received """ vp_rate: uint256 = self._vp_rate_ro() return self._calc_withdraw_one_coin(_token_amount, i, vp_rate)[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 vp_rate: uint256 = self._vp_rate() dy: uint256 = 0 dy_fee: uint256 = 0 total_supply: uint256 = 0 dy, dy_fee, total_supply = self._calc_withdraw_one_coin(_token_amount, i, vp_rate) assert dy >= _min_amount, "Not enough coins removed" self.balances[i] -= (dy + dy_fee * self.admin_fee / FEE_DENOMINATOR) self.token.burnFrom(msg.sender, _token_amount) # dev: insufficient funds assert ERC20(self.coins[i]).transfer(msg.sender, dy) log RemoveLiquidityOne(msg.sender, _token_amount, dy, total_supply - _token_amount) return dy ### Admin functions ### @external def ramp_A(_future_A: uint256, _future_time: uint256): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.initial_A_time + MIN_RAMP_TIME assert _future_time >= block.timestamp + MIN_RAMP_TIME # dev: insufficient time _initial_A: uint256 = self._A() _future_A_p: uint256 = _future_A * A_PRECISION assert _future_A > 0 and _future_A < MAX_A if _future_A_p < _initial_A: assert _future_A_p * MAX_A_CHANGE >= _initial_A else: assert _future_A_p <= _initial_A * MAX_A_CHANGE self.initial_A = _initial_A self.future_A = _future_A_p self.initial_A_time = block.timestamp self.future_A_time = _future_time log RampA(_initial_A, _future_A_p, block.timestamp, _future_time) @external def stop_ramp_A(): assert msg.sender == self.owner # dev: only owner current_A: uint256 = self._A() self.initial_A = current_A self.future_A = current_A self.initial_A_time = block.timestamp self.future_A_time = block.timestamp # now (block.timestamp < t1) is always False, so we return saved A log StopRampA(current_A, block.timestamp) @external def commit_new_fee(new_fee: uint256, new_admin_fee: uint256): assert msg.sender == self.owner # dev: only owner assert self.admin_actions_deadline == 0 # dev: active action assert new_fee <= MAX_FEE # dev: fee exceeds maximum assert new_admin_fee <= MAX_ADMIN_FEE # dev: admin fee exceeds maximum _deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.admin_actions_deadline = _deadline self.future_fee = new_fee self.future_admin_fee = new_admin_fee log CommitNewFee(_deadline, new_fee, new_admin_fee) @external def apply_new_fee(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.admin_actions_deadline # dev: insufficient time assert self.admin_actions_deadline != 0 # dev: no active action self.admin_actions_deadline = 0 _fee: uint256 = self.future_fee _admin_fee: uint256 = self.future_admin_fee self.fee = _fee self.admin_fee = _admin_fee log NewFee(_fee, _admin_fee) @external def revert_new_parameters(): assert msg.sender == self.owner # dev: only owner self.admin_actions_deadline = 0 @external def commit_transfer_ownership(_owner: address): assert msg.sender == self.owner # dev: only owner assert self.transfer_ownership_deadline == 0 # dev: active transfer _deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.transfer_ownership_deadline = _deadline self.future_owner = _owner log CommitNewAdmin(_deadline, _owner) @external def apply_transfer_ownership(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.transfer_ownership_deadline # dev: insufficient time assert self.transfer_ownership_deadline != 0 # dev: no active transfer self.transfer_ownership_deadline = 0 _owner: address = self.future_owner self.owner = _owner log NewAdmin(_owner) @external def revert_transfer_ownership(): assert msg.sender == self.owner # dev: only owner self.transfer_ownership_deadline = 0 @view @external def admin_balances(i: uint256) -> uint256: return ERC20(self.coins[i]).balanceOf(self) - self.balances[i] @external def withdraw_admin_fees(): assert msg.sender == self.owner # dev: only owner for i in range(N_COINS): c: address = self.coins[i] value: uint256 = ERC20(c).balanceOf(self) - self.balances[i] if value > 0: assert ERC20(c).transfer(msg.sender, value) @external def donate_admin_fees(): assert msg.sender == self.owner # dev: only owner for i in range(N_COINS): self.balances[i] = ERC20(self.coins[i]).balanceOf(self) @external def kill_me(): assert msg.sender == self.owner # dev: only owner assert self.kill_deadline > block.timestamp # dev: deadline has passed self.is_killed = True @external def unkill_me(): assert msg.sender == self.owner # dev: only owner self.is_killed = False
Contract Security Audit
- 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":"TokenExchangeUnderlying","inputs":[{"type":"address","name":"buyer","indexed":true},{"type":"int128","name":"sold_id","indexed":false},{"type":"uint256","name":"tokens_sold","indexed":false},{"type":"int128","name":"bought_id","indexed":false},{"type":"uint256","name":"tokens_bought","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"invariant","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256","name":"token_amount","indexed":false},{"type":"uint256","name":"coin_amount","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityImbalance","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256[2]","name":"token_amounts","indexed":false},{"type":"uint256[2]","name":"fees","indexed":false},{"type":"uint256","name":"invariant","indexed":false},{"type":"uint256","name":"token_supply","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitNewAdmin","inputs":[{"type":"uint256","name":"deadline","indexed":true},{"type":"address","name":"admin","indexed":true}],"anonymous":false,"type":"event"},{"name":"NewAdmin","inputs":[{"type":"address","name":"admin","indexed":true}],"anonymous":false,"type":"event"},{"name":"CommitNewFee","inputs":[{"type":"uint256","name":"deadline","indexed":true},{"type":"uint256","name":"fee","indexed":false},{"type":"uint256","name":"admin_fee","indexed":false}],"anonymous":false,"type":"event"},{"name":"NewFee","inputs":[{"type":"uint256","name":"fee","indexed":false},{"type":"uint256","name":"admin_fee","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"type":"uint256","name":"old_A","indexed":false},{"type":"uint256","name":"new_A","indexed":false},{"type":"uint256","name":"initial_time","indexed":false},{"type":"uint256","name":"future_time","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"type":"uint256","name":"A","indexed":false},{"type":"uint256","name":"t","indexed":false}],"anonymous":false,"type":"event"},{"outputs":[],"inputs":[{"type":"address","name":"_owner"},{"type":"address[2]","name":"_coins"},{"type":"address","name":"_pool_token"},{"type":"address","name":"_base_pool"},{"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":5199},{"name":"A_precise","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":5161},{"name":"get_virtual_price","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1012517},{"name":"calc_token_amount","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"amounts"},{"type":"bool","name":"is_deposit"}],"stateMutability":"view","type":"function","gas":4018795},{"name":"add_liquidity","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256[2]","name":"amounts"},{"type":"uint256","name":"min_mint_amount"}],"stateMutability":"nonpayable","type":"function","gas":6256827},{"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":2450192},{"name":"get_dy_underlying","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"dx"}],"stateMutability":"view","type":"function","gas":2453398},{"name":"exchange","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"dx"},{"type":"uint256","name":"min_dy"}],"stateMutability":"nonpayable","type":"function","gas":2677213},{"name":"exchange_underlying","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"int128","name":"i"},{"type":"int128","name":"j"},{"type":"uint256","name":"dx"},{"type":"uint256","name":"min_dy"}],"stateMutability":"nonpayable","type":"function","gas":2692028},{"name":"remove_liquidity","outputs":[{"type":"uint256[2]","name":""}],"inputs":[{"type":"uint256","name":"_amount"},{"type":"uint256[2]","name":"min_amounts"}],"stateMutability":"nonpayable","type":"function","gas":163158},{"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":6256676},{"name":"calc_withdraw_one_coin","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_token_amount"},{"type":"int128","name":"i"}],"stateMutability":"view","type":"function","gas":4389},{"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":3946616},{"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":97272},{"name":"revert_new_parameters","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":21925},{"name":"commit_transfer_ownership","outputs":[],"inputs":[{"type":"address","name":"_owner"}],"stateMutability":"nonpayable","type":"function","gas":74663},{"name":"apply_transfer_ownership","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":60740},{"name":"revert_transfer_ownership","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":22015},{"name":"admin_balances","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"i"}],"stateMutability":"view","type":"function","gas":3511},{"name":"withdraw_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":9232},{"name":"donate_admin_fees","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":74995},{"name":"kill_me","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":38028},{"name":"unkill_me","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":22165},{"name":"coins","outputs":[{"type":"address","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":2250},{"name":"balances","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":2280},{"name":"fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2201},{"name":"admin_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2231},{"name":"owner","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2261},{"name":"token","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2291},{"name":"base_pool","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2321},{"name":"base_virtual_price","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2351},{"name":"base_cache_updated","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2381},{"name":"base_coins","outputs":[{"type":"address","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":2520},{"name":"initial_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2441},{"name":"future_A","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2471},{"name":"initial_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2501},{"name":"future_A_time","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2531},{"name":"admin_actions_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2561},{"name":"transfer_ownership_deadline","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2591},{"name":"future_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2621},{"name":"future_admin_fee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2651},{"name":"future_owner","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2681}]
Contract Creation Code
610100615d24610140396020615d2460c03960c05160a01c1561002157600080fd5b60206020615d240160c03960c05160a01c1561003c57600080fd5b60206040615d240160c03960c05160a01c1561005757600080fd5b60206060615d240160c03960c05160a01c1561007257600080fd5b60206080615d240160c03960c05160a01c1561008d57600080fd5b61024060006002818352015b600061016061024051600281106100af57600080fd5b6020020151186100be57600080fd5b5b8151600101808352811415610099575b5050600060c052602060c020610160518155610180516001820155506101e0516064808202821582848304141761010557600080fd5b80905090509050600a556101e0516064808202821582848304141761012957600080fd5b80905090509050600b5561020051600255610220516003556101405160045542624f1a0081818301101561015c57600080fd5b808201905090506014556101a0516005556101c05160065560206102a0600463bb7b8b806102405261025c6101c0515afa61019657600080fd5b601f3d116101a357600080fd5b6000506102a0516007554260085561024060006003818352015b6020610300602463c6610657610280526102405160008112156101df57600080fd5b6102a05261029c6101c0515afa6101f557600080fd5b601f3d1161020257600080fd5b600050610300516102605261026051610240516003811061022257600080fd5b600960c052602060c0200155600060046102e0527f095ea7b300000000000000000000000000000000000000000000000000000000610300526102e060048060208461034001018260208501600060045af15050805182019150506101c0516020826103400101526020810190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602082610340010152602081019050806103405261034090508051602001806103e08284600060045af16102e457600080fd5b505060206104a06103e0516104006000610260515af161030357600080fd5b60203d808211156103145780610316565b815b90509050610480526104808051602001806102808284600060045af161033b57600080fd5b5050600061028051111561038e5761028080602001516000825180602090131561036457600080fd5b809190121561037257600080fd5b806020036101000a8204905090509050151561038d57600080fd5b5b5b81516001018083528114156101bd575b5050615d0c56341561000a57600080fd5b600436101561001857615960565b600035601c526000156101c1575b61014052600d5461016052600b5461018052610160514210156101ae57600a546101a052600c546101c0526101a051610180511115610107576101a051610180516101a0518082101561007857600080fd5b80820390509050426101c0518082101561009157600080fd5b8082039050905080820282158284830414176100ac57600080fd5b80905090509050610160516101c051808210156100c857600080fd5b8082039050905080806100da57600080fd5b8204905090508181830110156100ef57600080fd5b808201905090506000526000516101405156506101a9565b6101a0516101a051610180518082101561012057600080fd5b80820390509050426101c0518082101561013957600080fd5b80820390509050808202821582848304141761015457600080fd5b80905090509050610160516101c0518082101561017057600080fd5b80820390509050808061018257600080fd5b8204905090508082101561019557600080fd5b808203905090506000526000516101405156505b6101bf565b610180516000526000516101405156505b005b63f446c1d060005114156101f45760065801610026565b610140526101405160648082049050905060005260206000f350005b6376a2f0f0600051141561021e5760065801610026565b610140526101405160005260206000f350005b600015610325575b6101605261014052670de0b6b3a764000061018052670de0b6b3a76400006101a052610140516101a0526101c060006002818352015b6101806101c0516002811061027057600080fd5b60200201516101c0516002811061028657600080fd5b600160c052602060c020015480820282158284830414176102a657600080fd5b80905090509050670de0b6b3a7640000808204905090506101806101c051600281106102d157600080fd5b60200201525b815160010180835281141561025c575b505060406101c0525b60006101c0511115156103025761031e565b60206101c05103610180015160206101c051036101c0526102f0565b6101605156005b600015610430575b6101a052610140526101605261018052670de0b6b3a76400006101c052670de0b6b3a76400006101e052610140516101e05261020060006002818352015b6101c0610200516002811061037f57600080fd5b6020020151610160610200516002811061039857600080fd5b602002015180820282158284830414176103b157600080fd5b80905090509050670de0b6b3a7640000808204905090506101c061020051600281106103dc57600080fd5b60200201525b815160010180835281141561036b575b50506040610200525b60006102005111151561040d57610429565b602061020051036101c0015160206102005103610200526103fb565b6101a05156005b6000156104ca575b6101405260085461025881818301101561045157600080fd5b808201905090504211156104b85760206101e0600463bb7b8b806101805261019c6006545afa61048057600080fd5b601f3d1161048d57600080fd5b6000506101e051610160526101605160075542600855610160516000526000516101405156506104c8565b6007546000526000516101405156505b005b600015610551575b610140526008546102588181830110156104eb57600080fd5b8082019050905042111561053f5760206101c0600463bb7b8b806101605261017c6006545afa61051a57600080fd5b601f3d1161052757600080fd5b6000506101c05160005260005161014051565061054f565b6007546000526000516101405156505b005b600015610859575b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c08051610200518181830110156105a457600080fd5b808201905090508152505b815160010180835281141561057c575b50506101c05115156105da5760006000526000516101a05156505b6101c0516102005261018051600280820282158284830414176105fc57600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a051026101400151610280526102605161020051808202821582848304141761065357600080fd5b80905090509050610280516002808202821582848304141761067457600080fd5b80905090509050808061068657600080fd5b820490509050610260525b8151600101808352811415610627575b5050610200516101e052610220516101c05180820282158284830414176106c757600080fd5b8090509050905060648082049050905061026051600280820282158284830414176106f157600080fd5b8090509050905081818301101561070757600080fd5b8082019050905061020051808202821582848304141761072657600080fd5b809050905090506102205160648082101561074057600080fd5b8082039050905061020051808202821582848304141761075f57600080fd5b80905090509050606480820490509050600361026051808202821582848304141761078957600080fd5b8090509050905081818301101561079f57600080fd5b8082019050905080806107b157600080fd5b820490509050610200526101e051610200511115610806576001610200516101e051808210156107e057600080fd5b80820390509050111515610801576102005160005250506000516101a05156505b61083f565b60016101e051610200518082101561081d57600080fd5b8082039050905011151561083e576102005160005250506000516101a05156505b5b5b8151600101808352811415610613575b505060006000fd005b600015610970575b6101c0526101405261016052610180526101a0526101405161016051610180516101a0516101c0516101e051610200516101405161022052610160516102405261018051610260526102605161024051610220516006580161032d565b6102c0526102e052610200526101e0526101c0526101a0526101805261016052610140526102c080516101e052806020015161020052506101405161016051610180516101a0516101c0516101e051610200516101e0516102205261020051610240526101a0516102605261026051610240516102205160065801610559565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516000526000516101c0515650005b63bb7b8b806000511415610af2576101405160065801610026565b610160526101405261016051610140526101405161016051600658016104d2565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801610226565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a052506101405161016051610180516101a0516101c051610180516101e0526101a05161020052610140516102205261022051610200516101e05160065801610559565b610280526101c0526101a052610180526101605261014052610280516101c052602061026060046318160ddd6102005261021c6005545afa610a9257600080fd5b601f3d11610a9f57600080fd5b600050610260516101e0526101c051670de0b6b3a76400008082028215828483041417610acb57600080fd5b809050905090506101e0518080610ae157600080fd5b82049050905060005260206000f350005b63ed8e84f36000511415610de75760443560011c15610b1057600080fd5b6101405160065801610026565b610160526101405261016051610140526101405161016051600658016104d2565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801610861565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526101e060006002818352015b60443515610c45576101806101e05160028110610c0957600080fd5b60200201805160046101e05160028110610c2257600080fd5b6020020135818183011015610c3657600080fd5b80820190509050815250610c8f565b6101806101e05160028110610c5957600080fd5b60200201805160046101e05160028110610c7257600080fd5b602002013580821015610c8457600080fd5b808203905090508152505b5b8151600101808352811415610bed575b50506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261014051610260526102605161024051610220516102005160065801610861565b6102c0526101e0526101c0526101a0526101805261016052610140526102c0516101e052602061028060046318160ddd6102205261023c6005545afa610d3857600080fd5b601f3d11610d4557600080fd5b600050610280516102005260006102205260443515610d83576101e0516101c05180821015610d7357600080fd5b8082039050905061022052610da4565b6101c0516101e05180821015610d9857600080fd5b80820390509050610220525b61022051610200518082028215828483041417610dc057600080fd5b809050905090506101c0518080610dd657600080fd5b82049050905060005260206000f350005b630b4c7e4d60005114156116455762ffffff5415610e0457600080fd5b600162ffffff5560135415610e1857600080fd5b6101405160065801610026565b61016052610140526101605161014052610140516101605160065801610438565b6101805261016052610140526101805161016052602061020060046318160ddd6101a0526101bc6005545afa610e7b57600080fd5b601f3d11610e8857600080fd5b600050610200516101805260025460028082028215828483041417610eac57600080fd5b809050905090506004808204905090506101a0526003546101c05260006101e05260018060c052602060c020546102005260018160c052602060c020015461022052506000610180511115610f81576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261020051610260526102205161028052610140516102a0526102a05161028051610260516102405160065801610861565b6103005261022052610200526101e0526101c0526101a052610180526101605261014052610300516101e0525b6102005161024052610220516102605261028060006002818352015b610180511515610fcc57600060046102805160028110610fbc57600080fd5b602002013511610fcb57600080fd5b5b6102006102805160028110610fe057600080fd5b602002015160046102805160028110610ff857600080fd5b602002013581818301101561100c57600080fd5b80820190509050610240610280516002811061102757600080fd5b60200201525b8151600101808352811415610f9d575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610240516102c052610260516102e0526101405161030052610300516102e0516102c0516102a05160065801610861565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526101e05161028051116110ee57600080fd5b6040366102a037610280516102e05260006101805111156113d35761030060006002818352015b61028051610200610300516002811061112d57600080fd5b6020020151808202821582848304141761114657600080fd5b809050905090506101e051808061115c57600080fd5b82049050905061032052600061034052610240610300516002811061118057600080fd5b60200201516103205111156111c9576103205161024061030051600281106111a757600080fd5b6020020151808210156111b957600080fd5b80820390509050610340526111ff565b61024061030051600281106111dd57600080fd5b602002015161032051808210156111f357600080fd5b80820390509050610340525b6101a05161034051808202821582848304141761121b57600080fd5b809050905090506402540be400808204905090506102a0610300516002811061124357600080fd5b6020020152610240610300516002811061125c57600080fd5b60200201516102a0610300516002811061127557600080fd5b60200201516101c051808202821582848304141761129257600080fd5b809050905090506402540be40080820490509050808210156112b357600080fd5b8082039050905061030051600281106112cb57600080fd5b600160c052602060c020015561024061030051600281106112eb57600080fd5b6020020180516102a0610300516002811061130557600080fd5b60200201518082101561131757600080fd5b808203905090508152505b8151600101808352811415611115575b5050610140610300525b6103005151602061030051016103005261030061030051101561135e5761133c565b61016051610320526102405161034052610260516103605261014051610380526103805161036051610340516103205160065801610861565b6103e0526102e0610300525b61030051526020610300510361030052610140610300511015156113c6576113a3565b6103e0516102e0526113ee565b600160c052602060c020610240518155610260516001820155505b60006103005261018051151561140b576102805161030052611460565b610180516102e0516101e0518082101561142457600080fd5b80820390509050808202821582848304141761143f57600080fd5b809050905090506101e051808061145557600080fd5b820490509050610300525b60443561030051101515156114b4576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b61032060006002818352015b6000600461032051600281106114d557600080fd5b6020020135111561156157602061040060646323b872dd61034052336103605230610380526004610320516002811061150d57600080fd5b60200201356103a05261035c6000610320516002811061152c57600080fd5b600060c052602060c02001545af161154357600080fd5b601f3d1161155057600080fd5b6000506104005161156057600080fd5b5b5b81516001018083528114156114c0575b505060206103c060446340c10f19610320523361034052610300516103605261033c60006005545af16115a457600080fd5b601f3d116115b157600080fd5b6000506103c05060043561032052602435610340526102a051610360526102c05161038052610280516103a05261018051610300518181830110156115f557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015611ac7575b6101e0526101405261016052610180526101a0526101c05261016051610140511861167757600080fd5b600061016051121561168857600080fd5b6002610160511261169857600080fd5b60006101405112156116a957600080fd5b600261014051126116b957600080fd5b6101405161016051610180516101a0516101c0516101e0516102005160065801610026565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c05161026052610200516102805261028051610260516102405160065801610559565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260603661024037610220516102a05261020051600280820282158284830414176117a857600080fd5b809050905090506102c0526102e060006002818352015b610140516102e05114156117da576101805161026052611810565b610160516102e051181561180a576101a06102e051600281106117fc57600080fd5b60200201516102605261180f565b61188c565b5b61024080516102605181818301101561182857600080fd5b808201905090508152506102a05161022051808202821582848304141761184e57600080fd5b80905090509050610260516002808202821582848304141761186f57600080fd5b80905090509050808061188157600080fd5b8204905090506102a0525b81516001018083528114156117bf575b50506102a0516102205180820282158284830414176118ba57600080fd5b80905090509050606480820282158284830414176118d757600080fd5b809050905090506102c051600280820282158284830414176118f857600080fd5b80905090509050808061190a57600080fd5b8204905090506102a05261024051610220516064808202821582848304141761193257600080fd5b809050905090506102c051808061194857600080fd5b82049050905081818301101561195d57600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b6103005161028052610300516103005180820282158284830414176119a057600080fd5b809050905090506102a0518181830110156119ba57600080fd5b8082019050905060026103005180820282158284830414176119db57600080fd5b809050905090506102e0518181830110156119f557600080fd5b808201905090506102205180821015611a0d57600080fd5b808203905090508080611a1f57600080fd5b8204905090506103005261028051610300511115611a74576001610300516102805180821015611a4e57600080fd5b80820390509050111515611a6f576103005160005250506000516101e05156505b611aad565b6001610280516103005180821015611a8b57600080fd5b80820390509050111515611aac576103005160005250506000516101e05156505b5b5b815160010180835281141561197c575b505060006000fd005b635e0d443f6000511415611d8c5760043580806000811215611ae557195b607f1c15611af257600080fd5b90505060243580806000811215611b0557195b607f1c15611b1257600080fd5b905050670de0b6b3a764000061014052670de0b6b3a7640000610160526101405161016051600658016104d2565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801610226565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a0525061018060043560028110611bb757600080fd5b602002015160443561014060043560028110611bd257600080fd5b60200201518082028215828483041417611beb57600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611c1157600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a0516102805261028051610260516102405161022051610200516006580161164d565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110611cae57600080fd5b60200201516101e05180821015611cc457600080fd5b80820390509050600180821015611cda57600080fd5b8082039050905061020052600254610200518082028215828483041417611d0057600080fd5b809050905090506402540be4008082049050905061022052610200516102205180821015611d2d57600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611d5157600080fd5b8090509050905061014060243560028110611d6b57600080fd5b60200201518080611d7b57600080fd5b82049050905060005260206000f350005b6307211ef7600051141561232d5760043580806000811215611daa57195b607f1c15611db757600080fd5b90505060243580806000811215611dca57195b607f1c15611dd757600080fd5b90505061014051600658016104d2565b61016052610140526101605161014052610140516101605161018051610140516101a0526101a05160065801610226565b61020052610220526101805261016052610140526102008051610160528060200151610180525060016101a05260016101c0526006546101e052600435600180820380806000811215611e6757195b607f1c15611e7457600080fd5b90509050905061020052602435600180820380806000811215611e9357195b607f1c15611ea057600080fd5b905090509050610220526001610240526001610260526000610200511215611eca57600435610240525b6000610220511215611ede57602435610260525b6000610280526000610200511215611f5d5761016060043560028110611f0357600080fd5b60200201516044356101a060043560028110611f1e57600080fd5b60200201518082028215828483041417611f3757600080fd5b80905090509050818183011015611f4d57600080fd5b8082019050905061028052612110565b60006102205112156120b8576060366102a0376044356102a06102005160038110611f8757600080fd5b602002015260206103e06084633883e119610300526102a051610320526102c051610340526102e0516103605260016103805261031c6101e0515afa611fcc57600080fd5b601f3d11611fd957600080fd5b6000506103e051610140518082028215828483041417611ff857600080fd5b80905090509050670de0b6b3a764000080820490509050610280526102808051610280516020610360600463ddca3f436103005261031c6101e0515afa61203e57600080fd5b601f3d1161204b57600080fd5b60005061036051808202821582848304141761206657600080fd5b809050905090506404a817c800808204905090508082101561208757600080fd5b808203905090508152506102808051610180518181830110156120a957600080fd5b8082019050905081525061210f565b60206103606064635e0d443f6102a052610200516102c052610220516102e052604435610300526102bc6101e0515afa6120f157600080fd5b601f3d116120fe57600080fd5b6000506103605160005260206000f3505b5b6101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a051610240516102c052610260516102e0526102805161030052610160516103205261018051610340526103405161032051610300516102e0516102c0516006580161164d565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a05261016061026051600281106121d557600080fd5b60200201516102a051808210156121eb57600080fd5b8082039050905060018082101561220157600080fd5b808203905090506102c0526102c0516002546102c051808202821582848304141761222b57600080fd5b809050905090506402540be400808204905090508082101561224c57600080fd5b808203905090506102c052600061022051121561229a576102c080516101a0610260516002811061227c57600080fd5b6020020151808061228c57600080fd5b82049050905081525061231e565b6020610380604463cc2b27d76102e0526102c051670de0b6b3a764000080820282158284830414176122cb57600080fd5b809050905090506101405180806122e157600080fd5b8204905090506103005261022051610320526102fc6101e0515afa61230557600080fd5b601f3d1161231257600080fd5b600050610380516102c0525b6102c05160005260206000f350005b633df0212460005114156129275762ffffff541561234a57600080fd5b600162ffffff556004358080600081121561236157195b607f1c1561236e57600080fd5b9050506024358080600081121561238157195b607f1c1561238e57600080fd5b9050506013541561239e57600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801610438565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526102405161022051610200516006580161032d565b6102a0526102c0526101e0526101c0526101a0526101805261016052610140526102a080516101c05280602001516101e052506101c06004356002811061248a57600080fd5b6020020151604435610140600435600281106124a557600080fd5b602002015180820282158284830414176124be57600080fd5b80905090509050670de0b6b3a7640000808204905090508181830110156124e457600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e0516102005161022051600435610240526024356102605261020051610280526101c0516102a0526101e0516102c0526102c0516102a0516102805161026051610240516006580161164d565b6103205261022052610200526101e0526101c0526101a05261018052610160526101405261032051610220526101c06024356002811061259157600080fd5b602002015161022051808210156125a757600080fd5b808203905090506001808210156125bd57600080fd5b80820390509050610240526102405160025480820282158284830414176125e357600080fd5b809050905090506402540be400808204905090506102605261024051610260518082101561261057600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761263457600080fd5b809050905090506101406024356002811061264e57600080fd5b6020020151808061265e57600080fd5b8204905090506102405260643561024051101515156126bc576308c379a06102805260206102a05260176102c0527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006102e0526102c050606461029cfd5b6102605160035480820282158284830414176126d757600080fd5b809050905090506402540be400808204905090506102805261028051670de0b6b3a7640000808202821582848304141761271057600080fd5b809050905090506101406024356002811061272a57600080fd5b6020020151808061273a57600080fd5b820490509050610280526101806004356002811061275757600080fd5b602002015160443581818301101561276e57600080fd5b808201905090506004356002811061278557600080fd5b600160c052602060c0200155610180602435600281106127a457600080fd5b602002015161024051808210156127ba57600080fd5b8082039050905061028051808210156127d257600080fd5b80820390509050602435600281106127e957600080fd5b600160c052602060c0200155602061036060646323b872dd6102a052336102c052306102e052604435610300526102bc60006004356002811061282b57600080fd5b600060c052602060c02001545af161284257600080fd5b601f3d1161284f57600080fd5b6000506103605161285f57600080fd5b6020610340604463a9059cbb6102a052336102c052610240516102e0526102bc60006024356002811061289157600080fd5b600060c052602060c02001545af16128a857600080fd5b601f3d116128b557600080fd5b600050610340516128c557600080fd5b6004356102a0526044356102c0526024356102e0526102405161030052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd9714060806102a0a261024051600052600062ffffff5560206000f350600062ffffff55005b63a6417ed660005114156136ee5762ffffff541561294457600080fd5b600162ffffff556004358080600081121561295b57195b607f1c1561296857600080fd5b9050506024358080600081121561297b57195b607f1c1561298857600080fd5b9050506013541561299857600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801610438565b6101805261016052610140526101805161016052600654610180526004356001808203808060008112156129f357195b607f1c15612a0057600080fd5b9050905090506101a052602435600180820380806000811215612a1f57195b607f1c15612a2c57600080fd5b9050905090506101c05260016101e05260016102005260006101a0511215612a56576004356101e0525b60006101c0511215612a6a57602435610200525b6040366102203760006101a0511215612aa25760043560028110612a8d57600080fd5b600060c052602060c020015461024052612ac4565b6101a05160038110612ab357600080fd5b600960c052602060c0200154610240525b60006102605260006101c0511215612afb5760243560028110612ae657600080fd5b600060c052602060c020015461026052612b1d565b6101c05160038110612b0c57600080fd5b600960c052602060c0200154610260525b6044356102805273dac17f958d2ee523a2206206994597c13d831ec7610240511415612b9457602061032060246370a082316102a052306102c0526102bc73dac17f958d2ee523a2206206994597c13d831ec75afa612b7b57600080fd5b601f3d11612b8857600080fd5b60005061032051610280525b60006004610300527f23b872dd000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905030602082610360010152602081019050604435602082610360010152602081019050806103605261036090508051602001806104208284600060045af1612c3957600080fd5b50506020610500610420516104406000610240515af1612c5857600080fd5b60203d80821115612c695780612c6b565b815b905090506104e0526104e08051602001806102a08284600060045af1612c9057600080fd5b505060006102a0511115612ce3576102a0806020015160008251806020901315612cb957600080fd5b8091901215612cc757600080fd5b806020036101000a82049050905090501515612ce257600080fd5b5b73dac17f958d2ee523a2206206994597c13d831ec7610240511415612d6b57602061038060246370a0823161030052306103205261031c73dac17f958d2ee523a2206206994597c13d831ec75afa612d3a57600080fd5b601f3d11612d4757600080fd5b600050610380516102805180821015612d5f57600080fd5b80820390509050610280525b60006101a0511215612d7e576001612d86565b60006101c051125b5b156134655760018060c052602060c020546103005260018160c052602060c02001546103205250610140610380525b61038051516020610380510161038052610380610380511015612dd857612db6565b610160516103a052610300516103c052610320516103e0526103e0516103c0516103a0516006580161032d565b6104405261046052610360610380525b6103805152602061038051036103805261014061038051101515612e3857612e15565b6104408051610340528060200151610360525060006103805260006101a0511215612edb5761034060043560028110612e7057600080fd5b60200201516102805161014060043560028110612e8c57600080fd5b60200201518082028215828483041417612ea557600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015612ecb57600080fd5b8082019050905061038052613050565b6060366103a037610280516103a06101a05160038110612efa57600080fd5b60200201526001600060c052602060c02001546104005260206104a060246370a0823161042052306104405261043c610400515afa612f3857600080fd5b601f3d11612f4557600080fd5b6000506104a05161038052610180513b612f5e57600080fd5b600060006084634515cef3610420526103a051610440526103c051610460526103e0516104805260006104a05261043c6000610180515af1612f9f57600080fd5b60206104a060246370a0823161042052306104405261043c610400515afa612fc657600080fd5b601f3d11612fd357600080fd5b6000506104a0516103805180821015612feb57600080fd5b80820390509050610280526102805161016051808202821582848304141761301257600080fd5b80905090509050670de0b6b3a7640000808204905090506103805261038080516103605181818301101561304557600080fd5b808201905090508152505b6101406103c0525b6103c0515160206103c051016103c0526103c06103c051101561307a57613058565b6101e0516103e0526102005161040052610380516104205261034051610440526103605161046052610460516104405161042051610400516103e0516006580161164d565b6104c0526103a06103c0525b6103c0515260206103c051036103c0526101406103c0511015156130ee576130cb565b6104c0516103a052610340610200516002811061310a57600080fd5b60200201516103a0518082101561312057600080fd5b8082039050905060018082101561313657600080fd5b808203905090506102205261022051600254808202821582848304141761315c57600080fd5b809050905090506402540be400808204905090506103c052610220516103c0518082101561318957600080fd5b80820390509050670de0b6b3a764000080820282158284830414176131ad57600080fd5b8090509050905061014061020051600281106131c857600080fd5b602002015180806131d857600080fd5b820490509050610220526103c05160035480820282158284830414176131fd57600080fd5b809050905090506402540be400808204905090506103e0526103e051670de0b6b3a7640000808202821582848304141761323657600080fd5b80905090509050610140610200516002811061325157600080fd5b6020020151808061326157600080fd5b8204905090506103e0526103006101e0516002811061327f57600080fd5b60200201516102805181818301101561329757600080fd5b808201905090506101e051600281106132af57600080fd5b600160c052602060c020015561030061020051600281106132cf57600080fd5b602002015161022051808210156132e557600080fd5b808203905090506103e051808210156132fd57600080fd5b80820390509050610200516002811061331557600080fd5b600160c052602060c020015560006101c05112151561340c5760206104a060246370a0823161042052306104405261043c610260515afa61335557600080fd5b601f3d1161336257600080fd5b6000506104a05161040052610180513b61337b57600080fd5b600060006064631a4d01d26104205261022051610440526101c0516104605260006104805261043c6000610180515af16133b457600080fd5b60206104a060246370a0823161042052306104405261043c610260515afa6133db57600080fd5b601f3d116133e857600080fd5b6000506104a051610400518082101561340057600080fd5b80820390509050610220525b6064356102205110151515613460576308c379a0610400526020610420526017610440527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006104605261044050606461041cfd5b61354c565b602061038060246370a0823161030052306103205261031c610260515afa61348c57600080fd5b601f3d1161349957600080fd5b6000506103805161022052610180513b6134b257600080fd5b600060006084633df02124610300526101a051610320526101c0516103405261028051610360526064356103805261031c6000610180515af16134f457600080fd5b602061038060246370a0823161030052306103205261031c610260515afa61351b57600080fd5b601f3d1161352857600080fd5b60005061038051610220518082101561354057600080fd5b80820390509050610220525b60006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905061022051602082610360010152602081019050806103605261036090508051602001806104008284600060045af16135e257600080fd5b505060206104c0610400516104206000610260515af161360157600080fd5b60203d808211156136125780613614565b815b905090506104a0526104a08051602001806102a08284600060045af161363957600080fd5b505060006102a051111561368c576102a080602001516000825180602090131561366257600080fd5b809190121561367057600080fd5b806020036101000a8204905090509050151561368b57600080fd5b5b6004356103005260443561032052602435610340526102205161036052337fd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b6080610300a261022051600052600062ffffff5560206000f350600062ffffff55005b635b36389c60005114156139ab5762ffffff541561370b57600080fd5b600162ffffff5560206101c060046318160ddd6101605261017c6005545afa61373357600080fd5b601f3d1161374057600080fd5b6000506101c05161014052608036610160376101e060006002818352015b6101e0516002811061376f57600080fd5b600160c052602060c0200154600435808202821582848304141761379257600080fd5b809050905090506101405180806137a857600080fd5b8204905090506102005260246101e051600281106137c557600080fd5b6020020135610200511015151561381b576308c379a0610220526020610240526017610260527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006102805261026050606461023cfd5b6101e0516002811061382c57600080fd5b600160c052602060c020018054610200518082101561384a57600080fd5b80820390509050815550610200516101606101e0516002811061386c57600080fd5b602002015260206102c0604463a9059cbb610220523361024052610200516102605261023c60006101e051600281106138a457600080fd5b600060c052602060c02001545af16138bb57600080fd5b601f3d116138c857600080fd5b6000506102c0516138d857600080fd5b5b815160010180835281141561375e575b5050602061028060446379cc67906101e0523361020052600435610220526101fc60006005545af161391a57600080fd5b601f3d1161392757600080fd5b60005061028050610160516101e05261018051610200526101a051610220526101c05161024052610140516004358082101561396257600080fd5b8082039050905061026052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101e0a2600062ffffff556040610160f3600062ffffff55005b63e310327360005114156141955762ffffff54156139c857600080fd5b600162ffffff55601354156139dc57600080fd5b6101405160065801610026565b61016052610140526101605161014052610140516101605160065801610438565b6101805261016052610140526101805161016052602061020060046318160ddd6101a0526101bc6005545afa613a3f57600080fd5b601f3d11613a4c57600080fd5b600050610200516101805260006101805118613a6757600080fd5b60025460028082028215828483041417613a8057600080fd5b809050905090506004808204905090506101a0526003546101c05260018060c052602060c020546101e05260018160c052602060c020015461020052506101e0516102205261020051610240526101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161016051610280526101e0516102a052610200516102c052610140516102e0526102e0516102c0516102a0516102805160065801610861565b61034052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610340516102605261028060006002818352015b6102206102805160028110613b8257600080fd5b60200201805160046102805160028110613b9b57600080fd5b602002013580821015613bad57600080fd5b808203905090508152505b8151600101808352811415613b6e575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610220516102c052610240516102e0526101405161030052610300516102e0516102c0516102a05160065801610861565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526040366102a0376102e060006002818352015b610280516101e06102e05160028110613c9257600080fd5b60200201518082028215828483041417613cab57600080fd5b80905090509050610260518080613cc157600080fd5b820490509050610300526000610320526102206102e05160028110613ce557600080fd5b6020020151610300511115613d2e57610300516102206102e05160028110613d0c57600080fd5b602002015180821015613d1e57600080fd5b8082039050905061032052613d64565b6102206102e05160028110613d4257600080fd5b60200201516103005180821015613d5857600080fd5b80820390509050610320525b6101a051610320518082028215828483041417613d8057600080fd5b809050905090506402540be400808204905090506102a06102e05160028110613da857600080fd5b60200201526102206102e05160028110613dc157600080fd5b60200201516102a06102e05160028110613dda57600080fd5b60200201516101c0518082028215828483041417613df757600080fd5b809050905090506402540be4008082049050905080821015613e1857600080fd5b808203905090506102e05160028110613e3057600080fd5b600160c052602060c02001556102206102e05160028110613e5057600080fd5b6020020180516102a06102e05160028110613e6a57600080fd5b602002015180821015613e7c57600080fd5b808203905090508152505b8151600101808352811415613c7a575b5050610140610300525b61030051516020610300510161030052610300610300511015613ec357613ea1565b61016051610320526102205161034052610240516103605261014051610380526103805161036051610340516103205160065801610861565b6103e0526102e0610300525b6103005152602061030051036103005261014061030051101515613f2b57613f08565b6103e0516102e052610260516102e05180821015613f4857600080fd5b80820390509050610180518082028215828483041417613f6757600080fd5b80905090509050610260518080613f7d57600080fd5b8204905090506103005260006103005118613f9757600080fd5b61030080516001818183011015613fad57600080fd5b80820190509050815250604435610300511115151561400b576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b60206103c060446379cc6790610320523361034052610300516103605261033c60006005545af161403b57600080fd5b601f3d1161404857600080fd5b6000506103c05061032060006002818352015b60006004610320516002811061407057600080fd5b602002013518156140f75760206103e0604463a9059cbb610340523361036052600461032051600281106140a357600080fd5b60200201356103805261035c600061032051600281106140c257600080fd5b600060c052602060c02001545af16140d957600080fd5b601f3d116140e657600080fd5b6000506103e0516140f657600080fd5b5b5b815160010180835281141561405b575b505060043561032052602435610340526102a051610360526102c05161038052610280516103a05261018051610300518082101561414557600080fd5b808203905090506103c052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015614502575b6101e0526101405261016052610180526101a0526101c05260006101605112156141c657600080fd5b600261016051126141d657600080fd5b606036610200376101c0516102605261014051600280820282158284830414176141ff57600080fd5b80905090509050610280526102a060006002818352015b610160516102a0511815614246576101806102a0516002811061423857600080fd5b60200201516102205261424b565b6142c7565b61020080516102205181818301101561426357600080fd5b80820190509050815250610260516101c051808202821582848304141761428957600080fd5b8090509050905061022051600280820282158284830414176142aa57600080fd5b8090509050905080806142bc57600080fd5b820490509050610260525b8151600101808352811415614216575b5050610260516101c05180820282158284830414176142f557600080fd5b809050905090506064808202821582848304141761431257600080fd5b80905090509050610280516002808202821582848304141761433357600080fd5b80905090509050808061434557600080fd5b82049050905061026052610200516101c0516064808202821582848304141761436d57600080fd5b8090509050905061028051808061438357600080fd5b82049050905081818301101561439857600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610240526102c0516102c05180820282158284830414176143db57600080fd5b80905090509050610260518181830110156143f557600080fd5b8082019050905060026102c051808202821582848304141761441657600080fd5b809050905090506102a05181818301101561443057600080fd5b808201905090506101c0518082101561444857600080fd5b80820390509050808061445a57600080fd5b8204905090506102c052610240516102c05111156144af5760016102c051610240518082101561448957600080fd5b808203905090501115156144aa576102c05160005250506000516101e05156505b6144e8565b6001610240516102c051808210156144c657600080fd5b808203905090501115156144e7576102c05160005250506000516101e05156505b5b5b81516001018083528114156143b7575b505060006000fd005b600015614b9d575b6101a0526101405261016052610180526101405161016051610180516101a0516101c05160065801610026565b6101e0526101c0526101a0526101805261016052610140526101e0516101c0526101405161016051610180516101a0516101c0516101e0516102005161018051610220526102205160065801610226565b610280526102a052610200526101e0526101c0526101a05261018052610160526101405261028080516101e052806020015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101e0516102405261020051610260526101c0516102805261028051610260516102405160065801610559565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260206102c060046318160ddd6102605261027c6005545afa61465957600080fd5b601f3d1161466657600080fd5b6000506102c05161024052610220516101405161022051808202821582848304141761469157600080fd5b809050905090506102405180806146a757600080fd5b820490509050808210156146ba57600080fd5b80820390509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101c0516102a052610160516102c0526101e0516102e0526102005161030052610260516103205261032051610300516102e0516102c0516102a0516006580161419d565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526002546002808202821582848304141761478757600080fd5b809050905090506004808204905090506102a052670de0b6b3a76400006102c052670de0b6b3a76400006102e052610180516102e0526101e0516103005261020051610320526101e061016051600281106147e157600080fd5b602002015161028051808210156147f757600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761481b57600080fd5b809050905090506102c0610160516002811061483657600080fd5b6020020151808061484657600080fd5b8204905090506103405261036060006002818352015b600061038052610160516103605114156148de576101e0610360516002811061488457600080fd5b60200201516102605180820282158284830414176148a157600080fd5b809050905090506102205180806148b757600080fd5b82049050905061028051808210156148ce57600080fd5b808203905090506103805261495d565b6101e061036051600281106148f257600080fd5b60200201516101e0610360516002811061490b57600080fd5b602002015161026051808202821582848304141761492857600080fd5b8090509050905061022051808061493e57600080fd5b8204905090508082101561495157600080fd5b80820390509050610380525b610300610360516002811061497157600080fd5b6020020180516102a05161038051808202821582848304141761499357600080fd5b809050905090506402540be40080820490509050808210156149b457600080fd5b808203905090508152505b815160010180835281141561485c575b505061030061016051600281106149e557600080fd5b6020020151610140610380525b61038051516020610380510161038052610380610380511015614a14576149f2565b6101c0516103a052610160516103c052610300516103e0526103205161040052610260516104205261042051610400516103e0516103c0516103a0516006580161419d565b61048052610360610380525b6103805152602061038051036103805261014061038051101515614a8857614a65565b6104805180821015614a9957600080fd5b808203905090506103605261036051600180821015614ab757600080fd5b80820390509050670de0b6b3a76400008082028215828483041417614adb57600080fd5b809050905090506102c06101605160028110614af657600080fd5b60200201518080614b0657600080fd5b8204905090506103605261038080808061036051815250506020810190508080610340516103605180821015614b3b57600080fd5b80820390509050815250506020810190508080610240518152505060609050905060c05260c0516103e0525b60006103e051111515614b7957614b95565b60206103e05103610380015160206103e051036103e052614b67565b6101a0515650005b63cc2b27d76000511415614c665760243580806000811215614bbb57195b607f1c15614bc857600080fd5b90505061014051600658016104d2565b61016052610140526101605161014052610140516004356101605260243561018052610140516101a0526101a05161018051610160516006580161450a565b61020052610220526102405261014052610200808080805161026052505060208101905080808051610280525050602081019050808080516102a052505050506102605160005260206000f350005b631a4d01d26000511415614f6b5762ffffff5415614c8357600080fd5b600162ffffff5560243580806000811215614c9a57195b607f1c15614ca757600080fd5b90505060135415614cb757600080fd5b6101405160065801610438565b61016052610140526101605161014052606036610160376101405161016051610180516101a0516004356101c0526024356101e0526101405161020052610200516101e0516101c0516006580161450a565b61026052610280526102a0526101a05261018052610160526101405261026080808080516102c0525050602081019050808080516102e05250506020810190508080805161030052505050506102c080516101605280602001516101805280604001516101a052506044356101605110151515614dd2576308c379a06101c05260206101e0526018610200527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610220526102005060646101dcfd5b60243560028110614de257600080fd5b600160c052602060c02001805461016051610180516003548082028215828483041417614e0e57600080fd5b809050905090506402540be40080820490509050818183011015614e3157600080fd5b8082019050905080821015614e4557600080fd5b80820390509050815550602061026060446379cc67906101c052336101e052600435610200526101dc60006005545af1614e7e57600080fd5b601f3d11614e8b57600080fd5b600050610260506020610260604463a9059cbb6101c052336101e05261016051610200526101dc600060243560028110614ec457600080fd5b600060c052602060c02001545af1614edb57600080fd5b601f3d11614ee857600080fd5b60005061026051614ef857600080fd5b6004356101c052610160516101e0526101a05160043580821015614f1b57600080fd5b8082039050905061020052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a060606101c0a261016051600052600062ffffff5560206000f350600062ffffff55005b633c157e64600051141561510f576004543314614f8757600080fd5b600c5462015180818183011015614f9d57600080fd5b80820190509050421015614fb057600080fd5b4262015180818183011015614fc457600080fd5b808201905090506024351015614fd957600080fd5b6101405160065801610026565b610160526101405261016051610140526004356064808202821582848304141761500f57600080fd5b80905090509050610160526000600435111561503257620f424060043510615035565b60005b61503e57600080fd5b61014051610160511015615081576101405161016051600a808202821582848304141761506a57600080fd5b80905090509050101561507c57600080fd5b6150b2565b61014051600a808202821582848304141761509b57600080fd5b809050905090506101605111156150b157600080fd5b5b61014051600a5561016051600b5542600c55602435600d556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588600051141561519457600454331461512b57600080fd5b6101405160065801610026565b6101605261014052610160516101405261014051600a5561014051600b5542600c5542600d55610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a146760005114156152525760045433146151b057600080fd5b600e54156151bd57600080fd5b64012a05f20060043511156151d157600080fd5b6402540be40060243511156151e557600080fd5b426203f4808181830110156151f957600080fd5b808201905090506101405261014051600e556004356010556024356011556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe9760005114156152e657600454331461526e57600080fd5b600e5442101561527d57600080fd5b6000600e541861528c57600080fd5b6000600e55601054610140526011546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb600051141561530957600454331461530257600080fd5b6000600e55005b636b441a40600051141561539d5760043560a01c1561532757600080fd5b600454331461533557600080fd5b600f541561534257600080fd5b426203f48081818301101561535657600080fd5b808201905090506101405261014051600f55600435601255600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae60005114156154165760045433146153b957600080fd5b600f544210156153c857600080fd5b6000600f54186153d757600080fd5b6000600f556012546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193600051141561543957600454331461543257600080fd5b6000600f55005b63e2e7d26460005114156154d55760206101c060246370a0823161014052306101605261015c6004356002811061546f57600080fd5b600060c052602060c02001545afa61548657600080fd5b601f3d1161549357600080fd5b6000506101c051600435600281106154aa57600080fd5b600160c052602060c0200154808210156154c357600080fd5b8082039050905060005260206000f350005b6330c5408560005114156155fe5760045433146154f157600080fd5b61014060006002818352015b610140516002811061550e57600080fd5b600060c052602060c020015461016052602061022060246370a082316101a052306101c0526101bc610160515afa61554557600080fd5b601f3d1161555257600080fd5b60005061022051610140516002811061556a57600080fd5b600160c052602060c02001548082101561558357600080fd5b808203905090506101805260006101805111156155e9576020610240604463a9059cbb6101a052336101c052610180516101e0526101bc6000610160515af16155cb57600080fd5b601f3d116155d857600080fd5b600050610240516155e857600080fd5b5b5b81516001018083528114156154fd575b5050005b63524c390160005114156156ac57600454331461561a57600080fd5b61014060006002818352015b60206101e060246370a0823161016052306101805261017c610140516002811061564f57600080fd5b600060c052602060c02001545afa61566657600080fd5b601f3d1161567357600080fd5b6000506101e051610140516002811061568b57600080fd5b600160c052602060c02001555b8151600101808352811415615626575b5050005b63e369885360005114156156dd5760045433146156c857600080fd5b42601454116156d657600080fd5b6001601355005b633046f97260005114156157005760045433146156f957600080fd5b6000601355005b63c66106576000511415615735576004356002811061571e57600080fd5b600060c052602060c020015460005260206000f350005b634903b0d1600051141561576a576004356002811061575357600080fd5b600160c052602060c020015460005260206000f350005b63ddca3f4360005114156157865760025460005260206000f350005b63fee3f7f960005114156157a25760035460005260206000f350005b638da5cb5b60005114156157be5760045460005260206000f350005b63fc0c546a60005114156157da5760055460005260206000f350005b635d6362bb60005114156157f65760065460005260206000f350005b6395ccc02f60005114156158125760075460005260206000f350005b638296f84f600051141561582e5760085460005260206000f350005b6387cb4f576000511415615863576004356003811061584c57600080fd5b600960c052602060c020015460005260206000f350005b635409491a600051141561587f57600a5460005260206000f350005b63b4b577ad600051141561589b57600b5460005260206000f350005b632081066c60005114156158b757600c5460005260206000f350005b631405228860005114156158d357600d5460005260206000f350005b63405e28f860005114156158ef57600e5460005260206000f350005b63e0a0b586600051141561590b57600f5460005260206000f350005b6358680d0b60005114156159275760105460005260206000f350005b63e382446260005114156159435760115460005260206000f350005b631ec0cdc1600051141561595f5760125460005260206000f350005b5b60006000fd5b6103a6615d0c036103a66000396103a6615d0c036000f3000000000000000000000000ecb456ea5365865ebab8a2661b0c503410e9b347000000000000000000000000a47c8bf37f92abed4a126bda807a7b7498661acd0000000000000000000000006c3f90f043a72fa612cbac8115ee7e52bde6e49000000000000000000000000094e131324b6054c0d789b190b2dac504e4361b53000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c7000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
Deployed Bytecode
0x341561000a57600080fd5b600436101561001857615960565b600035601c526000156101c1575b61014052600d5461016052600b5461018052610160514210156101ae57600a546101a052600c546101c0526101a051610180511115610107576101a051610180516101a0518082101561007857600080fd5b80820390509050426101c0518082101561009157600080fd5b8082039050905080820282158284830414176100ac57600080fd5b80905090509050610160516101c051808210156100c857600080fd5b8082039050905080806100da57600080fd5b8204905090508181830110156100ef57600080fd5b808201905090506000526000516101405156506101a9565b6101a0516101a051610180518082101561012057600080fd5b80820390509050426101c0518082101561013957600080fd5b80820390509050808202821582848304141761015457600080fd5b80905090509050610160516101c0518082101561017057600080fd5b80820390509050808061018257600080fd5b8204905090508082101561019557600080fd5b808203905090506000526000516101405156505b6101bf565b610180516000526000516101405156505b005b63f446c1d060005114156101f45760065801610026565b610140526101405160648082049050905060005260206000f350005b6376a2f0f0600051141561021e5760065801610026565b610140526101405160005260206000f350005b600015610325575b6101605261014052670de0b6b3a764000061018052670de0b6b3a76400006101a052610140516101a0526101c060006002818352015b6101806101c0516002811061027057600080fd5b60200201516101c0516002811061028657600080fd5b600160c052602060c020015480820282158284830414176102a657600080fd5b80905090509050670de0b6b3a7640000808204905090506101806101c051600281106102d157600080fd5b60200201525b815160010180835281141561025c575b505060406101c0525b60006101c0511115156103025761031e565b60206101c05103610180015160206101c051036101c0526102f0565b6101605156005b600015610430575b6101a052610140526101605261018052670de0b6b3a76400006101c052670de0b6b3a76400006101e052610140516101e05261020060006002818352015b6101c0610200516002811061037f57600080fd5b6020020151610160610200516002811061039857600080fd5b602002015180820282158284830414176103b157600080fd5b80905090509050670de0b6b3a7640000808204905090506101c061020051600281106103dc57600080fd5b60200201525b815160010180835281141561036b575b50506040610200525b60006102005111151561040d57610429565b602061020051036101c0015160206102005103610200526103fb565b6101a05156005b6000156104ca575b6101405260085461025881818301101561045157600080fd5b808201905090504211156104b85760206101e0600463bb7b8b806101805261019c6006545afa61048057600080fd5b601f3d1161048d57600080fd5b6000506101e051610160526101605160075542600855610160516000526000516101405156506104c8565b6007546000526000516101405156505b005b600015610551575b610140526008546102588181830110156104eb57600080fd5b8082019050905042111561053f5760206101c0600463bb7b8b806101605261017c6006545afa61051a57600080fd5b601f3d1161052757600080fd5b6000506101c05160005260005161014051565061054f565b6007546000526000516101405156505b005b600015610859575b6101a0526101405261016052610180526040366101c03761022060006002818352015b602061022051026101400151610200526101c08051610200518181830110156105a457600080fd5b808201905090508152505b815160010180835281141561057c575b50506101c05115156105da5760006000526000516101a05156505b6101c0516102005261018051600280820282158284830414176105fc57600080fd5b8090509050905061022052610240600060ff818352015b61020051610260526102a060006002818352015b60206102a051026101400151610280526102605161020051808202821582848304141761065357600080fd5b80905090509050610280516002808202821582848304141761067457600080fd5b80905090509050808061068657600080fd5b820490509050610260525b8151600101808352811415610627575b5050610200516101e052610220516101c05180820282158284830414176106c757600080fd5b8090509050905060648082049050905061026051600280820282158284830414176106f157600080fd5b8090509050905081818301101561070757600080fd5b8082019050905061020051808202821582848304141761072657600080fd5b809050905090506102205160648082101561074057600080fd5b8082039050905061020051808202821582848304141761075f57600080fd5b80905090509050606480820490509050600361026051808202821582848304141761078957600080fd5b8090509050905081818301101561079f57600080fd5b8082019050905080806107b157600080fd5b820490509050610200526101e051610200511115610806576001610200516101e051808210156107e057600080fd5b80820390509050111515610801576102005160005250506000516101a05156505b61083f565b60016101e051610200518082101561081d57600080fd5b8082039050905011151561083e576102005160005250506000516101a05156505b5b5b8151600101808352811415610613575b505060006000fd005b600015610970575b6101c0526101405261016052610180526101a0526101405161016051610180516101a0516101c0516101e051610200516101405161022052610160516102405261018051610260526102605161024051610220516006580161032d565b6102c0526102e052610200526101e0526101c0526101a0526101805261016052610140526102c080516101e052806020015161020052506101405161016051610180516101a0516101c0516101e051610200516101e0516102205261020051610240526101a0516102605261026051610240516102205160065801610559565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516000526000516101c0515650005b63bb7b8b806000511415610af2576101405160065801610026565b610160526101405261016051610140526101405161016051600658016104d2565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801610226565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a052506101405161016051610180516101a0516101c051610180516101e0526101a05161020052610140516102205261022051610200516101e05160065801610559565b610280526101c0526101a052610180526101605261014052610280516101c052602061026060046318160ddd6102005261021c6005545afa610a9257600080fd5b601f3d11610a9f57600080fd5b600050610260516101e0526101c051670de0b6b3a76400008082028215828483041417610acb57600080fd5b809050905090506101e0518080610ae157600080fd5b82049050905060005260206000f350005b63ed8e84f36000511415610de75760443560011c15610b1057600080fd5b6101405160065801610026565b610160526101405261016051610140526101405161016051600658016104d2565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801610861565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526101e060006002818352015b60443515610c45576101806101e05160028110610c0957600080fd5b60200201805160046101e05160028110610c2257600080fd5b6020020135818183011015610c3657600080fd5b80820190509050815250610c8f565b6101806101e05160028110610c5957600080fd5b60200201805160046101e05160028110610c7257600080fd5b602002013580821015610c8457600080fd5b808203905090508152505b5b8151600101808352811415610bed575b50506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261014051610260526102605161024051610220516102005160065801610861565b6102c0526101e0526101c0526101a0526101805261016052610140526102c0516101e052602061028060046318160ddd6102205261023c6005545afa610d3857600080fd5b601f3d11610d4557600080fd5b600050610280516102005260006102205260443515610d83576101e0516101c05180821015610d7357600080fd5b8082039050905061022052610da4565b6101c0516101e05180821015610d9857600080fd5b80820390509050610220525b61022051610200518082028215828483041417610dc057600080fd5b809050905090506101c0518080610dd657600080fd5b82049050905060005260206000f350005b630b4c7e4d60005114156116455762ffffff5415610e0457600080fd5b600162ffffff5560135415610e1857600080fd5b6101405160065801610026565b61016052610140526101605161014052610140516101605160065801610438565b6101805261016052610140526101805161016052602061020060046318160ddd6101a0526101bc6005545afa610e7b57600080fd5b601f3d11610e8857600080fd5b600050610200516101805260025460028082028215828483041417610eac57600080fd5b809050905090506004808204905090506101a0526003546101c05260006101e05260018060c052602060c020546102005260018160c052602060c020015461022052506000610180511115610f81576101405161016051610180516101a0516101c0516101e0516102005161022051610160516102405261020051610260526102205161028052610140516102a0526102a05161028051610260516102405160065801610861565b6103005261022052610200526101e0526101c0526101a052610180526101605261014052610300516101e0525b6102005161024052610220516102605261028060006002818352015b610180511515610fcc57600060046102805160028110610fbc57600080fd5b602002013511610fcb57600080fd5b5b6102006102805160028110610fe057600080fd5b602002015160046102805160028110610ff857600080fd5b602002013581818301101561100c57600080fd5b80820190509050610240610280516002811061102757600080fd5b60200201525b8151600101808352811415610f9d575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610240516102c052610260516102e0526101405161030052610300516102e0516102c0516102a05160065801610861565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526101e05161028051116110ee57600080fd5b6040366102a037610280516102e05260006101805111156113d35761030060006002818352015b61028051610200610300516002811061112d57600080fd5b6020020151808202821582848304141761114657600080fd5b809050905090506101e051808061115c57600080fd5b82049050905061032052600061034052610240610300516002811061118057600080fd5b60200201516103205111156111c9576103205161024061030051600281106111a757600080fd5b6020020151808210156111b957600080fd5b80820390509050610340526111ff565b61024061030051600281106111dd57600080fd5b602002015161032051808210156111f357600080fd5b80820390509050610340525b6101a05161034051808202821582848304141761121b57600080fd5b809050905090506402540be400808204905090506102a0610300516002811061124357600080fd5b6020020152610240610300516002811061125c57600080fd5b60200201516102a0610300516002811061127557600080fd5b60200201516101c051808202821582848304141761129257600080fd5b809050905090506402540be40080820490509050808210156112b357600080fd5b8082039050905061030051600281106112cb57600080fd5b600160c052602060c020015561024061030051600281106112eb57600080fd5b6020020180516102a0610300516002811061130557600080fd5b60200201518082101561131757600080fd5b808203905090508152505b8151600101808352811415611115575b5050610140610300525b6103005151602061030051016103005261030061030051101561135e5761133c565b61016051610320526102405161034052610260516103605261014051610380526103805161036051610340516103205160065801610861565b6103e0526102e0610300525b61030051526020610300510361030052610140610300511015156113c6576113a3565b6103e0516102e0526113ee565b600160c052602060c020610240518155610260516001820155505b60006103005261018051151561140b576102805161030052611460565b610180516102e0516101e0518082101561142457600080fd5b80820390509050808202821582848304141761143f57600080fd5b809050905090506101e051808061145557600080fd5b820490509050610300525b60443561030051101515156114b4576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b61032060006002818352015b6000600461032051600281106114d557600080fd5b6020020135111561156157602061040060646323b872dd61034052336103605230610380526004610320516002811061150d57600080fd5b60200201356103a05261035c6000610320516002811061152c57600080fd5b600060c052602060c02001545af161154357600080fd5b601f3d1161155057600080fd5b6000506104005161156057600080fd5b5b5b81516001018083528114156114c0575b505060206103c060446340c10f19610320523361034052610300516103605261033c60006005545af16115a457600080fd5b601f3d116115b157600080fd5b6000506103c05060043561032052602435610340526102a051610360526102c05161038052610280516103a05261018051610300518181830110156115f557600080fd5b808201905090506103c052337f26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a76860c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015611ac7575b6101e0526101405261016052610180526101a0526101c05261016051610140511861167757600080fd5b600061016051121561168857600080fd5b6002610160511261169857600080fd5b60006101405112156116a957600080fd5b600261014051126116b957600080fd5b6101405161016051610180516101a0516101c0516101e0516102005160065801610026565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610200526101405161016051610180516101a0516101c0516101e05161020051610220516101a051610240526101c05161026052610200516102805261028051610260516102405160065801610559565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260603661024037610220516102a05261020051600280820282158284830414176117a857600080fd5b809050905090506102c0526102e060006002818352015b610140516102e05114156117da576101805161026052611810565b610160516102e051181561180a576101a06102e051600281106117fc57600080fd5b60200201516102605261180f565b61188c565b5b61024080516102605181818301101561182857600080fd5b808201905090508152506102a05161022051808202821582848304141761184e57600080fd5b80905090509050610260516002808202821582848304141761186f57600080fd5b80905090509050808061188157600080fd5b8204905090506102a0525b81516001018083528114156117bf575b50506102a0516102205180820282158284830414176118ba57600080fd5b80905090509050606480820282158284830414176118d757600080fd5b809050905090506102c051600280820282158284830414176118f857600080fd5b80905090509050808061190a57600080fd5b8204905090506102a05261024051610220516064808202821582848304141761193257600080fd5b809050905090506102c051808061194857600080fd5b82049050905081818301101561195d57600080fd5b808201905090506102e0526102205161030052610320600060ff818352015b6103005161028052610300516103005180820282158284830414176119a057600080fd5b809050905090506102a0518181830110156119ba57600080fd5b8082019050905060026103005180820282158284830414176119db57600080fd5b809050905090506102e0518181830110156119f557600080fd5b808201905090506102205180821015611a0d57600080fd5b808203905090508080611a1f57600080fd5b8204905090506103005261028051610300511115611a74576001610300516102805180821015611a4e57600080fd5b80820390509050111515611a6f576103005160005250506000516101e05156505b611aad565b6001610280516103005180821015611a8b57600080fd5b80820390509050111515611aac576103005160005250506000516101e05156505b5b5b815160010180835281141561197c575b505060006000fd005b635e0d443f6000511415611d8c5760043580806000811215611ae557195b607f1c15611af257600080fd5b90505060243580806000811215611b0557195b607f1c15611b1257600080fd5b905050670de0b6b3a764000061014052670de0b6b3a7640000610160526101405161016051600658016104d2565b61018052610160526101405261018051610160526101405161016051610180516101a051610160516101c0526101c05160065801610226565b61022052610240526101a05261018052610160526101405261022080516101805280602001516101a0525061018060043560028110611bb757600080fd5b602002015160443561014060043560028110611bd257600080fd5b60200201518082028215828483041417611beb57600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015611c1157600080fd5b808201905090506101c0526101405161016051610180516101a0516101c0516101e05160043561020052602435610220526101c0516102405261018051610260526101a0516102805261028051610260516102405161022051610200516006580161164d565b6102e0526101e0526101c0526101a0526101805261016052610140526102e0516101e05261018060243560028110611cae57600080fd5b60200201516101e05180821015611cc457600080fd5b80820390509050600180821015611cda57600080fd5b8082039050905061020052600254610200518082028215828483041417611d0057600080fd5b809050905090506402540be4008082049050905061022052610200516102205180821015611d2d57600080fd5b80820390509050670de0b6b3a76400008082028215828483041417611d5157600080fd5b8090509050905061014060243560028110611d6b57600080fd5b60200201518080611d7b57600080fd5b82049050905060005260206000f350005b6307211ef7600051141561232d5760043580806000811215611daa57195b607f1c15611db757600080fd5b90505060243580806000811215611dca57195b607f1c15611dd757600080fd5b90505061014051600658016104d2565b61016052610140526101605161014052610140516101605161018051610140516101a0526101a05160065801610226565b61020052610220526101805261016052610140526102008051610160528060200151610180525060016101a05260016101c0526006546101e052600435600180820380806000811215611e6757195b607f1c15611e7457600080fd5b90509050905061020052602435600180820380806000811215611e9357195b607f1c15611ea057600080fd5b905090509050610220526001610240526001610260526000610200511215611eca57600435610240525b6000610220511215611ede57602435610260525b6000610280526000610200511215611f5d5761016060043560028110611f0357600080fd5b60200201516044356101a060043560028110611f1e57600080fd5b60200201518082028215828483041417611f3757600080fd5b80905090509050818183011015611f4d57600080fd5b8082019050905061028052612110565b60006102205112156120b8576060366102a0376044356102a06102005160038110611f8757600080fd5b602002015260206103e06084633883e119610300526102a051610320526102c051610340526102e0516103605260016103805261031c6101e0515afa611fcc57600080fd5b601f3d11611fd957600080fd5b6000506103e051610140518082028215828483041417611ff857600080fd5b80905090509050670de0b6b3a764000080820490509050610280526102808051610280516020610360600463ddca3f436103005261031c6101e0515afa61203e57600080fd5b601f3d1161204b57600080fd5b60005061036051808202821582848304141761206657600080fd5b809050905090506404a817c800808204905090508082101561208757600080fd5b808203905090508152506102808051610180518181830110156120a957600080fd5b8082019050905081525061210f565b60206103606064635e0d443f6102a052610200516102c052610220516102e052604435610300526102bc6101e0515afa6120f157600080fd5b601f3d116120fe57600080fd5b6000506103605160005260206000f3505b5b6101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a051610240516102c052610260516102e0526102805161030052610160516103205261018051610340526103405161032051610300516102e0516102c0516006580161164d565b6103a0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a0516102a05261016061026051600281106121d557600080fd5b60200201516102a051808210156121eb57600080fd5b8082039050905060018082101561220157600080fd5b808203905090506102c0526102c0516002546102c051808202821582848304141761222b57600080fd5b809050905090506402540be400808204905090508082101561224c57600080fd5b808203905090506102c052600061022051121561229a576102c080516101a0610260516002811061227c57600080fd5b6020020151808061228c57600080fd5b82049050905081525061231e565b6020610380604463cc2b27d76102e0526102c051670de0b6b3a764000080820282158284830414176122cb57600080fd5b809050905090506101405180806122e157600080fd5b8204905090506103005261022051610320526102fc6101e0515afa61230557600080fd5b601f3d1161231257600080fd5b600050610380516102c0525b6102c05160005260206000f350005b633df0212460005114156129275762ffffff541561234a57600080fd5b600162ffffff556004358080600081121561236157195b607f1c1561236e57600080fd5b9050506024358080600081121561238157195b607f1c1561238e57600080fd5b9050506013541561239e57600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801610438565b610180526101605261014052610180516101605260018060c052602060c020546101805260018160c052602060c02001546101a052506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a051610240526102405161022051610200516006580161032d565b6102a0526102c0526101e0526101c0526101a0526101805261016052610140526102a080516101c05280602001516101e052506101c06004356002811061248a57600080fd5b6020020151604435610140600435600281106124a557600080fd5b602002015180820282158284830414176124be57600080fd5b80905090509050670de0b6b3a7640000808204905090508181830110156124e457600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e0516102005161022051600435610240526024356102605261020051610280526101c0516102a0526101e0516102c0526102c0516102a0516102805161026051610240516006580161164d565b6103205261022052610200526101e0526101c0526101a05261018052610160526101405261032051610220526101c06024356002811061259157600080fd5b602002015161022051808210156125a757600080fd5b808203905090506001808210156125bd57600080fd5b80820390509050610240526102405160025480820282158284830414176125e357600080fd5b809050905090506402540be400808204905090506102605261024051610260518082101561261057600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761263457600080fd5b809050905090506101406024356002811061264e57600080fd5b6020020151808061265e57600080fd5b8204905090506102405260643561024051101515156126bc576308c379a06102805260206102a05260176102c0527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006102e0526102c050606461029cfd5b6102605160035480820282158284830414176126d757600080fd5b809050905090506402540be400808204905090506102805261028051670de0b6b3a7640000808202821582848304141761271057600080fd5b809050905090506101406024356002811061272a57600080fd5b6020020151808061273a57600080fd5b820490509050610280526101806004356002811061275757600080fd5b602002015160443581818301101561276e57600080fd5b808201905090506004356002811061278557600080fd5b600160c052602060c0200155610180602435600281106127a457600080fd5b602002015161024051808210156127ba57600080fd5b8082039050905061028051808210156127d257600080fd5b80820390509050602435600281106127e957600080fd5b600160c052602060c0200155602061036060646323b872dd6102a052336102c052306102e052604435610300526102bc60006004356002811061282b57600080fd5b600060c052602060c02001545af161284257600080fd5b601f3d1161284f57600080fd5b6000506103605161285f57600080fd5b6020610340604463a9059cbb6102a052336102c052610240516102e0526102bc60006024356002811061289157600080fd5b600060c052602060c02001545af16128a857600080fd5b601f3d116128b557600080fd5b600050610340516128c557600080fd5b6004356102a0526044356102c0526024356102e0526102405161030052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd9714060806102a0a261024051600052600062ffffff5560206000f350600062ffffff55005b63a6417ed660005114156136ee5762ffffff541561294457600080fd5b600162ffffff556004358080600081121561295b57195b607f1c1561296857600080fd5b9050506024358080600081121561297b57195b607f1c1561298857600080fd5b9050506013541561299857600080fd5b670de0b6b3a764000061014052670de0b6b3a764000061016052610140516101605160065801610438565b6101805261016052610140526101805161016052600654610180526004356001808203808060008112156129f357195b607f1c15612a0057600080fd5b9050905090506101a052602435600180820380806000811215612a1f57195b607f1c15612a2c57600080fd5b9050905090506101c05260016101e05260016102005260006101a0511215612a56576004356101e0525b60006101c0511215612a6a57602435610200525b6040366102203760006101a0511215612aa25760043560028110612a8d57600080fd5b600060c052602060c020015461024052612ac4565b6101a05160038110612ab357600080fd5b600960c052602060c0200154610240525b60006102605260006101c0511215612afb5760243560028110612ae657600080fd5b600060c052602060c020015461026052612b1d565b6101c05160038110612b0c57600080fd5b600960c052602060c0200154610260525b6044356102805273dac17f958d2ee523a2206206994597c13d831ec7610240511415612b9457602061032060246370a082316102a052306102c0526102bc73dac17f958d2ee523a2206206994597c13d831ec75afa612b7b57600080fd5b601f3d11612b8857600080fd5b60005061032051610280525b60006004610300527f23b872dd000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905030602082610360010152602081019050604435602082610360010152602081019050806103605261036090508051602001806104208284600060045af1612c3957600080fd5b50506020610500610420516104406000610240515af1612c5857600080fd5b60203d80821115612c695780612c6b565b815b905090506104e0526104e08051602001806102a08284600060045af1612c9057600080fd5b505060006102a0511115612ce3576102a0806020015160008251806020901315612cb957600080fd5b8091901215612cc757600080fd5b806020036101000a82049050905090501515612ce257600080fd5b5b73dac17f958d2ee523a2206206994597c13d831ec7610240511415612d6b57602061038060246370a0823161030052306103205261031c73dac17f958d2ee523a2206206994597c13d831ec75afa612d3a57600080fd5b601f3d11612d4757600080fd5b600050610380516102805180821015612d5f57600080fd5b80820390509050610280525b60006101a0511215612d7e576001612d86565b60006101c051125b5b156134655760018060c052602060c020546103005260018160c052602060c02001546103205250610140610380525b61038051516020610380510161038052610380610380511015612dd857612db6565b610160516103a052610300516103c052610320516103e0526103e0516103c0516103a0516006580161032d565b6104405261046052610360610380525b6103805152602061038051036103805261014061038051101515612e3857612e15565b6104408051610340528060200151610360525060006103805260006101a0511215612edb5761034060043560028110612e7057600080fd5b60200201516102805161014060043560028110612e8c57600080fd5b60200201518082028215828483041417612ea557600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015612ecb57600080fd5b8082019050905061038052613050565b6060366103a037610280516103a06101a05160038110612efa57600080fd5b60200201526001600060c052602060c02001546104005260206104a060246370a0823161042052306104405261043c610400515afa612f3857600080fd5b601f3d11612f4557600080fd5b6000506104a05161038052610180513b612f5e57600080fd5b600060006084634515cef3610420526103a051610440526103c051610460526103e0516104805260006104a05261043c6000610180515af1612f9f57600080fd5b60206104a060246370a0823161042052306104405261043c610400515afa612fc657600080fd5b601f3d11612fd357600080fd5b6000506104a0516103805180821015612feb57600080fd5b80820390509050610280526102805161016051808202821582848304141761301257600080fd5b80905090509050670de0b6b3a7640000808204905090506103805261038080516103605181818301101561304557600080fd5b808201905090508152505b6101406103c0525b6103c0515160206103c051016103c0526103c06103c051101561307a57613058565b6101e0516103e0526102005161040052610380516104205261034051610440526103605161046052610460516104405161042051610400516103e0516006580161164d565b6104c0526103a06103c0525b6103c0515260206103c051036103c0526101406103c0511015156130ee576130cb565b6104c0516103a052610340610200516002811061310a57600080fd5b60200201516103a0518082101561312057600080fd5b8082039050905060018082101561313657600080fd5b808203905090506102205261022051600254808202821582848304141761315c57600080fd5b809050905090506402540be400808204905090506103c052610220516103c0518082101561318957600080fd5b80820390509050670de0b6b3a764000080820282158284830414176131ad57600080fd5b8090509050905061014061020051600281106131c857600080fd5b602002015180806131d857600080fd5b820490509050610220526103c05160035480820282158284830414176131fd57600080fd5b809050905090506402540be400808204905090506103e0526103e051670de0b6b3a7640000808202821582848304141761323657600080fd5b80905090509050610140610200516002811061325157600080fd5b6020020151808061326157600080fd5b8204905090506103e0526103006101e0516002811061327f57600080fd5b60200201516102805181818301101561329757600080fd5b808201905090506101e051600281106132af57600080fd5b600160c052602060c020015561030061020051600281106132cf57600080fd5b602002015161022051808210156132e557600080fd5b808203905090506103e051808210156132fd57600080fd5b80820390509050610200516002811061331557600080fd5b600160c052602060c020015560006101c05112151561340c5760206104a060246370a0823161042052306104405261043c610260515afa61335557600080fd5b601f3d1161336257600080fd5b6000506104a05161040052610180513b61337b57600080fd5b600060006064631a4d01d26104205261022051610440526101c0516104605260006104805261043c6000610180515af16133b457600080fd5b60206104a060246370a0823161042052306104405261043c610260515afa6133db57600080fd5b601f3d116133e857600080fd5b6000506104a051610400518082101561340057600080fd5b80820390509050610220525b6064356102205110151515613460576308c379a0610400526020610420526017610440527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006104605261044050606461041cfd5b61354c565b602061038060246370a0823161030052306103205261031c610260515afa61348c57600080fd5b601f3d1161349957600080fd5b6000506103805161022052610180513b6134b257600080fd5b600060006084633df02124610300526101a051610320526101c0516103405261028051610360526064356103805261031c6000610180515af16134f457600080fd5b602061038060246370a0823161030052306103205261031c610260515afa61351b57600080fd5b601f3d1161352857600080fd5b60005061038051610220518082101561354057600080fd5b80820390509050610220525b60006004610300527fa9059cbb000000000000000000000000000000000000000000000000000000006103205261030060048060208461036001018260208501600060045af15050805182019150503360208261036001015260208101905061022051602082610360010152602081019050806103605261036090508051602001806104008284600060045af16135e257600080fd5b505060206104c0610400516104206000610260515af161360157600080fd5b60203d808211156136125780613614565b815b905090506104a0526104a08051602001806102a08284600060045af161363957600080fd5b505060006102a051111561368c576102a080602001516000825180602090131561366257600080fd5b809190121561367057600080fd5b806020036101000a8204905090509050151561368b57600080fd5b5b6004356103005260443561032052602435610340526102205161036052337fd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b6080610300a261022051600052600062ffffff5560206000f350600062ffffff55005b635b36389c60005114156139ab5762ffffff541561370b57600080fd5b600162ffffff5560206101c060046318160ddd6101605261017c6005545afa61373357600080fd5b601f3d1161374057600080fd5b6000506101c05161014052608036610160376101e060006002818352015b6101e0516002811061376f57600080fd5b600160c052602060c0200154600435808202821582848304141761379257600080fd5b809050905090506101405180806137a857600080fd5b8204905090506102005260246101e051600281106137c557600080fd5b6020020135610200511015151561381b576308c379a0610220526020610240526017610260527f546f6f2066657720636f696e7320696e20726573756c740000000000000000006102805261026050606461023cfd5b6101e0516002811061382c57600080fd5b600160c052602060c020018054610200518082101561384a57600080fd5b80820390509050815550610200516101606101e0516002811061386c57600080fd5b602002015260206102c0604463a9059cbb610220523361024052610200516102605261023c60006101e051600281106138a457600080fd5b600060c052602060c02001545af16138bb57600080fd5b601f3d116138c857600080fd5b6000506102c0516138d857600080fd5b5b815160010180835281141561375e575b5050602061028060446379cc67906101e0523361020052600435610220526101fc60006005545af161391a57600080fd5b601f3d1161392757600080fd5b60005061028050610160516101e05261018051610200526101a051610220526101c05161024052610140516004358082101561396257600080fd5b8082039050905061026052337f7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c60a06101e0a2600062ffffff556040610160f3600062ffffff55005b63e310327360005114156141955762ffffff54156139c857600080fd5b600162ffffff55601354156139dc57600080fd5b6101405160065801610026565b61016052610140526101605161014052610140516101605160065801610438565b6101805261016052610140526101805161016052602061020060046318160ddd6101a0526101bc6005545afa613a3f57600080fd5b601f3d11613a4c57600080fd5b600050610200516101805260006101805118613a6757600080fd5b60025460028082028215828483041417613a8057600080fd5b809050905090506004808204905090506101a0526003546101c05260018060c052602060c020546101e05260018160c052602060c020015461020052506101e0516102205261020051610240526101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161016051610280526101e0516102a052610200516102c052610140516102e0526102e0516102c0516102a0516102805160065801610861565b61034052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610340516102605261028060006002818352015b6102206102805160028110613b8257600080fd5b60200201805160046102805160028110613b9b57600080fd5b602002013580821015613bad57600080fd5b808203905090508152505b8151600101808352811415613b6e575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610160516102a052610220516102c052610240516102e0526101405161030052610300516102e0516102c0516102a05160065801610861565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526040366102a0376102e060006002818352015b610280516101e06102e05160028110613c9257600080fd5b60200201518082028215828483041417613cab57600080fd5b80905090509050610260518080613cc157600080fd5b820490509050610300526000610320526102206102e05160028110613ce557600080fd5b6020020151610300511115613d2e57610300516102206102e05160028110613d0c57600080fd5b602002015180821015613d1e57600080fd5b8082039050905061032052613d64565b6102206102e05160028110613d4257600080fd5b60200201516103005180821015613d5857600080fd5b80820390509050610320525b6101a051610320518082028215828483041417613d8057600080fd5b809050905090506402540be400808204905090506102a06102e05160028110613da857600080fd5b60200201526102206102e05160028110613dc157600080fd5b60200201516102a06102e05160028110613dda57600080fd5b60200201516101c0518082028215828483041417613df757600080fd5b809050905090506402540be4008082049050905080821015613e1857600080fd5b808203905090506102e05160028110613e3057600080fd5b600160c052602060c02001556102206102e05160028110613e5057600080fd5b6020020180516102a06102e05160028110613e6a57600080fd5b602002015180821015613e7c57600080fd5b808203905090508152505b8151600101808352811415613c7a575b5050610140610300525b61030051516020610300510161030052610300610300511015613ec357613ea1565b61016051610320526102205161034052610240516103605261014051610380526103805161036051610340516103205160065801610861565b6103e0526102e0610300525b6103005152602061030051036103005261014061030051101515613f2b57613f08565b6103e0516102e052610260516102e05180821015613f4857600080fd5b80820390509050610180518082028215828483041417613f6757600080fd5b80905090509050610260518080613f7d57600080fd5b8204905090506103005260006103005118613f9757600080fd5b61030080516001818183011015613fad57600080fd5b80820190509050815250604435610300511115151561400b576308c379a0610320526020610340526014610360527f536c697070616765207363726577656420796f750000000000000000000000006103805261036050606461033cfd5b60206103c060446379cc6790610320523361034052610300516103605261033c60006005545af161403b57600080fd5b601f3d1161404857600080fd5b6000506103c05061032060006002818352015b60006004610320516002811061407057600080fd5b602002013518156140f75760206103e0604463a9059cbb610340523361036052600461032051600281106140a357600080fd5b60200201356103805261035c600061032051600281106140c257600080fd5b600060c052602060c02001545af16140d957600080fd5b601f3d116140e657600080fd5b6000506103e0516140f657600080fd5b5b5b815160010180835281141561405b575b505060043561032052602435610340526102a051610360526102c05161038052610280516103a05261018051610300518082101561414557600080fd5b808203905090506103c052337f2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e60c0610320a261030051600052600062ffffff5560206000f350600062ffffff55005b600015614502575b6101e0526101405261016052610180526101a0526101c05260006101605112156141c657600080fd5b600261016051126141d657600080fd5b606036610200376101c0516102605261014051600280820282158284830414176141ff57600080fd5b80905090509050610280526102a060006002818352015b610160516102a0511815614246576101806102a0516002811061423857600080fd5b60200201516102205261424b565b6142c7565b61020080516102205181818301101561426357600080fd5b80820190509050815250610260516101c051808202821582848304141761428957600080fd5b8090509050905061022051600280820282158284830414176142aa57600080fd5b8090509050905080806142bc57600080fd5b820490509050610260525b8151600101808352811415614216575b5050610260516101c05180820282158284830414176142f557600080fd5b809050905090506064808202821582848304141761431257600080fd5b80905090509050610280516002808202821582848304141761433357600080fd5b80905090509050808061434557600080fd5b82049050905061026052610200516101c0516064808202821582848304141761436d57600080fd5b8090509050905061028051808061438357600080fd5b82049050905081818301101561439857600080fd5b808201905090506102a0526101c0516102c0526102e0600060ff818352015b6102c051610240526102c0516102c05180820282158284830414176143db57600080fd5b80905090509050610260518181830110156143f557600080fd5b8082019050905060026102c051808202821582848304141761441657600080fd5b809050905090506102a05181818301101561443057600080fd5b808201905090506101c0518082101561444857600080fd5b80820390509050808061445a57600080fd5b8204905090506102c052610240516102c05111156144af5760016102c051610240518082101561448957600080fd5b808203905090501115156144aa576102c05160005250506000516101e05156505b6144e8565b6001610240516102c051808210156144c657600080fd5b808203905090501115156144e7576102c05160005250506000516101e05156505b5b5b81516001018083528114156143b7575b505060006000fd005b600015614b9d575b6101a0526101405261016052610180526101405161016051610180516101a0516101c05160065801610026565b6101e0526101c0526101a0526101805261016052610140526101e0516101c0526101405161016051610180516101a0516101c0516101e0516102005161018051610220526102205160065801610226565b610280526102a052610200526101e0526101c0526101a05261018052610160526101405261028080516101e052806020015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101e0516102405261020051610260526101c0516102805261028051610260516102405160065801610559565b6102e05261022052610200526101e0526101c0526101a0526101805261016052610140526102e0516102205260206102c060046318160ddd6102605261027c6005545afa61465957600080fd5b601f3d1161466657600080fd5b6000506102c05161024052610220516101405161022051808202821582848304141761469157600080fd5b809050905090506102405180806146a757600080fd5b820490509050808210156146ba57600080fd5b80820390509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101c0516102a052610160516102c0526101e0516102e0526102005161030052610260516103205261032051610300516102e0516102c0516102a0516006580161419d565b6103805261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261038051610280526002546002808202821582848304141761478757600080fd5b809050905090506004808204905090506102a052670de0b6b3a76400006102c052670de0b6b3a76400006102e052610180516102e0526101e0516103005261020051610320526101e061016051600281106147e157600080fd5b602002015161028051808210156147f757600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761481b57600080fd5b809050905090506102c0610160516002811061483657600080fd5b6020020151808061484657600080fd5b8204905090506103405261036060006002818352015b600061038052610160516103605114156148de576101e0610360516002811061488457600080fd5b60200201516102605180820282158284830414176148a157600080fd5b809050905090506102205180806148b757600080fd5b82049050905061028051808210156148ce57600080fd5b808203905090506103805261495d565b6101e061036051600281106148f257600080fd5b60200201516101e0610360516002811061490b57600080fd5b602002015161026051808202821582848304141761492857600080fd5b8090509050905061022051808061493e57600080fd5b8204905090508082101561495157600080fd5b80820390509050610380525b610300610360516002811061497157600080fd5b6020020180516102a05161038051808202821582848304141761499357600080fd5b809050905090506402540be40080820490509050808210156149b457600080fd5b808203905090508152505b815160010180835281141561485c575b505061030061016051600281106149e557600080fd5b6020020151610140610380525b61038051516020610380510161038052610380610380511015614a14576149f2565b6101c0516103a052610160516103c052610300516103e0526103205161040052610260516104205261042051610400516103e0516103c0516103a0516006580161419d565b61048052610360610380525b6103805152602061038051036103805261014061038051101515614a8857614a65565b6104805180821015614a9957600080fd5b808203905090506103605261036051600180821015614ab757600080fd5b80820390509050670de0b6b3a76400008082028215828483041417614adb57600080fd5b809050905090506102c06101605160028110614af657600080fd5b60200201518080614b0657600080fd5b8204905090506103605261038080808061036051815250506020810190508080610340516103605180821015614b3b57600080fd5b80820390509050815250506020810190508080610240518152505060609050905060c05260c0516103e0525b60006103e051111515614b7957614b95565b60206103e05103610380015160206103e051036103e052614b67565b6101a0515650005b63cc2b27d76000511415614c665760243580806000811215614bbb57195b607f1c15614bc857600080fd5b90505061014051600658016104d2565b61016052610140526101605161014052610140516004356101605260243561018052610140516101a0526101a05161018051610160516006580161450a565b61020052610220526102405261014052610200808080805161026052505060208101905080808051610280525050602081019050808080516102a052505050506102605160005260206000f350005b631a4d01d26000511415614f6b5762ffffff5415614c8357600080fd5b600162ffffff5560243580806000811215614c9a57195b607f1c15614ca757600080fd5b90505060135415614cb757600080fd5b6101405160065801610438565b61016052610140526101605161014052606036610160376101405161016051610180516101a0516004356101c0526024356101e0526101405161020052610200516101e0516101c0516006580161450a565b61026052610280526102a0526101a05261018052610160526101405261026080808080516102c0525050602081019050808080516102e05250506020810190508080805161030052505050506102c080516101605280602001516101805280604001516101a052506044356101605110151515614dd2576308c379a06101c05260206101e0526018610200527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610220526102005060646101dcfd5b60243560028110614de257600080fd5b600160c052602060c02001805461016051610180516003548082028215828483041417614e0e57600080fd5b809050905090506402540be40080820490509050818183011015614e3157600080fd5b8082019050905080821015614e4557600080fd5b80820390509050815550602061026060446379cc67906101c052336101e052600435610200526101dc60006005545af1614e7e57600080fd5b601f3d11614e8b57600080fd5b600050610260506020610260604463a9059cbb6101c052336101e05261016051610200526101dc600060243560028110614ec457600080fd5b600060c052602060c02001545af1614edb57600080fd5b601f3d11614ee857600080fd5b60005061026051614ef857600080fd5b6004356101c052610160516101e0526101a05160043580821015614f1b57600080fd5b8082039050905061020052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a060606101c0a261016051600052600062ffffff5560206000f350600062ffffff55005b633c157e64600051141561510f576004543314614f8757600080fd5b600c5462015180818183011015614f9d57600080fd5b80820190509050421015614fb057600080fd5b4262015180818183011015614fc457600080fd5b808201905090506024351015614fd957600080fd5b6101405160065801610026565b610160526101405261016051610140526004356064808202821582848304141761500f57600080fd5b80905090509050610160526000600435111561503257620f424060043510615035565b60005b61503e57600080fd5b61014051610160511015615081576101405161016051600a808202821582848304141761506a57600080fd5b80905090509050101561507c57600080fd5b6150b2565b61014051600a808202821582848304141761509b57600080fd5b809050905090506101605111156150b157600080fd5b5b61014051600a5561016051600b5542600c55602435600d556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588600051141561519457600454331461512b57600080fd5b6101405160065801610026565b6101605261014052610160516101405261014051600a5561014051600b5542600c5542600d55610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a146760005114156152525760045433146151b057600080fd5b600e54156151bd57600080fd5b64012a05f20060043511156151d157600080fd5b6402540be40060243511156151e557600080fd5b426203f4808181830110156151f957600080fd5b808201905090506101405261014051600e556004356010556024356011556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe9760005114156152e657600454331461526e57600080fd5b600e5442101561527d57600080fd5b6000600e541861528c57600080fd5b6000600e55601054610140526011546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb600051141561530957600454331461530257600080fd5b6000600e55005b636b441a40600051141561539d5760043560a01c1561532757600080fd5b600454331461533557600080fd5b600f541561534257600080fd5b426203f48081818301101561535657600080fd5b808201905090506101405261014051600f55600435601255600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae60005114156154165760045433146153b957600080fd5b600f544210156153c857600080fd5b6000600f54186153d757600080fd5b6000600f556012546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193600051141561543957600454331461543257600080fd5b6000600f55005b63e2e7d26460005114156154d55760206101c060246370a0823161014052306101605261015c6004356002811061546f57600080fd5b600060c052602060c02001545afa61548657600080fd5b601f3d1161549357600080fd5b6000506101c051600435600281106154aa57600080fd5b600160c052602060c0200154808210156154c357600080fd5b8082039050905060005260206000f350005b6330c5408560005114156155fe5760045433146154f157600080fd5b61014060006002818352015b610140516002811061550e57600080fd5b600060c052602060c020015461016052602061022060246370a082316101a052306101c0526101bc610160515afa61554557600080fd5b601f3d1161555257600080fd5b60005061022051610140516002811061556a57600080fd5b600160c052602060c02001548082101561558357600080fd5b808203905090506101805260006101805111156155e9576020610240604463a9059cbb6101a052336101c052610180516101e0526101bc6000610160515af16155cb57600080fd5b601f3d116155d857600080fd5b600050610240516155e857600080fd5b5b5b81516001018083528114156154fd575b5050005b63524c390160005114156156ac57600454331461561a57600080fd5b61014060006002818352015b60206101e060246370a0823161016052306101805261017c610140516002811061564f57600080fd5b600060c052602060c02001545afa61566657600080fd5b601f3d1161567357600080fd5b6000506101e051610140516002811061568b57600080fd5b600160c052602060c02001555b8151600101808352811415615626575b5050005b63e369885360005114156156dd5760045433146156c857600080fd5b42601454116156d657600080fd5b6001601355005b633046f97260005114156157005760045433146156f957600080fd5b6000601355005b63c66106576000511415615735576004356002811061571e57600080fd5b600060c052602060c020015460005260206000f350005b634903b0d1600051141561576a576004356002811061575357600080fd5b600160c052602060c020015460005260206000f350005b63ddca3f4360005114156157865760025460005260206000f350005b63fee3f7f960005114156157a25760035460005260206000f350005b638da5cb5b60005114156157be5760045460005260206000f350005b63fc0c546a60005114156157da5760055460005260206000f350005b635d6362bb60005114156157f65760065460005260206000f350005b6395ccc02f60005114156158125760075460005260206000f350005b638296f84f600051141561582e5760085460005260206000f350005b6387cb4f576000511415615863576004356003811061584c57600080fd5b600960c052602060c020015460005260206000f350005b635409491a600051141561587f57600a5460005260206000f350005b63b4b577ad600051141561589b57600b5460005260206000f350005b632081066c60005114156158b757600c5460005260206000f350005b631405228860005114156158d357600d5460005260206000f350005b63405e28f860005114156158ef57600e5460005260206000f350005b63e0a0b586600051141561590b57600f5460005260206000f350005b6358680d0b60005114156159275760105460005260206000f350005b63e382446260005114156159435760115460005260206000f350005b631ec0cdc1600051141561595f5760125460005260206000f350005b5b60006000fd
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ecb456ea5365865ebab8a2661b0c503410e9b347000000000000000000000000a47c8bf37f92abed4a126bda807a7b7498661acd0000000000000000000000006c3f90f043a72fa612cbac8115ee7e52bde6e49000000000000000000000000094e131324b6054c0d789b190b2dac504e4361b53000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c7000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
-----Decoded View---------------
Arg [0] : _owner (address): 0xeCb456EA5365865EbAb8a2661B0c503410e9B347
Arg [1] : _coins (address[2]): 0xa47c8bf37f92aBed4A126BDA807A7b7498661acD,0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490
Arg [2] : _pool_token (address): 0x94e131324b6054c0D789b190b2dAC504e4361b53
Arg [3] : _base_pool (address): 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7
Arg [4] : _A (uint256): 100
Arg [5] : _fee (uint256): 4000000
Arg [6] : _admin_fee (uint256): 5000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000ecb456ea5365865ebab8a2661b0c503410e9b347
Arg [1] : 000000000000000000000000a47c8bf37f92abed4a126bda807a7b7498661acd
Arg [2] : 0000000000000000000000006c3f90f043a72fa612cbac8115ee7e52bde6e490
Arg [3] : 00000000000000000000000094e131324b6054c0d789b190b2dac504e4361b53
Arg [4] : 000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [6] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [7] : 000000000000000000000000000000000000000000000000000000012a05f200
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.