GTokenLockedDepositNftDesign

Design contract for GTokenLockedDepositNft, useful for OpenSea and other NFT marketplaces

Methods

buildTokenURI

function buildTokenURI(uint256 tokenId, IGToken.LockedDeposit lockedDeposit, string gTokenSymbol, string assetSymbol, uint8 numberInputDecimals, uint8 numberOutputDecimals) external pure returns (string)

Parameters

NameTypeDescription

tokenId

uint256

undefined

lockedDeposit

IGToken.LockedDeposit

undefined

gTokenSymbol

string

undefined

assetSymbol

string

undefined

numberInputDecimals

uint8

undefined

numberOutputDecimals

uint8

undefined

Returns

NameTypeDescription

_0

string

undefined

numberToRoundedString

function numberToRoundedString(uint256 number, uint8 inputDecimals, uint8 outputDecimals) external pure returns (string)

Parameters

NameTypeDescription

number

uint256

undefined

inputDecimals

uint8

undefined

outputDecimals

uint8

undefined

Returns

NameTypeDescription

_0

string

undefined