Skip to content

Commit

Permalink
fix(NFTScan): mf-5609 data struct gets changed for solana nft (#11144)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill authored and guanbinrui committed Nov 20, 2023
1 parent 043571a commit 684e842
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export class NFTScanTrendingAPI_Solana implements TrendingAPI.Provider<ChainId>
},
market: {
total_supply: collection.items_total,
current_price: collection.floor_price.toString(),
floor_price: collection.floor_price.toString(),
current_price: collection.floor_price?.toString(),
floor_price: collection.floor_price?.toString(),
highest_price: undefined,
owners_count: collection.owners_total,
price_symbol: collection.price_symbol || 'SOL',
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-providers/src/types/NonFungibleToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export namespace NonFungibleTokenAPI {
owners_total: number
royalty: number
opensea_floor_price: number
floor_price: number
floor_price: number | undefined
price_symbol: string
collections_with_same_name: []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-providers/src/types/Trending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export namespace TrendingAPI {
}

export interface Market {
current_price: string
current_price: string | undefined
circulating_supply?: number
market_cap?: number
max_supply?: number
Expand Down

0 comments on commit 684e842

Please sign in to comment.