Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting the Default Price of Boost #38

Open
owenkellogg opened this issue Dec 4, 2022 · 3 comments
Open

Adjusting the Default Price of Boost #38

owenkellogg opened this issue Dec 4, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@owenkellogg
Copy link
Contributor

The problem is to estimate a good default price of Boost POW in sats / difficulty.

The idea is to look at how long users have to wait to get their boosts mined. If they have to wait too long, then the price is too low. If it is too short, then the price is too high.

We target a value in seconds per satoshi, which is the amount of time users have to wait per satoshi spent. We look at all boosts generated at the default price over a given period, say from two days ago to one day ago. Of those boosts that were redeemed, we sum the time taken to mine each and divide by the total satoshis spent on them.

Let P be our default price and let T be the amount of time we expect we expect a user to wait per satoshi spent. Let X be the measured value of wait time per satoshi.

The new price of Boost will be P * (1 + c * (X - T)), where c is some small value.

The default amount that users pay, which currently is 5 cents, should be a constant value that we set, so what should actually change is the amount of difficulty that is bought for that value.

@DanielKrawisz
Copy link
Contributor

Where I say c is some small value, that means less than one. If the value was too small then the price would adjust too slowly. If it was greater than one or too close to one it might lead to instability, so something around .5 or .75 ought to be good.

@owenkellogg
Copy link
Contributor Author

This algorithm still needs to account for jobs created at the default price that were not mined in the previous 24 hour time period. If only 1/3 of the jobs were mined then we should multiple the expected time to completion 3.

@create-issue-branch
Copy link

Branch issue-38-Adjusting_the_Default_Price_of_Boost created!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants