Launch App
Security, Legal & FAQ

Security Audit & Invariants

The protocol underwent comprehensive internal security review in October 2026, focusing on payment verification, admin authentication, draw lifecycle mechanics, VRF randomness integration, invariant accounting, and deployment integrity. The smart contract source code is open source and verified on BscScan. The web application, backend services, and keeper bots are proprietary platform infrastructure. This documentation reflects an internal engineering security assessment and does not constitute an independent third-party audit certification.

Immutability and Administrative Boundaries#

The core contract (QanVault.sol) is non-upgradeable and deployed without proxies:

  • Bytecode Immutability: No proxy pattern (ERC-1967, UUPS, Diamond, or Transparent) is used. Deployed runtime bytecode is permanent and cannot be modified.
  • Immutable State Variables: qanxToken, randomnessProvider, firstDay, firstWeek, and firstMonth are declared immutable in Solidity and compiled directly into runtime constants.
  • Permanent VRF Binding: setRandomnessProvider() deliberately reverts with ImmutableRandomness(). Randomness cannot be redirected or switched by the owner.
  • Zero Backdoor Rescue Functions: The contract does not implement emergencyWithdraw, rescueERC20, or selfdestruct. Vault prize pools, rollover reserves, and claim liabilities are non-custodial and untouchable.
  • Strictly Bounded Owner Privileges: Administrative capabilities are strictly limited to:
  1. setPurchasesPaused(bool): Pausing or unpausing ticket purchases.

  2. withdrawPlatformFees(): Transferring accrued platform fees (strictly 7.5% from sales, segregated in accruedPlatformFees) to the treasury.

  3. setTreasury(address): Updating the platform fee recipient address.

  4. fundDailyLaunchReserve(periodId, amount): Funding promotional daily vault pools without minting tickets.

  5. purchaseSmokeTicket(): A single one-ticket prelaunch oracle test before public sales open.

  • Permissionless Draw Operations: Draw closing (closeDraw), randomness fulfillment (fulfillRandomWords), draw settlement (settleDraw), prize claims (claimPrize), and expired prize rollovers (expireAndRollover) are public and executable by anyone.
  • Reentrancy Protection: OpenZeppelin ReentrancyGuard protects financial operations; ERC-20 transfers use SafeERC20.
  • Period Bounds: Draws cannot close before their UTC period ends, including when the caller is the owner.
  • Pool Freezing: Pool amounts are fixed at close. Rollover reserves are assigned to a specific future daily period.
  • Delayed Fulfillment Safety: Retry and timeout cancellation always revert. The 24-hour timeout only alerts; an oracle outage can lock a nonempty pool indefinitely without refund, rescue or rollover. Retain and settle the original request if it fulfills.
  • Solvency Invariants: Accounting includes unsettled pools, outstanding prizes, assigned reserves, and fees.

Verification and Invariant Auditing#

Smart contracts are validated against extensive unit and regression suites covering early-close rejection, historical reserve isolation, full allocation liabilities, re-roll rejection, and mock fulfillment access control. The contracts were analyzed with static analysis tools including Slither and Solhint during development.

Verified contracts are deployed on BNB Smart Chain and open for inspection on BscScan. Contract addresses and compiler parameters can be independently confirmed in the Contract Registry. Production security relies on on-chain immutable rules, verified bytecode, Chainlink VRF v2.5 coordination, and non-custodial contract mechanics.