Skip to content

Commit

Permalink
removed borrow fields from lending protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
0xprinc authored and 0xprinc committed Jan 1, 2025
1 parent 62b9dbd commit 6bf4bab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/adaptors/fluid-lending/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ const getLendingApy = async (chain) => {
chain,
ltv: 0,
apyBase: Number((token.supplyRate / 1e2).toFixed(2)),
apyBaseBorrow: 0,
apyReward: Number((token.rewardsRate / 1e12).toFixed(2)),
apyRewardBorrow: 0,
}))
.filter((i) => utils.keepFinite(i));
} catch (error) {
Expand Down Expand Up @@ -234,10 +232,13 @@ const apy = async () => {
Promise.all(CONSTANTS.SUPPORTED_CHAINS.map(getVaultApy)),
]);
// Combine and flatten both arrays
console.log([...lendingData.flat(), ...vaultData.flat()]);
return [...lendingData.flat(), ...vaultData.flat()];
};

module.exports = {
apy,
url: 'https://fluid.instadapp.io',
};

apy();

0 comments on commit 6bf4bab

Please sign in to comment.