Danaos Corp revealed on Friday it has agreed to buy a pair of post-panamax containerships just before rising freight rates sent secondhand prices for such vessels through the roof.

“We have agreed to purchase two 9,000-teu vessels built in 2009, which are both contracted on two-year charters with a major liner company,” Danaos chief executive John Coustas told analysts in a conference call on Friday.