Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StickyPoolRecipe
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.6;
import "IJellyFactory.sol";
import "IJellyContract.sol";
import "IJellyAccessControls.sol";
import "IERC20.sol";
import "SafeERC20.sol";
import "SafeMath.sol";
/**
* @title StickyPool Recipe:
*
* ,,,,
* g@@@@@@K
* l@@@@@@@@P
* $@@@@@@@" l@@@ l@@@
* "*NNM" l@@@ l@@@
* l@@@ l@@@
* ,g@@@g ,,gg@gg, l@@@ l@@@ ,ggg ,ggg
* @@@@@@@@p g@@@EEEEE@@W l@@@ l@@@ $@@g ,@@@Y
* l@@@@@@@@@ @@@P ]@@@ l@@@ l@@@ $@@g ,@@@Y
* l@@@@@@@@@ $@@D,,,,,,,,]@@@ l@@@ l@@@ '@@@p @@@Y
* l@@@@@@@@@ @@@@EEEEEEEEEEEE l@@@ l@@@ "@@@p @@@Y
* l@@@@@@@@@ l@@K l@@@ l@@@ '@@@, @@@Y
* @@@@@@@@@ %@@@, ,g@@@ l@@@ l@@@ ^@@@@@@Y
* "@@@@@@@@ "N@@@@@@@@E' l@@@ l@@@ "*@@@Y
* "J@@@@@@ "**"" ''' ''' @@@Y
* ,gg@@g "J@@@P @@@Y
* @@@@@@@@p J@@' @@@Y
* @@@@@@@@P J@h RNNY
* 'B@@@@@@ $P
* "JE@@@p"'
*
*
*/
/**
* @author ProfWobble
* @dev
* - Wrapper deployment of all the StickyPool contracts.
* - Supports Merkle proofs using the JellyList interface.
*
*/
interface IStickyPool {
function setDescriptor(address) external;
function setDocumentController(address) external;
function changeController(address) external;
function setTokenDetails(string memory, string memory ) external;
function create_lock_for(uint _value, uint _lock_duration, address _to) external returns (uint);
}
interface IPriceOracle {
function getRateToEth(address srcToken, bool useSrcWrappers) external view returns (uint256 weightedRate);
}
contract StickyPoolRecipe {
using SafeMath for uint256;
using SafeERC20 for OZIERC20;
IJellyFactory public jellyFactory;
uint256 public tokenFeeAmount;
uint256 public ethFeeAmount;
uint256 public lockDuration;
address public documentController;
address payable public jellyVault;
bool public locked;
/// @notice Address that manages approvals.
IJellyAccessControls public accessControls;
IPriceOracle public oracle;
/// @notice Jelly template id for the pool factory.
uint256 public constant TEMPLATE_TYPE = 4;
bytes32 public constant TEMPLATE_ID = keccak256("STICKY_POOL_RECIPE");
string public imageURL;
uint256 public maxPercentage;
bytes32 public constant POOL_ID = keccak256("STICKY_POOL");
bytes32 public constant DESCRIPTOR_ID = keccak256("STICKY_DESCRIPTOR");
bytes32 public constant ACCESS_ID = keccak256("OPERATOR_ACCESS");
uint256 private constant PERCENTAGE_PRECISION = 10000;
address ethAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
uint256 constant MAX_INT =
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
event StickyPoolDeployed(address indexed pool, address indexed token);
event Recovered(address indexed token, uint256 amount);
event LockSet(bool locked);
/**
* @notice Jelly Airdrop Recipe
* @param _jellyFactory - A factory that makes fresh Jelly
*/
constructor(
address _accessControls,
address _jellyFactory,
address payable _jellyVault,
uint256 _tokenFeeAmount,
uint256 _ethFeeAmount,
address _oracle,
address _documentController
) {
accessControls = IJellyAccessControls(_accessControls);
jellyFactory = IJellyFactory(_jellyFactory);
jellyVault = _jellyVault;
tokenFeeAmount =_tokenFeeAmount;
ethFeeAmount =_ethFeeAmount;
oracle = IPriceOracle(_oracle);
documentController = _documentController;
lockDuration = 365 * 24 * 60 * 60;
locked = true;
maxPercentage = 10e18;
// imageURL = "https://raw.githubusercontent.com/JellyProtocol/JellyAssets/main/Images/PoolNFTs/blue_jelly.png";
}
//--------------------------------------------------------
// Setters
//--------------------------------------------------------
/**
* @notice Sets the recipe to be locked or unlocked.
* @dev When locked, the public cannot use the recipe.
* @param _locked bool.
*/
function setLocked(bool _locked) external {
require(
accessControls.hasAdminRole(msg.sender),
"setLocked: Sender must be admin"
);
locked = _locked;
emit LockSet(_locked);
}
/// @notice Setter functions for setting lock duration
function setLockDuration(uint256 _lockDuration) external {
require(
accessControls.hasAdminRole(msg.sender),
"setLockDuration: Sender must be admin"
);
lockDuration = _lockDuration;
}
/**
* @notice Sets the vault address.
* @param _vault Jelly Vault address.
*/
function setVault(address payable _vault) external {
require(accessControls.hasAdminRole(msg.sender), "setVault: Sender must be admin");
require(_vault != address(0));
jellyVault = _vault;
}
/**
* @notice Sets the oracle address.
* @param _oracle Price oracle address.
*/
function setOracle(address _oracle) external {
require(accessControls.hasAdminRole(msg.sender), "setVault: Sender must be admin");
require(_oracle != address(0));
oracle = IPriceOracle(_oracle);
}
/**
* @notice Sets the access controls address.
* @param _accessControls Access controls address.
*/
function setAccessControls(address _accessControls) external {
require(accessControls.hasAdminRole(msg.sender), "setAccessControls: Sender must be admin");
require(_accessControls != address(0));
accessControls = IJellyAccessControls(_accessControls);
}
/**
* @notice Sets the current fee percentage to deploy, paid in tokens.
* @param _ethFeeAmount The fee amount priced in ETH
*/
function setEthFeeAmount(uint256 _ethFeeAmount) external {
require(
accessControls.hasAdminRole(msg.sender),
"setFeeAmount: Sender must be admin"
);
ethFeeAmount = _ethFeeAmount;
}
/**
* @notice Sets the current fee percentage to deploy, paid in ETH.
* @param _tokenFeeAmount The fee amount priced in ETH
*/
function setTokenFeeAmount(uint256 _tokenFeeAmount) external {
require(
accessControls.hasAdminRole(msg.sender),
"setFeeAmount: Sender must be admin"
);
tokenFeeAmount = _tokenFeeAmount;
}
/**
* @notice Sets the default image descriptor settings.
* @param _imageURL Project logo URL
* @param _maxPercentage Percentage staked for full sized image
*/
function setDescriptorSettings(string calldata _imageURL, uint256 _maxPercentage) external {
require(
accessControls.hasAdminRole(msg.sender),
"setFeeAmount: Sender must be admin"
);
imageURL = _imageURL;
maxPercentage = _maxPercentage;
}
/**
* @notice Sets the global document.
* @param _documentController Address of the global document contract
*/
function setDocumentController(address _documentController) external {
require(
accessControls.hasAdminRole(msg.sender),
"setDocumentController: Sender must be admin"
);
documentController = _documentController;
}
//--------------------------------------------------------
// Getters
//--------------------------------------------------------
function getFeeInTokens(address _addr) public view returns (uint256) {
uint256 rate = 0;
if (address(oracle) != address(0)) {
try oracle.getRateToEth(_addr, false) returns (uint256 _rate) {
rate = _rate;
}
catch {
try oracle.getRateToEth(_addr, true) returns (uint256 _rate) {
rate = _rate;
} catch {}
}
}
if (rate == 0) {
return 0;
}
return 1e18 * tokenFeeAmount / rate;
}
function poolTemplate() external view returns (address) {
return jellyFactory.getContractTemplate(POOL_ID);
}
function descriptorTemplate() external view returns (address) {
return jellyFactory.getContractTemplate(DESCRIPTOR_ID);
}
//--------------------------------------------------------
// Recipe
//--------------------------------------------------------
/**
* @notice Creates a StickyPool contract using a recipe from the JellyFactory.
* @param _poolAdmin Address which will be the admin for the new contract.
* @param _stakedToken Token used for staking into the StickyPool.
* @dev This contract needs an approval for the stakedToken.
* @dev Fees are paid in the stakedToken with a percentage locked in the StickyPool.
*/
function prepareStickyPool(
address _poolAdmin,
address _stakedToken
)
external
returns (address)
{
address sticky_pool = _deployContracts(_poolAdmin, _stakedToken);
uint256 feeTokens = getFeeInTokens(_stakedToken);
require(feeTokens > 0, "No liquidity pool found.");
OZIERC20(_stakedToken).safeTransferFrom(
msg.sender,
address(this),
feeTokens
);
OZIERC20(_stakedToken).safeApprove(sticky_pool, feeTokens/2);
IStickyPool(sticky_pool).create_lock_for(feeTokens/2, lockDuration, jellyVault);
OZIERC20(_stakedToken).safeTransfer(
jellyVault,
feeTokens/2
);
return sticky_pool;
}
/**
* @notice Creates a StickyPool contract using a recipe from the JellyFactory.
* @param _poolAdmin Address which will be the admin for the new contract.
* @param _stakedToken Token used for staking into the StickyPool.
* @dev Fees are paid in ETH, set by the feeAmount.
*/
function prepareStickyPoolNoLiquidity(
address _poolAdmin,
address _stakedToken
)
external payable
returns (address)
{
require(msg.value >= ethFeeAmount, "Failed to transfer minimumFee.");
if (msg.value > 0) {
jellyVault.transfer(msg.value);
}
// Clone sticky pool from factory
address sticky_pool = _deployContracts(_poolAdmin, _stakedToken);
return sticky_pool;
}
//--------------------------------------------------------
// Internals
//--------------------------------------------------------
receive() external payable {
revert();
}
function _deployContracts(
address _poolAdmin,
address _stakedToken
)
internal
returns (address)
{
require(_poolAdmin != address(0), "Admin address not set");
require(_stakedToken != address(0), "Token address not set");
require(IERC20(_stakedToken).decimals() == 18, "Token needs to have 18 decimals");
/// @dev If the contract is locked, only admin and minters can deploy.
if (locked) {
require(accessControls.hasAdminRole(msg.sender)
|| accessControls.hasMinterRole(msg.sender),
"prepareJellyFarm: Sender must be minter if locked"
);
}
// Clone contracts from factory
address access_controls = jellyFactory.deployContract(
ACCESS_ID,
jellyVault,
"");
IJellyAccessControls(access_controls).initAccessControls(address(this));
// Clone sticky pool from factory
address sticky_pool = jellyFactory.deployContract(
POOL_ID,
jellyVault,
"");
IJellyContract(sticky_pool).initContract(abi.encode(_stakedToken, access_controls));
// Clone descriptor from factory
address pool_descriptor = jellyFactory.deployContract(
DESCRIPTOR_ID,
jellyVault,
"");
uint256 veBalanceForFullImage = IERC20(_stakedToken).totalSupply() / 1000; // 0.1%
IJellyContract(pool_descriptor).initContract(abi.encode(sticky_pool, access_controls, veBalanceForFullImage));
// Contract config
IStickyPool(sticky_pool).setDescriptor(pool_descriptor);
IStickyPool(sticky_pool).changeController(_poolAdmin);
IStickyPool(sticky_pool).setTokenDetails("Sticky Pool","veNFT");
IStickyPool(sticky_pool).setDocumentController(documentController);
IJellyAccessControls(access_controls).addAdminRole(_poolAdmin);
IJellyAccessControls(access_controls).removeAdminRole(address(this));
emit StickyPoolDeployed(sticky_pool, _stakedToken);
return sticky_pool;
}
//--------------------------------------------------------
// Admin
//--------------------------------------------------------
/// @notice allows for the recovery of incorrect ERC20 tokens sent to contract
function recoverERC20(
address tokenAddress,
uint256 tokenAmount
)
external
{
require(
accessControls.hasAdminRole(msg.sender),
"recoverERC20: Sender must be admin"
);
// OZIERC20 uses SafeERC20.sol, which hasn't overriden `transfer` method of OZIERC20. Shifting to `safeTransfer` may help
OZIERC20(tokenAddress).transfer(jellyVault, tokenAmount);
emit Recovered(tokenAddress, tokenAmount);
}
}pragma solidity 0.8.6;
interface IJellyFactory {
function deployContract(
bytes32 _templateId,
address payable _integratorFeeAccount,
bytes calldata _data
)
external payable returns (address newContract);
function deploy2Contract(
bytes32 _templateId,
address payable _integratorFeeAccount,
bytes calldata _data
)
external payable returns (address newContract);
function getContracts() external view returns (address[] memory);
function getContractsByTemplateId(bytes32 _templateId) external view returns (address[] memory);
function getContractTemplate(bytes32 _templateId) external view returns (address);
}pragma solidity 0.8.6;
import "IMasterContract.sol";
interface IJellyContract is IMasterContract {
/// @notice Init function that gets called from `BoringFactory.deploy`.
/// Also kown as the constructor for cloned contracts.
function TEMPLATE_ID() external view returns(bytes32);
function TEMPLATE_TYPE() external view returns(uint256);
function initContract( bytes calldata data ) external;
}pragma solidity 0.8.6;
interface IMasterContract {
/// @notice Init function that gets called from `BoringFactory.deploy`.
/// Also kown as the constructor for cloned contracts.
/// Any ETH send to `BoringFactory.deploy` ends up here.
/// @param data Can be abi encoded arguments or anything else.
function init(bytes calldata data) external payable;
}pragma solidity 0.8.6;
interface IJellyAccessControls {
function hasAdminRole(address _address) external view returns (bool);
function addAdminRole(address _address) external;
function removeAdminRole(address _address) external;
function hasMinterRole(address _address) external view returns (bool);
function addMinterRole(address _address) external;
function removeMinterRole(address _address) external;
function hasOperatorRole(address _address) external view returns (bool);
function addOperatorRole(address _address) external;
function removeOperatorRole(address _address) external;
function initAccessControls(address _admin) external ;
}pragma solidity 0.8.6;
interface IERC20 {
/// @notice ERC20 Functions
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function transfer(address recipient, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
/// @notice EIP 2612
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
}pragma solidity ^0.8.0;
import "OZIERC20.sol";
import "Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
OZIERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
OZIERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
OZIERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
OZIERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
OZIERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(OZIERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface OZIERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) 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 `amount` 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 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @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);
}pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "insufficient balance for call");
require(isContract(target), "call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}{
"evmVersion": "istanbul",
"optimizer": {
"enabled": true,
"runs": 9999
},
"libraries": {
"StickyPoolRecipe.sol": {}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_accessControls","type":"address"},{"internalType":"address","name":"_jellyFactory","type":"address"},{"internalType":"address payable","name":"_jellyVault","type":"address"},{"internalType":"uint256","name":"_tokenFeeAmount","type":"uint256"},{"internalType":"uint256","name":"_ethFeeAmount","type":"uint256"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_documentController","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"locked","type":"bool"}],"name":"LockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"StickyPoolDeployed","type":"event"},{"inputs":[],"name":"ACCESS_ID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DESCRIPTOR_ID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEMPLATE_ID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEMPLATE_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract IJellyAccessControls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptorTemplate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"documentController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getFeeInTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jellyFactory","outputs":[{"internalType":"contract IJellyFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jellyVault","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IPriceOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolTemplate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_poolAdmin","type":"address"},{"internalType":"address","name":"_stakedToken","type":"address"}],"name":"prepareStickyPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_poolAdmin","type":"address"},{"internalType":"address","name":"_stakedToken","type":"address"}],"name":"prepareStickyPoolNoLiquidity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_accessControls","type":"address"}],"name":"setAccessControls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageURL","type":"string"},{"internalType":"uint256","name":"_maxPercentage","type":"uint256"}],"name":"setDescriptorSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_documentController","type":"address"}],"name":"setDocumentController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethFeeAmount","type":"uint256"}],"name":"setEthFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"name":"setLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenFeeAmount","type":"uint256"}],"name":"setTokenFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052600a80546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1790553480156200003757600080fd5b5060405162002ded38038062002ded8339810160408190526200005a91620000ec565b600680546001600160a01b039889166001600160a01b03199182161790915560008054978916978216979097179096556005805460019590955560029390935560078054928816928716929092179091556004805491871691909516179093556301e133806003556001600160a81b031916921691909117600160a01b179055678ac7230489e8000060095562000199565b600080600080600080600060e0888a0312156200010857600080fd5b8751620001158162000180565b6020890151909750620001288162000180565b60408901519096506200013b8162000180565b80955050606088015193506080880151925060a08801516200015d8162000180565b60c0890151909250620001708162000180565b8091505092959891949750929550565b6001600160a01b03811681146200019657600080fd5b50565b612c4480620001a96000396000f3fe6080604052600436106101dc5760003560e01c80637dc0d1d011610102578063b9d552eb11610095578063dc63b8bd11610064578063dc63b8bd14610582578063e0d7d0e9146105a2578063e9bfa12f146105d6578063f6c11b97146105f657600080fd5b8063b9d552eb146104cc578063cb5c2128146104ec578063cd15832f14610520578063cf3090121461054057600080fd5b8063a6078745116100d1578063a607874514610440578063b057006414610456578063b31ec0061461048a578063b90497e0146104aa57600080fd5b80637dc0d1d0146103ac57806387eb502e146103cc5780638980f11f14610400578063915675f91461042057600080fd5b806335b6003b1161017a5780636817031b116101495780636817031b146103395780636a5ab51714610359578063748365ef1461036c5780637adbf9731461038c57600080fd5b806335b6003b146102ce57806343e1cc39146102e45780634ead9daa146102f95780634eb665af1461031957600080fd5b8063211e28b6116101b6578063211e28b61461026157806324129138146102835780632fc74534146102995780633570de7d146102b957600080fd5b806304554443146101eb5780630b24dbda146102145780630c20f59e1461022957600080fd5b366101e657600080fd5b600080fd5b3480156101f757600080fd5b5061020160035481565b6040519081526020015b60405180910390f35b34801561022057600080fd5b50610201600481565b34801561023557600080fd5b50600554610249906001600160a01b031681565b6040516001600160a01b03909116815260200161020b565b34801561026d57600080fd5b5061028161027c366004612949565b610616565b005b34801561028f57600080fd5b5061020160015481565b3480156102a557600080fd5b506102016102b43660046128aa565b61077f565b3480156102c557600080fd5b50610249610948565b3480156102da57600080fd5b5061020160095481565b3480156102f057600080fd5b50610249610a03565b34801561030557600080fd5b506102816103143660046128aa565b610a6d565b34801561032557600080fd5b506102816103343660046129fb565b610bad565b34801561034557600080fd5b506102816103543660046128aa565b610cb8565b6102496103673660046128e4565b610de5565b34801561037857600080fd5b50600654610249906001600160a01b031681565b34801561039857600080fd5b506102816103a73660046128aa565b610e8e565b3480156103b857600080fd5b50600754610249906001600160a01b031681565b3480156103d857600080fd5b506102017f01501e94c2ceb48ecc08179db5fdd8068199bd2b77d06d9c3fe95d394673cb7d81565b34801561040c57600080fd5b5061028161041b36600461291d565b610fbb565b34801561042c57600080fd5b5061024961043b3660046128e4565b6111a8565b34801561044c57600080fd5b5061020160025481565b34801561046257600080fd5b506102017f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed81565b34801561049657600080fd5b50600454610249906001600160a01b031681565b3480156104b657600080fd5b506104bf61133d565b60405161020b9190612ab6565b3480156104d857600080fd5b506102816104e7366004612983565b6113cb565b3480156104f857600080fd5b506102017fd0a76f9f519bce4cdd29dcb17a6da4c40b0f3615905eef4a3fa68c56ee2b26ac81565b34801561052c57600080fd5b5061028161053b3660046128aa565b6114e5565b34801561054c57600080fd5b506005546105729074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161020b565b34801561058e57600080fd5b5061028161059d3660046129fb565b611638565b3480156105ae57600080fd5b506102017f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591581565b3480156105e257600080fd5b506102816105f13660046129fb565b611743565b34801561060257600080fd5b50600054610249906001600160a01b031681565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561067257600080fd5b505afa158015610686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106aa9190612966565b6106fb5760405162461bcd60e51b815260206004820152601f60248201527f7365744c6f636b65643a2053656e646572206d7573742062652061646d696e0060448201526064015b60405180910390fd5b6005805482151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517f504bad97b429ba8801a2ae8e780de5f2f9a21c088094829ab3054a0aa66c00a29061077490831515815260200190565b60405180910390a150565b60075460009081906001600160a01b031615610912576007546040517f7de4fd100000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526000602483015290911690637de4fd109060440160206040518083038186803b1580156107fa57600080fd5b505afa925050508015610848575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261084591810190612a14565b60015b61090f576007546040517f7de4fd100000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526001602483015290911690637de4fd109060440160206040518083038186803b1580156108b157600080fd5b505afa9250505080156108ff575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526108fc91810190612a14565b60015b61090857610912565b9050610912565b90505b806109205750600092915050565b80600154670de0b6b3a76400006109379190612b04565b6109419190612ac9565b9392505050565b600080546040517f7594b44d0000000000000000000000000000000000000000000000000000000081527f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591560048201526001600160a01b0390911690637594b44d906024015b60206040518083038186803b1580156109c657600080fd5b505afa1580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe91906128c7565b905090565b600080546040517f7594b44d0000000000000000000000000000000000000000000000000000000081527f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed60048201526001600160a01b0390911690637594b44d906024016109ae565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610ac957600080fd5b505afa158015610add573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b019190612966565b610b735760405162461bcd60e51b815260206004820152602b60248201527f736574446f63756d656e74436f6e74726f6c6c65723a2053656e646572206d7560448201527f73742062652061646d696e00000000000000000000000000000000000000000060648201526084016106f2565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610c0957600080fd5b505afa158015610c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c419190612966565b610cb35760405162461bcd60e51b815260206004820152602560248201527f7365744c6f636b4475726174696f6e3a2053656e646572206d7573742062652060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084016106f2565b600355565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610d1457600080fd5b505afa158015610d28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4c9190612966565b610d985760405162461bcd60e51b815260206004820152601e60248201527f7365745661756c743a2053656e646572206d7573742062652061646d696e000060448201526064016106f2565b6001600160a01b038116610dab57600080fd5b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000600254341015610e395760405162461bcd60e51b815260206004820152601e60248201527f4661696c656420746f207472616e73666572206d696e696d756d4665652e000060448201526064016106f2565b3415610e7a576005546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610e78573d6000803e3d6000fd5b505b6000610e86848461184e565b949350505050565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610eea57600080fd5b505afa158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f229190612966565b610f6e5760405162461bcd60e51b815260206004820152601e60248201527f7365745661756c743a2053656e646572206d7573742062652061646d696e000060448201526064016106f2565b6001600160a01b038116610f8157600080fd5b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561101757600080fd5b505afa15801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190612966565b6110c15760405162461bcd60e51b815260206004820152602260248201527f7265636f76657245524332303a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b6005546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390529083169063a9059cbb90604401602060405180830381600087803b15801561112857600080fd5b505af115801561113c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111609190612966565b50816001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288260405161119c91815260200190565b60405180910390a25050565b6000806111b5848461184e565b905060006111c28461077f565b9050600081116112145760405162461bcd60e51b815260206004820152601860248201527f4e6f206c697175696469747920706f6f6c20666f756e642e000000000000000060448201526064016106f2565b6112296001600160a01b038516333084612383565b61124982611238600284612ac9565b6001600160a01b0387169190612458565b6001600160a01b03821663d4e54c3b611263600284612ac9565b60035460055460405160e085901b7fffffffff00000000000000000000000000000000000000000000000000000000168152600481019390935260248301919091526001600160a01b03166044820152606401602060405180830381600087803b1580156112d057600080fd5b505af11580156112e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113089190612a14565b50600554611335906001600160a01b0316611324600284612ac9565b6001600160a01b03871691906125ba565b509392505050565b6008805461134a90612b94565b80601f016020809104026020016040519081016040528092919081815260200182805461137690612b94565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145f9190612966565b6114d15760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b6114dd600884846127f3565b506009555050565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561154157600080fd5b505afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190612966565b6115eb5760405162461bcd60e51b815260206004820152602760248201527f736574416363657373436f6e74726f6c733a2053656e646572206d757374206260448201527f652061646d696e0000000000000000000000000000000000000000000000000060648201526084016106f2565b6001600160a01b0381166115fe57600080fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561169457600080fd5b505afa1580156116a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cc9190612966565b61173e5760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b600255565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561179f57600080fd5b505afa1580156117b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d79190612966565b6118495760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b600155565b60006001600160a01b0383166118a65760405162461bcd60e51b815260206004820152601560248201527f41646d696e2061646472657373206e6f7420736574000000000000000000000060448201526064016106f2565b6001600160a01b0382166118fc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2061646472657373206e6f7420736574000000000000000000000060448201526064016106f2565b816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561193557600080fd5b505afa158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d9190612a2d565b60ff166012146119bf5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206e6565647320746f206861766520313820646563696d616c730060448201526064016106f2565b60055474010000000000000000000000000000000000000000900460ff1615611b82576006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015611a3e57600080fd5b505afa158015611a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a769190612966565b80611b1057506006546040517f099db0170000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063099db0179060240160206040518083038186803b158015611ad857600080fd5b505afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b109190612966565b611b825760405162461bcd60e51b815260206004820152603160248201527f707265706172654a656c6c794661726d3a2053656e646572206d75737420626560448201527f206d696e746572206966206c6f636b656400000000000000000000000000000060648201526084016106f2565b600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527fd0a76f9f519bce4cdd29dcb17a6da4c40b0f3615905eef4a3fa68c56ee2b26ac60048201526001600160a01b03918216602482015260606044820152606481018490529116906353981e7690608401602060405180830381600087803b158015611c1957600080fd5b505af1158015611c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5191906128c7565b6040517fe6594abd0000000000000000000000000000000000000000000000000000000081523060048201529091506001600160a01b0382169063e6594abd90602401600060405180830381600087803b158015611cae57600080fd5b505af1158015611cc2573d6000803e3d6000fd5b5050600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591560048201526001600160a01b03918216602482015260606044820152606481018490529294501691506353981e7690608401602060405180830381600087803b158015611d5e57600080fd5b505af1158015611d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9691906128c7565b9050806001600160a01b0316634d806abd8584604051602001611dcf9291906001600160a01b0392831681529116602082015260400190565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611dfa9190612ab6565b600060405180830381600087803b158015611e1457600080fd5b505af1158015611e28573d6000803e3d6000fd5b5050600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed60048201526001600160a01b03918216602482015260606044820152606481018490529294501691506353981e7690608401602060405180830381600087803b158015611ec457600080fd5b505af1158015611ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efc91906128c7565b905060006103e8866001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f3c57600080fd5b505afa158015611f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f749190612a14565b611f7e9190612ac9565b604080516001600160a01b0386811660208301528781168284015260608083018590528351808403909101815260808301938490527f4d806abd0000000000000000000000000000000000000000000000000000000090935292935091841691634d806abd91611ff091608401612ab6565b600060405180830381600087803b15801561200a57600080fd5b505af115801561201e573d6000803e3d6000fd5b50506040517f01b9a3970000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152861692506301b9a3979150602401600060405180830381600087803b15801561207e57600080fd5b505af1158015612092573d6000803e3d6000fd5b50506040517f3cebb8230000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015286169250633cebb8239150602401600060405180830381600087803b1580156120f257600080fd5b505af1158015612106573d6000803e3d6000fd5b5050604080517f88f259b00000000000000000000000000000000000000000000000000000000081526004810191909152600b60448201527f537469636b7920506f6f6c000000000000000000000000000000000000000000606482015260806024820152600560848201527f76654e465400000000000000000000000000000000000000000000000000000060a48201526001600160a01b03861692506388f259b0915060c401600060405180830381600087803b1580156121c857600080fd5b505af11580156121dc573d6000803e3d6000fd5b5050600480546040517f4ead9daa0000000000000000000000000000000000000000000000000000000081526001600160a01b039182169281019290925286169250634ead9daa9150602401600060405180830381600087803b15801561224257600080fd5b505af1158015612256573d6000803e3d6000fd5b50506040517f6595171c0000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015287169250636595171c9150602401600060405180830381600087803b1580156122b657600080fd5b505af11580156122ca573d6000803e3d6000fd5b50506040517fdccfe3100000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038716925063dccfe3109150602401600060405180830381600087803b15801561232857600080fd5b505af115801561233c573d6000803e3d6000fd5b50506040516001600160a01b03808a169350861691507f4fa1f05a55ef29c7e896437f0fe8cabc345b09609cf0e776598e1ccd42647c9490600090a3509095945050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526124529085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612603565b50505050565b8015806124fa57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156124c057600080fd5b505afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f89190612a14565b155b61256c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016106f2565b6040516001600160a01b0383166024820152604481018290526125b59084907f095ea7b300000000000000000000000000000000000000000000000000000000906064016123d0565b505050565b6040516001600160a01b0383166024820152604481018290526125b59084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016123d0565b6000612658826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126e89092919063ffffffff16565b8051909150156125b557808060200190518101906126769190612966565b6125b55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016106f2565b6060610e86848460008585843b6127415760405162461bcd60e51b815260206004820152601460248201527f63616c6c20746f206e6f6e2d636f6e747261637400000000000000000000000060448201526064016106f2565b600080866001600160a01b0316858760405161275d9190612a9a565b60006040518083038185875af1925050503d806000811461279a576040519150601f19603f3d011682016040523d82523d6000602084013e61279f565b606091505b50915091506127af8282866127ba565b979650505050505050565b606083156127c9575081610941565b8251156127d95782518084602001fd5b8160405162461bcd60e51b81526004016106f29190612ab6565b8280546127ff90612b94565b90600052602060002090601f0160209004810192826128215760008555612885565b82601f10612858578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612885565b82800160010185558215612885579182015b8281111561288557823582559160200191906001019061286a565b50612891929150612895565b5090565b5b808211156128915760008155600101612896565b6000602082840312156128bc57600080fd5b813561094181612be8565b6000602082840312156128d957600080fd5b815161094181612be8565b600080604083850312156128f757600080fd5b823561290281612be8565b9150602083013561291281612be8565b809150509250929050565b6000806040838503121561293057600080fd5b823561293b81612be8565b946020939093013593505050565b60006020828403121561295b57600080fd5b813561094181612c00565b60006020828403121561297857600080fd5b815161094181612c00565b60008060006040848603121561299857600080fd5b833567ffffffffffffffff808211156129b057600080fd5b818601915086601f8301126129c457600080fd5b8135818111156129d357600080fd5b8760208285010111156129e557600080fd5b6020928301989097509590910135949350505050565b600060208284031215612a0d57600080fd5b5035919050565b600060208284031215612a2657600080fd5b5051919050565b600060208284031215612a3f57600080fd5b815160ff8116811461094157600080fd5b60008151808452612a68816020860160208601612b68565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251612aac818460208701612b68565b9190910192915050565b6020815260006109416020830184612a50565b600082612aff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b63577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500290565b60005b83811015612b83578181015183820152602001612b6b565b838111156124525750506000910152565b600181811c90821680612ba857607f821691505b60208210811415612be2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6001600160a01b0381168114612bfd57600080fd5b50565b8015158114612bfd57600080fdfea26469706673582212206f04f43c071c1c0ed7ef07e484d1e4ea1036ae4a1792bdc6711b372a21a5367864736f6c634300080600330000000000000000000000008fbba715bdf9104a977d88dac47bb6a2e4925936000000000000000000000000c28ecfb51e0c93914c3af007d6c04594860c7d050000000000000000000000005aae9bbbd739216766de5c6d714c2bcb9e03e11f0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d91f5fb9bf7798734c3f606db065549f6893bb000000000000000000000000e5a9001701db5c8b3cef68e41aad1da4ae34b1c1
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c80637dc0d1d011610102578063b9d552eb11610095578063dc63b8bd11610064578063dc63b8bd14610582578063e0d7d0e9146105a2578063e9bfa12f146105d6578063f6c11b97146105f657600080fd5b8063b9d552eb146104cc578063cb5c2128146104ec578063cd15832f14610520578063cf3090121461054057600080fd5b8063a6078745116100d1578063a607874514610440578063b057006414610456578063b31ec0061461048a578063b90497e0146104aa57600080fd5b80637dc0d1d0146103ac57806387eb502e146103cc5780638980f11f14610400578063915675f91461042057600080fd5b806335b6003b1161017a5780636817031b116101495780636817031b146103395780636a5ab51714610359578063748365ef1461036c5780637adbf9731461038c57600080fd5b806335b6003b146102ce57806343e1cc39146102e45780634ead9daa146102f95780634eb665af1461031957600080fd5b8063211e28b6116101b6578063211e28b61461026157806324129138146102835780632fc74534146102995780633570de7d146102b957600080fd5b806304554443146101eb5780630b24dbda146102145780630c20f59e1461022957600080fd5b366101e657600080fd5b600080fd5b3480156101f757600080fd5b5061020160035481565b6040519081526020015b60405180910390f35b34801561022057600080fd5b50610201600481565b34801561023557600080fd5b50600554610249906001600160a01b031681565b6040516001600160a01b03909116815260200161020b565b34801561026d57600080fd5b5061028161027c366004612949565b610616565b005b34801561028f57600080fd5b5061020160015481565b3480156102a557600080fd5b506102016102b43660046128aa565b61077f565b3480156102c557600080fd5b50610249610948565b3480156102da57600080fd5b5061020160095481565b3480156102f057600080fd5b50610249610a03565b34801561030557600080fd5b506102816103143660046128aa565b610a6d565b34801561032557600080fd5b506102816103343660046129fb565b610bad565b34801561034557600080fd5b506102816103543660046128aa565b610cb8565b6102496103673660046128e4565b610de5565b34801561037857600080fd5b50600654610249906001600160a01b031681565b34801561039857600080fd5b506102816103a73660046128aa565b610e8e565b3480156103b857600080fd5b50600754610249906001600160a01b031681565b3480156103d857600080fd5b506102017f01501e94c2ceb48ecc08179db5fdd8068199bd2b77d06d9c3fe95d394673cb7d81565b34801561040c57600080fd5b5061028161041b36600461291d565b610fbb565b34801561042c57600080fd5b5061024961043b3660046128e4565b6111a8565b34801561044c57600080fd5b5061020160025481565b34801561046257600080fd5b506102017f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed81565b34801561049657600080fd5b50600454610249906001600160a01b031681565b3480156104b657600080fd5b506104bf61133d565b60405161020b9190612ab6565b3480156104d857600080fd5b506102816104e7366004612983565b6113cb565b3480156104f857600080fd5b506102017fd0a76f9f519bce4cdd29dcb17a6da4c40b0f3615905eef4a3fa68c56ee2b26ac81565b34801561052c57600080fd5b5061028161053b3660046128aa565b6114e5565b34801561054c57600080fd5b506005546105729074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161020b565b34801561058e57600080fd5b5061028161059d3660046129fb565b611638565b3480156105ae57600080fd5b506102017f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591581565b3480156105e257600080fd5b506102816105f13660046129fb565b611743565b34801561060257600080fd5b50600054610249906001600160a01b031681565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561067257600080fd5b505afa158015610686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106aa9190612966565b6106fb5760405162461bcd60e51b815260206004820152601f60248201527f7365744c6f636b65643a2053656e646572206d7573742062652061646d696e0060448201526064015b60405180910390fd5b6005805482151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517f504bad97b429ba8801a2ae8e780de5f2f9a21c088094829ab3054a0aa66c00a29061077490831515815260200190565b60405180910390a150565b60075460009081906001600160a01b031615610912576007546040517f7de4fd100000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526000602483015290911690637de4fd109060440160206040518083038186803b1580156107fa57600080fd5b505afa925050508015610848575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261084591810190612a14565b60015b61090f576007546040517f7de4fd100000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526001602483015290911690637de4fd109060440160206040518083038186803b1580156108b157600080fd5b505afa9250505080156108ff575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526108fc91810190612a14565b60015b61090857610912565b9050610912565b90505b806109205750600092915050565b80600154670de0b6b3a76400006109379190612b04565b6109419190612ac9565b9392505050565b600080546040517f7594b44d0000000000000000000000000000000000000000000000000000000081527f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591560048201526001600160a01b0390911690637594b44d906024015b60206040518083038186803b1580156109c657600080fd5b505afa1580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe91906128c7565b905090565b600080546040517f7594b44d0000000000000000000000000000000000000000000000000000000081527f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed60048201526001600160a01b0390911690637594b44d906024016109ae565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610ac957600080fd5b505afa158015610add573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b019190612966565b610b735760405162461bcd60e51b815260206004820152602b60248201527f736574446f63756d656e74436f6e74726f6c6c65723a2053656e646572206d7560448201527f73742062652061646d696e00000000000000000000000000000000000000000060648201526084016106f2565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610c0957600080fd5b505afa158015610c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c419190612966565b610cb35760405162461bcd60e51b815260206004820152602560248201527f7365744c6f636b4475726174696f6e3a2053656e646572206d7573742062652060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084016106f2565b600355565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610d1457600080fd5b505afa158015610d28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4c9190612966565b610d985760405162461bcd60e51b815260206004820152601e60248201527f7365745661756c743a2053656e646572206d7573742062652061646d696e000060448201526064016106f2565b6001600160a01b038116610dab57600080fd5b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000600254341015610e395760405162461bcd60e51b815260206004820152601e60248201527f4661696c656420746f207472616e73666572206d696e696d756d4665652e000060448201526064016106f2565b3415610e7a576005546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610e78573d6000803e3d6000fd5b505b6000610e86848461184e565b949350505050565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015610eea57600080fd5b505afa158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f229190612966565b610f6e5760405162461bcd60e51b815260206004820152601e60248201527f7365745661756c743a2053656e646572206d7573742062652061646d696e000060448201526064016106f2565b6001600160a01b038116610f8157600080fd5b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561101757600080fd5b505afa15801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190612966565b6110c15760405162461bcd60e51b815260206004820152602260248201527f7265636f76657245524332303a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b6005546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390529083169063a9059cbb90604401602060405180830381600087803b15801561112857600080fd5b505af115801561113c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111609190612966565b50816001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288260405161119c91815260200190565b60405180910390a25050565b6000806111b5848461184e565b905060006111c28461077f565b9050600081116112145760405162461bcd60e51b815260206004820152601860248201527f4e6f206c697175696469747920706f6f6c20666f756e642e000000000000000060448201526064016106f2565b6112296001600160a01b038516333084612383565b61124982611238600284612ac9565b6001600160a01b0387169190612458565b6001600160a01b03821663d4e54c3b611263600284612ac9565b60035460055460405160e085901b7fffffffff00000000000000000000000000000000000000000000000000000000168152600481019390935260248301919091526001600160a01b03166044820152606401602060405180830381600087803b1580156112d057600080fd5b505af11580156112e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113089190612a14565b50600554611335906001600160a01b0316611324600284612ac9565b6001600160a01b03871691906125ba565b509392505050565b6008805461134a90612b94565b80601f016020809104026020016040519081016040528092919081815260200182805461137690612b94565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145f9190612966565b6114d15760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b6114dd600884846127f3565b506009555050565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561154157600080fd5b505afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190612966565b6115eb5760405162461bcd60e51b815260206004820152602760248201527f736574416363657373436f6e74726f6c733a2053656e646572206d757374206260448201527f652061646d696e0000000000000000000000000000000000000000000000000060648201526084016106f2565b6001600160a01b0381166115fe57600080fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561169457600080fd5b505afa1580156116a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cc9190612966565b61173e5760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b600255565b6006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561179f57600080fd5b505afa1580156117b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d79190612966565b6118495760405162461bcd60e51b815260206004820152602260248201527f736574466565416d6f756e743a2053656e646572206d7573742062652061646d60448201527f696e00000000000000000000000000000000000000000000000000000000000060648201526084016106f2565b600155565b60006001600160a01b0383166118a65760405162461bcd60e51b815260206004820152601560248201527f41646d696e2061646472657373206e6f7420736574000000000000000000000060448201526064016106f2565b6001600160a01b0382166118fc5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e2061646472657373206e6f7420736574000000000000000000000060448201526064016106f2565b816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561193557600080fd5b505afa158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d9190612a2d565b60ff166012146119bf5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206e6565647320746f206861766520313820646563696d616c730060448201526064016106f2565b60055474010000000000000000000000000000000000000000900460ff1615611b82576006546040517fc395fcb30000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b158015611a3e57600080fd5b505afa158015611a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a769190612966565b80611b1057506006546040517f099db0170000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063099db0179060240160206040518083038186803b158015611ad857600080fd5b505afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b109190612966565b611b825760405162461bcd60e51b815260206004820152603160248201527f707265706172654a656c6c794661726d3a2053656e646572206d75737420626560448201527f206d696e746572206966206c6f636b656400000000000000000000000000000060648201526084016106f2565b600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527fd0a76f9f519bce4cdd29dcb17a6da4c40b0f3615905eef4a3fa68c56ee2b26ac60048201526001600160a01b03918216602482015260606044820152606481018490529116906353981e7690608401602060405180830381600087803b158015611c1957600080fd5b505af1158015611c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5191906128c7565b6040517fe6594abd0000000000000000000000000000000000000000000000000000000081523060048201529091506001600160a01b0382169063e6594abd90602401600060405180830381600087803b158015611cae57600080fd5b505af1158015611cc2573d6000803e3d6000fd5b5050600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527f2b88373a879cabffb161b2d3757ebe87888a766e27651a744e649370f9fd591560048201526001600160a01b03918216602482015260606044820152606481018490529294501691506353981e7690608401602060405180830381600087803b158015611d5e57600080fd5b505af1158015611d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9691906128c7565b9050806001600160a01b0316634d806abd8584604051602001611dcf9291906001600160a01b0392831681529116602082015260400190565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611dfa9190612ab6565b600060405180830381600087803b158015611e1457600080fd5b505af1158015611e28573d6000803e3d6000fd5b5050600080546005546040517f53981e760000000000000000000000000000000000000000000000000000000081527f74274683e10c935b9e5648db8570df73b5bb4f52c3af6d3bff4bcc5bd7fd01ed60048201526001600160a01b03918216602482015260606044820152606481018490529294501691506353981e7690608401602060405180830381600087803b158015611ec457600080fd5b505af1158015611ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efc91906128c7565b905060006103e8866001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f3c57600080fd5b505afa158015611f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f749190612a14565b611f7e9190612ac9565b604080516001600160a01b0386811660208301528781168284015260608083018590528351808403909101815260808301938490527f4d806abd0000000000000000000000000000000000000000000000000000000090935292935091841691634d806abd91611ff091608401612ab6565b600060405180830381600087803b15801561200a57600080fd5b505af115801561201e573d6000803e3d6000fd5b50506040517f01b9a3970000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152861692506301b9a3979150602401600060405180830381600087803b15801561207e57600080fd5b505af1158015612092573d6000803e3d6000fd5b50506040517f3cebb8230000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015286169250633cebb8239150602401600060405180830381600087803b1580156120f257600080fd5b505af1158015612106573d6000803e3d6000fd5b5050604080517f88f259b00000000000000000000000000000000000000000000000000000000081526004810191909152600b60448201527f537469636b7920506f6f6c000000000000000000000000000000000000000000606482015260806024820152600560848201527f76654e465400000000000000000000000000000000000000000000000000000060a48201526001600160a01b03861692506388f259b0915060c401600060405180830381600087803b1580156121c857600080fd5b505af11580156121dc573d6000803e3d6000fd5b5050600480546040517f4ead9daa0000000000000000000000000000000000000000000000000000000081526001600160a01b039182169281019290925286169250634ead9daa9150602401600060405180830381600087803b15801561224257600080fd5b505af1158015612256573d6000803e3d6000fd5b50506040517f6595171c0000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015287169250636595171c9150602401600060405180830381600087803b1580156122b657600080fd5b505af11580156122ca573d6000803e3d6000fd5b50506040517fdccfe3100000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038716925063dccfe3109150602401600060405180830381600087803b15801561232857600080fd5b505af115801561233c573d6000803e3d6000fd5b50506040516001600160a01b03808a169350861691507f4fa1f05a55ef29c7e896437f0fe8cabc345b09609cf0e776598e1ccd42647c9490600090a3509095945050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526124529085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612603565b50505050565b8015806124fa57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156124c057600080fd5b505afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f89190612a14565b155b61256c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016106f2565b6040516001600160a01b0383166024820152604481018290526125b59084907f095ea7b300000000000000000000000000000000000000000000000000000000906064016123d0565b505050565b6040516001600160a01b0383166024820152604481018290526125b59084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016123d0565b6000612658826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126e89092919063ffffffff16565b8051909150156125b557808060200190518101906126769190612966565b6125b55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016106f2565b6060610e86848460008585843b6127415760405162461bcd60e51b815260206004820152601460248201527f63616c6c20746f206e6f6e2d636f6e747261637400000000000000000000000060448201526064016106f2565b600080866001600160a01b0316858760405161275d9190612a9a565b60006040518083038185875af1925050503d806000811461279a576040519150601f19603f3d011682016040523d82523d6000602084013e61279f565b606091505b50915091506127af8282866127ba565b979650505050505050565b606083156127c9575081610941565b8251156127d95782518084602001fd5b8160405162461bcd60e51b81526004016106f29190612ab6565b8280546127ff90612b94565b90600052602060002090601f0160209004810192826128215760008555612885565b82601f10612858578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612885565b82800160010185558215612885579182015b8281111561288557823582559160200191906001019061286a565b50612891929150612895565b5090565b5b808211156128915760008155600101612896565b6000602082840312156128bc57600080fd5b813561094181612be8565b6000602082840312156128d957600080fd5b815161094181612be8565b600080604083850312156128f757600080fd5b823561290281612be8565b9150602083013561291281612be8565b809150509250929050565b6000806040838503121561293057600080fd5b823561293b81612be8565b946020939093013593505050565b60006020828403121561295b57600080fd5b813561094181612c00565b60006020828403121561297857600080fd5b815161094181612c00565b60008060006040848603121561299857600080fd5b833567ffffffffffffffff808211156129b057600080fd5b818601915086601f8301126129c457600080fd5b8135818111156129d357600080fd5b8760208285010111156129e557600080fd5b6020928301989097509590910135949350505050565b600060208284031215612a0d57600080fd5b5035919050565b600060208284031215612a2657600080fd5b5051919050565b600060208284031215612a3f57600080fd5b815160ff8116811461094157600080fd5b60008151808452612a68816020860160208601612b68565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251612aac818460208701612b68565b9190910192915050565b6020815260006109416020830184612a50565b600082612aff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b63577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500290565b60005b83811015612b83578181015183820152602001612b6b565b838111156124525750506000910152565b600181811c90821680612ba857607f821691505b60208210811415612be2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6001600160a01b0381168114612bfd57600080fd5b50565b8015158114612bfd57600080fdfea26469706673582212206f04f43c071c1c0ed7ef07e484d1e4ea1036ae4a1792bdc6711b372a21a5367864736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008fbba715bdf9104a977d88dac47bb6a2e4925936000000000000000000000000c28ecfb51e0c93914c3af007d6c04594860c7d050000000000000000000000005aae9bbbd739216766de5c6d714c2bcb9e03e11f0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d91f5fb9bf7798734c3f606db065549f6893bb000000000000000000000000e5a9001701db5c8b3cef68e41aad1da4ae34b1c1
-----Decoded View---------------
Arg [0] : _accessControls (address): 0x8FbBA715bdf9104A977D88daC47Bb6a2E4925936
Arg [1] : _jellyFactory (address): 0xc28eCfb51E0C93914c3Af007d6c04594860c7d05
Arg [2] : _jellyVault (address): 0x5AAE9bBBd739216766de5c6D714C2bCb9e03E11F
Arg [3] : _tokenFeeAmount (uint256): 1000000000000000000
Arg [4] : _ethFeeAmount (uint256): 0
Arg [5] : _oracle (address): 0x07D91f5fb9Bf7798734C3f606dB065549F6893bb
Arg [6] : _documentController (address): 0xe5A9001701db5c8B3Cef68e41AAD1Da4AE34B1c1
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000008fbba715bdf9104a977d88dac47bb6a2e4925936
Arg [1] : 000000000000000000000000c28ecfb51e0c93914c3af007d6c04594860c7d05
Arg [2] : 0000000000000000000000005aae9bbbd739216766de5c6d714c2bcb9e03e11f
Arg [3] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000007d91f5fb9bf7798734c3f606db065549f6893bb
Arg [6] : 000000000000000000000000e5a9001701db5c8b3cef68e41aad1da4ae34b1c1
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.