Skip to content

Commit

Permalink
chore: rename balance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
greatpie committed Aug 15, 2024
1 parent 06418a7 commit 6a3ce1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/cygnus-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ async function tonTvl() {
const cgUsdtTotalSupply = jettonResult['total_supply']

// subtract the amount of cgUSDT in the withdrawal vault
const balance = await getJettonBalance(MINTER_ADDRESS, CGUSDT_ADDRESS)
const withdrawVaultBalance = await getJettonBalance(MINTER_ADDRESS, CGUSDT_ADDRESS)

// caculate tvl
const tvl = (cgUsdtTotalSupply - balance) / 10 ** 6 * cgusdtTousdt
const tvl = (cgUsdtTotalSupply - withdrawVaultBalance) / 10 ** 6 * cgusdtTousdt
return { "coingecko:tether": tvl }
}

Expand Down

0 comments on commit 6a3ce1c

Please sign in to comment.