Owner permissions & safety
YellowSlot runs on a non-upgradeable smart contract on BNB Chain. Here is what the operator and drop creators can and cannot do, and how raffle draws work.
What the operator can do
The operator is a single fixed wallet set at deployment and cannot be transferred. Its key is kept offline. It cannot touch user funds.
- Pause new activityPause creating drops, entering raffles, and claiming spots. Block time continues while paused, which can shorten an entry window before a fixed deadline.
- Manage allowed tokensAdd or remove BEP-20 tokens for new drops and new paid spot claims.
What the operator cannot do
- Cannot take or redirect prizes, bounties, or user creditsFunds stay locked
- Cannot pick the winner or change locked rulesRules stay fixed
- Cannot pause locking entries, drawing winners, cancelling expired draws, refunds, or withdrawalsExits stay open
- Cannot upgrade the contract, mint tokens, or charge a protocol taxFixed contract
How raffle draws work (fairness note)
Raffles are free to enter. If the draw is missed, the prize goes back to the creator. (Paid slot drops are first-come-first-served and have no draw.)
After entries close (or fill up), anyone can lock entries to commit to 3 consecutive future BNB Chain blocks (20 blocks ahead, ~9 seconds). Once those blocks finalize (from targetBlock + 6), a keeper or anyone can run the draw and receive the creator's mandatory draw bounty (0.0005–0.05 BNB) in the same transaction.
Winner comes from future block hashes (keccak256 of those 3 hashes plus raffle ID, entrant count, contract address, and chain ID). A block producer could in theory influence it, so this is meant for small prizes.
No re-roll: If nobody draws within ~1 hour (7,800 blocks via the EIP-2935 block history contract, or 250 blocks without history), anyone can permanently cancel the raffle and return the prize and draw bounty to the creator (or credit their withdrawable balance). Entry is free (entrants paid only gas). prevrandao is not used.
Creator powers
Creators must hold an Agent ID (balanceOf > 0 on the Agent ID registry) to create a raffle or spot drop.
Creators receive paid spot proceeds into their own withdrawable balance and can close their spot drop early without affecting existing claims or receipts.
Creators cannot cancel a raffle after entries or take the prize back except through the documented permissionless paths: 0 entrants after close (refundEmpty), or a committed raffle whose reveal window expired without a draw (voidRaffle). Raffles with entrants cannot be voided while uncommitted.