# Group Purchase Smart Contract

**URL:** <https://forum.nexa.org/t/group-purchase-smart-contract/346>\
**Category:** ScriptQuest\
**Created:** [September 10, 2024, 6:41pm UTC](https://forum.nexa.org/t/group-purchase-smart-contract/346 "2024-09-10T18:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leaiv3007](https://forum.nexa.org/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@leaiv3007](https://forum.nexa.org/u/leaiv3007)\
**Post date:** [September 10, 2024, 6:41pm UTC](https://forum.nexa.org/t/group-purchase-smart-contract/346/1 "2024-09-10T18:41:45Z")

</div>

The **Group Purchase Smart Contract** allows multiple participants to collaborate in buying a product at a dynamically decreasing price. As more participants join, the price per participant drops, but it will never go below a set minimum price. Once a specified number of participants is reached, the vendor can finalize the purchase and collect the total funds. Participants who overpaid due to the price reduction can claim a refund for the excess amount. This contract ensures fair participation and proper payment distribution in a decentralized group purchase system.

[Source code: GitHub](https://github.com/leaiv3007/GroupPurchase)
