Skip to content

Commit

Permalink
Feat: Added Ethereum pools to Wiselending-v2 (#11721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenelyn0214 authored Sep 24, 2024
1 parent 603d08a commit c38e59f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions projects/wise-lending-v2/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ADDRESSES = require('../helper/coreAssets.json')
const ADDRESSES = require('../helper/coreAssets.json');
async function tvl(api) {
const { lending: lendingContract, tvlAddresses } = config[api.chain];

Expand All @@ -12,9 +12,9 @@ async function borrowed(api) {
abi: 'function getPseudoTotalBorrowAmount(address) view returns (uint256)',
target: lendingContract,
calls: borrowAddresses
})
});

api.add(borrowAddresses, borrowAmounts)
api.add(borrowAddresses, borrowAmounts);
}

const aavePools = [
Expand All @@ -25,13 +25,29 @@ const aavePools = [
"0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
];

const wisePools = [
ADDRESSES.ethereum.WETH,
ADDRESSES.ethereum.USDT,
ADDRESSES.ethereum.USDC,
ADDRESSES.ethereum.DAI,
ADDRESSES.ethereum.WBTC,
ADDRESSES.ethereum.WSTETH,
];


const config = {
arbitrum: {
lending: '0x9034a49587bD2c1Af27598E0f04F30Db66C87Ebf',
feeManager: '0x90a022796798f9dbA1Da0f8645234B284d4E8EC6',
tvlAddresses: aavePools,
borrowAddresses: aavePools
},
ethereum: {
lending: '0x78190e4c7C7B2c2C3b0562F1f155a1FC2F5160CA',
feeManager: '0x0bc24e61daad6293a1b3b53a7d01086bff0ea6e5',
tvlAddresses: wisePools,
borrowAddresses: wisePools
},
};

Object.keys(config).forEach(chain => {
Expand Down

0 comments on commit c38e59f

Please sign in to comment.