From 4dbefe5d38feb8769d57e5e57cf353993c2676b6 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Mon, 16 Dec 2024 11:09:25 -0600 Subject: [PATCH] fix: use shiftedBy --- src/api/routes/ft.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/routes/ft.ts b/src/api/routes/ft.ts index f0b47f0..a464045 100644 --- a/src/api/routes/ft.ts +++ b/src/api/routes/ft.ts @@ -131,8 +131,8 @@ const ShowRoutes: FastifyPluginCallback, Server, TypeBoxTyp total_supply: decimals != undefined && total_supply != undefined ? BigNumber(total_supply) - .dividedBy(10 ** decimals) - .toFixed(decimals) + .shiftedBy(-1 * decimals) + .toString() : undefined, token_uri: metadataBundle?.token?.uri ?? undefined, description: metadataBundle?.metadataLocale?.metadata?.description ?? undefined,