Source Code
Latest 25 from a total of 305 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Push To Engine A... | 418816374 | 23 days ago | IN | 0 ETH | 0.00000063 | ||||
| Increase High | 418759701 | 24 days ago | IN | 0 ETH | 0.00000278 | ||||
| Swap Usdc Weth | 418759675 | 24 days ago | IN | 0 ETH | 0.00000168 | ||||
| Swap Usdc Weth | 418573763 | 24 days ago | IN | 0 ETH | 0.00000145 | ||||
| Mint Position Hi... | 418529237 | 24 days ago | IN | 0 ETH | 0.00003161 | ||||
| Swap Usdc Weth | 418529210 | 24 days ago | IN | 0 ETH | 0.00001168 | ||||
| Swap Usdc Weth | 418529134 | 24 days ago | IN | 0 ETH | 0.00001158 | ||||
| Swap Usdc Weth | 418529112 | 24 days ago | IN | 0 ETH | 0.00001276 | ||||
| Swap Usdc Weth | 418529085 | 24 days ago | IN | 0 ETH | 0.00001039 | ||||
| Burn Position | 418529059 | 24 days ago | IN | 0 ETH | 0.00000998 | ||||
| Decrease And Col... | 418529035 | 24 days ago | IN | 0 ETH | 0.00001768 | ||||
| Swap Usdc Weth | 418465323 | 24 days ago | IN | 0 ETH | 0.00000144 | ||||
| Increase High | 418406469 | 25 days ago | IN | 0 ETH | 0.00000278 | ||||
| Swap Usdc Weth | 418406442 | 25 days ago | IN | 0 ETH | 0.00000168 | ||||
| Swap Usdc Weth | 418352023 | 25 days ago | IN | 0 ETH | 0.00000146 | ||||
| Increase High | 418351962 | 25 days ago | IN | 0 ETH | 0.00000267 | ||||
| Swap Usdc Weth | 418351935 | 25 days ago | IN | 0 ETH | 0.00000168 | ||||
| Push To Engine A... | 418351872 | 25 days ago | IN | 0 ETH | 0.0000008 | ||||
| Increase High | 418002649 | 26 days ago | IN | 0 ETH | 0.0000066 | ||||
| Swap Usdc Weth | 418002622 | 26 days ago | IN | 0 ETH | 0.00000404 | ||||
| Swap Usdc Weth | 417942095 | 26 days ago | IN | 0 ETH | 0.00000145 | ||||
| Increase High | 417942068 | 26 days ago | IN | 0 ETH | 0.00000267 | ||||
| Swap Usdc Weth | 417942041 | 26 days ago | IN | 0 ETH | 0.00000168 | ||||
| Swap Usdc Weth | 417938008 | 26 days ago | IN | 0 ETH | 0.00000145 | ||||
| Increase High | 417937965 | 26 days ago | IN | 0 ETH | 0.00000261 |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xD60F18aE...a8fB79f8d The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PoolBondFlow
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface INonfungiblePositionManager {
struct MintParams {
address token0;
address token1;
uint24 fee;
int24 tickLower;
int24 tickUpper;
uint256 amount0Desired;
uint256 amount1Desired;
uint256 amount0Min;
uint256 amount1Min;
address recipient;
uint256 deadline;
}
struct IncreaseLiquidityParams {
uint256 tokenId;
uint256 amount0Desired;
uint256 amount1Desired;
uint256 amount0Min;
uint256 amount1Min;
uint256 deadline;
}
struct DecreaseLiquidityParams {
uint256 tokenId;
uint128 liquidity;
uint256 amount0Min;
uint256 amount1Min;
uint256 deadline;
}
struct CollectParams {
uint256 tokenId;
address recipient;
uint128 amount0Max;
uint128 amount1Max;
}
function mint(MintParams calldata params) external payable returns (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns (uint128 liquidity, uint256 amount0, uint256 amount1);
function decreaseLiquidity(DecreaseLiquidityParams calldata params) external payable returns (uint256 amount0, uint256 amount1);
function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);
function positions(uint256 tokenId)
external
view
returns (
uint96 nonce,
address operator,
address token0,
address token1,
uint24 fee,
int24 tickLower,
int24 tickUpper,
uint128 liquidity,
uint256 feeGrowthInside0LastX128,
uint256 feeGrowthInside1LastX128,
uint128 tokensOwed0,
uint128 tokensOwed1
);
function burn(uint256 tokenId) external payable;
}
interface ISwapRouterV3 {
struct ExactInputSingleParams {
address tokenIn;
address tokenOut;
uint24 fee;
address recipient;
uint256 deadline;
uint256 amountIn;
uint256 amountOutMinimum;
uint160 sqrtPriceLimitX96;
}
function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
}
interface IEngineVault {
function fundInflowFromVault(uint256 amount) external;
}
interface IBondFlowView {
function tvl() external view returns (uint256);
function vaultAllocBps() external view returns (uint16);
}
error ZERO();
error NOT_ENGINE();
error NO_POSITION();
error EXISTS();
error NOT_OPERATOR();
contract PoolBondFlow is ReentrancyGuard, Ownable {
using SafeERC20 for IERC20;
address public constant WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;
address public constant USDC = 0xaf88d065e77c8cC2239327C5EDb3A432268e5831;
address public constant NPM_ADDRESS = 0xC36442b4a4522E871399CD717aBDD847Ab11FE88;
address public constant SWAP_ROUTER_A = 0xE592427A0AEce92De3Edee1F18E0157C05861564;
address public constant SWAP_ROUTER_B = 0xE592427A0AEce92De3Edee1F18E0157C05861564;
IERC20 public immutable usdcToken = IERC20(USDC);
IERC20 public immutable wethToken = IERC20(WETH);
INonfungiblePositionManager public immutable npm = INonfungiblePositionManager(NPM_ADDRESS);
ISwapRouterV3 public immutable routerA = ISwapRouterV3(SWAP_ROUTER_A);
ISwapRouterV3 public immutable routerB = ISwapRouterV3(SWAP_ROUTER_B);
address public engine;
address public operator;
uint256 public positionIdUsdcWethLow;
uint256 public positionIdUsdcWethHigh;
uint256 public totalFeesUsdcFromLow;
uint256 public totalFeesWethFromLow;
uint256 public totalFeesUsdcFromHigh;
uint256 public totalFeesWethFromHigh;
uint256 public totalFeesUsdcExtra;
uint256 public feesOwedUsdcLow;
uint256 public feesOwedWethLow;
uint256 public feesOwedUsdcHigh;
uint256 public feesOwedWethHigh;
uint256 public feesOwedUsdcExtra;
event EngineSet(address indexed engine);
event OperatorSet(address indexed operator);
event PositionMintedLow(uint256 indexed tokenId, uint128 liquidity, uint256 usedUsdc, uint256 usedWeth);
event PositionIncreasedLow(uint256 indexed tokenId, uint128 liquidityAdded, uint256 usedUsdc, uint256 usedWeth);
event PositionDecreasedLow(uint256 indexed tokenId, uint256 amtUsdc, uint256 amtWeth);
event PositionFeesCollectedLow(uint256 indexed tokenId, uint256 feesUsdc, uint256 feesWeth);
event PositionMintedHigh(uint256 indexed tokenId, uint128 liquidity, uint256 usedUsdc, uint256 usedWeth);
event PositionIncreasedHigh(uint256 indexed tokenId, uint128 liquidityAdded, uint256 usedUsdc, uint256 usedWeth);
event PositionDecreasedHigh(uint256 indexed tokenId, uint256 amtUsdc, uint256 amtWeth);
event PositionFeesCollectedHigh(uint256 indexed tokenId, uint256 feesUsdc, uint256 feesWeth);
event RebalancedToNewLow(uint256 indexed oldTokenId, uint256 indexed newTokenId, uint24 feeNew, int24 tickLowerNew, int24 tickUpperNew);
event SwappedUsdcWeth(bool usdcToWeth, uint256 amountIn, uint256 amountOut, uint24 feeTier);
event SwappedWethToUsdc(uint256 amountIn, uint256 amountOut, uint24 feeTier);
event PulledToEngine(uint256 amountUsdc);
event FeesOwedUpdated(
uint256 feesUsdcLow,
uint256 feesWethLow,
uint256 feesUsdcHigh,
uint256 feesWethHigh,
uint256 feesUsdcExtra
);
event FeesPaidToEngine(uint256 amountUsdc);
event UsdcOnlyFeesAdded(uint256 amountUsdc);
modifier onlyEngine() {
if (msg.sender != engine) revert NOT_ENGINE();
_;
}
modifier onlyOperator() {
if (msg.sender != operator) revert NOT_OPERATOR();
_;
}
modifier onlyOperatorOrOwner() {
if (msg.sender != operator && msg.sender != owner()) revert NOT_OPERATOR();
_;
}
constructor() Ownable(msg.sender) {}
function setEngine(address e) external onlyOwner {
if (e == address(0)) revert ZERO();
if (engine != address(0)) revert EXISTS();
engine = e;
emit EngineSet(e);
}
function setOperator(address op) external onlyOwner {
operator = op;
emit OperatorSet(op);
}
function _approveAll() internal {
usdcToken.forceApprove(address(npm), type(uint256).max);
wethToken.forceApprove(address(npm), type(uint256).max);
usdcToken.forceApprove(address(routerA), type(uint256).max);
wethToken.forceApprove(address(routerA), type(uint256).max);
usdcToken.forceApprove(address(routerB), type(uint256).max);
wethToken.forceApprove(address(routerB), type(uint256).max);
}
function _reapprovePerSwap(address token, address spender) internal {
IERC20(token).forceApprove(spender, 0);
IERC20(token).forceApprove(spender, type(uint256).max);
}
function _swapExactInput(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 minOut,
uint24 fee,
uint256 deadline
) internal returns (uint256 out) {
_reapprovePerSwap(tokenIn, address(routerA));
_reapprovePerSwap(tokenIn, address(routerB));
bool ok = true;
try routerA.exactInputSingle(
ISwapRouterV3.ExactInputSingleParams({
tokenIn: tokenIn,
tokenOut: tokenOut,
fee: fee,
recipient: address(this),
deadline: deadline,
amountIn: amountIn,
amountOutMinimum: minOut,
sqrtPriceLimitX96: 0
})
) returns (uint256 amountOut) {
out = amountOut;
} catch {
ok = false;
}
if (!ok) {
out = routerB.exactInputSingle(
ISwapRouterV3.ExactInputSingleParams({
tokenIn: tokenIn,
tokenOut: tokenOut,
fee: fee,
recipient: address(this),
deadline: deadline,
amountIn: amountIn,
amountOutMinimum: minOut,
sqrtPriceLimitX96: 0
})
);
}
}
function _swapAllWethToUsdc(uint24 feeTier, uint256 deadline) internal returns (uint256 out) {
uint256 amountIn = wethToken.balanceOf(address(this));
if (amountIn == 0) return 0;
out = _swapExactInput(address(wethToken), address(usdcToken), amountIn, 0, feeTier, deadline);
emit SwappedWethToUsdc(amountIn, out, feeTier);
}
function swapUsdcWeth(
uint256 amountIn,
bool usdcToWeth,
uint256 minOut,
uint24 feeTier,
uint256 deadline
) external onlyOperator nonReentrant returns (uint256 out) {
if (amountIn == 0) revert ZERO();
address tokenIn = usdcToWeth ? address(usdcToken) : address(wethToken);
address tokenOut = usdcToWeth ? address(wethToken) : address(usdcToken);
out = _swapExactInput(tokenIn, tokenOut, amountIn, minOut, feeTier, deadline);
emit SwappedUsdcWeth(usdcToWeth, amountIn, out, feeTier);
}
function _getNpmPosition(uint256 tokenId)
internal
view
returns (
uint24 fee,
int24 tickLower,
int24 tickUpper,
uint128 liquidity,
uint128 tokensOwed0,
uint128 tokensOwed1
)
{
(
,
,
,
,
uint24 fee_,
int24 tickLower_,
int24 tickUpper_,
uint128 liq_,
,
,
uint128 owed0_,
uint128 owed1_
) = npm.positions(tokenId);
return (fee_, tickLower_, tickUpper_, liq_, owed0_, owed1_);
}
function mintPositionLow(
uint24 fee,
int24 tickLower,
int24 tickUpper,
uint256 amountUsdc,
uint256 amountWeth,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint256 tokenId, uint128 liquidity, uint256 usedUsdc, uint256 usedWeth) {
_approveAll();
(tokenId, liquidity, usedWeth, usedUsdc) = npm.mint(
INonfungiblePositionManager.MintParams({
token0: WETH,
token1: USDC,
fee: fee,
tickLower: tickLower,
tickUpper: tickUpper,
amount0Desired: amountWeth,
amount1Desired: amountUsdc,
amount0Min: minWeth,
amount1Min: minUsdc,
recipient: address(this),
deadline: deadline
})
);
if (positionIdUsdcWethLow == 0) {
positionIdUsdcWethLow = tokenId;
}
emit PositionMintedLow(tokenId, liquidity, usedUsdc, usedWeth);
}
function increaseLow(
uint256 tokenId,
uint256 amountUsdc,
uint256 amountWeth,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint128 liquidity, uint256 usedUsdc, uint256 usedWeth) {
if (tokenId == 0) revert NO_POSITION();
_approveAll();
(liquidity, usedWeth, usedUsdc) = npm.increaseLiquidity(
INonfungiblePositionManager.IncreaseLiquidityParams({
tokenId: tokenId,
amount0Desired: amountWeth,
amount1Desired: amountUsdc,
amount0Min: minWeth,
amount1Min: minUsdc,
deadline: deadline
})
);
emit PositionIncreasedLow(tokenId, liquidity, usedUsdc, usedWeth);
}
function decreaseAndCollectLow(
uint256 tokenId,
uint128 liquidity,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint256 amtUsdc, uint256 amtWeth, uint256 feesUsdc, uint256 feesWeth) {
if (tokenId == 0) revert NO_POSITION();
(amtWeth, amtUsdc) = npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: tokenId,
liquidity: liquidity,
amount0Min: minWeth,
amount1Min: minUsdc,
deadline: deadline
})
);
(uint256 feesWethTmp, uint256 feesUsdcTmp) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: tokenId,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
feesUsdc = feesUsdcTmp;
feesWeth = feesWethTmp;
totalFeesUsdcFromLow += feesUsdc;
totalFeesWethFromLow += feesWeth;
feesOwedUsdcLow += feesUsdc;
feesOwedWethLow += feesWeth;
emit PositionDecreasedLow(tokenId, amtUsdc, amtWeth);
emit PositionFeesCollectedLow(tokenId, feesUsdc, feesWeth);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function collectAllLow(uint256 tokenId) external onlyOperator nonReentrant returns (uint256 feesUsdc, uint256 feesWeth) {
if (tokenId == 0) revert NO_POSITION();
(uint256 feesWethTmp, uint256 feesUsdcTmp) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: tokenId,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
feesUsdc = feesUsdcTmp;
feesWeth = feesWethTmp;
totalFeesUsdcFromLow += feesUsdc;
totalFeesWethFromLow += feesWeth;
feesOwedUsdcLow += feesUsdc;
feesOwedWethLow += feesWeth;
emit PositionFeesCollectedLow(tokenId, feesUsdc, feesWeth);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function mintPositionHigh(
uint24 fee,
int24 tickLower,
int24 tickUpper,
uint256 amountUsdc,
uint256 amountWeth,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint256 tokenId, uint128 liquidity, uint256 usedUsdc, uint256 usedWeth) {
_approveAll();
(tokenId, liquidity, usedWeth, usedUsdc) = npm.mint(
INonfungiblePositionManager.MintParams({
token0: WETH,
token1: USDC,
fee: fee,
tickLower: tickLower,
tickUpper: tickUpper,
amount0Desired: amountWeth,
amount1Desired: amountUsdc,
amount0Min: minWeth,
amount1Min: minUsdc,
recipient: address(this),
deadline: deadline
})
);
if (positionIdUsdcWethHigh == 0) {
positionIdUsdcWethHigh = tokenId;
}
emit PositionMintedHigh(tokenId, liquidity, usedUsdc, usedWeth);
}
function increaseHigh(
uint256 tokenId,
uint256 amountUsdc,
uint256 amountWeth,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint128 liquidity, uint256 usedUsdc, uint256 usedWeth) {
if (tokenId == 0) revert NO_POSITION();
_approveAll();
(liquidity, usedWeth, usedUsdc) = npm.increaseLiquidity(
INonfungiblePositionManager.IncreaseLiquidityParams({
tokenId: tokenId,
amount0Desired: amountWeth,
amount1Desired: amountUsdc,
amount0Min: minWeth,
amount1Min: minUsdc,
deadline: deadline
})
);
emit PositionIncreasedHigh(tokenId, liquidity, usedUsdc, usedWeth);
}
function decreaseAndCollectHigh(
uint256 tokenId,
uint128 liquidity,
uint256 minUsdc,
uint256 minWeth,
uint256 deadline
) external onlyOperator nonReentrant returns (uint256 amtUsdc, uint256 amtWeth, uint256 feesUsdc, uint256 feesWeth) {
if (tokenId == 0) revert NO_POSITION();
(amtWeth, amtUsdc) = npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: tokenId,
liquidity: liquidity,
amount0Min: minWeth,
amount1Min: minUsdc,
deadline: deadline
})
);
(uint256 feesWethTmp, uint256 feesUsdcTmp) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: tokenId,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
feesUsdc = feesUsdcTmp;
feesWeth = feesWethTmp;
totalFeesUsdcFromHigh += feesUsdc;
totalFeesWethFromHigh += feesWeth;
feesOwedUsdcHigh += feesUsdc;
feesOwedWethHigh += feesWeth;
emit PositionDecreasedHigh(tokenId, amtUsdc, amtWeth);
emit PositionFeesCollectedHigh(tokenId, feesUsdc, feesWeth);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function collectAllHigh(uint256 tokenId) external onlyOperator nonReentrant returns (uint256 feesUsdc, uint256 feesWeth) {
if (tokenId == 0) revert NO_POSITION();
(uint256 feesWethTmp, uint256 feesUsdcTmp) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: tokenId,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
feesUsdc = feesUsdcTmp;
feesWeth = feesWethTmp;
totalFeesUsdcFromHigh += feesUsdc;
totalFeesWethFromHigh += feesWeth;
feesOwedUsdcHigh += feesUsdc;
feesOwedWethHigh += feesWeth;
emit PositionFeesCollectedHigh(tokenId, feesUsdc, feesWeth);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
struct RebalanceParamsLow {
uint128 liqToRemove;
uint256 minUsdcOut;
uint256 minWethOut;
uint24 feeTierNew;
int24 tickLowerNew;
int24 tickUpperNew;
uint256 amountUsdcDesired;
uint256 amountWethDesired;
uint256 minUsdcAdd;
uint256 minWethAdd;
uint256 deadline;
}
function rebalanceToNewLow(RebalanceParamsLow calldata p) external onlyOperator nonReentrant {
if (positionIdUsdcWethLow == 0) revert NO_POSITION();
if (p.liqToRemove > 0) {
npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: positionIdUsdcWethLow,
liquidity: p.liqToRemove,
amount0Min: p.minWethOut,
amount1Min: p.minUsdcOut,
deadline: p.deadline
})
);
(uint256 feesWeth, uint256 feesUsdc) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: positionIdUsdcWethLow,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
totalFeesUsdcFromLow += feesUsdc;
totalFeesWethFromLow += feesWeth;
feesOwedUsdcLow += feesUsdc;
feesOwedWethLow += feesWeth;
emit PositionFeesCollectedLow(positionIdUsdcWethLow, feesUsdc, feesWeth);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
_approveAll();
(uint256 newTokenId, uint128 newLiquidity, uint256 usedWeth, uint256 usedUsdc) = npm.mint(
INonfungiblePositionManager.MintParams({
token0: WETH,
token1: USDC,
fee: p.feeTierNew,
tickLower: p.tickLowerNew,
tickUpper: p.tickUpperNew,
amount0Desired: p.amountWethDesired,
amount1Desired: p.amountUsdcDesired,
amount0Min: p.minWethAdd,
amount1Min: p.minUsdcAdd,
recipient: address(this),
deadline: p.deadline
})
);
emit RebalancedToNewLow(positionIdUsdcWethLow, newTokenId, p.feeTierNew, p.tickLowerNew, p.tickUpperNew);
positionIdUsdcWethLow = newTokenId;
newLiquidity; usedUsdc; usedWeth;
}
function _freeLiquidity(uint256 amountNeeded) internal {
if (positionIdUsdcWethLow == 0 || amountNeeded == 0) return;
(, , , uint128 liq, , ) = _getNpmPosition(positionIdUsdcWethLow);
if (liq == 0) return;
uint128 liqToRemove = liq;
if (engine != address(0)) {
uint256 tvlTotal = IBondFlowView(engine).tvl();
uint16 allocBps = IBondFlowView(engine).vaultAllocBps();
if (tvlTotal > 0 && allocBps > 0) {
uint256 estVaultCap = (tvlTotal * uint256(allocBps)) / 10000;
if (estVaultCap > 0) {
uint256 fractionBps = (amountNeeded * 11000) / estVaultCap;
if (fractionBps > 10000) fractionBps = 10000;
if (fractionBps == 0) fractionBps = 1000;
liqToRemove = uint128((uint256(liq) * fractionBps) / 10000);
if (liqToRemove == 0) liqToRemove = liq;
}
}
}
npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: positionIdUsdcWethLow,
liquidity: liqToRemove,
amount0Min: 0,
amount1Min: 0,
deadline: block.timestamp + 600
})
);
(uint256 feesWeth, uint256 feesUsdc) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: positionIdUsdcWethLow,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
totalFeesUsdcFromLow += feesUsdc;
totalFeesWethFromLow += feesWeth;
feesOwedUsdcLow += feesUsdc;
feesOwedWethLow += feesWeth;
uint256 preUsdc = usdcToken.balanceOf(address(this));
uint256 preWeth = wethToken.balanceOf(address(this));
_swapAllWethToUsdc(500, block.timestamp + 600);
uint256 postUsdc = usdcToken.balanceOf(address(this));
uint256 postWeth = wethToken.balanceOf(address(this));
uint256 wethUsed = preWeth > postWeth ? (preWeth - postWeth) : 0;
uint256 usdcGained = postUsdc > preUsdc ? (postUsdc - preUsdc) : 0;
if (wethUsed > 0) {
uint256 dec = wethUsed <= feesOwedWethLow ? wethUsed : feesOwedWethLow;
feesOwedWethLow -= dec;
}
if (usdcGained > 0) {
feesOwedUsdcLow += usdcGained;
}
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function _freeLiquidityAll() internal {
if (positionIdUsdcWethLow != 0) {
(, , , uint128 liqLow, , ) = _getNpmPosition(positionIdUsdcWethLow);
if (liqLow > 0) {
npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: positionIdUsdcWethLow,
liquidity: liqLow,
amount0Min: 0,
amount1Min: 0,
deadline: block.timestamp + 600
})
);
(uint256 feesWethLowNow, uint256 feesUsdcLowNow) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: positionIdUsdcWethLow,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
totalFeesUsdcFromLow += feesUsdcLowNow;
totalFeesWethFromLow += feesWethLowNow;
feesOwedUsdcLow += feesUsdcLowNow;
feesOwedWethLow += feesWethLowNow;
}
}
if (positionIdUsdcWethHigh != 0) {
(, , , uint128 liqHigh, , ) = _getNpmPosition(positionIdUsdcWethHigh);
if (liqHigh > 0) {
npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: positionIdUsdcWethHigh,
liquidity: liqHigh,
amount0Min: 0,
amount1Min: 0,
deadline: block.timestamp + 600
})
);
(uint256 feesWethHighNow, uint256 feesUsdcHighNow) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: positionIdUsdcWethHigh,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
totalFeesUsdcFromHigh += feesUsdcHighNow;
totalFeesWethFromHigh += feesWethHighNow;
feesOwedUsdcHigh += feesUsdcHighNow;
feesOwedWethHigh += feesWethHighNow;
}
}
uint256 preUsdc = usdcToken.balanceOf(address(this));
uint256 preWeth = wethToken.balanceOf(address(this));
_swapAllWethToUsdc(500, block.timestamp + 600);
uint256 postUsdc = usdcToken.balanceOf(address(this));
uint256 postWeth = wethToken.balanceOf(address(this));
uint256 wethUsed = preWeth > postWeth ? (preWeth - postWeth) : 0;
uint256 usdcGained = postUsdc > preUsdc ? (postUsdc - preUsdc) : 0;
if (wethUsed > 0) {
uint256 usedLow = wethUsed <= feesOwedWethLow ? wethUsed : feesOwedWethLow;
feesOwedWethLow -= usedLow;
uint256 remaining = wethUsed - usedLow;
uint256 usedHigh = remaining <= feesOwedWethHigh ? remaining : feesOwedWethHigh;
feesOwedWethHigh -= usedHigh;
uint256 totalForSplit = usedLow + usedHigh;
if (usdcGained > 0 && totalForSplit > 0) {
uint256 usdcToLow = (usdcGained * usedLow) / totalForSplit;
uint256 usdcToHigh = usdcGained - usdcToLow;
feesOwedUsdcLow += usdcToLow;
feesOwedUsdcHigh += usdcToHigh;
}
}
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function provideLiquidity(uint256 amountUsdc) external onlyEngine nonReentrant {
if (amountUsdc == 0) revert ZERO();
uint256 bal = usdcToken.balanceOf(address(this));
if (bal < amountUsdc) {
_freeLiquidity(amountUsdc);
bal = usdcToken.balanceOf(address(this));
}
if (bal < amountUsdc) {
_freeLiquidityAll();
bal = usdcToken.balanceOf(address(this));
}
require(bal >= amountUsdc, "INSUFFICIENT_USDC");
usdcToken.safeTransfer(engine, amountUsdc);
emit PulledToEngine(amountUsdc);
}
function onEnginePull(uint256) external view onlyEngine {}
function pushToEngine(uint256 amountUsdc) external onlyOperatorOrOwner nonReentrant {
if (engine == address(0)) revert NOT_ENGINE();
if (amountUsdc == 0) revert ZERO();
usdcToken.safeTransfer(engine, amountUsdc);
emit PulledToEngine(amountUsdc);
}
function pushToEngineAsInflow(uint256 amountUsdc) external onlyOperatorOrOwner nonReentrant {
if (engine == address(0)) revert NOT_ENGINE();
if (amountUsdc == 0) revert ZERO();
usdcToken.safeTransfer(engine, amountUsdc);
IEngineVault(engine).fundInflowFromVault(amountUsdc);
emit PulledToEngine(amountUsdc);
emit FeesPaidToEngine(amountUsdc);
}
function addUsdcOnlyFees(uint256 amountUsdc) external onlyOperatorOrOwner nonReentrant {
if (amountUsdc == 0) revert ZERO();
usdcToken.safeTransferFrom(msg.sender, address(this), amountUsdc);
totalFeesUsdcExtra += amountUsdc;
feesOwedUsdcExtra += amountUsdc;
emit UsdcOnlyFeesAdded(amountUsdc);
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function payAccumulatedFeesToEngine(
uint24 feeTierLow,
uint24 feeTierHigh,
uint256 minUsdcOutFromLowWeth,
uint256 minUsdcOutFromHighWeth,
uint256 deadline
) external onlyOperatorOrOwner nonReentrant returns (uint256 sent) {
if (engine == address(0)) revert NOT_ENGINE();
uint256 wethBal = wethToken.balanceOf(address(this));
if (feesOwedWethLow > 0 && wethBal > 0) {
uint256 amountLow = wethBal <= feesOwedWethLow ? wethBal : feesOwedWethLow;
uint256 outLow = _swapExactInput(
address(wethToken),
address(usdcToken),
amountLow,
minUsdcOutFromLowWeth,
feeTierLow,
deadline
);
feesOwedWethLow -= amountLow;
feesOwedUsdcLow += outLow;
wethBal = wethToken.balanceOf(address(this));
}
if (feesOwedWethHigh > 0 && wethBal > 0) {
uint256 amountHigh = wethBal <= feesOwedWethHigh ? wethBal : feesOwedWethHigh;
uint256 outHigh = _swapExactInput(
address(wethToken),
address(usdcToken),
amountHigh,
minUsdcOutFromHighWeth,
feeTierHigh,
deadline
);
feesOwedWethHigh -= amountHigh;
feesOwedUsdcHigh += outHigh;
}
uint256 owedUsdc = feesOwedUsdcLow + feesOwedUsdcHigh + feesOwedUsdcExtra;
uint256 balUsdc = usdcToken.balanceOf(address(this));
uint256 toSend = owedUsdc <= balUsdc ? owedUsdc : balUsdc;
if (toSend == 0) return 0;
usdcToken.safeTransfer(engine, toSend);
IEngineVault(engine).fundInflowFromVault(toSend);
emit PulledToEngine(toSend);
emit FeesPaidToEngine(toSend);
sent = toSend;
uint256 usedLow = toSend <= feesOwedUsdcLow ? toSend : feesOwedUsdcLow;
feesOwedUsdcLow -= usedLow;
uint256 rem = toSend - usedLow;
if (rem > 0) {
uint256 usedHigh = rem <= feesOwedUsdcHigh ? rem : feesOwedUsdcHigh;
feesOwedUsdcHigh -= usedHigh;
rem -= usedHigh;
}
if (rem > 0) {
uint256 usedExtra = rem <= feesOwedUsdcExtra ? rem : feesOwedUsdcExtra;
feesOwedUsdcExtra -= usedExtra;
}
emit FeesOwedUpdated(feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function getFeesOwedRaw()
external
view
returns (
uint256 usdcLow,
uint256 wethLow,
uint256 usdcHigh,
uint256 wethHigh,
uint256 usdcExtra
)
{
return (feesOwedUsdcLow, feesOwedWethLow, feesOwedUsdcHigh, feesOwedWethHigh, feesOwedUsdcExtra);
}
function getVaultBalances()
external
view
returns (
uint256 balUsdc,
uint256 balWeth
)
{
return (usdcToken.balanceOf(address(this)), wethToken.balanceOf(address(this)));
}
function getFeesOwedInUsdcGivenWethPrice(uint256 priceWethInUsdc1e18)
external
view
returns (
uint256 usdcEqLow,
uint256 usdcEqHigh,
uint256 totalUsdcEq
)
{
uint256 wethLowEq = (feesOwedWethLow * priceWethInUsdc1e18) / 1e18;
uint256 wethHighEq = (feesOwedWethHigh * priceWethInUsdc1e18) / 1e18;
usdcEqLow = feesOwedUsdcLow + wethLowEq;
usdcEqHigh = feesOwedUsdcHigh + wethHighEq;
totalUsdcEq = usdcEqLow + usdcEqHigh + feesOwedUsdcExtra;
}
function burnPosition(uint256 tokenId) external onlyOperator nonReentrant {
if (tokenId == 0) revert NO_POSITION();
(, , , uint128 liq, , ) = _getNpmPosition(tokenId);
if (liq > 0) {
npm.decreaseLiquidity(
INonfungiblePositionManager.DecreaseLiquidityParams({
tokenId: tokenId,
liquidity: liq,
amount0Min: 0,
amount1Min: 0,
deadline: block.timestamp + 600
})
);
}
(uint256 feesWeth, uint256 feesUsdc) = npm.collect(
INonfungiblePositionManager.CollectParams({
tokenId: tokenId,
recipient: address(this),
amount0Max: type(uint128).max,
amount1Max: type(uint128).max
})
);
if (tokenId == positionIdUsdcWethLow) {
totalFeesUsdcFromLow += feesUsdc;
totalFeesWethFromLow += feesWeth;
feesOwedUsdcLow += feesUsdc;
feesOwedWethLow += feesWeth;
emit PositionFeesCollectedLow(tokenId, feesUsdc, feesWeth);
} else if (tokenId == positionIdUsdcWethHigh) {
totalFeesUsdcFromHigh += feesUsdc;
totalFeesWethFromHigh += feesWeth;
feesOwedUsdcHigh += feesUsdc;
feesOwedWethHigh += feesWeth;
emit PositionFeesCollectedHigh(tokenId, feesUsdc, feesWeth);
}
emit FeesOwedUpdated(
feesOwedUsdcLow,
feesOwedWethLow,
feesOwedUsdcHigh,
feesOwedWethHigh,
feesOwedUsdcExtra
);
npm.burn(tokenId);
if (tokenId == positionIdUsdcWethLow) positionIdUsdcWethLow = 0;
if (tokenId == positionIdUsdcWethHigh) positionIdUsdcWethHigh = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EXISTS","type":"error"},{"inputs":[],"name":"NOT_ENGINE","type":"error"},{"inputs":[],"name":"NOT_OPERATOR","type":"error"},{"inputs":[],"name":"NO_POSITION","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZERO","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"engine","type":"address"}],"name":"EngineSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"feesUsdcLow","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesWethLow","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesUsdcHigh","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesWethHigh","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesUsdcExtra","type":"uint256"}],"name":"FeesOwedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"FeesPaidToEngine","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"OperatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amtUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amtWeth","type":"uint256"}],"name":"PositionDecreasedHigh","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amtUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amtWeth","type":"uint256"}],"name":"PositionDecreasedLow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesWeth","type":"uint256"}],"name":"PositionFeesCollectedHigh","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesWeth","type":"uint256"}],"name":"PositionFeesCollectedLow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidityAdded","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedWeth","type":"uint256"}],"name":"PositionIncreasedHigh","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidityAdded","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedWeth","type":"uint256"}],"name":"PositionIncreasedLow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedWeth","type":"uint256"}],"name":"PositionMintedHigh","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedWeth","type":"uint256"}],"name":"PositionMintedLow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"PulledToEngine","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldTokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newTokenId","type":"uint256"},{"indexed":false,"internalType":"uint24","name":"feeNew","type":"uint24"},{"indexed":false,"internalType":"int24","name":"tickLowerNew","type":"int24"},{"indexed":false,"internalType":"int24","name":"tickUpperNew","type":"int24"}],"name":"RebalancedToNewLow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"usdcToWeth","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint24","name":"feeTier","type":"uint24"}],"name":"SwappedUsdcWeth","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint24","name":"feeTier","type":"uint24"}],"name":"SwappedWethToUsdc","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"UsdcOnlyFeesAdded","type":"event"},{"inputs":[],"name":"NPM_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_ROUTER_A","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_ROUTER_B","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"addUsdcOnlyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"collectAllHigh","outputs":[{"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"internalType":"uint256","name":"feesWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"collectAllLow","outputs":[{"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"internalType":"uint256","name":"feesWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"decreaseAndCollectHigh","outputs":[{"internalType":"uint256","name":"amtUsdc","type":"uint256"},{"internalType":"uint256","name":"amtWeth","type":"uint256"},{"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"internalType":"uint256","name":"feesWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"decreaseAndCollectLow","outputs":[{"internalType":"uint256","name":"amtUsdc","type":"uint256"},{"internalType":"uint256","name":"amtWeth","type":"uint256"},{"internalType":"uint256","name":"feesUsdc","type":"uint256"},{"internalType":"uint256","name":"feesWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"engine","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesOwedUsdcExtra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesOwedUsdcHigh","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesOwedUsdcLow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesOwedWethHigh","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesOwedWethLow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceWethInUsdc1e18","type":"uint256"}],"name":"getFeesOwedInUsdcGivenWethPrice","outputs":[{"internalType":"uint256","name":"usdcEqLow","type":"uint256"},{"internalType":"uint256","name":"usdcEqHigh","type":"uint256"},{"internalType":"uint256","name":"totalUsdcEq","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeesOwedRaw","outputs":[{"internalType":"uint256","name":"usdcLow","type":"uint256"},{"internalType":"uint256","name":"wethLow","type":"uint256"},{"internalType":"uint256","name":"usdcHigh","type":"uint256"},{"internalType":"uint256","name":"wethHigh","type":"uint256"},{"internalType":"uint256","name":"usdcExtra","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVaultBalances","outputs":[{"internalType":"uint256","name":"balUsdc","type":"uint256"},{"internalType":"uint256","name":"balWeth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amountUsdc","type":"uint256"},{"internalType":"uint256","name":"amountWeth","type":"uint256"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"increaseHigh","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"internalType":"uint256","name":"usedWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amountUsdc","type":"uint256"},{"internalType":"uint256","name":"amountWeth","type":"uint256"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"increaseLow","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"internalType":"uint256","name":"usedWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amountUsdc","type":"uint256"},{"internalType":"uint256","name":"amountWeth","type":"uint256"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"mintPositionHigh","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"internalType":"uint256","name":"usedWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amountUsdc","type":"uint256"},{"internalType":"uint256","name":"amountWeth","type":"uint256"},{"internalType":"uint256","name":"minUsdc","type":"uint256"},{"internalType":"uint256","name":"minWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"mintPositionLow","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"usedUsdc","type":"uint256"},{"internalType":"uint256","name":"usedWeth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"npm","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"onEnginePull","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"feeTierLow","type":"uint24"},{"internalType":"uint24","name":"feeTierHigh","type":"uint24"},{"internalType":"uint256","name":"minUsdcOutFromLowWeth","type":"uint256"},{"internalType":"uint256","name":"minUsdcOutFromHighWeth","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"payAccumulatedFeesToEngine","outputs":[{"internalType":"uint256","name":"sent","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"positionIdUsdcWethHigh","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionIdUsdcWethLow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"provideLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"pushToEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsdc","type":"uint256"}],"name":"pushToEngineAsInflow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint128","name":"liqToRemove","type":"uint128"},{"internalType":"uint256","name":"minUsdcOut","type":"uint256"},{"internalType":"uint256","name":"minWethOut","type":"uint256"},{"internalType":"uint24","name":"feeTierNew","type":"uint24"},{"internalType":"int24","name":"tickLowerNew","type":"int24"},{"internalType":"int24","name":"tickUpperNew","type":"int24"},{"internalType":"uint256","name":"amountUsdcDesired","type":"uint256"},{"internalType":"uint256","name":"amountWethDesired","type":"uint256"},{"internalType":"uint256","name":"minUsdcAdd","type":"uint256"},{"internalType":"uint256","name":"minWethAdd","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct PoolBondFlow.RebalanceParamsLow","name":"p","type":"tuple"}],"name":"rebalanceToNewLow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routerA","outputs":[{"internalType":"contract ISwapRouterV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerB","outputs":[{"internalType":"contract ISwapRouterV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"e","type":"address"}],"name":"setEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"op","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"bool","name":"usdcToWeth","type":"bool"},{"internalType":"uint256","name":"minOut","type":"uint256"},{"internalType":"uint24","name":"feeTier","type":"uint24"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapUsdcWeth","outputs":[{"internalType":"uint256","name":"out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFeesUsdcExtra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesUsdcFromHigh","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesUsdcFromLow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesWethFromHigh","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesWethFromLow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wethToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x61012060405273af88d065e77c8cc2239327c5edb3a432268e58316080527382af49447d8a07e3bd95bd0d56f35241523fbab160a05273c36442b4a4522e871399cd717abdd847ab11fe8860c05273e592427a0aece92de3edee1f18e0157c0586156460e081905261010052348015610076575f5ffd5b5060015f5533806100a057604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100a9816100af565b50610100565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60805160a05160c05160e05161010051614f5661032e5f395f8181610423015281816133180152818161336d015281816133c4015261351e01525f81816104bc0152818161326e015281816132c30152818161339a015261344401525f8181610547015281816107840152818161088201528181610d1d01528181610e4d01528181610f4b0152818161110d0152818161122a0152818161137e01528181611cc501528181611dcd01528181611fd8015281816123d40152818161257e015281816127f401528181612a2c01528181612ca3015281816131c401528181613219015281816135af015281816138e0015281816139ec01528181613e0901528181613f150152818161401b015261412601525f81816104530152818161161e01528181611725015281816117ca0152818161185801528181611900015281816122040152818161227a015281816131f7015281816132a10152818161334b01528181613b6901528181613c96015281816142aa015281816143d2015281816146f3015261477301525f818161035201528181610b67015281816115a0015281816117eb01528181611921015281816119bc01528181611a5e015281816120d80152818161222a015281816122540152818161271701528181612e2001528181612eb901528181612f5201528181613020015281816131a20152818161324c015281816132f601528181613ad601528181613c03015281816142170152818161433f01526147940152614f565ff3fe608060405234801561000f575f5ffd5b50600436106102b1575f3560e01c80637f1e9ef61161017b578063b15edd7e116100e4578063d5dcfc8a1161009e578063e891d24011610079578063e891d240146106ef578063ea9cc6b7146106f8578063eb521a4c14610701578063f2fde38b14610714575f5ffd5b8063d5dcfc8a146106b8578063d6e1a149146106cb578063e556674c146106d4575f5ffd5b8063b15edd7e1461038c578063b2fefd3f1461063e578063b3ab15fb14610651578063b82b751a14610664578063c9d4623f14610677578063d02ff39e1461068a575f5ffd5b8063986adb0c11610135578063986adb0c146105e2578063a1b2e77a146105f5578063a4e36355146105fe578063aae6007e14610607578063abdb45d214610610578063ad5c464814610623575f5ffd5b80637f1e9ef614610542578063812e2c231461056957806382651a921461057257806389a30271146105ad5780638da5cb5b146105c85780639528da6b146105d9575f5ffd5b80634aa6ce531161021d57806365434da7116101d757806365434da7146104b7578063671eef31146104de5780636dbb726a14610515578063703c14231461051e578063715018a6146105315780637de8cb2d14610539575f5ffd5b80634aa6ce53146104455780634b57b0be1461044e57806355f8351914610475578063570ca735146104885780635d832a191461049b5780635ee6932b146104a4575f5ffd5b80631547c1621161026e5780631547c162146103a7578063192d2b05146103ba57806322370685146103cd578063317ccbd9146103ea57806338ca63bc1461040b57806346b5f0d61461041e575f5ffd5b8063047d8f8b146102b55780630e830e49146102ed5780631146d1a41461030257806311b419a41461031557806311eac8551461034d578063130b10c31461038c575b5f5ffd5b6102c86102c3366004614869565b610727565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b6103006102fb3660046148c1565b610a1f565b005b6103006103103660046148e3565b610ac1565b6103286103233660046148fa565b610c4f565b604080516001600160801b0390941684526020840192909252908201526060016102e4565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102e4565b61037473e592427a0aece92de3edee1f18e0157c0586156481565b6102c86103b5366004614869565b610df0565b6103006103c8366004614939565b611099565b6103d561157f565b604080519283526020830191909152016102e4565b6103fd6103f8366004614963565b611697565b6040519081526020016102e4565b6103006104193660046148e3565b611c4e565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b6103fd60055481565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b6103006104833660046148e3565b61205f565b600354610374906001600160a01b031681565b6103fd60095481565b6103fd6104b2366004614992565b6121a7565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b600b54600c54600d54600e54600f54604080519586526020860194909452928401919091526060830152608082015260a0016102e4565b6103fd600d5481565b61032861052c3660046148fa565b612306565b61030061248e565b6103fd600e5481565b6103747f000000000000000000000000000000000000000000000000000000000000000081565b6103fd60065481565b6105856105803660046149f2565b6124a1565b604080519485526001600160801b0390931660208501529183015260608201526080016102e4565b61037473af88d065e77c8cc2239327c5edb3a432268e583181565b6001546001600160a01b0316610374565b6103fd600f5481565b6103006105f03660046148e3565b612671565b6103fd600b5481565b6103fd60075481565b6103fd600c5481565b6103d561061e3660046148e3565b61275d565b6103747382af49447d8a07e3bd95bd0d56f35241523fbab181565b61058561064c3660046149f2565b61294f565b61030061065f3660046148c1565b612b03565b6103006106723660046148e3565b612b54565b600254610374906001600160a01b031681565b61069d6106983660046148e3565b612b7f565b604080519384526020840192909252908201526060016102e4565b6103d56106c63660046148e3565b612c0c565b6103fd60045481565b61037473c36442b4a4522e871399cd717abdd847ab11fe8881565b6103fd600a5481565b6103fd60085481565b61030061070f3660046148e3565b612db6565b6103006107223660046148c1565b613073565b6003545f908190819081906001600160a01b0316331461075a57604051630ce525af60e11b815260040160405180910390fd5b6107626130ad565b885f0361078257604051631d5fdf4760e11b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052808c81526020018b6001600160801b031681526020018981526020018a8152602001888152506040518263ffffffff1660e01b81526004016107fd9190614a64565b60408051808303815f875af1158015610818573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083c9190614aa6565b604080516080810182528c81523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81529196509194505f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f7865916108b69190600401614ac8565b60408051808303815f875af11580156108d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f59190614aa6565b915091508093508192508360065f8282546109109190614b1f565b925050819055508260075f8282546109289190614b1f565b9250508190555083600b5f8282546109409190614b1f565b9250508190555082600c5f8282546109589190614b1f565b909155505060408051878152602081018790528c917fa2a07d670a61eb78ccfe196a6c5427b4dc3916f7585354b28bbd965dc689cea3910160405180910390a260408051858152602081018590528c915f516020614ee15f395f51905f5291015b60405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050610a1360015f55565b95509550955095915050565b610a27613104565b6001600160a01b038116610a4e57604051632c7d31e560e11b815260040160405180910390fd5b6002546001600160a01b031615610a7857604051639005c74960e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517fffdd1f97bc690cbcf97d0ea457d2e0913b439d14c33cde4b5ef892169f39f6b3905f90a250565b6003546001600160a01b03163314801590610ae757506001546001600160a01b03163314155b15610b0557604051630ce525af60e11b815260040160405180910390fd5b610b0d6130ad565b6002546001600160a01b0316610b36576040516303bc792560e01b815260040160405180910390fd5b805f03610b5657604051632c7d31e560e11b815260040160405180910390fd5b600254610b90906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683613131565b60025460405163e793be7960e01b8152600481018390526001600160a01b039091169063e793be79906024015f604051808303815f87803b158015610bd3575f5ffd5b505af1158015610be5573d5f5f3e3d5ffd5b505050505f516020614f015f395f51905f5281604051610c0791815260200190565b60405180910390a16040518181527f893bbd211f86cc3b676dbbba73f252d7caa5e382897c019f4e1afafcdf3b1a60906020015b60405180910390a1610c4c60015f55565b50565b6003545f90819081906001600160a01b03163314610c8057604051630ce525af60e11b815260040160405180910390fd5b610c886130ad565b885f03610ca857604051631d5fdf4760e11b815260040160405180910390fd5b610cb0613195565b6040805160c0810182528a8152602081018981528183018b815260608301898152608084018b815260a085018a8152955163219f5d1760e01b8152945160048601529251602485015290516044840152516064830152516084820152905160a48201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063219f5d179060c4016060604051808303815f875af1158015610d63573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d879190614b42565b604080516001600160801b0385168152602081018390529081018390529295509350915089907f054c95c92110307975c70817c36286ab58894bfcbcd6d47c7a53bebb3d70950f906060015b60405180910390a2610de460015f55565b96509650969350505050565b6003545f908190819081906001600160a01b03163314610e2357604051630ce525af60e11b815260040160405180910390fd5b610e2b6130ad565b885f03610e4b57604051631d5fdf4760e11b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052808c81526020018b6001600160801b031681526020018981526020018a8152602001888152506040518263ffffffff1660e01b8152600401610ec69190614a64565b60408051808303815f875af1158015610ee1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f059190614aa6565b604080516080810182528c81523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81529196509194505f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f786591610f7f9190600401614ac8565b60408051808303815f875af1158015610f9a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fbe9190614aa6565b915091508093508192508360085f828254610fd99190614b1f565b925050819055508260095f828254610ff19190614b1f565b9250508190555083600d5f8282546110099190614b1f565b9250508190555082600e5f8282546110219190614b1f565b909155505060408051878152602081018790528c917fbc8b1b8461b673a8fd0c376cd78ef8b0cd84c604f6565135919bd072597dae83910160405180910390a260408051858152602081018590528c917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef87361191016109b9565b6003546001600160a01b031633146110c457604051630ce525af60e11b815260040160405180910390fd5b6110cc6130ad565b6004545f036110ee57604051631d5fdf4760e11b815260040160405180910390fd5b5f6110fc6020830183614b76565b6001600160801b03161115611370577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052806004548152602001845f01602081019061115f9190614b76565b6001600160801b0316815260200184604001358152602001846020013581526020018461014001358152506040518263ffffffff1660e01b81526004016111a69190614a64565b60408051808303815f875af11580156111c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e59190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263fc6f78659261125c929101614ac8565b60408051808303815f875af1158015611277573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129b9190614aa6565b915091508060065f8282546112b09190614b1f565b925050819055508160075f8282546112c89190614b1f565b9250508190555080600b5f8282546112e09190614b1f565b9250508190555081600c5f8282546112f89190614b1f565b909155505060045460408051838152602081018590525f516020614ee15f395f51905f52910160405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a150505b611378613195565b5f5f5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663883164566040518061016001604052807382af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316815260200173af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b031681526020018860600160208101906114109190614b91565b62ffffff16815260200161142a60a08a0160808b01614bac565b60020b815260200161144260c08a0160a08b01614bac565b60020b81526020018860e0013581526020018860c00135815260200188610120013581526020018861010001358152602001306001600160a01b031681526020018861014001358152506040518263ffffffff1660e01b81526004016114a89190614bc7565b6080604051808303815f875af11580156114c4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114e89190614c8b565b9350935093509350836004547f8857686236777ab7389282b3d78e53ef8d52f19bd6b68b0ab91ff7f5ede2ff9a8760600160208101906115289190614b91565b61153860a08a0160808b01614bac565b61154860c08b0160a08c01614bac565b6040805162ffffff9094168452600292830b6020850152910b9082015260600160405180910390a3505050600455610c4c60015f55565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156115e5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116099190614cc7565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561166b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168f9190614cc7565b915091509091565b6003545f906001600160a01b031633148015906116bf57506001546001600160a01b03163314155b156116dd57604051630ce525af60e11b815260040160405180910390fd5b6116e56130ad565b6002546001600160a01b031661170e576040516303bc792560e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611772573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117969190614cc7565b90505f600c541180156117a857505f81115b156118ce575f600c548211156117c057600c546117c2565b815b90505f6118137f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000848a8d8a613393565b905081600c5f8282546118269190614cde565b9250508190555080600b5f82825461183e9190614b1f565b90915550506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156118a5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c99190614cc7565b925050505b5f600e541180156118de57505f81115b1561197c575f600e548211156118f657600e546118f8565b815b90505f6119497f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000084898c8a613393565b905081600e5f82825461195c9190614cde565b9250508190555080600d5f8282546119749190614b1f565b909155505050505b5f600f54600d54600b546119909190614b1f565b61199a9190614b1f565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611a01573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a259190614cc7565b90505f81831115611a365781611a38565b825b9050805f03611a4d575f945050505050611c3c565b600254611a87906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683613131565b60025460405163e793be7960e01b8152600481018390526001600160a01b039091169063e793be79906024015f604051808303815f87803b158015611aca575f5ffd5b505af1158015611adc573d5f5f3e3d5ffd5b505050505f516020614f015f395f51905f5281604051611afe91815260200190565b60405180910390a16040518181527f893bbd211f86cc3b676dbbba73f252d7caa5e382897c019f4e1afafcdf3b1a609060200160405180910390a18094505f600b54821115611b4f57600b54611b51565b815b905080600b5f828254611b649190614cde565b909155505f9050611b758284614cde565b90508015611bb9575f600d54821115611b9057600d54611b92565b815b905080600d5f828254611ba59190614cde565b90915550611bb590508183614cde565b9150505b8015611bee575f600f54821115611bd257600f54611bd4565b815b905080600f5f828254611be79190614cde565b9091555050505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050505050505b611c4560015f55565b95945050505050565b6003546001600160a01b03163314611c7957604051630ce525af60e11b815260040160405180910390fd5b611c816130ad565b805f03611ca157604051631d5fdf4760e11b815260040160405180910390fd5b5f611cab826135a1565b505093505050505f816001600160801b03161115611d8d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a00160405280858152602001846001600160801b031681526020015f81526020015f815260200142610258611d2c9190614b1f565b8152506040518263ffffffff1660e01b8152600401611d4b9190614a64565b60408051808303815f875af1158015611d66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d8a9190614aa6565b50505b604080516080810182528381523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f786591611e019190600401614ac8565b60408051808303815f875af1158015611e1c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e409190614aa6565b915091506004548403611ed8578060065f828254611e5e9190614b1f565b925050819055508160075f828254611e769190614b1f565b9250508190555080600b5f828254611e8e9190614b1f565b9250508190555081600c5f828254611ea69190614b1f565b9091555050604080518281526020810184905285915f516020614ee15f395f51905f52910160405180910390a2611f7b565b6005548403611f7b578060085f828254611ef29190614b1f565b925050819055508160095f828254611f0a9190614b1f565b9250508190555080600d5f828254611f229190614b1f565b9250508190555081600e5f828254611f3a9190614b1f565b9091555050604080518281526020810184905285917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef873611910160405180910390a25b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1604051630852cd8d60e31b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c68906024015f604051808303815f87803b158015612021575f5ffd5b505af1158015612033573d5f5f3e3d5ffd5b505050506004548403612045575f6004555b6005548403612053575f6005555b505050610c4c60015f55565b6003546001600160a01b0316331480159061208557506001546001600160a01b03163314155b156120a357604051630ce525af60e11b815260040160405180910390fd5b6120ab6130ad565b805f036120cb57604051632c7d31e560e11b815260040160405180910390fd5b6121006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308461366e565b80600a5f8282546121119190614b1f565b9250508190555080600f5f8282546121299190614b1f565b90915550506040518181527fa0280d68548db483a570cfa86ec16d639f88f6b6ccc05d39fa114c52bf8309a29060200160405180910390a1600b54600c54600d54600e54600f5460408051958652602086019490945292840191909152606083015260808201525f516020614ec15f395f51905f529060a001610c3b565b6003545f906001600160a01b031633146121d457604051630ce525af60e11b815260040160405180910390fd5b6121dc6130ad565b855f036121fc57604051632c7d31e560e11b815260040160405180910390fd5b5f85612228577f000000000000000000000000000000000000000000000000000000000000000061224a565b7f00000000000000000000000000000000000000000000000000000000000000005b90505f86612278577f000000000000000000000000000000000000000000000000000000000000000061229a565b7f00000000000000000000000000000000000000000000000000000000000000005b90506122aa82828a898989613393565b604080518915158152602081018b905290810182905262ffffff871660608201529093507f5e240f2c206a6c7ecb2f7842c0880ead0cdf1f0778941b7281431ec04a89e1f69060800160405180910390a15050611c4560015f55565b6003545f90819081906001600160a01b0316331461233757604051630ce525af60e11b815260040160405180910390fd5b61233f6130ad565b885f0361235f57604051631d5fdf4760e11b815260040160405180910390fd5b612367613195565b6040805160c0810182528a8152602081018981528183018b815260608301898152608084018b815260a085018a8152955163219f5d1760e01b8152945160048601529251602485015290516044840152516064830152516084820152905160a48201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063219f5d179060c4016060604051808303815f875af115801561241a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061243e9190614b42565b604080516001600160801b0385168152602081018390529081018390529295509350915089907fa9f21c025f193b74d383e529370c22589677db7c9f9b49356522530434450da990606001610dd3565b612496613104565b61249f5f6136ad565b565b6003545f908190819081906001600160a01b031633146124d457604051630ce525af60e11b815260040160405180910390fd5b6124dc6130ad565b6124e4613195565b60408051610160810182527382af49447d8a07e3bd95bd0d56f35241523fbab1815273af88d065e77c8cc2239327c5edb3a432268e5831602082015262ffffff8e168183015260028d810b60608301528c900b608082015260a081018a905260c081018b905260e0810188905261010081018990523061012082015261014081018790529051634418b22b60e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916388316456916125b29190600401614bc7565b6080604051808303815f875af11580156125ce573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125f29190614c8b565b60055493975091955090935091505f0361260c5760058490555b604080516001600160801b03851681526020810184905290810182905284907f247bf1ebc467d7985c45d143cb72b37c20dfefe34818998d855b6833472e0bd2906060015b60405180910390a261266260015f55565b98509850985098945050505050565b6003546001600160a01b0316331480159061269757506001546001600160a01b03163314155b156126b557604051630ce525af60e11b815260040160405180910390fd5b6126bd6130ad565b6002546001600160a01b03166126e6576040516303bc792560e01b815260040160405180910390fd5b805f0361270657604051632c7d31e560e11b815260040160405180910390fd5b600254612740906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683613131565b6040518181525f516020614f015f395f51905f5290602001610c3b565b6003545f9081906001600160a01b0316331461278c57604051630ce525af60e11b815260040160405180910390fd5b6127946130ad565b825f036127b457604051631d5fdf4760e11b815260040160405180910390fd5b604080516080810182528481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f7865916128289190600401614ac8565b60408051808303815f875af1158015612843573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128679190614aa6565b915091508093508192508360065f8282546128829190614b1f565b925050819055508260075f82825461289a9190614b1f565b9250508190555083600b5f8282546128b29190614b1f565b9250508190555082600c5f8282546128ca9190614b1f565b9091555050604080518581526020810185905286915f516020614ee15f395f51905f5291015b60405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1505061294a60015f55565b915091565b6003545f908190819081906001600160a01b0316331461298257604051630ce525af60e11b815260040160405180910390fd5b61298a6130ad565b612992613195565b60408051610160810182527382af49447d8a07e3bd95bd0d56f35241523fbab1815273af88d065e77c8cc2239327c5edb3a432268e5831602082015262ffffff8e168183015260028d810b60608301528c900b608082015260a081018a905260c081018b905260e0810188905261010081018990523061012082015261014081018790529051634418b22b60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691638831645691612a609190600401614bc7565b6080604051808303815f875af1158015612a7c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aa09190614c8b565b60045493975091955090935091505f03612aba5760048490555b604080516001600160801b03851681526020810184905290810182905284907f36e570de9758b93c6eb2f190c2a1f150e3665915a968c1f001eb0bfe3111281690606001612651565b612b0b613104565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d3905f90a250565b6002546001600160a01b03163314610c4c576040516303bc792560e01b815260040160405180910390fd5b5f5f5f5f670de0b6b3a764000085600c54612b9a9190614cf1565b612ba49190614d08565b90505f670de0b6b3a764000086600e54612bbe9190614cf1565b612bc89190614d08565b905081600b54612bd89190614b1f565b945080600d54612be89190614b1f565b600f54909450612bf88587614b1f565b612c029190614b1f565b9496939550505050565b6003545f9081906001600160a01b03163314612c3b57604051630ce525af60e11b815260040160405180910390fd5b612c436130ad565b825f03612c6357604051631d5fdf4760e11b815260040160405180910390fd5b604080516080810182528481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f786591612cd79190600401614ac8565b60408051808303815f875af1158015612cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d169190614aa6565b915091508093508192508360085f828254612d319190614b1f565b925050819055508260095f828254612d499190614b1f565b9250508190555083600d5f828254612d619190614b1f565b9250508190555082600e5f828254612d799190614b1f565b9091555050604080518581526020810185905286917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef87361191016128f0565b6002546001600160a01b03163314612de1576040516303bc792560e01b815260040160405180910390fd5b612de96130ad565b805f03612e0957604051632c7d31e560e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612e6d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e919190614cc7565b905081811015612f2d57612ea4826136fe565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612f06573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f2a9190614cc7565b90505b81811015612fc657612f3d613ddb565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612f9f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612fc39190614cc7565b90505b8181101561300f5760405162461bcd60e51b8152602060048201526011602482015270494e53554646494349454e545f5553444360781b60448201526064015b60405180910390fd5b600254613049906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911684613131565b6040518281525f516020614f015f395f51905f529060200160405180910390a150610c4c60015f55565b61307b613104565b6001600160a01b0381166130a457604051631e4fbdf760e01b81525f6004820152602401613006565b610c4c816136ad565b60025f54036130fe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401613006565b60025f55565b6001546001600160a01b0316331461249f5760405163118cdaa760e01b8152336004820152602401613006565b6040516001600160a01b0383811660248301526044820183905261319091859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506145aa565b505050565b6131ea6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b61323f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b6132946001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b6132e96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b61333e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b61249f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000005f19614616565b5f6133be877f00000000000000000000000000000000000000000000000000000000000000006146a5565b6133e8877f00000000000000000000000000000000000000000000000000000000000000006146a5565b60408051610100810182526001600160a01b038981168252888116602083015262ffffff8616828401523060608301526080820185905260a0820188905260c082018790525f60e0830152915163414bf38960e01b81526001927f0000000000000000000000000000000000000000000000000000000000000000169163414bf389916134789190600401614d27565b6020604051808303815f875af19250505080156134b2575060408051601f3d908101601f191682019092526134af91810190614cc7565b60015b6134bd57505f6134c0565b91505b806135965760408051610100810182526001600160a01b038a81168252898116602083015262ffffff8716828401523060608301526080820186905260a0820189905260c082018890525f60e0830152915163414bf38960e01b81527f00000000000000000000000000000000000000000000000000000000000000009092169163414bf3899161355391600401614d27565b6020604051808303815f875af115801561356f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135939190614cc7565b91505b509695505050505050565b5f5f5f5f5f5f5f5f5f5f5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166399fbab888e6040518263ffffffff1660e01b81526004016135fb91815260200190565b61018060405180830381865afa158015613617573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061363b9190614dc5565b9b509b5050509950995099509950505050508585858585859b509b509b509b509b509b5050505050505091939550919395565b6040516001600160a01b0384811660248301528381166044830152606482018390526136a79186918216906323b872dd9060840161315e565b50505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b600454158061370b575080155b156137135750565b5f61371f6004546135a1565b50509350505050806001600160801b03165f0361373a575050565b60025481906001600160a01b0316156138de5760025460408051637299470360e11b815290515f926001600160a01b03169163e5328e069160048083019260209291908290030181865afa158015613794573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137b89190614cc7565b90505f60025f9054906101000a90046001600160a01b03166001600160a01b031663ffa824146040518163ffffffff1660e01b8152600401602060405180830381865afa15801561380b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061382f9190614e9f565b90505f8211801561384357505f8161ffff16115b156138db575f61271061385a61ffff841685614cf1565b6138649190614d08565b905080156138d9575f8161387a88612af8614cf1565b6138849190614d08565b905061271081111561389557506127105b805f036138a157506103e85b6127106138b7826001600160801b038916614cf1565b6138c19190614d08565b9450846001600160801b03165f036138d7578594505b505b505b50505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052806004548152602001846001600160801b031681526020015f81526020015f8152602001426102586139499190614b1f565b8152506040518263ffffffff1660e01b81526004016139689190614a64565b60408051808303815f875af1158015613983573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139a79190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263fc6f786592613a1e929101614ac8565b60408051808303815f875af1158015613a39573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a5d9190614aa6565b915091508060065f828254613a729190614b1f565b925050819055508160075f828254613a8a9190614b1f565b9250508190555080600b5f828254613aa29190614b1f565b9250508190555081600c5f828254613aba9190614b1f565b90915550506040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015613b23573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613b479190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015613bae573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613bd29190614cc7565b9050613beb6101f4613be642610258614b1f565b6146d2565b506040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015613c50573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c749190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015613cdb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613cff9190614cc7565b90505f818411613d0f575f613d19565b613d198285614cde565b90505f858411613d29575f613d33565b613d338685614cde565b90508115613d6a575f600c54831115613d4e57600c54613d50565b825b905080600c5f828254613d639190614cde565b9091555050505b8015613d875780600b5f828254613d819190614b1f565b90915550505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050505050505050505050565b60045415613fed575f613def6004546135a1565b505093505050505f816001600160801b03161115613feb577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052806004548152602001846001600160801b031681526020015f81526020015f815260200142610258613e729190614b1f565b8152506040518263ffffffff1660e01b8152600401613e919190614a64565b60408051808303815f875af1158015613eac573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613ed09190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263fc6f786592613f47929101614ac8565b60408051808303815f875af1158015613f62573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613f869190614aa6565b915091508060065f828254613f9b9190614b1f565b925050819055508160075f828254613fb39190614b1f565b9250508190555080600b5f828254613fcb9190614b1f565b9250508190555081600c5f828254613fe39190614b1f565b909155505050505b505b60055415614200575f6140016005546135a1565b505093505050505f816001600160801b031611156141fe577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c49ccbe6040518060a001604052806005548152602001846001600160801b031681526020015f81526020015f8152602001426102586140849190614b1f565b8152506040518263ffffffff1660e01b81526004016140a39190614a64565b60408051808303815f875af11580156140be573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906140e29190614aa6565b50506040805160808101825260055481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163fc6f78659161415a9190600401614ac8565b60408051808303815f875af1158015614175573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906141999190614aa6565b915091508060085f8282546141ae9190614b1f565b925050819055508160095f8282546141c69190614b1f565b9250508190555080600d5f8282546141de9190614b1f565b9250508190555081600e5f8282546141f69190614b1f565b909155505050505b505b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015614264573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906142889190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156142ef573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906143139190614cc7565b90506143276101f4613be642610258614b1f565b506040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561438c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906143b09190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015614417573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061443b9190614cc7565b90505f81841161444b575f614455565b6144558285614cde565b90505f858411614465575f61446f565b61446f8685614cde565b9050811561455b575f600c5483111561448a57600c5461448c565b825b905080600c5f82825461449f9190614cde565b909155505f90506144b08285614cde565b90505f600e548211156144c557600e546144c7565b815b905080600e5f8282546144da9190614cde565b909155505f90506144eb8285614b1f565b90505f851180156144fb57505f81115b15614556575f8161450c8688614cf1565b6145169190614d08565b90505f6145238288614cde565b905081600b5f8282546145369190614b1f565b9250508190555080600d5f82825461454e9190614b1f565b909155505050505b505050505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1505050505050565b5f5f60205f8451602086015f885af1806145c9576040513d5f823e3d81fd5b50505f513d915081156145e05780600114156145ed565b6001600160a01b0384163b155b156136a757604051635274afe760e01b81526001600160a01b0385166004820152602401613006565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052614667848261480c565b6136a7576040516001600160a01b0384811660248301525f604483015261469b91869182169063095ea7b39060640161315e565b6136a784826145aa565b6146b96001600160a01b038316825f614616565b6146ce6001600160a01b038316825f19614616565b5050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015614738573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061475c9190614cc7565b9050805f0361476e575f915050614806565b6147bc7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000835f8888613393565b604080518381526020810183905262ffffff87168183015290519193507f0e91329ddb06f3cf4f77ac96e67049516ab884170daf330fb684e5f5930efa88919081900360600190a1505b92915050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561484b5750811561483d578060011461484b565b5f866001600160a01b03163b115b9695505050505050565b6001600160801b0381168114610c4c575f5ffd5b5f5f5f5f5f60a0868803121561487d575f5ffd5b85359450602086013561488f81614855565b94979496505050506040830135926060810135926080909101359150565b6001600160a01b0381168114610c4c575f5ffd5b5f602082840312156148d1575f5ffd5b81356148dc816148ad565b9392505050565b5f602082840312156148f3575f5ffd5b5035919050565b5f5f5f5f5f5f60c0878903121561490f575f5ffd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b5f61016082840312801561494b575f5ffd5b509092915050565b62ffffff81168114610c4c575f5ffd5b5f5f5f5f5f60a08688031215614977575f5ffd5b853561498281614953565b9450602086013561488f81614953565b5f5f5f5f5f60a086880312156149a6575f5ffd5b85359450602086013580151581146149bc575f5ffd5b93506040860135925060608601356149d381614953565b949793965091946080013592915050565b8060020b8114610c4c575f5ffd5b5f5f5f5f5f5f5f5f610100898b031215614a0a575f5ffd5b8835614a1581614953565b97506020890135614a25816149e4565b96506040890135614a35816149e4565b979a96995096976060810135975060808101359660a0820135965060c0820135955060e0909101359350915050565b5f60a082019050825182526001600160801b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b5f5f60408385031215614ab7575f5ffd5b505080516020909101519092909150565b815181526020808301516001600160a01b0316908201526040808301516001600160801b0390811691830191909152606092830151169181019190915260800190565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561480657614806614b0b565b8051614b3d81614855565b919050565b5f5f5f60608486031215614b54575f5ffd5b8351614b5f81614855565b602085015160409095015190969495509392505050565b5f60208284031215614b86575f5ffd5b81356148dc81614855565b5f60208284031215614ba1575f5ffd5b81356148dc81614953565b5f60208284031215614bbc575f5ffd5b81356148dc816149e4565b81516001600160a01b0316815261016081016020830151614bf360208401826001600160a01b03169052565b506040830151614c0a604084018262ffffff169052565b506060830151614c1f606084018260020b9052565b506080830151614c34608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e0830152610100830151610100830152610120830151614c7b6101208401826001600160a01b03169052565b5061014092830151919092015290565b5f5f5f5f60808587031215614c9e575f5ffd5b84516020860151909450614cb181614855565b6040860151606090960151949790965092505050565b5f60208284031215614cd7575f5ffd5b5051919050565b8181038181111561480657614806614b0b565b808202811582820484141761480657614806614b0b565b5f82614d2257634e487b7160e01b5f52601260045260245ffd5b500490565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151614d9d60e08401826001600160a01b03169052565b5092915050565b8051614b3d816148ad565b8051614b3d81614953565b8051614b3d816149e4565b5f5f5f5f5f5f5f5f5f5f5f5f6101808d8f031215614de1575f5ffd5b8c516bffffffffffffffffffffffff81168114614dfc575f5ffd5b9b50614e0a60208e01614da4565b9a50614e1860408e01614da4565b9950614e2660608e01614da4565b9850614e3460808e01614daf565b9750614e4260a08e01614dba565b9650614e5060c08e01614dba565b9550614e5e60e08e01614b32565b6101008e01516101208f015191965094509250614e7e6101408e01614b32565b9150614e8d6101608e01614b32565b90509295989b509295989b509295989b565b5f60208284031215614eaf575f5ffd5b815161ffff811681146148dc575f5ffdfe923819b612d36c01e3c280229207fb360ed23ca7e62081a0bda1cad127c5b7783667393fb6504f2356a0497eb7a41ed4c57cbb865453064ea6f4da777082211ef5dcb2db76ee88ed421d43326e512eab19990c8c3fd9f51eb2afd7172a0a34a2a26469706673582212203515d3ba9e3b1fa62a60a136da3fe75db7cd5a78cd49856ab6d852affe76f42c64736f6c634300081e0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b50600436106102b1575f3560e01c80637f1e9ef61161017b578063b15edd7e116100e4578063d5dcfc8a1161009e578063e891d24011610079578063e891d240146106ef578063ea9cc6b7146106f8578063eb521a4c14610701578063f2fde38b14610714575f5ffd5b8063d5dcfc8a146106b8578063d6e1a149146106cb578063e556674c146106d4575f5ffd5b8063b15edd7e1461038c578063b2fefd3f1461063e578063b3ab15fb14610651578063b82b751a14610664578063c9d4623f14610677578063d02ff39e1461068a575f5ffd5b8063986adb0c11610135578063986adb0c146105e2578063a1b2e77a146105f5578063a4e36355146105fe578063aae6007e14610607578063abdb45d214610610578063ad5c464814610623575f5ffd5b80637f1e9ef614610542578063812e2c231461056957806382651a921461057257806389a30271146105ad5780638da5cb5b146105c85780639528da6b146105d9575f5ffd5b80634aa6ce531161021d57806365434da7116101d757806365434da7146104b7578063671eef31146104de5780636dbb726a14610515578063703c14231461051e578063715018a6146105315780637de8cb2d14610539575f5ffd5b80634aa6ce53146104455780634b57b0be1461044e57806355f8351914610475578063570ca735146104885780635d832a191461049b5780635ee6932b146104a4575f5ffd5b80631547c1621161026e5780631547c162146103a7578063192d2b05146103ba57806322370685146103cd578063317ccbd9146103ea57806338ca63bc1461040b57806346b5f0d61461041e575f5ffd5b8063047d8f8b146102b55780630e830e49146102ed5780631146d1a41461030257806311b419a41461031557806311eac8551461034d578063130b10c31461038c575b5f5ffd5b6102c86102c3366004614869565b610727565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b6103006102fb3660046148c1565b610a1f565b005b6103006103103660046148e3565b610ac1565b6103286103233660046148fa565b610c4f565b604080516001600160801b0390941684526020840192909252908201526060016102e4565b6103747f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583181565b6040516001600160a01b0390911681526020016102e4565b61037473e592427a0aece92de3edee1f18e0157c0586156481565b6102c86103b5366004614869565b610df0565b6103006103c8366004614939565b611099565b6103d561157f565b604080519283526020830191909152016102e4565b6103fd6103f8366004614963565b611697565b6040519081526020016102e4565b6103006104193660046148e3565b611c4e565b6103747f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481565b6103fd60055481565b6103747f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b6103006104833660046148e3565b61205f565b600354610374906001600160a01b031681565b6103fd60095481565b6103fd6104b2366004614992565b6121a7565b6103747f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481565b600b54600c54600d54600e54600f54604080519586526020860194909452928401919091526060830152608082015260a0016102e4565b6103fd600d5481565b61032861052c3660046148fa565b612306565b61030061248e565b6103fd600e5481565b6103747f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8881565b6103fd60065481565b6105856105803660046149f2565b6124a1565b604080519485526001600160801b0390931660208501529183015260608201526080016102e4565b61037473af88d065e77c8cc2239327c5edb3a432268e583181565b6001546001600160a01b0316610374565b6103fd600f5481565b6103006105f03660046148e3565b612671565b6103fd600b5481565b6103fd60075481565b6103fd600c5481565b6103d561061e3660046148e3565b61275d565b6103747382af49447d8a07e3bd95bd0d56f35241523fbab181565b61058561064c3660046149f2565b61294f565b61030061065f3660046148c1565b612b03565b6103006106723660046148e3565b612b54565b600254610374906001600160a01b031681565b61069d6106983660046148e3565b612b7f565b604080519384526020840192909252908201526060016102e4565b6103d56106c63660046148e3565b612c0c565b6103fd60045481565b61037473c36442b4a4522e871399cd717abdd847ab11fe8881565b6103fd600a5481565b6103fd60085481565b61030061070f3660046148e3565b612db6565b6103006107223660046148c1565b613073565b6003545f908190819081906001600160a01b0316331461075a57604051630ce525af60e11b815260040160405180910390fd5b6107626130ad565b885f0361078257604051631d5fdf4760e11b815260040160405180910390fd5b7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052808c81526020018b6001600160801b031681526020018981526020018a8152602001888152506040518263ffffffff1660e01b81526004016107fd9190614a64565b60408051808303815f875af1158015610818573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083c9190614aa6565b604080516080810182528c81523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81529196509194505f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f7865916108b69190600401614ac8565b60408051808303815f875af11580156108d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f59190614aa6565b915091508093508192508360065f8282546109109190614b1f565b925050819055508260075f8282546109289190614b1f565b9250508190555083600b5f8282546109409190614b1f565b9250508190555082600c5f8282546109589190614b1f565b909155505060408051878152602081018790528c917fa2a07d670a61eb78ccfe196a6c5427b4dc3916f7585354b28bbd965dc689cea3910160405180910390a260408051858152602081018590528c915f516020614ee15f395f51905f5291015b60405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050610a1360015f55565b95509550955095915050565b610a27613104565b6001600160a01b038116610a4e57604051632c7d31e560e11b815260040160405180910390fd5b6002546001600160a01b031615610a7857604051639005c74960e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517fffdd1f97bc690cbcf97d0ea457d2e0913b439d14c33cde4b5ef892169f39f6b3905f90a250565b6003546001600160a01b03163314801590610ae757506001546001600160a01b03163314155b15610b0557604051630ce525af60e11b815260040160405180910390fd5b610b0d6130ad565b6002546001600160a01b0316610b36576040516303bc792560e01b815260040160405180910390fd5b805f03610b5657604051632c7d31e560e11b815260040160405180910390fd5b600254610b90906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58318116911683613131565b60025460405163e793be7960e01b8152600481018390526001600160a01b039091169063e793be79906024015f604051808303815f87803b158015610bd3575f5ffd5b505af1158015610be5573d5f5f3e3d5ffd5b505050505f516020614f015f395f51905f5281604051610c0791815260200190565b60405180910390a16040518181527f893bbd211f86cc3b676dbbba73f252d7caa5e382897c019f4e1afafcdf3b1a60906020015b60405180910390a1610c4c60015f55565b50565b6003545f90819081906001600160a01b03163314610c8057604051630ce525af60e11b815260040160405180910390fd5b610c886130ad565b885f03610ca857604051631d5fdf4760e11b815260040160405180910390fd5b610cb0613195565b6040805160c0810182528a8152602081018981528183018b815260608301898152608084018b815260a085018a8152955163219f5d1760e01b8152945160048601529251602485015290516044840152516064830152516084820152905160a48201526001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169063219f5d179060c4016060604051808303815f875af1158015610d63573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d879190614b42565b604080516001600160801b0385168152602081018390529081018390529295509350915089907f054c95c92110307975c70817c36286ab58894bfcbcd6d47c7a53bebb3d70950f906060015b60405180910390a2610de460015f55565b96509650969350505050565b6003545f908190819081906001600160a01b03163314610e2357604051630ce525af60e11b815260040160405180910390fd5b610e2b6130ad565b885f03610e4b57604051631d5fdf4760e11b815260040160405180910390fd5b7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052808c81526020018b6001600160801b031681526020018981526020018a8152602001888152506040518263ffffffff1660e01b8152600401610ec69190614a64565b60408051808303815f875af1158015610ee1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f059190614aa6565b604080516080810182528c81523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81529196509194505f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f786591610f7f9190600401614ac8565b60408051808303815f875af1158015610f9a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fbe9190614aa6565b915091508093508192508360085f828254610fd99190614b1f565b925050819055508260095f828254610ff19190614b1f565b9250508190555083600d5f8282546110099190614b1f565b9250508190555082600e5f8282546110219190614b1f565b909155505060408051878152602081018790528c917fbc8b1b8461b673a8fd0c376cd78ef8b0cd84c604f6565135919bd072597dae83910160405180910390a260408051858152602081018590528c917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef87361191016109b9565b6003546001600160a01b031633146110c457604051630ce525af60e11b815260040160405180910390fd5b6110cc6130ad565b6004545f036110ee57604051631d5fdf4760e11b815260040160405180910390fd5b5f6110fc6020830183614b76565b6001600160801b03161115611370577f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052806004548152602001845f01602081019061115f9190614b76565b6001600160801b0316815260200184604001358152602001846020013581526020018461014001358152506040518263ffffffff1660e01b81526004016111a69190614a64565b60408051808303815f875af11580156111c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e59190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169263fc6f78659261125c929101614ac8565b60408051808303815f875af1158015611277573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129b9190614aa6565b915091508060065f8282546112b09190614b1f565b925050819055508160075f8282546112c89190614b1f565b9250508190555080600b5f8282546112e09190614b1f565b9250508190555081600c5f8282546112f89190614b1f565b909155505060045460408051838152602081018590525f516020614ee15f395f51905f52910160405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a150505b611378613195565b5f5f5f5f7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b031663883164566040518061016001604052807382af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316815260200173af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b031681526020018860600160208101906114109190614b91565b62ffffff16815260200161142a60a08a0160808b01614bac565b60020b815260200161144260c08a0160a08b01614bac565b60020b81526020018860e0013581526020018860c00135815260200188610120013581526020018861010001358152602001306001600160a01b031681526020018861014001358152506040518263ffffffff1660e01b81526004016114a89190614bc7565b6080604051808303815f875af11580156114c4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114e89190614c8b565b9350935093509350836004547f8857686236777ab7389282b3d78e53ef8d52f19bd6b68b0ab91ff7f5ede2ff9a8760600160208101906115289190614b91565b61153860a08a0160808b01614bac565b61154860c08b0160a08c01614bac565b6040805162ffffff9094168452600292830b6020850152910b9082015260600160405180910390a3505050600455610c4c60015f55565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583116906370a0823190602401602060405180830381865afa1580156115e5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116099190614cc7565b6040516370a0823160e01b81523060048201527f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316906370a0823190602401602060405180830381865afa15801561166b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168f9190614cc7565b915091509091565b6003545f906001600160a01b031633148015906116bf57506001546001600160a01b03163314155b156116dd57604051630ce525af60e11b815260040160405180910390fd5b6116e56130ad565b6002546001600160a01b031661170e576040516303bc792560e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f907f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316906370a0823190602401602060405180830381865afa158015611772573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117969190614cc7565b90505f600c541180156117a857505f81115b156118ce575f600c548211156117c057600c546117c2565b815b90505f6118137f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab17f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831848a8d8a613393565b905081600c5f8282546118269190614cde565b9250508190555080600b5f82825461183e9190614b1f565b90915550506040516370a0823160e01b81523060048201527f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab16001600160a01b0316906370a0823190602401602060405180830381865afa1580156118a5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c99190614cc7565b925050505b5f600e541180156118de57505f81115b1561197c575f600e548211156118f657600e546118f8565b815b90505f6119497f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab17f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583184898c8a613393565b905081600e5f82825461195c9190614cde565b9250508190555080600d5f8282546119749190614b1f565b909155505050505b5f600f54600d54600b546119909190614b1f565b61199a9190614b1f565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583116906370a0823190602401602060405180830381865afa158015611a01573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a259190614cc7565b90505f81831115611a365781611a38565b825b9050805f03611a4d575f945050505050611c3c565b600254611a87906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58318116911683613131565b60025460405163e793be7960e01b8152600481018390526001600160a01b039091169063e793be79906024015f604051808303815f87803b158015611aca575f5ffd5b505af1158015611adc573d5f5f3e3d5ffd5b505050505f516020614f015f395f51905f5281604051611afe91815260200190565b60405180910390a16040518181527f893bbd211f86cc3b676dbbba73f252d7caa5e382897c019f4e1afafcdf3b1a609060200160405180910390a18094505f600b54821115611b4f57600b54611b51565b815b905080600b5f828254611b649190614cde565b909155505f9050611b758284614cde565b90508015611bb9575f600d54821115611b9057600d54611b92565b815b905080600d5f828254611ba59190614cde565b90915550611bb590508183614cde565b9150505b8015611bee575f600f54821115611bd257600f54611bd4565b815b905080600f5f828254611be79190614cde565b9091555050505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050505050505b611c4560015f55565b95945050505050565b6003546001600160a01b03163314611c7957604051630ce525af60e11b815260040160405180910390fd5b611c816130ad565b805f03611ca157604051631d5fdf4760e11b815260040160405180910390fd5b5f611cab826135a1565b505093505050505f816001600160801b03161115611d8d577f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a00160405280858152602001846001600160801b031681526020015f81526020015f815260200142610258611d2c9190614b1f565b8152506040518263ffffffff1660e01b8152600401611d4b9190614a64565b60408051808303815f875af1158015611d66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d8a9190614aa6565b50505b604080516080810182528381523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f786591611e019190600401614ac8565b60408051808303815f875af1158015611e1c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e409190614aa6565b915091506004548403611ed8578060065f828254611e5e9190614b1f565b925050819055508160075f828254611e769190614b1f565b9250508190555080600b5f828254611e8e9190614b1f565b9250508190555081600c5f828254611ea69190614b1f565b9091555050604080518281526020810184905285915f516020614ee15f395f51905f52910160405180910390a2611f7b565b6005548403611f7b578060085f828254611ef29190614b1f565b925050819055508160095f828254611f0a9190614b1f565b9250508190555080600d5f828254611f229190614b1f565b9250508190555081600e5f828254611f3a9190614b1f565b9091555050604080518281526020810184905285917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef873611910160405180910390a25b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1604051630852cd8d60e31b8152600481018590527f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316906342966c68906024015f604051808303815f87803b158015612021575f5ffd5b505af1158015612033573d5f5f3e3d5ffd5b505050506004548403612045575f6004555b6005548403612053575f6005555b505050610c4c60015f55565b6003546001600160a01b0316331480159061208557506001546001600160a01b03163314155b156120a357604051630ce525af60e11b815260040160405180910390fd5b6120ab6130ad565b805f036120cb57604051632c7d31e560e11b815260040160405180910390fd5b6121006001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58311633308461366e565b80600a5f8282546121119190614b1f565b9250508190555080600f5f8282546121299190614b1f565b90915550506040518181527fa0280d68548db483a570cfa86ec16d639f88f6b6ccc05d39fa114c52bf8309a29060200160405180910390a1600b54600c54600d54600e54600f5460408051958652602086019490945292840191909152606083015260808201525f516020614ec15f395f51905f529060a001610c3b565b6003545f906001600160a01b031633146121d457604051630ce525af60e11b815260040160405180910390fd5b6121dc6130ad565b855f036121fc57604051632c7d31e560e11b815260040160405180910390fd5b5f85612228577f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab161224a565b7f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58315b90505f86612278577f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583161229a565b7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab15b90506122aa82828a898989613393565b604080518915158152602081018b905290810182905262ffffff871660608201529093507f5e240f2c206a6c7ecb2f7842c0880ead0cdf1f0778941b7281431ec04a89e1f69060800160405180910390a15050611c4560015f55565b6003545f90819081906001600160a01b0316331461233757604051630ce525af60e11b815260040160405180910390fd5b61233f6130ad565b885f0361235f57604051631d5fdf4760e11b815260040160405180910390fd5b612367613195565b6040805160c0810182528a8152602081018981528183018b815260608301898152608084018b815260a085018a8152955163219f5d1760e01b8152945160048601529251602485015290516044840152516064830152516084820152905160a48201526001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169063219f5d179060c4016060604051808303815f875af115801561241a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061243e9190614b42565b604080516001600160801b0385168152602081018390529081018390529295509350915089907fa9f21c025f193b74d383e529370c22589677db7c9f9b49356522530434450da990606001610dd3565b612496613104565b61249f5f6136ad565b565b6003545f908190819081906001600160a01b031633146124d457604051630ce525af60e11b815260040160405180910390fd5b6124dc6130ad565b6124e4613195565b60408051610160810182527382af49447d8a07e3bd95bd0d56f35241523fbab1815273af88d065e77c8cc2239327c5edb3a432268e5831602082015262ffffff8e168183015260028d810b60608301528c900b608082015260a081018a905260c081018b905260e0810188905261010081018990523061012082015261014081018790529051634418b22b60e11b81526001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8816916388316456916125b29190600401614bc7565b6080604051808303815f875af11580156125ce573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125f29190614c8b565b60055493975091955090935091505f0361260c5760058490555b604080516001600160801b03851681526020810184905290810182905284907f247bf1ebc467d7985c45d143cb72b37c20dfefe34818998d855b6833472e0bd2906060015b60405180910390a261266260015f55565b98509850985098945050505050565b6003546001600160a01b0316331480159061269757506001546001600160a01b03163314155b156126b557604051630ce525af60e11b815260040160405180910390fd5b6126bd6130ad565b6002546001600160a01b03166126e6576040516303bc792560e01b815260040160405180910390fd5b805f0361270657604051632c7d31e560e11b815260040160405180910390fd5b600254612740906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58318116911683613131565b6040518181525f516020614f015f395f51905f5290602001610c3b565b6003545f9081906001600160a01b0316331461278c57604051630ce525af60e11b815260040160405180910390fd5b6127946130ad565b825f036127b457604051631d5fdf4760e11b815260040160405180910390fd5b604080516080810182528481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f7865916128289190600401614ac8565b60408051808303815f875af1158015612843573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128679190614aa6565b915091508093508192508360065f8282546128829190614b1f565b925050819055508260075f82825461289a9190614b1f565b9250508190555083600b5f8282546128b29190614b1f565b9250508190555082600c5f8282546128ca9190614b1f565b9091555050604080518581526020810185905286915f516020614ee15f395f51905f5291015b60405180910390a2600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1505061294a60015f55565b915091565b6003545f908190819081906001600160a01b0316331461298257604051630ce525af60e11b815260040160405180910390fd5b61298a6130ad565b612992613195565b60408051610160810182527382af49447d8a07e3bd95bd0d56f35241523fbab1815273af88d065e77c8cc2239327c5edb3a432268e5831602082015262ffffff8e168183015260028d810b60608301528c900b608082015260a081018a905260c081018b905260e0810188905261010081018990523061012082015261014081018790529051634418b22b60e11b81526001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe881691638831645691612a609190600401614bc7565b6080604051808303815f875af1158015612a7c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aa09190614c8b565b60045493975091955090935091505f03612aba5760048490555b604080516001600160801b03851681526020810184905290810182905284907f36e570de9758b93c6eb2f190c2a1f150e3665915a968c1f001eb0bfe3111281690606001612651565b612b0b613104565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d3905f90a250565b6002546001600160a01b03163314610c4c576040516303bc792560e01b815260040160405180910390fd5b5f5f5f5f670de0b6b3a764000085600c54612b9a9190614cf1565b612ba49190614d08565b90505f670de0b6b3a764000086600e54612bbe9190614cf1565b612bc89190614d08565b905081600b54612bd89190614b1f565b945080600d54612be89190614b1f565b600f54909450612bf88587614b1f565b612c029190614b1f565b9496939550505050565b6003545f9081906001600160a01b03163314612c3b57604051630ce525af60e11b815260040160405180910390fd5b612c436130ad565b825f03612c6357604051631d5fdf4760e11b815260040160405180910390fd5b604080516080810182528481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f786591612cd79190600401614ac8565b60408051808303815f875af1158015612cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d169190614aa6565b915091508093508192508360085f828254612d319190614b1f565b925050819055508260095f828254612d499190614b1f565b9250508190555083600d5f828254612d619190614b1f565b9250508190555082600e5f828254612d799190614b1f565b9091555050604080518581526020810185905286917f4efd8927846fbb4e6b2b1872cb60ab8c2b680dfa672b9f026ec361eaef87361191016128f0565b6002546001600160a01b03163314612de1576040516303bc792560e01b815260040160405180910390fd5b612de96130ad565b805f03612e0957604051632c7d31e560e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015612e6d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e919190614cc7565b905081811015612f2d57612ea4826136fe565b6040516370a0823160e01b81523060048201527f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015612f06573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f2a9190614cc7565b90505b81811015612fc657612f3d613ddb565b6040516370a0823160e01b81523060048201527f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015612f9f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612fc39190614cc7565b90505b8181101561300f5760405162461bcd60e51b8152602060048201526011602482015270494e53554646494349454e545f5553444360781b60448201526064015b60405180910390fd5b600254613049906001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58318116911684613131565b6040518281525f516020614f015f395f51905f529060200160405180910390a150610c4c60015f55565b61307b613104565b6001600160a01b0381166130a457604051631e4fbdf760e01b81525f6004820152602401613006565b610c4c816136ad565b60025f54036130fe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401613006565b60025f55565b6001546001600160a01b0316331461249f5760405163118cdaa760e01b8152336004820152602401613006565b6040516001600160a01b0383811660248301526044820183905261319091859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506145aa565b505050565b6131ea6001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831167f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe885f19614616565b61323f6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1167f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe885f19614616565b6132946001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831167f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615645f19614616565b6132e96001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1167f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615645f19614616565b61333e6001600160a01b037f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831167f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615645f19614616565b61249f6001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1167f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615645f19614616565b5f6133be877f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615646146a5565b6133e8877f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615646146a5565b60408051610100810182526001600160a01b038981168252888116602083015262ffffff8616828401523060608301526080820185905260a0820188905260c082018790525f60e0830152915163414bf38960e01b81526001927f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564169163414bf389916134789190600401614d27565b6020604051808303815f875af19250505080156134b2575060408051601f3d908101601f191682019092526134af91810190614cc7565b60015b6134bd57505f6134c0565b91505b806135965760408051610100810182526001600160a01b038a81168252898116602083015262ffffff8716828401523060608301526080820186905260a0820189905260c082018890525f60e0830152915163414bf38960e01b81527f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615649092169163414bf3899161355391600401614d27565b6020604051808303815f875af115801561356f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135939190614cc7565b91505b509695505050505050565b5f5f5f5f5f5f5f5f5f5f5f5f7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b03166399fbab888e6040518263ffffffff1660e01b81526004016135fb91815260200190565b61018060405180830381865afa158015613617573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061363b9190614dc5565b9b509b5050509950995099509950505050508585858585859b509b509b509b509b509b5050505050505091939550919395565b6040516001600160a01b0384811660248301528381166044830152606482018390526136a79186918216906323b872dd9060840161315e565b50505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b600454158061370b575080155b156137135750565b5f61371f6004546135a1565b50509350505050806001600160801b03165f0361373a575050565b60025481906001600160a01b0316156138de5760025460408051637299470360e11b815290515f926001600160a01b03169163e5328e069160048083019260209291908290030181865afa158015613794573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137b89190614cc7565b90505f60025f9054906101000a90046001600160a01b03166001600160a01b031663ffa824146040518163ffffffff1660e01b8152600401602060405180830381865afa15801561380b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061382f9190614e9f565b90505f8211801561384357505f8161ffff16115b156138db575f61271061385a61ffff841685614cf1565b6138649190614d08565b905080156138d9575f8161387a88612af8614cf1565b6138849190614d08565b905061271081111561389557506127105b805f036138a157506103e85b6127106138b7826001600160801b038916614cf1565b6138c19190614d08565b9450846001600160801b03165f036138d7578594505b505b505b50505b7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052806004548152602001846001600160801b031681526020015f81526020015f8152602001426102586139499190614b1f565b8152506040518263ffffffff1660e01b81526004016139689190614a64565b60408051808303815f875af1158015613983573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139a79190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169263fc6f786592613a1e929101614ac8565b60408051808303815f875af1158015613a39573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a5d9190614aa6565b915091508060065f828254613a729190614b1f565b925050819055508160075f828254613a8a9190614b1f565b9250508190555080600b5f828254613aa29190614b1f565b9250508190555081600c5f828254613aba9190614b1f565b90915550506040516370a0823160e01b81523060048201525f907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015613b23573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613b479190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa158015613bae573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613bd29190614cc7565b9050613beb6101f4613be642610258614b1f565b6146d2565b506040516370a0823160e01b81523060048201525f907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015613c50573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c749190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa158015613cdb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613cff9190614cc7565b90505f818411613d0f575f613d19565b613d198285614cde565b90505f858411613d29575f613d33565b613d338685614cde565b90508115613d6a575f600c54831115613d4e57600c54613d50565b825b905080600c5f828254613d639190614cde565b9091555050505b8015613d875780600b5f828254613d819190614b1f565b90915550505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a15050505050505050505050565b60045415613fed575f613def6004546135a1565b505093505050505f816001600160801b03161115613feb577f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052806004548152602001846001600160801b031681526020015f81526020015f815260200142610258613e729190614b1f565b8152506040518263ffffffff1660e01b8152600401613e919190614a64565b60408051808303815f875af1158015613eac573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613ed09190614aa6565b5050604080516080810182526004805482523060208301526001600160801b038284018190526060830152915163fc6f786560e01b81525f9283926001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169263fc6f786592613f47929101614ac8565b60408051808303815f875af1158015613f62573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613f869190614aa6565b915091508060065f828254613f9b9190614b1f565b925050819055508160075f828254613fb39190614b1f565b9250508190555080600b5f828254613fcb9190614b1f565b9250508190555081600c5f828254613fe39190614b1f565b909155505050505b505b60055415614200575f6140016005546135a1565b505093505050505f816001600160801b031611156141fe577f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886001600160a01b0316630c49ccbe6040518060a001604052806005548152602001846001600160801b031681526020015f81526020015f8152602001426102586140849190614b1f565b8152506040518263ffffffff1660e01b81526004016140a39190614a64565b60408051808303815f875af11580156140be573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906140e29190614aa6565b50506040805160808101825260055481523060208201526001600160801b038183018190526060820152905163fc6f786560e01b81525f9182916001600160a01b037f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88169163fc6f78659161415a9190600401614ac8565b60408051808303815f875af1158015614175573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906141999190614aa6565b915091508060085f8282546141ae9190614b1f565b925050819055508160095f8282546141c69190614b1f565b9250508190555080600d5f8282546141de9190614b1f565b9250508190555081600e5f8282546141f69190614b1f565b909155505050505b505b6040516370a0823160e01b81523060048201525f907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa158015614264573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906142889190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa1580156142ef573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906143139190614cc7565b90506143276101f4613be642610258614b1f565b506040516370a0823160e01b81523060048201525f907f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58316001600160a01b0316906370a0823190602401602060405180830381865afa15801561438c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906143b09190614cc7565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa158015614417573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061443b9190614cc7565b90505f81841161444b575f614455565b6144558285614cde565b90505f858411614465575f61446f565b61446f8685614cde565b9050811561455b575f600c5483111561448a57600c5461448c565b825b905080600c5f82825461449f9190614cde565b909155505f90506144b08285614cde565b90505f600e548211156144c557600e546144c7565b815b905080600e5f8282546144da9190614cde565b909155505f90506144eb8285614b1f565b90505f851180156144fb57505f81115b15614556575f8161450c8688614cf1565b6145169190614d08565b90505f6145238288614cde565b905081600b5f8282546145369190614b1f565b9250508190555080600d5f82825461454e9190614b1f565b909155505050505b505050505b600b54600c54600d54600e54600f546040805195865260208601949094528484019290925260608401526080830152515f516020614ec15f395f51905f529181900360a00190a1505050505050565b5f5f60205f8451602086015f885af1806145c9576040513d5f823e3d81fd5b50505f513d915081156145e05780600114156145ed565b6001600160a01b0384163b155b156136a757604051635274afe760e01b81526001600160a01b0385166004820152602401613006565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052614667848261480c565b6136a7576040516001600160a01b0384811660248301525f604483015261469b91869182169063095ea7b39060640161315e565b6136a784826145aa565b6146b96001600160a01b038316825f614616565b6146ce6001600160a01b038316825f19614616565b5050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab116906370a0823190602401602060405180830381865afa158015614738573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061475c9190614cc7565b9050805f0361476e575f915050614806565b6147bc7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab17f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831835f8888613393565b604080518381526020810183905262ffffff87168183015290519193507f0e91329ddb06f3cf4f77ac96e67049516ab884170daf330fb684e5f5930efa88919081900360600190a1505b92915050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561484b5750811561483d578060011461484b565b5f866001600160a01b03163b115b9695505050505050565b6001600160801b0381168114610c4c575f5ffd5b5f5f5f5f5f60a0868803121561487d575f5ffd5b85359450602086013561488f81614855565b94979496505050506040830135926060810135926080909101359150565b6001600160a01b0381168114610c4c575f5ffd5b5f602082840312156148d1575f5ffd5b81356148dc816148ad565b9392505050565b5f602082840312156148f3575f5ffd5b5035919050565b5f5f5f5f5f5f60c0878903121561490f575f5ffd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b5f61016082840312801561494b575f5ffd5b509092915050565b62ffffff81168114610c4c575f5ffd5b5f5f5f5f5f60a08688031215614977575f5ffd5b853561498281614953565b9450602086013561488f81614953565b5f5f5f5f5f60a086880312156149a6575f5ffd5b85359450602086013580151581146149bc575f5ffd5b93506040860135925060608601356149d381614953565b949793965091946080013592915050565b8060020b8114610c4c575f5ffd5b5f5f5f5f5f5f5f5f610100898b031215614a0a575f5ffd5b8835614a1581614953565b97506020890135614a25816149e4565b96506040890135614a35816149e4565b979a96995096976060810135975060808101359660a0820135965060c0820135955060e0909101359350915050565b5f60a082019050825182526001600160801b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b5f5f60408385031215614ab7575f5ffd5b505080516020909101519092909150565b815181526020808301516001600160a01b0316908201526040808301516001600160801b0390811691830191909152606092830151169181019190915260800190565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561480657614806614b0b565b8051614b3d81614855565b919050565b5f5f5f60608486031215614b54575f5ffd5b8351614b5f81614855565b602085015160409095015190969495509392505050565b5f60208284031215614b86575f5ffd5b81356148dc81614855565b5f60208284031215614ba1575f5ffd5b81356148dc81614953565b5f60208284031215614bbc575f5ffd5b81356148dc816149e4565b81516001600160a01b0316815261016081016020830151614bf360208401826001600160a01b03169052565b506040830151614c0a604084018262ffffff169052565b506060830151614c1f606084018260020b9052565b506080830151614c34608084018260020b9052565b5060a083015160a083015260c083015160c083015260e083015160e0830152610100830151610100830152610120830151614c7b6101208401826001600160a01b03169052565b5061014092830151919092015290565b5f5f5f5f60808587031215614c9e575f5ffd5b84516020860151909450614cb181614855565b6040860151606090960151949790965092505050565b5f60208284031215614cd7575f5ffd5b5051919050565b8181038181111561480657614806614b0b565b808202811582820484141761480657614806614b0b565b5f82614d2257634e487b7160e01b5f52601260045260245ffd5b500490565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff169083015260608084015191821690830152610100820190506080830151608083015260a083015160a083015260c083015160c083015260e0830151614d9d60e08401826001600160a01b03169052565b5092915050565b8051614b3d816148ad565b8051614b3d81614953565b8051614b3d816149e4565b5f5f5f5f5f5f5f5f5f5f5f5f6101808d8f031215614de1575f5ffd5b8c516bffffffffffffffffffffffff81168114614dfc575f5ffd5b9b50614e0a60208e01614da4565b9a50614e1860408e01614da4565b9950614e2660608e01614da4565b9850614e3460808e01614daf565b9750614e4260a08e01614dba565b9650614e5060c08e01614dba565b9550614e5e60e08e01614b32565b6101008e01516101208f015191965094509250614e7e6101408e01614b32565b9150614e8d6101608e01614b32565b90509295989b509295989b509295989b565b5f60208284031215614eaf575f5ffd5b815161ffff811681146148dc575f5ffdfe923819b612d36c01e3c280229207fb360ed23ca7e62081a0bda1cad127c5b7783667393fb6504f2356a0497eb7a41ed4c57cbb865453064ea6f4da777082211ef5dcb2db76ee88ed421d43326e512eab19990c8c3fd9f51eb2afd7172a0a34a2a26469706673582212203515d3ba9e3b1fa62a60a136da3fe75db7cd5a78cd49856ab6d852affe76f42c64736f6c634300081e0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$8.35
Net Worth in ETH
0.003123
Token Allocations
USDC
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.999782 | 8.356 | $8.35 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.