# Calculation formulas for created tokens

### When creating a post:

For the post creator (the author of the transaction or the original creator in case of a repost):

``Number of Tokens = Cost of gas * Percentage to the creator * Coefficient of maximum reputation * Coefficient of reputation of the creator``

For the post owner (determined by the author of the transaction):

``Number of Tokens = Cost of gas * Percentage to the owner * Coefficient of maximum reputation * Coefficient of reputation of the owner``

In Page.Treasury:

``Number of Tokens = Cost of gas * Percentage for the Treasury``

### When creating a comment:

For the author of the commented post:

``Number of Tokens = The cost of gas * The percentage of the comment for the original post autor * Coefficient of maximum reputation * Coefficient of reputation of the original post author``

For the owner of the post (determined by the transaction author):

``Number of Tokens = Cost of gas * (100% - The percentage of the comment for the post author - The percentage of the comment for the Treasury) * Coefficient of maximum reputation * Coefficient of reputation of the commentator``

In Page.Treasury:

``Number of Tokens = The cost of gas * The comment percentage for the Treasury``

### Where:

• `The cost of gas` is calculated as the gas cost consumed in the post creation transaction. For this calculation, smart contracts measure the gas expended, add a special value covering the gas that cannot be measured (expended by the fact of the transaction itself, the preparation of data for the function call and the code responsible for generating tokens) and convert this value from the base coin value of the current blockchain into the value of Page.Token received from a decentralized stock market.

• `The percentage to the creator` and `The percentage to the owner` are the values set within Page.DAO or Page.Community (in case a post is created and transmitted to the community).

• `Coefficient of reputation of the creator`, `Coefficient of reputation of the owner`, `Coefficient of reputation of the original post author`, `Coefficient of reputation of the commentator` are calculated according to the formula set by Page.Dao or Page.Community, (if a post is created and shared with the community/the post being commented belongs to the community) based on Page.SoulBound that belong to the corresponding account.

• `Coefficient of maximum reputation` is such a value that multiplying it with the maximum possible calculated value of any of the above reputation coefficients will never give a value greater than 1.

• `Percentage for the Treasury`, `The comment percentage for the Treasury` are the values set within Page.DAO.

• `The percentage of the comment for the original post autor` is transmitted by the author of the comment, but for the author of the commented post it can never be less than the minimum percentage value determined by Page.Dao or Page.Community (if the commented post belongs to the community).

• At the same time, the amount of tokens generated in response to the creation of a post or comment cannot exceed the gas cost consumed in monetary terms when generating such a post or comment.

• It should be noted that according to the rules for controlling the transfer of tokens, if Page.NFT token conditional transfer approach is used, Page.Token, according to the formulas above, will be generated only when the party receiving Page.NFT will confirm the acceptance of such a token.

Last updated