5SKY
  • ✨Introduction
  • Products
    • 🌌5SKY NFT Project
      • 5SKY LTI (Core)
      • Lottery Smart Contract
    • 🪙5SKY Token Project
      • Token Specifications
      • Tokenomics Explained
      • Token Features
      • Functions Overview
  • Getting Started
    • Create a Wallet
    • Overview of the 5SKY NFT
      • Connecting MetaMask
      • Connecting Trust Wallet
  • 💻DEVELOPERS
    • Decentralization & Transparent Commitment
      • Plan Structure
      • NFTData Structure
      • TokenURI function
      • Purchase function
      • Upgrade function
  • 🎇FAQ
    • 5Sky Ecosystem
    • NFT Project
    • LTI Smart Contract
    • Lottery Smart Contract
    • Token Project
  • ☎️Contact Us
    • Customer Support
    • Social Accounts & Communities
Powered by GitBook
On this page
  1. DEVELOPERS
  2. Decentralization & Transparent Commitment

Plan Structure

The Plan structure is a data structure that holds information about a specific plan or level. This structure contains four fields:

  1. name: The name of the plan or level.

  2. maxReferrals: The maximum number of referrals a user can have under this plan.

  3. priceInUSDT: The price of the plan in USDT (U.S. Dollar Tether). Note that this value is multiplied by e18, representing wei units in BNB.

  4. lotteryChances: The number of lottery chances awarded to a user under this plan.

The plans Array:

plans is an array of Plan structures that can hold up to 5 plans. In this snippet, five plans with different values have been added to the array.

Adding Plans:

In this section, five plans with different values are added to the plans array. For instance, the first plan named "level 1" has 5 referrals, is priced at 105 USDT, and offers 1 lottery chance.

PreviousDecentralization & Transparent CommitmentNextNFTData Structure

Last updated 1 year ago

💻