The Colorado Avalanche and captain Gabriel Landeskog agreed on an eight-year contract extension, taking the most coveted forward off the market on the eve of NHL free agency.

The contract carries a $7 million average annual value. It has a full no-movement clause in the first four seasons and then a modified no-trade clause in the final four years.

Landeskog and the Avalanche negotiated down the wire. They had until 11:59 p.m. ET on Tuesday night to agree to a contract with a maximum eight-year term; otherwise, the maximum term would have been seven years.