// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.7.6;
import './interfaces/IUniswapV3Pool.sol';
import './NoDelegateCall.sol';
import './libraries/LowGasSafeMath.sol';
import './libraries/SafeCast.sol';
import './libraries/Tick.sol';
import './libraries/TickBitmap.sol';
import './libraries/Position.sol';
import './libraries/Oracle.sol';
import './libraries/FullMath.sol';
import './libraries/FixedPoint128.sol';
import './libraries/TransferHelper.sol';
import './libraries/TickMath.sol';
import './libraries/LiquidityMath.sol';
import './libraries/SqrtPriceMath.sol';
import './libraries/SwapMath.sol';
import './interfaces/IUniswapV3PoolDeployer.sol';
import './interfaces/IUniswapV3Factory.sol';
import './interfaces/IERC20Minimal.sol';
import './interfaces/callback/IUniswapV3MintCallback.sol';
import './interfaces/callback/IUniswapV3SwapCallback.sol';
import './interfaces/callback/IUniswapV3FlashCallback.sol';
contract UniswapV3Pool is IUniswapV3Pool, NoDelegateCall {
using LowGasSafeMath for uint256;
using LowGasSafeMath for int256;
using SafeCast for uint256;
using SafeCast for int256;
using Tick for mapping(int24 => Tick.Info);
using TickBitmap for mapping(int16 => uint256);
using Position for mapping(bytes32 => Position.Info);
using Position for Position.Info;
using Oracle for Oracle.Observation[65535];
/// @inheritdoc IUniswapV3PoolImmutables
address public immutable override factory;
/// @inheritdoc IUniswapV3PoolImmutables
address public immutable override token0;
/// @inheritdoc IUniswapV3PoolImmutables
address public immutable override token1;
/// @inheritdoc IUniswapV3PoolImmutables
uint24 public immutable override fee;
/// @inheritdoc IUniswapV3PoolImmutables
int24 public immutable override tickSpacing;
/// @inheritdoc IUniswapV3PoolImmutables
uint128 public immutable override maxLiquidityPerTick;
struct Slot0 {
// the current price
uint160 sqrtPriceX96;
// the current tick
int24 tick;
// the most-recently updated index of the observations array
uint16 observationIndex;
// the current maximum number of observations that are being stored
uint16 observationCardinality;
// the next maximum number of observations to store, triggered in observations.write
uint16 observationCardinalityNext;
// the current protocol fee as a percentage of the swap fee taken on withdrawal
// represented as an integer denominator (1/x)%
uint8 feeProtocol;
// whether the pool is locked
bool unlocked;
}
/// @inheritdoc IUniswapV3PoolState
Slot0 public override slot0;
/// @inheritdoc IUniswapV3PoolState
uint256 public override feeGrowthGlobal0X128;
/// @inheritdoc IUniswapV3PoolState
uint256 public override feeGrowthGlobal1X128;
// accumulated protocol fees in token0/token1 units
struct ProtocolFees {
uint128 token0;
uint128 token1;
}
/// @inheritdoc IUniswapV3PoolState
ProtocolFees public override protocolFees;
/// @inheritdoc IUniswapV3PoolState
uint128 public override liquidity;
/// @inheritdoc IUniswapV3PoolState
mapping(int24 => Tick.Info) public override ticks;
/// @inheritdoc IUniswapV3PoolState
mapping(int16 => uint256) public override tickBitmap;
/// @inheritdoc IUniswapV3PoolState
mapping(bytes32 => Position.Info) public override positions;
/// @inheritdoc IUniswapV3PoolState
Oracle.Observation[65535] public override observations;
/// @dev Mutually exclusive reentrancy protection into the pool to/from a method. This method also prevents entrance
/// to a function before the pool is initialized. The reentrancy guard is required throughout the contract because
/// we use balance checks to determine the payment status of interactions such as mint, swap and flash.
modifier lock() {
require(slot0.unlocked, 'LOK');
slot0.unlocked = false;
_;
slot0.unlocked = true;
}
/// @dev Prevents calling a function from anyone except the address returned by IUniswapV3Factory#owner()
modifier onlyFactoryOwner() {
require(msg.sender == IUniswapV3Factory(factory).owner());
_;
}
constructor() {
int24 _tickSpacing;
(factory, token0, token1, fee, _tickSpacing) = IUniswapV3PoolDeployer(msg.sender).parameters();
tickSpacing = _tickSpacing;
maxLiquidityPerTick = Tick.tickSpacingToMaxLiquidityPerTick(_tickSpacing);
}
/// @dev Common checks for valid tick inputs.
function checkTicks(int24 tickLower, int24 tickUpper) private pure {
require(tickLower < tickUpper, 'TLU');
require(tickLower >= TickMath.MIN_TICK, 'TLM');
require(tickUpper <= TickMath.MAX_TICK, 'TUM');
}
/// @dev Returns the block timestamp truncated to 32 bits, i.e. mod 2**32. This method is overridden in tests.
function _blockTimestamp() internal view virtual returns (uint32) {
return uint32(block.timestamp); // truncation is desired
}
/// @dev Get the pool's balance of token0
/// @dev This function is gas optimized to avoid a redundant extcodesize check in addition to the returndatasize
/// check
function balance0() private view returns (uint256) {
(bool success, bytes memory data) =
token0.staticcall(abi.encodeWithSelector(IERC20Minimal.balanceOf.selector, address(this)));
require(success && data.length >= 32);
return abi.decode(data, (uint256));
}
/// @dev Get the pool's balance of token1
/// @dev This function is gas optimized to avoid a redundant extcodesize check in addition to the returndatasize
/// check
function balance1() private view returns (uint256) {
(bool success, bytes memory data) =
token1.staticcall(abi.encodeWithSelector(IERC20Minimal.balanceOf.selector, address(this)));
require(success && data.length >= 32);
return abi.decode(data, (uint256));
}
/// @inheritdoc IUniswapV3PoolDerivedState
function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
external
view
override
noDelegateCall
returns (
int56 tickCumulativeInside,
uint160 secondsPerLiquidityInsideX128,
uint32 secondsInside
)
{
checkTicks(tickLower, tickUpper);
int56 tickCumulativeLower;
int56 tickCumulativeUpper;
uint160 secondsPerLiquidityOutsideLowerX128;
uint160 secondsPerLiquidityOutsideUpperX128;
uint32 secondsOutsideLower;
uint32 secondsOutsideUpper;
{
Tick.Info storage lower = ticks[tickLower];
Tick.Info storage upper = ticks[tickUpper];
bool initializedLower;
(tickCumulativeLower, secondsPerLiquidityOutsideLowerX128, secondsOutsideLower, initializedLower) = (
lower.tickCumulativeOutside,
lower.secondsPerLiquidityOutsideX128,
lower.secondsOutside,
lower.initialized
);
require(initializedLower);
bool initializedUpper;
(tickCumulativeUpper, secondsPerLiquidityOutsideUpperX128, secondsOutsideUpper, initializedUpper) = (
upper.tickCumulativeOutside,
upper.secondsPerLiquidityOutsideX128,
upper.secondsOutside,
upper.initialized
);
require(initializedUpper);
}
Slot0 memory _slot0 = slot0;
if (_slot0.tick < tickLower) {
return (
tickCumulativeLower - tickCumulativeUpper,
secondsPerLiquidityOutsideLowerX128 - secondsPerLiquidityOutsideUpperX128,
secondsOutsideLower - secondsOutsideUpper
);
} else if (_slot0.tick < tickUpper) {
uint32 time = _blockTimestamp();
(int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128) =
observations.observeSingle(
time,
0,
_slot0.tick,
_slot0.observationIndex,
liquidity,
_slot0.observationCardinality
);
return (
tickCumulative - tickCumulativeLower - tickCumulativeUpper,
secondsPerLiquidityCumulativeX128 -
secondsPerLiquidityOutsideLowerX128 -
secondsPerLiquidityOutsideUpperX128,
time - secondsOutsideLower - secondsOutsideUpper
);
} else {
return (
tickCumulativeUpper - tickCumulativeLower,
secondsPerLiquidityOutsideUpperX128 - secondsPerLiquidityOutsideLowerX128,
secondsOutsideUpper - secondsOutsideLower
);
}
}
/// @inheritdoc IUniswapV3PoolDerivedState
function observe(uint32[] calldata secondsAgos)
external
view
override
noDelegateCall
returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s)
{
return
observations.observe(
_blockTimestamp(),
secondsAgos,
slot0.tick,
slot0.observationIndex,
liquidity,
slot0.observationCardinality
);
}
/// @inheritdoc IUniswapV3PoolActions
function increaseObservationCardinalityNext(uint16 observationCardinalityNext)
external
override
lock
noDelegateCall
{
uint16 observationCardinalityNextOld = slot0.observationCardinalityNext; // for the event
uint16 observationCardinalityNextNew =
observations.grow(observationCardinalityNextOld, observationCardinalityNext);
slot0.observationCardinalityNext = observationCardinalityNextNew;
if (observationCardinalityNextOld != observationCardinalityNextNew)
emit IncreaseObservationCardinalityNext(observationCardinalityNextOld, observationCardinalityNextNew);
}
/// @inheritdoc IUniswapV3PoolActions
/// @dev not locked because it initializes unlocked
function initialize(uint160 sqrtPriceX96) external override {
require(slot0.sqrtPriceX96 == 0, 'AI');
int24 tick = TickMath.getTickAtSqrtRatio(sqrtPriceX96);
(uint16 cardinality, uint16 cardinalityNext) = observations.initialize(_blockTimestamp());
// Automatically set a 20% protocol fee on pool deployment
slot0 = Slot0({
sqrtPriceX96: sqrtPriceX96,
tick: tick,
observationIndex: 0,
observationCardinality: cardinality,
observationCardinalityNext: cardinalityNext,
feeProtocol: 7 + (7 << 4),
unlocked: true
});
emit Initialize(sqrtPriceX96, tick);
}
struct ModifyPositionParams {
// the address that owns the position
address owner;
// the lower and upper tick of the position
int24 tickLower;
int24 tickUpper;
// any change in liquidity
int128 liquidityDelta;
}
/// @dev Effect some changes to a position
/// @param params the position details and the change to the position's liquidity to effect
/// @return position a storage pointer referencing the position with the given owner and tick range
/// @return amount0 the amount of token0 owed to the pool, negative if the pool should pay the recipient
/// @return amount1 the amount of token1 owed to the pool, negative if the pool should pay the recipient
function _modifyPosition(ModifyPositionParams memory params)
private
noDelegateCall
returns (
Position.Info storage position,
int256 amount0,
int256 amount1
)
{
checkTicks(params.tickLower, params.tickUpper);
Slot0 memory _slot0 = slot0; // SLOAD for gas optimization
position = _updatePosition(
params.owner,
params.tickLower,
params.tickUpper,
params.liquidityDelta,
_slot0.tick
);
if (params.liquidityDelta != 0) {
if (_slot0.tick < params.tickLower) {
// current tick is below the passed range; liquidity can only become in range by crossing from left to
// right, when we'll need _more_ token0 (it's becoming more valuable) so user must provide it
amount0 = SqrtPriceMath.getAmount0Delta(
TickMath.getSqrtRatioAtTick(params.tickLower),
TickMath.getSqrtRatioAtTick(params.tickUpper),
params.liquidityDelta
);
} else if (_slot0.tick < params.tickUpper) {
// current tick is inside the passed range
uint128 liquidityBefore = liquidity; // SLOAD for gas optimization
// write an oracle entry
(slot0.observationIndex, slot0.observationCardinality) = observations.write(
_slot0.observationIndex,
_blockTimestamp(),
_slot0.tick,
liquidityBefore,
_slot0.observationCardinality,
_slot0.observationCardinalityNext
);
amount0 = SqrtPriceMath.getAmount0Delta(
_slot0.sqrtPriceX96,
TickMath.getSqrtRatioAtTick(params.tickUpper),
params.liquidityDelta
);
amount1 = SqrtPriceMath.getAmount1Delta(
TickMath.getSqrtRatioAtTick(params.tickLower),
_slot0.sqrtPriceX96,
params.liquidityDelta
);
liquidity = LiquidityMath.addDelta(liquidityBefore, params.liquidityDelta);
} else {
// current tick is above the passed range; liquidity can only become in range by crossing from right to
// left, when we'll need _more_ token1 (it's becoming more valuable) so user must provide it
amount1 = SqrtPriceMath.getAmount1Delta(
TickMath.getSqrtRatioAtTick(params.tickLower),
TickMath.getSqrtRatioAtTick(params.tickUpper),
params.liquidityDelta
);
}
}
}
/// @dev Gets and updates a position with the given liquidity delta
/// @param owner the owner of the position
/// @param tickLower the lower tick of the position's tick range
/// @param tickUpper the upper tick of the position's tick range
/// @param tick the current tick, passed to avoid sloads
function _updatePosition(
address owner,
int24 tickLower,
int24 tickUpper,
int128 liquidityDelta,
int24 tick
) private returns (Position.Info storage position) {
position = positions.get(owner, tickLower, tickUpper);
uint256 _feeGrowthGlobal0X128 = feeGrowthGlobal0X128; // SLOAD for gas optimization
uint256 _feeGrowthGlobal1X128 = feeGrowthGlobal1X128; // SLOAD for gas optimization
// if we need to update the ticks, do it
bool flippedLower;
bool flippedUpper;
if (liquidityDelta != 0) {
uint32 time = _blockTimestamp();
(int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128) =
observations.observeSingle(
time,
0,
slot0.tick,
slot0.observationIndex,
liquidity,
slot0.observationCardinality
);
flippedLower = ticks.update(
tickLower,
tick,
liquidityDelta,
_feeGrowthGlobal0X128,
_feeGrowthGlobal1X128,
secondsPerLiquidityCumulativeX128,
tickCumulative,
time,
false,
maxLiquidityPerTick
);
flippedUpper = ticks.update(
tickUpper,
tick,
liquidityDelta,
_feeGrowthGlobal0X128,
_feeGrowthGlobal1X128,
secondsPerLiquidityCumulativeX128,
tickCumulative,
time,
true,
maxLiquidityPerTick
);
if (flippedLower) {
tickBitmap.flipTick(tickLower, tickSpacing);
}
if (flippedUpper) {
tickBitmap.flipTick(tickUpper, tickSpacing);
}
}
(uint256 feeGrowthInside0X128, uint256 feeGrowthInside1X128) =
ticks.getFeeGrowthInside(tickLower, tickUpper, tick, _feeGrowthGlobal0X128, _feeGrowthGlobal1X128);
position.update(liquidityDelta, feeGrowthInside0X128, feeGrowthInside1X128);
// clear any tick data that is no longer needed
if (liquidityDelta < 0) {
if (flippedLower) {
ticks.clear(tickLower);
}
if (flippedUpper) {
ticks.clear(tickUpper);
}
}
}
/// @inheritdoc IUniswapV3PoolActions
/// @dev noDelegateCall is applied indirectly via _modifyPosition
function mint(
address recipient,
int24 tickLower,
int24 tickUpper,
uint128 amount,
bytes calldata data
) external override lock returns (uint256 amount0, uint256 amount1) {
require(amount > 0);
(, int256 amount0Int, int256 amount1Int) =
_modifyPosition(
ModifyPositionParams({
owner: recipient,
tickLower: tickLower,
tickUpper: tickUpper,
liquidityDelta: int256(amount).toInt128()
})
);
amount0 = uint256(amount0Int);
amount1 = uint256(amount1Int);
uint256 balance0Before;
uint256 balance1Before;
if (amount0 > 0) balance0Before = balance0();
if (amount1 > 0) balance1Before = balance1();
IUniswapV3MintCallback(msg.sender).uniswapV3MintCallback(amount0, amount1, data);
if (amount0 > 0) require(balance0Before.add(amount0) <= balance0(), 'M0');
if (amount1 > 0) require(balance1Before.add(amount1) <= balance1(), 'M1');
emit Mint(msg.sender, recipient, tickLower, tickUpper, amount, amount0, amount1);
}
/// @inheritdoc IUniswapV3PoolActions
function collect(
address recipient,
int24 tickLower,
int24 tickUpper,
uint128 amount0Requested,
uint128 amount1Requested
) external override lock returns (uint128 amount0, uint128 amount1) {
// we don't need to checkTicks here, because invalid positions will never have non-zero tokensOwed{0,1}
Position.Info storage position = positions.get(msg.sender, tickLower, tickUpper);
amount0 = amount0Requested > position.tokensOwed0 ? position.tokensOwed0 : amount0Requested;
amount1 = amount1Requested > position.tokensOwed1 ? position.tokensOwed1 : amount1Requested;
if (amount0 > 0) {
position.tokensOwed0 -= amount0;
TransferHelper.safeTransfer(token0, recipient, amount0);
}
if (amount1 > 0) {
position.tokensOwed1 -= amount1;
TransferHelper.safeTransfer(token1, recipient, amount1);
}
emit Collect(msg.sender, recipient, tickLower, tickUpper, amount0, amount1);
}
/// @inheritdoc IUniswapV3PoolActions
/// @dev noDelegateCall is applied indirectly via _modifyPosition
function burn(
int24 tickLower,
int24 tickUpper,
uint128 amount
) external override lock returns (uint256 amount0, uint256 amount1) {
(Position.Info storage position, int256 amount0Int, int256 amount1Int) =
_modifyPosition(
ModifyPositionParams({
owner: msg.sender,
tickLower: tickLower,
tickUpper: tickUpper,
liquidityDelta: -int256(amount).toInt128()
})
);
amount0 = uint256(-amount0Int);
amount1 = uint256(-amount1Int);
if (amount0 > 0 || amount1 > 0) {
(position.tokensOwed0, position.tokensOwed1) = (
position.tokensOwed0 + uint128(amount0),
position.tokensOwed1 + uint128(amount1)
);
}
emit Burn(msg.sender, tickLower, tickUpper, amount, amount0, amount1);
}
struct SwapCache {
// the protocol fee for the input token
uint8 feeProtocol;
// liquidity at the beginning of the swap
uint128 liquidityStart;
// the timestamp of the current block
uint32 blockTimestamp;
// the current value of the tick accumulator, computed only if we cross an initialized tick
int56 tickCumulative;
// the current value of seconds per liquidity accumulator, computed only if we cross an initialized tick
uint160 secondsPerLiquidityCumulativeX128;
// whether we've computed and cached the above two accumulators
bool computedLatestObservation;
}
// the top level state of the swap, the results of which are recorded in storage at the end
struct SwapState {
// the amount remaining to be swapped in/out of the input/output asset
int256 amountSpecifiedRemaining;
// the amount already swapped out/in of the output/input asset
int256 amountCalculated;
// current sqrt(price)
uint160 sqrtPriceX96;
// the tick associated with the current price
int24 tick;
// the global fee growth of the input token
uint256 feeGrowthGlobalX128;
// amount of input token paid as protocol fee
uint128 protocolFee;
// the current liquidity in range
uint128 liquidity;
}
struct StepComputations {
// the price at the beginning of the step
uint160 sqrtPriceStartX96;
// the next tick to swap to from the current tick in the swap direction
int24 tickNext;
// whether tickNext is initialized or not
bool initialized;
// sqrt(price) for the next tick (1/0)
uint160 sqrtPriceNextX96;
// how much is being swapped in in this step
uint256 amountIn;
// how much is being swapped out
uint256 amountOut;
// how much fee is being paid in
uint256 feeAmount;
}
/// @inheritdoc IUniswapV3PoolActions
function swap(
address recipient,
bool zeroForOne,
int256 amountSpecified,
uint160 sqrtPriceLimitX96,
bytes calldata data
) external override noDelegateCall returns (int256 amount0, int256 amount1) {
require(amountSpecified != 0, 'AS');
Slot0 memory slot0Start = slot0;
require(slot0Start.unlocked, 'LOK');
require(
zeroForOne
? sqrtPriceLimitX96 < slot0Start.sqrtPriceX96 && sqrtPriceLimitX96 > TickMath.MIN_SQRT_RATIO
: sqrtPriceLimitX96 > slot0Start.sqrtPriceX96 && sqrtPriceLimitX96 < TickMath.MAX_SQRT_RATIO,
'SPL'
);
slot0.unlocked = false;
SwapCache memory cache =
SwapCache({
liquidityStart: liquidity,
blockTimestamp: _blockTimestamp(),
feeProtocol: zeroForOne ? (slot0Start.feeProtocol % 16) : (slot0Start.feeProtocol >> 4),
secondsPerLiquidityCumulativeX128: 0,
tickCumulative: 0,
computedLatestObservation: false
});
bool exactInput = amountSpecified > 0;
SwapState memory state =
SwapState({
amountSpecifiedRemaining: amountSpecified,
amountCalculated: 0,
sqrtPriceX96: slot0Start.sqrtPriceX96,
tick: slot0Start.tick,
feeGrowthGlobalX128: zeroForOne ? feeGrowthGlobal0X128 : feeGrowthGlobal1X128,
protocolFee: 0,
liquidity: cache.liquidityStart
});
// continue swapping as long as we haven't used the entire input/output and haven't reached the price limit
while (state.amountSpecifiedRemaining != 0 && state.sqrtPriceX96 != sqrtPriceLimitX96) {
StepComputations memory step;
step.sqrtPriceStartX96 = state.sqrtPriceX96;
(step.tickNext, step.initialized) = tickBitmap.nextInitializedTickWithinOneWord(
state.tick,
tickSpacing,
zeroForOne
);
// ensure that we do not overshoot the min/max tick, as the tick bitmap is not aware of these bounds
if (step.tickNext < TickMath.MIN_TICK) {
step.tickNext = TickMath.MIN_TICK;
} else if (step.tickNext > TickMath.MAX_TICK) {
step.tickNext = TickMath.MAX_TICK;
}
// get the price for the next tick
step.sqrtPriceNextX96 = TickMath.getSqrtRatioAtTick(step.tickNext);
// compute values to swap to the target tick, price limit, or point where input/output amount is exhausted
(state.sqrtPriceX96, step.amountIn, step.amountOut, step.feeAmount) = SwapMath.computeSwapStep(
state.sqrtPriceX96,
(zeroForOne ? step.sqrtPriceNextX96 < sqrtPriceLimitX96 : step.sqrtPriceNextX96 > sqrtPriceLimitX96)
? sqrtPriceLimitX96
: step.sqrtPriceNextX96,
state.liquidity,
state.amountSpecifiedRemaining,
fee
);
if (exactInput) {
state.amountSpecifiedRemaining -= (step.amountIn + step.feeAmount).toInt256();
state.amountCalculated = state.amountCalculated.sub(step.amountOut.toInt256());
} else {
state.amountSpecifiedRemaining += step.amountOut.toInt256();
state.amountCalculated = state.amountCalculated.add((step.amountIn + step.feeAmount).toInt256());
}
// if the protocol fee is on, calculate how much is owed, decrement feeAmount, and increment protocolFee
if (cache.feeProtocol > 0) {
uint256 delta = step.feeAmount / cache.feeProtocol;
step.feeAmount -= delta;
state.protocolFee += uint128(delta);
}
// update global fee tracker
if (state.liquidity > 0)
state.feeGrowthGlobalX128 += FullMath.mulDiv(step.feeAmount, FixedPoint128.Q128, state.liquidity);
// shift tick if we reached the next price
if (state.sqrtPriceX96 == step.sqrtPriceNextX96) {
// if the tick is initialized, run the tick transition
if (step.initialized) {
// check for the placeholder value, which we replace with the actual value the first time the swap
// crosses an initialized tick
if (!cache.computedLatestObservation) {
(cache.tickCumulative, cache.secondsPerLiquidityCumulativeX128) = observations.observeSingle(
cache.blockTimestamp,
0,
slot0Start.tick,
slot0Start.observationIndex,
cache.liquidityStart,
slot0Start.observationCardinality
);
cache.computedLatestObservation = true;
}
int128 liquidityNet =
ticks.cross(
step.tickNext,
(zeroForOne ? state.feeGrowthGlobalX128 : feeGrowthGlobal0X128),
(zeroForOne ? feeGrowthGlobal1X128 : state.feeGrowthGlobalX128),
cache.secondsPerLiquidityCumulativeX128,
cache.tickCumulative,
cache.blockTimestamp
);
// if we're moving leftward, we interpret liquidityNet as the opposite sign
// safe because liquidityNet cannot be type(int128).min
if (zeroForOne) liquidityNet = -liquidityNet;
state.liquidity = LiquidityMath.addDelta(state.liquidity, liquidityNet);
}
state.tick = zeroForOne ? step.tickNext - 1 : step.tickNext;
} else if (state.sqrtPriceX96 != step.sqrtPriceStartX96) {
// recompute unless we're on a lower tick boundary (i.e. already transitioned ticks), and haven't moved
state.tick = TickMath.getTickAtSqrtRatio(state.sqrtPriceX96);
}
}
// update tick and write an oracle entry if the tick change
if (state.tick != slot0Start.tick) {
(uint16 observationIndex, uint16 observationCardinality) =
observations.write(
slot0Start.observationIndex,
cache.blockTimestamp,
slot0Start.tick,
cache.liquidityStart,
slot0Start.observationCardinality,
slot0Start.observationCardinalityNext
);
(slot0.sqrtPriceX96, slot0.tick, slot0.observationIndex, slot0.observationCardinality) = (
state.sqrtPriceX96,
state.tick,
observationIndex,
observationCardinality
);
} else {
// otherwise just update the price
slot0.sqrtPriceX96 = state.sqrtPriceX96;
}
// update liquidity if it changed
if (cache.liquidityStart != state.liquidity) liquidity = state.liquidity;
// update fee growth global and, if necessary, protocol fees
// overflow is acceptable, protocol has to withdraw before it hits type(uint128).max fees
if (zeroForOne) {
feeGrowthGlobal0X128 = state.feeGrowthGlobalX128;
if (state.protocolFee > 0) protocolFees.token0 += state.protocolFee;
} else {
feeGrowthGlobal1X128 = state.feeGrowthGlobalX128;
if (state.protocolFee > 0) protocolFees.token1 += state.protocolFee;
}
(amount0, amount1) = zeroForOne == exactInput
? (amountSpecified - state.amountSpecifiedRemaining, state.amountCalculated)
: (state.amountCalculated, amountSpecified - state.amountSpecifiedRemaining);
// do the transfers and collect payment
if (zeroForOne) {
if (amount1 < 0) TransferHelper.safeTransfer(token1, recipient, uint256(-amount1));
uint256 balance0Before = balance0();
IUniswapV3SwapCallback(msg.sender).uniswapV3SwapCallback(amount0, amount1, data);
require(balance0Before.add(uint256(amount0)) <= balance0(), 'IIA');
} else {
if (amount0 < 0) TransferHelper.safeTransfer(token0, recipient, uint256(-amount0));
uint256 balance1Before = balance1();
IUniswapV3SwapCallback(msg.sender).uniswapV3SwapCallback(amount0, amount1, data);
require(balance1Before.add(uint256(amount1)) <= balance1(), 'IIA');
}
emit Swap(msg.sender, recipient, amount0, amount1, state.sqrtPriceX96, state.liquidity, state.tick);
slot0.unlocked = true;
}
/// @inheritdoc IUniswapV3PoolActions
function flash(
address recipient,
uint256 amount0,
uint256 amount1,
bytes calldata data
) external override lock noDelegateCall {
uint128 _liquidity = liquidity;
require(_liquidity > 0, 'L');
uint256 fee0 = FullMath.mulDivRoundingUp(amount0, fee, 1e6);
uint256 fee1 = FullMath.mulDivRoundingUp(amount1, fee, 1e6);
uint256 balance0Before = balance0();
uint256 balance1Before = balance1();
if (amount0 > 0) TransferHelper.safeTransfer(token0, recipient, amount0);
if (amount1 > 0) TransferHelper.safeTransfer(token1, recipient, amount1);
IUniswapV3FlashCallback(msg.sender).uniswapV3FlashCallback(fee0, fee1, data);
uint256 balance0After = balance0();
uint256 balance1After = balance1();
require(balance0Before.add(fee0) <= balance0After, 'F0');
require(balance1Before.add(fee1) <= balance1After, 'F1');
// sub is safe because we know balanceAfter is gt balanceBefore by at least fee
uint256 paid0 = balance0After - balance0Before;
uint256 paid1 = balance1After - balance1Before;
if (paid0 > 0) {
uint8 feeProtocol0 = slot0.feeProtocol % 16;
uint256 fees0 = feeProtocol0 == 0 ? 0 : paid0 / feeProtocol0;
if (uint128(fees0) > 0) protocolFees.token0 += uint128(fees0);
feeGrowthGlobal0X128 += FullMath.mulDiv(paid0 - fees0, FixedPoint128.Q128, _liquidity);
}
if (paid1 > 0) {
uint8 feeProtocol1 = slot0.feeProtocol >> 4;
uint256 fees1 = feeProtocol1 == 0 ? 0 : paid1 / feeProtocol1;
if (uint128(fees1) > 0) protocolFees.token1 += uint128(fees1);
feeGrowthGlobal1X128 += FullMath.mulDiv(paid1 - fees1, FixedPoint128.Q128, _liquidity);
}
emit Flash(msg.sender, recipient, amount0, amount1, paid0, paid1);
}
/// @inheritdoc IUniswapV3PoolOwnerActions
function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external override lock onlyFactoryOwner {
require(
(feeProtocol0 == 0 || (feeProtocol0 >= 4 && feeProtocol0 <= 10)) &&
(feeProtocol1 == 0 || (feeProtocol1 >= 4 && feeProtocol1 <= 10))
);
uint8 feeProtocolOld = slot0.feeProtocol;
slot0.feeProtocol = feeProtocol0 + (feeProtocol1 << 4);
emit SetFeeProtocol(feeProtocolOld % 16, feeProtocolOld >> 4, feeProtocol0, feeProtocol1);
}
/// @inheritdoc IUniswapV3PoolOwnerActions
function collectProtocol(
address recipient,
uint128 amount0Requested,
uint128 amount1Requested
) external override lock onlyFactoryOwner returns (uint128 amount0, uint128 amount1) {
amount0 = amount0Requested > protocolFees.token0 ? protocolFees.token0 : amount0Requested;
amount1 = amount1Requested > protocolFees.token1 ? protocolFees.token1 : amount1Requested;
if (amount0 > 0) {
if (amount0 == protocolFees.token0) amount0--; // ensure that the slot is not cleared, for gas savings
protocolFees.token0 -= amount0;
TransferHelper.safeTransfer(token0, recipient, amount0);
}
if (amount1 > 0) {
if (amount1 == protocolFees.token1) amount1--; // ensure that the slot is not cleared, for gas savings
protocolFees.token1 -= amount1;
TransferHelper.safeTransfer(token1, recipient, amount1);
}
emit CollectProtocol(msg.sender, recipient, amount0, amount1);
}
}[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"name": "Burn",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tickLower",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "amount",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Collect",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "tickLower",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "amount0",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
},
{
"name": "amount1",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
}
],
"anonymous": false
},
{
"name": "CollectProtocol",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
},
{
"name": "amount1",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
}
],
"anonymous": false
},
{
"name": "Flash",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "paid0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "paid1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "IncreaseObservationCardinalityNext",
"type": "event",
"inputs": [
{
"name": "observationCardinalityNextOld",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
},
{
"name": "observationCardinalityNextNew",
"type": "uint16",
"indexed": false,
"internalType": "uint16"
}
],
"anonymous": false
},
{
"name": "Initialize",
"type": "event",
"inputs": [
{
"name": "sqrtPriceX96",
"type": "uint160",
"indexed": false,
"internalType": "uint160"
},
{
"name": "tick",
"type": "int24",
"indexed": false,
"internalType": "int24"
}
],
"anonymous": false
},
{
"name": "Mint",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tickLower",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"indexed": true,
"internalType": "int24"
},
{
"name": "amount",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetFeeProtocol",
"type": "event",
"inputs": [
{
"name": "feeProtocol0Old",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
},
{
"name": "feeProtocol1Old",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
},
{
"name": "feeProtocol0New",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
},
{
"name": "feeProtocol1New",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
}
],
"anonymous": false
},
{
"name": "Swap",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "int256",
"indexed": false,
"internalType": "int256"
},
{
"name": "amount1",
"type": "int256",
"indexed": false,
"internalType": "int256"
},
{
"name": "sqrtPriceX96",
"type": "uint160",
"indexed": false,
"internalType": "uint160"
},
{
"name": "liquidity",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
},
{
"name": "tick",
"type": "int24",
"indexed": false,
"internalType": "int24"
}
],
"anonymous": false
},
{
"name": "burn",
"type": "function",
"inputs": [
{
"name": "tickLower",
"type": "int24",
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"internalType": "int24"
},
{
"name": "amount",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "collect",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "tickLower",
"type": "int24",
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"internalType": "int24"
},
{
"name": "amount0Requested",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "amount1Requested",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "amount1",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "nonpayable"
},
{
"name": "collectProtocol",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount0Requested",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "amount1Requested",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "amount1",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "nonpayable"
},
{
"name": "factory",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "fee",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint24",
"internalType": "uint24"
}
],
"stateMutability": "view"
},
{
"name": "feeGrowthGlobal0X128",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "feeGrowthGlobal1X128",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "flash",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "increaseObservationCardinalityNext",
"type": "function",
"inputs": [
{
"name": "observationCardinalityNext",
"type": "uint16",
"internalType": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "sqrtPriceX96",
"type": "uint160",
"internalType": "uint160"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "liquidity",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"name": "maxLiquidityPerTick",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"name": "mint",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "tickLower",
"type": "int24",
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"internalType": "int24"
},
{
"name": "amount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "observations",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "blockTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "tickCumulative",
"type": "int56",
"internalType": "int56"
},
{
"name": "secondsPerLiquidityCumulativeX128",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "initialized",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "observe",
"type": "function",
"inputs": [
{
"name": "secondsAgos",
"type": "uint32[]",
"internalType": "uint32[]"
}
],
"outputs": [
{
"name": "tickCumulatives",
"type": "int56[]",
"internalType": "int56[]"
},
{
"name": "secondsPerLiquidityCumulativeX128s",
"type": "uint160[]",
"internalType": "uint160[]"
}
],
"stateMutability": "view"
},
{
"name": "positions",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "liquidity",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "feeGrowthInside0LastX128",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "feeGrowthInside1LastX128",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokensOwed0",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "tokensOwed1",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"name": "protocolFees",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "token0",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "token1",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"name": "setFeeProtocol",
"type": "function",
"inputs": [
{
"name": "feeProtocol0",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "feeProtocol1",
"type": "uint8",
"internalType": "uint8"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "slot0",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "sqrtPriceX96",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "tick",
"type": "int24",
"internalType": "int24"
},
{
"name": "observationIndex",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "observationCardinality",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "observationCardinalityNext",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "feeProtocol",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "unlocked",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "snapshotCumulativesInside",
"type": "function",
"inputs": [
{
"name": "tickLower",
"type": "int24",
"internalType": "int24"
},
{
"name": "tickUpper",
"type": "int24",
"internalType": "int24"
}
],
"outputs": [
{
"name": "tickCumulativeInside",
"type": "int56",
"internalType": "int56"
},
{
"name": "secondsPerLiquidityInsideX128",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "secondsInside",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"name": "swap",
"type": "function",
"inputs": [
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "zeroForOne",
"type": "bool",
"internalType": "bool"
},
{
"name": "amountSpecified",
"type": "int256",
"internalType": "int256"
},
{
"name": "sqrtPriceLimitX96",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "amount0",
"type": "int256",
"internalType": "int256"
},
{
"name": "amount1",
"type": "int256",
"internalType": "int256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "tickBitmap",
"type": "function",
"inputs": [
{
"name": "",
"type": "int16",
"internalType": "int16"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "tickSpacing",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int24",
"internalType": "int24"
}
],
"stateMutability": "view"
},
{
"name": "ticks",
"type": "function",
"inputs": [
{
"name": "",
"type": "int24",
"internalType": "int24"
}
],
"outputs": [
{
"name": "liquidityGross",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "liquidityNet",
"type": "int128",
"internalType": "int128"
},
{
"name": "feeGrowthOutside0X128",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "feeGrowthOutside1X128",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tickCumulativeOutside",
"type": "int56",
"internalType": "int56"
},
{
"name": "secondsPerLiquidityOutsideX128",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "secondsOutside",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "initialized",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "token0",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "token1",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
}
]0x608060405234801561001057600080fd5b506004361061013e5760003560e01c80630dfe168114610143578063128acb08146101675780631a686502146102145780631ad8b03b14610238578063252c09d71461026f57806332148f67146102c65780633850c7bd146102e95780633c8a7d8d1461034257806346141319146103e2578063490e6cbc146103fc5780634f1eb3d814610486578063514ea4bf146104d75780635339c2961461053057806370cf754a146105505780638206a4d11461055857806385b6672914610580578063883bdbfd146105bd578063a34123a7146106c4578063a38807f2146106fe578063c45a015514610759578063d0c93a7c14610761578063d21220a714610780578063ddca3f4314610788578063f3058399146107a8578063f30dba93146107b0578063f637731d14610832575b600080fd5b61014b610858565b604080516001600160a01b039092168252519081900360200190f35b6101fb600480360360a081101561017d57600080fd5b6001600160a01b0382358116926020810135151592604082013592606083013516919081019060a081016080820135600160201b8111156101bd57600080fd5b8201836020820111156101cf57600080fd5b803590602001918460018302840111600160201b831117156101f057600080fd5b50909250905061087c565b6040805192835260208301919091528051918290030190f35b61021c61141b565b604080516001600160801b039092168252519081900360200190f35b61024061142a565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b61028c6004803603602081101561028557600080fd5b5035611444565b6040805163ffffffff909516855260069390930b60208501526001600160a01b039091168383015215156060830152519081900360800190f35b6102e7600480360360208110156102dc57600080fd5b503561ffff16611489565b005b6102f1611583565b604080516001600160a01b03909816885260029690960b602088015261ffff9485168787015292841660608701529216608085015260ff90911660a0840152151560c0830152519081900360e00190f35b6101fb600480360360a081101561035857600080fd5b6001600160a01b03823516916020810135600290810b92604083013590910b916001600160801b036060820135169181019060a081016080820135600160201b8111156103a457600080fd5b8201836020820111156103b657600080fd5b803590602001918460018302840111600160201b831117156103d757600080fd5b5090925090506115d3565b6103ea61188f565b60408051918252519081900360200190f35b6102e76004803603608081101561041257600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561044857600080fd5b82018360208201111561045a57600080fd5b803590602001918460018302840111600160201b8311171561047b57600080fd5b509092509050611895565b610240600480360360a081101561049c57600080fd5b506001600160a01b03813516906020810135600290810b91604081013590910b906001600160801b0360608201358116916080013516611cf0565b6104f4600480360360208110156104ed57600080fd5b5035611f0a565b604080516001600160801b0396871681526020810195909552848101939093529084166060840152909216608082015290519081900360a00190f35b6103ea6004803603602081101561054657600080fd5b503560010b611f47565b61021c611f59565b6102e76004803603604081101561056e57600080fd5b5060ff81358116916020013516611f7d565b6102406004803603606081101561059657600080fd5b506001600160a01b03813516906001600160801b0360208201358116916040013516612161565b61062b600480360360208110156105d357600080fd5b810190602081018135600160201b8111156105ed57600080fd5b8201836020820111156105ff57600080fd5b803590602001918460208302840111600160201b8311171561062057600080fd5b50909250905061242e565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561066f578181015183820152602001610657565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156106ae578181015183820152602001610696565b5050505090500194505050505060405180910390f35b6101fb600480360360608110156106da57600080fd5b508035600290810b91602081013590910b90604001356001600160801b03166124bb565b6107286004803603604081101561071457600080fd5b508035600290810b9160200135900b612632565b6040805160069490940b84526001600160a01b03909216602084015263ffffffff1682820152519081900360600190f35b61014b612821565b610769612845565b6040805160029290920b8252519081900360200190f35b61014b612869565b61079061288d565b6040805162ffffff9092168252519081900360200190f35b6103ea6128b1565b6107d0600480360360208110156107c657600080fd5b503560020b6128b7565b604080516001600160801b039099168952600f9790970b602089015287870195909552606087019390935260069190910b60808601526001600160a01b031660a085015263ffffffff1660c0840152151560e083015251908190036101000190f35b6102e76004803603602081101561084857600080fd5b50356001600160a01b0316612921565b7f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef3481565b600080610887612b03565b856108be576040805162461bcd60e51b8152602060048201526002602482015261415360f01b604482015290519081900360640190fd5b6040805160e0810182526000546001600160a01b0381168252600160a01b8104600290810b810b900b602083015261ffff600160b81b8204811693830193909352600160c81b810483166060830152600160d81b8104909216608082015260ff600160e81b8304811660a0830152600160f01b909204909116151560c08201819052610977576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b876109c25780600001516001600160a01b0316866001600160a01b03161180156109bd575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038716105b6109f4565b80600001516001600160a01b0316866001600160a01b03161080156109f457506401000276a36001600160a01b038716115b610a2b576040805162461bcd60e51b815260206004820152600360248201526214d41360ea1b604482015290519081900360640190fd5b6000805460ff60f01b191681556040805160c08101909152808a610a5a5760048460a0015160ff16901c610a6d565b60108460a0015160ff1681610a6b57fe5b065b60ff1681526004546001600160801b03166020820152604001610a8e612b3a565b63ffffffff168152602001600060060b815260200160006001600160a01b031681526020016000151581525090506000808913905060006040518060e001604052808b81526020016000815260200185600001516001600160a01b03168152602001856020015160020b81526020018c610b0a57600254610b0e565b6001545b815260200160006001600160801b0316815260200184602001516001600160801b031681525090505b805115801590610b5d5750886001600160a01b031681604001516001600160a01b031614155b15610f2757610b6a615414565b60408201516001600160a01b031681526060820151610bad906006907f000000000000000000000000000000000000000000000000000000000000000a8f612b3e565b15156040830152600290810b810b60208301819052620d89e719910b1215610bde57620d89e7196020820152610bfd565b6020810151620d89e860029190910b1315610bfd57620d89e860208201525b610c0a8160200151612c80565b6001600160a01b031660608201526040820151610c9b908d610c44578b6001600160a01b031683606001516001600160a01b031611610c5e565b8b6001600160a01b031683606001516001600160a01b0316105b610c6c578260600151610c6e565b8b5b60c085015185517f00000000000000000000000000000000000000000000000000000000000001f4612fa7565b60c085015260a084015260808301526001600160a01b031660408301528215610cfd57610cd18160c00151826080015101613199565b825103825260a0810151610cf390610ce890613199565b6020840151906131af565b6020830152610d38565b610d0a8160a00151613199565b825101825260c08101516080820151610d3291610d279101613199565b6020840151906131cb565b60208301525b835160ff1615610d7e576000846000015160ff168260c0015181610d5857fe5b60c0840180519290910491829003905260a0840180519091016001600160801b03169052505b60c08201516001600160801b031615610dbd57610db18160c00151600160801b8460c001516001600160801b03166131e1565b60808301805190910190525b80606001516001600160a01b031682604001516001600160a01b03161415610ee657806040015115610ebd578360a00151610e4757610e25846040015160008760200151886040015188602001518a606001516008613291909695949392919063ffffffff16565b6001600160a01b03166080860152600690810b900b6060850152600160a08501525b6000610e9382602001518e610e5e57600154610e64565b84608001515b8f610e73578560800151610e77565b6002545b608089015160608a015160408b01516005959493929190613423565b90508c15610e9f576000035b610ead8360c00151826134dd565b6001600160801b031660c0840152505b8b610ecc578060200151610ed5565b60018160200151035b600290810b900b6060830152610f21565b80600001516001600160a01b031682604001516001600160a01b031614610f2157610f148260400151613593565b600290810b900b60608301525b50610b37565b836020015160020b816060015160020b14610ff557600080610f7586604001518660400151886020015188602001518a606001518b60800151600861387e909695949392919063ffffffff16565b604085015160608601516000805461ffff60c81b1916600160c81b61ffff958616021761ffff60b81b1916600160b81b95909416949094029290921762ffffff60a01b1916600160a01b62ffffff60029490940b9390931692909202919091176001600160a01b0319166001600160a01b039091161790555061101a9050565b6040810151600080546001600160a01b0319166001600160a01b039092169190911790555b8060c001516001600160801b031683602001516001600160801b0316146110605760c0810151600480546001600160801b0319166001600160801b039092169190911790555b8a156110b057608081015160015560a08101516001600160801b0316156110ab5760a0810151600380546001600160801b031981166001600160801b03918216909301169190911790555b6110f6565b608081015160025560a08101516001600160801b0316156110f65760a0810151600380546001600160801b03808216600160801b92839004821690940116029190911790555b8115158b15151461110f57602081015181518b0361111c565b80600001518a0381602001515b90965094508a1561125557600085121561115e5761115e7f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d1688d87600003613a03565b6000611168613b51565b9050336001600160a01b031663fa461e3388888c8c6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b1580156111ec57600080fd5b505af1158015611200573d6000803e3d6000fd5b5050505061120c613b51565b6112168289613c8a565b111561124f576040805162461bcd60e51b815260206004820152600360248201526249494160e81b604482015290519081900360640190fd5b5061137f565b600086121561128c5761128c7f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef348d88600003613a03565b6000611296613c9a565b9050336001600160a01b031663fa461e3388888c8c6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b15801561131a57600080fd5b505af115801561132e573d6000803e3d6000fd5b5050505061133a613c9a565b6113448288613c8a565b111561137d576040805162461bcd60e51b815260206004820152600360248201526249494160e81b604482015290519081900360640190fd5b505b60408082015160c083015160608085015184518b8152602081018b90526001600160a01b03948516818701526001600160801b039093169183019190915260020b60808201529151908e169133917fc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca679181900360a00190a350506000805460ff60f01b1916600160f01b17905550919890975095505050505050565b6004546001600160801b031681565b6003546001600160801b0380821691600160801b90041682565b60088161ffff811061145557600080fd5b015463ffffffff81169150600160201b810460060b90600160581b81046001600160a01b031690600160f81b900460ff1684565b600054600160f01b900460ff166114cd576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b191690556114e2612b03565b60008054600160d81b900461ffff16906114fe60088385613d32565b6000805461ffff808416600160d81b810261ffff60d81b199093169290921790925591925083161461156b576040805161ffff80851682528316602082015281517fac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a929181900390910190a15b50506000805460ff60f01b1916600160f01b17905550565b6000546001600160a01b03811690600160a01b810460020b9061ffff600160b81b8204811691600160c81b8104821691600160d81b8204169060ff600160e81b8204811691600160f01b90041687565b600080548190600160f01b900460ff1661161a576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b191690556001600160801b03851661163a57600080fd5b60008061168860405180608001604052808c6001600160a01b031681526020018b60020b81526020018a60020b815260200161167e8a6001600160801b0316613dd5565b600f0b9052613de6565b925092505081935080925060008060008611156116aa576116a7613b51565b91505b84156116bb576116b8613c9a565b90505b336001600160a01b031663d348799787878b8b6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b15801561173d57600080fd5b505af1158015611751573d6000803e3d6000fd5b5050505060008611156117a857611766613b51565b6117708388613c8a565b11156117a8576040805162461bcd60e51b815260206004820152600260248201526104d360f41b604482015290519081900360640190fd5b84156117f8576117b6613c9a565b6117c08287613c8a565b11156117f8576040805162461bcd60e51b81526020600482015260026024820152614d3160f01b604482015290519081900360640190fd5b8960020b8b60020b8d6001600160a01b03167f7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde338d8b8b60405180856001600160a01b03168152602001846001600160801b0316815260200183815260200182815260200194505050505060405180910390a450506000805460ff60f01b1916600160f01b17905550919890975095505050505050565b60025481565b600054600160f01b900460ff166118d9576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b191690556118ee612b03565b6004546001600160801b031680611930576040805162461bcd60e51b81526020600482015260016024820152601360fa1b604482015290519081900360640190fd5b6000611965867f00000000000000000000000000000000000000000000000000000000000001f462ffffff16620f4240614026565b9050600061199c867f00000000000000000000000000000000000000000000000000000000000001f462ffffff16620f4240614026565b905060006119a8613b51565b905060006119b4613c9a565b905088156119e7576119e77f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef348b8b613a03565b8715611a1857611a187f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d1688b8a613a03565b336001600160a01b031663e9cbafb085858a8a6040518563ffffffff1660e01b815260040180858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015611a9a57600080fd5b505af1158015611aae573d6000803e3d6000fd5b505050506000611abc613b51565b90506000611ac8613c9a565b905081611ad58588613c8a565b1115611b0d576040805162461bcd60e51b8152602060048201526002602482015261046360f41b604482015290519081900360640190fd5b80611b188487613c8a565b1115611b50576040805162461bcd60e51b8152602060048201526002602482015261463160f01b604482015290519081900360640190fd5b8382038382038115611bdf5760008054600160e81b9004600f16908115611b83578160ff168481611b7d57fe5b04611b86565b60005b90506001600160801b03811615611bb957600380546001600160801b038082168401166001600160801b03199091161790555b611bd3818503600160801b8d6001600160801b03166131e1565b60018054909101905550505b8015611c6a5760008054600160e81b900460041c600f16908115611c0f578160ff168381611c0957fe5b04611c12565b60005b90506001600160801b03811615611c4457600380546001600160801b03600160801b8083048216850182160291161790555b611c5e818403600160801b8d6001600160801b03166131e1565b60028054909101905550505b8d6001600160a01b0316336001600160a01b03167fbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca6338f8f86866040518085815260200184815260200183815260200182815260200194505050505060405180910390a350506000805460ff60f01b1916600160f01b179055505050505050505050505050565b600080548190600160f01b900460ff16611d37576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b19168155611d516007338989614060565b60038101549091506001600160801b0390811690861611611d725784611d81565b60038101546001600160801b03165b60038201549093506001600160801b03600160801b909104811690851611611da95783611dbf565b6003810154600160801b90046001600160801b03165b91506001600160801b03831615611e24576003810180546001600160801b031981166001600160801b03918216869003821617909155611e24907f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34908a908616613a03565b6001600160801b03821615611e8a576003810180546001600160801b03600160801b808304821686900382160291811691909117909155611e8a907f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d168908a908516613a03565b604080516001600160a01b038a1681526001600160801b0380861660208301528416818301529051600288810b92908a900b9133917f70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0919081900360600190a4506000805460ff60f01b1916600160f01b17905590969095509350505050565b60076020526000908152604090208054600182015460028301546003909301546001600160801b0392831693919281811691600160801b90041685565b60066020526000908152604090205481565b7f0000000000000000000000000000000000005e8b2285f864419ac400be90719681565b600054600160f01b900460ff16611fc1576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b1916905560408051638da5cb5b60e01b815290516001600160a01b037f000000000000000000000000ea561e058313b96011e5070ca7d0f027a44e37481691638da5cb5b916004808301926020929190829003018186803b15801561202e57600080fd5b505afa158015612042573d6000803e3d6000fd5b505050506040513d602081101561205857600080fd5b50516001600160a01b0316331461206e57600080fd5b60ff82161580612091575060048260ff16101580156120915750600a8260ff1611155b80156120bb575060ff811615806120bb575060048160ff16101580156120bb5750600a8160ff1611155b6120c457600080fd5b60008054610ff0600484901b16840160ff908116600160e81b90810260ff60e81b19841617909355919004167f973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b1336010826040805160ff9390920683168252600f600486901c16602083015286831682820152918516606082015290519081900360800190a150506000805460ff60f01b1916600160f01b17905550565b600080548190600160f01b900460ff166121a8576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b1916905560408051638da5cb5b60e01b815290516001600160a01b037f000000000000000000000000ea561e058313b96011e5070ca7d0f027a44e37481691638da5cb5b916004808301926020929190829003018186803b15801561221557600080fd5b505afa158015612229573d6000803e3d6000fd5b505050506040513d602081101561223f57600080fd5b50516001600160a01b0316331461225557600080fd5b6003546001600160801b0390811690851611612271578361227e565b6003546001600160801b03165b6003549092506001600160801b03600160801b9091048116908416116122a457826122b8565b600354600160801b90046001600160801b03165b90506001600160801b03821615612339576003546001600160801b03838116911614156122e757600019909101905b600380546001600160801b031981166001600160801b03918216859003821617909155612339907f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef349087908516613a03565b6001600160801b038116156123bf576003546001600160801b03828116600160801b90920416141561236a57600019015b600380546001600160801b03600160801b8083048216859003821602918116919091179091556123bf907f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d1689087908416613a03565b604080516001600160801b0380851682528316602082015281516001600160a01b0388169233927f596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151929081900390910190a36000805460ff60f01b1916600160f01b1790559094909350915050565b606080612439612b03565b6124b0612444612b3a565b858580806020026020016040519081016040528093929190818152602001838360200280828437600092018290525054600454600896959450600160a01b820460020b935061ffff600160b81b8304811693506001600160801b0390911691600160c81b9004166140bf565b915091509250929050565b600080548190600160f01b900460ff16612502576040805162461bcd60e51b81526020600482015260036024820152624c4f4b60e81b604482015290519081900360640190fd5b6000805460ff60f01b1916815560408051608081018252338152600288810b602083015287900b918101919091528190819061255b906060810161254e6001600160801b038a16613dd5565b600003600f0b9052613de6565b925092509250816000039450806000039350600085118061257c5750600084115b156125bb576003830180546001600160801b038082168089018216600160801b93849004831689019092169092029091176001600160801b0319161790555b604080516001600160801b0388168152602081018790528082018690529051600289810b92908b900b9133917f0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c919081900360600190a450506000805460ff60f01b1916600160f01b179055509094909350915050565b600080600061263f612b03565b6126498585614217565b600285810b810b60009081526005602052604080822087840b90930b825281206003830154600681900b93600160381b82046001600160a01b0316928492600160d81b810463ffffffff169284929091600160f81b900460ff16806126ad57600080fd5b6003820154600681900b9850600160381b81046001600160a01b03169650600160d81b810463ffffffff169450600160f81b900460ff16806126ee57600080fd5b50506040805160e0810182526000546001600160a01b0381168252600160a01b8104600290810b810b810b6020840181905261ffff600160b81b8404811695850195909552600160c81b830485166060850152600160d81b8304909416608084015260ff600160e81b8304811660a0850152600160f01b909204909116151560c08301529093508e810b91900b121590506127975750939094039650900393509003905061281a565b8a60020b816020015160020b121561280b5760006127b3612b3a565b60208301516040840151600454606086015193945060009384936127e9936008938893879392916001600160801b031690613291565b9a9003989098039b50509490960392909203965090910303925061281a915050565b50949093039650039350900390505b9250925092565b7f000000000000000000000000ea561e058313b96011e5070ca7d0f027a44e374881565b7f000000000000000000000000000000000000000000000000000000000000000a81565b7f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d16881565b7f00000000000000000000000000000000000000000000000000000000000001f481565b60015481565b60056020526000908152604090208054600182015460028301546003909301546001600160801b03831693600160801b909304600f0b9290600681900b90600160381b81046001600160a01b031690600160d81b810463ffffffff1690600160f81b900460ff1688565b6000546001600160a01b031615612964576040805162461bcd60e51b8152602060048201526002602482015261414960f01b604482015290519081900360640190fd5b600061296f82613593565b905060008061298761297f612b3a565b6008906142e0565b6040805160e0810182526001600160a01b038816808252600288810b6020808501829052600085870181905261ffff8981166060880181905290891660808801819052607760a0890152600160c0909801979097528154600160f01b6001600160a01b0319909116871762ffffff60a01b1916600160a01b62ffffff9787900b97909716969096029590951763ffffffff60b81b1916600160c81b9091021761ffff60d81b1916600160d81b9096029590951760ff60e81b1916607760e81b1760ff60f01b191692909217909355835191825281019190915281519395509193507f98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c9592918290030190a150505050565b60008082600281900b620d89e71981612aac57fe5b05029050600083600281900b620d89e881612ac357fe5b0502905060008460020b83830360020b81612ada57fe5b0560010190508062ffffff166001600160801b03801681612af757fe5b0493505050505b919050565b306001600160a01b037f000000000000000000000000d6b987dfbbf12827023448158f121004e8e2a5771614612b3857600080fd5b565b4290565b60008060008460020b8660020b81612b5257fe5b05905060008660020b128015612b7957508460020b8660020b81612b7257fe5b0760020b15155b15612b8357600019015b8315612bf857600080612b958361432c565b600182810b810b600090815260208d9052604090205460ff83169190911b80016000190190811680151597509294509092509085612bda57888360ff16860302612bed565b88612be48261433e565b840360ff168603025b965050505050612c76565b600080612c078360010161432c565b91509150600060018260ff166001901b031990506000818b60008660010b60010b8152602001908152602001600020541690508060001415955085612c5957888360ff0360ff16866001010102612c6f565b8883612c64836143d8565b0360ff168660010101025b9650505050505b5094509492505050565b60008060008360020b12612c97578260020b612c9f565b8260020b6000035b9050620d89e8811115612cdd576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b600060018216612cf157600160801b612d03565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615612d2d576ffff97272373d413259a46990580e213a0260801c5b6004821615612d4c576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615612d6b576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615612d8a576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615612da9576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615612dc8576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615612de7576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615612e07576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615612e27576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615612e47576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615612e67576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615612e87576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615612ea7576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615612ec7576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615612ee7576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615612f08576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615612f28576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615612f47576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615612f64576b048a170391f7dc42444e8fa20260801c5b60008460020b1315612f7f578060001981612f7b57fe5b0490505b600160201b810615612f92576001612f95565b60005b60ff16602082901c0192505050919050565b60008080806001600160a01b03808916908a16101581871280159061302c576000612fe08989620f42400362ffffff16620f42406131e1565b905082612ff957612ff48c8c8c60016144c1565b613006565b6130068b8d8c600161453c565b9550858110613017578a9650613026565b6130238c8b83866145e7565b96505b50613076565b816130435761303e8b8b8b600061453c565b613050565b6130508a8c8b60006144c1565b935083886000031061306457899550613076565b6130738b8a8a60000385614633565b95505b6001600160a01b038a81169087161482156130d9578080156130955750815b6130ab576130a6878d8c600161453c565b6130ad565b855b95508080156130ba575081155b6130d0576130cb878d8c60006144c1565b6130d2565b845b9450613123565b8080156130e35750815b6130f9576130f48c888c60016144c1565b6130fb565b855b9550808015613108575081155b61311e576131198c888c600061453c565b613120565b845b94505b8115801561313357508860000385115b1561313f578860000394505b81801561315e57508a6001600160a01b0316876001600160a01b031614155b1561316d57858903935061318a565b613187868962ffffff168a620f42400362ffffff16614026565b93505b50505095509550955095915050565b6000600160ff1b82106131ab57600080fd5b5090565b808203828113156000831215146131c557600080fd5b92915050565b818101828112156000831215146131c557600080fd5b6000808060001985870986860292508281109083900303905080613217576000841161320c57600080fd5b50829004905061328a565b80841161322357600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b60008063ffffffff8716613337576000898661ffff1661ffff81106132b257fe5b60408051608081018252919092015463ffffffff808216808452600160201b8304600690810b810b900b6020850152600160581b83046001600160a01b031694840194909452600160f81b90910460ff16151560608301529092508a161461332357613320818a898861467f565b90505b806020015181604001519250925050613417565b86880360008061334c8c8c858c8c8c8c614722565b91509150816000015163ffffffff168363ffffffff16141561337e578160200151826040015194509450505050613417565b805163ffffffff848116911614156133a6578060200151816040015194509450505050613417565b8151815160208085015190840151918390039286039163ffffffff80841692908516910360060b816133d457fe5b05028460200151018263ffffffff168263ffffffff1686604001518660400151036001600160a01b0316028161340657fe5b048560400151019650965050505050505b97509795505050505050565b600295860b860b60009081526020979097526040909620600181018054909503909455938301805490920390915560038201805463ffffffff600160d81b6001600160a01b03600160381b808504821690960316909402600160381b600160d81b031990921691909117600681810b90960390950b66ffffffffffffff1666ffffffffffffff199095169490941782810485169095039093160263ffffffff60d81b1990931692909217905554600160801b9004600f0b90565b60008082600f0b121561354257826001600160801b03168260000384039150816001600160801b03161061353d576040805162461bcd60e51b81526020600482015260026024820152614c5360f01b604482015290519081900360640190fd5b6131c5565b826001600160801b03168284019150816001600160801b031610156131c5576040805162461bcd60e51b81526020600482015260026024820152614c4160f01b604482015290519081900360640190fd5b60006401000276a36001600160a01b038316108015906135cf575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038316105b613604576040805162461bcd60e51b81526020600482015260016024820152602960f91b604482015290519081900360640190fd5b600160201b600160c01b03602083901b166001600160801b03811160071b81811c6001600160401b03811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c9790881196179094179092171790911717176080811061369657607f810383901c91506136a0565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c6001603f1b161760c19b909b1c6001603e1b169a909a1760c29990991c6001603d1b169890981760c39790971c6001603c1b169690961760c49590951c6001603b1b169490941760c59390931c6001603a1b169290921760c69190911c600160391b161760c79190911c600160381b161760c89190911c600160371b161760c99190911c600160361b161760ca9190911c600160351b161760cb9190911c600160341b161760cc9190911c600160331b161760cd9190911c600160321b1617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b1461386f57886001600160a01b031661385382612c80565b6001600160a01b03161115613868578161386a565b805b613871565b815b9998505050505050505050565b6000806000898961ffff1661ffff811061389457fe5b60408051608081018252919092015463ffffffff808216808452600160201b8304600690810b810b900b6020850152600160581b83046001600160a01b031694840194909452600160f81b90910460ff1615156060830152909250891614156139035788859250925050613417565b8461ffff168461ffff1611801561392457506001850361ffff168961ffff16145b1561393157839150613935565b8491505b8161ffff168960010161ffff168161394957fe5b0692506139588189898961467f565b8a8461ffff1661ffff811061396957fe5b825191018054602084015160408501516060909501511515600160f81b026001600160f81b036001600160a01b03909616600160581b02600160581b600160f81b031960069390930b66ffffffffffffff16600160201b0266ffffffffffffff60201b1963ffffffff90971663ffffffff199095169490941795909516929092171692909217929092161790555097509795505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b60208310613a7f5780518252601f199092019160209182019101613a60565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613ae1576040519150601f19603f3d011682016040523d82523d6000602084013e613ae6565b606091505b5091509150818015613b14575080511580613b145750808060200190516020811015613b1157600080fd5b50515b613b4a576040805162461bcd60e51b81526020600482015260026024820152612a2360f11b604482015290519081900360640190fd5b5050505050565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17815291518151600093849384936001600160a01b037f0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef341693919290918291908083835b60208310613bea5780518252601f199092019160209182019101613bcb565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114613c4a576040519150601f19603f3d011682016040523d82523d6000602084013e613c4f565b606091505b5091509150818015613c6357506020815110155b613c6c57600080fd5b808060200190516020811015613c8157600080fd5b50519250505090565b808201828110156131c557600080fd5b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17815291518151600093849384936001600160a01b037f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d16816939192909182919080838360208310613bea5780518252601f199092019160209182019101613bcb565b6000808361ffff1611613d70576040805162461bcd60e51b81526020600482015260016024820152604960f81b604482015290519081900360640190fd5b8261ffff168261ffff1611613d8657508161328a565b825b8261ffff168161ffff161015613dcc576001858261ffff1661ffff8110613dab57fe5b01805463ffffffff191663ffffffff92909216919091179055600101613d88565b50909392505050565b80600f81900b8114612afe57600080fd5b6000806000613df3612b03565b613e0584602001518560400151614217565b6040805160e0810182526000546001600160a01b0381168252600160a01b8104600290810b810b900b602080840182905261ffff600160b81b8404811685870152600160c81b84048116606080870191909152600160d81b8504909116608086015260ff600160e81b8504811660a0870152600160f01b909404909316151560c085015288519089015194890151928901519394613ea9949193909290919061491c565b93508460600151600f0b60001461401e57846020015160020b816020015160020b1215613efe57613ef7613ee08660200151612c80565b613eed8760400151612c80565b8760600151614ad1565b925061401e565b846040015160020b816020015160020b1215613ff45760045460408201516001600160801b0390911690613f5090613f34612b3a565b602085015160608601516080870151600894939291879161387e565b6000805461ffff60c81b1916600160c81b61ffff938416021761ffff60b81b1916600160b81b939092169290920217905581516040870151613fa09190613f9690612c80565b8860600151614ad1565b9350613fbe613fb28760200151612c80565b83516060890151614b15565b9250613fce8187606001516134dd565b600480546001600160801b0319166001600160801b03929092169190911790555061401e565b61401b6140048660200151612c80565b6140118760400151612c80565b8760600151614b15565b91505b509193909250565b60006140338484846131e1565b90506000828061403f57fe5b848609111561328a57600019811061405657600080fd5b6001019392505050565b6040805160609490941b6001600160601b031916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051808403601a018152603a90930181528251928201929092206000908152929052902090565b60608060008361ffff16116140ff576040805162461bcd60e51b81526020600482015260016024820152604960f81b604482015290519081900360640190fd5b86516001600160401b038111801561411657600080fd5b50604051908082528060200260200182016040528015614140578160200160208202803683370190505b50915086516001600160401b038111801561415a57600080fd5b50604051908082528060200260200182016040528015614184578160200160208202803683370190505b50905060005b875181101561420a576141b58a8a8a84815181106141a457fe5b60200260200101518a8a8a8a613291565b8483815181106141c157fe5b602002602001018484815181106141d457fe5b60200260200101826001600160a01b03166001600160a01b03168152508260060b60060b8152505050808060010191505061418a565b5097509795505050505050565b8060020b8260020b12614257576040805162461bcd60e51b8152602060048201526003602482015262544c5560e81b604482015290519081900360640190fd5b620d89e719600283900b121561429a576040805162461bcd60e51b8152602060048201526003602482015262544c4d60e81b604482015290519081900360640190fd5b620d89e8600282900b13156142dc576040805162461bcd60e51b815260206004820152600360248201526254554d60e81b604482015290519081900360640190fd5b5050565b6040805160808101825263ffffffff9283168082526000602083018190529282019290925260016060909101819052835463ffffffff1916909117909116600160f81b17909155908190565b60020b600881901d9161010090910790565b600080821161434c57600080fd5b600160801b821061435f57608091821c91015b600160401b821061437257604091821c91015b600160201b821061438557602091821c91015b62010000821061439757601091821c91015b61010082106143a857600891821c91015b601082106143b857600491821c91015b600482106143c857600291821c91015b60028210612afe57600101919050565b60008082116143e657600080fd5b5060ff6001600160801b0382161561440157607f1901614409565b608082901c91505b6001600160401b0382161561442157603f1901614429565b604082901c91505b63ffffffff82161561443e57601f1901614446565b602082901c91505b61ffff82161561445957600f1901614461565b601082901c91505b60ff821615614473576007190161447b565b600882901c91505b600f82161561448d5760031901614495565b600482901c91505b60038216156144a757600119016144af565b600282901c91505b6001821615612afe5760001901919050565b6000836001600160a01b0316856001600160a01b031611156144e1579293925b8161450e57614509836001600160801b03168686036001600160a01b0316600160601b6131e1565b614531565b614531836001600160801b03168686036001600160a01b0316600160601b614026565b90505b949350505050565b6000836001600160a01b0316856001600160a01b0316111561455c579293925b600160601b600160e01b03606084901b166001600160a01b03868603811690871661458657600080fd5b836145b657866001600160a01b03166145a98383896001600160a01b03166131e1565b816145b057fe5b046145dc565b6145dc6145cd8383896001600160a01b0316614026565b886001600160a01b0316614b44565b979650505050505050565b600080856001600160a01b0316116145fe57600080fd5b6000846001600160801b03161161461457600080fd5b81614626576145098585856001614b4f565b6145318585856001614c30565b600080856001600160a01b03161161464a57600080fd5b6000846001600160801b03161161466057600080fd5b81614672576145098585856000614c30565b6145318585856000614b4f565b614687615450565b600085600001518503905060405180608001604052808663ffffffff1681526020018263ffffffff168660020b0288602001510160060b81526020016000856001600160801b0316116146db5760016146dd565b845b6001600160801b031663ffffffff60801b608085901b16816146fb57fe5b048860400151016001600160a01b0316815260200160011515815250915050949350505050565b61472a615450565b614732615450565b888561ffff1661ffff811061474357fe5b60408051608081018252919092015463ffffffff8116808352600160201b8204600690810b810b900b6020840152600160581b82046001600160a01b031693830193909352600160f81b900460ff161515606082015292506147a790899089614d13565b156147df578663ffffffff16826000015163ffffffff1614156147c957613417565b816147d68389898861467f565b91509150613417565b888361ffff168660010161ffff16816147f457fe5b0661ffff1661ffff811061480457fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b909104161515606082018190529092506148b957604080516080810182528a5463ffffffff81168252600160201b8104600690810b810b900b6020830152600160581b81046001600160a01b031692820192909252600160f81b90910460ff161515606082015291505b6148c888836000015189614d13565b6148ff576040805162461bcd60e51b815260206004820152600360248201526213d31160ea1b604482015290519081900360640190fd5b61490c8989898887614dd4565b9150915097509795505050505050565b600061492b6007878787614060565b60015460025491925090600080600f87900b15614a7157600061494c612b3a565b60008054600454929350909182916149969160089186918591600160a01b810460020b9161ffff600160b81b83048116926001600160801b0390921691600160c81b900416613291565b90925090506149d060058d8b8d8b8b87898b60007f0000000000000000000000000000000000005e8b2285f864419ac400be907196614f72565b9450614a0760058c8b8d8b8b87898b60017f0000000000000000000000000000000000005e8b2285f864419ac400be907196614f72565b93508415614a3b57614a3b60068d7f000000000000000000000000000000000000000000000000000000000000000a61512b565b8315614a6d57614a6d60068c7f000000000000000000000000000000000000000000000000000000000000000a61512b565b5050505b600080614a8360058c8c8b8a8a615191565b9092509050614a94878a848461523d565b600089600f0b1215614ac2578315614ab157614ab160058c6153d2565b8215614ac257614ac260058b6153d2565b50505050505095945050505050565b60008082600f0b12614af757614af2614aed858585600161453c565b613199565b614534565b614b0a614aed858585600003600061453c565b600003949350505050565b60008082600f0b12614b3157614af2614aed85858560016144c1565b614b0a614aed85858560000360006144c1565b808204910615150190565b60008115614bc25760006001600160a01b03841115614b8557614b8084600160601b876001600160801b03166131e1565b614b9d565b6001600160801b038516606085901b81614b9b57fe5b045b9050614bba614bb56001600160a01b03881683613c8a565b6153fe565b915050614534565b60006001600160a01b03841115614bf057614beb84600160601b876001600160801b0316614026565b614c07565b614c07606085901b6001600160801b038716614b44565b905080866001600160a01b031611614c1e57600080fd5b6001600160a01b038616039050614534565b600082614c3e575083614534565b600160601b600160e01b03606085901b168215614ccc576001600160a01b03861684810290858281614c6c57fe5b041415614c9d57818101828110614c9b57614c9183896001600160a01b031683614026565b9350505050614534565b505b614cc382614cbe878a6001600160a01b03168681614cb757fe5b0490613c8a565b614b44565b92505050614534565b6001600160a01b03861684810290858281614ce357fe5b04148015614cf057508082115b614cf957600080fd5b808203614c91614bb5846001600160a01b038b1684614026565b60008363ffffffff168363ffffffff1611158015614d3d57508363ffffffff168263ffffffff1611155b15614d59578163ffffffff168363ffffffff161115905061328a565b60008463ffffffff168463ffffffff1611614d80578363ffffffff16600160201b01614d88565b8363ffffffff165b64ffffffffff16905060008563ffffffff168463ffffffff1611614db8578363ffffffff16600160201b01614dc0565b8363ffffffff165b64ffffffffff169091111595945050505050565b614ddc615450565b614de4615450565b60008361ffff168560010161ffff1681614dfa57fe5b0661ffff169050600060018561ffff16830103905060005b506002818301048961ffff87168281614e2757fe5b0661ffff8110614e3357fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b90910416151560608201819052909550614e9d57806001019250614e12565b898661ffff168260010181614eae57fe5b0661ffff8110614eba57fe5b60408051608081018252929091015463ffffffff81168352600160201b8104600690810b810b900b60208401526001600160a01b03600160581b8204169183019190915260ff600160f81b90910416151560608201528551909450600090614f24908b908b614d13565b9050808015614f3d5750614f3d8a8a8760000151614d13565b15614f485750614f65565b80614f5857600182039250614f5f565b8160010193505b50614e12565b5050509550959350505050565b60028a810b900b600090815260208c90526040812080546001600160801b031682614f9d828d6134dd565b9050846001600160801b0316816001600160801b03161115614feb576040805162461bcd60e51b81526020600482015260026024820152614c4f60f01b604482015290519081900360640190fd5b6001600160801b038281161590821615811415945015615090578c60020b8e60020b1361507857600183018b9055600283018a9055600383018054600160381b600160d81b031916600160381b6001600160a01b038c16021766ffffffffffffff191666ffffffffffffff60068b900b161763ffffffff60d81b1916600160d81b63ffffffff8a16021790555b6003830180546001600160f81b0316600160f81b1790555b82546001600160801b0319166001600160801b038216178355856150d95782546150d4906150cf90600160801b9004600f90810b810b908f900b6131cb565b613dd5565b6150fa565b82546150fa906150cf90600160801b9004600f90810b810b908f900b6131af565b8354600f9190910b6001600160801b03908116600160801b0291161790925550909c9b505050505050505050505050565b8060020b8260020b8161513a57fe5b0760020b1561514857600080fd5b6000806151638360020b8560020b8161515d57fe5b0561432c565b600191820b820b60009081526020979097526040909620805460ff9097169190911b90951890945550505050565b600285810b80820b60009081526020899052604080822088850b850b83529082209193849391929184918291908a900b126151d7575050600182015460028301546151ea565b8360010154880391508360020154870390505b6000808b60020b8b60020b121561520c5750506001830154600284015461521f565b84600101548a0391508460020154890390505b92909803979097039b96909503949094039850939650505050505050565b6040805160a08101825285546001600160801b0390811682526001870154602083015260028701549282019290925260038601548083166060830152600160801b900490911660808201526000600f85900b6152dc5781516001600160801b03166152d4576040805162461bcd60e51b815260206004820152600260248201526104e560f41b604482015290519081900360640190fd5b5080516152eb565b81516152e890866134dd565b90505b600061530f8360200151860384600001516001600160801b0316600160801b6131e1565b905060006153358460400151860385600001516001600160801b0316600160801b6131e1565b905086600f0b60001461535c5787546001600160801b0319166001600160801b0384161788555b60018801869055600288018590556001600160801b03821615158061538a57506000816001600160801b0316115b156153c8576003880180546001600160801b031981166001600160801b039182168501821617808216600160801b9182900483168501909216021790555b5050505050505050565b600290810b810b6000908152602092909252604082208281556001810183905590810182905560030155565b806001600160a01b0381168114612afe57600080fd5b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b6040805160808101825260008082526020820181905291810182905260608101919091529056fea164736f6c6343000706000a
| Type | Age | Block | Details |
|---|---|---|---|
| no cross-chain L1↔L2 transactions for this address | |||
| Block | Age | Parent Transaction Hash | Type | Method | From | To | Value | |
|---|---|---|---|---|---|---|---|---|
| no internal transactions found for this address yet (traced blocks + on-demand) | ||||||||
| Transaction Hash | Method | Block | Age | From | To | Type | Item | ||
|---|---|---|---|---|---|---|---|---|---|
| no NFT transfers for this address yet | |||||||||
| Txn Hash | Age | Event | Topics / Data |
|---|---|---|---|
| 0xc41f66…baebd1 | 6 days agoTue, 11 Aug 2026 08:27:23 UTC | 0x709353…a9c0 | [0] 0x000000000000…b414e6b3 [1] 0xffffffffffff…fffbc47c [2] 0xffffffffffff…fffbcc60 data: 0x000000000000000000…000ff0fd |
| 0xc41f66…baebd1 | 6 days agoTue, 11 Aug 2026 08:27:23 UTC | 0x0c396c…982c | [0] 0x000000000000…b414e6b3 [1] 0xffffffffffff…fffbc47c [2] 0xffffffffffff…fffbcc60 data: 0x000000000000000000…000ff0f8 |
| 0x2e38ff…d475fc | 11 days agoThu, 06 Aug 2026 16:31:42 UTC | 0x709353…a9c0 | [0] 0x000000000000…b414e6b3 [1] 0xffffffffffff…fffbc88c [2] 0xffffffffffff…fffbc8b4 data: 0x000000000000000000…380442d4 |
| 0x2e38ff…d475fc | 11 days agoThu, 06 Aug 2026 16:31:42 UTC | 0x0c396c…982c | [0] 0x000000000000…b414e6b3 [1] 0xffffffffffff…fffbc88c [2] 0xffffffffffff…fffbc8b4 data: 0x000000000000000000…3802281f |
| 0x3f5f74…b0d431 | 12 days agoWed, 05 Aug 2026 19:30:33 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0xffffffffffffffffff…fffbc89e |
| 0xdeb51f…7227cc | 12 days agoWed, 05 Aug 2026 12:53:07 UTC | Swap | [0] 0x000000000000…165d125f [1] 0x000000000000…7846e13f data: 0xffffffffffffffffff…fffbc89e |
| 0xcf854c…9dc85a | 12 days agoWed, 05 Aug 2026 09:21:26 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0xffffffffffffffffff…fffbc89e |
| 0x56d867…bcd21c | 13 days agoTue, 04 Aug 2026 10:31:34 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x42f238…eec5e6 | 13 days agoTue, 04 Aug 2026 10:31:20 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xabaa90…283b7f | 13 days agoTue, 04 Aug 2026 10:30:54 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x19df7b…953613 | 13 days agoTue, 04 Aug 2026 10:30:30 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xda47b8…b9ddb1 | 13 days agoTue, 04 Aug 2026 10:29:59 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xcbeb85…a936e7 | 13 days agoTue, 04 Aug 2026 10:29:24 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xe24df8…2895a1 | 13 days agoTue, 04 Aug 2026 05:56:44 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x3cf02b…c9d11e | 13 days agoTue, 04 Aug 2026 04:59:01 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x5a666a…68fa2b | 14 days agoMon, 03 Aug 2026 21:23:55 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x98da2c…496735 | 14 days agoMon, 03 Aug 2026 21:23:40 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x5b37f4…1ea3a7 | 14 days agoMon, 03 Aug 2026 21:23:27 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x768818…1de932 | 14 days agoMon, 03 Aug 2026 21:11:23 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x48cf7c…1d81ed | 14 days agoMon, 03 Aug 2026 18:34:57 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0x1632e1…f965ac | 14 days agoMon, 03 Aug 2026 18:20:18 UTC | Swap | [0] 0x000000000000…165d125f [1] 0x000000000000…7846e13f data: 0xffffffffffffffffff…fffbc89e |
| 0x70a42a…fd3b49 | 14 days agoMon, 03 Aug 2026 12:53:23 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xa28203…94c8b8 | 14 days agoMon, 03 Aug 2026 12:06:09 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0xffffffffffffffffff…fffbc89e |
| 0xf5c29c…e3e546 | 14 days agoMon, 03 Aug 2026 08:42:32 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| 0xdbb956…142557 | 14 days agoMon, 03 Aug 2026 08:26:55 UTC | Swap | [0] 0x000000000000…20cbbe5f [1] 0x000000000000…20cbbe5f data: 0x000000000000000000…fffbc89e |
| Transaction Hash | Method ? | Block | Age | From | To | Amount | Txn Fee ? | ||
|---|---|---|---|---|---|---|---|---|---|
| No direct transactions — this address is only ever reached via internal calls (it’s a DEX pool: swaps route through a router, never straight to the pool contract). View Internal Transactions → | |||||||||
| Transaction Hash | Method | Block | Age | From | To | Amount | Token | ||
|---|---|---|---|---|---|---|---|---|---|
| 0x2c36231a…34d4d3 | Transfer | 35,529,570 | 4 days agoThu, 13 Aug 2026 16:20:53 UTC | 0x3d2b…6bfc | IN | 0xd6b9…a577 | 5 USDG | global dollar (USDG) | |
| 0xfc294842…fdb3ac | Transfer | 35,523,387 | 4 days agoThu, 13 Aug 2026 16:10:32 UTC | 0x3d2b…6bfc | IN | 0xd6b9…a577 | 69.8472 USDE | Ethena USDe (USDE) | |
| 0xc41f66cb…baebd1 | Transfer | 33,517,185 | 6 days agoTue, 11 Aug 2026 08:27:23 UTC | 0xd6b9…a577 | OUT | 0xf119…db2b | $1.051.044733 USDG | Global Dollar (USDG) | |
| 0xc41f66cb…baebd1 | Transfer | 33,517,185 | 6 days agoTue, 11 Aug 2026 08:27:23 UTC | 0xd6b9…a577 | OUT | 0xf119…db2b | 0.951922 USDe | USDe (USDe) | |
| 0x528660b2…70314e | Transfer | 29,745,756 | 11 days agoThu, 06 Aug 2026 23:31:24 UTC | 0xb29e…ab38 | IN | 0xd6b9…a577 | 25 MARIAN | Lady Marian (MARIAN) | |
| 0x2e38ffb4…d475fc | Transfer | 29,494,276 | 11 days agoThu, 06 Aug 2026 16:31:42 UTC | 0xd6b9…a577 | OUT | 0xe531…25be | $942.83939.803348 USDG | Global Dollar (USDG) | |
| 0x2e38ffb4…d475fc | Transfer | 29,494,276 | 11 days agoThu, 06 Aug 2026 16:31:42 UTC | 0xd6b9…a577 | OUT | 0xe531…25be | 1,143.205722 USDe | USDe (USDe) | |
| 0x2a88d417…60b936 | Transfer | 29,297,948 | 11 days agoThu, 06 Aug 2026 11:03:45 UTC | 0xa7e0…34ac | IN | 0xd6b9…a577 | 3 USER | United States Energy Reserve (USER) | |
| 0x29a029d8…51ab8f | Transfer | 29,174,481 | 11 days agoThu, 06 Aug 2026 07:37:23 UTC | 0xd2e4…b70c | IN | 0xd6b9…a577 | 7 FROGE | FROGE (FROGE) | |
| 0xeb6a0515…e8a91f | Transfer | 28,768,351 | 12 days agoWed, 05 Aug 2026 20:19:33 UTC | 0xd2e4…b70c | IN | 0xd6b9…a577 | 1 WBTC | Wrapped BTC (WBTC) | |
| 0x3f5f74c2…b0d431 | Transfer | 28,738,953 | 12 days agoWed, 05 Aug 2026 19:30:33 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | $0.490.487487 USDG | Global Dollar (USDG) | |
| 0x3f5f74c2…b0d431 | Transfer | 28,738,953 | 12 days agoWed, 05 Aug 2026 19:30:33 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | 0.487142 USDe | USDe (USDe) | |
| 0xdeb51f49…7227cc | Transfer | 28,500,503 | 12 days agoWed, 05 Aug 2026 12:53:07 UTC | 0x2ca3…125f | IN | 0xd6b9…a577 | $0.380.37389 USDG | Global Dollar (USDG) | |
| 0xdeb51f49…7227cc | Transfer | 28,500,503 | 12 days agoWed, 05 Aug 2026 12:53:07 UTC | 0xd6b9…a577 | OUT | 0x48a0…e13f | 0.373626 USDe | USDe (USDe) | |
| 0xcf854cca…9dc85a | Transfer | 28,373,872 | 12 days agoWed, 05 Aug 2026 09:21:26 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | $0.470.469489 USDG | Global Dollar (USDG) | |
| 0xcf854cca…9dc85a | Transfer | 28,373,872 | 12 days agoWed, 05 Aug 2026 09:21:26 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | 0.469157 USDe | USDe (USDe) | |
| 0xba345400…a414f4 | Transfer | 27,732,698 | 13 days agoTue, 04 Aug 2026 15:29:31 UTC | 0xd2e4…b70c | IN | 0xd6b9…a577 | 1 WBTC | Wrapped BTC (WBTC) | |
| 0x56d867e2…bcd21c | Transfer | 27,554,388 | 13 days agoTue, 04 Aug 2026 10:31:34 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | 1 USDe | USDe (USDe) | |
| 0x56d867e2…bcd21c | Transfer | 27,554,388 | 13 days agoTue, 04 Aug 2026 10:31:34 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | $1.000.999705 USDG | Global Dollar (USDG) | |
| 0x42f238fc…eec5e6 | Transfer | 27,554,253 | 13 days agoTue, 04 Aug 2026 10:31:20 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | 1 USDe | USDe (USDe) | |
| 0x42f238fc…eec5e6 | Transfer | 27,554,253 | 13 days agoTue, 04 Aug 2026 10:31:20 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | $1.000.999707 USDG | Global Dollar (USDG) | |
| 0xabaa9018…283b7f | Transfer | 27,553,984 | 13 days agoTue, 04 Aug 2026 10:30:54 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | 1 USDe | USDe (USDe) | |
| 0xabaa9018…283b7f | Transfer | 27,553,984 | 13 days agoTue, 04 Aug 2026 10:30:54 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | $1.000.999709 USDG | Global Dollar (USDG) | |
| 0x19df7baf…953613 | Transfer | 27,553,738 | 13 days agoTue, 04 Aug 2026 10:30:30 UTC | 0xb92f…ff4f | IN | 0xd6b9…a577 | 1 USDe | USDe (USDe) | |
| 0x19df7baf…953613 | Transfer | 27,553,738 | 13 days agoTue, 04 Aug 2026 10:30:30 UTC | 0xd6b9…a577 | OUT | 0x39b3…be5f | $1.000.999711 USDG | Global Dollar (USDG) |