Plan Structure
The Plan
structure is a data structure that holds information about a specific plan or level. This structure contains four fields:
name
: The name of the plan or level.maxReferrals
: The maximum number of referrals a user can have under this plan.priceInUSDT
: The price of the plan in USDT (U.S. Dollar Tether). Note that this value is multiplied bye18
, representing wei units in BNB.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.
Last updated