I believe the ships "depreciate" by 10% at trade-in or sale from storage. This also includes modules so to save some money you should swap all modules out for their lower quality counterparts prior to selling the hull, modules do not depreciate (at the moment).