> For the complete documentation index, see [llms.txt](https://docs.enable3.io/enable3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enable3.io/enable3/hold-to-earn/hold-to-earn-no-code.md).

# Hold to Earn: No Code

### Overview

**Hold to Earn: No Code** is a version of Hold to Earn functionality that requires no backend setup.\
Set a fixed **Daily Prize Pool**, and the system will automatically distribute rewards proportionally to users who stake tokens in the program.

#### Use cases

| Regular (Stake) Programs                                         | Welcome Program                                        | Segmentation                                                                            |
| ---------------------------------------------------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| Set up 1-day, 3-day, or 8-hour staking challenges for all users. | Offer first-time users a fixed bonus on initial stake. | Create H2E programs (both Regular and Welcome) for selected user groups using segments. |
| *Encourages repeated short- or mid-term engagement.*             | *Ideal for onboarding and early activation.*           | *Drives loyalty and higher token commitment from selected audiences.*                   |

***

### Setup and configuration

To install:

{% stepper %}
{% step %}
Go to **Admin Panel → My Widget**
{% endstep %}

{% step %}
Click on the **Hold to Earn** card
{% endstep %}

{% step %}
Select **Hold to Earn No Code** and click **Install**

<figure><img src="/files/crOWZjy8WjrJFKqcTBZy" alt=""><figcaption><p>Hold to Earn Card, Installation tab</p></figcaption></figure>

{% hint style="warning" %}
Only one H2E type (e.g. Revenue-Based or No Code) can be active at a time.\
Switching types will uninstall the previously active H2E setup.
{% endhint %}
{% endstep %}

{% step %}
Configure the program

Once installed, you’ll see 4 default programs (Deactivated by default):

* **Welcome** (one-time staking reward for new users)
* **Regular**&#x20;

  * 8 hours
  * 1 day
  * 3 days

  To configure, click **Edit** → open **Edit Program** pop-up → fill in the [parameters](#program-configuration).
  {% endstep %}

{% step %}
Once updated, change **Status → Activated** to make it live on the widget.
{% endstep %}
{% endstepper %}

#### Program parameters setup&#x20;

<details>

<summary>Regular Program parameters</summary>

| Field                | Required? | Description                                              |
| -------------------- | --------- | -------------------------------------------------------- |
| **Name**             | Optional  | For admin display only                                   |
| **Program Duration** | Yes       | Set in minutes, hours, or days                           |
| **Color**            | Yes       | Defines how it appears on the widget                     |
| **Segment**          | Optional  | Filter access to specific user groups (see below)        |
| **Daily Prize Pool** | Yes       | <p><sup>\*</sup>Tokens distributed over 24 hours<br></p> |

{% hint style="warning" %}
\*The 24-hour countdown starts from program activation or Daily Prize Pool update.
{% endhint %}

<figure><img src="/files/Jt9BkvAqUtyiy8wdWQdQ" alt=""><figcaption><p>Edit Program pop-up for Regular Program</p></figcaption></figure>

</details>

<details>

<summary>Welcome Program-specific parameters</summary>

| Field                    | Required? | Description                                                  |
| ------------------------ | --------- | ------------------------------------------------------------ |
| **First Stake Reward %** | Yes       | Percentage of Max to Stake given as reward                   |
| **Max to Stake**         | Optional  | Maximum token amount a user can stake in the Welcome program |

Example:

> If Max to Stake = 200, and Reward % = 5%, user earns 10 tokens upon completion.

<figure><img src="/files/QE5TkL1SAG1qv3epkIOH" alt=""><figcaption><p>Edit Program pop-up for Welcome Program</p></figcaption></figure>

</details>

#### Reward distribution logic

Rewards are distributed every minute based on share of total pool.

* **Per Minute Distribution**:\
  `Daily Prize Pool ÷ 1440 = Tokens distributed each minute`
* **User's Reward**:\
  `Per Minute Tokens × User’s % Share`

Example:

> If Daily Pool = 100,000 → 100,000 ÷ 1440 = 69.44 tokens per minute\
> User with 1% share gets 0.694 tokens per minute

#### Segmentation logic

You can control which users see and can access each staking program using segments.

<figure><img src="/files/ULsPFEVxzedMW8HWEMiP" alt=""><figcaption><p>Selecting Segments in Edit Program pop-up</p></figcaption></figure>

* The Segment field is optional
* Programs with no segments are visible to all users
* Programs with segments are visible only to users who match the selected segment
* Multiple segments can be assigned to a single program.
* If a user doesn’t match the assigned segment, the program card will indicate the required segment

<figure><img src="/files/RYvZvI7ItUbISebvGuXl" alt="" width="160"><figcaption><p>Example: Hold to Earn program unvaliable for user</p></figcaption></figure>
