More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xc85E209A...871CC4182 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
UniswapV3Pool
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 40 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
123456789101112131415161718// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Callback for IUniswapV3PoolActions#flash/// @notice Any contract that calls IUniswapV3PoolActions#flash must implement this interfaceinterface IUniswapV3FlashCallback {/// @notice Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash./// @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts./// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory./// @param fee0 The fee amount in token0 due to the pool by the end of the flash/// @param fee1 The fee amount in token1 due to the pool by the end of the flash/// @param data Any data passed through by the caller via the IUniswapV3PoolActions#flash callfunction uniswapV3FlashCallback(uint256 fee0,uint256 fee1,bytes calldata data) external;}
123456789101112131415161718// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Callback for IUniswapV3PoolActions#mint/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interfaceinterface IUniswapV3MintCallback {/// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint./// @dev In the implementation you must pay the pool tokens owed for the minted liquidity./// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory./// @param amount0Owed The amount of token0 due to the pool for the minted liquidity/// @param amount1Owed The amount of token1 due to the pool for the minted liquidity/// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint callfunction uniswapV3MintCallback(uint256 amount0Owed,uint256 amount1Owed,bytes calldata data) external;}
123456789101112131415161718192021// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Callback for IUniswapV3PoolActions#swap/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interfaceinterface IUniswapV3SwapCallback {/// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap./// @dev In the implementation you must pay the pool tokens owed for the swap./// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory./// amount0Delta and amount1Delta can both be 0 if no tokens were swapped./// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by/// the end of the swap. If positive, the callback must send that amount of token0 to the pool./// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by/// the end of the swap. If positive, the callback must send that amount of token1 to the pool./// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap callfunction uniswapV3SwapCallback(int256 amount0Delta,int256 amount1Delta,bytes calldata data) external;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.7.6;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20 {/*** @dev Returns the amount of tokens in existence.*/function totalSupply() external view returns (uint256);/*** @dev Returns the amount of tokens owned by `account`.*/function balanceOf(address account) external view returns (uint256);/*** @dev Moves `amount` tokens from the caller's account to `recipient`.** Returns a boolean value indicating whether the operation succeeded.** Emits a {Transfer} event.*/function transfer(address recipient, uint256 amount) external returns (bool);
123456789101112131415161718// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;import './IERC20.sol';/// @title IERC20Metadata/// @title Interface for ERC20 Metadata/// @notice Extension to IERC20 that includes token metadatainterface IERC20Metadata is IERC20 {/// @return The name of the tokenfunction name() external view returns (string memory);/// @return The symbol of the tokenfunction symbol() external view returns (string memory);/// @return The number of decimal places the token hasfunction decimals() external view returns (uint8);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Minimal ERC20 interface for Uniswap/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3interface IERC20Minimal {/// @notice Returns the balance of a token/// @param account The account for which to look up the number of tokens it has, i.e. its balance/// @return The number of tokens held by the accountfunction balanceOf(address account) external view returns (uint256);/// @notice Transfers the amount of token from the `msg.sender` to the recipient/// @param recipient The account that will receive the amount transferred/// @param amount The number of tokens to send from the sender to the recipient/// @return Returns true for a successful transfer, false for an unsuccessful transferfunction transfer(address recipient, uint256 amount) external returns (bool);/// @notice Returns the current allowance given to a spender by an owner/// @param owner The account of the token owner/// @param spender The account of the token spender/// @return The current allowance granted by `owner` to `spender`function allowance(address owner, address spender) external view returns (uint256);/// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`/// @param spender The account which will be allowed to spend a given amount of the owners tokens/// @param amount The amount of tokens allowed to be used by `spender`
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title The interface for the Uniswap V3 Factory/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol feesinterface IUniswapV3Factory {/// @notice Emitted when the owner of the factory is changed/// @param oldOwner The owner before the owner was changed/// @param newOwner The owner after the owner was changedevent OwnerChanged(address indexed oldOwner, address indexed newOwner);/// @notice Emitted when a pool is created/// @param token0 The first token of the pool by address sort order/// @param token1 The second token of the pool by address sort order/// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip/// @param tickSpacing The minimum number of ticks between initialized ticks/// @param pool The address of the created poolevent PoolCreated(address indexed token0,address indexed token1,uint24 indexed fee,int24 tickSpacing,address pool);/*/// @notice Emitted when a new fee amount is enabled for pool creation via the factory
123456789101112131415161718192021222324// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;import './pool/IUniswapV3PoolImmutables.sol';import './pool/IUniswapV3PoolState.sol';import './pool/IUniswapV3PoolDerivedState.sol';import './pool/IUniswapV3PoolActions.sol';//import './pool/IUniswapV3PoolOwnerActions.sol';import './pool/IUniswapV3PoolEvents.sol';/// @title The interface for a Uniswap V3 Pool/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform/// to the ERC20 specification/// @dev The pool interface is broken up into many smaller piecesinterface IUniswapV3Pool isIUniswapV3PoolImmutables,IUniswapV3PoolState,IUniswapV3PoolDerivedState,IUniswapV3PoolActions,//IUniswapV3PoolOwnerActions,IUniswapV3PoolEvents{}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title An interface for a contract that is capable of deploying Uniswap V3 Pools/// @notice A contract that constructs a pool must implement this to pass arguments to the pool/// @dev This is used to avoid having constructor arguments in the pool contract, which results in the init code hash/// of the pool being constant allowing the CREATE2 address of the pool to be cheaply computed on-chaininterface IUniswapV3PoolDeployer {/// @notice Get the parameters to be used in constructing the pool, set transiently during pool creation./// @dev Called by the pool constructor to fetch the parameters of the pool/// Returns factory The factory address/// Returns token0 The first token of the pool by address sort order/// Returns token1 The second token of the pool by address sort order/// Returns fee The fee collected upon every swap in the pool, denominated in hundredths of a bip/// Returns tickSpacing The minimum number of ticks between initialized ticksfunction parameters()externalviewreturns (address factory,address token0,address token1,uint24 fee,int24 tickSpacing);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Permissionless pool actions/// @notice Contains pool methods that can be called by anyoneinterface IUniswapV3PoolActions {/// @notice Sets the initial price for the pool/// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value/// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96function initialize(uint160 sqrtPriceX96) external;/// @notice Adds liquidity for the given recipient/tickLower/tickUpper position/// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback/// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends/// on tickLower, tickUpper, the amount of liquidity, and the current price./// @param recipient The address for which the liquidity will be created/// @param tickLower The lower tick of the position in which to add liquidity/// @param tickUpper The upper tick of the position in which to add liquidity/// @param amount The amount of liquidity to mint/// @param data Any data that should be passed through to the callback/// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback/// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callbackfunction mint(address recipient,int24 tickLower,int24 tickUpper,
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Pool state that is not stored/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the/// blockchain. The functions here may have variable gas costs.interface IUniswapV3PoolDerivedState {/// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp/// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing/// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,/// you must call it with secondsAgos = [3600, 0]./// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in/// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio./// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned/// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp/// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block/// timestampfunction observe(uint32[] calldata secondsAgos)externalviewreturns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);/// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range/// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed./// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first/// snapshot is taken and the second snapshot is taken.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Events emitted by a pool/// @notice Contains all events emitted by the poolinterface IUniswapV3PoolEvents {/// @notice Emitted exactly once by a pool when #initialize is first called on the pool/// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize/// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96/// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the poolevent Initialize(uint160 sqrtPriceX96, int24 tick);/// @notice Emitted when liquidity is minted for a given position/// @param sender The address that minted the liquidity/// @param owner The owner of the position and recipient of any minted liquidity/// @param tickLower The lower tick of the position/// @param tickUpper The upper tick of the position/// @param amount The amount of liquidity minted to the position range/// @param amount0 How much token0 was required for the minted liquidity/// @param amount1 How much token1 was required for the minted liquidityevent Mint(address sender,address indexed owner,int24 indexed tickLower,int24 indexed tickUpper,uint128 amount,
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Pool state that never changes/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same valuesinterface IUniswapV3PoolImmutables {/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface/// @return The contract addressfunction factory() external view returns (address);/// @notice The first of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token0() external view returns (address);/// @notice The second of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token1() external view returns (address);////// @notice The pool's fee in hundredths of a bip, i.e. 1e-6////// @return The fee///function fee() external view returns (uint24);/// @notice The pool tick spacing/// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Pool state that can change/// @notice These methods compose the pool's state, and can change with any frequency including multiple times/// per transactioninterface IUniswapV3PoolState {/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas/// when accessed externally./// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value/// tick The current tick of the pool, i.e. according to the last tick transition that was run./// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick/// boundary./// observationIndex The index of the last oracle observation that was written,/// observationCardinality The current maximum number of observations stored in the pool,/// observationCardinalityNext The next maximum number of observations, to be updated when the observation./// feeProtocol The protocol fee for both tokens of the pool./// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0/// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee./// unlocked Whether the pool is currently locked to reentrancyfunction slot0()externalviewreturns (uint160 sqrtPriceX96,int24 tick,
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title BitMath/// @dev This library provides functionality for computing bit properties of an unsigned integerlibrary BitMath {/// @notice Returns the index of the most significant bit of the number,/// where the least significant bit is at index 0 and the most significant bit is at index 255/// @dev The function satisfies the property:/// x >= 2**mostSignificantBit(x) and x < 2**(mostSignificantBit(x)+1)/// @param x the value for which to compute the most significant bit, must be greater than 0/// @return r the index of the most significant bitfunction mostSignificantBit(uint256 x) internal pure returns (uint8 r) {require(x > 0);if (x >= 0x100000000000000000000000000000000) {x >>= 128;r += 128;}if (x >= 0x10000000000000000) {x >>= 64;r += 64;}if (x >= 0x100000000) {x >>= 32;r += 32;
12345678// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title FixedPoint128/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)library FixedPoint128 {uint256 internal constant Q128 = 0x100000000000000000000000000000000;}
12345678910// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title FixedPoint96/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)/// @dev Used in SqrtPriceMath.sollibrary FixedPoint96 {uint8 internal constant RESOLUTION = 96;uint256 internal constant Q96 = 0x1000000000000000000000000;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.7.6;/// @title Contains 512-bit math functions/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bitslibrary FullMath {/// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0/// @param a The multiplicand/// @param b The multiplier/// @param denominator The divisor/// @return result The 256-bit result/// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldivfunction mulDiv(uint256 a,uint256 b,uint256 denominator) internal pure returns (uint256 result) {// 512-bit multiply [prod1 prod0] = a * b// Compute the product mod 2**256 and mod 2**256 - 1// then use the Chinese Remainder Theorem to reconstruct// the 512 bit result. The result is stored in two 256// variables such that product = prod1 * 2**256 + prod0uint256 prod0; // Least significant 256 bits of the productuint256 prod1; // Most significant 256 bits of the productassembly {
1234567891011121314151617// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Math library for liquiditylibrary LiquidityMath {/// @notice Add a signed liquidity delta to liquidity and revert if it overflows or underflows/// @param x The liquidity before change/// @param y The delta by which liquidity should be changed/// @return z The liquidity deltafunction addDelta(uint128 x, int128 y) internal pure returns (uint128 z) {if (y < 0) {require((z = x - uint128(-y)) < x, 'LS');} else {require((z = x + uint128(y)) >= x, 'LA');}}}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Optimized overflow and underflow safe math operations/// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas costlibrary LowGasSafeMath {/// @notice Returns x + y, reverts if sum overflows uint256/// @param x The augend/// @param y The addend/// @return z The sum of x and yfunction add(uint256 x, uint256 y) internal pure returns (uint256 z) {require((z = x + y) >= x);}/// @notice Returns x - y, reverts if underflows/// @param x The minuend/// @param y The subtrahend/// @return z The difference of x and yfunction sub(uint256 x, uint256 y) internal pure returns (uint256 z) {require((z = x - y) <= x);}/// @notice Returns x * y, reverts if overflows/// @param x The multiplicand/// @param y The multiplier/// @return z The product of x and y
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Safe casting methods/// @notice Contains methods for safely casting between typeslibrary SafeCast {/// @notice Cast a uint256 to a uint160, revert on overflow/// @param y The uint256 to be downcasted/// @return z The downcasted integer, now type uint160function toUint160(uint256 y) internal pure returns (uint160 z) {require((z = uint160(y)) == y);}/// @notice Cast a int256 to a int128, revert on overflow or underflow/// @param y The int256 to be downcasted/// @return z The downcasted integer, now type int128function toInt128(int256 y) internal pure returns (int128 z) {require((z = int128(y)) == y);}/// @notice Cast a uint256 to a int256, revert on overflow/// @param y The uint256 to be casted/// @return z The casted integer, now type int256function toInt256(uint256 y) internal pure returns (int256 z) {require(y < 2**255);z = int256(y);
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Math library for computing sqrt prices from ticks and vice versa/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports/// prices between 2**-128 and 2**128library TickMath {/// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128int24 internal constant MIN_TICK = -887272;/// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128int24 internal constant MAX_TICK = -MIN_TICK;/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)uint160 internal constant MIN_SQRT_RATIO = 4295128739;/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;/// @notice Calculates sqrt(1.0001^tick) * 2^96/// @dev Throws if |tick| > max tick/// @param tick The input tick for the above formula/// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)/// at the given tickfunction getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));require(absTick <= uint256(MAX_TICK), 'T');
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;import '../interfaces/IERC20.sol';library TransferHelper {/// @notice Transfers tokens from the targeted address to the given destination/// @notice Errors with 'STF' if transfer fails/// @param token The contract address of the token to be transferred/// @param from The originating address from which the tokens will be transferred/// @param to The destination address of the transfer/// @param value The amount to be transferredfunction safeTransferFrom(address token,address from,address to,uint256 value) internal {(bool success, bytes memory data) =token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');}/// @notice Transfers tokens from msg.sender to a recipient/// @dev Errors with ST if transfer fails/// @param token The contract address of the token which will be transferred
1234567891011121314151617// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity 0.7.6;/// @title Math functions that do not check inputs or outputs/// @notice Contains methods that perform common math functions but do not do any overflow or underflow checkslibrary UnsafeMath {/// @notice Returns ceil(x / y)/// @dev division by 0 has unspecified behavior, and must be checked externally/// @param x The dividend/// @param y The divisor/// @return z The quotient, ceil(x / y)function divRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z) {assembly {z := add(div(x, y), gt(mod(x, y), 0))}}}
1234567891011121314151617181920212223242526/*FFFFF TTTTTTT M M GGGGG U U RRRRR U UFF TTT M M M M G U U RR R U UFFFFF TTT M M M G GGG U U RRRRR U UFF TTT M M M O G G U U RR R U UFF TTT M M GGGGG UUUU RR RRR UUUUContact us at:https://discord.com/invite/QpyfMarNrVhttps://t.me/FTM1337Community Mediums:https://medium.com/@ftm1337https://twitter.com/ftm1337▀█▀░█░█░█░█▀░█▄▀░█░░█▀█░█░█▄░█▀▄Thick Liquidity Protocol> Network agnostic Decentralized Exchange for ERC20 tokens
12345678910111213141516171819{"optimizer": {"enabled": true,"runs": 40},"outputSelection": {"*": {"*": ["evm.bytecode","evm.deployedBytecode","devdoc","userdoc","metadata","abi"]}},"libraries": {}}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"CollectProtocol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"observationCardinalityNextOld","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"observationCardinalityNextNew","type":"uint16"}],"name":"IncreaseObservationCardinalityNext","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"feeProtocolOld","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"feeProtocolNew","type":"uint8"}],"name":"SetFeeProtocol","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint24","name":"feeOld","type":"uint24"},{"indexed":false,"internalType":"uint24","name":"feeNew","type":"uint24"}],"name":"SetSwapFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collectProtocol","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeGrowthGlobal0X128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeGrowthGlobal1X128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"observationCardinalityNext","type":"uint16"}],"name":"increaseObservationCardinalityNext","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"observations","outputs":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"int56","name":"tickCumulative","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityCumulativeX128","type":"uint160"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"secondsAgos","type":"uint32[]"}],"name":"observe","outputs":[{"internalType":"int56[]","name":"tickCumulatives","type":"int56[]"},{"internalType":"uint160[]","name":"secondsPerLiquidityCumulativeX128s","type":"uint160[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFees","outputs":[{"internalType":"uint128","name":"token0","type":"uint128"},{"internalType":"uint128","name":"token1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"feeProtocolNew","type":"uint8"}],"name":"setFeeProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"feeNew","type":"uint24"}],"name":"setSwapFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slot0","outputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"observationIndex","type":"uint16"},{"internalType":"uint16","name":"observationCardinality","type":"uint16"},{"internalType":"uint16","name":"observationCardinalityNext","type":"uint16"},{"internalType":"uint8","name":"feeProtocol","type":"uint8"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"name":"snapshotCumulativesInside","outputs":[{"internalType":"int56","name":"tickCumulativeInside","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityInsideX128","type":"uint160"},{"internalType":"uint32","name":"secondsInside","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"int256","name":"amountSpecified","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickBitmap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint128","name":"liquidityGross","type":"uint128"},{"internalType":"int128","name":"liquidityNet","type":"int128"},{"internalType":"uint256","name":"feeGrowthOutside0X128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthOutside1X128","type":"uint256"},{"internalType":"int56","name":"tickCumulativeOutside","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityOutsideX128","type":"uint160"},{"internalType":"uint32","name":"secondsOutside","type":"uint32"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101595760003560e01c806370cf754a116100c957806370cf754a1461056b57806385b6672914610573578063883bdbfd146105b0578063a34123a7146106b7578063a38807f2146106f1578063b613a1411461074c578063c45a01551461076c578063d0c93a7c14610774578063d21220a714610793578063ddca3f431461079b578063e4c3a8f8146107bb578063f3058399146107dd578063f30dba93146107e5578063f637731d1461086757610159565b80630dfe16811461015e578063128acb08146101825780631a6865021461022f5780631ad8b03b14610253578063252c09d71461028a57806332148f67146102e15780633850c7bd146103045780633c8a7d8d1461035d57806346141319146103fd578063490e6cbc146104175780634f1eb3d8146104a1578063514ea4bf146104f25780635339c2961461054b575b600080fd5b61016661088d565b604080516001600160a01b039092168252519081900360200190f35b610216600480360360a081101561019857600080fd5b6001600160a01b0382358116926020810135151592604082013592606083013516919081019060a081016080820135600160201b8111156101d857600080fd5b8201836020820111156101ea57600080fd5b803590602001918460018302840111600160201b8311171561020b57600080fd5b5090925090506108b1565b6040805192835260208301919091528051918290030190f35b6102376113fc565b604080516001600160801b039092168252519081900360200190f35b61025b61140b565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b6102a7600480360360208110156102a057600080fd5b5035611425565b6040805163ffffffff909516855260069390930b60208501526001600160a01b039091168383015215156060830152519081900360800190f35b610302600480360360208110156102f757600080fd5b503561ffff1661146a565b005b61030c611562565b604080516001600160a01b03909816885260029690960b602088015261ffff9485168787015292841660608701529216608085015260ff90911660a0840152151560c0830152519081900360e00190f35b610216600480360360a081101561037357600080fd5b6001600160a01b03823516916020810135600290810b92604083013590910b916001600160801b036060820135169181019060a081016080820135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b5090925090506115b2565b61040561186c565b60408051918252519081900360200190f35b6103026004803603608081101561042d57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561046357600080fd5b82018360208201111561047557600080fd5b803590602001918460018302840111600160201b8311171561049657600080fd5b509092509050611872565b61025b600480360360a08110156104b757600080fd5b506001600160a01b03813516906020810135600290810b91604081013590910b906001600160801b0360608201358116916080013516611c84565b61050f6004803603602081101561050857600080fd5b5035611ea0565b604080516001600160801b0396871681526020810195909552848101939093529084166060840152909216608082015290519081900360a00190f35b6104056004803603602081101561056157600080fd5b503560010b611edd565b610237611eef565b61025b6004803603606081101561058957600080fd5b506001600160a01b03813516906001600160801b0360208201358116916040013516611f13565b61061e600480360360208110156105c657600080fd5b810190602081018135600160201b8111156105e057600080fd5b8201836020820111156105f257600080fd5b803590602001918460208302840111600160201b8311171561061357600080fd5b5090925090506121e0565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561066257818101518382015260200161064a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156106a1578181015183820152602001610689565b5050505090500194505050505060405180910390f35b610216600480360360608110156106cd57600080fd5b508035600290810b91602081013590910b90604001356001600160801b0316612270565b61071b6004803603604081101561070757600080fd5b508035600290810b9160200135900b6123ea565b6040805160069490940b84526001600160a01b03909216602084015263ffffffff1682820152519081900360600190f35b6103026004803603602081101561076257600080fd5b503560ff166125db565b6101666126f7565b61077c61271b565b6040805160029290920b8252519081900360200190f35b61016661273f565b6107a3612763565b6040805162ffffff9092168252519081900360200190f35b610302600480360360208110156107d157600080fd5b503562ffffff1661276e565b6104056128b0565b610805600480360360208110156107fb57600080fd5b503560020b6128b6565b604080516001600160801b039099168952600f9790970b602089015287870195909552606087019390935260069190910b60808601526001600160a01b031660a085015263ffffffff1660c0840152151560e083015251908190036101000190f35b6103026004803603602081101561087d57600080fd5b50356001600160a01b0316612922565b7f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889481565b6000806108bc612bdb565b856108f2576040805162461bcd60e51b81526020600482015260016024820152600960fb1b604482015290519081900360640190fd5b6040805160e0810182526001546001600160a01b0381168252600160a01b8104600290810b810b900b602083015261ffff600160b81b8204811693830193909352600160c81b810483166060830152600160d81b8104909216608082015260ff600160e81b8304811660a0830152600160f01b909204909116151560c082018190526109a9576040805162461bcd60e51b81526020600482015260016024820152604960f81b604482015290519081900360640190fd5b876109f45780600001516001600160a01b0316866001600160a01b03161180156109ef575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038716105b610a26565b80600001516001600160a01b0316866001600160a01b0316108015610a2657506401000276a36001600160a01b038716115b610a5b576040805162461bcd60e51b81526020600482015260016024820152602560f91b604482015290519081900360640190fd5b6001805460ff60f01b191690556040805160c08101825260a083015160ff1681526005546001600160801b031660208201526000918101610a9a612c12565b63ffffffff168152602001600060060b815260200160006001600160a01b031681526020016000151581525090506000808913905060006040518060e001604052808b81526020016000815260200185600001516001600160a01b03168152602001856020015160020b81526020018c610b1657600354610b1a565b6002545b815260200160006001600160801b0316815260200184602001516001600160801b031681525090505b805115801590610b695750886001600160a01b031681604001516001600160a01b031614155b15610f0c57610b766154e8565b60408201516001600160a01b031681526060820151610bb9906007907f00000000000000000000000000000000000000000000000000000000000000088f612c16565b15156040830152600290810b810b60208301819052620d89e719910b1215610bea57620d89e7196020820152610c09565b6020810151620d89e860029190910b1315610c0957620d89e860208201525b610c168160200151612d58565b6001600160a01b031660608201526040820151610c8e908d610c50578b6001600160a01b031683606001516001600160a01b031611610c6a565b8b6001600160a01b031683606001516001600160a01b0316105b610c78578260600151610c7a565b8b5b60c0850151855160005462ffffff1661307f565b60c085015260a084015260808301526001600160a01b031660408301528215610cf057610cc48160c00151826080015101613271565b825103825260a0810151610ce690610cdb90613271565b602084015190613287565b6020830152610d2b565b610cfd8160a00151613271565b825101825260c08101516080820151610d2591610d1a9101613271565b6020840151906132a3565b60208301525b835160ff1615610d6357835160c08201805160ff92831681029290920491829003905260a0830180519091016001600160801b031690525b60c08201516001600160801b031615610da257610d968160c00151600160801b8460c001516001600160801b03166132b9565b60808301805190910190525b80606001516001600160a01b031682604001516001600160a01b03161415610ecb57806040015115610ea2578360a00151610e2c57610e0a846040015160008760200151886040015188602001518a606001516009613369909695949392919063ffffffff16565b6001600160a01b03166080860152600690810b900b6060850152600160a08501525b6000610e7882602001518e610e4357600254610e49565b84608001515b8f610e58578560800151610e5c565b6003545b608089015160608a015160408b015160069594939291906134fb565b90508c15610e84576000035b610e928360c00151826135b5565b6001600160801b031660c0840152505b8b610eb1578060200151610eba565b60018160200151035b600290810b900b6060830152610f06565b80600001516001600160a01b031682604001516001600160a01b031614610f0657610ef9826040015161366b565b600290810b900b60608301525b50610b43565b836020015160020b816060015160020b14610fda57600080610f5a86604001518660400151886020015188602001518a606001518b608001516009613957909695949392919063ffffffff16565b604085015160608601516001805461ffff60c81b1916600160c81b61ffff958616021761ffff60b81b1916600160b81b95909416949094029290921762ffffff60a01b1916600160a01b62ffffff60029490940b9390931692909202919091176001600160a01b0319166001600160a01b0390911617905550610fff9050565b6040810151600180546001600160a01b0319166001600160a01b039092169190911790555b8060c001516001600160801b031683602001516001600160801b0316146110455760c0810151600580546001600160801b0319166001600160801b039092169190911790555b8a1561109557608081015160025560a08101516001600160801b0316156110905760a0810151600480546001600160801b031981166001600160801b03918216909301169190911790555b6110db565b608081015160035560a08101516001600160801b0316156110db5760a0810151600480546001600160801b03808216600160801b92839004821690940116029190911790555b8115158b1515146110f457602081015181518b03611101565b80600001518a0381602001515b90965094508a15611238576000851215611143576111437f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b8d87600003613add565b600061114d613c2b565b9050336001600160a01b031663fa461e3388888c8c6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b1580156111d157600080fd5b505af11580156111e5573d6000803e3d6000fd5b505050506111f1613c2b565b6111fb8289613d64565b1115611232576040805162461bcd60e51b81526020600482015260016024820152604b60f81b604482015290519081900360640190fd5b50611360565b600086121561126f5761126f7f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388948d88600003613add565b6000611279613d74565b9050336001600160a01b031663fa461e3388888c8c6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b1580156112fd57600080fd5b505af1158015611311573d6000803e3d6000fd5b5050505061131d613d74565b6113278288613d64565b111561135e576040805162461bcd60e51b81526020600482015260016024820152601360fa1b604482015290519081900360640190fd5b505b60408082015160c083015160608085015184518b8152602081018b90526001600160a01b03948516818701526001600160801b039093169183019190915260020b60808201529151908e169133917fc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca679181900360a00190a350506001805460ff60f01b1916600160f01b17905550919890975095505050505050565b6005546001600160801b031681565b6004546001600160801b0380821691600160801b90041682565b60098161ffff811061143657600080fd5b015463ffffffff81169150600160201b810460060b90600160581b81046001600160a01b031690600160f81b900460ff1684565b600154600160f01b900460ff166114ac576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b191690556114c1612bdb565b600154600160d81b900461ffff1660006114dd60098385613e0c565b6001805461ffff808416600160d81b810261ffff60d81b199093169290921790925591925083161461154a576040805161ffff80851682528316602082015281517fac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a929181900390910190a15b50506001805460ff60f01b1916600160f01b17905550565b6001546001600160a01b03811690600160a01b810460020b9061ffff600160b81b8204811691600160c81b8104821691600160d81b8204169060ff600160e81b8204811691600160f01b90041687565b6001546000908190600160f01b900460ff166115f9576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b191690556001600160801b03851661161957600080fd5b60008061166760405180608001604052808c6001600160a01b031681526020018b60020b81526020018a60020b815260200161165d8a6001600160801b0316613eaf565b600f0b9052613ec0565b9250925050819350809250600080600086111561168957611686613c2b565b91505b841561169a57611697613d74565b90505b336001600160a01b031663d348799787878b8b6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b15801561171c57600080fd5b505af1158015611730573d6000803e3d6000fd5b50505050600086111561178657611745613c2b565b61174f8388613d64565b1115611786576040805162461bcd60e51b81526020600482015260016024820152602360f91b604482015290519081900360640190fd5b84156117d557611794613d74565b61179e8287613d64565b11156117d5576040805162461bcd60e51b81526020600482015260016024820152604760f81b604482015290519081900360640190fd5b8960020b8b60020b8d6001600160a01b03167f7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde338d8b8b60405180856001600160a01b03168152602001846001600160801b0316815260200183815260200182815260200194505050505060405180910390a450506001805460ff60f01b1916600160f01b17905550919890975095505050505050565b60035481565b600154600160f01b900460ff166118b4576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b191690556118c9612bdb565b6005546001600160801b03168061190b576040805162461bcd60e51b81526020600482015260016024820152604d60f81b604482015290519081900360640190fd5b6000805461192390879062ffffff16620f4240614100565b600080549192509061193f90879062ffffff16620f4240614100565b9050600061194b613c2b565b90506000611957613d74565b9050881561198a5761198a7f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388948b8b613add565b87156119bb576119bb7f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b8b8a613add565b336001600160a01b031663e9cbafb085858a8a6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015611a3d57600080fd5b505af1158015611a51573d6000803e3d6000fd5b505050506000611a5f613c2b565b90506000611a6b613d74565b905081611a788588613d64565b1115611aaf576040805162461bcd60e51b81526020600482015260016024820152602760f91b604482015290519081900360640190fd5b80611aba8487613d64565b1115611af1576040805162461bcd60e51b81526020600482015260016024820152604f60f81b604482015290519081900360640190fd5b8382038382038115611b7b57600154600160e81b900460ff1660008115611b1f5760ff828116850204611b22565b60005b90506001600160801b03811615611b5557600480546001600160801b038082168401166001600160801b03199091161790555b611b6f818503600160801b8d6001600160801b03166132b9565b60028054909101905550505b8015611bfe57600154600160e81b900460ff1660008115611ba35760ff828116840204611ba6565b60005b90506001600160801b03811615611bd857600480546001600160801b03600160801b8083048216850182160291161790555b611bf2818403600160801b8d6001600160801b03166132b9565b60038054909101905550505b8d6001600160a01b0316336001600160a01b03167fbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca6338f8f86866040518085815260200184815260200183815260200182815260200194505050505060405180910390a350506001805460ff60f01b1916600160f01b179055505050505050505050505050565b6001546000908190600160f01b900460ff16611ccb576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b191690556000611ce7600833898961413a565b60038101549091506001600160801b0390811690861611611d085784611d17565b60038101546001600160801b03165b60038201549093506001600160801b03600160801b909104811690851611611d3f5783611d55565b6003810154600160801b90046001600160801b03165b91506001600160801b03831615611dba576003810180546001600160801b031981166001600160801b03918216869003821617909155611dba907f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894908a908616613add565b6001600160801b03821615611e20576003810180546001600160801b03600160801b808304821686900382160291811691909117909155611e20907f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b908a908516613add565b604080516001600160a01b038a1681526001600160801b0380861660208301528416818301529051600288810b92908a900b9133917f70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0919081900360600190a4506001805460ff60f01b1916600160f01b17905590969095509350505050565b60086020526000908152604090208054600182015460028301546003909301546001600160801b0392831693919281811691600160801b90041685565b60076020526000908152604090205481565b7f0000000000000000000000000000000000004ba27c6e9f4a561b61cd28546efb81565b6001546000908190600160f01b900460ff16611f5a576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b1916905560408051638da5cb5b60e01b815290516001600160a01b037f0000000000000000000000007ca1dccfb4f49564b8f13e18a67747fd428f1c401691638da5cb5b916004808301926020929190829003018186803b158015611fc757600080fd5b505afa158015611fdb573d6000803e3d6000fd5b505050506040513d6020811015611ff157600080fd5b50516001600160a01b0316331461200757600080fd5b6004546001600160801b03908116908516116120235783612030565b6004546001600160801b03165b6004549092506001600160801b03600160801b909104811690841611612056578261206a565b600454600160801b90046001600160801b03165b90506001600160801b038216156120eb576004546001600160801b038381169116141561209957600019909101905b600480546001600160801b031981166001600160801b039182168590038216179091556120eb907f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388949087908516613add565b6001600160801b03811615612171576004546001600160801b03828116600160801b90920416141561211c57600019015b600480546001600160801b03600160801b808304821685900382160291811691909117909155612171907f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b9087908416613add565b604080516001600160801b0380851682528316602082015281516001600160a01b0388169233927f596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151929081900390910190a36001805460ff60f01b1916600160f01b1790559094909350915050565b6060806121eb612bdb565b6122656121f6612c12565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600154600554600995949350600160a01b820460020b925061ffff600160b81b83048116926001600160801b0390921691600160c81b900416614199565b915091509250929050565b6001546000908190600160f01b900460ff166122b7576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b1916905560408051608081018252338152600287810b602083015286900b918101919091526000908190819061231390606081016123066001600160801b038a16613eaf565b600003600f0b9052613ec0565b92509250925081600003945080600003935060008511806123345750600084115b15612373576003830180546001600160801b038082168089018216600160801b93849004831689019092169092029091176001600160801b0319161790555b604080516001600160801b0388168152602081018790528082018690529051600289810b92908b900b9133917f0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c919081900360600190a450506001805460ff60f01b1916600160f01b179055509094909350915050565b60008060006123f7612bdb565b61240185856142f1565b600285810b810b600090815260066020819052604080832088850b90940b8352822060038401549182900b93600160381b83046001600160a01b0316928492600160d81b820463ffffffff16928492909190600160f81b900460ff168061246757600080fd5b6003820154600681900b9850600160381b81046001600160a01b03169650600160d81b810463ffffffff169450600160f81b900460ff16806124a857600080fd5b50506040805160e0810182526001546001600160a01b0381168252600160a01b8104600290810b810b810b6020840181905261ffff600160b81b8404811695850195909552600160c81b830485166060850152600160d81b8304909416608084015260ff600160e81b8304811660a0850152600160f01b909204909116151560c08301529093508e810b91900b12159050612551575093909403965090039350900390506125d4565b8a60020b816020015160020b12156125c557600061256d612c12565b60208301516040840151600554606086015193945060009384936125a3936009938893879392916001600160801b031690613369565b9a9003989098039b5050949096039290920396509091030392506125d4915050565b50949093039650039350900390505b9250925092565b600154600160f01b900460ff1661261d576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b1916905560408051638da5cb5b60e01b815290516001600160a01b037f0000000000000000000000007ca1dccfb4f49564b8f13e18a67747fd428f1c401691638da5cb5b916004808301926020929190829003018186803b15801561268a57600080fd5b505afa15801561269e573d6000803e3d6000fd5b505050506040513d60208110156126b457600080fd5b50516001600160a01b031633146126ca57600080fd5b6001805460ff60f01b1960ff909316600160e81b0260ff60e81b199091161791909116600160f01b179055565b7f0000000000000000000000007ca1dccfb4f49564b8f13e18a67747fd428f1c4081565b7f000000000000000000000000000000000000000000000000000000000000000881565b7f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b81565b60005462ffffff1681565b600154600160f01b900460ff166127b0576040805162461bcd60e51b81526020600482015260016024820152604160f81b604482015290519081900360640190fd5b6001805460ff60f01b1916905560408051638da5cb5b60e01b815290516001600160a01b037f0000000000000000000000007ca1dccfb4f49564b8f13e18a67747fd428f1c401691638da5cb5b916004808301926020929190829003018186803b15801561281d57600080fd5b505afa158015612831573d6000803e3d6000fd5b505050506040513d602081101561284757600080fd5b50516001600160a01b0316331461285d57600080fd5b620f42408162ffffff16108015612879575060018162ffffff16115b61288257600080fd5b6000805462ffffff90921662ffffff199092169190911790556001805460ff60f01b1916600160f01b179055565b60025481565b60066020819052600091825260409091208054600182015460028301546003909301546001600160801b03831694600160801b909304600f0b93919281900b90600160381b81046001600160a01b031690600160d81b810463ffffffff1690600160f81b900460ff1688565b6001546001600160a01b031615612964576040805162461bcd60e51b81526020600482015260016024820152604560f81b604482015290519081900360640190fd5b600061296f8261366b565b905060008061298761297f612c12565b6009906143b4565b915091506040518060e00160405280856001600160a01b031681526020018460020b8152602001600061ffff1681526020018361ffff1681526020018261ffff1681526020017f0000000000000000000000007ca1dccfb4f49564b8f13e18a67747fd428f1c406001600160a01b031663527eb4bc6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a2657600080fd5b505afa158015612a3a573d6000803e3d6000fd5b505050506040513d6020811015612a5057600080fd5b505160ff9081168252600160209283018190528351815485850151604080880151606089015160808a015160a08b015160c0909b01516001600160a01b03199096166001600160a01b039788161762ffffff60a01b1916600160a01b62ffffff600297880b16021761ffff60b81b1916600160b81b61ffff948516021761ffff60c81b1916600160c81b928416929092029190911761ffff60d81b1916600160d81b92909116919091021760ff60e81b1916600160e81b98909616979097029490941760ff60f01b1916600160f01b9115159190910217909155835190881681529086900b9181019190915281517f98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95929181900390910190a150505050565b60008082600281900b620d89e71981612b8457fe5b05029050600083600281900b620d89e881612b9b57fe5b0502905060008460020b83830360020b81612bb257fe5b0560010190508062ffffff166001600160801b03801681612bcf57fe5b0493505050505b919050565b306001600160a01b037f000000000000000000000000fe809a1d337bdfc98b77a1067e3819f66d8ad23f1614612c1057600080fd5b565b4290565b60008060008460020b8660020b81612c2a57fe5b05905060008660020b128015612c5157508460020b8660020b81612c4a57fe5b0760020b15155b15612c5b57600019015b8315612cd057600080612c6d83614400565b600182810b810b600090815260208d9052604090205460ff83169190911b80016000190190811680151597509294509092509085612cb257888360ff16860302612cc5565b88612cbc82614412565b840360ff168603025b965050505050612d4e565b600080612cdf83600101614400565b91509150600060018260ff166001901b031990506000818b60008660010b60010b8152602001908152602001600020541690508060001415955085612d3157888360ff0360ff16866001010102612d47565b8883612d3c836144ac565b0360ff168660010101025b9650505050505b5094509492505050565b60008060008360020b12612d6f578260020b612d77565b8260020b6000035b9050620d89e8811115612db5576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b600060018216612dc957600160801b612ddb565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615612e05576ffff97272373d413259a46990580e213a0260801c5b6004821615612e24576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615612e43576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615612e62576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615612e81576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615612ea0576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615612ebf576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615612edf576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615612eff576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615612f1f576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615612f3f576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615612f5f576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615612f7f576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615612f9f576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615612fbf576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615612fe0576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613000576e5d6af8dedb81196699c329225ee6040260801c5b6204000082161561301f576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161561303c576b048a170391f7dc42444e8fa20260801c5b60008460020b131561305757806000198161305357fe5b0490505b600160201b81061561306a57600161306d565b60005b60ff16602082901c0192505050919050565b60008080806001600160a01b03808916908a1610158187128015906131045760006130b88989620f42400362ffffff16620f42406132b9565b9050826130d1576130cc8c8c8c6001614595565b6130de565b6130de8b8d8c6001614610565b95508581106130ef578a96506130fe565b6130fb8c8b83866146bb565b96505b5061314e565b8161311b576131168b8b8b6000614610565b613128565b6131288a8c8b6000614595565b935083886000031061313c5789955061314e565b61314b8b8a8a60000385614707565b95505b6001600160a01b038a81169087161482156131b15780801561316d5750815b6131835761317e878d8c6001614610565b613185565b855b9550808015613192575081155b6131a8576131a3878d8c6000614595565b6131aa565b845b94506131fb565b8080156131bb5750815b6131d1576131cc8c888c6001614595565b6131d3565b855b95508080156131e0575081155b6131f6576131f18c888c6000614610565b6131f8565b845b94505b8115801561320b57508860000385115b15613217578860000394505b81801561323657508a6001600160a01b0316876001600160a01b031614155b15613245578589039350613262565b61325f868962ffffff168a620f42400362ffffff16614100565b93505b50505095509550955095915050565b6000600160ff1b821061328357600080fd5b5090565b8082038281131560008312151461329d57600080fd5b92915050565b8181018281121560008312151461329d57600080fd5b60008080600019858709868602925082811090839003039050806132ef57600084116132e457600080fd5b508290049050613362565b8084116132fb57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b60008063ffffffff871661340f576000898661ffff1661ffff811061338a57fe5b60408051608081018252919092015463ffffffff808216808452600160201b8304600690810b810b900b6020850152600160581b83046001600160a01b031694840194909452600160f81b90910460ff16151560608301529092508a16146133fb576133f8818a8988614753565b90505b8060200151816040015192509250506134ef565b8688036000806134248c8c858c8c8c8c6147f6565b91509150816000015163ffffffff168363ffffffff1614156134565781602001518260400151945094505050506134ef565b805163ffffffff8481169116141561347e5780602001518160400151945094505050506134ef565b8151815160208085015190840151918390039286039163ffffffff80841692908516910360060b816134ac57fe5b05028460200151018263ffffffff168263ffffffff1686604001518660400151036001600160a01b031602816134de57fe5b048560400151019650965050505050505b97509795505050505050565b600295860b860b60009081526020979097526040909620600181018054909503909455938301805490920390915560038201805463ffffffff600160d81b6001600160a01b03600160381b808504821690960316909402600160381b600160d81b031990921691909117600681810b90960390950b66ffffffffffffff1666ffffffffffffff199095169490941782810485169095039093160263ffffffff60d81b1990931692909217905554600160801b9004600f0b90565b60008082600f0b121561361a57826001600160801b03168260000384039150816001600160801b031610613615576040805162461bcd60e51b81526020600482015260026024820152614c5360f01b604482015290519081900360640190fd5b61329d565b826001600160801b03168284019150816001600160801b0316101561329d576040805162461bcd60e51b81526020600482015260026024820152614c4160f01b604482015290519081900360640190fd5b60006401000276a36001600160a01b038316108015906136a7575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038316105b6136dc576040805162461bcd60e51b81526020600482015260016024820152602960f91b604482015290519081900360640190fd5b640100000000600160c01b03602083901b166001600160801b03811160071b81811c6001600160401b03811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c9790881196179094179092171790911717176080811061376f57607f810383901c9150613779565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c6001603f1b161760c19b909b1c6001603e1b169a909a1760c29990991c6001603d1b169890981760c39790971c6001603c1b169690961760c49590951c6001603b1b169490941760c59390931c6001603a1b169290921760c69190911c600160391b161760c79190911c600160381b161760c89190911c600160371b161760c99190911c600160361b161760ca9190911c600160351b161760cb9190911c600160341b161760cc9190911c600160331b161760cd9190911c600160321b1617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461394857886001600160a01b031661392c82612d58565b6001600160a01b031611156139415781613943565b805b61394a565b815b9998505050505050505050565b6000806000898961ffff1661ffff811061396d57fe5b60408051608081018252919092015463ffffffff808216808452600160201b8304600690810b810b900b6020850152600160581b83046001600160a01b031694840194909452600160f81b90910460ff1615156060830152909250891614156139dc57888592509250506134ef565b8461ffff168461ffff161180156139fd57506001850361ffff168961ffff16145b15613a0a57839150613a0e565b8491505b8161ffff168960010161ffff1681613a2257fe5b069250613a3181898989614753565b8a8461ffff1661ffff8110613a4257fe5b825191018054602084015160408501516060909501511515600160f81b026001600160f81b036001600160a01b03909616600160581b02600160581b600160f81b031960069390930b66ffffffffffffff16600160201b026affffffffffffff000000001963ffffffff90971663ffffffff199095169490941795909516929092171692909217929092161790555097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b60208310613b595780518252601f199092019160209182019101613b3a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613bbb576040519150601f19603f3d011682016040523d82523d6000602084013e613bc0565b606091505b5091509150818015613bee575080511580613bee5750808060200190516020811015613beb57600080fd5b50515b613c24576040805162461bcd60e51b815260206004820152600260248201526114d560f21b604482015290519081900360640190fd5b5050505050565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17815291518151600093849384936001600160a01b037f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388941693919290918291908083835b60208310613cc45780518252601f199092019160209182019101613ca5565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114613d24576040519150601f19603f3d011682016040523d82523d6000602084013e613d29565b606091505b5091509150818015613d3d57506020815110155b613d4657600080fd5b808060200190516020811015613d5b57600080fd5b50519250505090565b8082018281101561329d57600080fd5b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17815291518151600093849384936001600160a01b037f00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b16939192909182919080838360208310613cc45780518252601f199092019160209182019101613ca5565b6000808361ffff1611613e4a576040805162461bcd60e51b81526020600482015260016024820152604960f81b604482015290519081900360640190fd5b8261ffff168261ffff1611613e60575081613362565b825b8261ffff168161ffff161015613ea6576001858261ffff1661ffff8110613e8557fe5b01805463ffffffff191663ffffffff92909216919091179055600101613e62565b50909392505050565b80600f81900b8114612bd657600080fd5b6000806000613ecd612bdb565b613edf846020015185604001516142f1565b6040805160e0810182526001546001600160a01b0381168252600160a01b8104600290810b810b900b602080840182905261ffff600160b81b8404811685870152600160c81b84048116606080870191909152600160d81b8504909116608086015260ff600160e81b8504811660a0870152600160f01b909404909316151560c085015288519089015194890151928901519394613f8394919390929091906149f0565b93508460600151600f0b6000146140f857846020015160020b816020015160020b1215613fd857613fd1613fba8660200151612d58565b613fc78760400151612d58565b8760600151614ba5565b92506140f8565b846040015160020b816020015160020b12156140ce5760055460408201516001600160801b039091169061402a9061400e612c12565b6020850151606086015160808701516009949392918791613957565b6001805461ffff60c81b1916600160c81b61ffff938416021761ffff60b81b1916600160b81b93909216929092021790558151604087015161407a919061407090612d58565b8860600151614ba5565b935061409861408c8760200151612d58565b83516060890151614be9565b92506140a88187606001516135b5565b600580546001600160801b0319166001600160801b0392909216919091179055506140f8565b6140f56140de8660200151612d58565b6140eb8760400151612d58565b8760600151614be9565b91505b509193909250565b600061410d8484846132b9565b90506000828061411957fe5b848609111561336257600019811061413057600080fd5b6001019392505050565b6040805160609490941b6001600160601b031916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051808403601a018152603a90930181528251928201929092206000908152929052902090565b60608060008361ffff16116141d9576040805162461bcd60e51b81526020600482015260016024820152604960f81b604482015290519081900360640190fd5b86516001600160401b03811180156141f057600080fd5b5060405190808252806020026020018201604052801561421a578160200160208202803683370190505b50915086516001600160401b038111801561423457600080fd5b5060405190808252806020026020018201604052801561425e578160200160208202803683370190505b50905060005b87518110156142e45761428f8a8a8a848151811061427e57fe5b60200260200101518a8a8a8a613369565b84838151811061429b57fe5b602002602001018484815181106142ae57fe5b60200260200101826001600160a01b03166001600160a01b03168152508260060b60060b81525050508080600101915050614264565b5097509795505050505050565b8060020b8260020b1261432f576040805162461bcd60e51b81526020600482015260016024820152602160f91b604482015290519081900360640190fd5b620d89e719600283900b1215614370576040805162461bcd60e51b81526020600482015260016024820152604360f81b604482015290519081900360640190fd5b620d89e8600282900b13156143b0576040805162461bcd60e51b81526020600482015260016024820152601160fa1b604482015290519081900360640190fd5b5050565b6040805160808101825263ffffffff9283168082526000602083018190529282019290925260016060909101819052835463ffffffff1916909117909116600160f81b17909155908190565b60020b600881901d9161010090910790565b600080821161442057600080fd5b600160801b821061443357608091821c91015b600160401b821061444657604091821c91015b600160201b821061445957602091821c91015b62010000821061446b57601091821c91015b610100821061447c57600891821c91015b6010821061448c57600491821c91015b6004821061449c57600291821c91015b60028210612bd657600101919050565b60008082116144ba57600080fd5b5060ff6001600160801b038216156144d557607f19016144dd565b608082901c91505b6001600160401b038216156144f557603f19016144fd565b604082901c91505b63ffffffff82161561451257601f190161451a565b602082901c91505b61ffff82161561452d57600f1901614535565b601082901c91505b60ff821615614547576007190161454f565b600882901c91505b600f8216156145615760031901614569565b600482901c91505b600382161561457b5760011901614583565b600282901c91505b6001821615612bd65760001901919050565b6000836001600160a01b0316856001600160a01b031611156145b5579293925b816145e2576145dd836001600160801b03168686036001600160a01b0316600160601b6132b9565b614605565b614605836001600160801b03168686036001600160a01b0316600160601b614100565b90505b949350505050565b6000836001600160a01b0316856001600160a01b03161115614630579293925b600160601b600160e01b03606084901b166001600160a01b03868603811690871661465a57600080fd5b8361468a57866001600160a01b031661467d8383896001600160a01b03166132b9565b8161468457fe5b046146b0565b6146b06146a18383896001600160a01b0316614100565b886001600160a01b0316614c18565b979650505050505050565b600080856001600160a01b0316116146d257600080fd5b6000846001600160801b0316116146e857600080fd5b816146fa576145dd8585856001614c23565b6146058585856001614d04565b600080856001600160a01b03161161471e57600080fd5b6000846001600160801b03161161473457600080fd5b81614746576145dd8585856000614d04565b6146058585856000614c23565b61475b615524565b600085600001518503905060405180608001604052808663ffffffff1681526020018263ffffffff168660020b0288602001510160060b81526020016000856001600160801b0316116147af5760016147b1565b845b6001600160801b031663ffffffff60801b608085901b16816147cf57fe5b048860400151016001600160a01b0316815260200160011515815250915050949350505050565b6147fe615524565b614806615524565b888561ffff1661ffff811061481757fe5b60408051608081018252919092015463ffffffff8116808352600160201b8204600690810b810b900b6020840152600160581b82046001600160a01b031693830193909352600160f81b900460ff1615156060820152925061487b90899089614de7565b156148b3578663ffffffff16826000015163ffffffff16141561489d576134ef565b816148aa83898988614753565b915091506134ef565b888361ffff168660010161ffff16816148c857fe5b0661ffff1661ffff81106148d857fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b9091041615156060820181905290925061498d57604080516080810182528a5463ffffffff81168252600160201b8104600690810b810b900b6020830152600160581b81046001600160a01b031692820192909252600160f81b90910460ff161515606082015291505b61499c88836000015189614de7565b6149d3576040805162461bcd60e51b815260206004820152600360248201526213d31160ea1b604482015290519081900360640190fd5b6149e08989898887614ea8565b9150915097509795505050505050565b60006149ff600887878761413a565b60025460035491925090600080600f87900b15614b45576000614a20612c12565b6001546005549192506000918291614a6a9160099186918591600160a01b810460020b9161ffff600160b81b83048116926001600160801b0390921691600160c81b900416613369565b9092509050614aa460068d8b8d8b8b87898b60007f0000000000000000000000000000000000004ba27c6e9f4a561b61cd28546efb615046565b9450614adb60068c8b8d8b8b87898b60017f0000000000000000000000000000000000004ba27c6e9f4a561b61cd28546efb615046565b93508415614b0f57614b0f60078d7f00000000000000000000000000000000000000000000000000000000000000086151ff565b8315614b4157614b4160078c7f00000000000000000000000000000000000000000000000000000000000000086151ff565b5050505b600080614b5760068c8c8b8a8a615265565b9092509050614b68878a8484615311565b600089600f0b1215614b96578315614b8557614b8560068c6154a6565b8215614b9657614b9660068b6154a6565b50505050505095945050505050565b60008082600f0b12614bcb57614bc6614bc18585856001614610565b613271565b614608565b614bde614bc18585856000036000614610565b600003949350505050565b60008082600f0b12614c0557614bc6614bc18585856001614595565b614bde614bc18585856000036000614595565b808204910615150190565b60008115614c965760006001600160a01b03841115614c5957614c5484600160601b876001600160801b03166132b9565b614c71565b6001600160801b038516606085901b81614c6f57fe5b045b9050614c8e614c896001600160a01b03881683613d64565b6154d2565b915050614608565b60006001600160a01b03841115614cc457614cbf84600160601b876001600160801b0316614100565b614cdb565b614cdb606085901b6001600160801b038716614c18565b905080866001600160a01b031611614cf257600080fd5b6001600160a01b038616039050614608565b600082614d12575083614608565b600160601b600160e01b03606085901b168215614da0576001600160a01b03861684810290858281614d4057fe5b041415614d7157818101828110614d6f57614d6583896001600160a01b031683614100565b9350505050614608565b505b614d9782614d92878a6001600160a01b03168681614d8b57fe5b0490613d64565b614c18565b92505050614608565b6001600160a01b03861684810290858281614db757fe5b04148015614dc457508082115b614dcd57600080fd5b808203614d65614c89846001600160a01b038b1684614100565b60008363ffffffff168363ffffffff1611158015614e1157508363ffffffff168263ffffffff1611155b15614e2d578163ffffffff168363ffffffff1611159050613362565b60008463ffffffff168463ffffffff1611614e54578363ffffffff16600160201b01614e5c565b8363ffffffff165b64ffffffffff16905060008563ffffffff168463ffffffff1611614e8c578363ffffffff16600160201b01614e94565b8363ffffffff165b64ffffffffff169091111595945050505050565b614eb0615524565b614eb8615524565b60008361ffff168560010161ffff1681614ece57fe5b0661ffff169050600060018561ffff16830103905060005b506002818301048961ffff87168281614efb57fe5b0661ffff8110614f0757fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b90910416151560608201819052909550614f7157806001019250614ee6565b898661ffff168260010181614f8257fe5b0661ffff8110614f8e57fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b90910416151560608201528551909450600090614ff8908b908b614de7565b905080801561501157506150118a8a8760000151614de7565b1561501c5750615039565b8061502c57600182039250615033565b8160010193505b50614ee6565b5050509550959350505050565b60028a810b900b600090815260208c90526040812080546001600160801b031682615071828d6135b5565b9050846001600160801b0316816001600160801b031611156150bf576040805162461bcd60e51b81526020600482015260026024820152614c4f60f01b604482015290519081900360640190fd5b6001600160801b038281161590821615811415945015615164578c60020b8e60020b1361514c57600183018b9055600283018a9055600383018054600160381b600160d81b031916600160381b6001600160a01b038c16021766ffffffffffffff191666ffffffffffffff60068b900b161763ffffffff60d81b1916600160d81b63ffffffff8a16021790555b6003830180546001600160f81b0316600160f81b1790555b82546001600160801b0319166001600160801b038216178355856151ad5782546151a8906151a390600160801b9004600f90810b810b908f900b6132a3565b613eaf565b6151ce565b82546151ce906151a390600160801b9004600f90810b810b908f900b613287565b8354600f9190910b6001600160801b03908116600160801b0291161790925550909c9b505050505050505050505050565b8060020b8260020b8161520e57fe5b0760020b1561521c57600080fd5b6000806152378360020b8560020b8161523157fe5b05614400565b600191820b820b60009081526020979097526040909620805460ff9097169190911b90951890945550505050565b600285810b80820b60009081526020899052604080822088850b850b83529082209193849391929184918291908a900b126152ab575050600182015460028301546152be565b8360010154880391508360020154870390505b6000808b60020b8b60020b12156152e0575050600183015460028401546152f3565b84600101548a0391508460020154890390505b92909803979097039b96909503949094039850939650505050505050565b6040805160a08101825285546001600160801b0390811682526001870154602083015260028701549282019290925260038601548083166060830152600160801b900490911660808201526000600f85900b6153b05781516001600160801b03166153a8576040805162461bcd60e51b815260206004820152600260248201526104e560f41b604482015290519081900360640190fd5b5080516153bf565b81516153bc90866135b5565b90505b60006153e38360200151860384600001516001600160801b0316600160801b6132b9565b905060006154098460400151860385600001516001600160801b0316600160801b6132b9565b905086600f0b6000146154305787546001600160801b0319166001600160801b0384161788555b60018801869055600288018590556001600160801b03821615158061545e57506000816001600160801b0316115b1561549c576003880180546001600160801b031981166001600160801b039182168501821617808216600160801b9182900483168501909216021790555b5050505050505050565b600290810b810b6000908152602092909252604082208281556001810183905590810182905560030155565b806001600160a01b0381168114612bd657600080fd5b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b6040805160808101825260008082526020820181905291810182905260608101919091529056fea2646970667358221220115e9297994ad8c2b9b4b8722a1bfab2d700fc84b251eadb1e6c803f7556164464736f6c63430007060033
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.