I have one important question, how is your decentralized lottery obtain Bitcoin price in decentralized way?
Hi ETFbitcoin,
That's a great question, and we are considering it.
It is important to understand that we are willing to be partially centralized during the development phase, as stated on the website.
However, here is the current process and its upcoming developments:
1- We are on the testnet, so for now, the price comes from Bitstamp, simply.
2- For the mainnet, we will try to average prices from different exchanges.
3- In the future, the ideal scenario would be to post a script on the Bitcoin blockchain to deploy what could be called an "oracle." This way, even if the price comes from an average of multiple prices from centralized or decentralized platforms, it will be obtained in a publicly verifiable manner.
Important note: The price itself is not of great importance; what matters is its reliability and the reproducibility of obtaining it. Everyone must play by the same rules, yes, but whether the price is from Binance or Bitstamp does not change the game.
The purpose of methods involving averages is to minimize the impact of exceptional and local events.