Vinci NFT Oracle
AppDocument HubGitHub
  • Introduction
  • Oracle
    • Overview
    • Data Sources
    • Pricing Strategies
    • Data Feeds
    • Request A Custom Oracle
Powered by GitBook
On this page
  • Contract Methods
  • getAssetPrice()
  • getAddressList()
  • getLatestTimestamp()
  1. Oracle

Data Feeds

PreviousPricing StrategiesNextRequest A Custom Oracle

Last updated 2 years ago

To save gas cost, we compress multiple NFT floor price data into a single smart contract. Each oracle can support up to 7 NFT collection floor prices so far.

Oracle Address
Supported Collections

Bored Ape, Mutant Ape, Doodles, CryptoPunks, Moonbirds, CloneX, Azuki

Oracle Address
Supported Collections

Bored Ape, Mutant Ape, Doodles, CryptoPunks, Moonbirds, CloneX, Azuki

Due to the data compression mechanism, the floor price of any supported NFT collections that moves more than deviation threshold will trigger all NFT floor price updates.

Contract Methods

getAssetPrice()

function getAssetPrice(address asset) external view returns (uint256)

Get latest NFT floor price.

Parameter Name
Type
Description

asset

address

address of the NFT contract

For CryptoPunks, please use to get floor price because CryptoPunks is not using standard ERC721 contract and we actually convert original punks into wrapped punks when borrowers deposit them as collateral.

getAddressList()

function getAddressList() external view returns(address[] memory)

Get supported NFT collections.

getLatestTimestamp()

function getLatestTimestamp() external view returns (uint256)

Get the latest update timestamp.

The oracle contract only has a single update timestamp for all 7 NFT collections because all the prices will be updated when the batchSetAssetPrice() method is called.

Wrapper Punks address
0xd0f72d6c0b1dc8437ab1c5b706de34abf9b44a0b
0x975b5eb88ab4e438d6b10ddb3570e5c60062b18c