The Calgary Flames have signed veteran free agent Jaromir Jagr to a one-year deal, with a $1 million base salary and another $1 million in attainable bonuses.

TSN Hockey Insider Pierre LeBrun reported earlier on Monday that the two sides were working towards the one-year agreement.

If indeed Jagr deal gets done in Calgary, am told it's for $1 million base salary plus another $1 million in attainable bonuses — Pierre LeBrun (@PierreVLeBrun) October 2, 2017

The deal might not be official for another couple days as the Flames are working on immigration paperwork with Jagr still overseas and not expected to be in Calgary until Wednesday. LeBrun notes that this will give the Flames time to make roster decisions before the Tuesday deadline.

The upside is that it gives the Flames some time to make final roster decisions by Tuesday deadline before they officially add Jagr to it — Pierre LeBrun (@PierreVLeBrun) October 2, 2017

Jagr also turned down a contract offer from the St. Louis Blues, general manager Doug Armstrong confirmed to LeBrun.

Armstrong, assistant GM Martin Brodeur and head coach Mike Yeo all spoke with Jagr over the weekend prior to making the offer, but were informed that the 45-year-old had chosen to go in another direction.

Armstrong first reached out to Jagr's agent Petr Svoboda last week after Fabbri went down... the Blues GM got word Jagr went another route — Pierre LeBrun (@PierreVLeBrun) October 2, 2017

LeBrun reports the offer from the Blues was similar to the deal Jagr accepted from the Flames. His contract leaves the Flames with $2.64 million in cap space for this season, according to Cap Friendly.

I believe the Blues' offer to Jagr was similar to what he has signed in Calgary ($1 M base salary plus $1 M in bonuses). He chose the Flames — Pierre LeBrun (@PierreVLeBrun) October 2, 2017

The 45-year-old winger made it known that he wants to continue playing in the NHL, but hasn't been able to find a team to play for this off-season.

Jagr scored 16 goals and added 30 assists over 82 games with the Florida Panthers in 2016-17, his third year with the organization and 24th in the NHL.

The native of the Czech Republic is coming off a one-year, $4 million contract.

The five-time Art Ross Trophy winner and former league MVP sits behind only Wayne Gretzky all-time with 765 goals and 1,149 assists for 1,914 points. He currently sits 56 games back of Gordie Howe for the most games played all-time.

Calgary opens the season Wednesday night in Edmonton against the Oilers, while opening night rosters are due by Tuesday afternoon.