Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gidonkatten committed Jan 30, 2025
1 parent b52c528 commit 33a6c88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lend/amm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function retrievePactLendingPoolInfo(
const tvlUsd = Number(pactPoolData?.["tvl_usd"] || 0);

// lending pool deposit interest and additional interest
const commonLendingPoolInterest = getCommonLendingPoolInterest(lendingPool, poolManagerInfo, additionalInterests);
const commonLendingPoolInterest = getDepositAndAdditionalInterest(lendingPool, poolManagerInfo, additionalInterests);

return {
...commonLendingPoolInterest,
Expand Down Expand Up @@ -105,7 +105,7 @@ async function retrieveTinymanLendingPoolInfo(
const tvlUsd = Number(tmPoolData?.["liquidity_in_usd"] || 0);

// lending pool deposit interest and additional interest
const commonLendingPoolInterest = getCommonLendingPoolInterest(lendingPool, poolManagerInfo, additionalInterests);
const commonLendingPoolInterest = getDepositAndAdditionalInterest(lendingPool, poolManagerInfo, additionalInterests);

return {
...commonLendingPoolInterest,
Expand All @@ -121,7 +121,7 @@ async function retrieveTinymanLendingPoolInfo(
};
}

function getCommonLendingPoolInterest(
function getDepositAndAdditionalInterest(
lendingPool: LendingPool,
poolManagerInfo: PoolManagerInfo,
additionalInterests?: AssetsAdditionalInterest,
Expand Down

0 comments on commit 33a6c88

Please sign in to comment.