Bear in mind, with that work having been done, my advice is completely different if you are a capable wrench and will drop a known good used mill in yourself. In that case, the numbers may add up. Otherwise, they don't.
Let's play a little math game. Known good used engine might be obtained for $750-$1,000 plus say $100 shipping. You don't know what kind of shape the used mill is in, or what the true mileage was on the vehicle it came from. It will be a similar vintage engine which means the internals are just as old as your current ones.
Labor to put it in is going to be about 15 - 18 hours at whatever your local independent charges. I am in a high cost area of the country so that number is $95.00/hr. (as opposed to about $135/hr. for a dealer). There will be a fist full of miscellaneous parts needed to do the engine swap, seals, gaskets, timing belt, tensioner, etc. Figure those will run you about $200-$300. So, you are already up to say $3,100.
The car, with that kind of mileage, regardless of what other regular maintenance you've already taken care of, on a good day is a $2,000 car, and that would be if it were running perfectly. Right now, it's a $500 car.
Parting it out, depending on what shape the body panels and seats are in could easily bring you north of $1,000, plus $300 from the scrapper when he comes to dispose of the shell.
Only you know whether those numbers work for you, but I'm not far off on the math -- trust me, I know these numbers well.
'98 V70 NA FWD 5 spd, silver sand metallic
'99 V70 NA FWD Auto, dark blue