ERC-20
Overview
Max Total Supply
1,000,000,000 $LABEL
Holders
65
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ChainLabelToken
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol"; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol"; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "./libraries/TickMath.sol"; import "./interfaces/uniswapV3/INonfungiblePositionManager.sol"; import "./interfaces/IWETH.sol"; contract ChainLabelToken is ERC20, Ownable { uint256 public buyLimit = 6600000 * 10 ** 18; uint256 public balanceLimit = 10000000 * 10 ** 18; uint256 public disableLimitBlockNumber = 99999999999; uint256 public transferAllowBlockNumber = 99999999999; address public wethAddress; address public nfpManagerAddress; address public poolAddress; constructor( uint256 amount, address wethAddress_, address nfpManagerAddress_ ) payable ERC20("ChainLabel", "$LABEL") Ownable(msg.sender) { _mint(msg.sender, amount); wethAddress = wethAddress_; nfpManagerAddress = nfpManagerAddress_; } function createPosition(uint256 amount, uint24 poolFee, uint160 sqrtPriceX96) public payable onlyOwner { require(msg.value > 0, "ChainLabel: must send ether to add liquidity"); require(amount > 0, "ChainLabel: must send token to add liquidity"); address token0 = address(this); address token1 = wethAddress; if (token0 > token1) { (token0, token1) = (token1, token0); } TransferHelper.safeTransferFrom(address(this), msg.sender, address(this), amount); _swapWeth(); _createPool(token0, token1, poolFee, sqrtPriceX96); int24 tickSpacing = IUniswapV3Pool(poolAddress).tickSpacing(); _mintNewPosition(token0, token1, poolFee, tickSpacing); disableLimitBlockNumber = block.number + 30; transferAllowBlockNumber = block.number + 3; } function transfer(address to, uint256 value) public override returns (bool) { _beforeTokenTransfer(msg.sender, to, value); return super.transfer(to, value); } function transferFrom(address from, address to, uint256 value) public override returns (bool) { _beforeTokenTransfer(from, to, value); return super.transferFrom(from, to, value); } function disableLimits() public onlyOwner { transferAllowBlockNumber = 0; disableLimitBlockNumber = 0; } function _beforeTokenTransfer(address from, address to, uint256 value) internal view { if (from != address(this) && to != address(this)) { require(block.number > transferAllowBlockNumber, "ChainLabel: transfer is not allowed yet"); if (disableLimitBlockNumber > block.number) { if (from == poolAddress) { require(value <= buyLimit, "ChainLabel: single buy amount exceeds limit"); } if (to != poolAddress) { require(balanceOf(to) + value <= balanceLimit, "ChainLabel: balance amount exceeds limit"); } } } } function _createPool(address token0, address token1, uint24 poolFee, uint160 sqrtPriceX96) internal { INonfungiblePositionManager nfpManager = INonfungiblePositionManager(nfpManagerAddress); poolAddress = nfpManager.createAndInitializePoolIfNecessary(token0, token1, poolFee, sqrtPriceX96); } function _swapWeth() internal { IWETH weth = IWETH(wethAddress); weth.deposit{ value: msg.value }(); } function _mintNewPosition(address token0, address token1, uint24 poolFee, int24 tickSpacing) internal { uint256 token0Amount = this.balanceOf(address(this)); uint256 token1Amount = IERC20(wethAddress).balanceOf(address(this)); TransferHelper.safeApprove(address(this), address(nfpManagerAddress), token0Amount); TransferHelper.safeApprove(wethAddress, address(nfpManagerAddress), token1Amount); if (token1 == address(this)) { (token0Amount, token1Amount) = (token1Amount, token0Amount); } int24 tickUpper = TickMath.MAX_TICK - (TickMath.MAX_TICK % tickSpacing); int24 tickLower = -tickUpper; INonfungiblePositionManager.MintParams memory params = INonfungiblePositionManager.MintParams({ token0: token0, token1: token1, fee: poolFee, tickLower: tickLower, tickUpper: tickUpper, amount0Desired: token0Amount, amount1Desired: token1Amount, amount0Min: 0, amount1Min: 0, recipient: msg.sender, deadline: block.timestamp + 60 }); INonfungiblePositionManager nfpManager = INonfungiblePositionManager(nfpManagerAddress); nfpManager.mint(params); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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 ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ 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}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `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 { 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: * ``` * 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.0.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 ERC20 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.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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.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: 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.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 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 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 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: 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 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 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.6.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF'); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IWETH is IERC20 { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; interface INonfungiblePositionManager { struct MintParams { address token0; address token1; uint24 fee; int24 tickLower; int24 tickUpper; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; address recipient; uint256 deadline; } /// @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); /// @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: MIT pragma solidity ^0.8.24; library TickMath { /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128 int24 internal constant MIN_TICK = -887272; /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128 int24 internal constant MAX_TICK = -MIN_TICK; }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"wethAddress_","type":"address"},{"internalType":"address","name":"nfpManagerAddress_","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint24","name":"poolFee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createPosition","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableLimitBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nfpManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferAllowBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wethAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526a05759ab78815538d0000006006556a084595161401484a00000060075564174876e7ff60085564174876e7ff600955604051620034a6380380620034a6833981810160405281019062000059919062000638565b336040518060400160405280600a81526020017f436861696e4c6162656c000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f244c4142454c00000000000000000000000000000000000000000000000000008152508160039081620000d7919062000904565b508060049081620000e9919062000904565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001615760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001589190620009fc565b60405180910390fd5b62000172816200021060201b60201c565b50620001853384620002d660201b60201c565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000aee565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200034b5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401620003429190620009fc565b60405180910390fd5b6200035f600083836200036360201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620003b9578060026000828254620003ac919062000a48565b925050819055506200048f565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101562000448578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016200043f9392919062000a94565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004da578060026000828254039250508190555062000527565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000586919062000ad1565b60405180910390a3505050565b600080fd5b6000819050919050565b620005ad8162000598565b8114620005b957600080fd5b50565b600081519050620005cd81620005a2565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200060082620005d3565b9050919050565b6200061281620005f3565b81146200061e57600080fd5b50565b600081519050620006328162000607565b92915050565b60008060006060848603121562000654576200065362000593565b5b60006200066486828701620005bc565b9350506020620006778682870162000621565b92505060406200068a8682870162000621565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200071657607f821691505b6020821081036200072c576200072b620006ce565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000757565b620007a2868362000757565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620007e5620007df620007d98462000598565b620007ba565b62000598565b9050919050565b6000819050919050565b6200080183620007c4565b620008196200081082620007ec565b84845462000764565b825550505050565b600090565b6200083062000821565b6200083d818484620007f6565b505050565b5b8181101562000865576200085960008262000826565b60018101905062000843565b5050565b601f821115620008b4576200087e8162000732565b620008898462000747565b8101602085101562000899578190505b620008b1620008a88562000747565b83018262000842565b50505b505050565b600082821c905092915050565b6000620008d960001984600802620008b9565b1980831691505092915050565b6000620008f48383620008c6565b9150826002028217905092915050565b6200090f8262000694565b67ffffffffffffffff8111156200092b576200092a6200069f565b5b620009378254620006fd565b6200094482828562000869565b600060209050601f8311600181146200097c576000841562000967578287015190505b620009738582620008e6565b865550620009e3565b601f1984166200098c8662000732565b60005b82811015620009b6578489015182556001820191506020850194506020810190506200098f565b86831015620009d65784890151620009d2601f891682620008c6565b8355505b6001600288020188555050505b505050505050565b620009f681620005f3565b82525050565b600060208201905062000a136000830184620009eb565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000a558262000598565b915062000a628362000598565b925082820190508082111562000a7d5762000a7c62000a19565b5b92915050565b62000a8e8162000598565b82525050565b600060608201905062000aab6000830186620009eb565b62000aba602083018562000a83565b62000ac9604083018462000a83565b949350505050565b600060208201905062000ae8600083018462000a83565b92915050565b6129a88062000afe6000396000f3fe60806040526004361061012a5760003560e01c806370a08231116100ab57806395d89b411161006f57806395d89b41146103c7578063a9059cbb146103f2578063bd5161d51461042f578063dd62ed3e1461045a578063f2fde38b14610497578063f928364c146104c05761012a565b806370a08231146102f2578063715018a61461032f5780637249b0d914610346578063762bb282146103715780638da5cb5b1461039c5761012a565b8063313ce567116100f2578063313ce5671461022a5780634a389755146102555780634f0e0ef314610280578063589210d9146102ab57806365697d4b146102d65761012a565b806306fdde031461012f578063095ea7b31461015a5780631755ff211461019757806318160ddd146101c257806323b872dd146101ed575b600080fd5b34801561013b57600080fd5b506101446104d7565b6040516101519190611c41565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c9190611cfc565b610569565b60405161018e9190611d57565b60405180910390f35b3480156101a357600080fd5b506101ac61058c565b6040516101b99190611d81565b60405180910390f35b3480156101ce57600080fd5b506101d76105b2565b6040516101e49190611dab565b60405180910390f35b3480156101f957600080fd5b50610214600480360381019061020f9190611dc6565b6105bc565b6040516102219190611d57565b60405180910390f35b34801561023657600080fd5b5061023f6105dd565b60405161024c9190611e35565b60405180910390f35b34801561026157600080fd5b5061026a6105e6565b6040516102779190611dab565b60405180910390f35b34801561028c57600080fd5b506102956105ec565b6040516102a29190611d81565b60405180910390f35b3480156102b757600080fd5b506102c0610612565b6040516102cd9190611dab565b60405180910390f35b6102f060048036038101906102eb9190611eb7565b610618565b005b3480156102fe57600080fd5b5061031960048036038101906103149190611f0a565b610800565b6040516103269190611dab565b60405180910390f35b34801561033b57600080fd5b50610344610848565b005b34801561035257600080fd5b5061035b61085c565b6040516103689190611dab565b60405180910390f35b34801561037d57600080fd5b50610386610862565b6040516103939190611dab565b60405180910390f35b3480156103a857600080fd5b506103b1610868565b6040516103be9190611d81565b60405180910390f35b3480156103d357600080fd5b506103dc610892565b6040516103e99190611c41565b60405180910390f35b3480156103fe57600080fd5b5061041960048036038101906104149190611cfc565b610924565b6040516104269190611d57565b60405180910390f35b34801561043b57600080fd5b50610444610943565b6040516104519190611d81565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c9190611f37565b610969565b60405161048e9190611dab565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b99190611f0a565b6109f0565b005b3480156104cc57600080fd5b506104d5610a76565b005b6060600380546104e690611fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461051290611fa6565b801561055f5780601f106105345761010080835404028352916020019161055f565b820191906000526020600020905b81548152906001019060200180831161054257829003601f168201915b5050505050905090565b600080610574610a90565b9050610581818585610a98565b600191505092915050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b60006105c9848484610aaa565b6105d4848484610cb5565b90509392505050565b60006012905090565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b610620610ce4565b60003411610663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065a90612049565b60405180910390fd5b600083116106a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069d906120db565b60405180910390fd5b60003090506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16111561071157808280925081935050505b61071d30333088610d6b565b610725610ec3565b61073182828686610f4e565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c49190612134565b90506107d28383878461103e565b601e436107df9190612190565b6008819055506003436107f29190612190565b600981905550505050505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610850610ce4565b61085a60006113ef565b565b60085481565b60075481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546108a190611fa6565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd90611fa6565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b5050505050905090565b6000610931338484610aaa565b61093b83836114b5565b905092915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6109f8610ce4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a619190611d81565b60405180910390fd5b610a73816113ef565b50565b610a7e610ce4565b60006009819055506000600881905550565b600033905090565b610aa583838360016114d8565b505050565b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b1257503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15610cb0576009544311610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290612236565b60405180910390fd5b436008541115610caf57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c0057600654811115610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf6906122c8565b60405180910390fd5b5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610cae5760075481610c6284610800565b610c6c9190612190565b1115610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca49061235a565b60405180910390fd5b5b5b5b505050565b600080610cc0610a90565b9050610ccd8582856116af565b610cd8858585611743565b60019150509392505050565b610cec610a90565b73ffffffffffffffffffffffffffffffffffffffff16610d0a610868565b73ffffffffffffffffffffffffffffffffffffffff1614610d6957610d2d610a90565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d609190611d81565b60405180910390fd5b565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610da29392919061237a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610e0c91906123f8565b6000604051808303816000865af19150503d8060008114610e49576040519150601f19603f3d011682016040523d82523d6000602084013e610e4e565b606091505b5091509150818015610e7c5750600081511480610e7b575080806020019051810190610e7a919061243b565b5b5b610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb2906124b4565b60405180910390fd5b505050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610f3257600080fd5b505af1158015610f46573d6000803e3d6000fd5b505050505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166313ead562868686866040518563ffffffff1660e01b8152600401610fb494939291906124f2565b6020604051808303816000875af1158015610fd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff7919061254c565b600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110799190611d81565b602060405180830381865afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba919061258e565b90506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111199190611d81565b602060405180830381865afa158015611136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115a919061258e565b905061118930600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611837565b6111d8600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611837565b3073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361121657808280925081935050505b6000837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27618611243906125bb565b61124d9190612632565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27618611277906125bb565b6112819190612663565b905060008161128f906125bb565b905060006040518061016001604052808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020018360020b81526020018460020b815260200186815260200185815260200160008152602001600081526020013373ffffffffffffffffffffffffffffffffffffffff168152602001603c426113379190612190565b81525090506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166388316456836040518263ffffffff1660e01b815260040161139c91906127db565b6080604051808303816000875af11580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113df919061283f565b5050505050505050505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806114c0610a90565b90506114cd818585611743565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361154a5760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016115419190611d81565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115bc5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016115b39190611d81565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156116a9578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516116a09190611dab565b60405180910390a35b50505050565b60006116bb8484610969565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461173d578181101561172d578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401611724939291906128a6565b60405180910390fd5b61173c848484840360006114d8565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117b55760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016117ac9190611d81565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118275760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161181e9190611d81565b60405180910390fd5b61183283838361198c565b505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b858560405160240161186c9291906128dd565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516118d691906123f8565b6000604051808303816000865af19150503d8060008114611913576040519150601f19603f3d011682016040523d82523d6000602084013e611918565b606091505b50915091508180156119465750600081511480611945575080806020019051810190611944919061243b565b5b5b611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197c90612952565b60405180910390fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119de5780600260008282546119d29190612190565b92505081905550611ab1565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a6a578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611a61939291906128a6565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611afa5780600260008282540392505081905550611b47565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611ba49190611dab565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611beb578082015181840152602081019050611bd0565b60008484015250505050565b6000601f19601f8301169050919050565b6000611c1382611bb1565b611c1d8185611bbc565b9350611c2d818560208601611bcd565b611c3681611bf7565b840191505092915050565b60006020820190508181036000830152611c5b8184611c08565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c9382611c68565b9050919050565b611ca381611c88565b8114611cae57600080fd5b50565b600081359050611cc081611c9a565b92915050565b6000819050919050565b611cd981611cc6565b8114611ce457600080fd5b50565b600081359050611cf681611cd0565b92915050565b60008060408385031215611d1357611d12611c63565b5b6000611d2185828601611cb1565b9250506020611d3285828601611ce7565b9150509250929050565b60008115159050919050565b611d5181611d3c565b82525050565b6000602082019050611d6c6000830184611d48565b92915050565b611d7b81611c88565b82525050565b6000602082019050611d966000830184611d72565b92915050565b611da581611cc6565b82525050565b6000602082019050611dc06000830184611d9c565b92915050565b600080600060608486031215611ddf57611dde611c63565b5b6000611ded86828701611cb1565b9350506020611dfe86828701611cb1565b9250506040611e0f86828701611ce7565b9150509250925092565b600060ff82169050919050565b611e2f81611e19565b82525050565b6000602082019050611e4a6000830184611e26565b92915050565b600062ffffff82169050919050565b611e6881611e50565b8114611e7357600080fd5b50565b600081359050611e8581611e5f565b92915050565b611e9481611c68565b8114611e9f57600080fd5b50565b600081359050611eb181611e8b565b92915050565b600080600060608486031215611ed057611ecf611c63565b5b6000611ede86828701611ce7565b9350506020611eef86828701611e76565b9250506040611f0086828701611ea2565b9150509250925092565b600060208284031215611f2057611f1f611c63565b5b6000611f2e84828501611cb1565b91505092915050565b60008060408385031215611f4e57611f4d611c63565b5b6000611f5c85828601611cb1565b9250506020611f6d85828601611cb1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611fbe57607f821691505b602082108103611fd157611fd0611f77565b5b50919050565b7f436861696e4c6162656c3a206d7573742073656e6420657468657220746f206160008201527f6464206c69717569646974790000000000000000000000000000000000000000602082015250565b6000612033602c83611bbc565b915061203e82611fd7565b604082019050919050565b6000602082019050818103600083015261206281612026565b9050919050565b7f436861696e4c6162656c3a206d7573742073656e6420746f6b656e20746f206160008201527f6464206c69717569646974790000000000000000000000000000000000000000602082015250565b60006120c5602c83611bbc565b91506120d082612069565b604082019050919050565b600060208201905081810360008301526120f4816120b8565b9050919050565b60008160020b9050919050565b612111816120fb565b811461211c57600080fd5b50565b60008151905061212e81612108565b92915050565b60006020828403121561214a57612149611c63565b5b60006121588482850161211f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061219b82611cc6565b91506121a683611cc6565b92508282019050808211156121be576121bd612161565b5b92915050565b7f436861696e4c6162656c3a207472616e73666572206973206e6f7420616c6c6f60008201527f7765642079657400000000000000000000000000000000000000000000000000602082015250565b6000612220602783611bbc565b915061222b826121c4565b604082019050919050565b6000602082019050818103600083015261224f81612213565b9050919050565b7f436861696e4c6162656c3a2073696e676c652062757920616d6f756e7420657860008201527f6365656473206c696d6974000000000000000000000000000000000000000000602082015250565b60006122b2602b83611bbc565b91506122bd82612256565b604082019050919050565b600060208201905081810360008301526122e1816122a5565b9050919050565b7f436861696e4c6162656c3a2062616c616e636520616d6f756e7420657863656560008201527f6473206c696d6974000000000000000000000000000000000000000000000000602082015250565b6000612344602883611bbc565b915061234f826122e8565b604082019050919050565b6000602082019050818103600083015261237381612337565b9050919050565b600060608201905061238f6000830186611d72565b61239c6020830185611d72565b6123a96040830184611d9c565b949350505050565b600081519050919050565b600081905092915050565b60006123d2826123b1565b6123dc81856123bc565b93506123ec818560208601611bcd565b80840191505092915050565b600061240482846123c7565b915081905092915050565b61241881611d3c565b811461242357600080fd5b50565b6000815190506124358161240f565b92915050565b60006020828403121561245157612450611c63565b5b600061245f84828501612426565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b600061249e600383611bbc565b91506124a982612468565b602082019050919050565b600060208201905081810360008301526124cd81612491565b9050919050565b6124dd81611e50565b82525050565b6124ec81611c68565b82525050565b60006080820190506125076000830187611d72565b6125146020830186611d72565b61252160408301856124d4565b61252e60608301846124e3565b95945050505050565b60008151905061254681611c9a565b92915050565b60006020828403121561256257612561611c63565b5b600061257084828501612537565b91505092915050565b60008151905061258881611cd0565b92915050565b6000602082840312156125a4576125a3611c63565b5b60006125b284828501612579565b91505092915050565b60006125c6826120fb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000082036125f8576125f7612161565b5b816000039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061263d826120fb565b9150612648836120fb565b92508261265857612657612603565b5b828207905092915050565b600061266e826120fb565b9150612679836120fb565b92508282039050627fffff81137fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000821217156126b8576126b7612161565b5b92915050565b6126c781611c88565b82525050565b6126d681611e50565b82525050565b6126e5816120fb565b82525050565b6126f481611cc6565b82525050565b6101608201600082015161271160008501826126be565b50602082015161272460208501826126be565b50604082015161273760408501826126cd565b50606082015161274a60608501826126dc565b50608082015161275d60808501826126dc565b5060a082015161277060a08501826126eb565b5060c082015161278360c08501826126eb565b5060e082015161279660e08501826126eb565b506101008201516127ab6101008501826126eb565b506101208201516127c06101208501826126be565b506101408201516127d56101408501826126eb565b50505050565b6000610160820190506127f160008301846126fa565b92915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61281c816127f7565b811461282757600080fd5b50565b60008151905061283981612813565b92915050565b6000806000806080858703121561285957612858611c63565b5b600061286787828801612579565b94505060206128788782880161282a565b935050604061288987828801612579565b925050606061289a87828801612579565b91505092959194509250565b60006060820190506128bb6000830186611d72565b6128c86020830185611d9c565b6128d56040830184611d9c565b949350505050565b60006040820190506128f26000830185611d72565b6128ff6020830184611d9c565b9392505050565b7f5341000000000000000000000000000000000000000000000000000000000000600082015250565b600061293c600283611bbc565b915061294782612906565b602082019050919050565b6000602082019050818103600083015261296b8161292f565b905091905056fea2646970667358221220ee369346b1f703362ed0a21063c112c3e6d082868f654b844e1448d914a3223c64736f6c634300081800330000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88
Deployed Bytecode
0x60806040526004361061012a5760003560e01c806370a08231116100ab57806395d89b411161006f57806395d89b41146103c7578063a9059cbb146103f2578063bd5161d51461042f578063dd62ed3e1461045a578063f2fde38b14610497578063f928364c146104c05761012a565b806370a08231146102f2578063715018a61461032f5780637249b0d914610346578063762bb282146103715780638da5cb5b1461039c5761012a565b8063313ce567116100f2578063313ce5671461022a5780634a389755146102555780634f0e0ef314610280578063589210d9146102ab57806365697d4b146102d65761012a565b806306fdde031461012f578063095ea7b31461015a5780631755ff211461019757806318160ddd146101c257806323b872dd146101ed575b600080fd5b34801561013b57600080fd5b506101446104d7565b6040516101519190611c41565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c9190611cfc565b610569565b60405161018e9190611d57565b60405180910390f35b3480156101a357600080fd5b506101ac61058c565b6040516101b99190611d81565b60405180910390f35b3480156101ce57600080fd5b506101d76105b2565b6040516101e49190611dab565b60405180910390f35b3480156101f957600080fd5b50610214600480360381019061020f9190611dc6565b6105bc565b6040516102219190611d57565b60405180910390f35b34801561023657600080fd5b5061023f6105dd565b60405161024c9190611e35565b60405180910390f35b34801561026157600080fd5b5061026a6105e6565b6040516102779190611dab565b60405180910390f35b34801561028c57600080fd5b506102956105ec565b6040516102a29190611d81565b60405180910390f35b3480156102b757600080fd5b506102c0610612565b6040516102cd9190611dab565b60405180910390f35b6102f060048036038101906102eb9190611eb7565b610618565b005b3480156102fe57600080fd5b5061031960048036038101906103149190611f0a565b610800565b6040516103269190611dab565b60405180910390f35b34801561033b57600080fd5b50610344610848565b005b34801561035257600080fd5b5061035b61085c565b6040516103689190611dab565b60405180910390f35b34801561037d57600080fd5b50610386610862565b6040516103939190611dab565b60405180910390f35b3480156103a857600080fd5b506103b1610868565b6040516103be9190611d81565b60405180910390f35b3480156103d357600080fd5b506103dc610892565b6040516103e99190611c41565b60405180910390f35b3480156103fe57600080fd5b5061041960048036038101906104149190611cfc565b610924565b6040516104269190611d57565b60405180910390f35b34801561043b57600080fd5b50610444610943565b6040516104519190611d81565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c9190611f37565b610969565b60405161048e9190611dab565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b99190611f0a565b6109f0565b005b3480156104cc57600080fd5b506104d5610a76565b005b6060600380546104e690611fa6565b80601f016020809104026020016040519081016040528092919081815260200182805461051290611fa6565b801561055f5780601f106105345761010080835404028352916020019161055f565b820191906000526020600020905b81548152906001019060200180831161054257829003601f168201915b5050505050905090565b600080610574610a90565b9050610581818585610a98565b600191505092915050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b60006105c9848484610aaa565b6105d4848484610cb5565b90509392505050565b60006012905090565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b610620610ce4565b60003411610663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065a90612049565b60405180910390fd5b600083116106a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069d906120db565b60405180910390fd5b60003090506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16111561071157808280925081935050505b61071d30333088610d6b565b610725610ec3565b61073182828686610f4e565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c49190612134565b90506107d28383878461103e565b601e436107df9190612190565b6008819055506003436107f29190612190565b600981905550505050505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610850610ce4565b61085a60006113ef565b565b60085481565b60075481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546108a190611fa6565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd90611fa6565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b5050505050905090565b6000610931338484610aaa565b61093b83836114b5565b905092915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6109f8610ce4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a619190611d81565b60405180910390fd5b610a73816113ef565b50565b610a7e610ce4565b60006009819055506000600881905550565b600033905090565b610aa583838360016114d8565b505050565b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610b1257503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15610cb0576009544311610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290612236565b60405180910390fd5b436008541115610caf57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c0057600654811115610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf6906122c8565b60405180910390fd5b5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610cae5760075481610c6284610800565b610c6c9190612190565b1115610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca49061235a565b60405180910390fd5b5b5b5b505050565b600080610cc0610a90565b9050610ccd8582856116af565b610cd8858585611743565b60019150509392505050565b610cec610a90565b73ffffffffffffffffffffffffffffffffffffffff16610d0a610868565b73ffffffffffffffffffffffffffffffffffffffff1614610d6957610d2d610a90565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d609190611d81565b60405180910390fd5b565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610da29392919061237a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610e0c91906123f8565b6000604051808303816000865af19150503d8060008114610e49576040519150601f19603f3d011682016040523d82523d6000602084013e610e4e565b606091505b5091509150818015610e7c5750600081511480610e7b575080806020019051810190610e7a919061243b565b5b5b610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb2906124b4565b60405180910390fd5b505050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610f3257600080fd5b505af1158015610f46573d6000803e3d6000fd5b505050505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166313ead562868686866040518563ffffffff1660e01b8152600401610fb494939291906124f2565b6020604051808303816000875af1158015610fd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff7919061254c565b600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110799190611d81565b602060405180830381865afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba919061258e565b90506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111199190611d81565b602060405180830381865afa158015611136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115a919061258e565b905061118930600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611837565b6111d8600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611837565b3073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361121657808280925081935050505b6000837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27618611243906125bb565b61124d9190612632565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27618611277906125bb565b6112819190612663565b905060008161128f906125bb565b905060006040518061016001604052808a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1681526020018862ffffff1681526020018360020b81526020018460020b815260200186815260200185815260200160008152602001600081526020013373ffffffffffffffffffffffffffffffffffffffff168152602001603c426113379190612190565b81525090506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166388316456836040518263ffffffff1660e01b815260040161139c91906127db565b6080604051808303816000875af11580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113df919061283f565b5050505050505050505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806114c0610a90565b90506114cd818585611743565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361154a5760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016115419190611d81565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115bc5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016115b39190611d81565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156116a9578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516116a09190611dab565b60405180910390a35b50505050565b60006116bb8484610969565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461173d578181101561172d578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401611724939291906128a6565b60405180910390fd5b61173c848484840360006114d8565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117b55760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016117ac9190611d81565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118275760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161181e9190611d81565b60405180910390fd5b61183283838361198c565b505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b858560405160240161186c9291906128dd565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516118d691906123f8565b6000604051808303816000865af19150503d8060008114611913576040519150601f19603f3d011682016040523d82523d6000602084013e611918565b606091505b50915091508180156119465750600081511480611945575080806020019051810190611944919061243b565b5b5b611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197c90612952565b60405180910390fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119de5780600260008282546119d29190612190565b92505081905550611ab1565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611a6a578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611a61939291906128a6565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611afa5780600260008282540392505081905550611b47565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611ba49190611dab565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611beb578082015181840152602081019050611bd0565b60008484015250505050565b6000601f19601f8301169050919050565b6000611c1382611bb1565b611c1d8185611bbc565b9350611c2d818560208601611bcd565b611c3681611bf7565b840191505092915050565b60006020820190508181036000830152611c5b8184611c08565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c9382611c68565b9050919050565b611ca381611c88565b8114611cae57600080fd5b50565b600081359050611cc081611c9a565b92915050565b6000819050919050565b611cd981611cc6565b8114611ce457600080fd5b50565b600081359050611cf681611cd0565b92915050565b60008060408385031215611d1357611d12611c63565b5b6000611d2185828601611cb1565b9250506020611d3285828601611ce7565b9150509250929050565b60008115159050919050565b611d5181611d3c565b82525050565b6000602082019050611d6c6000830184611d48565b92915050565b611d7b81611c88565b82525050565b6000602082019050611d966000830184611d72565b92915050565b611da581611cc6565b82525050565b6000602082019050611dc06000830184611d9c565b92915050565b600080600060608486031215611ddf57611dde611c63565b5b6000611ded86828701611cb1565b9350506020611dfe86828701611cb1565b9250506040611e0f86828701611ce7565b9150509250925092565b600060ff82169050919050565b611e2f81611e19565b82525050565b6000602082019050611e4a6000830184611e26565b92915050565b600062ffffff82169050919050565b611e6881611e50565b8114611e7357600080fd5b50565b600081359050611e8581611e5f565b92915050565b611e9481611c68565b8114611e9f57600080fd5b50565b600081359050611eb181611e8b565b92915050565b600080600060608486031215611ed057611ecf611c63565b5b6000611ede86828701611ce7565b9350506020611eef86828701611e76565b9250506040611f0086828701611ea2565b9150509250925092565b600060208284031215611f2057611f1f611c63565b5b6000611f2e84828501611cb1565b91505092915050565b60008060408385031215611f4e57611f4d611c63565b5b6000611f5c85828601611cb1565b9250506020611f6d85828601611cb1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611fbe57607f821691505b602082108103611fd157611fd0611f77565b5b50919050565b7f436861696e4c6162656c3a206d7573742073656e6420657468657220746f206160008201527f6464206c69717569646974790000000000000000000000000000000000000000602082015250565b6000612033602c83611bbc565b915061203e82611fd7565b604082019050919050565b6000602082019050818103600083015261206281612026565b9050919050565b7f436861696e4c6162656c3a206d7573742073656e6420746f6b656e20746f206160008201527f6464206c69717569646974790000000000000000000000000000000000000000602082015250565b60006120c5602c83611bbc565b91506120d082612069565b604082019050919050565b600060208201905081810360008301526120f4816120b8565b9050919050565b60008160020b9050919050565b612111816120fb565b811461211c57600080fd5b50565b60008151905061212e81612108565b92915050565b60006020828403121561214a57612149611c63565b5b60006121588482850161211f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061219b82611cc6565b91506121a683611cc6565b92508282019050808211156121be576121bd612161565b5b92915050565b7f436861696e4c6162656c3a207472616e73666572206973206e6f7420616c6c6f60008201527f7765642079657400000000000000000000000000000000000000000000000000602082015250565b6000612220602783611bbc565b915061222b826121c4565b604082019050919050565b6000602082019050818103600083015261224f81612213565b9050919050565b7f436861696e4c6162656c3a2073696e676c652062757920616d6f756e7420657860008201527f6365656473206c696d6974000000000000000000000000000000000000000000602082015250565b60006122b2602b83611bbc565b91506122bd82612256565b604082019050919050565b600060208201905081810360008301526122e1816122a5565b9050919050565b7f436861696e4c6162656c3a2062616c616e636520616d6f756e7420657863656560008201527f6473206c696d6974000000000000000000000000000000000000000000000000602082015250565b6000612344602883611bbc565b915061234f826122e8565b604082019050919050565b6000602082019050818103600083015261237381612337565b9050919050565b600060608201905061238f6000830186611d72565b61239c6020830185611d72565b6123a96040830184611d9c565b949350505050565b600081519050919050565b600081905092915050565b60006123d2826123b1565b6123dc81856123bc565b93506123ec818560208601611bcd565b80840191505092915050565b600061240482846123c7565b915081905092915050565b61241881611d3c565b811461242357600080fd5b50565b6000815190506124358161240f565b92915050565b60006020828403121561245157612450611c63565b5b600061245f84828501612426565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b600061249e600383611bbc565b91506124a982612468565b602082019050919050565b600060208201905081810360008301526124cd81612491565b9050919050565b6124dd81611e50565b82525050565b6124ec81611c68565b82525050565b60006080820190506125076000830187611d72565b6125146020830186611d72565b61252160408301856124d4565b61252e60608301846124e3565b95945050505050565b60008151905061254681611c9a565b92915050565b60006020828403121561256257612561611c63565b5b600061257084828501612537565b91505092915050565b60008151905061258881611cd0565b92915050565b6000602082840312156125a4576125a3611c63565b5b60006125b284828501612579565b91505092915050565b60006125c6826120fb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000082036125f8576125f7612161565b5b816000039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061263d826120fb565b9150612648836120fb565b92508261265857612657612603565b5b828207905092915050565b600061266e826120fb565b9150612679836120fb565b92508282039050627fffff81137fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000821217156126b8576126b7612161565b5b92915050565b6126c781611c88565b82525050565b6126d681611e50565b82525050565b6126e5816120fb565b82525050565b6126f481611cc6565b82525050565b6101608201600082015161271160008501826126be565b50602082015161272460208501826126be565b50604082015161273760408501826126cd565b50606082015161274a60608501826126dc565b50608082015161275d60808501826126dc565b5060a082015161277060a08501826126eb565b5060c082015161278360c08501826126eb565b5060e082015161279660e08501826126eb565b506101008201516127ab6101008501826126eb565b506101208201516127c06101208501826126be565b506101408201516127d56101408501826126eb565b50505050565b6000610160820190506127f160008301846126fa565b92915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61281c816127f7565b811461282757600080fd5b50565b60008151905061283981612813565b92915050565b6000806000806080858703121561285957612858611c63565b5b600061286787828801612579565b94505060206128788782880161282a565b935050604061288987828801612579565b925050606061289a87828801612579565b91505092959194509250565b60006060820190506128bb6000830186611d72565b6128c86020830185611d9c565b6128d56040830184611d9c565b949350505050565b60006040820190506128f26000830185611d72565b6128ff6020830184611d9c565b9392505050565b7f5341000000000000000000000000000000000000000000000000000000000000600082015250565b600061293c600283611bbc565b915061294782612906565b602082019050919050565b6000602082019050818103600083015261296b8161292f565b905091905056fea2646970667358221220ee369346b1f703362ed0a21063c112c3e6d082868f654b844e1448d914a3223c64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88
-----Decoded View---------------
Arg [0] : amount (uint256): 1000000000000000000000000000
Arg [1] : wethAddress_ (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : nfpManagerAddress_ (address): 0xC36442b4a4522E871399CD717aBDD847Ab11FE88
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.