🏁Racing Mechanics

After a race is created, there is a 600 block (~2.5hr) window for other racers to join. After that time, the race will start if there is at least two racers, otherwise it will be canceled. Races can also start early if and when all 7 slots have been filled at any point within those 600 blocks.

A race is live for 60 blocks (~15min). During this time, racers progress as each block is mined. The distance traveled during each block for each racer is determined using a random value derived from the blockHash plus bonuses based on the racer’s level. The winner of the race is the racer that travels the farthest in those 60 blocks.

After a winner has been declared, any racer can elect to finalize the race. Finalizing a race calculates and assigns XP won during the race to the winners - the more racers you beat, and the higher their level, the more XP you earn. Since the winner of a race has the most XP to gain, they have the most incentive to execute the finalization transaction.

RACERS HAVE ~200 BLOCKS (~50min) TO FINALIZE A RACE. A RACE THAT IS NOT FINALIZED WITHIN THAT WINDOW WILL EXPIRE AND NO XP WILL BE EARNED

Last updated