Skip to content

Commit

Permalink
Fix decimals issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpeluche committed Dec 10, 2024
1 parent 39637c3 commit 000b51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/franklinTempleton-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const BENJI = {
const stellarTvl = async (api) => {
const stellarApi = `https://api.stellar.expert/explorer/public/asset/${BENJI[api.chain].ticker}-${BENJI[api.chain].address}`
const response = await fetch(stellarApi)
const {supply, toml_info} = await response.json()
const adjustedSupply = toUSDTBalances((supply / Math.pow(10, toml_info.decimals)))
const {supply} = await response.json()
const adjustedSupply = toUSDTBalances((supply / Math.pow(10, 7)))
const [[tokenAddress, tokenBalance]] = Object.entries(adjustedSupply);
return api.add(tokenAddress, tokenBalance, { skipChain: true })
}
Expand Down

0 comments on commit 000b51e

Please sign in to comment.