Oracle

Functions

getLatestPrice

Get the latest price for a token

function getLatestPrice(
    address _token
) public view returns (int256 _answer,int _decimals)

Parameters:

NameTypeDescription

_token

address

sellected token address

Returns:

NameTypeDescription

_answer

uint256

Amount of acceptance

_decimals

int

Decimal of the token

getTWAPQuoteNft

Get a price quote for the NFT for the selected Token

function getTWAPQuoteNft(
    uint256 _tokenId,
    address _quoteToken
) external view returns(
            uint256 _quoteAmount,
            uint256 _gasEstimate
        )

Parameters:

NameTypeDescription

_tokenId

uint256

NFT ID

_quoteToken

address

token address

Returns:

NameTypeDescription

_quoteAmount

uint256

quote amount

_gasEstimate

uint256

estimated gas

Last updated