# Pricing

The DeGym NFT-based voucher pricing function is designed to calculate the price of a voucher based on two primary factors: **tier** and **durability**. The pricing model also includes a decay factor, which adjusts the price over time to ensure fairness and incentivize early purchases. The pricing model rewards users who opt for longer durations, offering better value as the duration increases.

## <mark style="color:green;">System Parameters</mark>

The following parameters are internal voucher parameters in the respective of a given ERC20 token  determined by the DAO (commercial tokens), which can be changed anytime by voting mechanism:

* $$B\_P$$: BASE\_MONTHLY\_PRICE — the base price for a 1-month.
* $$M\_P$$: MIN\_PRICE\_FACTOR — The minimum percentage of the base price allowed.
* $$D\_R$$: PRICE\_DECAY\_RATE — The rate at which the price decreases as the duration increases.

## <mark style="color:green;">**Function**</mark>

The pricing of a voucher is determined by the following formula:

$$
Price=max(B\_P​×(1−D\_R​×(\frac{30}{D}​−1)),M\_P​×B\_P​)×T×\frac{30}{D​}
$$

Where:

* $$T$$:  tier — the tier level of the voucher, which acts as a multiplier.
* $$D$$:  duration — the duration of the voucher in days.

This formula calculates the voucher price by:

1. Adjusting the base price based on the duration. The longer the duration, the more favorable the pricing.
2. Ensuring that the price does not fall below a certain threshold, which is determined by the minimum base price factor.
3. Multiplying by the tier and the normalized duration to arrive at the final price.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.degym.net/dapp/nft-voucher/pricing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
