Determines if a bid is winning based on the auction's clearing price and bid number.
A bid is considered winning if:
True if the bid is winning, false otherwise
const auction = await fetchAuctionBucketV1(umi, auctionPda);const bid = await fetchAuctionBidV1(umi, bidPda);const isWinner = isBidWinning(auction, bid); // true (price exceeds clearing)
The auction bucket with clearing price and clearing price bid number
The bid to check with price per token and bid number
Generated using TypeDoc
Determines if a bid is winning based on the auction's clearing price and bid number.
A bid is considered winning if:
Returns
True if the bid is winning, false otherwise
Example