/** * gets info for a counterparty asset * @param string $asset * @return Response * */ public function get(Cache $asset_info_cache, $asset) { $asset = $asset_info_cache->get(strtoupper($asset)); if (!$asset) { $message = "The asset {$asset} could not be found"; EventLog::logError('error.getAsset', ['asset' => $asset, 'message' => $message]); return new JsonResponse(['message' => $message], 500); } return json_encode($asset); }