Marlins slugger Giancarlo Stanton agreed the richest contract in sports history which could keep him in Miami until 2027.