Rewarding players for being in the lead for most of the race

So i sometimes find myself being in the lead most of the race only to be hit by an item or make a mistake before finishing/winning which is fine it’s part of the game and fun i was just thinking maybe reward people who lead for most of the race with units or XP.