PizzaDAO / pizza-smartcontract

Repository for Rare Pizzas smart contracts
GNU General Public License v3.0
17 stars 4 forks source link

Pizza Box Slice Reservations Contract #73

Open snackman opened 3 years ago

snackman commented 3 years ago

Box Slice Reservations

BoxSliceReservation.sol

create a production-ready example of reserving slices using the box contract without making any changes to the existing box contract logic.

Ownable, not upgradeable

possibly using ERC-1155

Implementation Details

Possible Implementations

Escrow contract to take in 8 payments

What to do with the box

🔥🔥🔥

admin functions

johhonn commented 3 years ago

ERC1155 would be a good solution for the NFT option as you could have a one to one mapping in terms of token ids from pizza box to pizza slices. So for a given pizza box with id 200 you could have erc1155 tokens with id 200. The would probably be most gas efficient too.

antron3000 commented 3 years ago

Letting people buy 1/8 of a pizza box won't solve much IMO. Boxes will easily become more than 8x more expensive than what is affordable for most people.

I created a new issue to propose a method that would allow any fraction of a box to be owned, no matter how small. (link below)

https://github.com/PizzaDAO/pizza-smartcontract/issues/75

P.S. we can still implement pizza slices

AddressXception commented 3 years ago

we hit the deadline on this. It's no longer in scope for the core team. Can someone from the community pick this up?