Source Code
Overview
S Balance
More Info
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
FarmingCenter
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 99999999 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: BUSL-1.1pragma solidity =0.8.20;import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';import '@cryptoalgebra/integral-core/contracts/interfaces/IERC20Minimal.sol';import '@cryptoalgebra/integral-periphery/contracts/interfaces/IPositionFollower.sol';import '@cryptoalgebra/integral-periphery/contracts/interfaces/INonfungiblePositionManager.sol';import '@cryptoalgebra/integral-periphery/contracts/base/Multicall.sol';import '@cryptoalgebra/integral-periphery/contracts/libraries/PoolAddress.sol';import '@cryptoalgebra/integral-base-plugin/contracts/interfaces/plugins/IFarmingPlugin.sol';import './interfaces/IFarmingCenter.sol';import './libraries/IncentiveId.sol';/// @title Algebra Integral 1.0 main farming contract/// @dev Manages farmings and performs entry, exit and other actions.contract FarmingCenter is IFarmingCenter, IPositionFollower, Multicall {/// @inheritdoc IFarmingCenterIAlgebraEternalFarming public immutable override eternalFarming;/// @inheritdoc IFarmingCenterINonfungiblePositionManager public immutable override nonfungiblePositionManager;/// @inheritdoc IFarmingCenteraddress public immutable override algebraPoolDeployer;/// @inheritdoc IFarmingCentermapping(address poolAddress => address virtualPoolAddress) public override virtualPoolAddresses;
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title The interface for the Algebra farming plugin/// @dev This contract used for virtual pools in farmsinterface IFarmingPlugin {/// @notice Emitted when new activeIncentive is set/// @param newIncentive The address of the new incentiveevent Incentive(address newIncentive);/// @notice Returns the address of the pool the plugin is created for/// @return address of the poolfunction pool() external view returns (address);/// @notice Connects or disconnects an incentive./// @dev Only farming can connect incentives./// The one who connected it and the current farming has the right to disconnect the incentive./// @param newIncentive The address associated with the incentive or zero addressfunction setIncentive(address newIncentive) external;/// @notice Checks if the incentive is connected to pool/// @dev Returns false if the plugin has a different incentive set, the plugin is not connected to the pool,/// or the plugin configuration is incorrect./// @param targetIncentive The address of the incentive to be checked/// @return Indicates whether the target incentive is activefunction isIncentiveConnected(address targetIncentive) external view returns (bool);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.8.4;import './pool/IAlgebraPoolImmutables.sol';import './pool/IAlgebraPoolState.sol';import './pool/IAlgebraPoolActions.sol';import './pool/IAlgebraPoolPermissionedActions.sol';import './pool/IAlgebraPoolEvents.sol';import './pool/IAlgebraPoolErrors.sol';/// @title The interface for a Algebra Pool/// @dev The pool interface is broken up into many smaller pieces./// This interface includes custom error definitions and cannot be used in older versions of Solidity./// For older versions of Solidity use #IAlgebraPoolLegacy/// Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPool isIAlgebraPoolImmutables,IAlgebraPoolState,IAlgebraPoolActions,IAlgebraPoolPermissionedActions,IAlgebraPoolEvents,IAlgebraPoolErrors{// used only for combining interfaces}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Minimal ERC20 interface for Algebra/// @notice Contains a subset of the full ERC20 interface that is used in Algebra/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IERC20Minimal {/// @notice Returns the balance of a token/// @param account The account for which to look up the number of tokens it has, i.e. its balance/// @return The number of tokens held by the accountfunction balanceOf(address account) external view returns (uint256);/// @notice Transfers the amount of token from the `msg.sender` to the recipient/// @param recipient The account that will receive the amount transferred/// @param amount The number of tokens to send from the sender to the recipient/// @return Returns true for a successful transfer, false for an unsuccessful transferfunction transfer(address recipient, uint256 amount) external returns (bool);/// @notice Returns the current allowance given to a spender by an owner/// @param owner The account of the token owner/// @param spender The account of the token spender/// @return The current allowance granted by `owner` to `spender`function allowance(address owner, address spender) external view returns (uint256);/// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Permissionless pool actions/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPoolActions {/// @notice Sets the initial price for the pool/// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value/// @dev Initialization should be done in one transaction with pool creation to avoid front-running/// @param initialPrice The initial sqrt price of the pool as a Q64.96function initialize(uint160 initialPrice) external;/// @notice Adds liquidity for the given recipient/bottomTick/topTick position/// @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback/// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends/// on bottomTick, topTick, the amount of liquidity, and the current price./// @param leftoversRecipient The address which will receive potential surplus of paid tokens/// @param recipient The address for which the liquidity will be created/// @param bottomTick The lower tick of the position in which to add liquidity/// @param topTick The upper tick of the position in which to add liquidity/// @param liquidityDesired The desired 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/// @return liquidityActual The actual minted amount of liquidity
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.8.4;/// @title Errors emitted by a pool/// @notice Contains custom errors emitted by the pool/// @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidityinterface IAlgebraPoolErrors {// #### pool errors ####/// @notice Emitted by the reentrancy guarderror locked();/// @notice Emitted if arithmetic error occurrederror arithmeticError();/// @notice Emitted if an attempt is made to initialize the pool twiceerror alreadyInitialized();/// @notice Emitted if an attempt is made to mint or swap in uninitialized poolerror notInitialized();/// @notice Emitted if 0 is passed as amountRequired to swap functionerror zeroAmountRequired();/// @notice Emitted if invalid amount is passed as amountRequired to swap functionerror invalidAmountRequired();
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Events emitted by a pool/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPoolEvents {/// @notice Emitted exactly once by a pool when #initialize is first called on the pool/// @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize/// @param price 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 poolevent Initialize(uint160 price, 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 bottomTick The lower tick of the position/// @param topTick The upper tick of the position/// @param liquidityAmount 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 liquidityevent Mint(address sender,address indexed owner,int24 indexed bottomTick,int24 indexed topTick,
12345678910111213141516171819202122232425// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Pool state that never changes/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPoolImmutables {/// @notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface/// @return The contract addressfunction factory() external view returns (address);/// @notice The first of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token0() external view returns (address);/// @notice The second of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token1() external view returns (address);/// @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 tickfunction maxLiquidityPerTick() external view returns (uint128);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Permissioned pool actions/// @notice Contains pool methods that may only be called by permissioned addresses/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPoolPermissionedActions {/// @notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role/// @param newCommunityFee The new community fee percent in thousandths (1e-3)function setCommunityFee(uint16 newCommunityFee) external;/// @notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role/// @param newTickSpacing The new tick spacing valuefunction setTickSpacing(int24 newTickSpacing) external;/// @notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role/// @param newPluginAddress The new plugin addressfunction setPlugin(address newPluginAddress) external;/// @notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role/// @param newConfig In the new configuration of the plugin,/// each bit of which is responsible for a particular hook.function setPluginConfig(uint8 newConfig) external;/// @notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
1234567891011121314151617181920212223// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Pool state that can change/// @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility/// of manipulation (including read-only reentrancy)./// This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfacesinterface IAlgebraPoolState {/// @notice Safely get most important state values of Algebra Integral AMM/// @dev Several values exposed as a single method to save gas when accessed externally./// **Important security note: this method checks reentrancy lock and should be preferred in most cases**./// @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value/// @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tickboundary/// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if usingdynamic fee plugin/// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/offdynamic fees logic/// @return activeLiquidity The currently in-range liquidity available to the pool/// @return nextTick The next initialized tick after current global tick/// @return previousTick The previous initialized tick before (or at) current global tickfunction safelyGetStateOfAMM()externalviewreturns (uint160 sqrtPrice, int24 tick, uint16 lastFee, uint8 pluginConfig, uint128 activeLiquidity, int24 nextTick, int24 previousTick);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity =0.8.20;import '../interfaces/IMulticall.sol';/// @title Multicall/// @notice Enables calling multiple methods in a single call to the contractabstract contract Multicall is IMulticall {/// @inheritdoc IMulticallfunction multicall(bytes[] calldata data) external payable override returns (bytes[] memory results) {results = new bytes[](data.length);unchecked {for (uint256 i = 0; i < data.length; i++) {(bool success, bytes memory result) = address(this).delegatecall(data[i]);if (!success) {// Look for revert reason and bubble it up if presentrequire(result.length > 0);// The easiest way to bubble the revert reason is using memory via assemblyassembly ('memory-safe') {revert(add(32, result), mload(result))}}results[i] = result;}}}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.5;import '@openzeppelin/contracts/token/ERC721/IERC721.sol';/// @title ERC721 with permit/// @notice Extension to ERC721 that includes a permit function for signature based approvalsinterface IERC721Permit is IERC721 {/// @notice The permit typehash used in the permit signature/// @return The typehash for the permitfunction PERMIT_TYPEHASH() external pure returns (bytes32);/// @notice The domain separator used in the permit signature/// @return The domain separator used in encoding of permit signaturefunction DOMAIN_SEPARATOR() external view returns (bytes32);/// @notice Approve of a specific token ID for spending by spender via signature/// @param spender The account that is being approved/// @param tokenId The ID of the token that is being approved for spending/// @param deadline The deadline timestamp by which the call must be mined for the approve to work/// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`/// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`/// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`function permit(address spender,uint256 tokenId,
12345678910111213// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.5;pragma abicoder v2;/// @title Multicall interface/// @notice Enables calling multiple methods in a single call to the contractinterface IMulticall {/// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed/// @dev The `msg.value` should not be trusted for any method callable from multicall./// @param data The encoded function data for each of the calls to make to this contract/// @return results The results from each of the calls passed in via datafunction multicall(bytes[] calldata data) external payable returns (bytes[] memory results);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.5;pragma abicoder v2;import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';import './IPoolInitializer.sol';import './IERC721Permit.sol';import './IPeripheryPayments.sol';import './IPeripheryImmutableState.sol';/// @title Non-fungible token for positions/// @notice Wraps Algebra positions in a non-fungible token interface which allows for them to be transferred/// and authorized./// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-peripheryinterface INonfungiblePositionManager isIPoolInitializer,IPeripheryPayments,IPeripheryImmutableState,IERC721Metadata,IERC721Enumerable,IERC721Permit{
1234567891011121314151617// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Immutable state/// @notice Functions that return immutable state of the router/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-peripheryinterface IPeripheryImmutableState {/// @return Returns the address of the Algebra factoryfunction factory() external view returns (address);/// @return Returns the address of the pool Deployerfunction poolDeployer() external view returns (address);/// @return Returns the address of WNativeTokenfunction WNativeToken() external view returns (address);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.5;/// @title Periphery Payments/// @notice Functions to ease deposits and withdrawals of NativeToken/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-peripheryinterface IPeripheryPayments {/// @notice Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken./// @dev The amountMinimum parameter prevents malicious contracts from stealing WNativeToken from users./// @param amountMinimum The minimum amount of WNativeToken to unwrap/// @param recipient The address receiving NativeTokenfunction unwrapWNativeToken(uint256 amountMinimum, address recipient) external payable;/// @notice Refunds any NativeToken balance held by this contract to the `msg.sender`/// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps/// that use ether for the input amountfunction refundNativeToken() external payable;/// @notice Transfers the full amount of a token held by this contract to recipient/// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users/// @param token The contract address of the token which will be transferred to `recipient`/// @param amountMinimum The minimum amount of token required for a transfer/// @param recipient The destination address of the tokenfunction sweepToken(address token,
12345678910111213141516171819202122// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.5;pragma abicoder v2;/// @title Creates and initializes Algebra Pools/// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that/// require the pool to exist./// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-peripheryinterface IPoolInitializer {/// @notice Creates a new pool if it does not exist, then initializes if not initialized/// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool/// @param token0 The contract address of token0 of the pool/// @param token1 The contract address of token1 of the pool/// @param 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 necessaryfunction createAndInitializePoolIfNecessary(address token0,address token1,uint160 sqrtPriceX96) external payable returns (address pool);}
1234567891011// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Contract tracking liquidity position/// @notice Using these methods farmingCenter receives information about changes in the positionsinterface IPositionFollower {/// @notice Report a change of liquidity in position/// @param tokenId The ID of the token for which liquidity is being added/// @param liquidityDelta The amount of added liquidityfunction applyLiquidityDelta(uint256 tokenId, int256 liquidityDelta) external;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Provides functions for deriving a pool address from the poolDeployer and tokens/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:/// https://github.com/Uniswap/v3-peripherylibrary PoolAddress {bytes32 internal constant POOL_INIT_CODE_HASH = 0x7ad6d0ce98ed223f933cd03dac575a6c1e547bc182dd71411f84e8859987caef;/// @notice The identifying key of the poolstruct PoolKey {address token0;address token1;}/// @notice Returns PoolKey: the ordered tokens/// @param tokenA The first token of a pool, unsorted/// @param tokenB The second token of a pool, unsorted/// @return Poolkey The pool details with ordered token0 and token1 assignmentsfunction getPoolKey(address tokenA, address tokenB) internal pure returns (PoolKey memory) {if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA);return PoolKey({token0: tokenA, token1: tokenB});}/// @notice Deterministically computes the pool address given the poolDeployer and PoolKey/// @param poolDeployer The Algebra poolDeployer contract address
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)pragma solidity ^0.8.0;import "../IERC721.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional enumeration extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721Enumerable is IERC721 {/*** @dev Returns the total amount of tokens stored by the contract.*/function totalSupply() external view returns (uint256);/*** @dev Returns a token ID owned by `owner` at a given `index` of its token list.* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.*/function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);/*** @dev Returns a token ID at a given `index` of all the tokens stored by the contract.* Use along with {totalSupply} to enumerate all tokens.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)pragma solidity ^0.8.0;import "../IERC721.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional metadata extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721Metadata is IERC721 {/*** @dev Returns the token collection name.*/function name() external view returns (string memory);/*** @dev Returns the token collection symbol.*/function symbol() external view returns (string memory);/*** @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.*/function tokenURI(uint256 tokenId) external view returns (string memory);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)pragma solidity ^0.8.0;import "../../utils/introspection/IERC165.sol";/*** @dev Required interface of an ERC721 compliant contract.*/interface IERC721 is IERC165 {/*** @dev Emitted when `tokenId` token is transferred from `from` to `to`.*/event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.*/event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.*/event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
12345678910111213141516171819202122232425// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC165 standard, as defined in the* https://eips.ethereum.org/EIPS/eip-165[EIP].** Implementers can declare support of contract interfaces, which can then be* queried by others ({ERC165Checker}).** For an implementation, see {ERC165}.*/interface IERC165 {/*** @dev Returns true if this contract implements the interface defined by* `interfaceId`. See the corresponding* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]* to learn more about how these ids are created.** This function call must use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) external view returns (bool);}
1234567891011121314151617// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.6;pragma abicoder v2;import '@cryptoalgebra/integral-core/contracts/interfaces/IERC20Minimal.sol';import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';/// @param rewardToken The token being distributed as a reward (token0)/// @param bonusRewardToken The bonus token being distributed as a reward (token1)/// @param pool The Algebra pool/// @param nonce The nonce of incentivestruct IncentiveKey {IERC20Minimal rewardToken;IERC20Minimal bonusRewardToken;IAlgebraPool pool;uint256 nonce;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.8.4;import '@cryptoalgebra/integral-periphery/contracts/interfaces/INonfungiblePositionManager.sol';import '../base/IncentiveKey.sol';/// @title Algebra Eternal Farming Interface/// @notice Allows farming nonfungible liquidity tokens in exchange for reward tokens without locking NFT for incentive timeinterface IAlgebraEternalFarming {/// @notice Details of the incentive to createstruct IncentiveParams {uint128 reward; // The amount of reward tokens to be distributeduint128 bonusReward; // The amount of bonus reward tokens to be distributeduint128 rewardRate; // The rate of reward distribution per seconduint128 bonusRewardRate; // The rate of bonus reward distribution per seconduint24 minimalPositionWidth; // The minimal allowed width of position (tickUpper - tickLower)}error farmDoesNotExist();error tokenAlreadyFarmed();error incentiveNotExist();error incentiveStopped();error anotherFarmingIsActive();error pluginNotConnected();error minimalPositionWidthTooWide();
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.6;pragma abicoder v2;import '@cryptoalgebra/integral-core/contracts/interfaces/IERC20Minimal.sol';import '@cryptoalgebra/integral-periphery/contracts/interfaces/IMulticall.sol';import '@cryptoalgebra/integral-periphery/contracts/interfaces/INonfungiblePositionManager.sol';import '@cryptoalgebra/integral-base-plugin/contracts/interfaces/plugins/IFarmingPlugin.sol';import '../base/IncentiveKey.sol';import '../interfaces/IAlgebraEternalFarming.sol';/// @title Algebra main farming contract interface/// @dev Manages users deposits and performs entry, exit and other actions.interface IFarmingCenter is IMulticall {/// @notice Returns current virtual pool address for Algebra poolfunction virtualPoolAddresses(address poolAddress) external view returns (address virtualPoolAddresses);/// @notice The nonfungible position manager with which this farming contract is compatiblefunction nonfungiblePositionManager() external view returns (INonfungiblePositionManager);/// @notice The eternal farming contractfunction eternalFarming() external view returns (IAlgebraEternalFarming);
12345678910111213// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.7.6;import '../base/IncentiveKey.sol';library IncentiveId {/// @notice Calculate the key for a farming incentive/// @param key The components used to compute the incentive identifier/// @return incentiveId The identifier for the incentivefunction compute(IncentiveKey memory key) internal pure returns (bytes32 incentiveId) {return keccak256(abi.encode(key));}}
1234567891011121314151617181920212223{"evmVersion": "paris","optimizer": {"enabled": true,"runs": 99999999},"metadata": {"bytecodeHash": "none"},"outputSelection": {"*": {"*": ["evm.bytecode","evm.deployedBytecode","devdoc","userdoc","metadata","abi"]}},"libraries": {}}
[{"inputs":[{"internalType":"contract IAlgebraEternalFarming","name":"_eternalFarming","type":"address"},{"internalType":"contract INonfungiblePositionManager","name":"_nonfungiblePositionManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"algebraPoolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"int256","name":"","type":"int256"}],"name":"applyLiquidityDelta","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountRequested","type":"uint256"}],"name":"claimReward","outputs":[{"internalType":"uint256","name":"rewardBalanceBefore","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IERC20Minimal","name":"bonusRewardToken","type":"address"},{"internalType":"contract IAlgebraPool","name":"pool","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"collectRewards","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"bonusReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVirtualPool","type":"address"},{"internalType":"contract IFarmingPlugin","name":"plugin","type":"address"}],"name":"connectVirtualPoolToPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"bytes32","name":"incentiveId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"virtualPool","type":"address"},{"internalType":"contract IFarmingPlugin","name":"plugin","type":"address"}],"name":"disconnectVirtualPoolFromPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IERC20Minimal","name":"bonusRewardToken","type":"address"},{"internalType":"contract IAlgebraPool","name":"pool","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"enterFarming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eternalFarming","outputs":[{"internalType":"contract IAlgebraEternalFarming","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IERC20Minimal","name":"bonusRewardToken","type":"address"},{"internalType":"contract IAlgebraPool","name":"pool","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exitFarming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"incentiveId","type":"bytes32"}],"name":"incentiveKeys","outputs":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IERC20Minimal","name":"bonusRewardToken","type":"address"},{"internalType":"contract IAlgebraPool","name":"pool","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nonfungiblePositionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress","type":"address"}],"name":"virtualPoolAddresses","outputs":[{"internalType":"address","name":"virtualPoolAddress","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040516200278e3803806200278e8339810160408190526200003491620000d9565b6001600160a01b03808316608052811660a08190526040805163188c824d60e11b81529051633119049a916004808201926020929091908290030181865afa15801562000085573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ab919062000118565b6001600160a01b031660c052506200013f9050565b6001600160a01b0381168114620000d657600080fd5b50565b60008060408385031215620000ed57600080fd5b8251620000fa81620000c0565b60208401519092506200010d81620000c0565b809150509250929050565b6000602082840312156200012b57600080fd5b81516200013881620000c0565b9392505050565b60805160a05160c05161258c6200020260003960008181610116015261185c01526000818161036901528181610675015281816107670152818161084201528181610ab001528181610c1e01528181610d2f0152818161115901528181611227015281816112f101528181611bf20152611cae0152600081816103bd015281816105c701528181610b5c01528181610cf101528181611468015281816114d50152818161157f01528181611657015281816116e20152611afb015261258c6000f3fe6080604052600436106100dd5760003560e01c80636af00aee1161007f578063b02c43d011610059578063b02c43d01461032a578063b44a272214610357578063d68516bc1461038b578063de2356d1146103ab57600080fd5b80636af00aee146102335780638c27f1f614610268578063ac9650d81461030a57600080fd5b80632f2d783d116100bb5780632f2d783d1461018257806332dc5a25146101b05780634473eca6146101f35780635739f0b91461021357600080fd5b806306e65c90146100e257806314258256146101045780632bd34c4814610162575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611efc565b6103df565b005b34801561011057600080fd5b506101387f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561016e57600080fd5b5061010261017d366004611f40565b6103ec565b34801561018e57600080fd5b506101a261019d366004611f89565b61056a565b604051908152602001610159565b3480156101bc57600080fd5b506101386101cb366004611fca565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3480156101ff57600080fd5b5061010261020e36600461201d565b61063e565b34801561021f57600080fd5b5061010261022e36600461201d565b61080b565b34801561023f57600080fd5b5061025361024e36600461201d565b610bcd565b60408051928352602083019190915201610159565b34801561027457600080fd5b506102c86102833660046120d1565b6002602081905260009182526040909120805460018201549282015460039092015473ffffffffffffffffffffffffffffffffffffffff918216938216929091169084565b604051610159949392919073ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b61031d6103183660046120ea565b610e35565b604051610159919061215f565b34801561033657600080fd5b506101a26103453660046120d1565b60016020526000908152604090205481565b34801561036357600080fd5b506101387f000000000000000000000000000000000000000000000000000000000000000081565b34801561039757600080fd5b506101026103a6366004611f40565b610f56565b3480156103b757600080fd5b506101387f000000000000000000000000000000000000000000000000000000000000000081565b6103e882611141565b5050565b60006103f883836116c8565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16631d4632ac6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190612238565b73ffffffffffffffffffffffffffffffffffffffff160361051c576040517f7c1fe0c80000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff831690637c1fe0c890602401600060405180830381600087803b15801561050357600080fd5b505af1158015610517573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff16600090815260208190526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555050565b6040517f0a53075400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301523360248301528381166044830152606482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690630a530754906084016020604051808303816000875af1158015610612573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106369190612255565b949350505050565b6040517f430c20810000000000000000000000000000000000000000000000000000000081523360048201526024810182905281907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063430c208190604401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f5919061226e565b610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e0000000000000000000060448201526064015b60405180910390fd5b61080683837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b81526004016107c091815260200190565b602060405180830381865afa1580156107dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108019190612238565b611a36565b505050565b6040517f430c20810000000000000000000000000000000000000000000000000000000081523360048201526024810182905281907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063430c208190604401602060405180830381865afa15801561089e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c2919061226e565b610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e000000000000000000006044820152606401610757565b600061093384611b6b565b6000818152600260208190526040909120015490915073ffffffffffffffffffffffffffffffffffffffff166109ef57600081815260026020818152604092839020875181547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff9283161783559289015160018301805485169183169190911790559388015192810180549092169290931691909117905560608501516003909101555b60008381526001602052604090205415610a65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f546f6b656e20616c7265616479206661726d65640000000000000000000000006044820152606401610757565b60008381526001602081905260409182902083905590517f702275150000000000000000000000000000000000000000000000000000000081526004810185905260248101919091527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690637022751590604401600060405180830381600087803b158015610b0957600080fd5b505af1158015610b1d573d6000803e3d6000fd5b50506040517f5739f0b900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169250635739f0b99150610b959087908790600401612290565b600060405180830381600087803b158015610baf57600080fd5b505af1158015610bc3573d6000803e3d6000fd5b5050505050505050565b6040517f430c2081000000000000000000000000000000000000000000000000000000008152336004820152602481018290526000908190839073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063430c208190604401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c89919061226e565b610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e000000000000000000006044820152606401610757565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663046ec16686867f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b8152600401610d8891815260200190565b602060405180830381865afa158015610da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc99190612238565b6040518463ffffffff1660e01b8152600401610de7939291906122e8565b60408051808303816000875af1158015610e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e29919061235d565b90969095509350505050565b60608167ffffffffffffffff811115610e5057610e50611fee565b604051908082528060200260200182016040528015610e8357816020015b6060815260200190600190039081610e6e5790505b50905060005b82811015610f4f5760008030868685818110610ea757610ea7612381565b9050602002810190610eb991906123b0565b604051610ec792919061241c565b600060405180830381855af49150503d8060008114610f02576040519150601f19603f3d011682016040523d82523d6000602084013e610f07565b606091505b509150915081610f27576000815111610f1f57600080fd5b805181602001fd5b80848481518110610f3a57610f3a612381565b60209081029190910101525050600101610e89565b5092915050565b6000610f6283836116c8565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16631d4632ac6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb9190612238565b73ffffffffffffffffffffffffffffffffffffffff1614611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f416e6f7468657220696e63656e7469766520697320636f6e6e656374656400006044820152606401610757565b6040517f7c1fe0c800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152831690637c1fe0c890602401600060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff908116600090815260208190526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016939091169290921790915550565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146111e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f6e6c79206e6f6e66756e6769626c65506f734d616e616765720000000000006044820152606401610757565b60008181526001602052604090205480156103e8576040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e90602401602060405180830381865afa158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190612238565b6040517f99fbab880000000000000000000000000000000000000000000000000000000081526004810185905290915060009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906399fbab889060240161016060405180830381865afa158015611339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135d919061245e565b50505060008b8152600260208181526040928390208351608081018552815473ffffffffffffffffffffffffffffffffffffffff908116825260018301548116938201939093529281015490911692820192909252600390910154606082015291985090965050506fffffffffffffffffffffffffffffffff8616159350839250611416915050575060408082015173ffffffffffffffffffffffffffffffffffffffff90811660009081526020819052919091205416155b1561142b57611426818685611a36565b6116c1565b6040517f36808b1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906336808b19906114a1908490899088906004016122e8565b600060405180830381600087803b1580156114bb57600080fd5b505af11580156114cf573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b5bae00a61151883611b6b565b6040518263ffffffff1660e01b815260040161153691815260200190565b602060405180830381865afa158015611553573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611577919061226e565b8061160c57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f22563196040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160c919061226e565b1561161a5761142685611b9b565b6040517f5739f0b900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690635739f0b99061168e9084908990600401612290565b600060405180830381600087803b1580156116a857600080fd5b505af11580156116bc573d6000803e3d6000fd5b505050505b5050505050565b60003373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614611769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f6e6c79206661726d696e672063616e2063616c6c20746869730000000000006044820152606401610757565b73ffffffffffffffffffffffffffffffffffffffff83166117e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5a65726f2061646472657373206173207669727475616c20706f6f6c000000006044820152606401610757565b8173ffffffffffffffffffffffffffffffffffffffff166316f0115b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118559190612238565b905061199c7f000000000000000000000000000000000000000000000000000000000000000060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f59190612238565b73ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190612238565b73ffffffffffffffffffffffffffffffffffffffff169052611d1e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c696420706f6f6c00000000000000000000000000000000000000006044820152606401610757565b92915050565b611a3f83611b6b565b60008381526001602052604090205414611ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e76616c696420696e63656e746976654964000000000000000000000000006044820152606401610757565b611abe82611b9b565b6040517f36808b1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906336808b1990611b34908690869086906004016122e8565b600060405180830381600087803b158015611b4e57600080fd5b505af1158015611b62573d6000803e3d6000fd5b50505050505050565b600081604051602001611b7e9190612534565b604051602081830303815290604052805190602001209050919050565b60008181526001602052604080822091909155517fe7ce18a300000000000000000000000000000000000000000000000000000000815260048101829052309073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063e7ce18a390602401602060405180830381865afa158015611c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5d9190612238565b73ffffffffffffffffffffffffffffffffffffffff1603611d1b576040517f7022751500000000000000000000000000000000000000000000000000000000815260048101829052600060248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690637022751590604401600060405180830381600087803b158015611d0757600080fd5b505af11580156116c1573d6000803e3d6000fd5b50565b6000816020015173ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1610611dbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e730000000000000000006044820152606401610757565b8282600001518360200151604051602001611dfb92919073ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290528051602091820120611ebf939290917f7ad6d0ce98ed223f933cd03dac575a6c1e547bc182dd71411f84e8859987caef91017fff00000000000000000000000000000000000000000000000000000000000000815260609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660018401526015830191909152603582015260550190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209392505050565b60008060408385031215611f0f57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff81168114611d1b57600080fd5b60008060408385031215611f5357600080fd5b8235611f5e81611f1e565b91506020830135611f6e81611f1e565b809150509250929050565b8035611f8481611f1e565b919050565b600080600060608486031215611f9e57600080fd5b8335611fa981611f1e565b92506020840135611fb981611f1e565b929592945050506040919091013590565b600060208284031215611fdc57600080fd5b8135611fe781611f1e565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008082840360a081121561203157600080fd5b608081121561203f57600080fd5b506040516080810181811067ffffffffffffffff8211171561208a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405261209684611f79565b81526120a460208501611f79565b60208201526120b560408501611f79565b6040820152606084810135908201529460809093013593505050565b6000602082840312156120e357600080fd5b5035919050565b600080602083850312156120fd57600080fd5b823567ffffffffffffffff8082111561211557600080fd5b818501915085601f83011261212957600080fd5b81358181111561213857600080fd5b8660208260051b850101111561214d57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b87010192508387016000805b8381101561221f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc089870301855282518051808852835b818110156121da578281018a01518982018b015289016121bf565b508781018901849052601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909601870195509386019391860191600101612187565b509398975050505050505050565b8051611f8481611f1e565b60006020828403121561224a57600080fd5b8151611fe781611f1e565b60006020828403121561226757600080fd5b5051919050565b60006020828403121561228057600080fd5b81518015158114611fe757600080fd5b60a081016122db828573ffffffffffffffffffffffffffffffffffffffff80825116835280602083015116602084015280604083015116604084015250606081015160608301525050565b8260808301529392505050565b60c08101612333828673ffffffffffffffffffffffffffffffffffffffff80825116835280602083015116602084015280604083015116604084015250606081015160608301525050565b83608083015273ffffffffffffffffffffffffffffffffffffffff831660a0830152949350505050565b6000806040838503121561237057600080fd5b505080516020909101519092909150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126123e557600080fd5b83018035915067ffffffffffffffff82111561240057600080fd5b60200191503681900382131561241557600080fd5b9250929050565b8183823760009101908152919050565b8051600281900b8114611f8457600080fd5b80516fffffffffffffffffffffffffffffffff81168114611f8457600080fd5b60008060008060008060008060008060006101608c8e03121561248057600080fd5b8b516affffffffffffffffffffff8116811461249b57600080fd5b60208d0151909b506124ac81611f1e565b60408d0151909a506124bd81611f1e565b98506124cb60608d0161222d565b97506124d960808d0161242c565b96506124e760a08d0161242c565b95506124f560c08d0161243e565b945060e08c015193506101008c015192506125136101208d0161243e565b91506125226101408d0161243e565b90509295989b509295989b9093969950565b60808101611a30828473ffffffffffffffffffffffffffffffffffffffff8082511683528060208301511660208401528060408301511660408401525060608101516060830152505056fea164736f6c6343000814000a0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a6000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c80636af00aee1161007f578063b02c43d011610059578063b02c43d01461032a578063b44a272214610357578063d68516bc1461038b578063de2356d1146103ab57600080fd5b80636af00aee146102335780638c27f1f614610268578063ac9650d81461030a57600080fd5b80632f2d783d116100bb5780632f2d783d1461018257806332dc5a25146101b05780634473eca6146101f35780635739f0b91461021357600080fd5b806306e65c90146100e257806314258256146101045780632bd34c4814610162575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611efc565b6103df565b005b34801561011057600080fd5b506101387f00000000000000000000000025f8eac06fa785cde93f0cb5208373a8001bed2081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561016e57600080fd5b5061010261017d366004611f40565b6103ec565b34801561018e57600080fd5b506101a261019d366004611f89565b61056a565b604051908152602001610159565b3480156101bc57600080fd5b506101386101cb366004611fca565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3480156101ff57600080fd5b5061010261020e36600461201d565b61063e565b34801561021f57600080fd5b5061010261022e36600461201d565b61080b565b34801561023f57600080fd5b5061025361024e36600461201d565b610bcd565b60408051928352602083019190915201610159565b34801561027457600080fd5b506102c86102833660046120d1565b6002602081905260009182526040909120805460018201549282015460039092015473ffffffffffffffffffffffffffffffffffffffff918216938216929091169084565b604051610159949392919073ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b61031d6103183660046120ea565b610e35565b604051610159919061215f565b34801561033657600080fd5b506101a26103453660046120d1565b60016020526000908152604090205481565b34801561036357600080fd5b506101387f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b81565b34801561039757600080fd5b506101026103a6366004611f40565b610f56565b3480156103b757600080fd5b506101387f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a681565b6103e882611141565b5050565b60006103f883836116c8565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16631d4632ac6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190612238565b73ffffffffffffffffffffffffffffffffffffffff160361051c576040517f7c1fe0c80000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff831690637c1fe0c890602401600060405180830381600087803b15801561050357600080fd5b505af1158015610517573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff16600090815260208190526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555050565b6040517f0a53075400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301523360248301528381166044830152606482018390526000917f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a690911690630a530754906084016020604051808303816000875af1158015610612573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106369190612255565b949350505050565b6040517f430c20810000000000000000000000000000000000000000000000000000000081523360048201526024810182905281907f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff169063430c208190604401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f5919061226e565b610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e0000000000000000000060448201526064015b60405180910390fd5b61080683837f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b81526004016107c091815260200190565b602060405180830381865afa1580156107dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108019190612238565b611a36565b505050565b6040517f430c20810000000000000000000000000000000000000000000000000000000081523360048201526024810182905281907f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff169063430c208190604401602060405180830381865afa15801561089e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c2919061226e565b610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e000000000000000000006044820152606401610757565b600061093384611b6b565b6000818152600260208190526040909120015490915073ffffffffffffffffffffffffffffffffffffffff166109ef57600081815260026020818152604092839020875181547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff9283161783559289015160018301805485169183169190911790559388015192810180549092169290931691909117905560608501516003909101555b60008381526001602052604090205415610a65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f546f6b656e20616c7265616479206661726d65640000000000000000000000006044820152606401610757565b60008381526001602081905260409182902083905590517f702275150000000000000000000000000000000000000000000000000000000081526004810185905260248101919091527f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff1690637022751590604401600060405180830381600087803b158015610b0957600080fd5b505af1158015610b1d573d6000803e3d6000fd5b50506040517f5739f0b900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a6169250635739f0b99150610b959087908790600401612290565b600060405180830381600087803b158015610baf57600080fd5b505af1158015610bc3573d6000803e3d6000fd5b5050505050505050565b6040517f430c2081000000000000000000000000000000000000000000000000000000008152336004820152602481018290526000908190839073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b169063430c208190604401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c89919061226e565b610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420617070726f76656420666f7220746f6b656e000000000000000000006044820152606401610757565b7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a673ffffffffffffffffffffffffffffffffffffffff1663046ec16686867f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b8152600401610d8891815260200190565b602060405180830381865afa158015610da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc99190612238565b6040518463ffffffff1660e01b8152600401610de7939291906122e8565b60408051808303816000875af1158015610e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e29919061235d565b90969095509350505050565b60608167ffffffffffffffff811115610e5057610e50611fee565b604051908082528060200260200182016040528015610e8357816020015b6060815260200190600190039081610e6e5790505b50905060005b82811015610f4f5760008030868685818110610ea757610ea7612381565b9050602002810190610eb991906123b0565b604051610ec792919061241c565b600060405180830381855af49150503d8060008114610f02576040519150601f19603f3d011682016040523d82523d6000602084013e610f07565b606091505b509150915081610f27576000815111610f1f57600080fd5b805181602001fd5b80848481518110610f3a57610f3a612381565b60209081029190910101525050600101610e89565b5092915050565b6000610f6283836116c8565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16631d4632ac6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb9190612238565b73ffffffffffffffffffffffffffffffffffffffff1614611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f416e6f7468657220696e63656e7469766520697320636f6e6e656374656400006044820152606401610757565b6040517f7c1fe0c800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152831690637c1fe0c890602401600060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff908116600090815260208190526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016939091169290921790915550565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b16146111e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f6e6c79206e6f6e66756e6769626c65506f734d616e616765720000000000006044820152606401610757565b60008181526001602052604090205480156103e8576040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000907f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff1690636352211e90602401602060405180830381865afa158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190612238565b6040517f99fbab880000000000000000000000000000000000000000000000000000000081526004810185905290915060009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b16906399fbab889060240161016060405180830381865afa158015611339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135d919061245e565b50505060008b8152600260208181526040928390208351608081018552815473ffffffffffffffffffffffffffffffffffffffff908116825260018301548116938201939093529281015490911692820192909252600390910154606082015291985090965050506fffffffffffffffffffffffffffffffff8616159350839250611416915050575060408082015173ffffffffffffffffffffffffffffffffffffffff90811660009081526020819052919091205416155b1561142b57611426818685611a36565b6116c1565b6040517f36808b1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a616906336808b19906114a1908490899088906004016122e8565b600060405180830381600087803b1580156114bb57600080fd5b505af11580156114cf573d6000803e3d6000fd5b505050507f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a673ffffffffffffffffffffffffffffffffffffffff1663b5bae00a61151883611b6b565b6040518263ffffffff1660e01b815260040161153691815260200190565b602060405180830381865afa158015611553573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611577919061226e565b8061160c57507f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a673ffffffffffffffffffffffffffffffffffffffff1663f22563196040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160c919061226e565b1561161a5761142685611b9b565b6040517f5739f0b900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a61690635739f0b99061168e9084908990600401612290565b600060405180830381600087803b1580156116a857600080fd5b505af11580156116bc573d6000803e3d6000fd5b505050505b5050505050565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a61614611769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4f6e6c79206661726d696e672063616e2063616c6c20746869730000000000006044820152606401610757565b73ffffffffffffffffffffffffffffffffffffffff83166117e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5a65726f2061646472657373206173207669727475616c20706f6f6c000000006044820152606401610757565b8173ffffffffffffffffffffffffffffffffffffffff166316f0115b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118559190612238565b905061199c7f00000000000000000000000025f8eac06fa785cde93f0cb5208373a8001bed2060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f59190612238565b73ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190612238565b73ffffffffffffffffffffffffffffffffffffffff169052611d1e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c696420706f6f6c00000000000000000000000000000000000000006044820152606401610757565b92915050565b611a3f83611b6b565b60008381526001602052604090205414611ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e76616c696420696e63656e746976654964000000000000000000000000006044820152606401610757565b611abe82611b9b565b6040517f36808b1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a616906336808b1990611b34908690869086906004016122e8565b600060405180830381600087803b158015611b4e57600080fd5b505af1158015611b62573d6000803e3d6000fd5b50505050505050565b600081604051602001611b7e9190612534565b604051602081830303815290604052805190602001209050919050565b60008181526001602052604080822091909155517fe7ce18a300000000000000000000000000000000000000000000000000000000815260048101829052309073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b169063e7ce18a390602401602060405180830381865afa158015611c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5d9190612238565b73ffffffffffffffffffffffffffffffffffffffff1603611d1b576040517f7022751500000000000000000000000000000000000000000000000000000000815260048101829052600060248201527f000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b73ffffffffffffffffffffffffffffffffffffffff1690637022751590604401600060405180830381600087803b158015611d0757600080fd5b505af11580156116c1573d6000803e3d6000fd5b50565b6000816020015173ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1610611dbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e730000000000000000006044820152606401610757565b8282600001518360200151604051602001611dfb92919073ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290528051602091820120611ebf939290917f7ad6d0ce98ed223f933cd03dac575a6c1e547bc182dd71411f84e8859987caef91017fff00000000000000000000000000000000000000000000000000000000000000815260609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660018401526015830191909152603582015260550190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209392505050565b60008060408385031215611f0f57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff81168114611d1b57600080fd5b60008060408385031215611f5357600080fd5b8235611f5e81611f1e565b91506020830135611f6e81611f1e565b809150509250929050565b8035611f8481611f1e565b919050565b600080600060608486031215611f9e57600080fd5b8335611fa981611f1e565b92506020840135611fb981611f1e565b929592945050506040919091013590565b600060208284031215611fdc57600080fd5b8135611fe781611f1e565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008082840360a081121561203157600080fd5b608081121561203f57600080fd5b506040516080810181811067ffffffffffffffff8211171561208a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405261209684611f79565b81526120a460208501611f79565b60208201526120b560408501611f79565b6040820152606084810135908201529460809093013593505050565b6000602082840312156120e357600080fd5b5035919050565b600080602083850312156120fd57600080fd5b823567ffffffffffffffff8082111561211557600080fd5b818501915085601f83011261212957600080fd5b81358181111561213857600080fd5b8660208260051b850101111561214d57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b87010192508387016000805b8381101561221f577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc089870301855282518051808852835b818110156121da578281018a01518982018b015289016121bf565b508781018901849052601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909601870195509386019391860191600101612187565b509398975050505050505050565b8051611f8481611f1e565b60006020828403121561224a57600080fd5b8151611fe781611f1e565b60006020828403121561226757600080fd5b5051919050565b60006020828403121561228057600080fd5b81518015158114611fe757600080fd5b60a081016122db828573ffffffffffffffffffffffffffffffffffffffff80825116835280602083015116602084015280604083015116604084015250606081015160608301525050565b8260808301529392505050565b60c08101612333828673ffffffffffffffffffffffffffffffffffffffff80825116835280602083015116602084015280604083015116604084015250606081015160608301525050565b83608083015273ffffffffffffffffffffffffffffffffffffffff831660a0830152949350505050565b6000806040838503121561237057600080fd5b505080516020909101519092909150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126123e557600080fd5b83018035915067ffffffffffffffff82111561240057600080fd5b60200191503681900382131561241557600080fd5b9250929050565b8183823760009101908152919050565b8051600281900b8114611f8457600080fd5b80516fffffffffffffffffffffffffffffffff81168114611f8457600080fd5b60008060008060008060008060008060006101608c8e03121561248057600080fd5b8b516affffffffffffffffffffff8116811461249b57600080fd5b60208d0151909b506124ac81611f1e565b60408d0151909a506124bd81611f1e565b98506124cb60608d0161222d565b97506124d960808d0161242c565b96506124e760a08d0161242c565b95506124f560c08d0161243e565b945060e08c015193506101008c015192506125136101208d0161243e565b91506125226101408d0161243e565b90509295989b509295989b9093969950565b60808101611a30828473ffffffffffffffffffffffffffffffffffffffff8082511683528060208301511660208401528060408301511660408401525060608101516060830152505056fea164736f6c6343000814000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a6000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b
-----Decoded View---------------
Arg [0] : _eternalFarming (address): 0x8d4013882f2f93362b1CB7e6DC6DA215d39911A6
Arg [1] : _nonfungiblePositionManager (address): 0xbCc0ab24863CDC363A0A036E85ca02F526daeb7b
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d4013882f2f93362b1cb7e6dc6da215d39911a6
Arg [1] : 000000000000000000000000bcc0ab24863cdc363a0a036e85ca02f526daeb7b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.