Skip to main content

IPositionDescriptor

Git Source - Generated with forge doc

Interface for the PositionDescriptor contract

Functions

tokenURI

Produces the URI describing a particular token ID

Note this URI may be a data: URI with the JSON contents directly inlined

function tokenURI(IPositionManager positionManager, uint256 tokenId) external view returns (string memory);

Parameters

NameTypeDescription
positionManagerIPositionManagerThe position manager for which to describe the token
tokenIduint256The ID of the token for which to produce a description, which may not be valid

Returns

NameTypeDescription
<none>stringThe URI of the ERC721-compliant metadata

flipRatio

Returns true if currency0 has higher priority than currency1

function flipRatio(address currency0, address currency1) external view returns (bool);

Parameters

NameTypeDescription
currency0addressThe first currency address
currency1addressThe second currency address

Returns

NameTypeDescription
<none>boolTrue if currency0 has higher priority than currency1

currencyRatioPriority

Returns the priority of a currency. For certain currencies on mainnet, the smaller the currency, the higher the priority And those with the higher priority values (more positive values) will be in the numerator of the price ratio

function currencyRatioPriority(address currency) external view returns (int256);

Parameters

NameTypeDescription
currencyaddressThe currency address

Returns

NameTypeDescription
<none>int256The priority of the currency

wrappedNative

function wrappedNative() external view returns (address);

Returns

NameTypeDescription
<none>addressThe wrapped native token for this descriptor

nativeCurrencyLabel

function nativeCurrencyLabel() external view returns (string memory);

Returns

NameTypeDescription
<none>stringThe native currency label for this descriptor

poolManager

function poolManager() external view returns (IPoolManager);

Returns

NameTypeDescription
<none>IPoolManagerThe pool manager for this descriptor

Errors

InvalidTokenId

error InvalidTokenId(uint256 tokenId);