3. Weather
Last updated
Was this helpful?
Last updated
Was this helpful?
The weather is provided by the APIs from:
Because of the required API_KEY, this part has been moved to a serverless function instead of being fetched from the smart contract directly. However, to maintain maximum transparency, the weather is fetched via a Chainlink Functions, and this function is called via Chainlink Automation every 60 minutes.
This mechanism allows us to keep most of the logic on-chain while playing with almost real-time weather conditions at the same time.
Like in the real life, the weather has a direct impact on your car performance. When it is sunny, you can maximize the speed as you will have a good grip on the road. In bad weather, this is a different story as rain will impact your speed, your brakes and basically every other attributes!
So make sure to check the weather before joining a tournament!