<aside> 📝 Learn all about the briq factory: briq’s unique onchain briq-production algorithm.
</aside>
The briq factory is a collection of smart contracts allowing users to get briqs to mint anything they want. We call it the factory because it mimics the way a factory works, and because it’s a funny name.
With the briq factory users can:
Get briqs directly
Mint & get briqs
Up until June 6, 2023 you needed to already own briqs to be able to build anything with briqs. This means you needed to have participated in the initial briq sales (Starknet Planet, Ducks Everywhere), or have bought briqs on the secondary market.
This greatly constrained the supply of briqs and, as briq’s userbase grew, it became increasingly difficult to get some briqs and build something. It also led to undesirable side effects, such as most sets being comprised of a single briq 😅
Not good
To solve this issue, we decided to allow users to buy briqs directly from the briq website. We faced several challenges, among which “how much should a briq cost?”
If the price is too high, too few users will be able to buy briqs which defeats the purpose of the briq factory. If it’s too low, the sets built with these briqs will be worthless. It’s a tricky.
Something we’re able to gauge, though, is how many briqs people will want, or at least how many briqs we expect people to want. So we’ve decided to implement a pricing algorighm that reflects this idea.
Initially we thought of having a fixed number of briqs produced everyday. When the daily supply is used up, the factory closes and replenishes the next day. We then realized that, in case of a increase in demand, this would frustrate users. We want users to be able to get briqs at all time if they want to build something!
briq machine broq
To sum up the requirements: