RealDevSquad / RealDevSquad/website-backend
Minting engine for Crypto
@rajakvk is already working on this.
Since Mar 28, 2021.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Problem statement: 1 - N users, each having K miners, and each miner generating 1-X scraps, every Y seconds.
Miner design here: https://github.com/Real-Dev-Squad/website-crypto/issues/195
FAQs
1. How user get a miner? Should he purchase one? or How user earn a miner?
We have a shop from where users can purchase. Also, in some lucky draws, users will be awarded miners. You don't have to worry about how they receive them, just how they use them.
-
What would be max / min number of miners per user? what would be typical number looks like
Good question. Min = 0
Max, well, there's no max limit to be honest. However many they buy.
Typically, I would say most users have it 1 - 10 -
What wold be miner efficiency map looks like?
is this assumption correct?
miner-1 scraps gold coin for every 10 seconds
miner-2 scraps gold coin for every 1 hour
miner-3 scraps gold coin for every day
miner-4 scraps silver coin for every 1 hour
miner-5 scraps 2 gold coin for every 1 day, 3 silver for a week
The miners mine "scarps", which has to be sent into a mint to be created into a coin (future feature)
Yes. Miner mines [0, X] scraps of type T every S seconds -
Will a miner always has same efficiency? will it change over time? If yes, how? what are the rules? on what basis?
Great question again!
The efficiency is a random number between 0 and X for now.
In future, better miners will have higher probability of being closer to X on the number line -
Can a miner scraps more than one type of coin? like, miner-x scraps 2 gold coin for every 1 day, 3 silver for a week
Superb question once again!
Yes. Sometimes, a miner can generate scrap for another item. E.g while mining gold scraps, randomly (maybe once in 4 hours, or sometime random), it ends up also mining a diamond piece -
How many types of currencies available? is it finite? or dynamic. (gold, silver)
Dynamic! -
What is difference between currency, coin, scrap?
Currency is value that you can use, i.e buy/sell from (or borrow/lend)
Gold coin is a type of acceptable currency
Scrap is a piece of currency, that has to be refined and melted into usable later (e.g 103 gold scraps, after mint becomes 1 gold coin) -
What is this all about? game, imaginary scenario for POC or one day will it be business worth real life application
It's a game + in-app payment solution.
E.g Suppose you want to "pay" Nikhil for reviewing your PR in a day on priority, then you can set a bounty for 50 gold coins if he does. If you want to SMS Shankar for something urgent, you have to pay 4 neelams as the cost.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.