This nametag was submitted by Kleros Curate.
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 31,101 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exchange | 39678338 | 40 hrs ago | IN | 0 xDAI | 0.00001076 | ||||
Exchange | 39557593 | 8 days ago | IN | 0 xDAI | 0.0001755 | ||||
Exchange | 39557315 | 8 days ago | IN | 0 xDAI | 0.00010821 | ||||
Exchange | 39552403 | 9 days ago | IN | 0 xDAI | 0.00019874 | ||||
Exchange | 39537293 | 9 days ago | IN | 0 xDAI | 0.00015613 | ||||
Remove_liquidity... | 39521280 | 10 days ago | IN | 0 xDAI | 0.00012808 | ||||
Exchange | 39448522 | 15 days ago | IN | 0 xDAI | 0.00015043 | ||||
Exchange | 39443174 | 15 days ago | IN | 0 xDAI | 0.00010821 | ||||
Exchange | 39339145 | 21 days ago | IN | 0 xDAI | 0.00012746 | ||||
Remove_liquidity... | 39332670 | 22 days ago | IN | 0 xDAI | 0.00018414 | ||||
Remove_liquidity... | 39331657 | 22 days ago | IN | 0 xDAI | 0.00012395 | ||||
Remove_liquidity... | 39330622 | 22 days ago | IN | 0 xDAI | 0.00015848 | ||||
Exchange | 39320488 | 22 days ago | IN | 0 xDAI | 0.00010821 | ||||
Remove_liquidity... | 39306051 | 23 days ago | IN | 0 xDAI | 0.00013097 | ||||
Remove_liquidity... | 39297868 | 24 days ago | IN | 0 xDAI | 0.00014525 | ||||
Remove_liquidity | 39289539 | 24 days ago | IN | 0 xDAI | 0.00016318 | ||||
Add_liquidity | 39280572 | 25 days ago | IN | 0 xDAI | 0.00014135 | ||||
Add_liquidity | 39273048 | 25 days ago | IN | 0 xDAI | 0.00014135 | ||||
Exchange | 39256626 | 26 days ago | IN | 0 xDAI | 0.00013304 | ||||
Remove_liquidity... | 39247553 | 27 days ago | IN | 0 xDAI | 0.0001488 | ||||
Add_liquidity | 39239230 | 27 days ago | IN | 0 xDAI | 0.00016391 | ||||
Add_liquidity | 39231877 | 28 days ago | IN | 0 xDAI | 0.00016388 | ||||
Add_liquidity | 39231741 | 28 days ago | IN | 0 xDAI | 0.00016391 | ||||
Exchange | 39226490 | 28 days ago | IN | 0 xDAI | 0.00010767 | ||||
Exchange | 39222537 | 28 days ago | IN | 0 xDAI | 0.00010767 |
View more zero value Internal Transactions in Advanced View mode
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.11
Contract Source Code (Vyper language format)
# @version ^0.2.8 """ @title StableSwap @author Curve.Fi @license Copyright (c) Curve.Fi, 2020 - all rights reserved @notice Minimal pool implementation with no lending @dev This contract is only a template, pool-specific constants must be set prior to compiling """ 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 # Events event TokenExchange: buyer: indexed(address) sold_id: int128 tokens_sold: uint256 bought_id: int128 tokens_bought: uint256 event AddLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event RemoveLiquidity: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] token_supply: uint256 event RemoveLiquidityOne: provider: indexed(address) token_amount: uint256 coin_amount: uint256 token_supply: uint256 event RemoveLiquidityImbalance: provider: indexed(address) token_amounts: uint256[N_COINS] fees: uint256[N_COINS] invariant: uint256 token_supply: uint256 event CommitNewAdmin: deadline: indexed(uint256) admin: indexed(address) event NewAdmin: admin: indexed(address) event CommitNewFee: deadline: indexed(uint256) fee: uint256 admin_fee: uint256 event NewFee: fee: uint256 admin_fee: uint256 event RampA: old_A: uint256 new_A: uint256 initial_time: uint256 future_time: uint256 event StopRampA: A: uint256 t: uint256 # These constants must be set prior to compiling N_COINS: constant(int128) = 3 PRECISION_MUL: constant(uint256[N_COINS]) = [1, 1000000000000, 1000000000000] RATES: constant(uint256[N_COINS]) = [1000000000000000000, 1000000000000000000000000000000, 1000000000000000000000000000000] # fixed constants FEE_DENOMINATOR: constant(uint256) = 10 ** 10 PRECISION: constant(uint256) = 10 ** 18 # The precision to convert to MAX_ADMIN_FEE: constant(uint256) = 10 * 10 ** 9 MAX_FEE: constant(uint256) = 5 * 10 ** 9 MAX_A: constant(uint256) = 10 ** 6 MAX_A_CHANGE: constant(uint256) = 10 ADMIN_ACTIONS_DELAY: constant(uint256) = 3 * 86400 MIN_RAMP_TIME: constant(uint256) = 86400 coins: public(address[N_COINS]) balances: public(uint256[N_COINS]) fee: public(uint256) # fee * 1e10 admin_fee: public(uint256) # admin_fee * 1e10 owner: public(address) lp_token: public(address) A_PRECISION: constant(uint256) = 100 initial_A: public(uint256) future_A: public(uint256) initial_A_time: public(uint256) future_A_time: public(uint256) admin_actions_deadline: public(uint256) transfer_ownership_deadline: public(uint256) future_fee: public(uint256) future_admin_fee: public(uint256) future_owner: public(address) is_killed: bool kill_deadline: uint256 KILL_DEADLINE_DT: constant(uint256) = 2 * 30 * 86400 @external def __init__( _owner: address, _coins: address[N_COINS], _pool_token: address, _A: uint256, _fee: uint256, _admin_fee: uint256 ): """ @notice Contract constructor @param _owner Contract owner address @param _coins Addresses of ERC20 conracts of coins @param _pool_token Address of the token representing LP share @param _A Amplification coefficient multiplied by n * (n - 1) @param _fee Fee to charge for exchanges @param _admin_fee Admin fee """ 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.lp_token = _pool_token @view @internal def _A() -> uint256: """ Handle ramping A up or down """ t1: uint256 = self.future_A_time A1: uint256 = self.future_A if block.timestamp < t1: A0: uint256 = self.initial_A t0: uint256 = self.initial_A_time # Expressions in uint256 cannot have negative numbers, thus "if" if A1 > A0: return A0 + (A1 - A0) * (block.timestamp - t0) / (t1 - t0) else: return A0 - (A0 - A1) * (block.timestamp - t0) / (t1 - t0) else: # when t1 == 0 or block.timestamp >= t1 return A1 @view @external def A() -> uint256: return self._A() / A_PRECISION @view @external def A_precise() -> uint256: return self._A() @view @internal def _xp() -> uint256[N_COINS]: result: uint256[N_COINS] = RATES for i in range(N_COINS): result[i] = result[i] * self.balances[i] / PRECISION return result @pure @internal def _xp_mem(_balances: uint256[N_COINS]) -> uint256[N_COINS]: result: uint256[N_COINS] = RATES for i in range(N_COINS): result[i] = result[i] * _balances[i] / PRECISION return result @pure @internal def _get_D(_xp: uint256[N_COINS], _amp: uint256) -> uint256: """ D invariant calculation in non-overflowing integer operations iteratively A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i)) Converging solution: D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1) """ S: uint256 = 0 Dprev: uint256 = 0 for _x in _xp: S += _x if S == 0: return 0 D: uint256 = S Ann: uint256 = _amp * N_COINS for _i in range(255): D_P: uint256 = D for _x in _xp: D_P = D_P * D / (_x * N_COINS) # If division by 0, this will be borked: only withdrawal will work. And that is good Dprev = D D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P) # Equality with the precision of 1 if D > Dprev: if D - Dprev <= 1: return D else: if Dprev - D <= 1: return D # convergence typically occurs in 4 rounds or less, this should be unreachable! # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity` raise @view @internal def _get_D_mem(_balances: uint256[N_COINS], _amp: uint256) -> uint256: return self._get_D(self._xp_mem(_balances), _amp) @view @external def get_virtual_price() -> uint256: """ @notice The current virtual price of the pool LP token @dev Useful for calculating profits @return LP token virtual price normalized to 1e18 """ D: uint256 = self._get_D(self._xp(), self._A()) # D is in the units similar to DAI (e.g. converted to precision 1e18) # When balanced, D = n * x_u - total virtual value of the portfolio token_supply: uint256 = ERC20(self.lp_token).totalSupply() return D * PRECISION / token_supply @view @external def calc_token_amount(_amounts: uint256[N_COINS], _is_deposit: bool) -> uint256: """ @notice Calculate addition or reduction in token supply from a deposit or withdrawal @dev This calculation accounts for slippage, but not fees. Needed to prevent front-running, not for precise calculations! @param _amounts Amount of each coin being deposited @param _is_deposit set True for deposits, False for withdrawals @return Expected amount of LP tokens received """ amp: uint256 = self._A() balances: uint256[N_COINS] = self.balances D0: uint256 = self._get_D_mem(balances, amp) for i in range(N_COINS): if _is_deposit: balances[i] += _amounts[i] else: balances[i] -= _amounts[i] D1: uint256 = self._get_D_mem(balances, amp) token_amount: uint256 = CurveToken(self.lp_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() old_balances: uint256[N_COINS] = self.balances # Initial invariant D0: uint256 = self._get_D_mem(old_balances, amp) lp_token: address = self.lp_token token_supply: uint256 = CurveToken(lp_token).totalSupply() new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): if token_supply == 0: assert _amounts[i] > 0 # dev: initial deposit requires all coins # balances store amounts of c-tokens new_balances[i] += _amounts[i] # Invariant after change D1: uint256 = self._get_D_mem(new_balances, amp) assert D1 > D0 # We need to recalculate the invariant accounting for fees # to calculate fair user's share D2: uint256 = D1 fees: uint256[N_COINS] = empty(uint256[N_COINS]) mint_amount: uint256 = 0 if token_supply > 0: # Only account for fees if we are not the first to deposit fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) admin_fee: uint256 = self.admin_fee for i in range(N_COINS): ideal_balance: uint256 = D1 * old_balances[i] / D0 difference: uint256 = 0 new_balance: uint256 = new_balances[i] if ideal_balance > new_balance: difference = ideal_balance - new_balance else: difference = new_balance - ideal_balance fees[i] = fee * difference / FEE_DENOMINATOR self.balances[i] = new_balance - (fees[i] * admin_fee / FEE_DENOMINATOR) new_balances[i] -= fees[i] D2 = self._get_D_mem(new_balances, amp) mint_amount = token_supply * (D2 - D0) / D0 else: self.balances = new_balances mint_amount = D1 # Take the dust if there was any assert mint_amount >= _min_mint_amount, "Slippage screwed you" # Take coins from the sender for i in range(N_COINS): if _amounts[i] > 0: # "safeTransferFrom" which works for ERC20s which return bool or not _response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(_amounts[i], bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) # dev: failed transfer # end "safeTransferFrom" # Mint pool tokens CurveToken(lp_token).mint(msg.sender, mint_amount) log AddLiquidity(msg.sender, _amounts, fees, D1, token_supply + mint_amount) return mint_amount @view @internal def _get_y(i: int128, j: int128, x: uint256, _xp: uint256[N_COINS]) -> uint256: """ Calculate x[j] if one makes x[i] = x Done by solving quadratic equation iteratively. x_1**2 + x_1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i != j # dev: same coin assert j >= 0 # dev: j below zero assert j < N_COINS # dev: j above N_COINS # should be unreachable, but good for safety assert i >= 0 assert i < N_COINS A: uint256 = self._A() D: uint256 = self._get_D(_xp, A) Ann: uint256 = A * N_COINS c: uint256 = D S: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 for _i in range(N_COINS): if _i == i: _x = x elif _i != j: _x = _xp[_i] else: continue S += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S + D * A_PRECISION / Ann # - D y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @external def get_dy(i: int128, j: int128, _dx: uint256) -> uint256: xp: uint256[N_COINS] = self._xp() rates: uint256[N_COINS] = RATES x: uint256 = xp[i] + (_dx * rates[i] / PRECISION) y: uint256 = self._get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 fee: uint256 = self.fee * dy / FEE_DENOMINATOR return (dy - fee) * PRECISION / rates[j] @external @nonreentrant('lock') def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256: """ @notice Perform an exchange between two coins @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param _dx Amount of `i` being exchanged @param _min_dy Minimum amount of `j` to receive @return Actual amount of `j` received """ assert not self.is_killed # dev: is killed old_balances: uint256[N_COINS] = self.balances xp: uint256[N_COINS] = self._xp_mem(old_balances) rates: uint256[N_COINS] = RATES x: uint256 = xp[i] + _dx * rates[i] / PRECISION y: uint256 = self._get_y(i, j, x, xp) dy: uint256 = xp[j] - y - 1 # -1 just in case there were some rounding errors dy_fee: uint256 = dy * self.fee / FEE_DENOMINATOR # Convert all to real units dy = (dy - dy_fee) * PRECISION / rates[j] assert dy >= _min_dy, "Exchange resulted in fewer coins than expected" dy_admin_fee: uint256 = dy_fee * self.admin_fee / FEE_DENOMINATOR dy_admin_fee = dy_admin_fee * PRECISION / rates[j] # Change balances exactly in same way as we change actual ERC20 coin amounts self.balances[i] = old_balances[i] + _dx # When rounding errors happen, we undercharge admin fee in favor of LP self.balances[j] = old_balances[j] - dy - dy_admin_fee _response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(_dx, bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) _response = raw_call( self.coins[j], concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(dy, bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) log TokenExchange(msg.sender, i, _dx, j, dy) return dy @external @nonreentrant('lock') def remove_liquidity(_amount: uint256, _min_amounts: uint256[N_COINS]) -> uint256[N_COINS]: """ @notice Withdraw coins from the pool @dev Withdrawal amounts are based on current deposit ratios @param _amount Quantity of LP tokens to burn in the withdrawal @param _min_amounts Minimum amounts of underlying coins to receive @return List of amounts of coins that were withdrawn """ lp_token: address = self.lp_token total_supply: uint256 = CurveToken(lp_token).totalSupply() amounts: uint256[N_COINS] = empty(uint256[N_COINS]) for i in range(N_COINS): old_balance: uint256 = self.balances[i] value: uint256 = old_balance * _amount / total_supply assert value >= _min_amounts[i], "Withdrawal resulted in fewer coins than expected" self.balances[i] = old_balance - value amounts[i] = value _response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(value, bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) CurveToken(lp_token).burnFrom(msg.sender, _amount) # dev: insufficient funds log RemoveLiquidity(msg.sender, amounts, empty(uint256[N_COINS]), total_supply - _amount) return amounts @external @nonreentrant('lock') def remove_liquidity_imbalance(_amounts: uint256[N_COINS], _max_burn_amount: uint256) -> uint256: """ @notice Withdraw coins from the pool in an imbalanced amount @param _amounts List of amounts of underlying coins to withdraw @param _max_burn_amount Maximum amount of LP token to burn in the withdrawal @return Actual amount of the LP token burned in the withdrawal """ assert not self.is_killed # dev: is killed amp: uint256 = self._A() old_balances: uint256[N_COINS] = self.balances D0: uint256 = self._get_D_mem(old_balances, amp) new_balances: uint256[N_COINS] = old_balances for i in range(N_COINS): new_balances[i] -= _amounts[i] D1: uint256 = self._get_D_mem(new_balances, amp) fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) admin_fee: uint256 = self.admin_fee fees: uint256[N_COINS] = empty(uint256[N_COINS]) for i in range(N_COINS): new_balance: uint256 = new_balances[i] ideal_balance: uint256 = D1 * old_balances[i] / D0 difference: uint256 = 0 if ideal_balance > new_balance: difference = ideal_balance - new_balance else: difference = new_balance - ideal_balance fees[i] = fee * difference / FEE_DENOMINATOR self.balances[i] = new_balance - (fees[i] * admin_fee / FEE_DENOMINATOR) new_balances[i] = new_balance - fees[i] D2: uint256 = self._get_D_mem(new_balances, amp) lp_token: address = self.lp_token token_supply: uint256 = CurveToken(lp_token).totalSupply() token_amount: uint256 = (D0 - D2) * token_supply / D0 assert token_amount != 0 # dev: zero tokens burned token_amount += 1 # In case of rounding errors - make it unfavorable for the "attacker" assert token_amount <= _max_burn_amount, "Slippage screwed you" CurveToken(lp_token).burnFrom(msg.sender, token_amount) # dev: insufficient funds for i in range(N_COINS): if _amounts[i] != 0: _response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(_amounts[i], bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) log RemoveLiquidityImbalance(msg.sender, _amounts, fees, D1, token_supply - token_amount) return token_amount @pure @internal def _get_y_D(A: uint256, i: int128, _xp: uint256[N_COINS], D: uint256) -> uint256: """ Calculate x[i] if one reduces D from being calculated for xp to D Done by solving quadratic equation iteratively. x_1**2 + x_1 * (sum' - (A*n**n - 1) * D / (A * n**n)) = D ** (n + 1) / (n ** (2 * n) * prod' * A) x_1**2 + b*x_1 = c x_1 = (x_1**2 + c) / (2*x_1 + b) """ # x in the input is converted to the same price/precision assert i >= 0 # dev: i below zero assert i < N_COINS # dev: i above N_COINS Ann: uint256 = A * N_COINS c: uint256 = D S: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 for _i in range(N_COINS): if _i != i: _x = _xp[_i] else: continue S += _x c = c * D / (_x * N_COINS) c = c * D * A_PRECISION / (Ann * N_COINS) b: uint256 = S + D * A_PRECISION / Ann y: uint256 = D for _i in range(255): y_prev = y y = (y*y + c) / (2 * y + b - D) # Equality with the precision of 1 if y > y_prev: if y - y_prev <= 1: return y else: if y_prev - y <= 1: return y raise @view @internal def _calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> (uint256, uint256, uint256): # First, need to calculate # * Get current D # * Solve Eqn against y_i for D - _token_amount amp: uint256 = self._A() xp: uint256[N_COINS] = self._xp() D0: uint256 = self._get_D(xp, amp) total_supply: uint256 = CurveToken(self.lp_token).totalSupply() D1: uint256 = D0 - _token_amount * D0 / total_supply new_y: uint256 = self._get_y_D(amp, i, xp, D1) xp_reduced: uint256[N_COINS] = xp fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1)) for j in range(N_COINS): dx_expected: uint256 = 0 if j == i: dx_expected = xp[j] * D1 / D0 - new_y else: dx_expected = xp[j] - xp[j] * D1 / D0 xp_reduced[j] -= fee * dx_expected / FEE_DENOMINATOR dy: uint256 = xp_reduced[i] - self._get_y_D(amp, i, xp_reduced, D1) precisions: uint256[N_COINS] = PRECISION_MUL dy = (dy - 1) / precisions[i] # Withdraw less to account for rounding errors dy_0: uint256 = (xp[i] - new_y) / precisions[i] # w/o fees return dy, dy_0 - dy, total_supply @view @external def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: """ @notice Calculate the amount received when withdrawing a single coin @param _token_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @return Amount of coin received """ return self._calc_withdraw_one_coin(_token_amount, i)[0] @external @nonreentrant('lock') def remove_liquidity_one_coin(_token_amount: uint256, i: int128, _min_amount: uint256) -> uint256: """ @notice Withdraw a single coin from the pool @param _token_amount Amount of LP tokens to burn in the withdrawal @param i Index value of the coin to withdraw @param _min_amount Minimum amount of coin to receive @return Amount of coin received """ assert not self.is_killed # dev: is killed dy: uint256 = 0 dy_fee: uint256 = 0 total_supply: uint256 = 0 dy, dy_fee, total_supply = self._calc_withdraw_one_coin(_token_amount, i) assert dy >= _min_amount, "Not enough coins removed" self.balances[i] -= (dy + dy_fee * self.admin_fee / FEE_DENOMINATOR) CurveToken(self.lp_token).burnFrom(msg.sender, _token_amount) # dev: insufficient funds _response: Bytes[32] = raw_call( self.coins[i], concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(dy, bytes32), ), max_outsize=32, ) if len(_response) > 0: assert convert(_response, bool) log RemoveLiquidityOne(msg.sender, _token_amount, dy, total_supply - _token_amount) return dy ### Admin functions ### @external def ramp_A(_future_A: uint256, _future_time: uint256): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.initial_A_time + MIN_RAMP_TIME assert _future_time >= block.timestamp + MIN_RAMP_TIME # dev: insufficient time initial_A: uint256 = self._A() future_A_p: uint256 = _future_A * A_PRECISION assert _future_A > 0 and _future_A < MAX_A if future_A_p < initial_A: assert future_A_p * MAX_A_CHANGE >= initial_A else: assert future_A_p <= initial_A * MAX_A_CHANGE self.initial_A = initial_A self.future_A = future_A_p self.initial_A_time = block.timestamp self.future_A_time = _future_time log RampA(initial_A, future_A_p, block.timestamp, _future_time) @external def stop_ramp_A(): assert msg.sender == self.owner # dev: only owner current_A: uint256 = self._A() self.initial_A = current_A self.future_A = current_A self.initial_A_time = block.timestamp self.future_A_time = block.timestamp # now (block.timestamp < t1) is always False, so we return saved A log StopRampA(current_A, block.timestamp) @external def commit_new_fee(_new_fee: uint256, _new_admin_fee: uint256): assert msg.sender == self.owner # dev: only owner assert self.admin_actions_deadline == 0 # dev: active action assert _new_fee <= MAX_FEE # dev: fee exceeds maximum assert _new_admin_fee <= MAX_ADMIN_FEE # dev: admin fee exceeds maximum deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.admin_actions_deadline = deadline self.future_fee = _new_fee self.future_admin_fee = _new_admin_fee log CommitNewFee(deadline, _new_fee, _new_admin_fee) @external def apply_new_fee(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.admin_actions_deadline # dev: insufficient time assert self.admin_actions_deadline != 0 # dev: no active action self.admin_actions_deadline = 0 fee: uint256 = self.future_fee admin_fee: uint256 = self.future_admin_fee self.fee = fee self.admin_fee = admin_fee log NewFee(fee, admin_fee) @external def revert_new_parameters(): assert msg.sender == self.owner # dev: only owner self.admin_actions_deadline = 0 @external def commit_transfer_ownership(_owner: address): assert msg.sender == self.owner # dev: only owner assert self.transfer_ownership_deadline == 0 # dev: active transfer deadline: uint256 = block.timestamp + ADMIN_ACTIONS_DELAY self.transfer_ownership_deadline = deadline self.future_owner = _owner log CommitNewAdmin(deadline, _owner) @external def apply_transfer_ownership(): assert msg.sender == self.owner # dev: only owner assert block.timestamp >= self.transfer_ownership_deadline # dev: insufficient time assert self.transfer_ownership_deadline != 0 # dev: no active transfer self.transfer_ownership_deadline = 0 owner: address = self.future_owner self.owner = owner log NewAdmin(owner) @external def revert_transfer_ownership(): assert msg.sender == self.owner # dev: only owner self.transfer_ownership_deadline = 0 @view @external def admin_balances(i: uint256) -> uint256: return ERC20(self.coins[i]).balanceOf(self) - self.balances[i] @external def withdraw_admin_fees(): assert msg.sender == self.owner # dev: only owner for i in range(N_COINS): coin: address = self.coins[i] value: uint256 = ERC20(coin).balanceOf(self) - self.balances[i] if value > 0: _response: Bytes[32] = raw_call( coin, concat( method_id("transfer(address,uint256)"), convert(msg.sender, bytes32), convert(value, bytes32), ), max_outsize=32, ) # dev: failed transfer if len(_response) > 0: assert convert(_response, bool) @external def donate_admin_fees(): assert msg.sender == self.owner # dev: only owner for i in range(N_COINS): self.balances[i] = ERC20(self.coins[i]).balanceOf(self) @external def kill_me(): assert msg.sender == self.owner # dev: only owner assert self.kill_deadline > block.timestamp # dev: deadline has passed self.is_killed = True @external def unkill_me(): assert msg.sender == self.owner # dev: only owner self.is_killed = False
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"name":"TokenExchange","inputs":[{"name":"buyer","type":"address","indexed":true},{"name":"sold_id","type":"int128","indexed":false},{"name":"tokens_sold","type":"uint256","indexed":false},{"name":"bought_id","type":"int128","indexed":false},{"name":"tokens_bought","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[3]","indexed":false},{"name":"fees","type":"uint256[3]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[3]","indexed":false},{"name":"fees","type":"uint256[3]","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityOne","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amount","type":"uint256","indexed":false},{"name":"coin_amount","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidityImbalance","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"token_amounts","type":"uint256[3]","indexed":false},{"name":"fees","type":"uint256[3]","indexed":false},{"name":"invariant","type":"uint256","indexed":false},{"name":"token_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitNewAdmin","inputs":[{"name":"deadline","type":"uint256","indexed":true},{"name":"admin","type":"address","indexed":true}],"anonymous":false,"type":"event"},{"name":"NewAdmin","inputs":[{"name":"admin","type":"address","indexed":true}],"anonymous":false,"type":"event"},{"name":"CommitNewFee","inputs":[{"name":"deadline","type":"uint256","indexed":true},{"name":"fee","type":"uint256","indexed":false},{"name":"admin_fee","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"NewFee","inputs":[{"name":"fee","type":"uint256","indexed":false},{"name":"admin_fee","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RampA","inputs":[{"name":"old_A","type":"uint256","indexed":false},{"name":"new_A","type":"uint256","indexed":false},{"name":"initial_time","type":"uint256","indexed":false},{"name":"future_time","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"StopRampA","inputs":[{"name":"A","type":"uint256","indexed":false},{"name":"t","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_owner","type":"address"},{"name":"_coins","type":"address[3]"},{"name":"_pool_token","type":"address"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"},{"name":"_admin_fee","type":"uint256"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":5174},{"stateMutability":"view","type":"function","name":"A_precise","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":5136},{"stateMutability":"view","type":"function","name":"get_virtual_price","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1187598},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_is_deposit","type":"bool"}],"outputs":[{"name":"","type":"uint256"}],"gas":4725451},{"stateMutability":"nonpayable","type":"function","name":"add_liquidity","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_min_mint_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":7295966},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2802664},{"stateMutability":"nonpayable","type":"function","name":"exchange","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"_dx","type":"uint256"},{"name":"_min_dy","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2965660},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity","inputs":[{"name":"_amount","type":"uint256"},{"name":"_min_amounts","type":"uint256[3]"}],"outputs":[{"name":"","type":"uint256[3]"}],"gas":209248},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_imbalance","inputs":[{"name":"_amounts","type":"uint256[3]"},{"name":"_max_burn_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":7295372},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_token_amount","type":"uint256"},{"name":"i","type":"int128"}],"outputs":[{"name":"","type":"uint256"}],"gas":1276},{"stateMutability":"nonpayable","type":"function","name":"remove_liquidity_one_coin","inputs":[{"name":"_token_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"_min_amount","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":4235225},{"stateMutability":"nonpayable","type":"function","name":"ramp_A","inputs":[{"name":"_future_A","type":"uint256"},{"name":"_future_time","type":"uint256"}],"outputs":[],"gas":151539},{"stateMutability":"nonpayable","type":"function","name":"stop_ramp_A","inputs":[],"outputs":[],"gas":148300},{"stateMutability":"nonpayable","type":"function","name":"commit_new_fee","inputs":[{"name":"_new_fee","type":"uint256"},{"name":"_new_admin_fee","type":"uint256"}],"outputs":[],"gas":110158},{"stateMutability":"nonpayable","type":"function","name":"apply_new_fee","inputs":[],"outputs":[],"gas":96939},{"stateMutability":"nonpayable","type":"function","name":"revert_new_parameters","inputs":[],"outputs":[],"gas":21592},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"_owner","type":"address"}],"outputs":[],"gas":74330},{"stateMutability":"nonpayable","type":"function","name":"apply_transfer_ownership","inputs":[],"outputs":[],"gas":60407},{"stateMutability":"nonpayable","type":"function","name":"revert_transfer_ownership","inputs":[],"outputs":[],"gas":21682},{"stateMutability":"view","type":"function","name":"admin_balances","inputs":[{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3178},{"stateMutability":"nonpayable","type":"function","name":"withdraw_admin_fees","inputs":[],"outputs":[],"gas":21184},{"stateMutability":"nonpayable","type":"function","name":"donate_admin_fees","inputs":[],"outputs":[],"gas":111086},{"stateMutability":"nonpayable","type":"function","name":"kill_me","inputs":[],"outputs":[],"gas":37695},{"stateMutability":"nonpayable","type":"function","name":"unkill_me","inputs":[],"outputs":[],"gas":21832},{"stateMutability":"view","type":"function","name":"coins","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":1917},{"stateMutability":"view","type":"function","name":"balances","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":1947},{"stateMutability":"view","type":"function","name":"fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1868},{"stateMutability":"view","type":"function","name":"admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1898},{"stateMutability":"view","type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1928},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1958},{"stateMutability":"view","type":"function","name":"initial_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1988},{"stateMutability":"view","type":"function","name":"future_A","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2018},{"stateMutability":"view","type":"function","name":"initial_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2048},{"stateMutability":"view","type":"function","name":"future_A_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2078},{"stateMutability":"view","type":"function","name":"admin_actions_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2108},{"stateMutability":"view","type":"function","name":"transfer_ownership_deadline","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2138},{"stateMutability":"view","type":"function","name":"future_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2168},{"stateMutability":"view","type":"function","name":"future_admin_fee","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2198},{"stateMutability":"view","type":"function","name":"future_owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2228}]
Contract Creation Code
610100614b30610140396020614b3060c03960c05160a01c1561002157600080fd5b60206020614b300160c03960c05160a01c1561003c57600080fd5b60206040614b300160c03960c05160a01c1561005757600080fd5b60206060614b300160c03960c05160a01c1561007257600080fd5b60206080614b300160c03960c05160a01c1561008d57600080fd5b61024060006003818352015b600061016061024051600381106100af57600080fd5b6020020151186100be57600080fd5b8151600101808352811415610099575b5050600060c052602060c0206101605181556101805160018201556101a0516002820155506101e0516064808202821582848304141761010d57600080fd5b809050905090506006556101e0516064808202821582848304141761013157600080fd5b8090509050905060075561020051600255610220516003556101405160045542624f1a0081818301101561016457600080fd5b808201905090506010556101c051600555614b1856600436101561000d5761334c565b600035601c52600051341561002157600080fd5b63f446c1d08114156100505760065801613352565b610140526101405160648082049050905060005260206000f35b6376a2f0f08114156100765760065801613352565b610140526101405160005260206000f35b63bb7b8b808114156102145761014051600658016134ea565b61016052610180526101a0526101405261016080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e0516102005160065801613352565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610240526101405161016051610180516101a0516101c0516101e0516102005161022051610240516101c051610260526101e05161028052610200516102a052610240516102c0526102c0516102a051610280516102605160065801613704565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516101405260206101e060046318160ddd6101805261019c6005545afa6101b657600080fd5b601f3d116101c357600080fd5b6000506101e0516101605261014051670de0b6b3a764000080820282158284830414176101ef57600080fd5b8090509050905061016051808061020557600080fd5b82049050905060005260206000f35b633883e1198114156104f05760643560011c1561023057600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526101e060006003818352015b60643515610351576101606101e0516003811061031557600080fd5b60200201805160046101e0516003811061032e57600080fd5b602002013581818301101561034257600080fd5b8082019050905081525061039b565b6101606101e0516003811061036557600080fd5b60200201805160046101e0516003811061037e57600080fd5b60200201358082101561039057600080fd5b808203905090508152505b81516001018083528114156102f9575b50506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261014051610260526102605161024051610220516102005160065801613a02565b6102c0526101e0526101c0526101a0526101805261016052610140526102c0516101e052602061028060046318160ddd6102205261023c6005545afa61044357600080fd5b601f3d1161045057600080fd5b60005061028051610200526000610220526064351561048e576101e0516101c0518082101561047e57600080fd5b80820390509050610220526104af565b6101c0516101e051808210156104a357600080fd5b80820390509050610220525b610220516102005180820282158284830414176104cb57600080fd5b809050905090506101c05180806104e157600080fd5b82049050905060005260206000f35b634515cef3811415610dbf576011541561050957600080fd5b6001601155600f541561051b57600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526005546101e052602061028060046318160ddd6102205261023c6101e0515afa61060157600080fd5b601f3d1161060e57600080fd5b6000506102805161020052610160516102205261018051610240526101a0516102605261028060006003818352015b61020051151561066b5760006004610280516003811061065c57600080fd5b60200201351161066b57600080fd5b610220610280516003811061067f57600080fd5b6020020180516004610280516003811061069857600080fd5b60200201358181830110156106ac57600080fd5b808201905090508152505b815160010180835281141561063d575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610220516102a052610240516102c052610260516102e0526101405161030052610300516102e0516102c0516102a05160065801613a02565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526101c051610280511161077857600080fd5b610280516102a0526080366102c0376000610200511115610aae57600254600380820282158284830414176107ac57600080fd5b80905090509050600880820490509050610340526003546103605261038060006003818352015b6102805161016061038051600381106107eb57600080fd5b6020020151808202821582848304141761080457600080fd5b809050905090506101c051808061081a57600080fd5b8204905090506103a05260006103c052610220610380516003811061083e57600080fd5b60200201516103e0526103e0516103a051111561087a576103a0516103e0518082101561086a57600080fd5b808203905090506103c05261089b565b6103e0516103a0518082101561088f57600080fd5b808203905090506103c0525b610340516103c05180820282158284830414176108b757600080fd5b809050905090506402540be400808204905090506102c061038051600381106108df57600080fd5b60200201526103e0516102c061038051600381106108fc57600080fd5b602002015161036051808202821582848304141761091957600080fd5b809050905090506402540be400808204905090508082101561093a57600080fd5b80820390509050610380516003811061095257600080fd5b600160c052602060c0200155610220610380516003811061097257600080fd5b6020020180516102c0610380516003811061098c57600080fd5b60200201518082101561099e57600080fd5b808203905090508152505b81516001018083528114156107d3575b5050610140610380525b610380515160206103805101610380526103806103805110156109e5576109c3565b610220516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a05160065801613a02565b61046052610360610380525b6103805152602061038051036103805261014061038051101515610a4d57610a2a565b610460516102a052610200516102a0516101c05180821015610a6e57600080fd5b808203905090508082028215828483041417610a8957600080fd5b809050905090506101c0518080610a9f57600080fd5b82049050905061032052610ada565b600160c052602060c0206102205181556102405160018201556102605160028201555061028051610320525b6064356103205110151515610b2e576308c379a0610340526020610360526014610380527f536c697070616765207363726577656420796f750000000000000000000000006103a05261038050606461035cfd5b61034060006003818352015b600060046103405160038110610b4f57600080fd5b60200201351115610cd657600060046103c0527f23b872dd000000000000000000000000000000000000000000000000000000006103e0526103c060048060208461042001018260208501600060045af1505080518201915050336020826104200101526020810190503060208261042001015260208101905060046103405160038110610bdc57600080fd5b6020020135602082610420010152602081019050806104205261042090508051602001806104e08284600060045af1610c1457600080fd5b505060206105c06104e05161050060006103405160038110610c3557600080fd5b600060c052602060c02001545af1610c4c57600080fd5b60203d80821115610c5d5780610c5f565b815b905090506105a0526105a08051602001806103608284600060045af1610c8457600080fd5b50506000610360511115610cd657610360806020015160008251806020901315610cad57600080fd5b8091901215610cbb57600080fd5b806020036101000a82049050905090501515610cd657600080fd5b8151600101808352811415610b3a575b505060206103e060446340c10f19610340523361036052610320516103805261035c60006101e0515af1610d1957600080fd5b601f3d11610d2657600080fd5b6000506103e0506004356103405260243561036052604435610380526102c0516103a0526102e0516103c052610300516103e05261028051610400526102005161032051818183011015610d7957600080fd5b8082019050905061042052337f423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d610100610340a261032051600052600060115560206000f35b635e0d443f8114156110875760043580806000811215610ddb57195b607f1c15610de857600080fd5b90505060243580806000811215610dfb57195b607f1c15610e0857600080fd5b905050610140516101605161018051600658016134ea565b6101a0526101c0526101e0526101805261016052610140526101a080516101405280602001516101605280604001516101805250670de0b6b3a76400006101a0526c0c9f2c9cd04674edea400000006101c0526c0c9f2c9cd04674edea400000006101e05261014060043560038110610e9857600080fd5b60200201516044356101a060043560038110610eb357600080fd5b60200201518082028215828483041417610ecc57600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015610ef257600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e051610200516102205160043561024052602435610260526102005161028052610140516102a052610160516102c052610180516102e0526102e0516102c0516102a05161028051610260516102405160065801613b60565b6103405261022052610200526101e0526101c0526101a052610180526101605261014052610340516102205261014060243560038110610fab57600080fd5b60200201516102205180821015610fc157600080fd5b80820390509050600180821015610fd757600080fd5b8082039050905061024052600254610240518082028215828483041417610ffd57600080fd5b809050905090506402540be400808204905090506102605261024051610260518082101561102a57600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761104e57600080fd5b809050905090506101a06024356003811061106857600080fd5b6020020151808061107857600080fd5b82049050905060005260206000f35b633df021248114156118b657601154156110a057600080fd5b6001601155600435808060008112156110b557195b607f1c156110c257600080fd5b905050602435808060008112156110d557195b607f1c156110e257600080fd5b905050600f54156110f257600080fd5b60018060c052602060c020546101405260018160c052602060c02001546101605260028160c052602060c020015461018052506101405161016051610180516101a0516101c0516101e051610140516102005261016051610220526101805161024052610240516102205161020051600658016135f3565b6102a0526102c0526102e0526101e0526101c0526101a0526101805261016052610140526102a080516101a05280602001516101c05280604001516101e05250670de0b6b3a7640000610200526c0c9f2c9cd04674edea40000000610220526c0c9f2c9cd04674edea40000000610240526101a0600435600381106111ee57600080fd5b60200201516044356102006004356003811061120957600080fd5b6020020151808202821582848304141761122257600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561124857600080fd5b80820190509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516004356102a0526024356102c052610260516102e0526101a051610300526101c051610320526101e051610340526103405161032051610300516102e0516102c0516102a05160065801613b60565b6103a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a051610280526101a06024356003811061131957600080fd5b6020020151610280518082101561132f57600080fd5b8082039050905060018082101561134557600080fd5b808203905090506102a0526102a051600254808202821582848304141761136b57600080fd5b809050905090506402540be400808204905090506102c0526102a0516102c0518082101561139857600080fd5b80820390509050670de0b6b3a764000080820282158284830414176113bc57600080fd5b80905090509050610200602435600381106113d657600080fd5b602002015180806113e657600080fd5b8204905090506102a0526064356102a05110151515611469576308c379a06102e052602061030052602e610320527f45786368616e676520726573756c74656420696e20666577657220636f696e73610340527f207468616e206578706563746564000000000000000000000000000000000000610360526103205060846102fcfd5b6102c051600354808202821582848304141761148457600080fd5b809050905090506402540be400808204905090506102e0526102e051670de0b6b3a764000080820282158284830414176114bd57600080fd5b80905090509050610200602435600381106114d757600080fd5b602002015180806114e757600080fd5b8204905090506102e0526101406004356003811061150457600080fd5b602002015160443581818301101561151b57600080fd5b808201905090506004356003811061153257600080fd5b600160c052602060c02001556101406024356003811061155157600080fd5b60200201516102a0518082101561156757600080fd5b808203905090506102e0518082101561157f57600080fd5b808203905090506024356003811061159657600080fd5b600160c052602060c020015560006004610360527f23b872dd00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050336020826103c0010152602081019050306020826103c00101526020810190506044356020826103c0010152602081019050806103c0526103c090508051602001806104808284600060045af161164757600080fd5b50506020610560610480516104a060006004356003811061166757600080fd5b600060c052602060c02001545af161167e57600080fd5b60203d8082111561168f5780611691565b815b90509050610540526105408051602001806103008284600060045af16116b657600080fd5b50506000610300511115611708576103008060200151600082518060209013156116df57600080fd5b80919012156116ed57600080fd5b806020036101000a8204905090509050151561170857600080fd5b60006004610360527fa9059cbb00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050336020826103c00101526020810190506102a0516020826103c0010152602081019050806103c0526103c090508051602001806104608284600060045af161179e57600080fd5b50506020610520610460516104806000602435600381106117be57600080fd5b600060c052602060c02001545af16117d557600080fd5b60203d808211156117e657806117e8565b815b90509050610500526105008051602001806103008284600060045af161180d57600080fd5b5050600061030051111561185f5761030080602001516000825180602090131561183657600080fd5b809190121561184457600080fd5b806020036101000a8204905090509050151561185f57600080fd5b60043561036052604435610380526024356103a0526102a0516103c052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610360a26102a051600052600060115560206000f35b63ecb586a5811415611c8857601154156118cf57600080fd5b60016011556005546101405260206101e060046318160ddd6101805261019c610140515afa6118fd57600080fd5b601f3d1161190a57600080fd5b6000506101e05161016052606036610180376101e060006003818352015b6101e0516003811061193957600080fd5b600160c052602060c02001546102005261020051600435808202821582848304141761196457600080fd5b8090509050905061016051808061197a57600080fd5b8204905090506102205260246101e0516003811061199757600080fd5b60200201356102205110151515611a12576308c379a0610240526020610260526030610280527f5769746864726177616c20726573756c74656420696e20666577657220636f696102a0527f6e73207468616e206578706563746564000000000000000000000000000000006102c05261028050608461025cfd5b610200516102205180821015611a2757600080fd5b808203905090506101e05160038110611a3f57600080fd5b600160c052602060c0200155610220516101806101e05160038110611a6357600080fd5b6020020152600060046102a0527fa9059cbb000000000000000000000000000000000000000000000000000000006102c0526102a060048060208461030001018260208501600060045af15050805182019150503360208261030001015260208101905061022051602082610300010152602081019050806103005261030090508051602001806103a08284600060045af1611afe57600080fd5b505060206104606103a0516103c060006101e05160038110611b1f57600080fd5b600060c052602060c02001545af1611b3657600080fd5b60203d80821115611b475780611b49565b815b90509050610440526104408051602001806102408284600060045af1611b6e57600080fd5b50506000610240511115611bc057610240806020015160008251806020901315611b9757600080fd5b8091901215611ba557600080fd5b806020036101000a82049050905090501515611bc057600080fd5b8151600101808352811415611928575b5050602061028060446379cc67906101e0523361020052600435610220526101fc6000610140515af1611c0257600080fd5b601f3d11611c0f57600080fd5b60005061028050610180516101e0526101a051610200526101c05161022052606036610240376101605160043580821015611c4957600080fd5b808203905090506102a052337fa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d60e06101e0a260006011556060610180f35b639fdaea0c8114156125015760115415611ca157600080fd5b6001601155600f5415611cb357600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c052610160516101e05261018051610200526101a0516102205261024060006003818352015b6101e06102405160038110611da857600080fd5b60200201805160046102405160038110611dc157600080fd5b602002013580821015611dd357600080fd5b808203905090508152505b8151600101808352811415611d94575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516101e051610260526102005161028052610220516102a052610140516102c0526102c0516102a051610280516102605160065801613a02565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516102405260025460038082028215828483041417611e9657600080fd5b8090509050905060088082049050905061026052600354610280526060366102a03761030060006003818352015b6101e06103005160038110611ed857600080fd5b602002015161032052610240516101606103005160038110611ef957600080fd5b60200201518082028215828483041417611f1257600080fd5b809050905090506101c0518080611f2857600080fd5b8204905090506103405260006103605261032051610340511115611f6b57610340516103205180821015611f5b57600080fd5b8082039050905061036052611f8c565b610320516103405180821015611f8057600080fd5b80820390509050610360525b61026051610360518082028215828483041417611fa857600080fd5b809050905090506402540be400808204905090506102a06103005160038110611fd057600080fd5b6020020152610320516102a06103005160038110611fed57600080fd5b602002015161028051808202821582848304141761200a57600080fd5b809050905090506402540be400808204905090508082101561202b57600080fd5b80820390509050610300516003811061204357600080fd5b600160c052602060c0200155610320516102a0610300516003811061206757600080fd5b60200201518082101561207957600080fd5b808203905090506101e0610300516003811061209457600080fd5b60200201525b8151600101808352811415611ec4575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516101e051610320526102005161034052610220516103605261014051610380526103805161036051610340516103205160065801613a02565b6103e052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e051610300526005546103205260206103c060046318160ddd6103605261037c610320515afa61219257600080fd5b601f3d1161219f57600080fd5b6000506103c051610340526101c05161030051808210156121bf57600080fd5b808203905090506103405180820282158284830414176121de57600080fd5b809050905090506101c05180806121f457600080fd5b820490509050610360526000610360511861220e57600080fd5b6103608051600181818301101561222457600080fd5b808201905090508152506064356103605111151515612282576308c379a06103805260206103a05260146103c0527f536c697070616765207363726577656420796f750000000000000000000000006103e0526103c050606461039cfd5b602061042060446379cc679061038052336103a052610360516103c05261039c6000610320515af16122b357600080fd5b601f3d116122c057600080fd5b6000506104205061038060006003818352015b6000600461038051600381106122e857600080fd5b6020020135181561245f5760006004610400527fa9059cbb000000000000000000000000000000000000000000000000000000006104205261040060048060208461046001018260208501600060045af1505080518201915050336020826104600101526020810190506004610380516003811061236557600080fd5b6020020135602082610460010152602081019050806104605261046090508051602001806105008284600060045af161239d57600080fd5b505060206105c061050051610520600061038051600381106123be57600080fd5b600060c052602060c02001545af16123d557600080fd5b60203d808211156123e657806123e8565b815b905090506105a0526105a08051602001806103a08284600060045af161240d57600080fd5b505060006103a051111561245f576103a080602001516000825180602090131561243657600080fd5b809190121561244457600080fd5b806020036101000a8204905090509050151561245f57600080fd5b81516001018083528114156122d3575b5050600435610380526024356103a0526044356103c0526102a0516103e0526102c051610400526102e0516104205261024051610440526103405161036051808210156124bb57600080fd5b8082039050905061046052337f173599dbf9c6ca6f7c3b590df07ae98a45d74ff54065505141e7de6c46a624c2610100610380a261036051600052600060115560206000f35b63cc2b27d7811415612595576024358080600081121561251d57195b607f1c1561252a57600080fd5b9050506004356101405260243561016052610160516101405160065801614358565b6101c0526101e052610200526101c08080808051610220525050602081019050808080516102405250506020810190508080805161026052505050506102205160005260206000f35b631a4d01d281141561294957601154156125ae57600080fd5b6001601155602435808060008112156125c357195b607f1c156125d057600080fd5b905050600f54156125e057600080fd5b606036610140376101405161016051610180516004356101a0526024356101c0526101c0516101a05160065801614358565b6102205261024052610260526101805261016052610140526102208080808051610280525050602081019050808080516102a0525050602081019050808080516102c052505050506102808051610140528060200151610160528060400151610180525060443561014051101515156126ca576308c379a06101a05260206101c05260186101e0527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610200526101e05060646101bcfd5b602435600381106126da57600080fd5b600160c052602060c0200180546101405161016051600354808202821582848304141761270657600080fd5b809050905090506402540be4008082049050905081818301101561272957600080fd5b808201905090508082101561273d57600080fd5b80820390509050815550602061024060446379cc67906101a052336101c0526004356101e0526101bc60006005545af161277657600080fd5b601f3d1161278357600080fd5b6000506102405060006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061014051602082610260010152602081019050806102605261026090508051602001806103008284600060045af161282057600080fd5b505060206103c06103005161032060006024356003811061284057600080fd5b600060c052602060c02001545af161285757600080fd5b60203d80821115612868578061286a565b815b905090506103a0526103a08051602001806101a08284600060045af161288f57600080fd5b505060006101a05111156128e1576101a08060200151600082518060209013156128b857600080fd5b80919012156128c657600080fd5b806020036101000a820490509050905015156128e157600080fd5b600435610200526101405161022052610180516004358082101561290457600080fd5b8082039050905061024052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06060610200a261014051600052600060115560206000f35b633c157e64811415612aea57600454331461296357600080fd5b6008546201518081818301101561297957600080fd5b8082019050905042101561298c57600080fd5b42620151808181830110156129a057600080fd5b8082019050905060243510156129b557600080fd5b6101405160065801613352565b61016052610140526101605161014052600435606480820282158284830414176129eb57600080fd5b809050905090506101605260006004351115612a0e57620f424060043510612a11565b60005b612a1a57600080fd5b61014051610160511015612a5d576101405161016051600a8082028215828483041417612a4657600080fd5b809050905090501015612a5857600080fd5b612a8d565b61014051600a8082028215828483041417612a7757600080fd5b80905090509050610160511115612a8d57600080fd5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588811415612b6d576004543314612b0457600080fd5b6101405160065801613352565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a1467811415612c29576004543314612b8757600080fd5b600a5415612b9457600080fd5b64012a05f2006004351115612ba857600080fd5b6402540be4006024351115612bbc57600080fd5b426203f480818183011015612bd057600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97811415612cbb576004543314612c4357600080fd5b600a54421015612c5257600080fd5b6000600a5418612c6157600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb811415612cdc576004543314612cd557600080fd5b6000600a55005b636b441a40811415612d6e5760043560a01c15612cf857600080fd5b6004543314612d0657600080fd5b600b5415612d1357600080fd5b426203f480818183011015612d2757600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae811415612de5576004543314612d8857600080fd5b600b54421015612d9757600080fd5b6000600b5418612da657600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193811415612e06576004543314612dff57600080fd5b6000600b55005b63e2e7d264811415612e9e5760206101c060246370a0823161014052306101605261015c60043560038110612e3a57600080fd5b600060c052602060c02001545afa612e5157600080fd5b601f3d11612e5e57600080fd5b6000506101c05160043560038110612e7557600080fd5b600160c052602060c020015480821015612e8e57600080fd5b8082039050905060005260206000f35b6330c540858114156130b4576004543314612eb857600080fd5b61014060006003818352015b6101405160038110612ed557600080fd5b600060c052602060c020015461016052602061022060246370a082316101a052306101c0526101bc610160515afa612f0c57600080fd5b601f3d11612f1957600080fd5b600050610220516101405160038110612f3157600080fd5b600160c052602060c020015480821015612f4a57600080fd5b808203905090506101805260006101805111156130a05760006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061018051602082610260010152602081019050806102605261026090508051602001806103008284600060045af1612ff757600080fd5b505060206103c0610300516103206000610160515af161301657600080fd5b60203d808211156130275780613029565b815b905090506103a0526103a08051602001806101a08284600060045af161304e57600080fd5b505060006101a05111156130a0576101a080602001516000825180602090131561307757600080fd5b809190121561308557600080fd5b806020036101000a820490509050905015156130a057600080fd5b8151600101808352811415612ec4575b5050005b63524c39018114156131605760045433146130ce57600080fd5b61014060006003818352015b60206101e060246370a0823161016052306101805261017c610140516003811061310357600080fd5b600060c052602060c02001545afa61311a57600080fd5b601f3d1161312757600080fd5b6000506101e051610140516003811061313f57600080fd5b600160c052602060c02001555b81516001018083528114156130da575b5050005b63e369885381141561318f57600454331461317a57600080fd5b426010541161318857600080fd5b6001600f55005b633046f9728114156131b05760045433146131a957600080fd5b6000600f55005b63c66106578114156131e157600435600381106131cc57600080fd5b600060c052602060c020015460005260206000f35b634903b0d181141561321257600435600381106131fd57600080fd5b600160c052602060c020015460005260206000f35b63ddca3f4381141561322a5760025460005260206000f35b63fee3f7f98114156132425760035460005260206000f35b638da5cb5b81141561325a5760045460005260206000f35b6382c630668114156132725760055460005260206000f35b635409491a81141561328a5760065460005260206000f35b63b4b577ad8114156132a25760075460005260206000f35b632081066c8114156132ba5760085460005260206000f35b63140522888114156132d25760095460005260206000f35b63405e28f88114156132ea57600a5460005260206000f35b63e0a0b58681141561330257600b5460005260206000f35b6358680d0b81141561331a57600c5460005260206000f35b63e382446281141561333257600d5460005260206000f35b631ec0cdc181141561334a57600e5460005260206000f35b505b60006000fd5b610140526009546101605260075461018052610160514210156134d8576006546101a0526008546101c0526101a051610180511115613432576101a051610180516101a051808210156133a457600080fd5b80820390509050426101c051808210156133bd57600080fd5b8082039050905080820282158284830414176133d857600080fd5b80905090509050610160516101c051808210156133f457600080fd5b80820390509050808061340657600080fd5b82049050905081818301101561341b57600080fd5b8082019050905060005260005161014051566134d3565b6101a0516101a051610180518082101561344b57600080fd5b80820390509050426101c0518082101561346457600080fd5b80820390509050808202821582848304141761347f57600080fd5b80905090509050610160516101c0518082101561349b57600080fd5b8082039050905080806134ad57600080fd5b820490509050808210156134c057600080fd5b8082039050905060005260005161014051565b6134e8565b6101805160005260005161014051565b005b61014052670de0b6b3a7640000610160526c0c9f2c9cd04674edea40000000610180526c0c9f2c9cd04674edea400000006101a0526101c060006003818352015b6101606101c0516003811061353f57600080fd5b60200201516101c0516003811061355557600080fd5b600160c052602060c0200154808202821582848304141761357557600080fd5b80905090509050670de0b6b3a7640000808204905090506101606101c051600381106135a057600080fd5b60200201525b815160010180835281141561352b575b505060606101c0525b60006101c0511115156135d1576135ed565b60206101c05103610160015160206101c051036101c0526135bf565b61014051565b6101a052610140526101605261018052670de0b6b3a76400006101c0526c0c9f2c9cd04674edea400000006101e0526c0c9f2c9cd04674edea400000006102005261022060006003818352015b6101c0610220516003811061365457600080fd5b6020020151610140610220516003811061366d57600080fd5b6020020151808202821582848304141761368657600080fd5b80905090509050670de0b6b3a7640000808204905090506101c061022051600381106136b157600080fd5b60200201525b8151600101808352811415613640575b50506060610220525b6000610220511115156136e2576136fe565b602061022051036101c0015160206102205103610220526136d0565b6101a051565b6101c0526101405261016052610180526101a0526040366101e03761024060006003818352015b602061024051026101400151610220526101e080516102205181818301101561375357600080fd5b808201905090508152505b815160010180835281141561372b575b50506101e05115156137885760006000526000516101c051565b6101e051610220526101a051600380820282158284830414176137aa57600080fd5b8090509050905061024052610260600060ff818352015b61022051610280526102c060006003818352015b60206102c0510261014001516102a0526102805161022051808202821582848304141761380157600080fd5b809050905090506102a0516003808202821582848304141761382257600080fd5b80905090509050808061383457600080fd5b820490509050610280525b81516001018083528114156137d5575b50506102205161020052610240516101e051808202821582848304141761387557600080fd5b80905090509050606480820490509050610280516003808202821582848304141761389f57600080fd5b809050905090508181830110156138b557600080fd5b808201905090506102205180820282158284830414176138d457600080fd5b80905090509050610240516064808210156138ee57600080fd5b8082039050905061022051808202821582848304141761390d57600080fd5b80905090509050606480820490509050600461028051808202821582848304141761393757600080fd5b8090509050905081818301101561394d57600080fd5b80820190509050808061395f57600080fd5b82049050905061022052610200516102205111156139b357600161022051610200518082101561398e57600080fd5b808203905090501115156139ae576102205160005250506000516101c051565b6139ea565b60016102005161022051808210156139ca57600080fd5b808203905090501115156139ea576102205160005250506000516101c051565b81516001018083528114156137c1575b505060006000fd5b6101c0526101405261016052610180526101a0526101405161016051610180516101a0516101c051610140516101e0526101605161020052610180516102205261022051610200516101e051600658016135f3565b610280526102a0526102c0526101c0526101a05261018052610160526101405261028080516102e052806020015161030052806040015161032052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05161030051610320516102e05161034052610300516103605261032051610380526101a0516103a0526103a05161038051610360516103405160065801613704565b6104005261032052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610400516000526000516101c051565b610200526101405261016052610180526101a0526101c0526101e052610160516101405118613b8e57600080fd5b6000610160511215613b9f57600080fd5b60036101605112613baf57600080fd5b6000610140511215613bc057600080fd5b60036101405112613bd057600080fd5b6101405161016051610180516101a0516101c0516101e051610200516102205160065801613352565b6102405261022052610200526101e0526101c0526101a05261018052610160526101405261024051610220526101405161016051610180516101a0516101c0516101e0516102005161022051610240516101a051610260526101c051610280526101e0516102a052610220516102c0526102c0516102a051610280516102605160065801613704565b610320526102405261022052610200526101e0526101c0526101a05261018052610160526101405261032051610240526102205160038082028215828483041417613ccc57600080fd5b809050905090506102605261024051610280526060366102a03761030060006003818352015b61014051610300511415613d0d57610180516102c052613d42565b61016051610300511815613d3d576101a06103005160038110613d2f57600080fd5b60200201516102c052613d42565b613dbe565b6102a080516102c051818183011015613d5a57600080fd5b8082019050905081525061028051610240518082028215828483041417613d8057600080fd5b809050905090506102c05160038082028215828483041417613da157600080fd5b809050905090508080613db357600080fd5b820490509050610280525b8151600101808352811415613cf2575b505061028051610240518082028215828483041417613dec57600080fd5b8090509050905060648082028215828483041417613e0957600080fd5b809050905090506102605160038082028215828483041417613e2a57600080fd5b809050905090508080613e3c57600080fd5b820490509050610280526102a0516102405160648082028215828483041417613e6457600080fd5b80905090509050610260518080613e7a57600080fd5b820490509050818183011015613e8f57600080fd5b80820190509050610300526102405161032052610340600060ff818352015b610320516102e05261032051610320518082028215828483041417613ed257600080fd5b8090509050905061028051818183011015613eec57600080fd5b808201905090506002610320518082028215828483041417613f0d57600080fd5b8090509050905061030051818183011015613f2757600080fd5b808201905090506102405180821015613f3f57600080fd5b808203905090508080613f5157600080fd5b820490509050610320526102e051610320511115613fa5576001610320516102e05180821015613f8057600080fd5b80820390509050111515613fa05761032051600052505060005161020051565b613fdc565b60016102e0516103205180821015613fbc57600080fd5b80820390509050111515613fdc5761032051600052505060005161020051565b8151600101808352811415613eae575b505060006000fd5b610200526101405261016052610180526101a0526101c0526101e052600061016051121561402157600080fd5b6003610160511261403157600080fd5b610140516003808202821582848304141761404b57600080fd5b80905090509050610220526101e05161024052606036610260376102c060006003818352015b610160516102c05118156140a1576101806102c0516003811061409357600080fd5b6020020151610280526140a6565b614122565b6102608051610280518181830110156140be57600080fd5b80820190509050815250610240516101e05180820282158284830414176140e457600080fd5b80905090509050610280516003808202821582848304141761410557600080fd5b80905090509050808061411757600080fd5b820490509050610240525b8151600101808352811415614071575b5050610240516101e051808202821582848304141761415057600080fd5b809050905090506064808202821582848304141761416d57600080fd5b80905090509050610220516003808202821582848304141761418e57600080fd5b8090509050905080806141a057600080fd5b82049050905061024052610260516101e051606480820282158284830414176141c857600080fd5b809050905090506102205180806141de57600080fd5b8204905090508181830110156141f357600080fd5b808201905090506102c0526101e0516102e052610300600060ff818352015b6102e0516102a0526102e0516102e051808202821582848304141761423657600080fd5b809050905090506102405181818301101561425057600080fd5b8082019050905060026102e051808202821582848304141761427157600080fd5b809050905090506102c05181818301101561428b57600080fd5b808201905090506101e051808210156142a357600080fd5b8082039050905080806142b557600080fd5b8204905090506102e0526102a0516102e05111156143095760016102e0516102a051808210156142e457600080fd5b80820390509050111515614304576102e051600052505060005161020051565b614340565b60016102a0516102e0518082101561432057600080fd5b80820390509050111515614340576102e051600052505060005161020051565b8151600101808352811415614212575b505060006000fd5b6101805261014052610160526101405161016051610180516101a05160065801613352565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e05161020051600658016134ea565b610220526102405261026052610200526101e0526101c0526101a05261018052610160526101405261022080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e0516102605261020051610280526101a0516102a0526102a05161028051610260516102405160065801613704565b6103005261022052610200526101e0526101c0526101a052610180526101605261014052610300516102205260206102c060046318160ddd6102605261027c6005545afa6144a857600080fd5b601f3d116144b557600080fd5b6000506102c0516102405261022051610140516102205180820282158284830414176144e057600080fd5b809050905090506102405180806144f657600080fd5b8204905090508082101561450957600080fd5b80820390509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101a0516102a052610160516102c0526101c0516102e0526101e05161030052610200516103205261026051610340526103405161032051610300516102e0516102c0516102a05160065801613ff4565b6103a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a051610280526101c0516102a0526101e0516102c052610200516102e052600254600380820282158284830414176145fa57600080fd5b809050905090506008808204905090506103005261032060006003818352015b6000610340526101605161032051141561469c576101c0610320516003811061464257600080fd5b602002015161026051808202821582848304141761465f57600080fd5b8090509050905061022051808061467557600080fd5b820490509050610280518082101561468c57600080fd5b808203905090506103405261471b565b6101c061032051600381106146b057600080fd5b60200201516101c061032051600381106146c957600080fd5b60200201516102605180820282158284830414176146e657600080fd5b809050905090506102205180806146fc57600080fd5b8204905090508082101561470f57600080fd5b80820390509050610340525b6102a0610320516003811061472f57600080fd5b6020020180516103005161034051808202821582848304141761475157600080fd5b809050905090506402540be400808204905090508082101561477257600080fd5b808203905090508152505b815160010180835281141561461a575b50506102a061016051600381106147a357600080fd5b6020020151610140610340525b610340515160206103405101610340526103406103405110156147d2576147b0565b6101a0516103605261016051610380526102a0516103a0526102c0516103c0526102e0516103e0526102605161040052610400516103e0516103c0516103a051610380516103605160065801613ff4565b61046052610320610340525b61034051526020610340510361034052610140610340511015156148525761482f565b610460518082101561486357600080fd5b808203905090506103205260016103405264e8d4a510006103605264e8d4a51000610380526103205160018082101561489b57600080fd5b8082039050905061034061016051600381106148b657600080fd5b602002015180806148c657600080fd5b820490509050610320526101c061016051600381106148e457600080fd5b602002015161028051808210156148fa57600080fd5b80820390509050610340610160516003811061491557600080fd5b6020020151808061492557600080fd5b8204905090506103a0526104206103205181526103a051610320518082101561494d57600080fd5b808203905090508160200152610240518160400152506060610480525b60006104805111151561497c57614998565b602061048051036104200151602061048051036104805261496a565b61018051565b61017a614b180361017a60003961017a614b18036000f30000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d000000000000000000000000ddafbb505ad214d7b80b1f830fccc89b60fb7a830000000000000000000000004ecaba5870353805a9f068101a40e0f32ed605c60000000000000000000000001337bedc9d22ecbe766df105c9623922a27963ec00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
Deployed Bytecode
0x600436101561000d5761334c565b600035601c52600051341561002157600080fd5b63f446c1d08114156100505760065801613352565b610140526101405160648082049050905060005260206000f35b6376a2f0f08114156100765760065801613352565b610140526101405160005260206000f35b63bb7b8b808114156102145761014051600658016134ea565b61016052610180526101a0526101405261016080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e0516102005160065801613352565b61022052610200526101e0526101c0526101a05261018052610160526101405261022051610240526101405161016051610180516101a0516101c0516101e0516102005161022051610240516101c051610260526101e05161028052610200516102a052610240516102c0526102c0516102a051610280516102605160065801613704565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516101405260206101e060046318160ddd6101805261019c6005545afa6101b657600080fd5b601f3d116101c357600080fd5b6000506101e0516101605261014051670de0b6b3a764000080820282158284830414176101ef57600080fd5b8090509050905061016051808061020557600080fd5b82049050905060005260206000f35b633883e1198114156104f05760643560011c1561023057600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526101e060006003818352015b60643515610351576101606101e0516003811061031557600080fd5b60200201805160046101e0516003811061032e57600080fd5b602002013581818301101561034257600080fd5b8082019050905081525061039b565b6101606101e0516003811061036557600080fd5b60200201805160046101e0516003811061037e57600080fd5b60200201358082101561039057600080fd5b808203905090508152505b81516001018083528114156102f9575b50506101405161016051610180516101a0516101c0516101e051610160516102005261018051610220526101a0516102405261014051610260526102605161024051610220516102005160065801613a02565b6102c0526101e0526101c0526101a0526101805261016052610140526102c0516101e052602061028060046318160ddd6102205261023c6005545afa61044357600080fd5b601f3d1161045057600080fd5b60005061028051610200526000610220526064351561048e576101e0516101c0518082101561047e57600080fd5b80820390509050610220526104af565b6101c0516101e051808210156104a357600080fd5b80820390509050610220525b610220516102005180820282158284830414176104cb57600080fd5b809050905090506101c05180806104e157600080fd5b82049050905060005260206000f35b634515cef3811415610dbf576011541561050957600080fd5b6001601155600f541561051b57600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c0526005546101e052602061028060046318160ddd6102205261023c6101e0515afa61060157600080fd5b601f3d1161060e57600080fd5b6000506102805161020052610160516102205261018051610240526101a0516102605261028060006003818352015b61020051151561066b5760006004610280516003811061065c57600080fd5b60200201351161066b57600080fd5b610220610280516003811061067f57600080fd5b6020020180516004610280516003811061069857600080fd5b60200201358181830110156106ac57600080fd5b808201905090508152505b815160010180835281141561063d575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516102605161028051610220516102a052610240516102c052610260516102e0526101405161030052610300516102e0516102c0516102a05160065801613a02565b6103605261028052610260526102405261022052610200526101e0526101c0526101a05261018052610160526101405261036051610280526101c051610280511161077857600080fd5b610280516102a0526080366102c0376000610200511115610aae57600254600380820282158284830414176107ac57600080fd5b80905090509050600880820490509050610340526003546103605261038060006003818352015b6102805161016061038051600381106107eb57600080fd5b6020020151808202821582848304141761080457600080fd5b809050905090506101c051808061081a57600080fd5b8204905090506103a05260006103c052610220610380516003811061083e57600080fd5b60200201516103e0526103e0516103a051111561087a576103a0516103e0518082101561086a57600080fd5b808203905090506103c05261089b565b6103e0516103a0518082101561088f57600080fd5b808203905090506103c0525b610340516103c05180820282158284830414176108b757600080fd5b809050905090506402540be400808204905090506102c061038051600381106108df57600080fd5b60200201526103e0516102c061038051600381106108fc57600080fd5b602002015161036051808202821582848304141761091957600080fd5b809050905090506402540be400808204905090508082101561093a57600080fd5b80820390509050610380516003811061095257600080fd5b600160c052602060c0200155610220610380516003811061097257600080fd5b6020020180516102c0610380516003811061098c57600080fd5b60200201518082101561099e57600080fd5b808203905090508152505b81516001018083528114156107d3575b5050610140610380525b610380515160206103805101610380526103806103805110156109e5576109c3565b610220516103a052610240516103c052610260516103e0526101405161040052610400516103e0516103c0516103a05160065801613a02565b61046052610360610380525b6103805152602061038051036103805261014061038051101515610a4d57610a2a565b610460516102a052610200516102a0516101c05180821015610a6e57600080fd5b808203905090508082028215828483041417610a8957600080fd5b809050905090506101c0518080610a9f57600080fd5b82049050905061032052610ada565b600160c052602060c0206102205181556102405160018201556102605160028201555061028051610320525b6064356103205110151515610b2e576308c379a0610340526020610360526014610380527f536c697070616765207363726577656420796f750000000000000000000000006103a05261038050606461035cfd5b61034060006003818352015b600060046103405160038110610b4f57600080fd5b60200201351115610cd657600060046103c0527f23b872dd000000000000000000000000000000000000000000000000000000006103e0526103c060048060208461042001018260208501600060045af1505080518201915050336020826104200101526020810190503060208261042001015260208101905060046103405160038110610bdc57600080fd5b6020020135602082610420010152602081019050806104205261042090508051602001806104e08284600060045af1610c1457600080fd5b505060206105c06104e05161050060006103405160038110610c3557600080fd5b600060c052602060c02001545af1610c4c57600080fd5b60203d80821115610c5d5780610c5f565b815b905090506105a0526105a08051602001806103608284600060045af1610c8457600080fd5b50506000610360511115610cd657610360806020015160008251806020901315610cad57600080fd5b8091901215610cbb57600080fd5b806020036101000a82049050905090501515610cd657600080fd5b8151600101808352811415610b3a575b505060206103e060446340c10f19610340523361036052610320516103805261035c60006101e0515af1610d1957600080fd5b601f3d11610d2657600080fd5b6000506103e0506004356103405260243561036052604435610380526102c0516103a0526102e0516103c052610300516103e05261028051610400526102005161032051818183011015610d7957600080fd5b8082019050905061042052337f423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d610100610340a261032051600052600060115560206000f35b635e0d443f8114156110875760043580806000811215610ddb57195b607f1c15610de857600080fd5b90505060243580806000811215610dfb57195b607f1c15610e0857600080fd5b905050610140516101605161018051600658016134ea565b6101a0526101c0526101e0526101805261016052610140526101a080516101405280602001516101605280604001516101805250670de0b6b3a76400006101a0526c0c9f2c9cd04674edea400000006101c0526c0c9f2c9cd04674edea400000006101e05261014060043560038110610e9857600080fd5b60200201516044356101a060043560038110610eb357600080fd5b60200201518082028215828483041417610ecc57600080fd5b80905090509050670de0b6b3a764000080820490509050818183011015610ef257600080fd5b80820190509050610200526101405161016051610180516101a0516101c0516101e051610200516102205160043561024052602435610260526102005161028052610140516102a052610160516102c052610180516102e0526102e0516102c0516102a05161028051610260516102405160065801613b60565b6103405261022052610200526101e0526101c0526101a052610180526101605261014052610340516102205261014060243560038110610fab57600080fd5b60200201516102205180821015610fc157600080fd5b80820390509050600180821015610fd757600080fd5b8082039050905061024052600254610240518082028215828483041417610ffd57600080fd5b809050905090506402540be400808204905090506102605261024051610260518082101561102a57600080fd5b80820390509050670de0b6b3a7640000808202821582848304141761104e57600080fd5b809050905090506101a06024356003811061106857600080fd5b6020020151808061107857600080fd5b82049050905060005260206000f35b633df021248114156118b657601154156110a057600080fd5b6001601155600435808060008112156110b557195b607f1c156110c257600080fd5b905050602435808060008112156110d557195b607f1c156110e257600080fd5b905050600f54156110f257600080fd5b60018060c052602060c020546101405260018160c052602060c02001546101605260028160c052602060c020015461018052506101405161016051610180516101a0516101c0516101e051610140516102005261016051610220526101805161024052610240516102205161020051600658016135f3565b6102a0526102c0526102e0526101e0526101c0526101a0526101805261016052610140526102a080516101a05280602001516101c05280604001516101e05250670de0b6b3a7640000610200526c0c9f2c9cd04674edea40000000610220526c0c9f2c9cd04674edea40000000610240526101a0600435600381106111ee57600080fd5b60200201516044356102006004356003811061120957600080fd5b6020020151808202821582848304141761122257600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561124857600080fd5b80820190509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516004356102a0526024356102c052610260516102e0526101a051610300526101c051610320526101e051610340526103405161032051610300516102e0516102c0516102a05160065801613b60565b6103a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a051610280526101a06024356003811061131957600080fd5b6020020151610280518082101561132f57600080fd5b8082039050905060018082101561134557600080fd5b808203905090506102a0526102a051600254808202821582848304141761136b57600080fd5b809050905090506402540be400808204905090506102c0526102a0516102c0518082101561139857600080fd5b80820390509050670de0b6b3a764000080820282158284830414176113bc57600080fd5b80905090509050610200602435600381106113d657600080fd5b602002015180806113e657600080fd5b8204905090506102a0526064356102a05110151515611469576308c379a06102e052602061030052602e610320527f45786368616e676520726573756c74656420696e20666577657220636f696e73610340527f207468616e206578706563746564000000000000000000000000000000000000610360526103205060846102fcfd5b6102c051600354808202821582848304141761148457600080fd5b809050905090506402540be400808204905090506102e0526102e051670de0b6b3a764000080820282158284830414176114bd57600080fd5b80905090509050610200602435600381106114d757600080fd5b602002015180806114e757600080fd5b8204905090506102e0526101406004356003811061150457600080fd5b602002015160443581818301101561151b57600080fd5b808201905090506004356003811061153257600080fd5b600160c052602060c02001556101406024356003811061155157600080fd5b60200201516102a0518082101561156757600080fd5b808203905090506102e0518082101561157f57600080fd5b808203905090506024356003811061159657600080fd5b600160c052602060c020015560006004610360527f23b872dd00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050336020826103c0010152602081019050306020826103c00101526020810190506044356020826103c0010152602081019050806103c0526103c090508051602001806104808284600060045af161164757600080fd5b50506020610560610480516104a060006004356003811061166757600080fd5b600060c052602060c02001545af161167e57600080fd5b60203d8082111561168f5780611691565b815b90509050610540526105408051602001806103008284600060045af16116b657600080fd5b50506000610300511115611708576103008060200151600082518060209013156116df57600080fd5b80919012156116ed57600080fd5b806020036101000a8204905090509050151561170857600080fd5b60006004610360527fa9059cbb00000000000000000000000000000000000000000000000000000000610380526103606004806020846103c001018260208501600060045af1505080518201915050336020826103c00101526020810190506102a0516020826103c0010152602081019050806103c0526103c090508051602001806104608284600060045af161179e57600080fd5b50506020610520610460516104806000602435600381106117be57600080fd5b600060c052602060c02001545af16117d557600080fd5b60203d808211156117e657806117e8565b815b90509050610500526105008051602001806103008284600060045af161180d57600080fd5b5050600061030051111561185f5761030080602001516000825180602090131561183657600080fd5b809190121561184457600080fd5b806020036101000a8204905090509050151561185f57600080fd5b60043561036052604435610380526024356103a0526102a0516103c052337f8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd971406080610360a26102a051600052600060115560206000f35b63ecb586a5811415611c8857601154156118cf57600080fd5b60016011556005546101405260206101e060046318160ddd6101805261019c610140515afa6118fd57600080fd5b601f3d1161190a57600080fd5b6000506101e05161016052606036610180376101e060006003818352015b6101e0516003811061193957600080fd5b600160c052602060c02001546102005261020051600435808202821582848304141761196457600080fd5b8090509050905061016051808061197a57600080fd5b8204905090506102205260246101e0516003811061199757600080fd5b60200201356102205110151515611a12576308c379a0610240526020610260526030610280527f5769746864726177616c20726573756c74656420696e20666577657220636f696102a0527f6e73207468616e206578706563746564000000000000000000000000000000006102c05261028050608461025cfd5b610200516102205180821015611a2757600080fd5b808203905090506101e05160038110611a3f57600080fd5b600160c052602060c0200155610220516101806101e05160038110611a6357600080fd5b6020020152600060046102a0527fa9059cbb000000000000000000000000000000000000000000000000000000006102c0526102a060048060208461030001018260208501600060045af15050805182019150503360208261030001015260208101905061022051602082610300010152602081019050806103005261030090508051602001806103a08284600060045af1611afe57600080fd5b505060206104606103a0516103c060006101e05160038110611b1f57600080fd5b600060c052602060c02001545af1611b3657600080fd5b60203d80821115611b475780611b49565b815b90509050610440526104408051602001806102408284600060045af1611b6e57600080fd5b50506000610240511115611bc057610240806020015160008251806020901315611b9757600080fd5b8091901215611ba557600080fd5b806020036101000a82049050905090501515611bc057600080fd5b8151600101808352811415611928575b5050602061028060446379cc67906101e0523361020052600435610220526101fc6000610140515af1611c0257600080fd5b601f3d11611c0f57600080fd5b60005061028050610180516101e0526101a051610200526101c05161022052606036610240376101605160043580821015611c4957600080fd5b808203905090506102a052337fa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d60e06101e0a260006011556060610180f35b639fdaea0c8114156125015760115415611ca157600080fd5b6001601155600f5415611cb357600080fd5b6101405160065801613352565b6101605261014052610160516101405260018060c052602060c020546101605260018160c052602060c02001546101805260028160c052602060c02001546101a052506101405161016051610180516101a0516101c051610160516101e05261018051610200526101a0516102205261014051610240526102405161022051610200516101e05160065801613a02565b6102a0526101c0526101a0526101805261016052610140526102a0516101c052610160516101e05261018051610200526101a0516102205261024060006003818352015b6101e06102405160038110611da857600080fd5b60200201805160046102405160038110611dc157600080fd5b602002013580821015611dd357600080fd5b808203905090508152505b8151600101808352811415611d94575b50506101405161016051610180516101a0516101c0516101e0516102005161022051610240516101e051610260526102005161028052610220516102a052610140516102c0526102c0516102a051610280516102605160065801613a02565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516102405260025460038082028215828483041417611e9657600080fd5b8090509050905060088082049050905061026052600354610280526060366102a03761030060006003818352015b6101e06103005160038110611ed857600080fd5b602002015161032052610240516101606103005160038110611ef957600080fd5b60200201518082028215828483041417611f1257600080fd5b809050905090506101c0518080611f2857600080fd5b8204905090506103405260006103605261032051610340511115611f6b57610340516103205180821015611f5b57600080fd5b8082039050905061036052611f8c565b610320516103405180821015611f8057600080fd5b80820390509050610360525b61026051610360518082028215828483041417611fa857600080fd5b809050905090506402540be400808204905090506102a06103005160038110611fd057600080fd5b6020020152610320516102a06103005160038110611fed57600080fd5b602002015161028051808202821582848304141761200a57600080fd5b809050905090506402540be400808204905090508082101561202b57600080fd5b80820390509050610300516003811061204357600080fd5b600160c052602060c0200155610320516102a0610300516003811061206757600080fd5b60200201518082101561207957600080fd5b808203905090506101e0610300516003811061209457600080fd5b60200201525b8151600101808352811415611ec4575b50506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e051610300516101e051610320526102005161034052610220516103605261014051610380526103805161036051610340516103205160065801613a02565b6103e052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103e051610300526005546103205260206103c060046318160ddd6103605261037c610320515afa61219257600080fd5b601f3d1161219f57600080fd5b6000506103c051610340526101c05161030051808210156121bf57600080fd5b808203905090506103405180820282158284830414176121de57600080fd5b809050905090506101c05180806121f457600080fd5b820490509050610360526000610360511861220e57600080fd5b6103608051600181818301101561222457600080fd5b808201905090508152506064356103605111151515612282576308c379a06103805260206103a05260146103c0527f536c697070616765207363726577656420796f750000000000000000000000006103e0526103c050606461039cfd5b602061042060446379cc679061038052336103a052610360516103c05261039c6000610320515af16122b357600080fd5b601f3d116122c057600080fd5b6000506104205061038060006003818352015b6000600461038051600381106122e857600080fd5b6020020135181561245f5760006004610400527fa9059cbb000000000000000000000000000000000000000000000000000000006104205261040060048060208461046001018260208501600060045af1505080518201915050336020826104600101526020810190506004610380516003811061236557600080fd5b6020020135602082610460010152602081019050806104605261046090508051602001806105008284600060045af161239d57600080fd5b505060206105c061050051610520600061038051600381106123be57600080fd5b600060c052602060c02001545af16123d557600080fd5b60203d808211156123e657806123e8565b815b905090506105a0526105a08051602001806103a08284600060045af161240d57600080fd5b505060006103a051111561245f576103a080602001516000825180602090131561243657600080fd5b809190121561244457600080fd5b806020036101000a8204905090509050151561245f57600080fd5b81516001018083528114156122d3575b5050600435610380526024356103a0526044356103c0526102a0516103e0526102c051610400526102e0516104205261024051610440526103405161036051808210156124bb57600080fd5b8082039050905061046052337f173599dbf9c6ca6f7c3b590df07ae98a45d74ff54065505141e7de6c46a624c2610100610380a261036051600052600060115560206000f35b63cc2b27d7811415612595576024358080600081121561251d57195b607f1c1561252a57600080fd5b9050506004356101405260243561016052610160516101405160065801614358565b6101c0526101e052610200526101c08080808051610220525050602081019050808080516102405250506020810190508080805161026052505050506102205160005260206000f35b631a4d01d281141561294957601154156125ae57600080fd5b6001601155602435808060008112156125c357195b607f1c156125d057600080fd5b905050600f54156125e057600080fd5b606036610140376101405161016051610180516004356101a0526024356101c0526101c0516101a05160065801614358565b6102205261024052610260526101805261016052610140526102208080808051610280525050602081019050808080516102a0525050602081019050808080516102c052505050506102808051610140528060200151610160528060400151610180525060443561014051101515156126ca576308c379a06101a05260206101c05260186101e0527f4e6f7420656e6f75676820636f696e732072656d6f7665640000000000000000610200526101e05060646101bcfd5b602435600381106126da57600080fd5b600160c052602060c0200180546101405161016051600354808202821582848304141761270657600080fd5b809050905090506402540be4008082049050905081818301101561272957600080fd5b808201905090508082101561273d57600080fd5b80820390509050815550602061024060446379cc67906101a052336101c0526004356101e0526101bc60006005545af161277657600080fd5b601f3d1161278357600080fd5b6000506102405060006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061014051602082610260010152602081019050806102605261026090508051602001806103008284600060045af161282057600080fd5b505060206103c06103005161032060006024356003811061284057600080fd5b600060c052602060c02001545af161285757600080fd5b60203d80821115612868578061286a565b815b905090506103a0526103a08051602001806101a08284600060045af161288f57600080fd5b505060006101a05111156128e1576101a08060200151600082518060209013156128b857600080fd5b80919012156128c657600080fd5b806020036101000a820490509050905015156128e157600080fd5b600435610200526101405161022052610180516004358082101561290457600080fd5b8082039050905061024052337f5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a06060610200a261014051600052600060115560206000f35b633c157e64811415612aea57600454331461296357600080fd5b6008546201518081818301101561297957600080fd5b8082019050905042101561298c57600080fd5b42620151808181830110156129a057600080fd5b8082019050905060243510156129b557600080fd5b6101405160065801613352565b61016052610140526101605161014052600435606480820282158284830414176129eb57600080fd5b809050905090506101605260006004351115612a0e57620f424060043510612a11565b60005b612a1a57600080fd5b61014051610160511015612a5d576101405161016051600a8082028215828483041417612a4657600080fd5b809050905090501015612a5857600080fd5b612a8d565b61014051600a8082028215828483041417612a7757600080fd5b80905090509050610160511115612a8d57600080fd5b6101405160065561016051600755426008556024356009556101405161018052610160516101a052426101c0526024356101e0527fa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c2546080610180a1005b63551a6588811415612b6d576004543314612b0457600080fd5b6101405160065801613352565b6101605261014052610160516101405261014051600655610140516007554260085542600955610140516101605242610180527f46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc2019386040610160a1005b635b5a1467811415612c29576004543314612b8757600080fd5b600a5415612b9457600080fd5b64012a05f2006004351115612ba857600080fd5b6402540be4006024351115612bbc57600080fd5b426203f480818183011015612bd057600080fd5b808201905090506101405261014051600a55600435600c55602435600d556004356101605260243561018052610140517f351fc5da2fbf480f2225debf3664a4bc90fa9923743aad58b4603f648e931fe06040610160a2005b634f12fe97811415612cbb576004543314612c4357600080fd5b600a54421015612c5257600080fd5b6000600a5418612c6157600080fd5b6000600a55600c5461014052600d546101605261014051600255610160516003556101405161018052610160516101a0527fbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d16040610180a1005b63226840fb811415612cdc576004543314612cd557600080fd5b6000600a55005b636b441a40811415612d6e5760043560a01c15612cf857600080fd5b6004543314612d0657600080fd5b600b5415612d1357600080fd5b426203f480818183011015612d2757600080fd5b808201905090506101405261014051600b55600435600e55600435610140517f181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb93560006000a3005b636a1c05ae811415612de5576004543314612d8857600080fd5b600b54421015612d9757600080fd5b6000600b5418612da657600080fd5b6000600b55600e546101405261014051600455610140517f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60006000a2005b6386fbf193811415612e06576004543314612dff57600080fd5b6000600b55005b63e2e7d264811415612e9e5760206101c060246370a0823161014052306101605261015c60043560038110612e3a57600080fd5b600060c052602060c02001545afa612e5157600080fd5b601f3d11612e5e57600080fd5b6000506101c05160043560038110612e7557600080fd5b600160c052602060c020015480821015612e8e57600080fd5b8082039050905060005260206000f35b6330c540858114156130b4576004543314612eb857600080fd5b61014060006003818352015b6101405160038110612ed557600080fd5b600060c052602060c020015461016052602061022060246370a082316101a052306101c0526101bc610160515afa612f0c57600080fd5b601f3d11612f1957600080fd5b600050610220516101405160038110612f3157600080fd5b600160c052602060c020015480821015612f4a57600080fd5b808203905090506101805260006101805111156130a05760006004610200527fa9059cbb000000000000000000000000000000000000000000000000000000006102205261020060048060208461026001018260208501600060045af15050805182019150503360208261026001015260208101905061018051602082610260010152602081019050806102605261026090508051602001806103008284600060045af1612ff757600080fd5b505060206103c0610300516103206000610160515af161301657600080fd5b60203d808211156130275780613029565b815b905090506103a0526103a08051602001806101a08284600060045af161304e57600080fd5b505060006101a05111156130a0576101a080602001516000825180602090131561307757600080fd5b809190121561308557600080fd5b806020036101000a820490509050905015156130a057600080fd5b8151600101808352811415612ec4575b5050005b63524c39018114156131605760045433146130ce57600080fd5b61014060006003818352015b60206101e060246370a0823161016052306101805261017c610140516003811061310357600080fd5b600060c052602060c02001545afa61311a57600080fd5b601f3d1161312757600080fd5b6000506101e051610140516003811061313f57600080fd5b600160c052602060c02001555b81516001018083528114156130da575b5050005b63e369885381141561318f57600454331461317a57600080fd5b426010541161318857600080fd5b6001600f55005b633046f9728114156131b05760045433146131a957600080fd5b6000600f55005b63c66106578114156131e157600435600381106131cc57600080fd5b600060c052602060c020015460005260206000f35b634903b0d181141561321257600435600381106131fd57600080fd5b600160c052602060c020015460005260206000f35b63ddca3f4381141561322a5760025460005260206000f35b63fee3f7f98114156132425760035460005260206000f35b638da5cb5b81141561325a5760045460005260206000f35b6382c630668114156132725760055460005260206000f35b635409491a81141561328a5760065460005260206000f35b63b4b577ad8114156132a25760075460005260206000f35b632081066c8114156132ba5760085460005260206000f35b63140522888114156132d25760095460005260206000f35b63405e28f88114156132ea57600a5460005260206000f35b63e0a0b58681141561330257600b5460005260206000f35b6358680d0b81141561331a57600c5460005260206000f35b63e382446281141561333257600d5460005260206000f35b631ec0cdc181141561334a57600e5460005260206000f35b505b60006000fd5b610140526009546101605260075461018052610160514210156134d8576006546101a0526008546101c0526101a051610180511115613432576101a051610180516101a051808210156133a457600080fd5b80820390509050426101c051808210156133bd57600080fd5b8082039050905080820282158284830414176133d857600080fd5b80905090509050610160516101c051808210156133f457600080fd5b80820390509050808061340657600080fd5b82049050905081818301101561341b57600080fd5b8082019050905060005260005161014051566134d3565b6101a0516101a051610180518082101561344b57600080fd5b80820390509050426101c0518082101561346457600080fd5b80820390509050808202821582848304141761347f57600080fd5b80905090509050610160516101c0518082101561349b57600080fd5b8082039050905080806134ad57600080fd5b820490509050808210156134c057600080fd5b8082039050905060005260005161014051565b6134e8565b6101805160005260005161014051565b005b61014052670de0b6b3a7640000610160526c0c9f2c9cd04674edea40000000610180526c0c9f2c9cd04674edea400000006101a0526101c060006003818352015b6101606101c0516003811061353f57600080fd5b60200201516101c0516003811061355557600080fd5b600160c052602060c0200154808202821582848304141761357557600080fd5b80905090509050670de0b6b3a7640000808204905090506101606101c051600381106135a057600080fd5b60200201525b815160010180835281141561352b575b505060606101c0525b60006101c0511115156135d1576135ed565b60206101c05103610160015160206101c051036101c0526135bf565b61014051565b6101a052610140526101605261018052670de0b6b3a76400006101c0526c0c9f2c9cd04674edea400000006101e0526c0c9f2c9cd04674edea400000006102005261022060006003818352015b6101c0610220516003811061365457600080fd5b6020020151610140610220516003811061366d57600080fd5b6020020151808202821582848304141761368657600080fd5b80905090509050670de0b6b3a7640000808204905090506101c061022051600381106136b157600080fd5b60200201525b8151600101808352811415613640575b50506060610220525b6000610220511115156136e2576136fe565b602061022051036101c0015160206102205103610220526136d0565b6101a051565b6101c0526101405261016052610180526101a0526040366101e03761024060006003818352015b602061024051026101400151610220526101e080516102205181818301101561375357600080fd5b808201905090508152505b815160010180835281141561372b575b50506101e05115156137885760006000526000516101c051565b6101e051610220526101a051600380820282158284830414176137aa57600080fd5b8090509050905061024052610260600060ff818352015b61022051610280526102c060006003818352015b60206102c0510261014001516102a0526102805161022051808202821582848304141761380157600080fd5b809050905090506102a0516003808202821582848304141761382257600080fd5b80905090509050808061383457600080fd5b820490509050610280525b81516001018083528114156137d5575b50506102205161020052610240516101e051808202821582848304141761387557600080fd5b80905090509050606480820490509050610280516003808202821582848304141761389f57600080fd5b809050905090508181830110156138b557600080fd5b808201905090506102205180820282158284830414176138d457600080fd5b80905090509050610240516064808210156138ee57600080fd5b8082039050905061022051808202821582848304141761390d57600080fd5b80905090509050606480820490509050600461028051808202821582848304141761393757600080fd5b8090509050905081818301101561394d57600080fd5b80820190509050808061395f57600080fd5b82049050905061022052610200516102205111156139b357600161022051610200518082101561398e57600080fd5b808203905090501115156139ae576102205160005250506000516101c051565b6139ea565b60016102005161022051808210156139ca57600080fd5b808203905090501115156139ea576102205160005250506000516101c051565b81516001018083528114156137c1575b505060006000fd5b6101c0526101405261016052610180526101a0526101405161016051610180516101a0516101c051610140516101e0526101605161020052610180516102205261022051610200516101e051600658016135f3565b610280526102a0526102c0526101c0526101a05261018052610160526101405261028080516102e052806020015161030052806040015161032052506101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a0516102c0516102e05161030051610320516102e05161034052610300516103605261032051610380526101a0516103a0526103a05161038051610360516103405160065801613704565b6104005261032052610300526102e0526102c0526102a05261028052610260526102405261022052610200526101e0526101c0526101a052610180526101605261014052610400516000526000516101c051565b610200526101405261016052610180526101a0526101c0526101e052610160516101405118613b8e57600080fd5b6000610160511215613b9f57600080fd5b60036101605112613baf57600080fd5b6000610140511215613bc057600080fd5b60036101405112613bd057600080fd5b6101405161016051610180516101a0516101c0516101e051610200516102205160065801613352565b6102405261022052610200526101e0526101c0526101a05261018052610160526101405261024051610220526101405161016051610180516101a0516101c0516101e0516102005161022051610240516101a051610260526101c051610280526101e0516102a052610220516102c0526102c0516102a051610280516102605160065801613704565b610320526102405261022052610200526101e0526101c0526101a05261018052610160526101405261032051610240526102205160038082028215828483041417613ccc57600080fd5b809050905090506102605261024051610280526060366102a03761030060006003818352015b61014051610300511415613d0d57610180516102c052613d42565b61016051610300511815613d3d576101a06103005160038110613d2f57600080fd5b60200201516102c052613d42565b613dbe565b6102a080516102c051818183011015613d5a57600080fd5b8082019050905081525061028051610240518082028215828483041417613d8057600080fd5b809050905090506102c05160038082028215828483041417613da157600080fd5b809050905090508080613db357600080fd5b820490509050610280525b8151600101808352811415613cf2575b505061028051610240518082028215828483041417613dec57600080fd5b8090509050905060648082028215828483041417613e0957600080fd5b809050905090506102605160038082028215828483041417613e2a57600080fd5b809050905090508080613e3c57600080fd5b820490509050610280526102a0516102405160648082028215828483041417613e6457600080fd5b80905090509050610260518080613e7a57600080fd5b820490509050818183011015613e8f57600080fd5b80820190509050610300526102405161032052610340600060ff818352015b610320516102e05261032051610320518082028215828483041417613ed257600080fd5b8090509050905061028051818183011015613eec57600080fd5b808201905090506002610320518082028215828483041417613f0d57600080fd5b8090509050905061030051818183011015613f2757600080fd5b808201905090506102405180821015613f3f57600080fd5b808203905090508080613f5157600080fd5b820490509050610320526102e051610320511115613fa5576001610320516102e05180821015613f8057600080fd5b80820390509050111515613fa05761032051600052505060005161020051565b613fdc565b60016102e0516103205180821015613fbc57600080fd5b80820390509050111515613fdc5761032051600052505060005161020051565b8151600101808352811415613eae575b505060006000fd5b610200526101405261016052610180526101a0526101c0526101e052600061016051121561402157600080fd5b6003610160511261403157600080fd5b610140516003808202821582848304141761404b57600080fd5b80905090509050610220526101e05161024052606036610260376102c060006003818352015b610160516102c05118156140a1576101806102c0516003811061409357600080fd5b6020020151610280526140a6565b614122565b6102608051610280518181830110156140be57600080fd5b80820190509050815250610240516101e05180820282158284830414176140e457600080fd5b80905090509050610280516003808202821582848304141761410557600080fd5b80905090509050808061411757600080fd5b820490509050610240525b8151600101808352811415614071575b5050610240516101e051808202821582848304141761415057600080fd5b809050905090506064808202821582848304141761416d57600080fd5b80905090509050610220516003808202821582848304141761418e57600080fd5b8090509050905080806141a057600080fd5b82049050905061024052610260516101e051606480820282158284830414176141c857600080fd5b809050905090506102205180806141de57600080fd5b8204905090508181830110156141f357600080fd5b808201905090506102c0526101e0516102e052610300600060ff818352015b6102e0516102a0526102e0516102e051808202821582848304141761423657600080fd5b809050905090506102405181818301101561425057600080fd5b8082019050905060026102e051808202821582848304141761427157600080fd5b809050905090506102c05181818301101561428b57600080fd5b808201905090506101e051808210156142a357600080fd5b8082039050905080806142b557600080fd5b8204905090506102e0526102a0516102e05111156143095760016102e0516102a051808210156142e457600080fd5b80820390509050111515614304576102e051600052505060005161020051565b614340565b60016102a0516102e0518082101561432057600080fd5b80820390509050111515614340576102e051600052505060005161020051565b8151600101808352811415614212575b505060006000fd5b6101805261014052610160526101405161016051610180516101a05160065801613352565b6101c0526101a0526101805261016052610140526101c0516101a0526101405161016051610180516101a0516101c0516101e05161020051600658016134ea565b610220526102405261026052610200526101e0526101c0526101a05261018052610160526101405261022080516101c05280602001516101e052806040015161020052506101405161016051610180516101a0516101c0516101e05161020051610220516101c051610240526101e0516102605261020051610280526101a0516102a0526102a05161028051610260516102405160065801613704565b6103005261022052610200526101e0526101c0526101a052610180526101605261014052610300516102205260206102c060046318160ddd6102605261027c6005545afa6144a857600080fd5b601f3d116144b557600080fd5b6000506102c0516102405261022051610140516102205180820282158284830414176144e057600080fd5b809050905090506102405180806144f657600080fd5b8204905090508082101561450957600080fd5b80820390509050610260526101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516101a0516102a052610160516102c0526101c0516102e0526101e05161030052610200516103205261026051610340526103405161032051610300516102e0516102c0516102a05160065801613ff4565b6103a05261028052610260526102405261022052610200526101e0526101c0526101a0526101805261016052610140526103a051610280526101c0516102a0526101e0516102c052610200516102e052600254600380820282158284830414176145fa57600080fd5b809050905090506008808204905090506103005261032060006003818352015b6000610340526101605161032051141561469c576101c0610320516003811061464257600080fd5b602002015161026051808202821582848304141761465f57600080fd5b8090509050905061022051808061467557600080fd5b820490509050610280518082101561468c57600080fd5b808203905090506103405261471b565b6101c061032051600381106146b057600080fd5b60200201516101c061032051600381106146c957600080fd5b60200201516102605180820282158284830414176146e657600080fd5b809050905090506102205180806146fc57600080fd5b8204905090508082101561470f57600080fd5b80820390509050610340525b6102a0610320516003811061472f57600080fd5b6020020180516103005161034051808202821582848304141761475157600080fd5b809050905090506402540be400808204905090508082101561477257600080fd5b808203905090508152505b815160010180835281141561461a575b50506102a061016051600381106147a357600080fd5b6020020151610140610340525b610340515160206103405101610340526103406103405110156147d2576147b0565b6101a0516103605261016051610380526102a0516103a0526102c0516103c0526102e0516103e0526102605161040052610400516103e0516103c0516103a051610380516103605160065801613ff4565b61046052610320610340525b61034051526020610340510361034052610140610340511015156148525761482f565b610460518082101561486357600080fd5b808203905090506103205260016103405264e8d4a510006103605264e8d4a51000610380526103205160018082101561489b57600080fd5b8082039050905061034061016051600381106148b657600080fd5b602002015180806148c657600080fd5b820490509050610320526101c061016051600381106148e457600080fd5b602002015161028051808210156148fa57600080fd5b80820390509050610340610160516003811061491557600080fd5b6020020151808061492557600080fd5b8204905090506103a0526104206103205181526103a051610320518082101561494d57600080fd5b808203905090508160200152610240518160400152506060610480525b60006104805111151561497c57614998565b602061048051036104200151602061048051036104805261496a565b6101805156
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d000000000000000000000000ddafbb505ad214d7b80b1f830fccc89b60fb7a830000000000000000000000004ecaba5870353805a9f068101a40e0f32ed605c60000000000000000000000001337bedc9d22ecbe766df105c9623922a27963ec00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000003d0900000000000000000000000000000000000000000000000000000000012a05f200
-----Decoded View---------------
Arg [0] : _owner (address): 0x7EeAC6CDdbd1D0B8aF061742D41877D7F707289a
Arg [1] : _coins (address[3]): 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d,0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83,0x4ECaBa5870353805a9F068101A40E0f32ed605C6
Arg [2] : _pool_token (address): 0x1337BedC9D22ecbe766dF105c9623922A27963EC
Arg [3] : _A (uint256): 1000
Arg [4] : _fee (uint256): 4000000
Arg [5] : _admin_fee (uint256): 5000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000007eeac6cddbd1d0b8af061742d41877d7f707289a
Arg [1] : 000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d
Arg [2] : 000000000000000000000000ddafbb505ad214d7b80b1f830fccc89b60fb7a83
Arg [3] : 0000000000000000000000004ecaba5870353805a9f068101a40e0f32ed605c6
Arg [4] : 0000000000000000000000001337bedc9d22ecbe766df105c9623922a27963ec
Arg [5] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [6] : 00000000000000000000000000000000000000000000000000000000003d0900
Arg [7] : 000000000000000000000000000000000000000000000000000000012a05f200
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ARB | 40.26% | $0.999962 | 2,290,648.4037 | $2,290,561.36 | |
ARB | 31.87% | $1 | 1,813,413.2513 | $1,813,413.25 | |
GNO | 10.67% | $0.999962 | 607,030.0246 | $607,006.96 | |
GNO | 10.18% | $1 | 579,044.463 | $579,236.34 | |
GNO | 7.01% | $1 | 399,059.9861 | $399,059.99 | |
GNO | <0.01% | $0.00365 | 100 | $0.365 | |
ETH | <0.01% | $1.04 | 2.9937 | $3.11 | |
ETH | <0.01% | $0.999399 | 3.02 | $3.02 |
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.