Summary
Buying keys from multiple creators requires a separate transaction per creator. A batch_buy function accepting a vec of (key_id, quantity) pairs and processing all purchases atomically would reduce the number of transactions users need to sign.
Scope
- Add a batch_buy(orders: Vec<(BytesN<32>, u32)>) function
- Validate that the vec contains between 1 and 5 entries
- Process each buy using the existing bonding curve logic in sequence
- If any single buy fails (e.g. circuit breaker, lockup), panic the entire transaction
- Emit a batch_buy_completed event listing all (key_id, quantity, price_paid) tuples
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
Buying keys from multiple creators requires a separate transaction per creator. A batch_buy function accepting a vec of (key_id, quantity) pairs and processing all purchases atomically would reduce the number of transactions users need to sign.
Scope
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram