• Determines if a bid is partially filled at the clearing price.

    A bid is considered partially filled when:

    • The bid is at the clearing price (bid number matches clearing price bid number)
    • The bid requests more tokens than are available at the clearing price

    This occurs when the auction's token supply is exhausted at the clearing price, causing the last bid at that price to receive only a portion of their requested tokens.

    Returns

    True if the bid is partially filled, false if fully filled or not at clearing price

    Example

    const auction = await fetchAuctionBucketV1(umi, auctionPda);
    const bid = await fetchAuctionBidV1(umi, bidPda);
    const isPartial = isBidPartiallyFilled(auction, bid); // true (partial fill at clearing price)

    Parameters

    • auctionBucket: Pick<AuctionBucketV1Input, "clearingPriceBidNumber" | "clearingPriceAllocation">

      The auction bucket with clearing price bid number and allocation

    • bid: Pick<BidInput, "bidNumber" | "tokenQuantity">

      The bid to check with bid number and requested token quantity

    Returns boolean

Generated using TypeDoc