That makes sense. Thanks you
Hi @HODL . Thanks !
No exact date yet, but soon. I want to add more games/modes first, to provide more options for users.
Best,
LuckyDappTeam
Hi @KayceeP
I think @fabsltsa has already answered your question:
Also thanks to @maaz for explaining how it works, you got it right.
I saw this news too, itâs great. I canât wait for it to be integrated.
But this doesnât mean that LayerZero functionality wonât be useful. It will be useful for those coins (pairs) that will not be immediately / initially supported by ChainLink in the TRON network or for data that ChainLink will not support at all, but other protocols will.
This is about data, but we should not forget that thanks to cross-chain messages, a lot of functionality can be added.
Best,
LuckyDappTeam
@WALLY Can you answer this comment ? @admin.hackathon
@WALLY I would suggest that you at least share your smart contract with us to confirm whether youâre integrating chainlink , as much of the app currently displays âcoming soonâ featureâŠ
Hello team LuckyDapp, I followed all the process in testing your project and after claiming the 1000 $Lucky a few times to test your project, the system still show that I have 0 $Lucky which couldnât let me test the project. Can you explain to me why this is happening
Hi @richyrich
Thank you for your feedback and for your question.
First, I want to confirm once again that yes, all data, including price datas, as well as the VRF numbers, are taken from ChainLink (from the EVM network) and delivered back to the TRON network using LayerZero.
At the moment this is version v1 of the contracts and the code is closed. Soon the code will be slightly changed, additional events will be added, etc., which will allow users to verify that the data is correct, although I plan to open the source code as soon as the new version comes out.
But even now, despite all this, I will explain that all the data is taken from ChainLink and since in your message you touched on the topic of price data (âBullOrBearâ prediction market), I will explain with this example.
Firstly, it is worth noting that at the moment, for each market in BullOrBear (BTC, ETH, EUR/USD, etc.) a separate pair of contracts (TRON & EVM) has been created and each market can be configured in terms of time for âPrediction periodâ and time for the âSettlement periodâ. At the moment, the settings are as follows:
- BTC: 30 minutes for Prediction period, 30 minutes for Settlement period
- ETH: 60 minutes for Prediction period, 180 minutes for Settlement period
- EUR/USD: 60 minutes for Prediction period, 120 minutes for Settlement period
This means that every 30 minutes a function is called in the TRON contract to get the initial price of BTC, which sends a cross-chain message to the EVM network. After the message is delivered to the EVM network (meaning that the special internal function was called by the LayerZero Executor), the latest price of BTC from the ChainLink oracle is read and this price is sent back to the TRON network.
The price data is obtained using the âChainLink AggregatorV3Interfaceâ and pointing to the proxy address of Data Feed.
In short, the logic of getting the last price and returning it to the TRON network is in an internal function that can ONLY be called by the LayerZero Executor. This means that it is impossible to call this function yourself or substitute incorrect price data.
The ChainLink âBTC / USDâ Data Feed proxy contract returns, in addition to the price, additional data, such as round_id and others. As I said above, this is the version v1 of the contracts, and I do not return anything except the price itself, since the main goal was to develop the main functionality in the first place - to return the current price.
But donât worry, the next version of the contracts will return, in addition to the price itself, also the round_id in which the price was fixed on the Chainlink side. Thus, users will be able to verify that the price at moment X was correct.
I have prepared a small example to prove that the data was taken from ChainLink.
-
Letâs take the BTC market, Round #1169. Link: Click
-
As you can see, the page displays the Initial BTC price: $68706.74602356
-
The price request was on 2024-11-05 13:33:57 (UTC).
-
At that time, the latest BTC price in the Chainlink BTC / USD Contract (Arbitrum) was fixed in round_id #242219 at 1730813640 timestamp [ Nov 05 2024 13:34:00 (UTC) ]
-
Round_id #242219 details from official ChainLink contract (you can check it yourself).
roundId uint80 : 242219
answer int256 : 6870674602356
startedAt uint256 : 1730813640
updatedAt uint256 : 1730813640
answeredInRound uint80 : 242219 -
You can see the âanswerâ field with the value 6870674602356 (8 decimals, so the real price is 68706.74602356 - the same as on the BTC market, Round #1169 page on the app.
All transactions can be seen in the explorer in the Internal Transactions section. I have already described above that these are internal functions, so they are located there. Here is the screenshot:
As you can see, transactions are performed every 30 minutes.
I hope with this message I answered your question and made it clear that the data is really taken from ChainLink. I note again that a new version of contracts with more details will be released soon, which will allow users to be sure of the correctness of the prices and even check it out yourself.
Thanks.
Best,
LuckyDappTeam
Hi @maaz . I just replied to his message.
As for contracts, I also answered:
The texts âComing soonâ in the app mean that in addition to what already exists and works, new features will be added. As an example, a new game has already been added and you can already test it.
Thanks.
Best,
LuckyDappTeam
Hi @Chukseucharia . Thank you for taking the time to test the project.
I just checked the explorer and I confirm that you have claimed tokens 3 times, you have 3000 $LUCKY on your balance.
Most likely, the balance did not update immediately.
Please open the app and try again. It should work.
Best,
LuckyDappTeam
Updates and few statistics:
New game available - Coin Flip.
In this exciting game, participants place their bets on whether a virtual coin will land on HEADS or TAILS. If you guessed correctly, you double your bet.
The random outcome is also guaranteed by VRF.
Statistics:
- Bull or Bear: 2100+ rounds completed (in total across 3 available markets)
- Ticket Lottery: 1400+ rounds completed
- Coin Flip: 20+ games played
Best,
LuckyDappTeam
Hello team LuckyDpp, I tested your project to play the prediction game and I noticed I got stuck here for almost more than an hour and again I try to minimise to do something else then I noticed that I need to start afresh, please keep it stress free for users using mobile.
Checked back and yes, the 3000 $LUCKY was created to my account. I have to play a couple of your coin flip and I enjoyed the experience although it takes time before it finished processing. It will be nice if the amount of time it takes to process (around 3 to 5 minutes) be reduced.
Although this is still the testnet phase but I think the energy it require to approve a bet is too high. Please consider the energy consumption and subsidize it as low as possible to avoid scaring users away
There is this notification on Tronlink when I was visiting the site which I found inappropriate because it can make users not to visit your site to explore its offering. Please ensure to get all the permission you need from tronlink team before going mainnet so that this warning message will stop showing anytime users want to visit your site