Skip to content

Commit

Permalink
fix: use shiftedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Dec 16, 2024
1 parent 584d081 commit 4dbefe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/routes/ft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ const ShowRoutes: FastifyPluginCallback<Record<never, never>, 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,
Expand Down

0 comments on commit 4dbefe5

Please sign in to comment.