Sellers lock a prize. Buyers buy tickets. Either every ticket sells and winners are picked automatically — or everyone gets their money back. That's it.
Seller sets the prize, ticket price, total tickets, duration, and winner count. The prize is locked — no one can touch it until it's over.
Anyone can buy during the open window. Tickets can be gifted to another address. Per-account limits keep it fair.
After the end time, anyone can trigger finalization. Sold out = success. One ticket unsold = full refund. No judgment calls.
Winners claim their prize share. Buyers claim refunds. Seller claims proceeds. Everything on-demand, nothing pushed automatically.