NFT Descriptor
Last updated
Was this helpful?
Last updated
Was this helpful?
As we explained , the metadata + image of the position NFT is fully on-chain. There is a contract that, given a position id, returns a string with the ERC721 metadata JSON. This JSON also contains a SVG (also as a base64 string) that displays the information about the position, such as:
Position Id
Available for withdraw
Swapped since last modification / withdraw
Remaining
Position rate
We call the contract responsible for this work "NFT Descriptor". Since all of this work is performed on-chain, there is no need for external servers or IPFS.