An L61 for a 2007 with less than 125K on it is about $1200 and up..... Anything above 150K they don't even list. A reman is $2500 to $3000.
You can pay less for a 175k or 200k engine, but with unknown maintenance, all you have to go on is the warranty. Many yards do not track the reason the car is in the yard. Fresh collisions are one thing, but they still don't guarantee the engine is trouble free.
My suggestion involved driving it into the ground. Costs nothing more than oil.
When it explodes, sell it whole as a parts car if you can. If not, off to the yard. There are a few parts in high demand. One is a bushing at the bottom of the clutch pedal. The other are hydraulic lines for the clutch.
There is not enough demand for the rest of the parts to justify having it sit on your property for 5 years until you're fed up that no one is buying anything from it
I would never let a yard dude install an engine in my car