Skip to content

Commit 0ed0448

Browse files
0xpeluche0xpeluche
andauthored
small fix on morpho-blue (DefiLlama#11525)
Co-authored-by: 0xpeluche <[email protected]>
1 parent b273826 commit 0ed0448

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/morpho-blue/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ const config = {
1212
},
1313
base: {
1414
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
15+
blackList: ['0x6ee1955afb64146b126162b4ff018db1eb8f08c3'],
1516
fromBlock: 13977148,
1617
},
1718
};
1819

19-
Object.keys(config).forEach((chain) => {
20-
const { morphoBlue, fromBlock } = config[chain];
20+
Object.keys(config).forEach((chain) => {
21+
const { morphoBlue, fromBlock, blackList = [] } = config[chain];
2122
module.exports[chain] = {
2223
tvl: async (api) => {
2324
const marketIds = await getMarkets(api);
@@ -30,7 +31,7 @@ Object.keys(config).forEach((chain) => {
3031
)
3132
.map((i) => [i.collateralToken, i.loanToken])
3233
.flat();
33-
return api.sumTokens({ owner: morphoBlue, tokens });
34+
return api.sumTokens({ owner: morphoBlue, tokens, blacklistedTokens: blackList });
3435
},
3536
borrowed: async (api) => {
3637
const marketIds = await getMarkets(api);

0 commit comments

Comments
 (0)