Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x06ced3306b33cabc9e25ba333bb10c2bace2b6d82af20c4a6d37297fa675dfa2 | Approve | (pending) | 12 days ago | IN | 0 ETH | (Pending) | |||
Approve | 21212163 | 3 hrs ago | IN | 0 ETH | 0.00045365 | ||||
Approve | 21211091 | 6 hrs ago | IN | 0 ETH | 0.00050595 | ||||
Approve | 21210905 | 7 hrs ago | IN | 0 ETH | 0.00046952 | ||||
Approve | 21210774 | 7 hrs ago | IN | 0 ETH | 0.00043895 | ||||
Approve | 21210121 | 10 hrs ago | IN | 0 ETH | 0.00056129 | ||||
Approve | 21209931 | 10 hrs ago | IN | 0 ETH | 0.00040378 | ||||
Transfer | 21209344 | 12 hrs ago | IN | 0 ETH | 0.0007107 | ||||
Approve | 21209339 | 12 hrs ago | IN | 0 ETH | 0.00057998 | ||||
Transfer | 21209326 | 12 hrs ago | IN | 0 ETH | 0.00053965 | ||||
Transfer | 21209311 | 12 hrs ago | IN | 0 ETH | 0.00058403 | ||||
Approve | 21208686 | 14 hrs ago | IN | 0 ETH | 0.0007325 | ||||
Approve | 21208287 | 16 hrs ago | IN | 0 ETH | 0.00052108 | ||||
Transfer | 21207655 | 18 hrs ago | IN | 0 ETH | 0.00042525 | ||||
Transfer | 21207625 | 18 hrs ago | IN | 0 ETH | 0.00063107 | ||||
Approve | 21207487 | 18 hrs ago | IN | 0 ETH | 0.00053625 | ||||
Transfer | 21206893 | 20 hrs ago | IN | 0 ETH | 0.00052775 | ||||
Transfer | 21206630 | 21 hrs ago | IN | 0 ETH | 0.00057349 | ||||
Approve | 21206447 | 22 hrs ago | IN | 0 ETH | 0.0004664 | ||||
Approve | 21205819 | 24 hrs ago | IN | 0 ETH | 0.00055736 | ||||
Transfer | 21205726 | 24 hrs ago | IN | 0 ETH | 0.00061711 | ||||
Transfer | 21205683 | 24 hrs ago | IN | 0 ETH | 0.00051125 | ||||
Approve | 21205110 | 26 hrs ago | IN | 0 ETH | 0.00044225 | ||||
Approve | 21204283 | 29 hrs ago | IN | 0 ETH | 0.00059143 | ||||
Transfer | 21204283 | 29 hrs ago | IN | 0 ETH | 0.0007895 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RocketXExchangeV2
Compiler Version
v0.8.21+commit.d9974bed
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-03-12 */ //SPDX-License-Identifier: MIT pragma solidity >=0.5.0; /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface 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 pool event 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 liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); } pragma solidity >=0.5.0; /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IUniswapV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees /// @param feeProtocol0 new protocol fee for token0 of the pool /// @param feeProtocol1 new protocol fee for token1 of the pool function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external; /// @notice Collect the protocol fee accrued to the pool /// @param recipient The address to which collected protocol fees should be sent /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1 /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0 /// @return amount0 The protocol fee collected in token0 /// @return amount1 The protocol fee collected in token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); } pragma solidity >=0.5.0; /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface 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.96 function 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 callback function mint( address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; } pragma solidity >=0.5.0; /// @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 /// timestamp function observe(uint32[] calldata secondsAgos) external view returns (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. /// @param tickLower The lower tick of the range /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) external view returns ( int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside ); } pragma solidity >=0.5.0; /// @title Pool state that can change /// @notice These methods compose the pool's state, and can change with any frequency including multiple times /// per transaction interface 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 reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper, /// liquidityNet how much liquidity changes when the pool price crosses the tick, /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// secondsOutside the seconds spent on the other side of the tick from the current tick, /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks(int24 tick) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return _liquidity The amount of liquidity in the position, /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions(bytes32 key) external view returns ( uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// Returns initialized whether the observation has been initialized and the values are safe to use function observations(uint256 index) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); } pragma solidity >=0.5.0; /// @title Pool state that never changes /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values interface IUniswapV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function 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 /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... /// This value is an int24 to avoid casting even though it is always positive. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); } pragma solidity >=0.5.0; /// @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 pieces interface IUniswapV3Pool is IUniswapV3PoolImmutables, IUniswapV3PoolState, IUniswapV3PoolDerivedState, IUniswapV3PoolActions, IUniswapV3PoolOwnerActions, IUniswapV3PoolEvents { } pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } pragma solidity >=0.5.0; /// @title The interface for the Uniswap V3 Factory /// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees interface 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 changed event 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 pool event 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 /// @param fee The enabled fee, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing); /// @notice Returns the current owner of the factory /// @dev Can be changed by the current owner via setOwner /// @return The address of the factory owner function owner() external view returns (address); /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee /// @return The tick spacing function feeAmountTickSpacing(uint24 fee) external view returns (int24); /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order /// @param tokenA The contract address of either token0 or token1 /// @param tokenB The contract address of the other token /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @return pool The pool address function getPool( address tokenA, address tokenB, uint24 fee ) external view returns (address pool); /// @notice Creates a pool for the given two tokens and fee /// @param tokenA One of the two tokens in the desired pool /// @param tokenB The other of the two tokens in the desired pool /// @param fee The desired fee for the pool /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments /// are invalid. /// @return pool The address of the newly created pool function createPool( address tokenA, address tokenB, uint24 fee ) external returns (address pool); /// @notice Updates the owner of the factory /// @dev Must be called by the current owner /// @param _owner The new owner of the factory function setOwner(address _owner) external; /// @notice Enables a fee amount with the given tickSpacing /// @dev Fee amounts may never be removed once enabled /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6) /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount function enableFeeAmount(uint24 fee, int24 tickSpacing) external; } pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity ^0.8.0; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner"); _transferOwnership(sender); } } pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } pragma solidity 0.8.21; contract RocketXExchangeV2 is ERC20, ERC20Burnable, Ownable2Step { using Address for address; uint256 public buyTax = 5000; uint256 public sellTax = 5000; uint256 public burnFee = 70; uint256 public devFee = 30; uint256 constant _DIVIDER = 10000; uint256 constant _PERCENT = 100; uint256 constant _CAP = 50000000 * 10 ** 18; uint256 constant _MINT_CAP = 99300000 * 10 ** 18; uint256 constant _UINT0 = 0; address constant _ADDR0 = address(0); uint256 public burned; mapping(address => bool) public excluded; mapping(address => bool) public pool; constructor() ERC20("RocketX Exchange V2", "RVF") { _mint(_msgSender(), 71300000 * 10 ** 18); excluded[msg.sender] = true; } function _calculateFee(uint256 total) internal view returns (uint256 burnAmount, uint256 devAmount) { if (burned >= _CAP) { burnAmount = _UINT0; devAmount = total; } else { if (burnFee != _UINT0) { burnAmount = total * burnFee / _PERCENT; } if (devFee != _UINT0) { devAmount = total * devFee / _PERCENT; } } } function _calculateTax(uint256 amount, uint256 tax) internal pure returns (uint256) { if ((amount * tax) >= _DIVIDER) return amount * tax / _DIVIDER; else return 0; } function _isV2Pool(address target) internal view returns (bool) { IUniswapV2Pair pairContract = IUniswapV2Pair(target); address token0; address token1; try pairContract.token0() returns (address _token0) { token0 = _token0; } catch (bytes memory) { return false; } try pairContract.token1() returns (address _token1) { token1 = _token1; } catch (bytes memory) { return false; } return token0 != _ADDR0 && token1 != _ADDR0; } function _isV3Pool(address target) internal view returns (bool) { IUniswapV3Pool poolContract = IUniswapV3Pool(target); address token0; address token1; uint24 fee; try poolContract.token0() returns (address _token0) { token0 = _token0; } catch (bytes memory) { return false; } try poolContract.token1() returns (address _token1) { token1 = _token1; } catch (bytes memory) { return false; } try poolContract.fee() returns (uint24 _fee) { fee = _fee; } catch (bytes memory) { return false; } return token0 != _ADDR0 && token1 != _ADDR0 && fee != _UINT0; } function _isLiquidityPool(address target) internal returns (bool) { if (pool[target]) { return true; } if (target.isContract() && (_isV2Pool(target) || _isV3Pool(target))) { pool[target] = true; return true; } return false; } function _determineTax(address from, address to) internal returns (uint256) { return excluded[from] || excluded[to] ? _UINT0 : _isLiquidityPool(from) ? buyTax : _isLiquidityPool(to) ? sellTax : _UINT0; } function _specialBurn(address from, uint256 amount) internal { _burn(from, amount); burned += amount; } function _applyFee(address from, uint256 total) internal { (uint256 toBurn, uint256 toDev) = _calculateFee(total); if (toDev != _UINT0) { _transfer(from, owner(), toDev); } if (toBurn != _UINT0) { _specialBurn(from, toBurn); } } function _applyTax(address from, address to, uint256 amount, uint256 tax) internal { uint256 total = _calculateTax(amount, tax); if (total == _UINT0) { _transfer(from, to, amount); } else { uint256 afterTax = amount - total; _transfer(from, to, afterTax); _applyFee(from, total); } } function transfer(address to, uint256 amount) public virtual override(ERC20) returns (bool) { address owner = _msgSender(); uint256 tax = _determineTax(owner, to); if (tax == _UINT0) { _transfer(owner, to, amount); } else { _applyTax(owner, to, amount, tax); } return true; } function transferFrom(address from, address to, uint256 amount) public virtual override(ERC20) returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); uint256 tax = _determineTax(from, to); if (tax == _UINT0) { _transfer(from, to, amount); } else { _applyTax(from, to, amount, tax); } return true; } function mint(uint256 amount) external onlyOwner { require(totalSupply() + amount * 10 ** 18 <= _MINT_CAP, "Token supply exceeds max allowed"); _mint(_msgSender(), amount * 10 ** 18); } function burn(uint256 amount) public override(ERC20Burnable) { _specialBurn(_msgSender(), amount * 10 ** 18); } function burnFrom(address account, uint256 amount) public override(ERC20Burnable) { _spendAllowance(account, _msgSender(), amount * 10 ** 18); _specialBurn(account, amount * 10 ** 18); } function updateTax(uint256 tBuy, uint256 tSell) external onlyOwner { require(tBuy <= _DIVIDER && tSell <= _DIVIDER, "Tax Exceeds Allowed Range"); buyTax = tBuy; sellTax = tSell; } function updateFee(uint256 fBurn, uint256 fDev) external onlyOwner { require(fBurn + fDev == 100, "Fee Should Be Equal"); burnFee = fBurn; devFee = fDev; } function updateExcluded(address tExcluded, bool status) external onlyOwner { excluded[tExcluded] = status; } function updatePool(address tPool, bool status) external onlyOwner { pool[tPool] = status; } function transferAnyERC20Token(address tokenAddress, uint256 tokens) external onlyOwner returns (bool) { if (tokenAddress == _ADDR0) { (bool success,) = msg.sender.call{value: address(this).balance}(""); return success; } else { return IERC20(tokenAddress).transfer(owner(), tokens); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tExcluded","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"updateExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fBurn","type":"uint256"},{"internalType":"uint256","name":"fDev","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tPool","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tBuy","type":"uint256"},{"internalType":"uint256","name":"tSell","type":"uint256"}],"name":"updateTax","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526113886007556113886008556046600955601e600a5534801562000026575f80fd5b506040518060400160405280601381526020017f526f636b6574582045786368616e67652056320000000000000000000000000081525060405180604001604052806003815260200162292b2360e91b81525081600390816200008a9190620002c7565b506004620000998282620002c7565b505050620000b6620000b0620000ec60201b60201c565b620000f0565b620000cd336a3afa5cbeb279c88a8000006200010e565b335f908152600c60205260409020805460ff19166001179055620003b5565b3390565b600680546001600160a01b03191690556200010b81620001d2565b50565b6001600160a01b038216620001695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060025f8282546200017c91906200038f565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200025157607f821691505b6020821081036200027057634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000223575f81815260208120601f850160051c810160208610156200029e5750805b601f850160051c820191505b81811015620002bf57828155600101620002aa565b505050505050565b81516001600160401b03811115620002e357620002e362000228565b620002fb81620002f484546200023c565b8462000276565b602080601f83116001811462000331575f8415620003195750858301515b5f19600386901b1c1916600185901b178555620002bf565b5f85815260208120601f198616915b82811015620003615788860151825594840194600190910190840162000340565b50858210156200037f57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620003af57634e487b7160e01b5f52601160045260245ffd5b92915050565b61189b80620003c35f395ff3fe608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806372e0e9fb11610109578063a9059cbb1161009e578063e30c39781161006e578063e30c3978146103f5578063eec8d04814610406578063f2fde38b14610419578063fce589d81461042c575f80fd5b8063a9059cbb146103b3578063cc1776d3146103c6578063dc39d06d146103cf578063dd62ed3e146103e2575f80fd5b80638da5cb5b116100d95780638da5cb5b1461036057806395d89b4114610385578063a0712d681461038d578063a457c2d7146103a0575f80fd5b806372e0e9fb1461032957806373f425611461033c57806379ba50971461034557806379cc67901461034d575f80fd5b8063313ce5671161017f5780634f7041a51161014f5780634f7041a5146102e75780636827e764146102f057806370a08231146102f9578063715018a614610321575f80fd5b8063313ce56714610290578063395093511461029f57806342966c68146102b2578063429cead1146102c5575f80fd5b806318160ddd116101ba57806318160ddd1461024357806323b872dd146102555780632740c197146102685780632f37aa6d1461027d575f80fd5b806306fdde03146101e0578063095ea7b3146101fe578063156522a814610221575b5f80fd5b6101e8610435565b6040516101f591906115dc565b60405180910390f35b61021161020c36600461163b565b6104c5565b60405190151581526020016101f5565b61021161022f366004611665565b600d6020525f908152604090205460ff1681565b6002545b6040519081526020016101f5565b610211610263366004611680565b6104de565b61027b6102763660046116be565b610525565b005b61027b61028b3660046116be565b61058c565b604051601281526020016101f5565b6102116102ad36600461163b565b6105ff565b61027b6102c03660046116de565b610620565b6102116102d3366004611665565b600c6020525f908152604090205460ff1681565b61024760075481565b610247600a5481565b610247610307366004611665565b6001600160a01b03165f9081526020819052604090205490565b61027b61063e565b61027b610337366004611702565b610651565b610247600b5481565b61027b610683565b61027b61035b36600461163b565b6106fa565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101f5565b6101e8610730565b61027b61039b3660046116de565b61073f565b6102116103ae36600461163b565b6107db565b6102116103c136600461163b565b610860565b61024760085481565b6102116103dd36600461163b565b610890565b6102476103f0366004611739565b61098d565b6006546001600160a01b031661036d565b61027b610414366004611702565b6109b7565b61027b610427366004611665565b6109e9565b61024760095481565b60606003805461044490611765565b80601f016020809104026020016040519081016040528092919081815260200182805461047090611765565b80156104bb5780601f10610492576101008083540402835291602001916104bb565b820191905f5260205f20905b81548152906001019060200180831161049e57829003601f168201915b5050505050905090565b5f336104d2818585610a5a565b60019150505b92915050565b5f336104eb858285610b7d565b5f6104f68686610bf5565b90508061050d57610508868686610c6f565b610519565b61051986868684610e11565b50600195945050505050565b61052d610e5e565b61053781836117b1565b6064146105815760405162461bcd60e51b81526020600482015260136024820152721199594814da1bdd5b1908109948115c5d585b606a1b60448201526064015b60405180910390fd5b600991909155600a55565b610594610e5e565b61271082111580156105a857506127108111155b6105f45760405162461bcd60e51b815260206004820152601960248201527f546178204578636565647320416c6c6f7765642052616e6765000000000000006044820152606401610578565b600791909155600855565b5f336104d2818585610611838361098d565b61061b91906117b1565b610a5a565b61063b3361063683670de0b6b3a76400006117c4565b610eb8565b50565b610646610e5e565b61064f5f610edc565b565b610659610e5e565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b60065433906001600160a01b031681146106f15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610578565b61063b81610edc565b610716823361071184670de0b6b3a76400006117c4565b610b7d565b61072c8261063683670de0b6b3a76400006117c4565b5050565b60606004805461044490611765565b610747610e5e565b6a522397c950e3c62680000061076582670de0b6b3a76400006117c4565b60025461077291906117b1565b11156107c05760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20737570706c792065786365656473206d617820616c6c6f7765646044820152606401610578565b61063b336107d683670de0b6b3a76400006117c4565b610ef5565b5f33816107e8828661098d565b9050838110156108485760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610578565b6108558286868403610a5a565b506001949350505050565b5f338161086d8286610bf5565b9050806108845761087f828686610c6f565b610855565b61085582868684610e11565b5f610899610e5e565b6001600160a01b0383166108f7576040515f90339047908381818185875af1925050503d805f81146108e6576040519150601f19603f3d011682016040523d82523d5f602084013e6108eb565b606091505b509092506104d8915050565b826001600160a01b031663a9059cbb6109186005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303815f875af1158015610962573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098691906117db565b90506104d8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6109bf610e5e565b6001600160a01b03919091165f908152600d60205260409020805460ff1916911515919091179055565b6109f1610e5e565b600680546001600160a01b0383166001600160a01b03199091168117909155610a226005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001600160a01b038316610abc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610578565b6001600160a01b038216610b1d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610578565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610b88848461098d565b90505f198114610bef5781811015610be25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610578565b610bef8484848403610a5a565b50505050565b6001600160a01b0382165f908152600c602052604081205460ff1680610c3257506001600160a01b0382165f908152600c602052604090205460ff165b610c6657610c3f83610fb2565b610c5e57610c4c82610fb2565b610c56575f610c68565b600854610c68565b600754610c68565b5f5b9392505050565b6001600160a01b038316610cd35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610578565b6001600160a01b038216610d355760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610578565b6001600160a01b0383165f9081526020819052604090205481811015610dac5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610578565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610bef565b5f610e1c838361103a565b905080610e3357610e2e858585610c6f565b610e57565b5f610e3e82856117f6565b9050610e4b868683610c6f565b610e55868361106b565b505b5050505050565b6005546001600160a01b0316331461064f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610578565b610ec282826110ad565b80600b5f828254610ed391906117b1565b90915550505050565b600680546001600160a01b031916905561063b816111dd565b6001600160a01b038216610f4b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610578565b8060025f828254610f5c91906117b1565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0381165f908152600d602052604081205460ff1615610fda57506001919050565b6001600160a01b0382163b151580156110065750610ff78261122e565b80611006575061100682611381565b1561103357506001600160a01b03165f908152600d60205260409020805460ff1916600190811790915590565b505f919050565b5f61271061104883856117c4565b106110645761271061105a83856117c4565b6109869190611809565b505f6104d8565b5f8061107683611570565b915091505f811461109d5761109d846110976005546001600160a01b031690565b83610c6f565b8115610bef57610bef8483610eb8565b6001600160a01b03821661110d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610578565b6001600160a01b0382165f90815260208190526040902054818110156111805760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610578565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f808290505f80826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561128f575060408051601f3d908101601f1916820190925261128c91810190611828565b60015b6112cd573d8080156112bc576040519150601f19603f3d011682016040523d82523d5f602084013e6112c1565b606091505b505f9695505050505050565b9150826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611329575060408051601f3d908101601f1916820190925261132691810190611828565b60015b611356573d8080156112bc576040519150601f19603f3d011682016040523d82523d5f602084013e6112c1565b90506001600160a01b0382161580159061137857506001600160a01b03811615155b95945050505050565b5f808290505f805f836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113e3575060408051601f3d908101601f191682019092526113e091810190611828565b60015b611422573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b606091505b505f979650505050505050565b9250836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561147e575060408051601f3d908101601f1916820190925261147b91810190611828565b60015b6114ab573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b9150836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611507575060408051601f3d908101601f1916820190925261150491810190611843565b60015b611534573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b90506001600160a01b0383161580159061155657506001600160a01b03821615155b8015611566575062ffffff811615155b9695505050505050565b5f806a295be96e64066972000000600b541061158d57505f905091565b600954156115b2576064600954846115a591906117c4565b6115af9190611809565b91505b600a54156115d7576064600a54846115ca91906117c4565b6115d49190611809565b90505b915091565b5f6020808352835180828501525f5b81811015611607578581018301518582016040015282016115eb565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461063b575f80fd5b5f806040838503121561164c575f80fd5b823561165781611627565b946020939093013593505050565b5f60208284031215611675575f80fd5b8135610c6881611627565b5f805f60608486031215611692575f80fd5b833561169d81611627565b925060208401356116ad81611627565b929592945050506040919091013590565b5f80604083850312156116cf575f80fd5b50508035926020909101359150565b5f602082840312156116ee575f80fd5b5035919050565b801515811461063b575f80fd5b5f8060408385031215611713575f80fd5b823561171e81611627565b9150602083013561172e816116f5565b809150509250929050565b5f806040838503121561174a575f80fd5b823561175581611627565b9150602083013561172e81611627565b600181811c9082168061177957607f821691505b60208210810361179757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104d8576104d861179d565b80820281158282048414176104d8576104d861179d565b5f602082840312156117eb575f80fd5b8151610c68816116f5565b818103818111156104d8576104d861179d565b5f8261182357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611838575f80fd5b8151610c6881611627565b5f60208284031215611853575f80fd5b815162ffffff81168114610c68575f80fdfea264697066735822122005ac1cf4308e7e182c4ea6f9bcdc8ec5369b9c4624e7d1699f392192f170cecb64736f6c63430008150033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806372e0e9fb11610109578063a9059cbb1161009e578063e30c39781161006e578063e30c3978146103f5578063eec8d04814610406578063f2fde38b14610419578063fce589d81461042c575f80fd5b8063a9059cbb146103b3578063cc1776d3146103c6578063dc39d06d146103cf578063dd62ed3e146103e2575f80fd5b80638da5cb5b116100d95780638da5cb5b1461036057806395d89b4114610385578063a0712d681461038d578063a457c2d7146103a0575f80fd5b806372e0e9fb1461032957806373f425611461033c57806379ba50971461034557806379cc67901461034d575f80fd5b8063313ce5671161017f5780634f7041a51161014f5780634f7041a5146102e75780636827e764146102f057806370a08231146102f9578063715018a614610321575f80fd5b8063313ce56714610290578063395093511461029f57806342966c68146102b2578063429cead1146102c5575f80fd5b806318160ddd116101ba57806318160ddd1461024357806323b872dd146102555780632740c197146102685780632f37aa6d1461027d575f80fd5b806306fdde03146101e0578063095ea7b3146101fe578063156522a814610221575b5f80fd5b6101e8610435565b6040516101f591906115dc565b60405180910390f35b61021161020c36600461163b565b6104c5565b60405190151581526020016101f5565b61021161022f366004611665565b600d6020525f908152604090205460ff1681565b6002545b6040519081526020016101f5565b610211610263366004611680565b6104de565b61027b6102763660046116be565b610525565b005b61027b61028b3660046116be565b61058c565b604051601281526020016101f5565b6102116102ad36600461163b565b6105ff565b61027b6102c03660046116de565b610620565b6102116102d3366004611665565b600c6020525f908152604090205460ff1681565b61024760075481565b610247600a5481565b610247610307366004611665565b6001600160a01b03165f9081526020819052604090205490565b61027b61063e565b61027b610337366004611702565b610651565b610247600b5481565b61027b610683565b61027b61035b36600461163b565b6106fa565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101f5565b6101e8610730565b61027b61039b3660046116de565b61073f565b6102116103ae36600461163b565b6107db565b6102116103c136600461163b565b610860565b61024760085481565b6102116103dd36600461163b565b610890565b6102476103f0366004611739565b61098d565b6006546001600160a01b031661036d565b61027b610414366004611702565b6109b7565b61027b610427366004611665565b6109e9565b61024760095481565b60606003805461044490611765565b80601f016020809104026020016040519081016040528092919081815260200182805461047090611765565b80156104bb5780601f10610492576101008083540402835291602001916104bb565b820191905f5260205f20905b81548152906001019060200180831161049e57829003601f168201915b5050505050905090565b5f336104d2818585610a5a565b60019150505b92915050565b5f336104eb858285610b7d565b5f6104f68686610bf5565b90508061050d57610508868686610c6f565b610519565b61051986868684610e11565b50600195945050505050565b61052d610e5e565b61053781836117b1565b6064146105815760405162461bcd60e51b81526020600482015260136024820152721199594814da1bdd5b1908109948115c5d585b606a1b60448201526064015b60405180910390fd5b600991909155600a55565b610594610e5e565b61271082111580156105a857506127108111155b6105f45760405162461bcd60e51b815260206004820152601960248201527f546178204578636565647320416c6c6f7765642052616e6765000000000000006044820152606401610578565b600791909155600855565b5f336104d2818585610611838361098d565b61061b91906117b1565b610a5a565b61063b3361063683670de0b6b3a76400006117c4565b610eb8565b50565b610646610e5e565b61064f5f610edc565b565b610659610e5e565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b60065433906001600160a01b031681146106f15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610578565b61063b81610edc565b610716823361071184670de0b6b3a76400006117c4565b610b7d565b61072c8261063683670de0b6b3a76400006117c4565b5050565b60606004805461044490611765565b610747610e5e565b6a522397c950e3c62680000061076582670de0b6b3a76400006117c4565b60025461077291906117b1565b11156107c05760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20737570706c792065786365656473206d617820616c6c6f7765646044820152606401610578565b61063b336107d683670de0b6b3a76400006117c4565b610ef5565b5f33816107e8828661098d565b9050838110156108485760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610578565b6108558286868403610a5a565b506001949350505050565b5f338161086d8286610bf5565b9050806108845761087f828686610c6f565b610855565b61085582868684610e11565b5f610899610e5e565b6001600160a01b0383166108f7576040515f90339047908381818185875af1925050503d805f81146108e6576040519150601f19603f3d011682016040523d82523d5f602084013e6108eb565b606091505b509092506104d8915050565b826001600160a01b031663a9059cbb6109186005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303815f875af1158015610962573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098691906117db565b90506104d8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6109bf610e5e565b6001600160a01b03919091165f908152600d60205260409020805460ff1916911515919091179055565b6109f1610e5e565b600680546001600160a01b0383166001600160a01b03199091168117909155610a226005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001600160a01b038316610abc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610578565b6001600160a01b038216610b1d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610578565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610b88848461098d565b90505f198114610bef5781811015610be25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610578565b610bef8484848403610a5a565b50505050565b6001600160a01b0382165f908152600c602052604081205460ff1680610c3257506001600160a01b0382165f908152600c602052604090205460ff165b610c6657610c3f83610fb2565b610c5e57610c4c82610fb2565b610c56575f610c68565b600854610c68565b600754610c68565b5f5b9392505050565b6001600160a01b038316610cd35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610578565b6001600160a01b038216610d355760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610578565b6001600160a01b0383165f9081526020819052604090205481811015610dac5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610578565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610bef565b5f610e1c838361103a565b905080610e3357610e2e858585610c6f565b610e57565b5f610e3e82856117f6565b9050610e4b868683610c6f565b610e55868361106b565b505b5050505050565b6005546001600160a01b0316331461064f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610578565b610ec282826110ad565b80600b5f828254610ed391906117b1565b90915550505050565b600680546001600160a01b031916905561063b816111dd565b6001600160a01b038216610f4b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610578565b8060025f828254610f5c91906117b1565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0381165f908152600d602052604081205460ff1615610fda57506001919050565b6001600160a01b0382163b151580156110065750610ff78261122e565b80611006575061100682611381565b1561103357506001600160a01b03165f908152600d60205260409020805460ff1916600190811790915590565b505f919050565b5f61271061104883856117c4565b106110645761271061105a83856117c4565b6109869190611809565b505f6104d8565b5f8061107683611570565b915091505f811461109d5761109d846110976005546001600160a01b031690565b83610c6f565b8115610bef57610bef8483610eb8565b6001600160a01b03821661110d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610578565b6001600160a01b0382165f90815260208190526040902054818110156111805760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610578565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f808290505f80826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561128f575060408051601f3d908101601f1916820190925261128c91810190611828565b60015b6112cd573d8080156112bc576040519150601f19603f3d011682016040523d82523d5f602084013e6112c1565b606091505b505f9695505050505050565b9150826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611329575060408051601f3d908101601f1916820190925261132691810190611828565b60015b611356573d8080156112bc576040519150601f19603f3d011682016040523d82523d5f602084013e6112c1565b90506001600160a01b0382161580159061137857506001600160a01b03811615155b95945050505050565b5f808290505f805f836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113e3575060408051601f3d908101601f191682019092526113e091810190611828565b60015b611422573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b606091505b505f979650505050505050565b9250836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561147e575060408051601f3d908101601f1916820190925261147b91810190611828565b60015b6114ab573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b9150836001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611507575060408051601f3d908101601f1916820190925261150491810190611843565b60015b611534573d808015611410576040519150601f19603f3d011682016040523d82523d5f602084013e611415565b90506001600160a01b0383161580159061155657506001600160a01b03821615155b8015611566575062ffffff811615155b9695505050505050565b5f806a295be96e64066972000000600b541061158d57505f905091565b600954156115b2576064600954846115a591906117c4565b6115af9190611809565b91505b600a54156115d7576064600a54846115ca91906117c4565b6115d49190611809565b90505b915091565b5f6020808352835180828501525f5b81811015611607578581018301518582016040015282016115eb565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461063b575f80fd5b5f806040838503121561164c575f80fd5b823561165781611627565b946020939093013593505050565b5f60208284031215611675575f80fd5b8135610c6881611627565b5f805f60608486031215611692575f80fd5b833561169d81611627565b925060208401356116ad81611627565b929592945050506040919091013590565b5f80604083850312156116cf575f80fd5b50508035926020909101359150565b5f602082840312156116ee575f80fd5b5035919050565b801515811461063b575f80fd5b5f8060408385031215611713575f80fd5b823561171e81611627565b9150602083013561172e816116f5565b809150509250929050565b5f806040838503121561174a575f80fd5b823561175581611627565b9150602083013561172e81611627565b600181811c9082168061177957607f821691505b60208210810361179757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104d8576104d861179d565b80820281158282048414176104d8576104d861179d565b5f602082840312156117eb575f80fd5b8151610c68816116f5565b818103818111156104d8576104d861179d565b5f8261182357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611838575f80fd5b8151610c6881611627565b5f60208284031215611853575f80fd5b815162ffffff81168114610c68575f80fdfea264697066735822122005ac1cf4308e7e182c4ea6f9bcdc8ec5369b9c4624e7d1699f392192f170cecb64736f6c63430008150033
Deployed Bytecode Sourcemap
64345:6596:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52338:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;54698:201;;;;;;:::i;:::-;;:::i;:::-;;;1188:14:1;;1181:22;1163:41;;1151:2;1136:18;54698:201:0;1023:187:1;64924:36:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;53467:108;53555:12;;53467:108;;;1613:25:1;;;1601:2;1586:18;53467:108:0;1467:177:1;68922:426:0;;;;;;:::i;:::-;;:::i;70141:187::-;;;;;;:::i;:::-;;:::i;:::-;;69922:211;;;;;;:::i;:::-;;:::i;53309:93::-;;;53392:2;2505:36:1;;2493:2;2478:18;53309:93:0;2363:184:1;56149:238:0;;;;;;:::i;:::-;;:::i;69572:125::-;;;;;;:::i;:::-;;:::i;64877:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;64451:28;;;;;;64556:26;;;;;;53638:127;;;;;;:::i;:::-;-1:-1:-1;;;;;53739:18:0;53712:7;53739:18;;;;;;;;;;;;53638:127;44362:103;;;:::i;70336:122::-;;;;;;:::i;:::-;;:::i;64849:21::-;;;;;;46827:216;;;:::i;69705:209::-;;;;;;:::i;:::-;;:::i;43721:87::-;43794:6;;-1:-1:-1;;;;;43794:6:0;43721:87;;;-1:-1:-1;;;;;3411:32:1;;;3393:51;;3381:2;3366:18;43721:87:0;3247:203:1;52557:104:0;;;:::i;69356:208::-;;;;;;:::i;:::-;;:::i;56890:436::-;;;;;;:::i;:::-;;:::i;68554:360::-;;;;;;:::i;:::-;;:::i;64486:29::-;;;;;;70580:358;;;;;;:::i;:::-;;:::i;54227:151::-;;;;;;:::i;:::-;;:::i;45915:101::-;45995:13;;-1:-1:-1;;;;;45995:13:0;45915:101;;70466:106;;;;;;:::i;:::-;;:::i;46215:181::-;;;;;;:::i;:::-;;:::i;64522:27::-;;;;;;52338:100;52392:13;52425:5;52418:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52338:100;:::o;54698:201::-;54781:4;42483:10;54837:32;42483:10;54853:7;54862:6;54837:8;:32::i;:::-;54887:4;54880:11;;;54698:201;;;;;:::o;68922:426::-;69026:4;42483:10;69084:38;69100:4;42483:10;69115:6;69084:15;:38::i;:::-;69133:11;69147:23;69161:4;69167:2;69147:13;:23::i;:::-;69133:37;-1:-1:-1;69133:37:0;69181:138;;69215:27;69225:4;69231:2;69235:6;69215:9;:27::i;:::-;69181:138;;;69275:32;69285:4;69291:2;69295:6;69303:3;69275:9;:32::i;:::-;-1:-1:-1;69336:4:0;;68922:426;-1:-1:-1;;;;;68922:426:0:o;70141:187::-;43607:13;:11;:13::i;:::-;70227:12:::1;70235:4:::0;70227:5;:12:::1;:::i;:::-;70243:3;70227:19;70219:51;;;::::0;-1:-1:-1;;;70219:51:0;;4697:2:1;70219:51:0::1;::::0;::::1;4679:21:1::0;4736:2;4716:18;;;4709:30;-1:-1:-1;;;4755:18:1;;;4748:49;4814:18;;70219:51:0::1;;;;;;;;;70281:7;:15:::0;;;;70307:6:::1;:13:::0;70141:187::o;69922:211::-;43607:13;:11;:13::i;:::-;64617:5:::1;70008:4;:16;;:37;;;;;64617:5;70028;:17;;70008:37;70000:75;;;::::0;-1:-1:-1;;;70000:75:0;;5045:2:1;70000:75:0::1;::::0;::::1;5027:21:1::0;5084:2;5064:18;;;5057:30;5123:27;5103:18;;;5096:55;5168:18;;70000:75:0::1;4843:349:1::0;70000:75:0::1;70086:6;:13:::0;;;;70110:7:::1;:15:::0;69922:211::o;56149:238::-;56237:4;42483:10;56293:64;42483:10;56309:7;56346:10;56318:25;42483:10;56309:7;56318:9;:25::i;:::-;:38;;;;:::i;:::-;56293:8;:64::i;69572:125::-;69644:45;42483:10;69671:17;:6;69680:8;69671:17;:::i;:::-;69644:12;:45::i;:::-;69572:125;:::o;44362:103::-;43607:13;:11;:13::i;:::-;44427:30:::1;44454:1;44427:18;:30::i;:::-;44362:103::o:0;70336:122::-;43607:13;:11;:13::i;:::-;-1:-1:-1;;;;;70422:19:0;;;::::1;;::::0;;;:8:::1;:19;::::0;;;;:28;;-1:-1:-1;;70422:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;70336:122::o;46827:216::-;45995:13;;42483:10;;-1:-1:-1;;;;;45995:13:0;46928:24;;46920:78;;;;-1:-1:-1;;;46920:78:0;;5572:2:1;46920:78:0;;;5554:21:1;5611:2;5591:18;;;5584:30;5650:34;5630:18;;;5623:62;-1:-1:-1;;;5701:18:1;;;5694:39;5750:19;;46920:78:0;5370:405:1;46920:78:0;47009:26;47028:6;47009:18;:26::i;69705:209::-;69798:57;69814:7;42483:10;69837:17;:6;69846:8;69837:17;:::i;:::-;69798:15;:57::i;:::-;69866:40;69879:7;69888:17;:6;69897:8;69888:17;:::i;69866:40::-;69705:209;;:::o;52557:104::-;52613:13;52646:7;52639:14;;;;;:::i;69356:208::-;43607:13;:11;:13::i;:::-;64746:19:::1;69440:17;:6:::0;69449:8:::1;69440:17;:::i;:::-;53555:12:::0;;69424:33:::1;;;;:::i;:::-;:46;;69416:91;;;::::0;-1:-1:-1;;;69416:91:0;;5982:2:1;69416:91:0::1;::::0;::::1;5964:21:1::0;;;6001:18;;;5994:30;6060:34;6040:18;;;6033:62;6112:18;;69416:91:0::1;5780:356:1::0;69416:91:0::1;69518:38;42483:10:::0;69538:17:::1;:6:::0;69547:8:::1;69538:17;:::i;:::-;69518:5;:38::i;56890:436::-:0;56983:4;42483:10;56983:4;57066:25;42483:10;57083:7;57066:9;:25::i;:::-;57039:52;;57130:15;57110:16;:35;;57102:85;;;;-1:-1:-1;;;57102:85:0;;6343:2:1;57102:85:0;;;6325:21:1;6382:2;6362:18;;;6355:30;6421:34;6401:18;;;6394:62;-1:-1:-1;;;6472:18:1;;;6465:35;6517:19;;57102:85:0;6141:401:1;57102:85:0;57223:60;57232:5;57239:7;57267:15;57248:16;:34;57223:8;:60::i;:::-;-1:-1:-1;57314:4:0;;56890:436;-1:-1:-1;;;;56890:436:0:o;68554:360::-;68640:4;42483:10;68640:4;68710:24;42483:10;68731:2;68710:13;:24::i;:::-;68696:38;-1:-1:-1;68696:38:0;68745:140;;68779:28;68789:5;68796:2;68800:6;68779:9;:28::i;:::-;68745:140;;;68840:33;68850:5;68857:2;68861:6;68869:3;68840:9;:33::i;70580:358::-;70677:4;43607:13;:11;:13::i;:::-;-1:-1:-1;;;;;70698:22:0;::::1;70694:237;;70755:49;::::0;70738:12:::1;::::0;70755:10:::1;::::0;70778:21:::1;::::0;70738:12;70755:49;70738:12;70755:49;70778:21;70755:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;70737:67:0;;-1:-1:-1;70819:14:0::1;::::0;-1:-1:-1;;70819:14:0::1;70694:237;70880:12;-1:-1:-1::0;;;;;70873:29:0::1;;70903:7;43794:6:::0;;-1:-1:-1;;;;;43794:6:0;;43721:87;70903:7:::1;70873:46;::::0;-1:-1:-1;;;;;;70873:46:0::1;::::0;;;;;;-1:-1:-1;;;;;6949:32:1;;;70873:46:0::1;::::0;::::1;6931:51:1::0;6998:18;;;6991:34;;;6904:18;;70873:46:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70866:53;;;;54227:151:::0;-1:-1:-1;;;;;54343:18:0;;;54316:7;54343:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;54227:151::o;70466:106::-;43607:13;:11;:13::i;:::-;-1:-1:-1;;;;;70544:11:0;;;::::1;;::::0;;;:4:::1;:11;::::0;;;;:20;;-1:-1:-1;;70544:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;70466:106::o;46215:181::-;43607:13;:11;:13::i;:::-;46305::::1;:24:::0;;-1:-1:-1;;;;;46305:24:0;::::1;-1:-1:-1::0;;;;;;46305:24:0;;::::1;::::0;::::1;::::0;;;46370:7:::1;43794:6:::0;;-1:-1:-1;;;;;43794:6:0;;43721:87;46370:7:::1;-1:-1:-1::0;;;;;46345:43:0::1;;;;;;;;;;;46215:181:::0;:::o;60883:346::-;-1:-1:-1;;;;;60985:19:0;;60977:68;;;;-1:-1:-1;;;60977:68:0;;7488:2:1;60977:68:0;;;7470:21:1;7527:2;7507:18;;;7500:30;7566:34;7546:18;;;7539:62;-1:-1:-1;;;7617:18:1;;;7610:34;7661:19;;60977:68:0;7286:400:1;60977:68:0;-1:-1:-1;;;;;61064:21:0;;61056:68;;;;-1:-1:-1;;;61056:68:0;;7893:2:1;61056:68:0;;;7875:21:1;7932:2;7912:18;;;7905:30;7971:34;7951:18;;;7944:62;-1:-1:-1;;;8022:18:1;;;8015:32;8064:19;;61056:68:0;7691:398:1;61056:68:0;-1:-1:-1;;;;;61137:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;61189:32;;1613:25:1;;;61189:32:0;;1586:18:1;61189:32:0;;;;;;;60883:346;;;:::o;61520:419::-;61621:24;61648:25;61658:5;61665:7;61648:9;:25::i;:::-;61621:52;;-1:-1:-1;;61688:16:0;:37;61684:248;;61770:6;61750:16;:26;;61742:68;;;;-1:-1:-1;;;61742:68:0;;8296:2:1;61742:68:0;;;8278:21:1;8335:2;8315:18;;;8308:30;8374:31;8354:18;;;8347:59;8423:18;;61742:68:0;8094:353:1;61742:68:0;61854:51;61863:5;61870:7;61898:6;61879:16;:25;61854:8;:51::i;:::-;61610:329;61520:419;;;:::o;67473:243::-;-1:-1:-1;;;;;67567:14:0;;67540:7;67567:14;;;:8;:14;;;;;;;;;:30;;-1:-1:-1;;;;;;67585:12:0;;;;;;:8;:12;;;;;;;;67567:30;:141;;67635:22;67652:4;67635:16;:22::i;:::-;:73;;67669:20;67686:2;67669:16;:20::i;:::-;:39;;64798:1;67567:141;;67669:39;67692:7;;67567:141;;67635:73;67660:6;;67567:141;;;64798:1;67567:141;67560:148;67473:243;-1:-1:-1;;;67473:243:0:o;57796:806::-;-1:-1:-1;;;;;57893:18:0;;57885:68;;;;-1:-1:-1;;;57885:68:0;;8654:2:1;57885:68:0;;;8636:21:1;8693:2;8673:18;;;8666:30;8732:34;8712:18;;;8705:62;-1:-1:-1;;;8783:18:1;;;8776:35;8828:19;;57885:68:0;8452:401:1;57885:68:0;-1:-1:-1;;;;;57972:16:0;;57964:64;;;;-1:-1:-1;;;57964:64:0;;9060:2:1;57964:64:0;;;9042:21:1;9099:2;9079:18;;;9072:30;9138:34;9118:18;;;9111:62;-1:-1:-1;;;9189:18:1;;;9182:33;9232:19;;57964:64:0;8858:399:1;57964:64:0;-1:-1:-1;;;;;58114:15:0;;58092:19;58114:15;;;;;;;;;;;58148:21;;;;58140:72;;;;-1:-1:-1;;;58140:72:0;;9464:2:1;58140:72:0;;;9446:21:1;9503:2;9483:18;;;9476:30;9542:34;9522:18;;;9515:62;-1:-1:-1;;;9593:18:1;;;9586:36;9639:19;;58140:72:0;9262:402:1;58140:72:0;-1:-1:-1;;;;;58248:15:0;;;:9;:15;;;;;;;;;;;58266:20;;;58248:38;;58466:13;;;;;;;;;;:23;;;;;;58518:26;;1613:25:1;;;58466:13:0;;58518:26;;1586:18:1;58518:26:0;;;;;;;58557:37;62539:91;68170:376;68264:13;68280:26;68294:6;68302:3;68280:13;:26::i;:::-;68264:42;-1:-1:-1;68264:42:0;68317:222;;68353:27;68363:4;68369:2;68373:6;68353:9;:27::i;:::-;68317:222;;;68413:16;68432:14;68441:5;68432:6;:14;:::i;:::-;68413:33;;68461:29;68471:4;68477:2;68481:8;68461:9;:29::i;:::-;68505:22;68515:4;68521:5;68505:9;:22::i;:::-;68398:141;68317:222;68253:293;68170:376;;;;:::o;43886:132::-;43794:6;;-1:-1:-1;;;;;43794:6:0;42483:10;43950:23;43942:68;;;;-1:-1:-1;;;43942:68:0;;10004:2:1;43942:68:0;;;9986:21:1;;;10023:18;;;10016:30;10082:34;10062:18;;;10055:62;10134:18;;43942:68:0;9802:356:1;67724:126:0;67796:19;67802:4;67808:6;67796:5;:19::i;:::-;67836:6;67826;;:16;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;67724:126:0:o;46586:156::-;46676:13;46669:20;;-1:-1:-1;;;;;;46669:20:0;;;46700:34;46725:8;46700:24;:34::i;58889:548::-;-1:-1:-1;;;;;58973:21:0;;58965:65;;;;-1:-1:-1;;;58965:65:0;;10365:2:1;58965:65:0;;;10347:21:1;10404:2;10384:18;;;10377:30;10443:33;10423:18;;;10416:61;10494:18;;58965:65:0;10163:355:1;58965:65:0;59121:6;59105:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;59276:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;59331:37;1613:25:1;;;59331:37:0;;1586:18:1;59331:37:0;;;;;;;69705:209;;:::o;67149:316::-;-1:-1:-1;;;;;67230:12:0;;67209:4;67230:12;;;:4;:12;;;;;;;;67226:56;;;-1:-1:-1;67266:4:0;;67149:316;-1:-1:-1;67149:316:0:o;67226:56::-;-1:-1:-1;;;;;67298:17:0;;33972:19;:23;;67298:63;;;;;67322:17;67332:6;67322:9;:17::i;:::-;:38;;;;67343:17;67353:6;67343:9;:17::i;:::-;67294:141;;;-1:-1:-1;;;;;;67378:12:0;;;;;:4;:12;;;;;:19;;-1:-1:-1;;67378:19:0;67393:4;67378:19;;;;;;67393:4;67149:316::o;67294:141::-;-1:-1:-1;67452:5:0;;67149:316;-1:-1:-1;67149:316:0:o;65585:189::-;65660:7;64617:5;65685:12;65694:3;65685:6;:12;:::i;:::-;65684:26;65680:86;;64617:5;65719:12;65728:3;65719:6;:12;:::i;:::-;:23;;;;:::i;65680:86::-;-1:-1:-1;65765:1:0;65758:8;;67858:304;67927:14;67943:13;67960:20;67974:5;67960:13;:20::i;:::-;67926:54;;;;64798:1;67995:5;:15;67991:79;;68027:31;68037:4;68043:7;43794:6;;-1:-1:-1;;;;;43794:6:0;;43721:87;68043:7;68052:5;68027:9;:31::i;:::-;68084:16;;68080:75;;68117:26;68130:4;68136:6;68117:12;:26::i;59770:675::-;-1:-1:-1;;;;;59854:21:0;;59846:67;;;;-1:-1:-1;;;59846:67:0;;10947:2:1;59846:67:0;;;10929:21:1;10986:2;10966:18;;;10959:30;11025:34;11005:18;;;10998:62;-1:-1:-1;;;11076:18:1;;;11069:31;11117:19;;59846:67:0;10745:397:1;59846:67:0;-1:-1:-1;;;;;60013:18:0;;59988:22;60013:18;;;;;;;;;;;60050:24;;;;60042:71;;;;-1:-1:-1;;;60042:71:0;;11349:2:1;60042:71:0;;;11331:21:1;11388:2;11368:18;;;11361:30;11427:34;11407:18;;;11400:62;-1:-1:-1;;;11478:18:1;;;11471:32;11520:19;;60042:71:0;11147:398:1;60042:71:0;-1:-1:-1;;;;;60149:18:0;;:9;:18;;;;;;;;;;;60170:23;;;60149:44;;60288:12;:22;;;;;;;60339:37;1613:25:1;;;60149:9:0;;:18;60339:37;;1586:18:1;60339:37:0;;;;;;;62539:91;;;:::o;44981:191::-;45074:6;;;-1:-1:-1;;;;;45091:17:0;;;-1:-1:-1;;;;;;45091:17:0;;;;;;;45124:40;;45074:6;;;45091:17;45074:6;;45124:40;;45055:16;;45124:40;45044:128;44981:191;:::o;65782:579::-;65840:4;65857:27;65902:6;65857:52;;65922:14;65947;65978:12;-1:-1:-1;;;;;65978:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65978:21:0;;;;;;;;-1:-1:-1;;65978:21:0;;;;;;;;;;;;:::i;:::-;;;65974:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66113:5:0;;65782:579;-1:-1:-1;;;;;;65782:579:0:o;65974:156::-;66050:7;-1:-1:-1;66146:12:0;-1:-1:-1;;;;;66146:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66146:21:0;;;;;;;;-1:-1:-1;;66146:21:0;;;;;;;;;;;;:::i;:::-;;;66142:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66218:7;-1:-1:-1;;;;;;66317:16:0;;;;;;:36;;-1:-1:-1;;;;;;66337:16:0;;;;66317:36;66310:43;65782:579;-1:-1:-1;;;;;65782:579:0:o;66369:772::-;66427:4;66444:27;66489:6;66444:52;;66509:14;66534;66559:10;66586:12;-1:-1:-1;;;;;66586:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66586:21:0;;;;;;;;-1:-1:-1;;66586:21:0;;;;;;;;;;;;:::i;:::-;;;66582:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66721:5:0;;66369:772;-1:-1:-1;;;;;;;66369:772:0:o;66582:156::-;66658:7;-1:-1:-1;66754:12:0;-1:-1:-1;;;;;66754:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66754:21:0;;;;;;;;-1:-1:-1;;66754:21:0;;;;;;;;;;;;:::i;:::-;;;66750:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66826:7;-1:-1:-1;66922:12:0;-1:-1:-1;;;;;66922:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66922:18:0;;;;;;;;-1:-1:-1;;66922:18:0;;;;;;;;;;;;:::i;:::-;;;66918:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66984:4;-1:-1:-1;;;;;;67080:16:0;;;;;;:36;;-1:-1:-1;;;;;;67100:16:0;;;;67080:36;:53;;;;-1:-1:-1;67120:13:0;;;;;67080:53;67073:60;66369:772;-1:-1:-1;;;;;;66369:772:0:o;65124:453::-;65185:18;65205:17;64691:19;65239:6;;:14;65235:335;;-1:-1:-1;64798:1:0;;-1:-1:-1;65124:453:0;:::o;65235:335::-;65358:7;;:17;65354:97;;64657:3;65417:7;;65409:5;:15;;;;:::i;:::-;:26;;;;:::i;:::-;65396:39;;65354:97;65469:6;;:16;65465:94;;64657:3;65526:6;;65518:5;:14;;;;:::i;:::-;:25;;;;:::i;:::-;65506:37;;65465:94;65124:453;;;:::o;14:548:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:131::-;-1:-1:-1;;;;;642:31:1;;632:42;;622:70;;688:1;685;678:12;703:315;771:6;779;832:2;820:9;811:7;807:23;803:32;800:52;;;848:1;845;838:12;800:52;887:9;874:23;906:31;931:5;906:31;:::i;:::-;956:5;1008:2;993:18;;;;980:32;;-1:-1:-1;;;703:315:1:o;1215:247::-;1274:6;1327:2;1315:9;1306:7;1302:23;1298:32;1295:52;;;1343:1;1340;1333:12;1295:52;1382:9;1369:23;1401:31;1426:5;1401:31;:::i;1649:456::-;1726:6;1734;1742;1795:2;1783:9;1774:7;1770:23;1766:32;1763:52;;;1811:1;1808;1801:12;1763:52;1850:9;1837:23;1869:31;1894:5;1869:31;:::i;:::-;1919:5;-1:-1:-1;1976:2:1;1961:18;;1948:32;1989:33;1948:32;1989:33;:::i;:::-;1649:456;;2041:7;;-1:-1:-1;;;2095:2:1;2080:18;;;;2067:32;;1649:456::o;2110:248::-;2178:6;2186;2239:2;2227:9;2218:7;2214:23;2210:32;2207:52;;;2255:1;2252;2245:12;2207:52;-1:-1:-1;;2278:23:1;;;2348:2;2333:18;;;2320:32;;-1:-1:-1;2110:248:1:o;2552:180::-;2611:6;2664:2;2652:9;2643:7;2639:23;2635:32;2632:52;;;2680:1;2677;2670:12;2632:52;-1:-1:-1;2703:23:1;;2552:180;-1:-1:-1;2552:180:1:o;2737:118::-;2823:5;2816:13;2809:21;2802:5;2799:32;2789:60;;2845:1;2842;2835:12;2860:382;2925:6;2933;2986:2;2974:9;2965:7;2961:23;2957:32;2954:52;;;3002:1;2999;2992:12;2954:52;3041:9;3028:23;3060:31;3085:5;3060:31;:::i;:::-;3110:5;-1:-1:-1;3167:2:1;3152:18;;3139:32;3180:30;3139:32;3180:30;:::i;:::-;3229:7;3219:17;;;2860:382;;;;;:::o;3455:388::-;3523:6;3531;3584:2;3572:9;3563:7;3559:23;3555:32;3552:52;;;3600:1;3597;3590:12;3552:52;3639:9;3626:23;3658:31;3683:5;3658:31;:::i;:::-;3708:5;-1:-1:-1;3765:2:1;3750:18;;3737:32;3778:33;3737:32;3778:33;:::i;3848:380::-;3927:1;3923:12;;;;3970;;;3991:61;;4045:4;4037:6;4033:17;4023:27;;3991:61;4098:2;4090:6;4087:14;4067:18;4064:38;4061:161;;4144:10;4139:3;4135:20;4132:1;4125:31;4179:4;4176:1;4169:15;4207:4;4204:1;4197:15;4061:161;;3848:380;;;:::o;4233:127::-;4294:10;4289:3;4285:20;4282:1;4275:31;4325:4;4322:1;4315:15;4349:4;4346:1;4339:15;4365:125;4430:9;;;4451:10;;;4448:36;;;4464:18;;:::i;5197:168::-;5270:9;;;5301;;5318:15;;;5312:22;;5298:37;5288:71;;5339:18;;:::i;7036:245::-;7103:6;7156:2;7144:9;7135:7;7131:23;7127:32;7124:52;;;7172:1;7169;7162:12;7124:52;7204:9;7198:16;7223:28;7245:5;7223:28;:::i;9669:128::-;9736:9;;;9757:11;;;9754:37;;;9771:18;;:::i;10523:217::-;10563:1;10589;10579:132;;10633:10;10628:3;10624:20;10621:1;10614:31;10668:4;10665:1;10658:15;10696:4;10693:1;10686:15;10579:132;-1:-1:-1;10725:9:1;;10523:217::o;11550:251::-;11620:6;11673:2;11661:9;11652:7;11648:23;11644:32;11641:52;;;11689:1;11686;11679:12;11641:52;11721:9;11715:16;11740:31;11765:5;11740:31;:::i;11806:278::-;11875:6;11928:2;11916:9;11907:7;11903:23;11899:32;11896:52;;;11944:1;11941;11934:12;11896:52;11976:9;11970:16;12026:8;12019:5;12015:20;12008:5;12005:31;11995:59;;12050:1;12047;12040:12
Swarm Source
ipfs://05ac1cf4308e7e182c4ea6f9bcdc8ec5369b9c4624e7d1699f392192f170cecb
Loading...
Loading
Loading...
Loading
OVERVIEW
RocketX is the go-to platform for seamlessly transferring digital assets between 200+ blockchains like Btc, Eth, Solana, Cosmos, etc via a single UI/API.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.