Agora
  • Introduction
  • Mission
  • Problem & Solutions
    • Problems to Solve
    • Applicable Solutions
  • Agora's Products
    • Agora’s Ecosystem Structure
    • Overview
    • Loot Box Flash
      • Concept
      • How to Buy a Loot Box Flash
      • $AGL Token: Agora Loyalty Points
        • Level of Loyalty for Flash
    • Loot Box Prime
      • Concept
      • How to Buy a Loot Box Prime
      • Prizes
      • $AGL Token: Agora Loyalty Points
        • Level of Loyalty for Prime
      • How You Can Use Loot Box Prime to Promote Your Products
      • Loot Box Whitelisting
    • Loot Box Athena
      • Launch Gamified Loot Boxes in Minutes
      • Why to Activate Athena
      • Customization
      • LootBox Hybrid Platform & SaaS Capabilities — Feature Overview
      • Case studies
    • Loot Box Ads
      • A Dynamic Advertising Platform
      • How You Can Use Loot Box Ads to Promote Your Products
      • Targeting Your Audience Effectively
      • Example Cases
    • Referral Program
      • Unlock Passive Income with AgoraHub’s Referral Program
      • Boost Your Earnings with Agora’s NFT Collection
      • Upcoming Dashboard
    • NFTs
    • Agora's Technology
      • Random Number Generator (RNG)
      • Loot Box smart contract
      • Loot Box Vault
      • Optimal boost calculation
  • Tokenomics
    • Charts
    • AGA Token
    • AGA Utilities
    • Agora’s Engine
    • Wormhole Bridge
  • Go-to-market-strategy
    • Target Audience & Demographics
    • Competitive Analysis
    • Monetization Strategy
    • Distribution and Platforms
    • Milestones & Achievements
  • FAQ
    • How can I participate in the Agora’s Loot Box?
    • How do probabilities work in loot boxes, and what does it mean for my rewards?
    • How does LootBot Athena work?
    • How do I start using LootBot Athena?
    • Why isn’t AGA listed on CEX?
  • Team
    • Core Team
    • Advisors
  • Roadmap
  • Contact us
  • Links
    • Website
    • Twitter
    • Discord
    • Telegram
    • Medium
Powered by GitBook
On this page
  1. Agora's Products
  2. Agora's Technology

Loot Box smart contract

The LootBox smart contract, compatible with EVM and written in Solidity, implements the ERC721 protocol and lottery logic. For generating pure random numbers, it integrates with ChainLink VRF. The contract is deployed through a modified Upgradable Proxy mechanism that supports multiple implementations concurrently. Key modules include:

  • ERC721 implementation: Each loot box is an NFT, capable of changing states: LootBox -> Gem or Golden Ticket -> Burned. An intermediate locked state exists during the random number request. In its Gem or Golden Ticket state, it functions as a regular, tradable NFT.

  • Prize Register: This module stores information about available prizes and their probabilities.

  • Jackpot’s pool: Responsible for collecting and distributing jackpot prizes.

  • Sale module: Manages the sale of loot boxes.

  • Signature module: Verifies signatures of free tickets.

  • Random module: Integrates with ChainLink VRF for getting random numbers.

  • Admin module: Provides an API for managing prizes, prices, and probabilities, with a role-based security system.

PreviousRandom Number Generator (RNG)NextLoot Box Vault

Last updated 1 year ago