Batch Accept Buy Offers
Function:
public fun batch_accept_buy_offers<CURRENCY>(
ledger: &mut TradeLedger,
offer_ids: vector<ID>,
fill_amounts: vector<u64>,
mut nfts: vector<NFT>,
mut sender_balances: vector<UserBalance>,
collection_cap: &CollectionCap,
clock: &Clock,
ctx: &mut TxContext
): u64
Description:
Allows sellers to fill multiple buy orders in a single transaction.
NFTs are transferred, and sellers receive payments.
Validations:
The seller must own the NFTs.
The buy orders must be open.
The transaction must not exceed the batch limit.
Last updated