The Eagles won a bidding war for undrafted Stony Brook offensive lineman Michael Bamiro by guaranteeing nearly a quarter of a million dollars of his base salaries over the next two years, according to a source familiar with the details of his contract.

The unusual journey of the 6-foot-8, 338-pound Bamiro, started in Pittsburgh, continued in Stony Brook, N.Y., and led to Philly on Tuesday, when the Eagles agreed to terms of a three-year contract with the massive 22-year-old offensive tackle.

They officially signed him on Wednesday, and it turns out that his contract, negotiated by agent Tony Agnone, is quite unusual for an undrafted rookie.

Bamiro’s deal is worth $1,486,170, which isn’t the unusual part. That’s minimum wage for rookies over the next three years. What is unusual is the amount that’s guaranteed.

Bamiro’s minimum-wage base salaries are $405,000 in 2013, $495,000 in 2014 and $585,000 in 2015, but $140,000 of the first year’s salary is guaranteed, and $107,100 of the second year is guaranteed, for a total of $247,100 in guaranteed base salary in the first two years of the contract.

Even if the Eagles cut Bamiro today, the undrafted rookie keeps nearly a quarter of a million dollars.

Bamiro is considered a long-term project with tremendous upside, but the size of his contract is a strong indication that the Eagles are willing to be patient with him and give him time to develop.

Because the CBA limits teams to a total of $75,000 in bonus money for their undrafted rookie free agents, and the Eagles -- along with every other team -- have long since spent that money, the Eagles couldn’t lure Bamiro to Philadelphia simply with a signing bonus.