Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 10 from a total of 10 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Chaos | 11084555 | 46 hrs ago | IN | 0 S | 0.0046956 | ||||
Gravity Pull | 11084555 | 46 hrs ago | IN | 0 S | 0.0109048 | ||||
Chaos | 11081190 | 47 hrs ago | IN | 0 S | 0.0046956 | ||||
Gravity Pull | 11081190 | 47 hrs ago | IN | 0 S | 0.01020915 | ||||
Chaos | 11079420 | 47 hrs ago | IN | 0 S | 0.0046956 | ||||
Run Collapse | 11079420 | 47 hrs ago | IN | 0 S | 0.01456065 | ||||
Chaos | 11079420 | 47 hrs ago | IN | 0 S | 0.0046956 | ||||
Gravity Pull | 11079417 | 47 hrs ago | IN | 0 S | 0.0109048 | ||||
Chaos | 11074791 | 47 hrs ago | IN | 0 S | 0.01039685 | ||||
Gravity Pull | 11074791 | 47 hrs ago | IN | 0 S | 0.01385865 |
Latest 2 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11066307 | 2 days ago | Contract Creation | 0 S | |||
11066307 | 2 days ago | Contract Creation | 0 S |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DarkSide
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* DARKHOLE - DarkSide Website: https://darkhole.online/ Twitter: https://x.com/DarkHoleSonic Telegram: https://t.me/DarkHoleSonic @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+*%@@@@@@@%@@@@@@@@@@@@%%+--+%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#+#%@@@@@@@@@@@%@@@@@%%%#@@@%%@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@%%@@@*@%=#@@@@@@@%@@%*==**=:==+##+*###%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@%+%@@@%@@#@@@%#=#%%-:-......:...:--.=++==***##@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@%@@@@+:@@@@@@#@@@*=-:@@+....::---:-::-+*#%-:..:....:-+####%%%@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@%@@@@%#@@@@*#:+*#-+#%#:..-=+*****#%@@@@@#+--::..-=::...::=+%%%#%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@=-..==*#@@*::-=+#%%%%@@@@@@@@%%%%%%%##%%%#*=-:..:-=*%%%@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@%@@%@+-:.-=@@@@#++*#%%%%@@@@@@@@@@@%@@@@@@@@@#=:..:=--::::=*#%%@@##@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@##+-:*@@@@%#####%@@@@@@@@@@@@@@@@%%#%#%@%@%%%%=::.......+%%%@@@%*@@@@@@@@@@@@@@@ @@@@@@@@@@@%@@@@@#@%-+=:*@@@%#####%@@@@@@@@@@@@@@@@%@@@@@%###%%%@@@@%%#-.....:=%%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@%#@@@@%@*--+:#@@@%##%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%*+:...-==#@@@@@@@@@@@@@@@@@@ @@@@@@@@@@*@@@@@%+=:+*%@@@%#%%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%###*=::...-*##%%@@@@@@@@@@@@@@@ @@@@@@@@@@#@@@@@=*+:+#%@@@%%@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@%%#**+:..:--.:%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@#%@%@@=*-*%#@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%%#%%%@@@@@@@@@@%%=-----...:-=+###*%@@@@@@@@@@@@ @@@@@@@%@@@*@@@@:*+%@@@@@@%@@@@@@@@@@@@@@@%%%%%%%%%%%%%#%##%@@@@@@@@@%*+*===+......-*%%-+@@@@@@@@@@@ @@@@@@@@@@@+%%@%=*#@@@@@@%@@@@@@@@@@@@%%%%%%#****+++=+****##%@@@@@@@@@@@##%@%#=:.....=%@*-@@@@@@@@@@ @@@@@@@@@@@+-*@=+*%@@@@@%%%@@@@@@@@@@%@%%#**+++=+-:-:.:=+++*#%@@@@@@@@@@@@@@@@#=:....:+%@@*@@@@@@@@@ @@@@@@%@@@*+=*-.++%@@@@%%%%@@@@@@@@@@%%%*+====---::.....:-=+*#%%%@@@@@@@@@%@@@@%*-...:=#@@@%@@@@@@@@ @@@@@@*@@%@-:+::=+%@@@%%%%%%%@@@@@@%%%#++=+=--=-::::::....:-=+*%%%%@@@@@@@@@@@@@#-:...:+#%%%@@@@@@@@ @@@@@@*@@#%--#=:*%@@@@@@@@%%%%%%%@@%%%#+==----:.............:-=+#%#@%@@@@@@@@@@@#-.:...=#%==%@%@@@@@ @@@@@@@@%@#:*%*:#%%@@@@@@@@%%%%%@@@%%#+-=:=:...............::==-+###%@@@@@@@@@@@%==:....##+..@@@@@@@ @@@@@@#@@@%-=+#+*%@@@@@%@@@@@@@@@@@%#*----..................:::--*#%%%@@@@@@@@@@@##:.....##.=@@@@@@@ @@@@@@@@@%#+--=%#%@@@@@@@@@@@@@@@@%##-:::...................::-::=+#%%@@@@@@@@@@@%+:.....:*-%@@@@@@@ @@@@@@@@@@*@*-=##%@@@@@@@@@@@@@@@@#%#=:......................::::-**#%@@@@@@@@@@@@#+:.....:+@@@@@@@@ @@@@@@@@@@@%*=-**#%@@@@@@@@@@@@@@@%#*+:.................:...:..:--+*#%@@@@@@@@@@@%%+:...::-+@@@@@@@@ @@@@@@@@@@@@***+**#@@@@@@@@@@@@@@%%#+=:.......................:::=+*%@@@@@@@@@@@@%#:.....=##@@@@@@@@ @@@@@@@@@@@@#@%+*=*%@@@@@@@@@@@@@%%#+=::......................::==#%@@@@@@@@@%#%@%*-:.:.++%@%@@@@@@@ @@@@@@#=@@@%@%%%@**#@@@@@@@@@@@@@@%##+-::.....:...............:==+%%@@@@@@@@@%#%%##+..:-*+%@@@@@@@@@ @@@@@@@**@@@+=@%@@%#%@@@@@@@@@@@@@%##*=--:::...........-:.:+::-=+**#%@@@@@@@%%%%%**-...::%@@@@%@@@@@ @@@@@@@@%@@#*-=%@@@@#@@@@@@@@@%@@@@%%#+==---:::::.::---:..::-==+=-*##%@@@%@@@%%%#*+:...*:%@@@%%@@@@@ @@@@@@@@@@@%++:+%%%@@@@@@@@@@@@%%@@@@%%#*=--=----=+=-::::-===+==:=*##%%@@@@@%%%#*=:...-%+%@@@=@@@@@@ @@@@@@@@@@@@@@+=+%%%@@@@@@@@@@@@@%%%@%%%%#***+===--========-==:=+*#%%%%%%@@@%%%*=::.-.%@*@@@@%@@@@@@ @@@@@@@@@@*@@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%###**+===-:=++++++******##%%%%%%%***-...###@@#@@@@@@@@@@@ @@@@@@@@@@@%@@@@@@%+%@@@@@@@@@@@@@@@@@@@@@%%%######***##%%%%%%%%%##########***=-:.*%@@@##@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@%%%@%%@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@%%%%@@@@@@@%%#*****++-==-:+*#%@@#%@@@%%@@@@@@ @@@@@@@@@@@@@@@@@@%@@@###%%%@@@@@@@@@@@@@@@@@@@@@@%@@%%%@@@@@@@@@@@%+###*++===:.-+#%@@@#@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@#+=****%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%#**===.=-*%@@@%#%@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@#***#%*%@@@@@@@@@@%%%%%@@@@@@@@@#%%%@%%%%%%%***+..-.=%@@@@+:@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%%#++*##%%%%%%%@@%%%%#*##%@@@%#*#%*%##%%%%*==+#:.....#@@@@%#%@@@@@@@@@@@@@ @@@@@@@@@@@@%@@@@@@@@@@%@@@@@@@%@%####%%#*****+**+***+**##*+###%%%#---.::=*:=*%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*++=--:::......:::.:=+%%%%#+--=*=..:+#+=%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@#*%%@@@%%*+=+=-:..........:--++***+=--..:+=:+*%%#@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%*++=::=-......--=+-*--:..-*=*=+#-*%%*@@@@@@@@@%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@#=#@@@@@@@@@@@@@@@#*-:..............+*@@@%*##%*+@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%#%##*=*++-::..:-:..:.-=+##+=*%%@@@%*%*-:*@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*#%##@@@%%@@%@@@@@@@%###%%@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@%%@@@#@@#++#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*#%@@@@@@@@@%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol"; import "@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@transmissions11/solmate/src/tokens/ERC20.sol"; import "@transmissions11/solmate/src/tokens/ERC721.sol"; import "@transmissions11/solmate/src/auth/Owned.sol"; import "@transmissions11/solmate/src/tokens/WETH.sol"; import {DARK} from "./DARK.sol"; import {LiquidityLock} from "./LiquidityLock.sol"; contract DarkSide is Owned { IUniswapV3Pool public pool; DARK public darkToken; LiquidityLock public lock; // sonic address public constant weth = 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38; // sonic address public constant positionManager = 0x77DcC9b09C6Ae94CDC726540735682A38e18d690; // sonic address public constant factoryAddress = 0x56CFC796bC88C9c7e1b38C2b0aF9B7120B079aef; uint24 private constant poolFeeLP = 10_000; uint256 private tokenSupplyERC20 = 100_000_000e18; uint256 private benchmarkSupply = tokenSupplyERC20 / 100; address private deployer; address private token0; uint256 holeCap = 0.1 ether; uint256 public holeChecks = 6; uint256 public nextBlackTime; /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK) uint160 internal constant MIN_SQRT_RATIO = 4295128739; /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK) uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342; constructor() Owned(msg.sender) { deployer = msg.sender; darkToken = new DARK(msg.sender, tokenSupplyERC20); lock = new LiquidityLock(msg.sender); darkToken.approve(address(positionManager), type(uint256).max); WETH(payable(weth)).approve(address(positionManager), type(uint256).max); } receive() external payable { WETH(payable(weth)).deposit{value: msg.value}(); } function checkTimer() external view returns (uint256) { return nextBlackTime - block.timestamp; } //claim function gravityPull() external onlyOwner { uint256 wethBalance = WETH(payable(weth)).balanceOf(address(this)); lock.claimFees(); uint256 wethBalanceAfter = WETH(payable(weth)).balanceOf(address(this)); uint256 darkTokenBalance = darkToken.balanceOf(address(this)); uint256 wethGain = (wethBalanceAfter - wethBalance); if (wethGain > 0 || darkTokenBalance > 0) { WETH(payable(weth)).transfer(owner, wethGain); darkToken.transfer(address(owner), darkTokenBalance); } } function runCollapse() external onlyOwner { uint256 DARK_INTERVAL = 12 hours; uint256 darkTokenSupply = darkToken.balanceOf(0x000000000000000000000000000000000000dEaD); uint256 totalHole = darkTokenSupply / benchmarkSupply; if (totalHole >= 5) { DARK_INTERVAL += 6 hours; } if (totalHole >= 50) { DARK_INTERVAL += 12 hours; } require(block.timestamp >= nextBlackTime, "Dark interval has not passed yet"); uint256 wethBalance = WETH(payable(weth)).balanceOf(address(this)); lock.claimBurn(); lock.claimFees(); nextBlackTime = block.timestamp + DARK_INTERVAL; uint256 darkTokenBalance = darkToken.balanceOf(address(this)); uint256 wethBalanceAfter = WETH(payable(weth)).balanceOf(address(this)); uint256 wethGain = (wethBalanceAfter - wethBalance); if (wethGain > 0 || darkTokenBalance > 0) { WETH(payable(weth)).transfer(owner, wethGain); darkToken.transfer(0x000000000000000000000000000000000000dEaD, darkTokenBalance); } } function setChecks(uint256 _newCheckCount) external onlyOwner { holeChecks = _newCheckCount; } function setCap(uint256 _newHoleCap) external onlyOwner { holeCap = _newHoleCap; } function Chaos() external { if (lock.nftId() == 0) { return; } else if (address(pool) == address(0)) { IUniswapV3Factory factory = IUniswapV3Factory(factoryAddress); pool = IUniswapV3Pool(factory.getPool(weth, address(darkToken), poolFeeLP)); darkToken.approve(address(pool), type(uint256).max); WETH(payable(weth)).approve(address(pool), type(uint256).max); require(address(pool) != address(0)); token0 = pool.token0(); } uint256 darkTokenBalance = darkToken.balanceOf(address(this)); if (darkTokenBalance > 0) { darkToken.transfer(0x000000000000000000000000000000000000dEaD, darkTokenBalance); } uint256 wethBalance = WETH(payable(weth)).balanceOf(address(this)); address tokenIn; address tokenOut; uint256 swapBalance; for (uint256 i = 0; i < holeChecks; i++) { tokenIn = i % 2 == 0 ? weth : address(darkToken); tokenOut = i % 2 == 0 ? address(darkToken) : weth; swapBalance = i % 2 == 0 ? wethBalance : darkTokenBalance; if (swapBalance > 0) { uint256 toSwap = ((swapBalance * (i + 1)) * 10) / ((i + 2) * 10); swap(tokenIn, tokenOut, toSwap); } if (i % 2 == 0) { wethBalance = WETH(payable(weth)).balanceOf(address(this)); } else { darkTokenBalance = darkToken.balanceOf(address(this)); } } darkTokenBalance = darkToken.balanceOf(address(this)); swap(address(darkToken), weth, darkTokenBalance); wethBalance = WETH(payable(weth)).balanceOf(address(this)); if (wethBalance > holeCap) { uint256 toClear = wethBalance - holeCap; WETH(payable(weth)).transfer(deployer, toClear); } } function swap(address tokeknIn, address tokenOut, uint256 amount) internal { if (amount == 0) { return; } bool zeroForOne = tokeknIn < tokenOut; uint160 sqrt = zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1; try pool.swap(address(this), zeroForOne, int256(amount), sqrt, zeroForOne ? bytes("1") : bytes("")) {} catch {} } function uniswapV3SwapCallback(int256 amount0, int256 amount1, bytes calldata data) external { require(msg.sender == address(pool) && tx.origin != address(this), "not authorized"); bool zeroForOne = data.length > 0; address tokenOut = zeroForOne ? token0 : token0 == weth ? address(darkToken) : weth; uint256 amountOut; if (zeroForOne) { amountOut = uint256(amount0); } else { amountOut = uint256(amount1); } ERC20(tokenOut).transfer(address(pool), amountOut); } }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; import './pool/IUniswapV3PoolImmutables.sol'; import './pool/IUniswapV3PoolState.sol'; import './pool/IUniswapV3PoolDerivedState.sol'; import './pool/IUniswapV3PoolActions.sol'; import './pool/IUniswapV3PoolOwnerActions.sol'; import './pool/IUniswapV3PoolEvents.sol'; /// @title The interface for a Uniswap V3 Pool /// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform /// to the ERC20 specification /// @dev The pool interface is broken up into many smaller pieces interface IUniswapV3Pool is IUniswapV3PoolImmutables, IUniswapV3PoolState, IUniswapV3PoolDerivedState, IUniswapV3PoolActions, IUniswapV3PoolOwnerActions, IUniswapV3PoolEvents { }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title The interface for the Uniswap V3 Factory /// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees interface IUniswapV3Factory { /// @notice Emitted when the owner of the factory is changed /// @param oldOwner The owner before the owner was changed /// @param newOwner The owner after the owner was changed event OwnerChanged(address indexed oldOwner, address indexed newOwner); /// @notice Emitted when a pool is created /// @param token0 The first token of the pool by address sort order /// @param token1 The second token of the pool by address sort order /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks /// @param pool The address of the created pool event PoolCreated( address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool ); /// @notice Emitted when a new fee amount is enabled for pool creation via the factory /// @param fee The enabled fee, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing); /// @notice Returns the current owner of the factory /// @dev Can be changed by the current owner via setOwner /// @return The address of the factory owner function owner() external view returns (address); /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee /// @return The tick spacing function feeAmountTickSpacing(uint24 fee) external view returns (int24); /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order /// @param tokenA The contract address of either token0 or token1 /// @param tokenB The contract address of the other token /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @return pool The pool address function getPool( address tokenA, address tokenB, uint24 fee ) external view returns (address pool); /// @notice Creates a pool for the given two tokens and fee /// @param tokenA One of the two tokens in the desired pool /// @param tokenB The other of the two tokens in the desired pool /// @param fee The desired fee for the pool /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments /// are invalid. /// @return pool The address of the newly created pool function createPool( address tokenA, address tokenB, uint24 fee ) external returns (address pool); /// @notice Updates the owner of the factory /// @dev Must be called by the current owner /// @param _owner The new owner of the factory function setOwner(address _owner) external; /// @notice Enables a fee amount with the given tickSpacing /// @dev Fee amounts may never be removed once enabled /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6) /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount function enableFeeAmount(uint24 fee, int24 tickSpacing) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; pragma abicoder v2; import '@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol'; import './IPoolInitializer.sol'; import './IERC721Permit.sol'; import './IPeripheryPayments.sol'; import './IPeripheryImmutableState.sol'; import '../libraries/PoolAddress.sol'; /// @title Non-fungible token for positions /// @notice Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred /// and authorized. interface INonfungiblePositionManager is IPoolInitializer, IPeripheryPayments, IPeripheryImmutableState, IERC721Metadata, IERC721Enumerable, IERC721Permit { /// @notice Emitted when liquidity is increased for a position NFT /// @dev Also emitted when a token is minted /// @param tokenId The ID of the token for which liquidity was increased /// @param liquidity The amount by which liquidity for the NFT position was increased /// @param amount0 The amount of token0 that was paid for the increase in liquidity /// @param amount1 The amount of token1 that was paid for the increase in liquidity event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); /// @notice Emitted when liquidity is decreased for a position NFT /// @param tokenId The ID of the token for which liquidity was decreased /// @param liquidity The amount by which liquidity for the NFT position was decreased /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); /// @notice Emitted when tokens are collected for a position NFT /// @dev The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior /// @param tokenId The ID of the token for which underlying tokens were collected /// @param recipient The address of the account that received the collected tokens /// @param amount0 The amount of token0 owed to the position that was collected /// @param amount1 The amount of token1 owed to the position that was collected event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1); /// @notice Returns the position information associated with a given token ID. /// @dev Throws if the token ID is not valid. /// @param tokenId The ID of the token that represents the position /// @return nonce The nonce for permits /// @return operator The address that is approved for spending /// @return token0 The address of the token0 for a specific pool /// @return token1 The address of the token1 for a specific pool /// @return fee The fee associated with the pool /// @return tickLower The lower end of the tick range for the position /// @return tickUpper The higher end of the tick range for the position /// @return liquidity The liquidity of the position /// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position /// @return feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position /// @return tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation /// @return tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation 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 ); struct MintParams { address token0; address token1; uint24 fee; int24 tickLower; int24 tickUpper; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; address recipient; uint256 deadline; } /// @notice Creates a new position wrapped in a NFT /// @dev Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized /// a method does not exist, i.e. the pool is assumed to be initialized. /// @param params The params necessary to mint a position, encoded as `MintParams` in calldata /// @return tokenId The ID of the token that represents the minted position /// @return liquidity The amount of liquidity for this position /// @return amount0 The amount of token0 /// @return amount1 The amount of token1 function mint(MintParams calldata params) external payable returns ( uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1 ); struct IncreaseLiquidityParams { uint256 tokenId; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender` /// @param params tokenId The ID of the token for which liquidity is being increased, /// amount0Desired The desired amount of token0 to be spent, /// amount1Desired The desired amount of token1 to be spent, /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check, /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check, /// deadline The time by which the transaction must be included to effect the change /// @return liquidity The new liquidity amount as a result of the increase /// @return amount0 The amount of token0 to acheive resulting liquidity /// @return amount1 The amount of token1 to acheive resulting liquidity function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns ( uint128 liquidity, uint256 amount0, uint256 amount1 ); struct DecreaseLiquidityParams { uint256 tokenId; uint128 liquidity; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } /// @notice Decreases the amount of liquidity in a position and accounts it to the position /// @param params tokenId The ID of the token for which liquidity is being decreased, /// amount The amount by which liquidity will be decreased, /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, /// deadline The time by which the transaction must be included to effect the change /// @return amount0 The amount of token0 accounted to the position's tokens owed /// @return amount1 The amount of token1 accounted to the position's tokens owed function decreaseLiquidity(DecreaseLiquidityParams calldata params) external payable returns (uint256 amount0, uint256 amount1); struct CollectParams { uint256 tokenId; address recipient; uint128 amount0Max; uint128 amount1Max; } /// @notice Collects up to a maximum amount of fees owed to a specific position to the recipient /// @param params tokenId The ID of the NFT for which tokens are being collected, /// recipient The account that should receive the tokens, /// amount0Max The maximum amount of token0 to collect, /// amount1Max The maximum amount of token1 to collect /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1); /// @notice Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens /// must be collected first. /// @param tokenId The ID of the token that is being burned function burn(uint256 tokenId) external payable; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnershipTransferred(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; bytes32 private constant _OWNERSHIP_SLOT = 0xa58a6b793a0b6e42c88ec3ffe5a29303d384cd8e453ec07f936a59cef0bd80ef; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; assembly {sstore(_OWNERSHIP_SLOT, _owner)} emit OwnershipTransferred(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function transferOwnership(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnershipTransferred(msg.sender, newOwner); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "./ERC20.sol"; import {SafeTransferLib} from "../utils/SafeTransferLib.sol"; /// @notice Minimalist and modern Wrapped Ether implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/WETH.sol) /// @author Inspired by WETH9 (https://github.com/dapphub/ds-weth/blob/master/src/weth9.sol) contract WETH is ERC20("Wrapped Ether", "WETH", 18) { using SafeTransferLib for address; event Deposit(address indexed from, uint256 amount); event Withdrawal(address indexed to, uint256 amount); function deposit() public payable virtual { _mint(msg.sender, msg.value); emit Deposit(msg.sender, msg.value); } function withdraw(uint256 amount) public virtual { _burn(msg.sender, amount); emit Withdrawal(msg.sender, amount); msg.sender.safeTransferETH(amount); } receive() external payable virtual { deposit(); } }
/* DARKHOLE - $DARK Website: https://darkhole.online/ Twitter: https://x.com/DarkHoleSonic Telegram: https://t.me/DarkHoleSonic @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+*%@@@@@@@%@@@@@@@@@@@@%%+--+%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#+#%@@@@@@@@@@@%@@@@@%%%#@@@%%@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@%%@@@*@%=#@@@@@@@%@@%*==**=:==+##+*###%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@%+%@@@%@@#@@@%#=#%%-:-......:...:--.=++==***##@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@%@@@@+:@@@@@@#@@@*=-:@@+....::---:-::-+*#%-:..:....:-+####%%%@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@%@@@@%#@@@@*#:+*#-+#%#:..-=+*****#%@@@@@#+--::..-=::...::=+%%%#%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@=-..==*#@@*::-=+#%%%%@@@@@@@@%%%%%%%##%%%#*=-:..:-=*%%%@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@%@@%@+-:.-=@@@@#++*#%%%%@@@@@@@@@@@%@@@@@@@@@#=:..:=--::::=*#%%@@##@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@##+-:*@@@@%#####%@@@@@@@@@@@@@@@@%%#%#%@%@%%%%=::.......+%%%@@@%*@@@@@@@@@@@@@@@ @@@@@@@@@@@%@@@@@#@%-+=:*@@@%#####%@@@@@@@@@@@@@@@@%@@@@@%###%%%@@@@%%#-.....:=%%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@%#@@@@%@*--+:#@@@%##%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%*+:...-==#@@@@@@@@@@@@@@@@@@ @@@@@@@@@@*@@@@@%+=:+*%@@@%#%%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%###*=::...-*##%%@@@@@@@@@@@@@@@ @@@@@@@@@@#@@@@@=*+:+#%@@@%%@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@%%#**+:..:--.:%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@#%@%@@=*-*%#@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%%#%%%@@@@@@@@@@%%=-----...:-=+###*%@@@@@@@@@@@@ @@@@@@@%@@@*@@@@:*+%@@@@@@%@@@@@@@@@@@@@@@%%%%%%%%%%%%%#%##%@@@@@@@@@%*+*===+......-*%%-+@@@@@@@@@@@ @@@@@@@@@@@+%%@%=*#@@@@@@%@@@@@@@@@@@@%%%%%%#****+++=+****##%@@@@@@@@@@@##%@%#=:.....=%@*-@@@@@@@@@@ @@@@@@@@@@@+-*@=+*%@@@@@%%%@@@@@@@@@@%@%%#**+++=+-:-:.:=+++*#%@@@@@@@@@@@@@@@@#=:....:+%@@*@@@@@@@@@ @@@@@@%@@@*+=*-.++%@@@@%%%%@@@@@@@@@@%%%*+====---::.....:-=+*#%%%@@@@@@@@@%@@@@%*-...:=#@@@%@@@@@@@@ @@@@@@*@@%@-:+::=+%@@@%%%%%%%@@@@@@%%%#++=+=--=-::::::....:-=+*%%%%@@@@@@@@@@@@@#-:...:+#%%%@@@@@@@@ @@@@@@*@@#%--#=:*%@@@@@@@@%%%%%%%@@%%%#+==----:.............:-=+#%#@%@@@@@@@@@@@#-.:...=#%==%@%@@@@@ @@@@@@@@%@#:*%*:#%%@@@@@@@@%%%%%@@@%%#+-=:=:...............::==-+###%@@@@@@@@@@@%==:....##+..@@@@@@@ @@@@@@#@@@%-=+#+*%@@@@@%@@@@@@@@@@@%#*----..................:::--*#%%%@@@@@@@@@@@##:.....##.=@@@@@@@ @@@@@@@@@%#+--=%#%@@@@@@@@@@@@@@@@%##-:::...................::-::=+#%%@@@@@@@@@@@%+:.....:*-%@@@@@@@ @@@@@@@@@@*@*-=##%@@@@@@@@@@@@@@@@#%#=:......................::::-**#%@@@@@@@@@@@@#+:.....:+@@@@@@@@ @@@@@@@@@@@%*=-**#%@@@@@@@@@@@@@@@%#*+:.................:...:..:--+*#%@@@@@@@@@@@%%+:...::-+@@@@@@@@ @@@@@@@@@@@@***+**#@@@@@@@@@@@@@@%%#+=:.......................:::=+*%@@@@@@@@@@@@%#:.....=##@@@@@@@@ @@@@@@@@@@@@#@%+*=*%@@@@@@@@@@@@@%%#+=::......................::==#%@@@@@@@@@%#%@%*-:.:.++%@%@@@@@@@ @@@@@@#=@@@%@%%%@**#@@@@@@@@@@@@@@%##+-::.....:...............:==+%%@@@@@@@@@%#%%##+..:-*+%@@@@@@@@@ @@@@@@@**@@@+=@%@@%#%@@@@@@@@@@@@@%##*=--:::...........-:.:+::-=+**#%@@@@@@@%%%%%**-...::%@@@@%@@@@@ @@@@@@@@%@@#*-=%@@@@#@@@@@@@@@%@@@@%%#+==---:::::.::---:..::-==+=-*##%@@@%@@@%%%#*+:...*:%@@@%%@@@@@ @@@@@@@@@@@%++:+%%%@@@@@@@@@@@@%%@@@@%%#*=--=----=+=-::::-===+==:=*##%%@@@@@%%%#*=:...-%+%@@@=@@@@@@ @@@@@@@@@@@@@@+=+%%%@@@@@@@@@@@@@%%%@%%%%#***+===--========-==:=+*#%%%%%%@@@%%%*=::.-.%@*@@@@%@@@@@@ @@@@@@@@@@*@@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%###**+===-:=++++++******##%%%%%%%***-...###@@#@@@@@@@@@@@ @@@@@@@@@@@%@@@@@@%+%@@@@@@@@@@@@@@@@@@@@@%%%######***##%%%%%%%%%##########***=-:.*%@@@##@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@%%%@%%@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@%%%%@@@@@@@%%#*****++-==-:+*#%@@#%@@@%%@@@@@@ @@@@@@@@@@@@@@@@@@%@@@###%%%@@@@@@@@@@@@@@@@@@@@@@%@@%%%@@@@@@@@@@@%+###*++===:.-+#%@@@#@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@#+=****%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%#**===.=-*%@@@%#%@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@#***#%*%@@@@@@@@@@%%%%%@@@@@@@@@#%%%@%%%%%%%***+..-.=%@@@@+:@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%%#++*##%%%%%%%@@%%%%#*##%@@@%#*#%*%##%%%%*==+#:.....#@@@@%#%@@@@@@@@@@@@@ @@@@@@@@@@@@%@@@@@@@@@@%@@@@@@@%@%####%%#*****+**+***+**##*+###%%%#---.::=*:=*%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*++=--:::......:::.:=+%%%%#+--=*=..:+#+=%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@#*%%@@@%%*+=+=-:..........:--++***+=--..:+=:+*%%#@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%*++=::=-......--=+-*--:..-*=*=+#-*%%*@@@@@@@@@%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@#=#@@@@@@@@@@@@@@@#*-:..............+*@@@%*##%*+@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%#%##*=*++-::..:-:..:.-=+##+=*%%@@@%*%*-:*@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*#%##@@@%%@@%@@@@@@@%###%%@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@%%@@@#@@#++#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*#%@@@@@@@@@%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; import "@transmissions11/solmate/src/auth/Owned.sol"; contract DARK is ERC20, Owned { mapping(address => bool) public isExempt; uint256 public maxTransaction; bool public limitsRemoved = false; constructor(address deployer, uint256 supply) ERC20("DARKHOLE", "DARK") Owned(deployer) { isExempt[deployer] = true; isExempt[address(this)] = true; isExempt[msg.sender] = true; maxTransaction = supply * 2 / 100; _mint(deployer, supply); } function _transfer(address from, address to, uint256 amount) internal virtual override { if (!limitsRemoved) { if (!isExempt[from] && !isExempt[to]) { require(amount <= maxTransaction, "Exceeds MaxTx Limit"); } } super._transfer(from, to, amount); } function removeAllLimits() external onlyOwner { maxTransaction = totalSupply(); limitsRemoved = true; } function renounceOwnership() external onlyOwner { transferOwnership(address(0)); } }
/* DARKHOLE - Liquidity Lock Website: https://darkhole.online/ Twitter: https://x.com/DarkHoleSonic Telegram: https://t.me/DarkHoleSonic @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+*%@@@@@@@%@@@@@@@@@@@@%%+--+%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#+#%@@@@@@@@@@@%@@@@@%%%#@@@%%@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@%%@@@*@%=#@@@@@@@%@@%*==**=:==+##+*###%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@%+%@@@%@@#@@@%#=#%%-:-......:...:--.=++==***##@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@%@@@@+:@@@@@@#@@@*=-:@@+....::---:-::-+*#%-:..:....:-+####%%%@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@%@@@@%#@@@@*#:+*#-+#%#:..-=+*****#%@@@@@#+--::..-=::...::=+%%%#%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@=-..==*#@@*::-=+#%%%%@@@@@@@@%%%%%%%##%%%#*=-:..:-=*%%%@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@%@@%@+-:.-=@@@@#++*#%%%%@@@@@@@@@@@%@@@@@@@@@#=:..:=--::::=*#%%@@##@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@##+-:*@@@@%#####%@@@@@@@@@@@@@@@@%%#%#%@%@%%%%=::.......+%%%@@@%*@@@@@@@@@@@@@@@ @@@@@@@@@@@%@@@@@#@%-+=:*@@@%#####%@@@@@@@@@@@@@@@@%@@@@@%###%%%@@@@%%#-.....:=%%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@%#@@@@%@*--+:#@@@%##%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%*+:...-==#@@@@@@@@@@@@@@@@@@ @@@@@@@@@@*@@@@@%+=:+*%@@@%#%%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%###*=::...-*##%%@@@@@@@@@@@@@@@ @@@@@@@@@@#@@@@@=*+:+#%@@@%%@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@%%#**+:..:--.:%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@#%@%@@=*-*%#@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%%#%%%@@@@@@@@@@%%=-----...:-=+###*%@@@@@@@@@@@@ @@@@@@@%@@@*@@@@:*+%@@@@@@%@@@@@@@@@@@@@@@%%%%%%%%%%%%%#%##%@@@@@@@@@%*+*===+......-*%%-+@@@@@@@@@@@ @@@@@@@@@@@+%%@%=*#@@@@@@%@@@@@@@@@@@@%%%%%%#****+++=+****##%@@@@@@@@@@@##%@%#=:.....=%@*-@@@@@@@@@@ @@@@@@@@@@@+-*@=+*%@@@@@%%%@@@@@@@@@@%@%%#**+++=+-:-:.:=+++*#%@@@@@@@@@@@@@@@@#=:....:+%@@*@@@@@@@@@ @@@@@@%@@@*+=*-.++%@@@@%%%%@@@@@@@@@@%%%*+====---::.....:-=+*#%%%@@@@@@@@@%@@@@%*-...:=#@@@%@@@@@@@@ @@@@@@*@@%@-:+::=+%@@@%%%%%%%@@@@@@%%%#++=+=--=-::::::....:-=+*%%%%@@@@@@@@@@@@@#-:...:+#%%%@@@@@@@@ @@@@@@*@@#%--#=:*%@@@@@@@@%%%%%%%@@%%%#+==----:.............:-=+#%#@%@@@@@@@@@@@#-.:...=#%==%@%@@@@@ @@@@@@@@%@#:*%*:#%%@@@@@@@@%%%%%@@@%%#+-=:=:...............::==-+###%@@@@@@@@@@@%==:....##+..@@@@@@@ @@@@@@#@@@%-=+#+*%@@@@@%@@@@@@@@@@@%#*----..................:::--*#%%%@@@@@@@@@@@##:.....##.=@@@@@@@ @@@@@@@@@%#+--=%#%@@@@@@@@@@@@@@@@%##-:::...................::-::=+#%%@@@@@@@@@@@%+:.....:*-%@@@@@@@ @@@@@@@@@@*@*-=##%@@@@@@@@@@@@@@@@#%#=:......................::::-**#%@@@@@@@@@@@@#+:.....:+@@@@@@@@ @@@@@@@@@@@%*=-**#%@@@@@@@@@@@@@@@%#*+:.................:...:..:--+*#%@@@@@@@@@@@%%+:...::-+@@@@@@@@ @@@@@@@@@@@@***+**#@@@@@@@@@@@@@@%%#+=:.......................:::=+*%@@@@@@@@@@@@%#:.....=##@@@@@@@@ @@@@@@@@@@@@#@%+*=*%@@@@@@@@@@@@@%%#+=::......................::==#%@@@@@@@@@%#%@%*-:.:.++%@%@@@@@@@ @@@@@@#=@@@%@%%%@**#@@@@@@@@@@@@@@%##+-::.....:...............:==+%%@@@@@@@@@%#%%##+..:-*+%@@@@@@@@@ @@@@@@@**@@@+=@%@@%#%@@@@@@@@@@@@@%##*=--:::...........-:.:+::-=+**#%@@@@@@@%%%%%**-...::%@@@@%@@@@@ @@@@@@@@%@@#*-=%@@@@#@@@@@@@@@%@@@@%%#+==---:::::.::---:..::-==+=-*##%@@@%@@@%%%#*+:...*:%@@@%%@@@@@ @@@@@@@@@@@%++:+%%%@@@@@@@@@@@@%%@@@@%%#*=--=----=+=-::::-===+==:=*##%%@@@@@%%%#*=:...-%+%@@@=@@@@@@ @@@@@@@@@@@@@@+=+%%%@@@@@@@@@@@@@%%%@%%%%#***+===--========-==:=+*#%%%%%%@@@%%%*=::.-.%@*@@@@%@@@@@@ @@@@@@@@@@*@@@@@%%@@@@@@@@@@@@@@@@@@@@@@%%%###**+===-:=++++++******##%%%%%%%***-...###@@#@@@@@@@@@@@ @@@@@@@@@@@%@@@@@@%+%@@@@@@@@@@@@@@@@@@@@@%%%######***##%%%%%%%%%##########***=-:.*%@@@##@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@%%%@%%@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@%%%%@@@@@@@%%#*****++-==-:+*#%@@#%@@@%%@@@@@@ @@@@@@@@@@@@@@@@@@%@@@###%%%@@@@@@@@@@@@@@@@@@@@@@%@@%%%@@@@@@@@@@@%+###*++===:.-+#%@@@#@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@#+=****%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%#**===.=-*%@@@%#%@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@#***#%*%@@@@@@@@@@%%%%%@@@@@@@@@#%%%@%%%%%%%***+..-.=%@@@@+:@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%%#++*##%%%%%%%@@%%%%#*##%@@@%#*#%*%##%%%%*==+#:.....#@@@@%#%@@@@@@@@@@@@@ @@@@@@@@@@@@%@@@@@@@@@@%@@@@@@@%@%####%%#*****+**+***+**##*+###%%%#---.::=*:=*%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*++=--:::......:::.:=+%%%%#+--=*=..:+#+=%@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@#*%%@@@%%*+=+=-:..........:--++***+=--..:+=:+*%%#@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%*++=::=-......--=+-*--:..-*=*=+#-*%%*@@@@@@@@@%@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@#=#@@@@@@@@@@@@@@@#*-:..............+*@@@%*##%*+@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%#%##*=*++-::..:-:..:.-=+##+=*%%@@@%*%*-:*@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*#%##@@@%%@@%@@@@@@@%###%%@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#%@@%%@@@#@@#++#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*#%@@@@@@@@@%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@transmissions11/solmate/src/tokens/ERC721.sol"; import "@transmissions11/solmate/src/auth/Owned.sol"; import "@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol"; contract LiquidityLock is Owned { // sonic address public positionManager = 0x77DcC9b09C6Ae94CDC726540735682A38e18d690; INonfungiblePositionManager public immutable uniswapV3PositionManager; uint256 public nftId; address public deployer; constructor(address _deployer) Owned(msg.sender) { uniswapV3PositionManager = INonfungiblePositionManager(positionManager); deployer = _deployer; } /// @dev Once locked, an NFT LP can never be unlocked function lockNFT(uint256 _nftId) external { require(msg.sender == deployer, "!deployer"); require(nftId == 0, "nft is already locked"); nftId = _nftId; uniswapV3PositionManager.transferFrom(deployer, address(this), _nftId); } function claimFees() external onlyOwner { uniswapV3PositionManager.collect( INonfungiblePositionManager.CollectParams({ tokenId: nftId, recipient: owner, amount0Max: type(uint128).max, amount1Max: type(uint128).max }) ); } function claimBurn() external onlyOwner { (,,,,,,, uint128 liquidity,,,,) = uniswapV3PositionManager.positions(nftId); uint128 liquidityToBurn = uint128(liquidity / 100); uniswapV3PositionManager.decreaseLiquidity( INonfungiblePositionManager.DecreaseLiquidityParams({ tokenId: nftId, liquidity: liquidityToBurn, amount0Min: 0, amount1Min: 0, deadline: block.timestamp }) ); } }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Pool state that never changes /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values interface IUniswapV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function fee() external view returns (uint24); /// @notice The pool tick spacing /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... /// This value is an int24 to avoid casting even though it is always positive. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Pool state that can change /// @notice These methods compose the pool's state, and can change with any frequency including multiple times /// per transaction interface IUniswapV3PoolState { /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas /// when accessed externally. /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value /// tick The current tick of the pool, i.e. according to the last tick transition that was run. /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick /// boundary. /// observationIndex The index of the last oracle observation that was written, /// observationCardinality The current maximum number of observations stored in the pool, /// observationCardinalityNext The next maximum number of observations, to be updated when the observation. /// feeProtocol The protocol fee for both tokens of the pool. /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0 /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee. /// unlocked Whether the pool is currently locked to reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper, /// liquidityNet how much liquidity changes when the pool price crosses the tick, /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// secondsOutside the seconds spent on the other side of the tick from the current tick, /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks(int24 tick) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return _liquidity The amount of liquidity in the position, /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions(bytes32 key) external view returns ( uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// Returns initialized whether the observation has been initialized and the values are safe to use function observations(uint256 index) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Pool state that is not stored /// @notice Contains view functions to provide information about the pool that is computed rather than stored on the /// blockchain. The functions here may have variable gas costs. interface IUniswapV3PoolDerivedState { /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, /// you must call it with secondsAgos = [3600, 0]. /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio. /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block /// timestamp function observe(uint32[] calldata secondsAgos) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s); /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed. /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first /// snapshot is taken and the second snapshot is taken. /// @param tickLower The lower tick of the range /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) external view returns ( int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside ); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface IUniswapV3PoolActions { /// @notice Sets the initial price for the pool /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96 function initialize(uint160 sqrtPriceX96) external; /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends /// on tickLower, tickUpper, the amount of liquidity, and the current price. /// @param recipient The address for which the liquidity will be created /// @param tickLower The lower tick of the position in which to add liquidity /// @param tickUpper The upper tick of the position in which to add liquidity /// @param amount The amount of liquidity to mint /// @param data Any data that should be passed through to the callback /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback function mint( address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IUniswapV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees /// @param feeProtocol0 new protocol fee for token0 of the pool /// @param feeProtocol1 new protocol fee for token1 of the pool function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external; /// @notice Collect the protocol fee accrued to the pool /// @param recipient The address to which collected protocol fees should be sent /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1 /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0 /// @return amount0 The protocol fee collected in token0 /// @return amount1 The protocol fee collected in token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface IUniswapV3PoolEvents { /// @notice Emitted exactly once by a pool when #initialize is first called on the pool /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96 /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool event Initialize(uint160 sqrtPriceX96, int24 tick); /// @notice Emitted when liquidity is minted for a given position /// @param sender The address that minted the liquidity /// @param owner The owner of the position and recipient of any minted liquidity /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity minted to the position range /// @param amount0 How much token0 was required for the minted liquidity /// @param amount1 How much token1 was required for the minted liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; pragma abicoder v2; /// @title Creates and initializes V3 Pools /// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that /// require the pool to exist. interface IPoolInitializer { /// @notice Creates a new pool if it does not exist, then initializes if not initialized /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool /// @param token0 The contract address of token0 of the pool /// @param token1 The contract address of token1 of the pool /// @param fee The fee amount of the v3 pool for the specified token pair /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary function createAndInitializePoolIfNecessary( address token0, address token1, uint24 fee, uint160 sqrtPriceX96 ) external payable returns (address pool); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; /// @title ERC721 with permit /// @notice Extension to ERC721 that includes a permit function for signature based approvals interface IERC721Permit is IERC721 { /// @notice The permit typehash used in the permit signature /// @return The typehash for the permit function PERMIT_TYPEHASH() external pure returns (bytes32); /// @notice The domain separator used in the permit signature /// @return The domain seperator used in encoding of permit signature function DOMAIN_SEPARATOR() external view returns (bytes32); /// @notice Approve of a specific token ID for spending by spender via signature /// @param spender The account that is being approved /// @param tokenId The ID of the token that is being approved for spending /// @param deadline The deadline timestamp by which the call must be mined for the approve to work /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function permit( address spender, uint256 tokenId, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external payable; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; /// @title Periphery Payments /// @notice Functions to ease deposits and withdrawals of ETH interface IPeripheryPayments { /// @notice Unwraps the contract's WETH9 balance and sends it to recipient as ETH. /// @dev The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users. /// @param amountMinimum The minimum amount of WETH9 to unwrap /// @param recipient The address receiving ETH function unwrapWETH9(uint256 amountMinimum, address recipient) external payable; /// @notice Refunds any ETH balance held by this contract to the `msg.sender` /// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps /// that use ether for the input amount function refundETH() external payable; /// @notice Transfers the full amount of a token held by this contract to recipient /// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users /// @param token The contract address of the token which will be transferred to `recipient` /// @param amountMinimum The minimum amount of token required for a transfer /// @param recipient The destination address of the token function sweepToken( address token, uint256 amountMinimum, address recipient ) external payable; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Immutable state /// @notice Functions that return immutable state of the router interface IPeripheryImmutableState { /// @return Returns the address of the Uniswap V3 factory function factory() external view returns (address); /// @return Returns the address of WETH9 function WETH9() external view returns (address); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Provides functions for deriving a pool address from the factory, tokens, and the fee library PoolAddress { bytes32 internal constant POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54; /// @notice The identifying key of the pool struct PoolKey { address token0; address token1; uint24 fee; } /// @notice Returns PoolKey: the ordered tokens with the matched fee levels /// @param tokenA The first token of a pool, unsorted /// @param tokenB The second token of a pool, unsorted /// @param fee The fee level of the pool /// @return Poolkey The pool details with ordered token0 and token1 assignments function getPoolKey(address tokenA, address tokenB, uint24 fee) internal pure returns (PoolKey memory) { if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA); return PoolKey({token0: tokenA, token1: tokenB, fee: fee}); } /// @notice Deterministically computes the pool address given the factory and PoolKey /// @param factory The Uniswap V3 factory contract address /// @param key The PoolKey /// @return pool The contract address of the V3 pool function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) { require(key.token0 < key.token1); pool = address( uint160( uint256( keccak256( abi.encodePacked( hex"ff", factory, keccak256(abi.encode(key.token0, key.token1, key.fee)), POOL_INIT_CODE_HASH ) ) ) ) ); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "from" argument. mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. success := call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data and token has code. if and(iszero(and(eq(mload(0), 1), gt(returndatasize(), 31))), success) { success := iszero(or(iszero(extcodesize(token)), returndatasize())) } } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. success := call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data and token has code. if and(iszero(and(eq(mload(0), 1), gt(returndatasize(), 31))), success) { success := iszero(or(iszero(extcodesize(token)), returndatasize())) } } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. success := call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data and token has code. if and(iszero(and(eq(mload(0), 1), gt(returndatasize(), 31))), success) { success := iszero(or(iszero(extcodesize(token)), returndatasize())) } } require(success, "APPROVE_FAILED"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal virtual { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance < type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
{ "remappings": [ "solmate/=lib/solmate/src/", "ds-test/=lib/solmate/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "v3-core/=lib/v3-core/", "@uniswap/v3-core/=lib/v3-core/", "@uniswap/v3-periphery/=lib/v3-periphery/", "@openzeppelin/[email protected]/=lib/openzeppelin-contracts/contracts/", "@transmissions11/solmate/src/=lib/solmate/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v3-periphery/=lib/v3-periphery/contracts/" ], "optimizer": { "enabled": false, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"Chaos","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkTimer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"darkToken","outputs":[{"internalType":"contract DARK","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gravityPull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"holeChecks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[{"internalType":"contract LiquidityLock","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextBlackTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"contract IUniswapV3Pool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runCollapse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newHoleCap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCheckCount","type":"uint256"}],"name":"setChecks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052346100275761001161046b565b61001961002c565b612cb66107688239612cb690f35b610032565b60405190565b5f80fd5b5f1b90565b906100475f1991610036565b9181191691161790565b90565b90565b90565b61006e61006961007392610051565b610057565b610054565b90565b90565b9061008e6100896100959261005a565b610076565b825461003b565b9055565b5f1c90565b90565b6100ad6100b291610099565b61009e565b90565b6100bf90546100a1565b90565b90565b6100d96100d46100de926100c2565b610057565b610054565b90565b634e487b7160e01b5f52601260045260245ffd5b61010161010791610054565b91610054565b908115610112570490565b6100e1565b61012b61012661013092610054565b610057565b610054565b90565b9061014861014361014f92610117565b610076565b825461003b565b9055565b90565b61016a61016561016f92610153565b610057565b610054565b90565b9061018761018261018e92610156565b610076565b825461003b565b9055565b90565b6101a96101a46101ae92610192565b610057565b610054565b90565b906101c66101c16101cd92610195565b610076565b825461003b565b9055565b906101e260018060a01b0391610036565b9181191691161790565b60018060a01b031690565b61020b610206610210926101ec565b610057565b6101ec565b90565b61021c906101f7565b90565b61022890610213565b90565b90565b9061024361023e61024a9261021f565b61022b565b82546101d1565b9055565b634e487b7160e01b5f52604160045260245ffd5b61026b906101ec565b90565b61027790610262565b9052565b61028490610054565b9052565b9160206102a99294936102a260408201965f83019061026e565b019061027b565b565b6102b361002c565b3d5f823e3d90fd5b6102c4906101f7565b90565b6102d0906102bb565b90565b90565b906102eb6102e66102f2926102c7565b6102d3565b82546101d1565b9055565b9190610309905f6020850194019061026e565b565b610314906101f7565b90565b6103209061030b565b90565b90565b9061033b61033661034292610317565b610323565b82546101d1565b9055565b60018060a01b031690565b61035d61036291610099565b610346565b90565b61036f9054610351565b90565b61037b90610213565b90565b7377dcc9b09c6ae94cdc726540735682a38e18d69090565b601f801991011690565b906103aa90610396565b810190811060018060401b038211176103c257604052565b61024e565b60e01b90565b5f80fd5b151590565b6103df816103d1565b036103e657565b5f80fd5b905051906103f7826103d6565b565b906020828203126104125761040f915f016103ea565b90565b6103cd565b73039e2fb66102314ce7b64ce5ce3e5183bc94ad3890565b610438906101f7565b90565b6104449061042f565b90565b610450906101f7565b90565b61045c90610447565b90565b61046890610213565b90565b610474336106e5565b61048a6a52b7d2dcc80cd2e40000006004610079565b6104b16104aa61049a60046100b5565b6104a460646100c5565b906100f5565b6005610133565b6104c467016345785d8a00006008610172565b6104d0600660096101b1565b6104db33600661022e565b336104e660046100b5565b906104ef61002c565b91611de083019083821060018060401b038311176106b057839261051a92611de061341e8639610288565b03905ff080156106ab5761052f9060026102d6565b3361053861002c565b9061137f820182811060018060401b038211176106a65782916105629161137f6151fe85396102f6565b03905ff080156106a157610577906003610326565b6105896105846002610365565b610372565b602063095ea7b39161059961037e565b906105b85f8019956105c36105ac61002c565b978896879586946103c7565b845260048401610288565b03925af1801561069c57610670575b506105f36105ee6105e96105e4610417565b61043b565b610453565b61045f565b602063095ea7b39161060361037e565b906106225f80199561062d61061661002c565b978896879586946103c7565b845260048401610288565b03925af1801561066b5761063f575b50565b61065f9060203d8111610664575b61065781836103a0565b8101906103f9565b61063c565b503d61064d565b6102ab565b6106909060203d8111610695575b61068881836103a0565b8101906103f9565b6105d2565b503d61067e565b6102ab565b6102ab565b61024e565b6102ab565b61024e565b90565b6106cc6106c76106d1926106b5565b610057565b6101ec565b90565b6106dd906106b8565b90565b5f0190565b6106ef815f61022e565b807fa58a6b793a0b6e42c88ec3ffe5a29303d384cd8e453ec07f936a59cef0bd80ef5561071b5f6106d4565b9061074f6107497f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09361021f565b9161021f565b9161075861002c565b80610762816106e0565b0390a356fe6080604052600436101561001d575b366108e75761001b6127fe565b005b6100275f35610136565b8063047abbc01461013157806316f0115b1461012c5780631a54a072146101275780632acfc2ca146101225780633fc8cef31461011d57806347786d371461011857806359cd60981461011357806360a3937d1461010e578063791b98bc146101095780638861670d146101045780638da5cb5b146100ff578063966dae0e146100fa578063a0c34b31146100f5578063e7441832146100f0578063f2fde38b146100eb578063f83d08ba146100e65763fa461e330361000e576108b0565b6107b8565b610717565b6106a3565b610670565b61063b565b6105e3565b610570565b61053b565b6104e3565b61049f565b610412565b610395565b61030f565b61026e565b610239565b61015e565b60e01c90565b60405190565b5f80fd5b5f80fd5b5f91031261015457565b610146565b5f0190565b3461018c5761016e36600461014a565b610176610de0565b61017e61013c565b8061018881610159565b0390f35b610142565b1c90565b60018060a01b031690565b6101b09060086101b59302610191565b610195565b90565b906101c391546101a0565b90565b6101d260015f906101b8565b90565b60018060a01b031690565b90565b6101f76101f26101fc926101d5565b6101e0565b6101d5565b90565b610208906101e3565b90565b610214906101ff565b90565b6102209061020b565b9052565b9190610237905f60208501940190610217565b565b346102695761024936600461014a565b6102656102546101c6565b61025c61013c565b91829182610224565b0390f35b610142565b3461029c5761027e36600461014a565b610286611d27565b61028e61013c565b8061029881610159565b0390f35b610142565b60018060a01b031690565b6102bc9060086102c19302610191565b6102a1565b90565b906102cf91546102ac565b90565b6102de60025f906102c4565b90565b6102ea906101ff565b90565b6102f6906102e1565b9052565b919061030d905f602085019401906102ed565b565b3461033f5761031f36600461014a565b61033b61032a6102d2565b61033261013c565b918291826102fa565b0390f35b610142565b73039e2fb66102314ce7b64ce5ce3e5183bc94ad3890565b610364610344565b90565b610370906101d5565b90565b61037c90610367565b9052565b9190610393905f60208501940190610373565b565b346103c5576103a536600461014a565b6103c16103b061035c565b6103b861013c565b91829182610380565b0390f35b610142565b5f80fd5b90565b6103da816103ce565b036103e157565b5f80fd5b905035906103f2826103d1565b565b9060208282031261040d5761040a915f016103e5565b90565b610146565b346104405761042a6104253660046103f4565b611dc2565b61043261013c565b8061043c81610159565b0390f35b610142565b90565b61045890600861045d9302610191565b610445565b90565b9061046b9154610448565b90565b61047a60095f90610460565b90565b610486906103ce565b9052565b919061049d905f6020850194019061047d565b565b346104cf576104af36600461014a565b6104cb6104ba61046e565b6104c261013c565b9182918261048a565b0390f35b610142565b6104e0600a5f90610460565b90565b34610513576104f336600461014a565b61050f6104fe6104d4565b61050661013c565b9182918261048a565b0390f35b610142565b7377dcc9b09c6ae94cdc726540735682a38e18d69090565b610538610518565b90565b3461056b5761054b36600461014a565b610567610556610530565b61055e61013c565b91829182610380565b0390f35b610142565b346105a05761058036600461014a565b61059c61058b611dcd565b61059361013c565b9182918261048a565b0390f35b610142565b60018060a01b031690565b6105c09060086105c59302610191565b6105a5565b90565b906105d391546105b0565b90565b6105e05f806105c8565b90565b34610613576105f336600461014a565b61060f6105fe6105d6565b61060661013c565b91829182610380565b0390f35b610142565b7356cfc796bc88c9c7e1b38c2b0af9b7120b079aef90565b610638610618565b90565b3461066b5761064b36600461014a565b610667610656610630565b61065e61013c565b91829182610380565b0390f35b610142565b3461069e576106886106833660046103f4565b611e29565b61069061013c565b8061069a81610159565b0390f35b610142565b346106d1576106b336600461014a565b6106bb6124fe565b6106c361013c565b806106cd81610159565b0390f35b610142565b6106df81610367565b036106e657565b5f80fd5b905035906106f7826106d6565b565b906020828203126107125761070f915f016106ea565b90565b610146565b346107455761072f61072a3660046106f9565b61258e565b61073761013c565b8061074181610159565b0390f35b610142565b60018060a01b031690565b61076590600861076a9302610191565b61074a565b90565b906107789154610755565b90565b61078760035f9061076d565b90565b610793906101ff565b90565b61079f9061078a565b9052565b91906107b6905f60208501940190610796565b565b346107e8576107c836600461014a565b6107e46107d361077b565b6107db61013c565b918291826107a3565b0390f35b610142565b90565b6107f9816107ed565b0361080057565b5f80fd5b90503590610811826107f0565b565b5f80fd5b5f80fd5b5f80fd5b909182601f830112156108595781359167ffffffffffffffff831161085457602001926001830284011161084f57565b61081b565b610817565b610813565b916060838303126108ab57610875825f8501610804565b926108838360208301610804565b92604082013567ffffffffffffffff81116108a6576108a2920161081f565b9091565b6103ca565b610146565b346108e2576108cc6108c336600461085e565b9291909161265f565b6108d461013c565b806108de81610159565b0390f35b610142565b5f80fd5b5f1c90565b6108fc610901916108eb565b61074a565b90565b61090e90546108f0565b90565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b9061093d90610915565b810190811067ffffffffffffffff82111761095757604052565b61091f565b60e01b90565b9050519061096f826103d1565b565b9060208282031261098a57610987915f01610962565b90565b610146565b61099761013c565b3d5f823e3d90fd5b90565b6109b66109b16109bb9261099f565b6101e0565b6103ce565b90565b6109ca6109cf916108eb565b610195565b90565b6109dc90546109be565b90565b6109f36109ee6109f89261099f565b6101e0565b6101d5565b90565b610a04906109df565b90565b610a10906101e3565b90565b610a1c90610a07565b90565b610a28906101ff565b90565b610a37610a3c916108eb565b6102a1565b90565b610a499054610a2b565b90565b90565b62ffffff1690565b610a6b610a66610a7092610a4c565b6101e0565b610a4f565b90565b610a7e612710610a57565b90565b90505190610a8e826106d6565b565b90602082820312610aa957610aa6915f01610a81565b90565b610146565b610ab790610a4f565b9052565b604090610ae4610aeb9496959396610ada60608401985f850190610373565b6020830190610373565b0190610aae565b565b610af6906101e3565b90565b610b0290610aed565b90565b5f1b90565b90610b1b60018060a01b0391610b05565b9181191691161790565b610b2e90610aed565b90565b90565b90610b49610b44610b5092610b25565b610b31565b8254610b0a565b9055565b151590565b610b6281610b54565b03610b6957565b5f80fd5b90505190610b7a82610b59565b565b90602082820312610b9557610b92915f01610b6d565b90565b610146565b916020610bbb929493610bb460408201965f830190610373565b019061047d565b565b610bc6906101e3565b90565b610bd290610bbd565b90565b610bde906101e3565b90565b610bea90610bd5565b90565b610bf6906101ff565b90565b15610c0057565b5f80fd5b610c0d906101ff565b90565b90565b90610c28610c23610c2f92610c04565b610c10565b8254610b0a565b9055565b610c3c906101ff565b90565b5f90565b5f90565b6001610c5391016103ce565b90565b610c62610c67916108eb565b610445565b90565b610c749054610c56565b90565b90565b610c8e610c89610c9392610c77565b6101e0565b6103ce565b90565b634e487b7160e01b5f52601260045260245ffd5b610cb6610cbc916103ce565b916103ce565b908115610cc7570690565b610c96565b90565b610ce3610cde610ce892610ccc565b6101e0565b6103ce565b90565b634e487b7160e01b5f52601160045260245ffd5b610d0e610d14919392936103ce565b926103ce565b8201809211610d1f57565b610ceb565b610d33610d39919392936103ce565b926103ce565b91610d458382026103ce565b928184041490151715610d5457565b610ceb565b90565b610d70610d6b610d7592610d59565b6101e0565b6103ce565b90565b610d84610d8a916103ce565b916103ce565b908115610d95570490565b610c96565b610da9610daf919392936103ce565b926103ce565b8203918211610dba57565b610ceb565b610dcb610dd0916108eb565b6105a5565b90565b610ddd9054610dbf565b90565b610e0d6020610df7610df26003610904565b61078a565b63c6bc518290610e0561013c565b93849261095c565b82528180610e1d60048201610159565b03915afa908115611890575f91611862575b50610e42610e3c5f6109a2565b916103ce565b145f14610e4b57565b610e5d610e5860016109d2565b61020b565b610e77610e71610e6c5f6109fb565b610367565b91610367565b1461159b575b610ec66020610e94610e8f6002610a3f565b6102e1565b6370a0823190610ebb610ea630610c33565b92610eaf61013c565b9586948593849361095c565b835260048301610380565b03915afa908115611596575f91611568575b5080610eec610ee65f6109a2565b916103ce565b116114dc575b610f496020610f17610f12610f0d610f08610344565b610bc9565b610be1565b610bed565b6370a0823190610f3e610f2930610c33565b92610f3261013c565b9586948593849361095c565b835260048301610380565b03915afa9081156114d7575f916114a9575b5090610f65610c3f565b50610f6e610c3f565b50610f77610c43565b50610f815f6109a2565b915b82610f9f610f99610f946009610c6a565b6103ce565b916103ce565b101561127c57610fb983610fb36002610c7a565b90610caa565b610fcb610fc55f6109a2565b916103ce565b145f1461126557610fda610344565b5b610fef84610fe96002610c7a565b90610caa565b611001610ffb5f6109a2565b916103ce565b145f146112585761101a6110156002610a3f565b6102e1565b5b61102f856110296002610c7a565b90610caa565b61104161103b5f6109a2565b916103ce565b145f1461125257825b918261105e6110585f6109a2565b916103ce565b116111dd575b50505061107b836110756002610c7a565b90610caa565b61108d6110875f6109a2565b916103ce565b145f1461114257506110ec60206110ba6110b56110b06110ab610344565b610bc9565b610be1565b610bed565b6370a08231906110e16110cc30610c33565b926110d561013c565b9586948593849361095c565b835260048301610380565b03915afa801561113d57611109915f9161110f575b50925b610c47565b91610f83565b611130915060203d8111611136575b6111288183610933565b810190610971565b5f611101565b503d61111e565b61098f565b91905061118e602061115c6111576002610a3f565b6102e1565b6370a082319061118361116e30610c33565b9261117761013c565b9586948593849361095c565b835260048301610380565b03915afa80156111d857611109915f916111aa575b5091611104565b6111cb915060203d81116111d1575b6111c38183610933565b810190610971565b5f6111a3565b503d6111b9565b61098f565b61124161121461120461124a956111fe8a6111f86001610ccf565b90610cff565b90610d24565b61120e600a610d5c565b90610d24565b61123b61122b896112256002610c7a565b90610cff565b611235600a610d5c565b90610d24565b90610d78565b90919091612b42565b5f8080611064565b8361104a565b611260610344565b61101b565b6112776112726002610a3f565b6102e1565b610fdb565b5050506112c860206112966112916002610a3f565b6102e1565b6370a08231906112bd6112a830610c33565b926112b161013c565b9586948593849361095c565b835260048301610380565b03915afa80156114a457611300915f91611476575b506112f06112eb6002610a3f565b6102e1565b906112f9610344565b9091612b42565b611357602061132561132061131b611316610344565b610bc9565b610be1565b610bed565b6370a082319061134c61133730610c33565b9261134061013c565b9586948593849361095c565b835260048301610380565b03915afa908115611471575f91611443575b508061138661138061137b6008610c6a565b6103ce565b916103ce565b1161138f575b50565b6113a39061139d6008610c6a565b90610d9a565b60206113c56113c06113bb6113b6610344565b610bc9565b610be1565b610bed565b9163a9059cbb926113f35f6113da6006610dd3565b93956113fe6113e761013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561143e57611412575b61138c565b6114329060203d8111611437575b61142a8183610933565b810190610b7c565b61140d565b503d611420565b61098f565b611464915060203d811161146a575b61145c8183610933565b810190610971565b5f611369565b503d611452565b61098f565b611497915060203d811161149d575b61148f8183610933565b810190610971565b5f6112dd565b503d611485565b61098f565b6114ca915060203d81116114d0575b6114c28183610933565b810190610971565b5f610f5b565b503d6114b8565b61098f565b6114ee6114e96002610a3f565b6102e1565b602063a9059cbb9161dead906115175f869561152261150b61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561156357611537575b50610ef2565b6115579060203d811161155c575b61154f8183610933565b810190610b7c565b611531565b503d611545565b61098f565b611589915060203d811161158f575b6115818183610933565b810190610971565b5f610ed8565b503d611577565b61098f565b6115b36115ae6115a9610618565b610a13565b610a1f565b6020631698ee82916115c3610344565b906115f96115d96115d46002610a3f565b6102e1565b946116046115e5610a73565b6115ed61013c565b9788968795869561095c565b855260048501610abb565b03915afa90811561185d5761162b91611624915f9161182f575b50610af9565b6001610b34565b61163d6116386002610a3f565b6102e1565b602063095ea7b39161165761165260016109d2565b61020b565b906116765f80199561168161166a61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561182a576117fe575b506116b16116ac6116a76116a2610344565b610bc9565b610be1565b610bed565b602063095ea7b3916116cb6116c660016109d2565b61020b565b906116ea5f8019956116f56116de61013c565b9788968795869461095c565b845260048401610b9a565b03925af180156117f9576117cd575b5061173b61171a61171560016109d2565b61020b565b61173461172e6117295f6109fb565b610367565b91610367565b1415610bf9565b611768602061175261174d60016109d2565b61020b565b630dfe16819061176061013c565b93849261095c565b8252818061177860048201610159565b03915afa80156117c857611795915f9161179a575b506007610c13565b610e7d565b6117bb915060203d81116117c1575b6117b38183610933565b810190610a90565b5f61178d565b503d6117a9565b61098f565b6117ed9060203d81116117f2575b6117e58183610933565b810190610b7c565b611704565b503d6117db565b61098f565b61181e9060203d8111611823575b6118168183610933565b810190610b7c565b611690565b503d61180c565b61098f565b611850915060203d8111611856575b6118488183610933565b810190610a90565b5f61161e565b503d61183e565b61098f565b611883915060203d8111611889575b61187b8183610933565b810190610971565b5f610e2f565b503d611871565b61098f565b60209181520190565b5f7f554e415554484f52495a45440000000000000000000000000000000000000000910152565b6118d2600c602092611895565b6118db8161189e565b0190565b6118f49060208101905f8183039101526118c5565b90565b156118fe57565b61190661013c565b62461bcd60e51b81528061191c600482016118df565b0390fd5b6119443361193e6119386119335f610dd3565b610367565b91610367565b146118f7565b61194c61195d565b565b5f91031261195857565b610146565b6119b4602061198261197d611978611973610344565b610bc9565b610be1565b610bed565b6370a08231906119a961199430610c33565b9261199d61013c565b9586948593849361095c565b835260048301610380565b03915afa908115611d22575f91611cf4575b506119d96119d46003610904565b61078a565b63d294f09390803b15611cef576119fc915f916119f461013c565b93849261095c565b8252818381611a0d60048201610159565b03925af18015611cea57611cbe575b50611a746020611a42611a3d611a38611a33610344565b610bc9565b610be1565b610bed565b6370a0823190611a69611a5430610c33565b92611a5d61013c565b9586948593849361095c565b835260048301610380565b03915afa8015611cb957611ad1915f91611c8b575b50916020611a9f611a9a6002610a3f565b6102e1565b6370a0823190611ac6611ab130610c33565b92611aba61013c565b9687948593849361095c565b835260048301610380565b03915afa8015611c8657611aed925f91611c58575b5092610d9a565b80611b00611afa5f6109a2565b916103ce565b118015611c3e575b611b11575b5050565b6020611b33611b2e611b29611b24610344565b610bc9565b610be1565b610bed565b9163a9059cbb92611b605f611b4781610dd3565b9395611b6b611b5461013c565b9788968795869461095c565b845260048401610b9a565b03925af18015611c3957611c0d575b506020611b8f611b8a6002610a3f565b6102e1565b9163a9059cbb92611bbc5f611ba381610dd3565b9395611bc7611bb061013c565b9788968795869461095c565b845260048401610b9a565b03925af18015611c0857611bdc575b80611b0d565b611bfc9060203d8111611c01575b611bf48183610933565b810190610b7c565b611bd6565b503d611bea565b61098f565b611c2d9060203d8111611c32575b611c258183610933565b810190610b7c565b611b7a565b503d611c1b565b61098f565b5081611c52611c4c5f6109a2565b916103ce565b11611b08565b611c79915060203d8111611c7f575b611c718183610933565b810190610971565b5f611ae6565b503d611c67565b61098f565b611cac915060203d8111611cb2575b611ca48183610933565b810190610971565b5f611a89565b503d611c9a565b61098f565b611cdd905f3d8111611ce3575b611cd58183610933565b81019061194e565b5f611a1c565b503d611ccb565b61098f565b610911565b611d15915060203d8111611d1b575b611d0d8183610933565b810190610971565b5f6119c6565b503d611d03565b61098f565b611d2f611920565b565b611d5e90611d5933611d53611d4d611d485f610dd3565b610367565b91610367565b146118f7565b611db5565b565b90611d6c5f1991610b05565b9181191691161790565b611d8a611d85611d8f926103ce565b6101e0565b6103ce565b90565b90565b90611daa611da5611db192611d76565b611d92565b8254611d60565b9055565b611dc0906008611d95565b565b611dcb90611d31565b565b611dd5610c43565b50611dea611de3600a610c6a565b4290610d9a565b90565b611e1a90611e1533611e0f611e09611e045f610dd3565b610367565b91610367565b146118f7565b611e1c565b565b611e27906009611d95565b565b611e3290611ded565b565b611e5833611e52611e4c611e475f610dd3565b610367565b91610367565b146118f7565b611e60611f5f565b565b90565b611e79611e74611e7e92611e62565b6101e0565b6103ce565b90565b90565b611e98611e93611e9d92611e81565b6101e0565b6103ce565b90565b90565b611eb7611eb2611ebc92611ea0565b6101e0565b6103ce565b90565b90565b611ed6611ed1611edb92611ebf565b6101e0565b6103ce565b90565b5f7f4461726b20696e74657276616c20686173206e6f742070617373656420796574910152565b611f1160208092611895565b611f1a81611ede565b0190565b611f339060208101905f818303910152611f05565b90565b15611f3d57565b611f4561013c565b62461bcd60e51b815280611f5b60048201611f1e565b0390fd5b611f6a61a8c0611e65565b611fad6020611f81611f7c6002610a3f565b6102e1565b6370a0823190611fa261dead92611f9661013c565b9586948593849361095c565b835260048301610380565b03915afa80156124f957611fd3915f916124cb575b50611fcd6005610c6a565b90610d78565b80611fe7611fe16005611e84565b916103ce565b10156124af575b612001611ffb6032611ec2565b916103ce565b1015612495575b61202e4261202761202161201c600a610c6a565b6103ce565b916103ce565b1015611f36565b612085602061205361204e612049612044610344565b610bc9565b610be1565b610bed565b6370a082319061207a61206530610c33565b9261206e61013c565b9586948593849361095c565b835260048301610380565b03915afa908115612490575f91612462575b50906120ab6120a66003610904565b61078a565b638ca8ecd190803b1561245d576120ce915f916120c661013c565b93849261095c565b82528183816120df60048201610159565b03925af180156124585761242c575b506121016120fc6003610904565b61078a565b9063d294f09391803b1561242757612125925f9161211d61013c565b94859261095c565b825281838161213660048201610159565b03925af19081156124225761215c92612155926123f6575b5042610cff565b600a611d95565b6121a5602061217361216e6002610a3f565b6102e1565b6370a082319061219a61218530610c33565b9261218e61013c565b9586948593849361095c565b835260048301610380565b03915afa80156123f157612210915f916123c3575b509160206121de6121d96121d46121cf610344565b610bc9565b610be1565b610bed565b6370a08231906122056121f030610c33565b926121f961013c565b9687948593849361095c565b835260048301610380565b03915afa80156123be5761222b925f91612390575b50610d9a565b8061223e6122385f6109a2565b916103ce565b118015612376575b61224f575b5050565b602061227161226c612267612262610344565b610bc9565b610be1565b610bed565b9163a9059cbb9261229e5f61228581610dd3565b93956122a961229261013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561237157612345575b5060206122cd6122c86002610a3f565b6102e1565b9163a9059cbb926122f45f61dead93956122ff6122e861013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561234057612314575b8061224b565b6123349060203d8111612339575b61232c8183610933565b810190610b7c565b61230e565b503d612322565b61098f565b6123659060203d811161236a575b61235d8183610933565b810190610b7c565b6122b8565b503d612353565b61098f565b508161238a6123845f6109a2565b916103ce565b11612246565b6123b1915060203d81116123b7575b6123a98183610933565b810190610971565b5f612225565b503d61239f565b61098f565b6123e4915060203d81116123ea575b6123dc8183610933565b810190610971565b5f6121ba565b503d6123d2565b61098f565b612415905f3d811161241b575b61240d8183610933565b81019061194e565b5f61214e565b503d612403565b61098f565b610911565b61244b905f3d8111612451575b6124438183610933565b81019061194e565b5f6120ee565b503d612439565b61098f565b610911565b612483915060203d8111612489575b61247b8183610933565b810190610971565b5f612097565b503d612471565b61098f565b6124aa906124a461a8c0611e65565b90610cff565b612008565b906124c5906124bf615460611ea3565b90610cff565b90611fee565b6124ec915060203d81116124f2575b6124e48183610933565b810190610971565b5f611fc2565b503d6124da565b61098f565b612506611e34565b565b612535906125303361252a61252461251f5f610dd3565b610367565b91610367565b146118f7565b612537565b565b612541815f610c13565b33906125766125707f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610c04565b91610c04565b9161257f61013c565b8061258981610159565b0390a3565b61259790612508565b565b5f7f6e6f7420617574686f72697a6564000000000000000000000000000000000000910152565b6125cd600e602092611895565b6125d681612599565b0190565b6125ef9060208101905f8183039101526125c0565b90565b156125f957565b61260161013c565b62461bcd60e51b815280612617600482016125da565b0390fd5b5090565b61263361262e612638926107ed565b6101e0565b6103ce565b90565b612644906101e3565b90565b6126509061263b565b90565b61265c906101ff565b90565b6126ee906126a76126f393956020953361269261268c61268761268260016109d2565b61020b565b610367565b91610367565b14806127d6575b6126a2906125f2565b61261b565b6126b96126b35f6109a2565b916103ce565b1194855f14612787576126cc6007610dd3565b5b956126d6610c43565b505f1461277757506126e79061261f565b935b612647565b612653565b9163a9059cbb926127295f61271061270b60016109d2565b61020b565b939561273461271d61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561277257612746575b50565b6127669060203d811161276b575b61275e8183610933565b810190610b7c565b612743565b503d612754565b61098f565b612781915061261f565b936126e9565b6127916007610dd3565b6127aa6127a461279f610344565b610367565b91610367565b145f146127c9576127c36127be6002610a3f565b6102e1565b5b6126cd565b6127d1610344565b6127c4565b506126a2326127f56127ef6127ea30610c33565b610367565b91610367565b14159050612699565b61281e61281961281461280f610344565b610bc9565b610be1565b610bed565b63d0e30db0349190813b15612897575f916128459161283b61013c565b948593849261095c565b82528161285460048201610159565b03925af1801561289257612866575b50565b612885905f3d811161288b575b61287d8183610933565b81019061194e565b5f612863565b503d612873565b61098f565b610911565b90565b6128b36128ae6128b89261289c565b6101e0565b6101d5565b90565b6128d873fffd8963efd1fc6a506488495d951d5263988d2661289f565b90565b6128ef6128ea6128f492610ccc565b6101e0565b6101d5565b90565b612903612909916101d5565b916101d5565b90039060018060a01b03821161291b57565b610ceb565b90565b61293761293261293c92612920565b6101e0565b6101d5565b90565b61294d6401000276a3612923565b90565b61295c612962916101d5565b916101d5565b019060018060a01b03821161297357565b610ceb565b61298c612987612991926103ce565b6101e0565b6107ed565b90565b906129a76129a061013c565b9283610933565b565b67ffffffffffffffff81116129c7576129c3602091610915565b0190565b61091f565b906129de6129d9836129a9565b612994565b918252565b6129ec5f6129cc565b90565b6129f76129e3565b90565b5f7f3100000000000000000000000000000000000000000000000000000000000000910152565b612a2b60016129cc565b90612a38602083016129fa565b565b612a42612a21565b90565b90505190612a52826107f0565b565b9190604083820312612a7c5780612a70612a79925f8601612a45565b93602001612a45565b90565b610146565b612a8a90610b54565b9052565b612a97906107ed565b9052565b612aa4906101d5565b9052565b5190565b60209181520190565b90825f9392825e0152565b612adf612ae8602093612aed93612ad681612aa8565b93848093612aac565b95869101612ab5565b610915565b0190565b9193612b28612b3f9694612b1e612b329497612b1460a08801995f890190610373565b6020870190612a81565b6040850190612a8e565b6060830190612a9b565b6080818403910152612ac0565b90565b9082612b56612b505f6109a2565b916103ce565b14612c7b57612b70612b6a60409392610367565b91610367565b10805f14612c5b57612b93612b8361293f565b612b8d60016128db565b90612950565b5b612bee5f612baa612ba560016109d2565b61020b565b92612bf963128acb0891612bbd30610c33565b96612bc8819a612978565b91908514612c4d57612bd8612a3a565b915b612be261013c565b9a8b998a98899761095c565b875260048701612af1565b03925af19081612c20575b50155f14612c1b576001612c16575b5b565b612c13565b612c14565b612c409060403d8111612c46575b612c388183610933565b810190612a54565b50612c04565b503d612c2e565b612c556129ef565b91612bda565b612c76612c666128bb565b612c7060016128db565b906128f7565b612b94565b50505056fea2646970667358221220a7228e78f9dd2d026f85307c076878a4360b0f83558bcd43269142dd6d0fb1b864736f6c634300081a00336080604052346100305761001a61001461012a565b906103d4565b610022610035565b611357610a89823961135790f35b61003b565b60405190565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b906100679061003f565b810190811060018060401b0382111761007f57604052565b610049565b90610097610090610035565b928361005d565b565b5f80fd5b60018060a01b031690565b6100b19061009d565b90565b6100bd816100a8565b036100c457565b5f80fd5b905051906100d5826100b4565b565b90565b6100e3816100d7565b036100ea57565b5f80fd5b905051906100fb826100da565b565b91906040838203126101255780610119610122925f86016100c8565b936020016100ee565b90565b610099565b610148611de08038038061013d81610084565b9283398101906100fd565b9091565b60018060401b0381116101685761016460209161003f565b0190565b610049565b9061017f61017a8361014c565b610084565b918252565b5f7f4441524b484f4c45000000000000000000000000000000000000000000000000910152565b6101b5600861016d565b906101c260208301610184565b565b6101cc6101ab565b90565b5f7f4441524b00000000000000000000000000000000000000000000000000000000910152565b610200600461016d565b9061020d602083016101cf565b565b6102176101f6565b90565b5f1b90565b9061022b60ff9161021a565b9181191691161790565b151590565b61024390610235565b90565b90565b9061025e6102596102659261023a565b610246565b825461021f565b9055565b90565b61028061027b6102859261009d565b610269565b61009d565b90565b6102919061026c565b90565b61029d90610288565b90565b906102aa90610294565b5f5260205260405f2090565b6102bf90610288565b90565b90565b6102d96102d46102de926102c2565b610269565b6100d7565b90565b634e487b7160e01b5f52601160045260245ffd5b61030461030a919392936100d7565b926100d7565b916103168382026100d7565b92818404149015171561032557565b6102e1565b90565b61034161033c6103469261032a565b610269565b6100d7565b90565b634e487b7160e01b5f52601260045260245ffd5b61036961036f916100d7565b916100d7565b90811561037a570490565b610349565b9061038b5f199161021a565b9181191691161790565b6103a96103a46103ae926100d7565b610269565b6100d7565b90565b90565b906103c96103c46103d092610395565b6103b1565b825461037f565b9055565b9061047e916103f3816103e56101c4565b6103ed61020f565b916104ee565b6103fe5f6008610249565b610414600161040f600684906102a0565b610249565b610432600161042d6006610427306102b6565b906102a0565b610249565b6104486001610443600633906102a0565b610249565b6104796104726104628461045c60026102c5565b906102f5565b61046c606461032d565b9061035d565b60076103b4565b6107e7565b565b9061049160018060a01b039161021a565b9181191691161790565b90565b906104b36104ae6104ba92610294565b61049b565b8254610480565b9055565b90565b6104d56104d06104da926104be565b610269565b61009d565b90565b6104e6906104c1565b90565b5f0190565b916104f8916107ad565b61050381600561049e565b807fa58a6b793a0b6e42c88ec3ffe5a29303d384cd8e453ec07f936a59cef0bd80ef5561052f5f6104dd565b9061056361055d7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610294565b91610294565b9161056c610035565b80610576816104e9565b0390a3565b5190565b634e487b7160e01b5f52602260045260245ffd5b90600160028304921680156105b3575b60208310146105ae57565b61057f565b91607f16916105a3565b5f5260205f2090565b601f602091010490565b1b90565b919060086105ef9102916105e95f19846105d0565b926105d0565b9181191691161790565b919061060f61060a61061793610395565b6103b1565b9083546105d4565b9055565b5f90565b6106319161062b61061b565b916105f9565b565b5b81811061063f575050565b8061064c5f60019361061f565b01610634565b9190601f8111610662575b505050565b61066e610693936105bd565b90602061067a846105c6565b8301931061069b575b61068c906105c6565b0190610633565b5f808061065d565b915061068c81929050610683565b1c90565b906106bd905f19906008026106a9565b191690565b816106cc916106ad565b906002021790565b906106de8161057b565b9060018060401b03821161079c57610700826106fa8554610593565b85610652565b602090601f831160011461073457918091610723935f92610728575b50506106c2565b90555b565b90915001515f8061071c565b601f19831691610743856105bd565b925f5b8181106107845750916002939185600196941061076a575b50505002019055610726565b61077a910151601f8416906106ad565b90555f808061075e565b91936020600181928787015181550195019201610746565b610049565b906107ab916106d4565b565b906107bc6107c39260036107a1565b60046107a1565b565b6107ce906100a8565b9052565b91906107e5905f602085019401906107c5565b565b806108026107fc6107f75f6104dd565b6100a8565b916100a8565b1461081e5761081c916108145f6104dd565b919091610919565b565b61084161082a5f6104dd565b5f91829163ec442f0560e01b8352600483016107d2565b0390fd5b9061084f90610294565b5f5260205260405f2090565b5f1c90565b90565b61086f6108749161085b565b610860565b90565b6108819054610863565b90565b61088d906100d7565b9052565b6040906108ba6108c194969593966108b060608401985f8501906107c5565b6020830190610884565b0190610884565b565b906108ce91036100d7565b90565b6108e06108e6919392936100d7565b926100d7565b82018092116108f157565b6102e1565b9061090191016100d7565b90565b9190610917905f60208501940190610884565b565b9190918061093761093161092c5f6104dd565b6100a8565b916100a8565b145f14610a185761095b6109548361094f6002610877565b6108d1565b60026103b4565b5b8261097761097161096c5f6104dd565b6100a8565b916100a8565b145f146109ec5761099b6109948361098f6002610877565b6108c3565b60026103b4565b5b9190916109e76109d56109cf7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef93610294565b93610294565b936109de610035565b91829182610904565b0390a3565b610a1382610a0d6109fe5f8790610845565b91610a0883610877565b6108f6565b906103b4565b61099c565b610a2b610a265f8390610845565b610877565b80610a3e610a38856100d7565b916100d7565b10610a6657610a51610a619184906108c3565b610a5c5f8490610845565b6103b4565b61095c565b90610a849091925f93849363391434e360e21b855260048501610891565b0390fdfe60806040526004361015610013575b6107bf565b61001d5f3561011c565b806306fdde0314610117578063095ea7b31461011257806318160ddd1461010d5780631d6f96551461010857806323b872dd14610103578063313ce567146100fe57806370a08231146100f9578063715018a6146100f45780638da5cb5b146100ef57806395d89b41146100ea578063a9059cbb146100e5578063ad5dff73146100e0578063c3f70b52146100db578063db05e5cb146100d6578063dd62ed3e146100d15763f2fde38b0361000e5761078c565b610756565b6106f6565b6106c1565b610654565b6105b8565b610583565b61054e565b6104b9565b61047f565b61042c565b6103ce565b61035f565b6102eb565b610293565b6101aa565b60e01c90565b60405190565b5f80fd5b5f80fd5b5f91031261013a57565b61012c565b5190565b60209181520190565b90825f9392825e0152565b601f801991011690565b61018061018960209361018e936101778161013f565b93848093610143565b9586910161014c565b610157565b0190565b6101a79160208201915f818403910152610161565b90565b346101da576101ba366004610130565b6101d66101c561091c565b6101cd610122565b91829182610192565b0390f35b610128565b60018060a01b031690565b6101f3906101df565b90565b6101ff816101ea565b0361020657565b5f80fd5b90503590610217826101f6565b565b90565b61022581610219565b0361022c57565b5f80fd5b9050359061023d8261021c565b565b9190604083820312610267578061025b610264925f860161020a565b93602001610230565b90565b61012c565b151590565b61027a9061026c565b9052565b9190610291905f60208501940190610271565b565b346102c4576102c06102af6102a936600461023f565b90610936565b6102b7610122565b9182918261027e565b0390f35b610128565b6102d290610219565b9052565b91906102e9905f602085019401906102c9565b565b3461031b576102fb366004610130565b610317610306610982565b61030e610122565b918291826102d6565b0390f35b610128565b1c90565b60ff1690565b61033a90600861033f9302610320565b610324565b90565b9061034d915461032a565b90565b61035c60085f90610342565b90565b3461038f5761036f366004610130565b61038b61037a610350565b610382610122565b9182918261027e565b0390f35b610128565b90916060828403126103c9576103c66103af845f850161020a565b936103bd816020860161020a565b93604001610230565b90565b61012c565b346103ff576103fb6103ea6103e4366004610394565b91610998565b6103f2610122565b9182918261027e565b0390f35b610128565b60ff1690565b61041390610404565b9052565b919061042a905f6020850194019061040a565b565b3461045c5761043c366004610130565b6104586104476109ea565b61044f610122565b91829182610417565b0390f35b610128565b9060208282031261047a57610477915f0161020a565b90565b61012c565b346104af576104ab61049a610495366004610461565b610a16565b6104a2610122565b918291826102d6565b0390f35b610128565b5f0190565b346104e7576104c9366004610130565b6104d1610b44565b6104d9610122565b806104e3816104b4565b0390f35b610128565b60018060a01b031690565b61050790600861050c9302610320565b6104ec565b90565b9061051a91546104f7565b90565b61052960055f9061050f565b90565b610535906101ea565b9052565b919061054c905f6020850194019061052c565b565b3461057e5761055e366004610130565b61057a61056961051d565b610571610122565b91829182610539565b0390f35b610128565b346105b357610593366004610130565b6105af61059e610b4e565b6105a6610122565b91829182610192565b0390f35b610128565b346105e9576105e56105d46105ce36600461023f565b90610b64565b6105dc610122565b9182918261027e565b0390f35b610128565b90565b61060561060061060a926101df565b6105ee565b6101df565b90565b610616906105f1565b90565b6106229061060d565b90565b9061062f90610619565b5f5260205260405f2090565b6106519061064c6006915f92610625565b610342565b90565b346106845761068061066f61066a366004610461565b61063b565b610677610122565b9182918261027e565b0390f35b610128565b90565b61069c9060086106a19302610320565b610689565b90565b906106af915461068c565b90565b6106be60075f906106a4565b90565b346106f1576106d1366004610130565b6106ed6106dc6106b2565b6106e4610122565b918291826102d6565b0390f35b610128565b3461072457610706366004610130565b61070e610c74565b610716610122565b80610720816104b4565b0390f35b610128565b9190604083820312610751578061074561074e925f860161020a565b9360200161020a565b90565b61012c565b346107875761078361077261076c366004610729565b90610c94565b61077a610122565b918291826102d6565b0390f35b610128565b346107ba576107a461079f366004610461565b610d82565b6107ac610122565b806107b6816104b4565b0390f35b610128565b5f80fd5b606090565b634e487b7160e01b5f52602260045260245ffd5b90600160028304921680156107fc575b60208310146107f757565b6107c8565b91607f16916107ec565b60209181520190565b5f5260205f2090565b905f929180549061083261082b836107dc565b8094610806565b916001811690815f14610889575060011461084d575b505050565b61085a919293945061080f565b915f925b81841061087157505001905f8080610848565b6001816020929593955484860152019101929061085e565b92949550505060ff19168252151560200201905f8080610848565b906108ae91610818565b90565b634e487b7160e01b5f52604160045260245ffd5b906108cf90610157565b810190811067ffffffffffffffff8211176108e957604052565b6108b1565b9061090e610907926108fe610122565b938480926108a4565b03836108c5565b565b610919906108ee565b90565b6109246107c3565b5061092f6003610910565b90565b5f90565b61095391610942610932565b5061094b610d91565b919091610d9e565b600190565b5f90565b5f1c90565b61096d6109729161095c565b610689565b90565b61097f9054610961565b90565b61098a610958565b506109956002610975565b90565b916109c2926109a5610932565b506109ba6109b1610d91565b82908491610dee565b919091610f1d565b600190565b5f90565b90565b6109e26109dd6109e7926109cb565b6105ee565b610404565b90565b6109f26109c7565b506109fd60126109ce565b90565b90610a0a90610619565b5f5260205260405f2090565b610a2c610a3191610a25610958565b505f610a00565b610975565b90565b610a40610a459161095c565b6104ec565b90565b610a529054610a34565b90565b5f7f554e415554484f52495a45440000000000000000000000000000000000000000910152565b610a89600c602092610143565b610a9281610a55565b0190565b610aab9060208101905f818303910152610a7c565b90565b15610ab557565b610abd610122565b62461bcd60e51b815280610ad360048201610a96565b0390fd5b610afc33610af6610af0610aeb6005610a48565b6101ea565b916101ea565b14610aae565b610b04610b31565b565b90565b610b1d610b18610b2292610b06565b6105ee565b6101df565b90565b610b2e90610b09565b90565b610b42610b3d5f610b25565b610d82565b565b610b4c610ad7565b565b610b566107c3565b50610b616004610910565b90565b610b8191610b70610932565b50610b79610d91565b919091610f1d565b600190565b610bab33610ba5610b9f610b9a6005610a48565b6101ea565b916101ea565b14610aae565b610bb3610c54565b565b5f1b90565b90610bc65f1991610bb5565b9181191691161790565b610be4610bdf610be992610219565b6105ee565b610219565b90565b90565b90610c04610bff610c0b92610bd0565b610bec565b8254610bba565b9055565b90610c1b60ff91610bb5565b9181191691161790565b610c2e9061026c565b90565b90565b90610c49610c44610c5092610c25565b610c31565b8254610c0f565b9055565b610c66610c5f610982565b6007610bef565b610c7260016008610c34565b565b610c7c610b86565b565b90610c8890610619565b5f5260205260405f2090565b610cb991610caf610cb492610ca7610958565b506001610c7e565b610a00565b610975565b90565b610cea90610ce533610cdf610cd9610cd46005610a48565b6101ea565b916101ea565b14610aae565b610d2a565b565b90610cfd60018060a01b0391610bb5565b9181191691161790565b90565b90610d1f610d1a610d2692610619565b610d07565b8254610cec565b9055565b610d35816005610d0a565b3390610d6a610d647f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610619565b91610619565b91610d73610122565b80610d7d816104b4565b0390a3565b610d8b90610cbc565b565b5f90565b610d99610d8d565b503390565b91610dac9291600192610fbf565b565b604090610dd7610dde9496959396610dcd60608401985f85019061052c565b60208301906102c9565b01906102c9565b565b90610deb9103610219565b90565b929192610dfc818390610c94565b9081610e11610e0b5f19610219565b91610219565b10610e1e575b5050509050565b81610e31610e2b87610219565b91610219565b10610e5757610e4e9394610e46919392610de0565b905f92610fbf565b805f8080610e17565b50610e76849291925f938493637dc7a0d960e11b855260048501610dae565b0390fd5b610e86610e8b9161095c565b610324565b90565b610e989054610e7a565b90565b5f7f45786365656473204d61785478204c696d697400000000000000000000000000910152565b610ecf6013602092610143565b610ed881610e9b565b0190565b610ef19060208101905f818303910152610ec2565b90565b15610efb57565b610f03610122565b62461bcd60e51b815280610f1960048201610edc565b0390fd5b91610f4292610f35610f2f6008610e8e565b1561026c565b610f44575b9190916110ce565b565b610f61610f5b610f5660068490610625565b610e8e565b1561026c565b80610f9c575b610f71575b610f3a565b610f9782610f90610f8a610f856007610975565b610219565b91610219565b1115610ef4565b610f6c565b50610fba610fb4610faf60068690610625565b610e8e565b1561026c565b610f67565b909281610fdc610fd6610fd15f610b25565b6101ea565b916101ea565b146110a75783610ffc610ff6610ff15f610b25565b6101ea565b916101ea565b14611080576110208361101b61101460018690610c7e565b8790610a00565b610bef565b61102a575b505050565b91909161107561106361105d7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92593610619565b93610619565b9361106c610122565b918291826102d6565b0390a35f8080611025565b6110a361108c5f610b25565b5f918291634a1406b160e11b835260048301610539565b0390fd5b6110ca6110b35f610b25565b5f91829163e602df0560e01b835260048301610539565b0390fd5b91826110ea6110e46110df5f610b25565b6101ea565b916101ea565b14611144578161110a6111046110ff5f610b25565b6101ea565b916101ea565b1461111d5761111b929190916111b2565b565b6111406111295f610b25565b5f91829163ec442f0560e01b835260048301610539565b0390fd5b6111676111505f610b25565b5f918291634b637e8f60e11b835260048301610539565b0390fd5b634e487b7160e01b5f52601160045260245ffd5b61118e61119491939293610219565b92610219565b820180921161119f57565b61116b565b906111af9101610219565b90565b919091806111d06111ca6111c55f610b25565b6101ea565b916101ea565b145f146112b1576111f46111ed836111e86002610975565b61117f565b6002610bef565b5b8261121061120a6112055f610b25565b6101ea565b916101ea565b145f146112855761123461122d836112286002610975565b610de0565b6002610bef565b5b91909161128061126e6112687fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef93610619565b93610619565b93611277610122565b918291826102d6565b0390a3565b6112ac826112a66112975f8790610a00565b916112a183610975565b6111a4565b90610bef565b611235565b6112c46112bf5f8390610a00565b610975565b806112d76112d185610219565b91610219565b106112ff576112ea6112fa918490610de0565b6112f55f8490610a00565b610bef565b6111f5565b9061131d9091925f93849363391434e360e21b855260048501610dae565b0390fdfea264697066735822122046621bf5c07670b04cc763a202cae609fd5d40003eb18c6f402fedb37c3490fa64736f6c634300081a003360a06040523461005457610019610014610119565b6101fd565b610021610059565b6110856102fa823960805181818161014d0152818161077701528181610bce01528181610c5d0152610e6b015261108590f35b61005f565b60405190565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b9061008b90610063565b810190811060018060401b038211176100a357604052565b61006d565b906100bb6100b4610059565b9283610081565b565b5f80fd5b60018060a01b031690565b6100d5906100c1565b90565b6100e1816100cc565b036100e857565b5f80fd5b905051906100f9826100d8565b565b9060208282031261011457610111915f016100ec565b90565b6100bd565b61013761137f8038038061012c816100a8565b9283398101906100fb565b90565b5f1b90565b9061015060018060a01b039161013a565b9181191691161790565b90565b61017161016c610176926100c1565b61015a565b6100c1565b90565b6101829061015d565b90565b61018e90610179565b90565b90565b906101a96101a46101b092610185565b610191565b825461013f565b9055565b5f1c90565b60018060a01b031690565b6101d06101d5916101b4565b6101b9565b90565b6101e290546101c4565b90565b6101ee9061015d565b90565b6101fa906101e5565b90565b6102459061020a33610277565b6102297377dcc9b09c6ae94cdc726540735682a38e18d6906001610194565b61023b61023660016101d8565b6101f1565b6080526003610194565b565b90565b61025e61025961026392610247565b61015a565b6100c1565b90565b61026f9061024a565b90565b5f0190565b610281815f610194565b807fa58a6b793a0b6e42c88ec3ffe5a29303d384cd8e453ec07f936a59cef0bd80ef556102ad5f610266565b906102e16102db7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610185565b91610185565b916102ea610059565b806102f481610272565b0390a356fe60806040526004361015610013575b61049e565b61001d5f356100ac565b80632b7170d0146100a7578063342a30c3146100a2578063791b98bc1461009d5780638ca8ecd1146100985780638da5cb5b14610093578063c6bc51821461008e578063d294f09314610089578063d5f39488146100845763f2fde38b0361000e5761046b565b6103f5565b6103b3565b61037e565b6102ef565b6102af565b61027a565b6101d3565b610109565b60e01c90565b60405190565b5f80fd5b5f80fd5b90565b6100cc816100c0565b036100d357565b5f80fd5b905035906100e4826100c3565b565b906020828203126100ff576100fc915f016100d7565b90565b6100bc565b5f0190565b346101375761012161011c3660046100e6565b61071d565b6101296100b2565b8061013381610104565b0390f35b6100b8565b5f91031261014657565b6100bc565b7f000000000000000000000000000000000000000000000000000000000000000090565b60018060a01b031690565b90565b61019161018c6101969261016f565b61017a565b61016f565b90565b6101a29061017d565b90565b6101ae90610199565b90565b6101ba906101a5565b9052565b91906101d1905f602085019401906101b1565b565b34610203576101e336600461013c565b6101ff6101ee61014b565b6101f66100b2565b918291826101be565b0390f35b6100b8565b1c90565b60018060a01b031690565b61022790600861022c9302610208565b61020c565b90565b9061023a9154610217565b90565b61024960015f9061022f565b90565b6102559061016f565b90565b6102619061024c565b9052565b9190610278905f60208501940190610258565b565b346102aa5761028a36600461013c565b6102a661029561023d565b61029d6100b2565b91829182610265565b0390f35b6100b8565b346102dd576102bf36600461013c565b6102c7610da4565b6102cf6100b2565b806102d981610104565b0390f35b6100b8565b6102ec5f8061022f565b90565b3461031f576102ff36600461013c565b61031b61030a6102e2565b6103126100b2565b91829182610265565b0390f35b6100b8565b90565b61033790600861033c9302610208565b610324565b90565b9061034a9154610327565b90565b61035960025f9061033f565b90565b610365906100c0565b9052565b919061037c905f6020850194019061035c565b565b346103ae5761038e36600461013c565b6103aa61039961034d565b6103a16100b2565b91829182610369565b0390f35b6100b8565b346103e1576103c336600461013c565b6103cb610f6a565b6103d36100b2565b806103dd81610104565b0390f35b6100b8565b6103f260035f9061022f565b90565b346104255761040536600461013c565b6104216104106103e6565b6104186100b2565b91829182610265565b0390f35b6100b8565b6104338161024c565b0361043a57565b5f80fd5b9050359061044b8261042a565b565b9060208282031261046657610463915f0161043e565b90565b6100bc565b346104995761048361047e36600461044d565b611044565b61048b6100b2565b8061049581610104565b0390f35b6100b8565b5f80fd5b5f1c90565b6104b36104b8916104a2565b61020c565b90565b6104c590546104a7565b90565b60209181520190565b5f7f216465706c6f7965720000000000000000000000000000000000000000000000910152565b61050560096020926104c8565b61050e816104d1565b0190565b6105279060208101905f8183039101526104f8565b90565b1561053157565b6105396100b2565b62461bcd60e51b81528061054f60048201610512565b0390fd5b61055f610564916104a2565b610324565b90565b6105719054610553565b90565b90565b61058b61058661059092610574565b61017a565b6100c0565b90565b5f7f6e667420697320616c7265616479206c6f636b65640000000000000000000000910152565b6105c760156020926104c8565b6105d081610593565b0190565b6105e99060208101905f8183039101526105ba565b90565b156105f357565b6105fb6100b2565b62461bcd60e51b815280610611600482016105d4565b0390fd5b5f1b90565b906106265f1991610615565b9181191691161790565b61064461063f610649926100c0565b61017a565b6100c0565b90565b90565b9061066461065f61066b92610630565b61064c565b825461061a565b9055565b61067890610199565b90565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b906106a79061067f565b810190811067ffffffffffffffff8211176106c157604052565b610689565b60e01b90565b5f9103126106d657565b6100bc565b60409061070461070b94969593966106fa60608401985f850190610258565b6020830190610258565b019061035c565b565b6107156100b2565b3d5f823e3d90fd5b6107423361073c61073661073160036104bb565b61024c565b9161024c565b1461052a565b61076761074f6002610567565b61076161075b5f610577565b916100c0565b146105ec565b61077281600261064f565b61079b7f00000000000000000000000000000000000000000000000000000000000000006101a5565b6323b872dd906107ab60036104bb565b906107b53061066f565b9392813b1561082a575f6107dc916107e782966107d06100b2565b988997889687956106c6565b8552600485016106db565b03925af18015610825576107f9575b50565b610818905f3d811161081e575b610810818361069d565b8101906106cc565b5f6107f6565b503d610806565b61070d565b61067b565b5f7f554e415554484f52495a45440000000000000000000000000000000000000000910152565b610863600c6020926104c8565b61086c8161082f565b0190565b6108859060208101905f818303910152610856565b90565b1561088f57565b6108976100b2565b62461bcd60e51b8152806108ad60048201610870565b0390fd5b6108d5336108cf6108c96108c45f6104bb565b61024c565b9161024c565b14610888565b6108dd610bc3565b565b6bffffffffffffffffffffffff1690565b6108f9816108df565b0361090057565b5f80fd5b90505190610911826108f0565b565b905051906109208261042a565b565b62ffffff1690565b61093381610922565b0361093a57565b5f80fd5b9050519061094b8261092a565b565b60020b90565b61095c8161094d565b0361096357565b5f80fd5b9050519061097482610953565b565b6fffffffffffffffffffffffffffffffff1690565b61099481610976565b0361099b57565b5f80fd5b905051906109ac8261098b565b565b905051906109bb826100c3565b565b909161018082840312610a75576109d6835f8401610904565b926109e48160208501610913565b926109f28260408301610913565b92610a008360608401610913565b92610a0e816080850161093e565b92610a1c8260a08301610967565b92610a2a8360c08401610967565b92610a388160e0850161099f565b92610a478261010083016109ae565b92610a72610a598461012085016109ae565b93610a6881610140860161099f565b936101600161099f565b90565b6100bc565b90565b610a91610a8c610a9692610a7a565b61017a565b610976565b90565b634e487b7160e01b5f52601260045260245ffd5b610ab9610abf91610976565b91610976565b908115610aca570490565b610a99565b90610ae2610adb6100b2565b928361069d565b565b610aee60a0610acf565b90565b90610afb906100c0565b9052565b90610b0990610976565b9052565b9190604083820312610b355780610b29610b32925f86016109ae565b936020016109ae565b90565b6100bc565b610b43906100c0565b9052565b610b5090610976565b9052565b90608080610bac93610b6c5f8201515f860190610b3a565b610b7e60208201516020860190610b47565b610b9060408201516040860190610b3a565b610ba260608201516060860190610b3a565b0151910190610b3a565b565b9190610bc1905f60a08501940190610b54565b565b610c25610180610bf27f00000000000000000000000000000000000000000000000000000000000000006101a5565b6399fbab8890610c1a610c056002610567565b92610c0e6100b2565b958694859384936106c6565b835260048301610369565b03915afa908115610d9f575f80808080808080989650505050505050610d66575b506064610c5290610a7d565b610c5b91610aad565b7f0000000000000000000000000000000000000000000000000000000000000000610c85906101a5565b630c49ccbe610c946002610567565b925f804292610ca1610ae4565b965f880190610caf91610af1565b6020870190610cbd91610aff565b610cc690610577565b6040860190610cd491610af1565b610cdd90610577565b6060850190610ceb91610af1565b6080840190610cf991610af1565b610d016100b2565b8093610d0d82936106c6565b82526004820190610d1d91610bae565b03815a6040945f91f18015610d6157610d34575b50565b610d549060403d8111610d5a575b610d4c818361069d565b810190610b0d565b50610d31565b503d610d42565b61070d565b610d8891506101803d8111610d98575b610d80818361069d565b8101906109bd565b5050505096505050505050610c46565b503d610d76565b61070d565b610dac6108b1565b565b610dd233610dcc610dc6610dc15f6104bb565b61024c565b9161024c565b14610888565b610dda610e61565b565b610de66080610acf565b90565b90610df39061024c565b9052565b610e009061024c565b9052565b90606080610e4a93610e1c5f8201515f860190610b3a565b610e2e60208201516020860190610df7565b610e4060408201516040860190610b47565b0151910190610b47565b565b9190610e5f905f60808501940190610e04565b565b610f266040610e8f7f00000000000000000000000000000000000000000000000000000000000000006101a5565b63fc6f786590610f1b5f610ea36002610567565b93610f07610eb0836104bb565b610efe6fffffffffffffffffffffffffffffffff610ef66fffffffffffffffffffffffffffffffff93610eed610ee4610ddc565b9b898d01610af1565b60208b01610de9565b898901610aff565b60608701610aff565b610f0f6100b2565b968795869485936106c6565b835260048301610e4c565b03925af18015610f6557610f38575b50565b610f589060403d8111610f5e575b610f50818361069d565b810190610b0d565b50610f35565b503d610f46565b61070d565b610f72610dae565b565b610fa190610f9c33610f96610f90610f8b5f6104bb565b61024c565b9161024c565b14610888565b610fed565b565b90610fb460018060a01b0391610615565b9181191691161790565b610fc790610199565b90565b90565b90610fe2610fdd610fe992610fbe565b610fca565b8254610fa3565b9055565b610ff7815f610fcd565b339061102c6110267f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610fbe565b91610fbe565b916110356100b2565b8061103f81610104565b0390a3565b61104d90610f74565b56fea2646970667358221220f2007821f14840f04091cd57b085376a4156cc4dc44254c5932be882592c0d1764736f6c634300081a0033
Deployed Bytecode
0x6080604052600436101561001d575b366108e75761001b6127fe565b005b6100275f35610136565b8063047abbc01461013157806316f0115b1461012c5780631a54a072146101275780632acfc2ca146101225780633fc8cef31461011d57806347786d371461011857806359cd60981461011357806360a3937d1461010e578063791b98bc146101095780638861670d146101045780638da5cb5b146100ff578063966dae0e146100fa578063a0c34b31146100f5578063e7441832146100f0578063f2fde38b146100eb578063f83d08ba146100e65763fa461e330361000e576108b0565b6107b8565b610717565b6106a3565b610670565b61063b565b6105e3565b610570565b61053b565b6104e3565b61049f565b610412565b610395565b61030f565b61026e565b610239565b61015e565b60e01c90565b60405190565b5f80fd5b5f80fd5b5f91031261015457565b610146565b5f0190565b3461018c5761016e36600461014a565b610176610de0565b61017e61013c565b8061018881610159565b0390f35b610142565b1c90565b60018060a01b031690565b6101b09060086101b59302610191565b610195565b90565b906101c391546101a0565b90565b6101d260015f906101b8565b90565b60018060a01b031690565b90565b6101f76101f26101fc926101d5565b6101e0565b6101d5565b90565b610208906101e3565b90565b610214906101ff565b90565b6102209061020b565b9052565b9190610237905f60208501940190610217565b565b346102695761024936600461014a565b6102656102546101c6565b61025c61013c565b91829182610224565b0390f35b610142565b3461029c5761027e36600461014a565b610286611d27565b61028e61013c565b8061029881610159565b0390f35b610142565b60018060a01b031690565b6102bc9060086102c19302610191565b6102a1565b90565b906102cf91546102ac565b90565b6102de60025f906102c4565b90565b6102ea906101ff565b90565b6102f6906102e1565b9052565b919061030d905f602085019401906102ed565b565b3461033f5761031f36600461014a565b61033b61032a6102d2565b61033261013c565b918291826102fa565b0390f35b610142565b73039e2fb66102314ce7b64ce5ce3e5183bc94ad3890565b610364610344565b90565b610370906101d5565b90565b61037c90610367565b9052565b9190610393905f60208501940190610373565b565b346103c5576103a536600461014a565b6103c16103b061035c565b6103b861013c565b91829182610380565b0390f35b610142565b5f80fd5b90565b6103da816103ce565b036103e157565b5f80fd5b905035906103f2826103d1565b565b9060208282031261040d5761040a915f016103e5565b90565b610146565b346104405761042a6104253660046103f4565b611dc2565b61043261013c565b8061043c81610159565b0390f35b610142565b90565b61045890600861045d9302610191565b610445565b90565b9061046b9154610448565b90565b61047a60095f90610460565b90565b610486906103ce565b9052565b919061049d905f6020850194019061047d565b565b346104cf576104af36600461014a565b6104cb6104ba61046e565b6104c261013c565b9182918261048a565b0390f35b610142565b6104e0600a5f90610460565b90565b34610513576104f336600461014a565b61050f6104fe6104d4565b61050661013c565b9182918261048a565b0390f35b610142565b7377dcc9b09c6ae94cdc726540735682a38e18d69090565b610538610518565b90565b3461056b5761054b36600461014a565b610567610556610530565b61055e61013c565b91829182610380565b0390f35b610142565b346105a05761058036600461014a565b61059c61058b611dcd565b61059361013c565b9182918261048a565b0390f35b610142565b60018060a01b031690565b6105c09060086105c59302610191565b6105a5565b90565b906105d391546105b0565b90565b6105e05f806105c8565b90565b34610613576105f336600461014a565b61060f6105fe6105d6565b61060661013c565b91829182610380565b0390f35b610142565b7356cfc796bc88c9c7e1b38c2b0af9b7120b079aef90565b610638610618565b90565b3461066b5761064b36600461014a565b610667610656610630565b61065e61013c565b91829182610380565b0390f35b610142565b3461069e576106886106833660046103f4565b611e29565b61069061013c565b8061069a81610159565b0390f35b610142565b346106d1576106b336600461014a565b6106bb6124fe565b6106c361013c565b806106cd81610159565b0390f35b610142565b6106df81610367565b036106e657565b5f80fd5b905035906106f7826106d6565b565b906020828203126107125761070f915f016106ea565b90565b610146565b346107455761072f61072a3660046106f9565b61258e565b61073761013c565b8061074181610159565b0390f35b610142565b60018060a01b031690565b61076590600861076a9302610191565b61074a565b90565b906107789154610755565b90565b61078760035f9061076d565b90565b610793906101ff565b90565b61079f9061078a565b9052565b91906107b6905f60208501940190610796565b565b346107e8576107c836600461014a565b6107e46107d361077b565b6107db61013c565b918291826107a3565b0390f35b610142565b90565b6107f9816107ed565b0361080057565b5f80fd5b90503590610811826107f0565b565b5f80fd5b5f80fd5b5f80fd5b909182601f830112156108595781359167ffffffffffffffff831161085457602001926001830284011161084f57565b61081b565b610817565b610813565b916060838303126108ab57610875825f8501610804565b926108838360208301610804565b92604082013567ffffffffffffffff81116108a6576108a2920161081f565b9091565b6103ca565b610146565b346108e2576108cc6108c336600461085e565b9291909161265f565b6108d461013c565b806108de81610159565b0390f35b610142565b5f80fd5b5f1c90565b6108fc610901916108eb565b61074a565b90565b61090e90546108f0565b90565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b9061093d90610915565b810190811067ffffffffffffffff82111761095757604052565b61091f565b60e01b90565b9050519061096f826103d1565b565b9060208282031261098a57610987915f01610962565b90565b610146565b61099761013c565b3d5f823e3d90fd5b90565b6109b66109b16109bb9261099f565b6101e0565b6103ce565b90565b6109ca6109cf916108eb565b610195565b90565b6109dc90546109be565b90565b6109f36109ee6109f89261099f565b6101e0565b6101d5565b90565b610a04906109df565b90565b610a10906101e3565b90565b610a1c90610a07565b90565b610a28906101ff565b90565b610a37610a3c916108eb565b6102a1565b90565b610a499054610a2b565b90565b90565b62ffffff1690565b610a6b610a66610a7092610a4c565b6101e0565b610a4f565b90565b610a7e612710610a57565b90565b90505190610a8e826106d6565b565b90602082820312610aa957610aa6915f01610a81565b90565b610146565b610ab790610a4f565b9052565b604090610ae4610aeb9496959396610ada60608401985f850190610373565b6020830190610373565b0190610aae565b565b610af6906101e3565b90565b610b0290610aed565b90565b5f1b90565b90610b1b60018060a01b0391610b05565b9181191691161790565b610b2e90610aed565b90565b90565b90610b49610b44610b5092610b25565b610b31565b8254610b0a565b9055565b151590565b610b6281610b54565b03610b6957565b5f80fd5b90505190610b7a82610b59565b565b90602082820312610b9557610b92915f01610b6d565b90565b610146565b916020610bbb929493610bb460408201965f830190610373565b019061047d565b565b610bc6906101e3565b90565b610bd290610bbd565b90565b610bde906101e3565b90565b610bea90610bd5565b90565b610bf6906101ff565b90565b15610c0057565b5f80fd5b610c0d906101ff565b90565b90565b90610c28610c23610c2f92610c04565b610c10565b8254610b0a565b9055565b610c3c906101ff565b90565b5f90565b5f90565b6001610c5391016103ce565b90565b610c62610c67916108eb565b610445565b90565b610c749054610c56565b90565b90565b610c8e610c89610c9392610c77565b6101e0565b6103ce565b90565b634e487b7160e01b5f52601260045260245ffd5b610cb6610cbc916103ce565b916103ce565b908115610cc7570690565b610c96565b90565b610ce3610cde610ce892610ccc565b6101e0565b6103ce565b90565b634e487b7160e01b5f52601160045260245ffd5b610d0e610d14919392936103ce565b926103ce565b8201809211610d1f57565b610ceb565b610d33610d39919392936103ce565b926103ce565b91610d458382026103ce565b928184041490151715610d5457565b610ceb565b90565b610d70610d6b610d7592610d59565b6101e0565b6103ce565b90565b610d84610d8a916103ce565b916103ce565b908115610d95570490565b610c96565b610da9610daf919392936103ce565b926103ce565b8203918211610dba57565b610ceb565b610dcb610dd0916108eb565b6105a5565b90565b610ddd9054610dbf565b90565b610e0d6020610df7610df26003610904565b61078a565b63c6bc518290610e0561013c565b93849261095c565b82528180610e1d60048201610159565b03915afa908115611890575f91611862575b50610e42610e3c5f6109a2565b916103ce565b145f14610e4b57565b610e5d610e5860016109d2565b61020b565b610e77610e71610e6c5f6109fb565b610367565b91610367565b1461159b575b610ec66020610e94610e8f6002610a3f565b6102e1565b6370a0823190610ebb610ea630610c33565b92610eaf61013c565b9586948593849361095c565b835260048301610380565b03915afa908115611596575f91611568575b5080610eec610ee65f6109a2565b916103ce565b116114dc575b610f496020610f17610f12610f0d610f08610344565b610bc9565b610be1565b610bed565b6370a0823190610f3e610f2930610c33565b92610f3261013c565b9586948593849361095c565b835260048301610380565b03915afa9081156114d7575f916114a9575b5090610f65610c3f565b50610f6e610c3f565b50610f77610c43565b50610f815f6109a2565b915b82610f9f610f99610f946009610c6a565b6103ce565b916103ce565b101561127c57610fb983610fb36002610c7a565b90610caa565b610fcb610fc55f6109a2565b916103ce565b145f1461126557610fda610344565b5b610fef84610fe96002610c7a565b90610caa565b611001610ffb5f6109a2565b916103ce565b145f146112585761101a6110156002610a3f565b6102e1565b5b61102f856110296002610c7a565b90610caa565b61104161103b5f6109a2565b916103ce565b145f1461125257825b918261105e6110585f6109a2565b916103ce565b116111dd575b50505061107b836110756002610c7a565b90610caa565b61108d6110875f6109a2565b916103ce565b145f1461114257506110ec60206110ba6110b56110b06110ab610344565b610bc9565b610be1565b610bed565b6370a08231906110e16110cc30610c33565b926110d561013c565b9586948593849361095c565b835260048301610380565b03915afa801561113d57611109915f9161110f575b50925b610c47565b91610f83565b611130915060203d8111611136575b6111288183610933565b810190610971565b5f611101565b503d61111e565b61098f565b91905061118e602061115c6111576002610a3f565b6102e1565b6370a082319061118361116e30610c33565b9261117761013c565b9586948593849361095c565b835260048301610380565b03915afa80156111d857611109915f916111aa575b5091611104565b6111cb915060203d81116111d1575b6111c38183610933565b810190610971565b5f6111a3565b503d6111b9565b61098f565b61124161121461120461124a956111fe8a6111f86001610ccf565b90610cff565b90610d24565b61120e600a610d5c565b90610d24565b61123b61122b896112256002610c7a565b90610cff565b611235600a610d5c565b90610d24565b90610d78565b90919091612b42565b5f8080611064565b8361104a565b611260610344565b61101b565b6112776112726002610a3f565b6102e1565b610fdb565b5050506112c860206112966112916002610a3f565b6102e1565b6370a08231906112bd6112a830610c33565b926112b161013c565b9586948593849361095c565b835260048301610380565b03915afa80156114a457611300915f91611476575b506112f06112eb6002610a3f565b6102e1565b906112f9610344565b9091612b42565b611357602061132561132061131b611316610344565b610bc9565b610be1565b610bed565b6370a082319061134c61133730610c33565b9261134061013c565b9586948593849361095c565b835260048301610380565b03915afa908115611471575f91611443575b508061138661138061137b6008610c6a565b6103ce565b916103ce565b1161138f575b50565b6113a39061139d6008610c6a565b90610d9a565b60206113c56113c06113bb6113b6610344565b610bc9565b610be1565b610bed565b9163a9059cbb926113f35f6113da6006610dd3565b93956113fe6113e761013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561143e57611412575b61138c565b6114329060203d8111611437575b61142a8183610933565b810190610b7c565b61140d565b503d611420565b61098f565b611464915060203d811161146a575b61145c8183610933565b810190610971565b5f611369565b503d611452565b61098f565b611497915060203d811161149d575b61148f8183610933565b810190610971565b5f6112dd565b503d611485565b61098f565b6114ca915060203d81116114d0575b6114c28183610933565b810190610971565b5f610f5b565b503d6114b8565b61098f565b6114ee6114e96002610a3f565b6102e1565b602063a9059cbb9161dead906115175f869561152261150b61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561156357611537575b50610ef2565b6115579060203d811161155c575b61154f8183610933565b810190610b7c565b611531565b503d611545565b61098f565b611589915060203d811161158f575b6115818183610933565b810190610971565b5f610ed8565b503d611577565b61098f565b6115b36115ae6115a9610618565b610a13565b610a1f565b6020631698ee82916115c3610344565b906115f96115d96115d46002610a3f565b6102e1565b946116046115e5610a73565b6115ed61013c565b9788968795869561095c565b855260048501610abb565b03915afa90811561185d5761162b91611624915f9161182f575b50610af9565b6001610b34565b61163d6116386002610a3f565b6102e1565b602063095ea7b39161165761165260016109d2565b61020b565b906116765f80199561168161166a61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561182a576117fe575b506116b16116ac6116a76116a2610344565b610bc9565b610be1565b610bed565b602063095ea7b3916116cb6116c660016109d2565b61020b565b906116ea5f8019956116f56116de61013c565b9788968795869461095c565b845260048401610b9a565b03925af180156117f9576117cd575b5061173b61171a61171560016109d2565b61020b565b61173461172e6117295f6109fb565b610367565b91610367565b1415610bf9565b611768602061175261174d60016109d2565b61020b565b630dfe16819061176061013c565b93849261095c565b8252818061177860048201610159565b03915afa80156117c857611795915f9161179a575b506007610c13565b610e7d565b6117bb915060203d81116117c1575b6117b38183610933565b810190610a90565b5f61178d565b503d6117a9565b61098f565b6117ed9060203d81116117f2575b6117e58183610933565b810190610b7c565b611704565b503d6117db565b61098f565b61181e9060203d8111611823575b6118168183610933565b810190610b7c565b611690565b503d61180c565b61098f565b611850915060203d8111611856575b6118488183610933565b810190610a90565b5f61161e565b503d61183e565b61098f565b611883915060203d8111611889575b61187b8183610933565b810190610971565b5f610e2f565b503d611871565b61098f565b60209181520190565b5f7f554e415554484f52495a45440000000000000000000000000000000000000000910152565b6118d2600c602092611895565b6118db8161189e565b0190565b6118f49060208101905f8183039101526118c5565b90565b156118fe57565b61190661013c565b62461bcd60e51b81528061191c600482016118df565b0390fd5b6119443361193e6119386119335f610dd3565b610367565b91610367565b146118f7565b61194c61195d565b565b5f91031261195857565b610146565b6119b4602061198261197d611978611973610344565b610bc9565b610be1565b610bed565b6370a08231906119a961199430610c33565b9261199d61013c565b9586948593849361095c565b835260048301610380565b03915afa908115611d22575f91611cf4575b506119d96119d46003610904565b61078a565b63d294f09390803b15611cef576119fc915f916119f461013c565b93849261095c565b8252818381611a0d60048201610159565b03925af18015611cea57611cbe575b50611a746020611a42611a3d611a38611a33610344565b610bc9565b610be1565b610bed565b6370a0823190611a69611a5430610c33565b92611a5d61013c565b9586948593849361095c565b835260048301610380565b03915afa8015611cb957611ad1915f91611c8b575b50916020611a9f611a9a6002610a3f565b6102e1565b6370a0823190611ac6611ab130610c33565b92611aba61013c565b9687948593849361095c565b835260048301610380565b03915afa8015611c8657611aed925f91611c58575b5092610d9a565b80611b00611afa5f6109a2565b916103ce565b118015611c3e575b611b11575b5050565b6020611b33611b2e611b29611b24610344565b610bc9565b610be1565b610bed565b9163a9059cbb92611b605f611b4781610dd3565b9395611b6b611b5461013c565b9788968795869461095c565b845260048401610b9a565b03925af18015611c3957611c0d575b506020611b8f611b8a6002610a3f565b6102e1565b9163a9059cbb92611bbc5f611ba381610dd3565b9395611bc7611bb061013c565b9788968795869461095c565b845260048401610b9a565b03925af18015611c0857611bdc575b80611b0d565b611bfc9060203d8111611c01575b611bf48183610933565b810190610b7c565b611bd6565b503d611bea565b61098f565b611c2d9060203d8111611c32575b611c258183610933565b810190610b7c565b611b7a565b503d611c1b565b61098f565b5081611c52611c4c5f6109a2565b916103ce565b11611b08565b611c79915060203d8111611c7f575b611c718183610933565b810190610971565b5f611ae6565b503d611c67565b61098f565b611cac915060203d8111611cb2575b611ca48183610933565b810190610971565b5f611a89565b503d611c9a565b61098f565b611cdd905f3d8111611ce3575b611cd58183610933565b81019061194e565b5f611a1c565b503d611ccb565b61098f565b610911565b611d15915060203d8111611d1b575b611d0d8183610933565b810190610971565b5f6119c6565b503d611d03565b61098f565b611d2f611920565b565b611d5e90611d5933611d53611d4d611d485f610dd3565b610367565b91610367565b146118f7565b611db5565b565b90611d6c5f1991610b05565b9181191691161790565b611d8a611d85611d8f926103ce565b6101e0565b6103ce565b90565b90565b90611daa611da5611db192611d76565b611d92565b8254611d60565b9055565b611dc0906008611d95565b565b611dcb90611d31565b565b611dd5610c43565b50611dea611de3600a610c6a565b4290610d9a565b90565b611e1a90611e1533611e0f611e09611e045f610dd3565b610367565b91610367565b146118f7565b611e1c565b565b611e27906009611d95565b565b611e3290611ded565b565b611e5833611e52611e4c611e475f610dd3565b610367565b91610367565b146118f7565b611e60611f5f565b565b90565b611e79611e74611e7e92611e62565b6101e0565b6103ce565b90565b90565b611e98611e93611e9d92611e81565b6101e0565b6103ce565b90565b90565b611eb7611eb2611ebc92611ea0565b6101e0565b6103ce565b90565b90565b611ed6611ed1611edb92611ebf565b6101e0565b6103ce565b90565b5f7f4461726b20696e74657276616c20686173206e6f742070617373656420796574910152565b611f1160208092611895565b611f1a81611ede565b0190565b611f339060208101905f818303910152611f05565b90565b15611f3d57565b611f4561013c565b62461bcd60e51b815280611f5b60048201611f1e565b0390fd5b611f6a61a8c0611e65565b611fad6020611f81611f7c6002610a3f565b6102e1565b6370a0823190611fa261dead92611f9661013c565b9586948593849361095c565b835260048301610380565b03915afa80156124f957611fd3915f916124cb575b50611fcd6005610c6a565b90610d78565b80611fe7611fe16005611e84565b916103ce565b10156124af575b612001611ffb6032611ec2565b916103ce565b1015612495575b61202e4261202761202161201c600a610c6a565b6103ce565b916103ce565b1015611f36565b612085602061205361204e612049612044610344565b610bc9565b610be1565b610bed565b6370a082319061207a61206530610c33565b9261206e61013c565b9586948593849361095c565b835260048301610380565b03915afa908115612490575f91612462575b50906120ab6120a66003610904565b61078a565b638ca8ecd190803b1561245d576120ce915f916120c661013c565b93849261095c565b82528183816120df60048201610159565b03925af180156124585761242c575b506121016120fc6003610904565b61078a565b9063d294f09391803b1561242757612125925f9161211d61013c565b94859261095c565b825281838161213660048201610159565b03925af19081156124225761215c92612155926123f6575b5042610cff565b600a611d95565b6121a5602061217361216e6002610a3f565b6102e1565b6370a082319061219a61218530610c33565b9261218e61013c565b9586948593849361095c565b835260048301610380565b03915afa80156123f157612210915f916123c3575b509160206121de6121d96121d46121cf610344565b610bc9565b610be1565b610bed565b6370a08231906122056121f030610c33565b926121f961013c565b9687948593849361095c565b835260048301610380565b03915afa80156123be5761222b925f91612390575b50610d9a565b8061223e6122385f6109a2565b916103ce565b118015612376575b61224f575b5050565b602061227161226c612267612262610344565b610bc9565b610be1565b610bed565b9163a9059cbb9261229e5f61228581610dd3565b93956122a961229261013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561237157612345575b5060206122cd6122c86002610a3f565b6102e1565b9163a9059cbb926122f45f61dead93956122ff6122e861013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561234057612314575b8061224b565b6123349060203d8111612339575b61232c8183610933565b810190610b7c565b61230e565b503d612322565b61098f565b6123659060203d811161236a575b61235d8183610933565b810190610b7c565b6122b8565b503d612353565b61098f565b508161238a6123845f6109a2565b916103ce565b11612246565b6123b1915060203d81116123b7575b6123a98183610933565b810190610971565b5f612225565b503d61239f565b61098f565b6123e4915060203d81116123ea575b6123dc8183610933565b810190610971565b5f6121ba565b503d6123d2565b61098f565b612415905f3d811161241b575b61240d8183610933565b81019061194e565b5f61214e565b503d612403565b61098f565b610911565b61244b905f3d8111612451575b6124438183610933565b81019061194e565b5f6120ee565b503d612439565b61098f565b610911565b612483915060203d8111612489575b61247b8183610933565b810190610971565b5f612097565b503d612471565b61098f565b6124aa906124a461a8c0611e65565b90610cff565b612008565b906124c5906124bf615460611ea3565b90610cff565b90611fee565b6124ec915060203d81116124f2575b6124e48183610933565b810190610971565b5f611fc2565b503d6124da565b61098f565b612506611e34565b565b612535906125303361252a61252461251f5f610dd3565b610367565b91610367565b146118f7565b612537565b565b612541815f610c13565b33906125766125707f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e093610c04565b91610c04565b9161257f61013c565b8061258981610159565b0390a3565b61259790612508565b565b5f7f6e6f7420617574686f72697a6564000000000000000000000000000000000000910152565b6125cd600e602092611895565b6125d681612599565b0190565b6125ef9060208101905f8183039101526125c0565b90565b156125f957565b61260161013c565b62461bcd60e51b815280612617600482016125da565b0390fd5b5090565b61263361262e612638926107ed565b6101e0565b6103ce565b90565b612644906101e3565b90565b6126509061263b565b90565b61265c906101ff565b90565b6126ee906126a76126f393956020953361269261268c61268761268260016109d2565b61020b565b610367565b91610367565b14806127d6575b6126a2906125f2565b61261b565b6126b96126b35f6109a2565b916103ce565b1194855f14612787576126cc6007610dd3565b5b956126d6610c43565b505f1461277757506126e79061261f565b935b612647565b612653565b9163a9059cbb926127295f61271061270b60016109d2565b61020b565b939561273461271d61013c565b9788968795869461095c565b845260048401610b9a565b03925af1801561277257612746575b50565b6127669060203d811161276b575b61275e8183610933565b810190610b7c565b612743565b503d612754565b61098f565b612781915061261f565b936126e9565b6127916007610dd3565b6127aa6127a461279f610344565b610367565b91610367565b145f146127c9576127c36127be6002610a3f565b6102e1565b5b6126cd565b6127d1610344565b6127c4565b506126a2326127f56127ef6127ea30610c33565b610367565b91610367565b14159050612699565b61281e61281961281461280f610344565b610bc9565b610be1565b610bed565b63d0e30db0349190813b15612897575f916128459161283b61013c565b948593849261095c565b82528161285460048201610159565b03925af1801561289257612866575b50565b612885905f3d811161288b575b61287d8183610933565b81019061194e565b5f612863565b503d612873565b61098f565b610911565b90565b6128b36128ae6128b89261289c565b6101e0565b6101d5565b90565b6128d873fffd8963efd1fc6a506488495d951d5263988d2661289f565b90565b6128ef6128ea6128f492610ccc565b6101e0565b6101d5565b90565b612903612909916101d5565b916101d5565b90039060018060a01b03821161291b57565b610ceb565b90565b61293761293261293c92612920565b6101e0565b6101d5565b90565b61294d6401000276a3612923565b90565b61295c612962916101d5565b916101d5565b019060018060a01b03821161297357565b610ceb565b61298c612987612991926103ce565b6101e0565b6107ed565b90565b906129a76129a061013c565b9283610933565b565b67ffffffffffffffff81116129c7576129c3602091610915565b0190565b61091f565b906129de6129d9836129a9565b612994565b918252565b6129ec5f6129cc565b90565b6129f76129e3565b90565b5f7f3100000000000000000000000000000000000000000000000000000000000000910152565b612a2b60016129cc565b90612a38602083016129fa565b565b612a42612a21565b90565b90505190612a52826107f0565b565b9190604083820312612a7c5780612a70612a79925f8601612a45565b93602001612a45565b90565b610146565b612a8a90610b54565b9052565b612a97906107ed565b9052565b612aa4906101d5565b9052565b5190565b60209181520190565b90825f9392825e0152565b612adf612ae8602093612aed93612ad681612aa8565b93848093612aac565b95869101612ab5565b610915565b0190565b9193612b28612b3f9694612b1e612b329497612b1460a08801995f890190610373565b6020870190612a81565b6040850190612a8e565b6060830190612a9b565b6080818403910152612ac0565b90565b9082612b56612b505f6109a2565b916103ce565b14612c7b57612b70612b6a60409392610367565b91610367565b10805f14612c5b57612b93612b8361293f565b612b8d60016128db565b90612950565b5b612bee5f612baa612ba560016109d2565b61020b565b92612bf963128acb0891612bbd30610c33565b96612bc8819a612978565b91908514612c4d57612bd8612a3a565b915b612be261013c565b9a8b998a98899761095c565b875260048701612af1565b03925af19081612c20575b50155f14612c1b576001612c16575b5b565b612c13565b612c14565b612c409060403d8111612c46575b612c388183610933565b810190612a54565b50612c04565b503d612c2e565b612c556129ef565b91612bda565b612c76612c666128bb565b612c7060016128db565b906128f7565b612b94565b50505056fea2646970667358221220a7228e78f9dd2d026f85307c076878a4360b0f83558bcd43269142dd6d0fb1b864736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.