> For the complete documentation index, see [llms.txt](https://docs.5sky.io/ecosystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.5sky.io/ecosystem/developers/decentralization-and-transparent-commitment/plan-structure.md).

# 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.
