diff --git a/src/service/mercury/helpers/transformers.ts b/src/service/mercury/helpers/transformers.ts index 9d9395a..e4b6771 100644 --- a/src/service/mercury/helpers/transformers.ts +++ b/src/service/mercury/helpers/transformers.ts @@ -116,9 +116,13 @@ const transformAccountBalances = async ( }, {} as NonNullable); const classicBalances = classicBalanceData.reduce((prev, curr) => { + const codeAscii = Buffer.from( + curr.assetByAsset.code.substring(2), + "hex" + ).toString("utf8"); prev[`${curr.assetByAsset.code}:${curr.assetByAsset.issuer}`] = { token: { - code: curr.assetByAsset.code, + code: codeAscii, issuer: { key: curr.assetByAsset.issuer, },