Ferrari have agreed a fresh contract extension with Charles Leclerc, meaning that the Monegasque will continue to race for the team beyond the end of 2024.