Skip to content

Commit

Permalink
fix: atomic amount
Browse files Browse the repository at this point in the history
  • Loading branch information
bvotteler committed Nov 22, 2023
1 parent 9ef64aa commit 3e07c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tvl_dex.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const tvlDex = async (request, response) => {
const amounts = pools.flatMap((pool) => pool.pooledCurrencies)
.map((monetaryAmount) => ({
currency: monetaryAmount.currency,
atomicAmount: monetaryAmount.toHuman(0),
atomicAmount: monetaryAmount.toString(true),
amount: monetaryAmount.toHuman()
}));

Expand Down

0 comments on commit 3e07c33

Please sign in to comment.