# How?

The Help Steps (HS) to Help Steps X (HSX) conversion mechanism works by using a bonding curve to ensure a non-inflationary conversion process. The bonding curve is established using a fixed total supply of HSX tokens and a pool of HS.

The total score of the system is calculated by multiplying the assets in the bonding pool, which is a constant value. When a user wants to convert HS to HSX, the system calculates the total amount of HS in the pool and divides it by that constant. The resulting value determines how many HSX tokens should be left in the pool, with the difference between the initial pool state and this value representing the number of HSX tokens that will be given to the user.

There is a 0.5% fee collected by the app for every HS to HSX conversion, with the collected HSX tokens being permanently burned to reduce the total supply of HSX. This ensures that the HSX token remains non-inflationary, with its value increasing as more users convert their HS to HSX or redeem HSX for items in the in-app marketplace.

$$
q: constant = 1.25 \* 10^{25} \a\_{hs}: \text{amount of HS in the pool before user swap} \ a'*{hs}: \text{amount of HS in the pool after user swap} \ a*{hsx}: \text{amount of HSX in the pool before user swap} \ a'\_{hsx}: \text{amount of HSX in the pool after user swap} \ {\Delta} : \text{amount of HS or HSX being deposited to the pool by the user}
$$

The amount of HSX user receives by swapping HS to HSX is calculated as;

$$
q/(a\_{hs} + {\Delta}) = a'*{hsx} \ {\Delta}*{hsx} = a\_{hsx} - a'*{hsx}: \text{Net amount of HSX extracted from the pool} \ {\Delta}*{hsx} \* 0.995: \text{The amount of HSX received by the user} \ {\Delta}\_{hsx} \* 0.005: \text{The amount of HSX burned}
$$

And the amount of HS user receives by swapping HSX to HS is calculated as;

$$
q/(a\_{hsx} + {\Delta}) = a'*{hs} \ {\Delta}*{hs} = a\_{hs} - a'*{hs}: \text{Net amount of HS extracted from the pool} \ {\Delta}*{hs} \* 0.995: \text{The amount of HS received by the user} \ {\Delta}\_{hs} \* 0.005: \text{The amount of HS burned}
$$


---

# 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://help-steps-1.gitbook.io/whitepaper/hsx-token/anti-inflationary-conversion/how.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.
