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â1025ahsâ:amount of HS in the pool before user swapahsâ˛â:amount of HS in the pool after user swapahsxâ:amount of HSX in the pool before user swapahsxâ˛â:amount of HSX in the pool after user swapÎ: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/(ahsâ+Î)=ahsxâ˛âÎhsxâ=ahsxââahsxâ˛â:Net amount of HSX extracted from the poolÎhsxââ0.995:The amount of HSX received by the userÎhsxââ0.005:The amount of HSX burned And the amount of HS user receives by swapping HSX to HS is calculated as;
q/(ahsxâ+Î)=ahsâ˛âÎhsâ=ahsââahsâ˛â:Net amount of HS extracted from the poolÎhsââ0.995:The amount of HS received by the userÎhsââ0.005:The amount of HS burned