Mutants
Mutant Labs
Mutant Labs
  • Fundamentals
    • What is Mutant Labs?
    • How to apply to services
      • Staking
      • Raffles
    • How to access
    • Labs Updates
      • Mutant Labs update 1.9.0
      • Mutant Labs update 1.8.0
      • Mutant Labs update 1.7.0
      • Mutant Labs update 1.6.0
      • Mutant Labs update 1.5.0
      • Mutant Labs update 1.4.0
      • Mutant Labs update 1.3.0
      • Mutant Labs update 1.2.0
      • Mutant Labs update 1.1.0
      • Mutant Labs update 1.0
      • Mutant Labs update 0.9.0
      • Mutant Labs update 0.8.0
      • Mutant Labs update 0.7.0
      • Mutant Labs update 0.6.0
      • Mutant Labs update 0.5.0
      • Mutant Labs update 0.4.0
      • Mutant Labs update 0.3.0
      • Mutant Labs update 0.2.0
      • Mutant Labs update 0.1.0
    • Roadmap
      • STAKING
      • RAFFLE
      • NEW TOOLS
    • Fees
    • Fee reduction program
  • Guides - Users
    • How to stake and claim your rewards
      • Off-chain
      • On-chain
    • Raffle Guidelines
    • FAQ Raffles
    • Terms & Conditions
  • Guides - Project admins
    • How to customize my project
    • How to add policy IDs
    • How to configure stake rewards
      • Rarity ranks
      • Trait boosts
    • How to configure stake reward boosts
      • Double reward boost
      • Reward percentage boost
    • How to add mods
    • How to create a raffle
    • How to randomly pick a staked NFT
    • How to perform a snapshot of your collection
  • Tech Details
    • How raffles work?
    • Explaining the queue system
Powered by GitBook
On this page
  1. Tech Details

Explaining the queue system

The queue system was implemented because it was the easier and more future-proof way (in our opinion) to manage raffles UTxOs. Here are the two main reasons for that:

  1. Cardano tx size limitation. To understand: each user entry in a raffle will generate a new UTxO, now, considering a raffle with 100 unique user entries this would mean 100 inputs when claiming the prize. Since the tx also includes SC bytes, claim transactions would usually need to be split.

  2. Prize claim concurrency. If we put all raffle entry UTxOs in the same SC, multiple users could be trying to claim the same UTxO at the same time and this would fail. We could use data hash to identify them, but the tx size would drastically increase (point 1 becomes even worse)

So, considering raffles usually take at least 24h to finish and do not settle while there's someone in the queue, we didn't consider the queue system that harmful, but obviously not the ideal solution for popular raffles.

Is it possible to create a raffle system without this? Yes. We really hope that Cardano moves towards a faster transaction confirmation system (i.e. Hydra) and this won't be an issue anymore.

PreviousHow raffles work?

Last updated 2 years ago