Skip to content

v0.3.13-preview.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Feb 06:21
· 7 commits to main since this release
4a976fd
fix: verify ownership on stale marketplace listings (#285)

* fix: verify ownership on stale marketplace listings

SDK (getToken):
- Add ownership verification to getToken() listings
- Cross-check on-chain token balances before returning listings
- Add expiration check (filter out expired orders)
- New verifyOwnership option (default: true)

Client (token detail page):
- Add collectionOrdersVerifiedAtom that cross-checks ownership
  via collectionOwnershipAtom (same pattern as verifiedCollectionOrdersAtom
  but returns OrderModel[] instead of ListingWithUsd[])
- Switch useTokenDetailViewModel to use collectionOrdersVerifiedAtom
  so token detail page no longer shows stale listings

Fixes: stale orders shown when NFT owner transfers token after listing

* fix: add collectionOrdersVerifiedAtom to test mock