Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x612e2361 | 8540353 | 355 days ago | IN | 0 ETH | 0.00603743 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CurveStableSwapNGViews
Compiler Version
vyper:0.3.10
Contract Source Code (Vyper language format)
# pragma version 0.3.10 # pragma evm-version paris """ @title CurveStableSwapNGViews @author Curve.Fi @license Copyright (c) Curve.Fi, 2020-2023 - all rights reserved @notice Auxiliary contract for Stableswap-NG containing utility methods for integrators """ interface StableSwapNG: def N_COINS() -> uint256: view def BASE_POOL() -> address: view def BASE_N_COINS() -> uint256: view def stored_rates() -> DynArray[uint256, MAX_COINS]: view def balances(i: uint256) -> uint256: view def get_balances() -> DynArray[uint256, MAX_COINS]: view def fee() -> uint256: view def get_dy(i: int128, j: int128, dx: uint256) -> uint256: view def A() -> uint256: view def calc_withdraw_one_coin(_token_amount: uint256, i: int128) -> uint256: view def totalSupply() -> uint256: view def calc_token_amount(amounts: DynArray[uint256, MAX_COINS], deposit: bool) -> uint256: view def offpeg_fee_multiplier() -> uint256: view interface StableSwap2: def calc_token_amount(amounts: uint256[2], deposit: bool) -> uint256: view interface StableSwap3: def calc_token_amount(amounts: uint256[3], deposit: bool) -> uint256: view A_PRECISION: constant(uint256) = 100 MAX_COINS: constant(uint256) = 8 PRECISION: constant(uint256) = 10 ** 18 FEE_DENOMINATOR: constant(uint256) = 10 ** 10 # ------------------------------ Public Getters ------------------------------ @view @external def get_dx(i: int128, j: int128, dy: uint256, pool: address) -> uint256: """ @notice Calculate the current input dx given output dy @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 dy Amount of `j` being received after exchange @return Amount of `i` predicted """ N_COINS: uint256 = StableSwapNG(pool).N_COINS() return self._get_dx(i, j, dy, pool, False, N_COINS) @view @external def get_dy(i: int128, j: int128, dx: uint256, pool: address) -> uint256: """ @notice Calculate the current output dy given input dx @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param dx Amount of `i` being exchanged @return Amount of `j` predicted """ N_COINS: uint256 = StableSwapNG(pool).N_COINS() rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, balances, xp = self._get_rates_balances_xp(pool, N_COINS) amp: uint256 = StableSwapNG(pool).A() * A_PRECISION D: uint256 = self.get_D(xp, amp, N_COINS) x: uint256 = xp[i] + (dx * rates[i] / PRECISION) y: uint256 = self.get_y(i, j, x, xp, amp, D, N_COINS) dy: uint256 = xp[j] - y - 1 base_fee: uint256 = StableSwapNG(pool).fee() fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() fee: uint256 = self._dynamic_fee((xp[i] + x) / 2, (xp[j] + y) / 2, base_fee, fee_multiplier) * dy / FEE_DENOMINATOR return (dy - fee) * PRECISION / rates[j] @view @external def get_dx_underlying( i: int128, j: int128, dy: uint256, pool: address, ) -> uint256: BASE_POOL: address = StableSwapNG(pool).BASE_POOL() BASE_N_COINS: uint256 = StableSwapNG(pool).BASE_N_COINS() N_COINS: uint256 = StableSwapNG(pool).N_COINS() base_pool_has_static_fee: bool = self._has_static_fee(BASE_POOL) # CASE 1: Swap does not involve Metapool at all. In this case, we kindly as the user # to use the right pool for their swaps. if min(i, j) > 0: raise "Not a Metapool Swap. Use Base pool." # CASE 2: # 1. meta token_0 of (unknown amount) > base pool lp_token # 2. base pool lp_token > calc_withdraw_one_coin gives dy amount of (j-1)th base coin # So, need to do the following calculations: # 1. calc_token_amounts on base pool for depositing liquidity on (j-1)th token > lp_tokens. # 2. get_dx on metapool for i = 0, and j = 1 (base lp token) with amt calculated in (1). if i == 0: # Calculate LP tokens that are burnt to receive dy amount of base_j tokens. lp_amount_burnt: uint256 = self._base_calc_token_amount( dy, j - 1, BASE_N_COINS, BASE_POOL, False ) return self._get_dx(0, 1, lp_amount_burnt, pool, False, N_COINS) # CASE 3: Swap in token i-1 from base pool and swap out dy amount of token 0 (j) from metapool. # 1. deposit i-1 token from base pool > receive base pool lp_token # 2. swap base pool lp token > 0th token of the metapool # So, need to do the following calculations: # 1. get_dx on metapool with i = 0, j = 1 > gives how many base lp tokens are required for receiving # dy amounts of i-1 tokens from the metapool # 2. We have number of lp tokens: how many i-1 base pool coins are needed to mint that many tokens? # We don't have a method where user inputs lp tokens and it gives number of coins of (i-1)th token # is needed to mint that many base_lp_tokens. Instead, we will use calc_withdraw_one_coin. That's # close enough. lp_amount_required: uint256 = self._get_dx(1, 0, dy, pool, False, N_COINS) return StableSwapNG(BASE_POOL).calc_withdraw_one_coin(lp_amount_required, i-1) @view @external def get_dy_underlying( i: int128, j: int128, dx: uint256, pool: address, ) -> uint256: """ @notice Calculate the current output dy given input dx on underlying @dev Index values can be found via the `coins` public getter method @param i Index value for the coin to send @param j Index valie of the coin to recieve @param dx Amount of `i` being exchanged @return Amount of `j` predicted """ N_COINS: uint256 = StableSwapNG(pool).N_COINS() MAX_COIN: int128 = convert(N_COINS, int128) - 1 BASE_POOL: address = StableSwapNG(pool).BASE_POOL() rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, balances, xp = self._get_rates_balances_xp(pool, N_COINS) x: uint256 = 0 base_i: int128 = 0 base_j: int128 = 0 meta_i: int128 = 0 meta_j: int128 = 0 if i != 0: base_i = i - MAX_COIN meta_i = 1 if j != 0: base_j = j - MAX_COIN meta_j = 1 if i == 0: x = xp[i] + dx * rates[0] / 10**18 else: if j == 0: # i is from BasePool base_n_coins: uint256 = StableSwapNG(pool).BASE_N_COINS() x = self._base_calc_token_amount( dx, base_i, base_n_coins, BASE_POOL, True ) * rates[1] / PRECISION # Adding number of pool tokens x += xp[1] else: # If both are from the base pool return StableSwapNG(BASE_POOL).get_dy(base_i, base_j, dx) # This pool is involved only when in-pool assets are used amp: uint256 = StableSwapNG(pool).A() * A_PRECISION D: uint256 = self.get_D(xp, amp, N_COINS) y: uint256 = self.get_y(meta_i, meta_j, x, xp, amp, D, N_COINS) dy: uint256 = xp[meta_j] - y - 1 # calculate output after subtracting dynamic fee base_fee: uint256 = StableSwapNG(pool).fee() fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() dynamic_fee: uint256 = self._dynamic_fee((xp[meta_i] + x) / 2, (xp[meta_j] + y) / 2, base_fee, fee_multiplier) dy = (dy - dynamic_fee * dy / FEE_DENOMINATOR) # If output is going via the metapool if j == 0: dy = dy * 10**18 / rates[0] else: # j is from BasePool # The fee is already accounted for dy = StableSwapNG(BASE_POOL).calc_withdraw_one_coin(dy * PRECISION / rates[1], base_j) return dy @view @external def calc_token_amount( _amounts: DynArray[uint256, MAX_COINS], _is_deposit: bool, pool: address ) -> uint256: """ @notice Calculate addition or reduction in token supply from a deposit or withdrawal @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 = StableSwapNG(pool).A() * A_PRECISION N_COINS: uint256 = StableSwapNG(pool).N_COINS() rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) old_balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, old_balances, xp = self._get_rates_balances_xp(pool, N_COINS) # Initial invariant D0: uint256 = self.get_D(xp, amp, N_COINS) total_supply: uint256 = StableSwapNG(pool).totalSupply() new_balances: DynArray[uint256, MAX_COINS] = old_balances for i in range(MAX_COINS): if i == N_COINS: break amount: uint256 = _amounts[i] if _is_deposit: new_balances[i] += amount else: new_balances[i] -= amount # Invariant after change for idx in range(MAX_COINS): if idx == N_COINS: break xp[idx] = rates[idx] * new_balances[idx] / PRECISION D1: uint256 = self.get_D(xp, amp, N_COINS) # We need to recalculate the invariant accounting for fees # to calculate fair user's share D2: uint256 = D1 if total_supply > 0: # Only account for fees if we are not the first to deposit base_fee: uint256 = StableSwapNG(pool).fee() * N_COINS / (4 * (N_COINS - 1)) fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() _dynamic_fee_i: uint256 = 0 xs: uint256 = 0 ys: uint256 = (D0 + D1) / N_COINS for i in range(MAX_COINS): if i == N_COINS: break 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 xs = old_balances[i] + new_balance _dynamic_fee_i = self._dynamic_fee(xs, ys, base_fee, fee_multiplier) new_balances[i] -= _dynamic_fee_i * difference / FEE_DENOMINATOR for idx in range(MAX_COINS): if idx == N_COINS: break xp[idx] = rates[idx] * new_balances[idx] / PRECISION D2 = self.get_D(xp, amp, N_COINS) else: return D1 # Take the dust if there was any diff: uint256 = 0 if _is_deposit: diff = D2 - D0 else: diff = D0 - D2 return diff * total_supply / D0 @view @external def calc_withdraw_one_coin(_burn_amount: uint256, i: int128, pool: address) -> uint256: # First, need to calculate # * Get current D # * Solve Eqn against y_i for D - _token_amount amp: uint256 = StableSwapNG(pool).A() * A_PRECISION N_COINS: uint256 = StableSwapNG(pool).N_COINS() rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, balances, xp = self._get_rates_balances_xp(pool, N_COINS) D0: uint256 = self.get_D(xp, amp, N_COINS) total_supply: uint256 = StableSwapNG(pool).totalSupply() D1: uint256 = D0 - _burn_amount * D0 / total_supply new_y: uint256 = self.get_y_D(amp, i, xp, D1, N_COINS) ys: uint256 = (D0 + D1) / (2 * N_COINS) base_fee: uint256 = StableSwapNG(pool).fee() * N_COINS / (4 * (N_COINS - 1)) fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() xp_reduced: DynArray[uint256, MAX_COINS] = xp xp_j: uint256 = 0 xavg: uint256 = 0 dynamic_fee: uint256 = 0 for j in range(MAX_COINS): if j == N_COINS: break dx_expected: uint256 = 0 xp_j = xp[j] if convert(j, int128) == i: dx_expected = xp_j * D1 / D0 - new_y xavg = (xp[j] + new_y) / 2 else: dx_expected = xp_j - xp_j * D1 / D0 xavg = xp[j] dynamic_fee = self._dynamic_fee(xavg, ys, base_fee, fee_multiplier) xp_reduced[j] = xp_j - dynamic_fee * dx_expected / FEE_DENOMINATOR dy: uint256 = xp_reduced[i] - self.get_y_D(amp, i, xp_reduced, D1, N_COINS) dy = (dy - 1) * PRECISION / rates[i] # Withdraw less to account for rounding errors return dy @view @external def dynamic_fee(i: int128, j: int128, pool:address) -> uint256: """ @notice Return the fee for swapping between `i` and `j` @param i Index value for the coin to send @param j Index value of the coin to recieve @return Swap fee expressed as an integer with 1e10 precision """ N_COINS: uint256 = StableSwapNG(pool).N_COINS() fee: uint256 = StableSwapNG(pool).fee() fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, balances, xp = self._get_rates_balances_xp(pool, N_COINS) return self._dynamic_fee(xp[i], xp[j], fee, fee_multiplier) # ----------------------------- Utility Methods ------------------------------ @view @internal def _has_static_fee(pool: address) -> bool: success: bool = False response: Bytes[32] = b"" success, response = raw_call( pool, concat( method_id("dynamic_fee(int128,int128)"), convert(1, bytes32), convert(0, bytes32) ), max_outsize=32, revert_on_failure=False, is_static_call=True ) return success @view @internal def _get_dx( i: int128, j: int128, dy: uint256, pool: address, static_fee: bool, N_COINS: uint256 ) -> uint256: rates: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) balances: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) rates, balances, xp = self._get_rates_balances_xp(pool, N_COINS) amp: uint256 = StableSwapNG(pool).A() * A_PRECISION D: uint256 = self.get_D(xp, amp, N_COINS) base_fee: uint256 = StableSwapNG(pool).fee() dy_with_fee: uint256 = dy * rates[j] / PRECISION + 1 fee: uint256 = base_fee if not static_fee: fee_multiplier: uint256 = StableSwapNG(pool).offpeg_fee_multiplier() fee = self._dynamic_fee(xp[i], xp[j], base_fee, fee_multiplier) y: uint256 = xp[j] - dy_with_fee * FEE_DENOMINATOR / (FEE_DENOMINATOR - fee) x: uint256 = self.get_y(j, i, y, xp, amp, D, N_COINS) return (x - xp[i]) * PRECISION / rates[i] @view @internal def _dynamic_fee(xpi: uint256, xpj: uint256, _fee: uint256, _fee_multiplier: uint256) -> uint256: if _fee_multiplier <= FEE_DENOMINATOR: return _fee xps2: uint256 = (xpi + xpj) ** 2 return ( (_fee_multiplier * _fee) / ((_fee_multiplier - FEE_DENOMINATOR) * 4 * xpi * xpj / xps2 + FEE_DENOMINATOR) ) @internal @view def _base_calc_token_amount( dx: uint256, base_i: int128, base_n_coins: uint256, base_pool: address, is_deposit: bool ) -> uint256: if base_n_coins == 2: base_inputs: uint256[2] = empty(uint256[2]) base_inputs[base_i] = dx return StableSwap2(base_pool).calc_token_amount(base_inputs, is_deposit) elif base_n_coins == 3: base_inputs: uint256[3] = empty(uint256[3]) base_inputs[base_i] = dx return StableSwap3(base_pool).calc_token_amount(base_inputs, is_deposit) else: base_inputs: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) for i in range(base_n_coins, bound=MAX_COINS): if i == convert(base_i, uint256): base_inputs.append(dx) else: base_inputs.append(0) return StableSwapNG(base_pool).calc_token_amount(base_inputs, is_deposit) @internal @pure def newton_y(b: uint256, c: uint256, D: uint256, _y: uint256) -> uint256: y_prev: uint256 = 0 y: uint256 = _y 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 get_y( i: int128, j: int128, x: uint256, xp: DynArray[uint256, MAX_COINS], _amp: uint256, _D: uint256, N_COINS: uint256 ) -> 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 < convert(N_COINS, int128) # dev: j above N_COINS # should be unreachable, but good for safety assert i >= 0 assert i < convert(N_COINS, int128) amp: uint256 = _amp D: uint256 = _D S_: uint256 = 0 _x: uint256 = 0 c: uint256 = D Ann: uint256 = amp * N_COINS for _i in range(MAX_COINS): if _i == N_COINS: break if convert(_i, int128) == i: _x = x elif convert(_i, int128) != 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 return self.newton_y(b, c, D, y) @pure @internal def get_D(_xp: DynArray[uint256, MAX_COINS], _amp: uint256, N_COINS: uint256) -> uint256: """ D invariant calculation in non-overflowing integer operations iteratively A * sum(x_i) * n**n + D = A * D * n**n + D**(n+1) / (n**n * prod(x_i)) Converging solution: D[j+1] = (A * n**n * sum(x_i) - D[j]**(n+1) / (n**n prod(x_i))) / (A * n**n - 1) """ S: uint256 = 0 for i in range(MAX_COINS): if i == N_COINS: break S += _xp[i] 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 D_P /= pow_mod256(N_COINS, N_COINS) Dprev: uint256 = D D = (Ann * S / A_PRECISION + D_P * N_COINS) * D / ((Ann - A_PRECISION) * D / A_PRECISION + (N_COINS + 1) * D_P) # Equality with the precision of 1 if D > Dprev: if D - Dprev <= 1: return D else: if Dprev - D <= 1: return D # convergence typically occurs in 4 rounds or less, this should be unreachable! # if it does happen the pool is borked and LPs can withdraw via `remove_liquidity` raise @pure @internal def get_y_D( A: uint256, i: int128, xp: DynArray[uint256, MAX_COINS], D: uint256, N_COINS: 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 N_COINS_128: int128 = convert(N_COINS, int128) assert i >= 0 # dev: i below zero assert i < N_COINS_128 # dev: i above N_COINS S_: uint256 = 0 _x: uint256 = 0 y_prev: uint256 = 0 c: uint256 = D Ann: uint256 = A * N_COINS for _i in range(MAX_COINS): if _i == N_COINS: break if _i != convert(i, uint256): _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 return self.newton_y(b, c, D, y) @view @internal def _get_rates_balances_xp(pool: address, N_COINS: uint256) -> ( DynArray[uint256, MAX_COINS], DynArray[uint256, MAX_COINS], DynArray[uint256, MAX_COINS], ): rates: DynArray[uint256, MAX_COINS] = StableSwapNG(pool).stored_rates() balances: DynArray[uint256, MAX_COINS] = StableSwapNG(pool).get_balances() xp: DynArray[uint256, MAX_COINS] = empty(DynArray[uint256, MAX_COINS]) for idx in range(MAX_COINS): if idx == N_COINS: break xp.append(rates[idx] * balances[idx] / PRECISION) return rates, balances, xp
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"stateMutability":"view","type":"function","name":"get_dx","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dy","type":"uint256"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dy","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dx_underlying","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dy","type":"uint256"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_dy_underlying","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"dx","type":"uint256"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_token_amount","inputs":[{"name":"_amounts","type":"uint256[]"},{"name":"_is_deposit","type":"bool"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"calc_withdraw_one_coin","inputs":[{"name":"_burn_amount","type":"uint256"},{"name":"i","type":"int128"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"dynamic_fee","inputs":[{"name":"i","type":"int128"},{"name":"j","type":"int128"},{"name":"pool","type":"address"}],"outputs":[{"name":"","type":"uint256"}]}]
Contract Creation Code
612e2361001161000039612e23610000f360003560e01c60026007820660011b612e1501601e39600051565b6383aa796a81186100da57608436103417612e105760043580600f0b8118612e1057610cc05260243580600f0b8118612e1057610ce0526064358060a01c612e1057610d0052610d00516329357750610d40526020610d406004610d5c845afa610089573d600060003e3d6000fd5b60203d10612e1057610d40905051610d20526020610cc05161054052610ce0516105605260443561058052610d00516105a05260006105c052610d20516105e0526100d5610d406125e9565b610d40f35b63c02c60a68118611d5957608436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526064358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa610149573d600060003e3d6000fd5b60203d10612e10576105c09050516105a0526105a05180607f1c612e10576001810380600f0b8118612e105790506105c052610580516371511a5e610600526020610600600461061c845afa6101a4573d600060003e3d6000fd5b60203d10612e1057610600518060a01c612e1057610640526106409050516105e052600061060052600061072052600061084052610580516040526105a0516060526101f1610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa505050505060a03661096037610540511561027757610540516105c05180820380600f0b8118612e1057905090506109805260016109c0525b61056051156102a457610560516105c05180820380600f0b8118612e1057905090506109a05260016109e0525b61054051610311576105405161084051811015612e105760051b61086001516044356106005115612e1057600060051b6106200151808202811583838304141715612e105790509050670de0b6b3a764000081049050808201828110612e10579050905061096052610441565b610560516103ed5761058051633da575a1610a20526020610a206004610a3c845afa610342573d600060003e3d6000fd5b60203d10612e1057610a20905051610a005260443560405261098051606052610a00516080526105e05160a052600160c05261037f610a20612a02565b610a205160026106005110612e1057600160051b6106200151808202811583838304141715612e105790509050670de0b6b3a764000081049050610960526109605160026108405110612e1057600160051b6108600151808201828110612e10579050905061096052610441565b60206105e051635e0d443f610a005261098051610a20526109a051610a4052604435610a60526020610a006064610a1c845afa61042f573d600060003e3d6000fd5b60203d10612e1057610a00905061077b565b6105805163f446c1d0610a20526020610a206004610a3c845afa61046a573d600060003e3d6000fd5b60203d10612e1057610a2090505160648102816064820418612e10579050610a00526108405160208160051b018060408261084060045afa505050610a0051610160526105a051610180526104c0610a40611f37565b610a4051610a20526109c051610120526109e0516101405261096051610160526108405160208160051b01806101808261084060045afa505050610a00516102a052610a20516102c0526105a0516102e05261051d610a606123a6565b610a6051610a40526109e05161084051811015612e105760051b6108600151610a4051808203828111612e10579050905060018103818111612e10579050610a60526105805163ddca3f43610aa0526020610aa06004610abc845afa610588573d600060003e3d6000fd5b60203d10612e1057610aa0905051610a805261058051638edfdd5f610ac0526020610ac06004610adc845afa6105c3573d600060003e3d6000fd5b60203d10612e1057610ac0905051610aa0526109c05161084051811015612e105760051b610860015161096051808201828110612e1057905090508060011c90506040526109e05161084051811015612e105760051b6108600151610a4051808201828110612e1057905090508060011c9050606052610a8051608052610aa05160a052610652610ae06121ba565b610ae051610ac052610a6051610ac051610a6051808202811583838304141715612e1057905090506402540be40081049050808203828111612e105790509050610a6052610560516106e957610a6051670de0b6b3a7640000810281670de0b6b3a7640000820418612e105790506106005115612e1057600060051b61062001518015612e105780820490509050610a6052610775565b6105e05163cc2b27d7610ae052610a6051670de0b6b3a7640000810281670de0b6b3a7640000820418612e1057905060026106005110612e1057600160051b61062001518015612e105780820490509050610b00526109a051610b20526020610ae06044610afc845afa610762573d600060003e3d6000fd5b60203d10612e1057610ae0905051610a60525b6020610a605bf3611d59565b630c601c2c8118611d5957608436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526064358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa6107f0573d600060003e3d6000fd5b60203d10612e10576105c09050516105a05260006105c05260006106e052600061080052610580516040526105a05160605261082d610920611d5f565b610920805160208160051b01806105c0828560045afa5050506101208101805160208160051b01806106e0828560045afa505050506102408101805160208160051b0180610800828560045afa50505050506105805163f446c1d0610940526020610940600461095c845afa6108a8573d600060003e3d6000fd5b60203d10612e105761094090505160648102816064820418612e10579050610920526108005160208160051b018060408261080060045afa50505061092051610160526105a051610180526108fe610960611f37565b61096051610940526105405161080051811015612e105760051b6108200151604435610540516105c051811015612e105760051b6105e00151808202811583838304141715612e105790509050670de0b6b3a764000081049050808201828110612e105790509050610960526105405161012052610560516101405261096051610160526108005160208160051b01806101808261080060045afa505050610920516102a052610940516102c0526105a0516102e0526109bf6109a06123a6565b6109a051610980526105605161080051811015612e105760051b610820015161098051808203828111612e10579050905060018103818111612e105790506109a0526105805163ddca3f436109e05260206109e060046109fc845afa610a2a573d600060003e3d6000fd5b60203d10612e10576109e09050516109c05261058051638edfdd5f610a00526020610a006004610a1c845afa610a65573d600060003e3d6000fd5b60203d10612e1057610a009050516109e0526105405161080051811015612e105760051b610820015161096051808201828110612e1057905090508060011c90506040526105605161080051811015612e105760051b610820015161098051808201828110612e1057905090508060011c90506060526109c0516080526109e05160a052610af4610a206121ba565b610a20516109a051808202811583838304141715612e1057905090506402540be40081049050610a00526109a051610a0051808203828111612e105790509050670de0b6b3a7640000810281670de0b6b3a7640000820418612e10579050610560516105c051811015612e105760051b6105e001518015612e105780820490509050610a20526020610a20f3611d59565b63d6fc10ab8118611d5957608436103417612e105760043580600f0b8118612e1057610cc05260243580600f0b8118612e1057610ce0526064358060a01c612e1057610d0052610d00516371511a5e610d40526020610d406004610d5c845afa610bf4573d600060003e3d6000fd5b60203d10612e1057610d40518060a01c612e1057610d8052610d80905051610d2052610d0051633da575a1610d60526020610d606004610d7c845afa610c3f573d600060003e3d6000fd5b60203d10612e1057610d60905051610d4052610d00516329357750610d80526020610d806004610d9c845afa610c7a573d600060003e3d6000fd5b60203d10612e1057610d80905051610d6052610d2051604052610c9e610da061294f565b610da051610d80526001610cc051610ce0518082811882841202189050905012610d4d576023610da0527f4e6f742061204d657461706f6f6c20537761702e20557365204261736520706f610dc0527f6f6c2e0000000000000000000000000000000000000000000000000000000000610de052610da050610da05180610dc001601f826000031636823750506308c379a0610d60526020610d8052601f19601f610da0510116604401610d7cfd5b610cc051610dd757604435604052610ce0516001810380600f0b8118612e10579050606052610d4051608052610d205160a052600060c052610d90610dc0612a02565b610dc051610da0526020600061054052600161056052610da05161058052610d00516105a05260006105c052610d60516105e052610dcf610dc06125e9565b610dc0610e6c565b60016105405260006105605260443561058052610d00516105a05260006105c052610d60516105e052610e0b610dc06125e9565b610dc051610da0526020610d205163cc2b27d7610dc052610da051610de052610cc0516001810380600f0b8118612e10579050610e00526020610dc06044610ddc845afa610e5e573d600060003e3d6000fd5b60203d10612e1057610dc090505bf3611d59565b63fb79eb2781186115af57608436103417612e10576004356004016008813511612e1057803560208160051b018083610540375050506024358060011c612e1057610660526044358060a01c612e1057610680526106805163f446c1d06106c05260206106c060046106dc845afa610eef573d600060003e3d6000fd5b60203d10612e10576106c090505160648102816064820418612e105790506106a0526106805163293577506106e05260206106e060046106fc845afa610f3a573d600060003e3d6000fd5b60203d10612e10576106e09050516106c05260006106e052600061080052600061092052610680516040526106c051606052610f77610a40611d5f565b610a40805160208160051b01806106e0828560045afa5050506101208101805160208160051b0180610800828560045afa505050506102408101805160208160051b0180610920828560045afa50505050506109205160208160051b018060408261092060045afa5050506106a051610160526106c05161018052610ffd610a60611f37565b610a6051610a4052610680516318160ddd610a80526020610a806004610a9c845afa61102e573d600060003e3d6000fd5b60203d10612e1057610a80905051610a60526108005160208160051b0180610a808261080060045afa50505060006008905b80610ba0526106c051610ba0511861107757611105565b610ba05161054051811015612e105760051b6105600151610bc052610660516110cc57610ba051610a8051811015612e105760051b610aa0018051610bc051808203828111612e1057905090508152506110fa565b610ba051610a8051811015612e105760051b610aa0018051610bc051808201828110612e1057905090508152505b600101818118611060575b505060006008905b80610ba0526106c051610ba0511861112457611195565b610ba0516106e051811015612e105760051b6107000151610ba051610a8051811015612e105760051b610aa00151808202811583838304141715612e105790509050670de0b6b3a764000081049050610ba05161092051811015612e105760051b610940015260010181811861110d575b50506109205160208160051b018060408261092060045afa5050506106a051610160526106c051610180526111cb610bc0611f37565b610bc051610ba052610ba051610bc052610a605115611524576106805163ddca3f43610c00526020610c006004610c1c845afa61120d573d600060003e3d6000fd5b60203d10612e1057610c009050516106c051808202811583838304141715612e1057905090506106c05160018103818111612e105790508060021b818160021c18612e105790508015612e105780820490509050610be05261068051638edfdd5f610c20526020610c206004610c3c845afa61128e573d600060003e3d6000fd5b60203d10612e1057610c20905051610c0052604036610c2037610a4051610ba051808201828110612e1057905090506106c0518015612e105780820490509050610c605260006008905b80610c80526106c051610c8051186112ef57611451565b610ba051610c805161080051811015612e105760051b6108200151808202811583838304141715612e105790509050610a40518015612e105780820490509050610ca0526000610cc052610c8051610a8051811015612e105760051b610aa00151610ce052610ce051610ca0511161138057610ce051610ca051808203828111612e105790509050610cc05261139b565b610ca051610ce051808203828111612e105790509050610cc0525b610c805161080051811015612e105760051b6108200151610ce051808201828110612e105790509050610c4052610c4051604052610c6051606052610be051608052610c005160a0526113ef610d006121ba565b610d0051610c2052610c8051610a8051811015612e105760051b610aa0018051610c2051610cc051808202811583838304141715612e1057905090506402540be40081049050808203828111612e1057905090508152506001018181186112d8575b505060006008905b80610c80526106c051610c805118611470576114e1565b610c80516106e051811015612e105760051b6107000151610c8051610a8051811015612e105760051b610aa00151808202811583838304141715612e105790509050670de0b6b3a764000081049050610c805161092051811015612e105760051b6109400152600101818118611459575b50506109205160208160051b018060408261092060045afa5050506106a051610160526106c05161018052611517610c80611f37565b610c8051610bc05261152e565b6020610ba06115ad565b6000610be0526106605161155b57610a4051610bc051808203828111612e105790509050610be052611576565b610bc051610a4051808203828111612e105790509050610be0525b610be051610a6051808202811583838304141715612e105790509050610a40518015612e105780820490509050610c00526020610c005bf35b63a63530bd8118611d5957606436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526044358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa61161e573d600060003e3d6000fd5b60203d10612e10576105c09050516105a0526105805163ddca3f436105e05260206105e060046105fc845afa611659573d600060003e3d6000fd5b60203d10612e10576105e09050516105c05261058051638edfdd5f610600526020610600600461061c845afa611694573d600060003e3d6000fd5b60203d10612e10576106009050516105e052600061060052600061072052600061084052610580516040526105a0516060526116d1610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa505050505060206105405161084051811015612e105760051b61086001516040526105605161084051811015612e105760051b61086001516060526105c0516080526105e05160a0526117726109606121ba565b610960f3611d59565b63b54e9f058118611d5957606436103417612e105760243580600f0b8118612e1057610540526044358060a01c612e1057610560526105605163f446c1d06105a05260206105a060046105bc845afa6117d9573d600060003e3d6000fd5b60203d10612e10576105a090505160648102816064820418612e10579050610580526105605163293577506105c05260206105c060046105dc845afa611824573d600060003e3d6000fd5b60203d10612e10576105c09050516105a05260006105c05260006106e052600061080052610560516040526105a051606052611861610920611d5f565b610920805160208160051b01806105c0828560045afa5050506101208101805160208160051b01806106e0828560045afa505050506102408101805160208160051b0180610800828560045afa50505050506108005160208160051b018060408261080060045afa50505061058051610160526105a051610180526118e7610940611f37565b6109405161092052610560516318160ddd610960526020610960600461097c845afa611918573d600060003e3d6000fd5b60203d10612e1057610960905051610940526109205160043561092051808202811583838304141715612e105790509050610940518015612e105780820490509050808203828111612e10579050905061096052610580516101205261054051610140526108005160208160051b01806101608261080060045afa50505061096051610280526105a0516102a0526119b16109a0612c25565b6109a051610980526109205161096051808201828110612e1057905090506105a0518060011b818160011c18612e105790508015612e1057808204905090506109a0526105605163ddca3f436109e05260206109e060046109fc845afa611a1d573d600060003e3d6000fd5b60203d10612e10576109e09050516105a051808202811583838304141715612e1057905090506105a05160018103818111612e105790508060021b818160021c18612e105790508015612e1057808204905090506109c05261056051638edfdd5f610a00526020610a006004610a1c845afa611a9e573d600060003e3d6000fd5b60203d10612e1057610a009050516109e0526108005160208160051b0180610a008261080060045afa505050606036610b203760006008905b80610b80526105a051610b805118611aee57611c87565b6000610ba052610b805161080051811015612e105760051b6108200151610b205261054051610b805180607f1c612e105718611b9f57610b205161096051808202811583838304141715612e105790509050610920518015612e10578082049050905061098051808203828111612e105790509050610ba052610b805161080051811015612e105760051b610820015161098051808201828110612e1057905090508060011c9050610b4052611bfe565b610b2051610b205161096051808202811583838304141715612e105790509050610920518015612e105780820490509050808203828111612e105790509050610ba052610b805161080051811015612e105760051b6108200151610b40525b610b40516040526109a0516060526109c0516080526109e05160a052611c25610bc06121ba565b610bc051610b6052610b2051610b6051610ba051808202811583838304141715612e1057905090506402540be40081049050808203828111612e105790509050610b8051610a0051811015612e105760051b610a200152600101818118611ad7575b505061054051610a0051811015612e105760051b610a20015161058051610120526105405161014052610a005160208160051b018061016082610a0060045afa50505061096051610280526105a0516102a052611ce5610ba0612c25565b610ba051808203828111612e105790509050610b8052610b805160018103818111612e10579050670de0b6b3a7640000810281670de0b6b3a7640000820418612e10579050610540516105c051811015612e105760051b6105e001518015612e105780820490509050610b80526020610b80f35b60006000fd5b60405163fd0684b16101a0526101406101a060046101bc845afa611d88573d600060003e3d6000fd5b60403d10612e10576101a0516101a0016008815111612e1057805160208160051b0180610300828560045afa505050506103009050805160208160051b01806080828560045afa505050506040516314f059796102c0526101406102c060046102dc845afa611dfc573d600060003e3d6000fd5b60403d10612e10576102c0516102c0016008815111612e1057805160208160051b0180610420828560045afa505050506104209050805160208160051b01806101a0828560045afa5050505060006102c05260006008905b806103e0526060516103e05118611e6a57611ee0565b6102c05160078111612e10576103e051608051811015612e105760051b60a001516103e0516101a051811015612e105760051b6101c00151808202811583838304141715612e105790509050670de0b6b3a7640000810490508160051b6102e00152600181016102c05250600101818118611e54575b505060805160208160051b01808382608060045afa5050506101a05160208160051b0161012083018181836101a060045afa505050506102c05160208160051b0161024083018181836102c060045afa5050505050565b60006101a05260006008905b806101c052610180516101c05118611f5a57611f90565b6101a0516101c051604051811015612e105760051b60600151808201828110612e1057905090506101a052600101818118611f43575b50506101a051611fa45760008152506121b8565b6101a0516101c0526101605161018051808202811583838304141715612e1057905090506101e052600060ff905b80610200526101c05161022052600060405160088111612e1057801561203c57905b8060051b6060015161024052610220516101c051808202811583838304141715612e105790509050610240518015612e10578082049050905061022052600101818118611ff4575b50506102205161018051610180510a8015612e105780820490509050610220526101c051610240526101e0516101a051808202811583838304141715612e1057905090506064810490506102205161018051808202811583838304141715612e105790509050808201828110612e1057905090506101c051808202811583838304141715612e1057905090506101e05160648103818111612e105790506101c051808202811583838304141715612e1057905090506064810490506101805160018101818110612e1057905061022051808202811583838304141715612e105790509050808201828110612e1057905090508015612e1057808204905090506101c052610240516101c0511161217b576001610240516101c051808203828111612e105790509050116121a6576101c05183525050506121b8566121a6565b60016101c05161024051808203828111612e105790509050116121a6576101c05183525050506121b8565b600101818118611fd257505060006000fd5b565b6402540be40060a051116121d3576080518152506122a5565b604051606051808201828110612e1057905090506fffffffffffffffffffffffffffffffff8111612e10576002810a905060c05260a051608051808202811583838304141715612e10579050905060a0516402540be4008103818111612e105790508060021b818160021c18612e10579050604051808202811583838304141715612e105790509050606051808202811583838304141715612e10579050905060c0518015612e1057808204905090506402540be4008101818110612e105790508015612e1057808204905090508152505b565b600060c05260a05160e052600060ff905b806101005260e05160c05260e05160e051808202811583838304141715612e105790509050606051808201828110612e10579050905060e0518060011b818160011c18612e10579050604051808201828110612e105790509050608051808203828111612e1057905090508015612e10578082049050905060e05260c05160e0511161236a57600160c05160e051808203828111612e105790509050116123925760e05183525050506123a456612392565b600160e05160c051808203828111612e105790509050116123925760e05183525050506123a4565b6001018181186122b857505060006000fd5b565b610140516101205114612e105760006101405112612e10576102e05180607f1c612e1057610140511215612e105760006101205112612e10576102e05180607f1c612e1057610120511215612e10576102a051610300526102c05161032052604036610340376103205161038052610300516102e051808202811583838304141715612e1057905090506103a05260006008905b806103c0526102e0516103c051186124515761251b565b610120516103c05180607f1c612e1057186124735761016051610360526124ac565b610140516103c05180607f1c612e105714612510576103c05161018051811015612e105760051b6101a00151610360526124ac56612510565b6103405161036051808201828110612e105790509050610340526103805161032051808202811583838304141715612e105790509050610360516102e051808202811583838304141715612e1057905090508015612e105780820490509050610380525b60010181811861243a575b50506103805161032051808202811583838304141715612e10579050905060648102816064820418612e105790506103a0516102e051808202811583838304141715612e1057905090508015612e10578082049050905061038052610340516103205160648102816064820418612e105790506103a0518015612e105780820490509050808201828110612e1057905090506103c052610320516103e0526103c05160405261038051606052610320516080526103e05160a0526125e06104006122a7565b61040051815250565b6000610600526000610720526000610840526105a0516040526105e051606052612614610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa50505050506105a05163f446c1d0610980526020610980600461099c845afa61268f573d600060003e3d6000fd5b60203d10612e105761098090505160648102816064820418612e10579050610960526108405160208160051b018060408261084060045afa50505061096051610160526105e051610180526126e56109a0611f37565b6109a051610980526105a05163ddca3f436109c05260206109c060046109dc845afa612716573d600060003e3d6000fd5b60203d10612e10576109c09050516109a052610580516105605161060051811015612e105760051b6106200151808202811583838304141715612e105790509050670de0b6b3a76400008104905060018101818110612e105790506109c0526109a0516109e0526105c051612816576105a051638edfdd5f610a20526020610a206004610a3c845afa6127ae573d600060003e3d6000fd5b60203d10612e1057610a20905051610a00526105405161084051811015612e105760051b61086001516040526105605161084051811015612e105760051b61086001516060526109a051608052610a005160a05261280d610a206121ba565b610a20516109e0525b6105605161084051811015612e105760051b61086001516109c0516402540be4008102816402540be400820418612e105790506109e051806402540be400036402540be4008111612e105790508015612e105780820490509050808203828111612e105790509050610a005261056051610120526105405161014052610a0051610160526108405160208160051b01806101808261084060045afa505050610960516102a052610980516102c0526105e0516102e0526128d7610a406123a6565b610a4051610a2052610a20516105405161084051811015612e105760051b6108600151808203828111612e105790509050670de0b6b3a7640000810281670de0b6b3a7640000820418612e105790506105405161060051811015612e105760051b61062001518015612e105780820490509050815250565b6040366060376040515a6000600460c0527f76a9cd3e0000000000000000000000000000000000000000000000000000000060e05260c0805160208201836101200181518152505080830192505050600181610120015260208101905060008161012001526020810190508061010052610100505060206101a0610100516101208585fa905090506060523d602081183d6020100218610180526101808051608052602081015160a05250606051815250565b600260805118612a7f5760403660e03760405160605160018111612e105760051b60e0015260a05163ed8e84f36101205260e05161014052610100516101605260c051610180526020610120606461013c845afa612a65573d600060003e3d6000fd5b60203d10612e1057610120905051815250612c2356612c23565b600360805118612b045760603660e03760405160605160028111612e105760051b60e0015260a051633883e1196101405260e051610160526101005161018052610120516101a05260c0516101c0526020610140608461015c845afa612aea573d600060003e3d6000fd5b60203d10612e1057610140905051815250612c2356612c23565b600060e052600060805160088111612e10578015612b8557905b806102005260605160008112612e10576102005118612b5b5760e05160078111612e10576040518160051b61010001526001810160e05250612b7a565b60e05160078111612e105760008160051b61010001526001810160e052505b600101818118612b1e575b505060a051633db06dd861020052604080610220528061022001600060e0518083528060051b60008260088111612e10578015612bdc57905b8060051b61010001518160051b602088010152600101818118612bbe575b5050820160200191505090508101905060c0516102405250602061020061016461021c845afa612c11573d600060003e3d6000fd5b60203d10612e10576102009050518152505b565b6102a05180607f1c612e10576102c05260006101405112612e10576102c051610140511215612e10576060366102e0376102805161034052610120516102a051808202811583838304141715612e1057905090506103605260006008905b80610380526102a0516103805118612c9a57612d42565b6101405160008112612e10576103805114612d37576103805161016051811015612e105760051b610180015161030052612cd356612d37565b6102e05161030051808201828110612e1057905090506102e0526103405161028051808202811583838304141715612e105790509050610300516102a051808202811583838304141715612e1057905090508015612e105780820490509050610340525b600101818118612c83575b50506103405161028051808202811583838304141715612e10579050905060648102816064820418612e10579050610360516102a051808202811583838304141715612e1057905090508015612e105780820490509050610340526102e0516102805160648102816064820418612e10579050610360518015612e105780820490509050808201828110612e10579050905061038052610280516103a0526103805160405261034051606052610280516080526103a05160a052612e076103c06122a7565b6103c051815250565b600080fd1d590b850e720781001a177b1d5984192e23810e00a16576797065728300030a0014
Deployed Bytecode
0x60003560e01c60026007820660011b612e1501601e39600051565b6383aa796a81186100da57608436103417612e105760043580600f0b8118612e1057610cc05260243580600f0b8118612e1057610ce0526064358060a01c612e1057610d0052610d00516329357750610d40526020610d406004610d5c845afa610089573d600060003e3d6000fd5b60203d10612e1057610d40905051610d20526020610cc05161054052610ce0516105605260443561058052610d00516105a05260006105c052610d20516105e0526100d5610d406125e9565b610d40f35b63c02c60a68118611d5957608436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526064358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa610149573d600060003e3d6000fd5b60203d10612e10576105c09050516105a0526105a05180607f1c612e10576001810380600f0b8118612e105790506105c052610580516371511a5e610600526020610600600461061c845afa6101a4573d600060003e3d6000fd5b60203d10612e1057610600518060a01c612e1057610640526106409050516105e052600061060052600061072052600061084052610580516040526105a0516060526101f1610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa505050505060a03661096037610540511561027757610540516105c05180820380600f0b8118612e1057905090506109805260016109c0525b61056051156102a457610560516105c05180820380600f0b8118612e1057905090506109a05260016109e0525b61054051610311576105405161084051811015612e105760051b61086001516044356106005115612e1057600060051b6106200151808202811583838304141715612e105790509050670de0b6b3a764000081049050808201828110612e10579050905061096052610441565b610560516103ed5761058051633da575a1610a20526020610a206004610a3c845afa610342573d600060003e3d6000fd5b60203d10612e1057610a20905051610a005260443560405261098051606052610a00516080526105e05160a052600160c05261037f610a20612a02565b610a205160026106005110612e1057600160051b6106200151808202811583838304141715612e105790509050670de0b6b3a764000081049050610960526109605160026108405110612e1057600160051b6108600151808201828110612e10579050905061096052610441565b60206105e051635e0d443f610a005261098051610a20526109a051610a4052604435610a60526020610a006064610a1c845afa61042f573d600060003e3d6000fd5b60203d10612e1057610a00905061077b565b6105805163f446c1d0610a20526020610a206004610a3c845afa61046a573d600060003e3d6000fd5b60203d10612e1057610a2090505160648102816064820418612e10579050610a00526108405160208160051b018060408261084060045afa505050610a0051610160526105a051610180526104c0610a40611f37565b610a4051610a20526109c051610120526109e0516101405261096051610160526108405160208160051b01806101808261084060045afa505050610a00516102a052610a20516102c0526105a0516102e05261051d610a606123a6565b610a6051610a40526109e05161084051811015612e105760051b6108600151610a4051808203828111612e10579050905060018103818111612e10579050610a60526105805163ddca3f43610aa0526020610aa06004610abc845afa610588573d600060003e3d6000fd5b60203d10612e1057610aa0905051610a805261058051638edfdd5f610ac0526020610ac06004610adc845afa6105c3573d600060003e3d6000fd5b60203d10612e1057610ac0905051610aa0526109c05161084051811015612e105760051b610860015161096051808201828110612e1057905090508060011c90506040526109e05161084051811015612e105760051b6108600151610a4051808201828110612e1057905090508060011c9050606052610a8051608052610aa05160a052610652610ae06121ba565b610ae051610ac052610a6051610ac051610a6051808202811583838304141715612e1057905090506402540be40081049050808203828111612e105790509050610a6052610560516106e957610a6051670de0b6b3a7640000810281670de0b6b3a7640000820418612e105790506106005115612e1057600060051b61062001518015612e105780820490509050610a6052610775565b6105e05163cc2b27d7610ae052610a6051670de0b6b3a7640000810281670de0b6b3a7640000820418612e1057905060026106005110612e1057600160051b61062001518015612e105780820490509050610b00526109a051610b20526020610ae06044610afc845afa610762573d600060003e3d6000fd5b60203d10612e1057610ae0905051610a60525b6020610a605bf3611d59565b630c601c2c8118611d5957608436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526064358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa6107f0573d600060003e3d6000fd5b60203d10612e10576105c09050516105a05260006105c05260006106e052600061080052610580516040526105a05160605261082d610920611d5f565b610920805160208160051b01806105c0828560045afa5050506101208101805160208160051b01806106e0828560045afa505050506102408101805160208160051b0180610800828560045afa50505050506105805163f446c1d0610940526020610940600461095c845afa6108a8573d600060003e3d6000fd5b60203d10612e105761094090505160648102816064820418612e10579050610920526108005160208160051b018060408261080060045afa50505061092051610160526105a051610180526108fe610960611f37565b61096051610940526105405161080051811015612e105760051b6108200151604435610540516105c051811015612e105760051b6105e00151808202811583838304141715612e105790509050670de0b6b3a764000081049050808201828110612e105790509050610960526105405161012052610560516101405261096051610160526108005160208160051b01806101808261080060045afa505050610920516102a052610940516102c0526105a0516102e0526109bf6109a06123a6565b6109a051610980526105605161080051811015612e105760051b610820015161098051808203828111612e10579050905060018103818111612e105790506109a0526105805163ddca3f436109e05260206109e060046109fc845afa610a2a573d600060003e3d6000fd5b60203d10612e10576109e09050516109c05261058051638edfdd5f610a00526020610a006004610a1c845afa610a65573d600060003e3d6000fd5b60203d10612e1057610a009050516109e0526105405161080051811015612e105760051b610820015161096051808201828110612e1057905090508060011c90506040526105605161080051811015612e105760051b610820015161098051808201828110612e1057905090508060011c90506060526109c0516080526109e05160a052610af4610a206121ba565b610a20516109a051808202811583838304141715612e1057905090506402540be40081049050610a00526109a051610a0051808203828111612e105790509050670de0b6b3a7640000810281670de0b6b3a7640000820418612e10579050610560516105c051811015612e105760051b6105e001518015612e105780820490509050610a20526020610a20f3611d59565b63d6fc10ab8118611d5957608436103417612e105760043580600f0b8118612e1057610cc05260243580600f0b8118612e1057610ce0526064358060a01c612e1057610d0052610d00516371511a5e610d40526020610d406004610d5c845afa610bf4573d600060003e3d6000fd5b60203d10612e1057610d40518060a01c612e1057610d8052610d80905051610d2052610d0051633da575a1610d60526020610d606004610d7c845afa610c3f573d600060003e3d6000fd5b60203d10612e1057610d60905051610d4052610d00516329357750610d80526020610d806004610d9c845afa610c7a573d600060003e3d6000fd5b60203d10612e1057610d80905051610d6052610d2051604052610c9e610da061294f565b610da051610d80526001610cc051610ce0518082811882841202189050905012610d4d576023610da0527f4e6f742061204d657461706f6f6c20537761702e20557365204261736520706f610dc0527f6f6c2e0000000000000000000000000000000000000000000000000000000000610de052610da050610da05180610dc001601f826000031636823750506308c379a0610d60526020610d8052601f19601f610da0510116604401610d7cfd5b610cc051610dd757604435604052610ce0516001810380600f0b8118612e10579050606052610d4051608052610d205160a052600060c052610d90610dc0612a02565b610dc051610da0526020600061054052600161056052610da05161058052610d00516105a05260006105c052610d60516105e052610dcf610dc06125e9565b610dc0610e6c565b60016105405260006105605260443561058052610d00516105a05260006105c052610d60516105e052610e0b610dc06125e9565b610dc051610da0526020610d205163cc2b27d7610dc052610da051610de052610cc0516001810380600f0b8118612e10579050610e00526020610dc06044610ddc845afa610e5e573d600060003e3d6000fd5b60203d10612e1057610dc090505bf3611d59565b63fb79eb2781186115af57608436103417612e10576004356004016008813511612e1057803560208160051b018083610540375050506024358060011c612e1057610660526044358060a01c612e1057610680526106805163f446c1d06106c05260206106c060046106dc845afa610eef573d600060003e3d6000fd5b60203d10612e10576106c090505160648102816064820418612e105790506106a0526106805163293577506106e05260206106e060046106fc845afa610f3a573d600060003e3d6000fd5b60203d10612e10576106e09050516106c05260006106e052600061080052600061092052610680516040526106c051606052610f77610a40611d5f565b610a40805160208160051b01806106e0828560045afa5050506101208101805160208160051b0180610800828560045afa505050506102408101805160208160051b0180610920828560045afa50505050506109205160208160051b018060408261092060045afa5050506106a051610160526106c05161018052610ffd610a60611f37565b610a6051610a4052610680516318160ddd610a80526020610a806004610a9c845afa61102e573d600060003e3d6000fd5b60203d10612e1057610a80905051610a60526108005160208160051b0180610a808261080060045afa50505060006008905b80610ba0526106c051610ba0511861107757611105565b610ba05161054051811015612e105760051b6105600151610bc052610660516110cc57610ba051610a8051811015612e105760051b610aa0018051610bc051808203828111612e1057905090508152506110fa565b610ba051610a8051811015612e105760051b610aa0018051610bc051808201828110612e1057905090508152505b600101818118611060575b505060006008905b80610ba0526106c051610ba0511861112457611195565b610ba0516106e051811015612e105760051b6107000151610ba051610a8051811015612e105760051b610aa00151808202811583838304141715612e105790509050670de0b6b3a764000081049050610ba05161092051811015612e105760051b610940015260010181811861110d575b50506109205160208160051b018060408261092060045afa5050506106a051610160526106c051610180526111cb610bc0611f37565b610bc051610ba052610ba051610bc052610a605115611524576106805163ddca3f43610c00526020610c006004610c1c845afa61120d573d600060003e3d6000fd5b60203d10612e1057610c009050516106c051808202811583838304141715612e1057905090506106c05160018103818111612e105790508060021b818160021c18612e105790508015612e105780820490509050610be05261068051638edfdd5f610c20526020610c206004610c3c845afa61128e573d600060003e3d6000fd5b60203d10612e1057610c20905051610c0052604036610c2037610a4051610ba051808201828110612e1057905090506106c0518015612e105780820490509050610c605260006008905b80610c80526106c051610c8051186112ef57611451565b610ba051610c805161080051811015612e105760051b6108200151808202811583838304141715612e105790509050610a40518015612e105780820490509050610ca0526000610cc052610c8051610a8051811015612e105760051b610aa00151610ce052610ce051610ca0511161138057610ce051610ca051808203828111612e105790509050610cc05261139b565b610ca051610ce051808203828111612e105790509050610cc0525b610c805161080051811015612e105760051b6108200151610ce051808201828110612e105790509050610c4052610c4051604052610c6051606052610be051608052610c005160a0526113ef610d006121ba565b610d0051610c2052610c8051610a8051811015612e105760051b610aa0018051610c2051610cc051808202811583838304141715612e1057905090506402540be40081049050808203828111612e1057905090508152506001018181186112d8575b505060006008905b80610c80526106c051610c805118611470576114e1565b610c80516106e051811015612e105760051b6107000151610c8051610a8051811015612e105760051b610aa00151808202811583838304141715612e105790509050670de0b6b3a764000081049050610c805161092051811015612e105760051b6109400152600101818118611459575b50506109205160208160051b018060408261092060045afa5050506106a051610160526106c05161018052611517610c80611f37565b610c8051610bc05261152e565b6020610ba06115ad565b6000610be0526106605161155b57610a4051610bc051808203828111612e105790509050610be052611576565b610bc051610a4051808203828111612e105790509050610be0525b610be051610a6051808202811583838304141715612e105790509050610a40518015612e105780820490509050610c00526020610c005bf35b63a63530bd8118611d5957606436103417612e105760043580600f0b8118612e10576105405260243580600f0b8118612e1057610560526044358060a01c612e1057610580526105805163293577506105c05260206105c060046105dc845afa61161e573d600060003e3d6000fd5b60203d10612e10576105c09050516105a0526105805163ddca3f436105e05260206105e060046105fc845afa611659573d600060003e3d6000fd5b60203d10612e10576105e09050516105c05261058051638edfdd5f610600526020610600600461061c845afa611694573d600060003e3d6000fd5b60203d10612e10576106009050516105e052600061060052600061072052600061084052610580516040526105a0516060526116d1610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa505050505060206105405161084051811015612e105760051b61086001516040526105605161084051811015612e105760051b61086001516060526105c0516080526105e05160a0526117726109606121ba565b610960f3611d59565b63b54e9f058118611d5957606436103417612e105760243580600f0b8118612e1057610540526044358060a01c612e1057610560526105605163f446c1d06105a05260206105a060046105bc845afa6117d9573d600060003e3d6000fd5b60203d10612e10576105a090505160648102816064820418612e10579050610580526105605163293577506105c05260206105c060046105dc845afa611824573d600060003e3d6000fd5b60203d10612e10576105c09050516105a05260006105c05260006106e052600061080052610560516040526105a051606052611861610920611d5f565b610920805160208160051b01806105c0828560045afa5050506101208101805160208160051b01806106e0828560045afa505050506102408101805160208160051b0180610800828560045afa50505050506108005160208160051b018060408261080060045afa50505061058051610160526105a051610180526118e7610940611f37565b6109405161092052610560516318160ddd610960526020610960600461097c845afa611918573d600060003e3d6000fd5b60203d10612e1057610960905051610940526109205160043561092051808202811583838304141715612e105790509050610940518015612e105780820490509050808203828111612e10579050905061096052610580516101205261054051610140526108005160208160051b01806101608261080060045afa50505061096051610280526105a0516102a0526119b16109a0612c25565b6109a051610980526109205161096051808201828110612e1057905090506105a0518060011b818160011c18612e105790508015612e1057808204905090506109a0526105605163ddca3f436109e05260206109e060046109fc845afa611a1d573d600060003e3d6000fd5b60203d10612e10576109e09050516105a051808202811583838304141715612e1057905090506105a05160018103818111612e105790508060021b818160021c18612e105790508015612e1057808204905090506109c05261056051638edfdd5f610a00526020610a006004610a1c845afa611a9e573d600060003e3d6000fd5b60203d10612e1057610a009050516109e0526108005160208160051b0180610a008261080060045afa505050606036610b203760006008905b80610b80526105a051610b805118611aee57611c87565b6000610ba052610b805161080051811015612e105760051b6108200151610b205261054051610b805180607f1c612e105718611b9f57610b205161096051808202811583838304141715612e105790509050610920518015612e10578082049050905061098051808203828111612e105790509050610ba052610b805161080051811015612e105760051b610820015161098051808201828110612e1057905090508060011c9050610b4052611bfe565b610b2051610b205161096051808202811583838304141715612e105790509050610920518015612e105780820490509050808203828111612e105790509050610ba052610b805161080051811015612e105760051b6108200151610b40525b610b40516040526109a0516060526109c0516080526109e05160a052611c25610bc06121ba565b610bc051610b6052610b2051610b6051610ba051808202811583838304141715612e1057905090506402540be40081049050808203828111612e105790509050610b8051610a0051811015612e105760051b610a200152600101818118611ad7575b505061054051610a0051811015612e105760051b610a20015161058051610120526105405161014052610a005160208160051b018061016082610a0060045afa50505061096051610280526105a0516102a052611ce5610ba0612c25565b610ba051808203828111612e105790509050610b8052610b805160018103818111612e10579050670de0b6b3a7640000810281670de0b6b3a7640000820418612e10579050610540516105c051811015612e105760051b6105e001518015612e105780820490509050610b80526020610b80f35b60006000fd5b60405163fd0684b16101a0526101406101a060046101bc845afa611d88573d600060003e3d6000fd5b60403d10612e10576101a0516101a0016008815111612e1057805160208160051b0180610300828560045afa505050506103009050805160208160051b01806080828560045afa505050506040516314f059796102c0526101406102c060046102dc845afa611dfc573d600060003e3d6000fd5b60403d10612e10576102c0516102c0016008815111612e1057805160208160051b0180610420828560045afa505050506104209050805160208160051b01806101a0828560045afa5050505060006102c05260006008905b806103e0526060516103e05118611e6a57611ee0565b6102c05160078111612e10576103e051608051811015612e105760051b60a001516103e0516101a051811015612e105760051b6101c00151808202811583838304141715612e105790509050670de0b6b3a7640000810490508160051b6102e00152600181016102c05250600101818118611e54575b505060805160208160051b01808382608060045afa5050506101a05160208160051b0161012083018181836101a060045afa505050506102c05160208160051b0161024083018181836102c060045afa5050505050565b60006101a05260006008905b806101c052610180516101c05118611f5a57611f90565b6101a0516101c051604051811015612e105760051b60600151808201828110612e1057905090506101a052600101818118611f43575b50506101a051611fa45760008152506121b8565b6101a0516101c0526101605161018051808202811583838304141715612e1057905090506101e052600060ff905b80610200526101c05161022052600060405160088111612e1057801561203c57905b8060051b6060015161024052610220516101c051808202811583838304141715612e105790509050610240518015612e10578082049050905061022052600101818118611ff4575b50506102205161018051610180510a8015612e105780820490509050610220526101c051610240526101e0516101a051808202811583838304141715612e1057905090506064810490506102205161018051808202811583838304141715612e105790509050808201828110612e1057905090506101c051808202811583838304141715612e1057905090506101e05160648103818111612e105790506101c051808202811583838304141715612e1057905090506064810490506101805160018101818110612e1057905061022051808202811583838304141715612e105790509050808201828110612e1057905090508015612e1057808204905090506101c052610240516101c0511161217b576001610240516101c051808203828111612e105790509050116121a6576101c05183525050506121b8566121a6565b60016101c05161024051808203828111612e105790509050116121a6576101c05183525050506121b8565b600101818118611fd257505060006000fd5b565b6402540be40060a051116121d3576080518152506122a5565b604051606051808201828110612e1057905090506fffffffffffffffffffffffffffffffff8111612e10576002810a905060c05260a051608051808202811583838304141715612e10579050905060a0516402540be4008103818111612e105790508060021b818160021c18612e10579050604051808202811583838304141715612e105790509050606051808202811583838304141715612e10579050905060c0518015612e1057808204905090506402540be4008101818110612e105790508015612e1057808204905090508152505b565b600060c05260a05160e052600060ff905b806101005260e05160c05260e05160e051808202811583838304141715612e105790509050606051808201828110612e10579050905060e0518060011b818160011c18612e10579050604051808201828110612e105790509050608051808203828111612e1057905090508015612e10578082049050905060e05260c05160e0511161236a57600160c05160e051808203828111612e105790509050116123925760e05183525050506123a456612392565b600160e05160c051808203828111612e105790509050116123925760e05183525050506123a4565b6001018181186122b857505060006000fd5b565b610140516101205114612e105760006101405112612e10576102e05180607f1c612e1057610140511215612e105760006101205112612e10576102e05180607f1c612e1057610120511215612e10576102a051610300526102c05161032052604036610340376103205161038052610300516102e051808202811583838304141715612e1057905090506103a05260006008905b806103c0526102e0516103c051186124515761251b565b610120516103c05180607f1c612e1057186124735761016051610360526124ac565b610140516103c05180607f1c612e105714612510576103c05161018051811015612e105760051b6101a00151610360526124ac56612510565b6103405161036051808201828110612e105790509050610340526103805161032051808202811583838304141715612e105790509050610360516102e051808202811583838304141715612e1057905090508015612e105780820490509050610380525b60010181811861243a575b50506103805161032051808202811583838304141715612e10579050905060648102816064820418612e105790506103a0516102e051808202811583838304141715612e1057905090508015612e10578082049050905061038052610340516103205160648102816064820418612e105790506103a0518015612e105780820490509050808201828110612e1057905090506103c052610320516103e0526103c05160405261038051606052610320516080526103e05160a0526125e06104006122a7565b61040051815250565b6000610600526000610720526000610840526105a0516040526105e051606052612614610960611d5f565b610960805160208160051b0180610600828560045afa5050506101208101805160208160051b0180610720828560045afa505050506102408101805160208160051b0180610840828560045afa50505050506105a05163f446c1d0610980526020610980600461099c845afa61268f573d600060003e3d6000fd5b60203d10612e105761098090505160648102816064820418612e10579050610960526108405160208160051b018060408261084060045afa50505061096051610160526105e051610180526126e56109a0611f37565b6109a051610980526105a05163ddca3f436109c05260206109c060046109dc845afa612716573d600060003e3d6000fd5b60203d10612e10576109c09050516109a052610580516105605161060051811015612e105760051b6106200151808202811583838304141715612e105790509050670de0b6b3a76400008104905060018101818110612e105790506109c0526109a0516109e0526105c051612816576105a051638edfdd5f610a20526020610a206004610a3c845afa6127ae573d600060003e3d6000fd5b60203d10612e1057610a20905051610a00526105405161084051811015612e105760051b61086001516040526105605161084051811015612e105760051b61086001516060526109a051608052610a005160a05261280d610a206121ba565b610a20516109e0525b6105605161084051811015612e105760051b61086001516109c0516402540be4008102816402540be400820418612e105790506109e051806402540be400036402540be4008111612e105790508015612e105780820490509050808203828111612e105790509050610a005261056051610120526105405161014052610a0051610160526108405160208160051b01806101808261084060045afa505050610960516102a052610980516102c0526105e0516102e0526128d7610a406123a6565b610a4051610a2052610a20516105405161084051811015612e105760051b6108600151808203828111612e105790509050670de0b6b3a7640000810281670de0b6b3a7640000820418612e105790506105405161060051811015612e105760051b61062001518015612e105780820490509050815250565b6040366060376040515a6000600460c0527f76a9cd3e0000000000000000000000000000000000000000000000000000000060e05260c0805160208201836101200181518152505080830192505050600181610120015260208101905060008161012001526020810190508061010052610100505060206101a0610100516101208585fa905090506060523d602081183d6020100218610180526101808051608052602081015160a05250606051815250565b600260805118612a7f5760403660e03760405160605160018111612e105760051b60e0015260a05163ed8e84f36101205260e05161014052610100516101605260c051610180526020610120606461013c845afa612a65573d600060003e3d6000fd5b60203d10612e1057610120905051815250612c2356612c23565b600360805118612b045760603660e03760405160605160028111612e105760051b60e0015260a051633883e1196101405260e051610160526101005161018052610120516101a05260c0516101c0526020610140608461015c845afa612aea573d600060003e3d6000fd5b60203d10612e1057610140905051815250612c2356612c23565b600060e052600060805160088111612e10578015612b8557905b806102005260605160008112612e10576102005118612b5b5760e05160078111612e10576040518160051b61010001526001810160e05250612b7a565b60e05160078111612e105760008160051b61010001526001810160e052505b600101818118612b1e575b505060a051633db06dd861020052604080610220528061022001600060e0518083528060051b60008260088111612e10578015612bdc57905b8060051b61010001518160051b602088010152600101818118612bbe575b5050820160200191505090508101905060c0516102405250602061020061016461021c845afa612c11573d600060003e3d6000fd5b60203d10612e10576102009050518152505b565b6102a05180607f1c612e10576102c05260006101405112612e10576102c051610140511215612e10576060366102e0376102805161034052610120516102a051808202811583838304141715612e1057905090506103605260006008905b80610380526102a0516103805118612c9a57612d42565b6101405160008112612e10576103805114612d37576103805161016051811015612e105760051b610180015161030052612cd356612d37565b6102e05161030051808201828110612e1057905090506102e0526103405161028051808202811583838304141715612e105790509050610300516102a051808202811583838304141715612e1057905090508015612e105780820490509050610340525b600101818118612c83575b50506103405161028051808202811583838304141715612e10579050905060648102816064820418612e10579050610360516102a051808202811583838304141715612e1057905090508015612e105780820490509050610340526102e0516102805160648102816064820418612e10579050610360518015612e105780820490509050808201828110612e10579050905061038052610280516103a0526103805160405261034051606052610280516080526103a05160a052612e076103c06122a7565b6103c051815250565b600080fd1d590b850e720781001a177b1d59
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.