Oracle
Smart Contract:[UniswapV3ChainLinkUsdOracle.sol](Solidity-Open-Source/UniswapV3ChainLinkUsdOracle.sol at main · Themis-protocol/Solidity-Open-Source · GitHub)
Functions
getLatestPrice
Get the latest price for a
token
Parameters:
Name | Type | Description |
---|---|---|
_token | address | sellected token address |
Returns:
Name | Type | Description |
---|---|---|
_answer | uint256 | Amount of acceptance |
_decimals | int | Decimal of the token |
getTWAPQuoteNft
Get a price quote for the
NFT
for the selectedToken
Parameters:
Name | Type | Description |
---|---|---|
_tokenId | uint256 | NFT ID |
_quoteToken | address | token address |
Returns:
Name | Type | Description |
---|---|---|
_quoteAmount | uint256 | quote amount |
_gasEstimate | uint256 | estimated gas |
Last updated