The Miami Heat have matched the four-year, $50 million offer sheet Tyler Johnson signed with the Brooklyn Nets.

Johnson’s contract included $18 million-plus and $19 million-plus “poison pill” provisions in years three and four of the deal.

Johnson made $507,000 in his second NBA season for the Heat in 2015-16. 

Johnson was an undrafted D-League guard in 2015 and played in just 68 games over parts of two seasons. Johnson missed nearly three months this season because of shoulder surgery but returned in the playoffs for Miami.