Skip to content

Commit

Permalink
Modify tvlUsd calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Noe-L-Dev committed Oct 31, 2023
1 parent 078779d commit 0f94509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptors/openleverage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const main = async () => {
chain: utils.formatChain(llama_chain_name[chain]),
project: 'openleverage',
symbol: utils.formatSymbol(poolDetails.name),
tvlUsd: (new BigNumber(poolBalance).plus(new BigNumber(totalBorrow))).multipliedBy(new BigNumber(tokenPriceInUsdt)).dividedBy(new BigNumber(10).pow(poolDetails.tokenDecimal)).toNumber(),
tvlUsd: (new BigNumber(poolBalance)).multipliedBy(new BigNumber(tokenPriceInUsdt)).dividedBy(new BigNumber(10).pow(poolDetails.tokenDecimal)).toNumber(),
apyBase: new BigNumber(poolAPYPerBlock).multipliedBy(new BigNumber(block_of_year[chain])).dividedBy(new BigNumber(10).pow(16)).toNumber(), // in % format
url: `https://${opl_chain_name[chain]}.openleverage.finance/app/pool/${pool}`,
apyReward: poolDetails.lendOleRewardApy * 100,
Expand Down

0 comments on commit 0f94509

Please sign in to comment.