Determines if a bid is losing (not winning) in the auction.
This is the inverse of isBidWinning - a bid is losing if it doesn't meet the criteria for winning.
True if the bid is losing, false if winning
const auction = await fetchAuctionBucketV1(umi, auctionPda);const bid = await fetchAuctionBidV1(umi, bidPda);const isLoser = isBidLosing(auction, bid); // true (price below 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 losing (not winning) in the auction.
This is the inverse of isBidWinning - a bid is losing if it doesn't meet the criteria for winning.
Returns
True if the bid is losing, false if winning
Example