Skip to main content

PositionDescriptor.sol

Read code on GitHub

Manages the metadata of the Primitive protocol position tokens

Methods

getMetadata

Returns the metadata of a position token

Solidity
function getMetadata(address engine, uint256 tokenId) external view returns (string)

Parameters

NameTypeDescription
engineaddressAddress of the PrimitiveEngine contract
tokenIduint256Id of the position token (pool id)

Returns

NameTypeDescription
_0stringMetadata as a base64 encoded JSON string

positionRenderer

Returns the address of the PositionRenderer contract

Solidity
function positionRenderer() external view returns (address)

Returns

NameTypeDescription
_0addressundefined