Skip to content

Commit 8111eff

Browse files
Gathin23wyf-ACCEPT
authored andcommitted
Add Credible Finance adapter for 0G chain (DefiLlama#16851)
1 parent 0f79831 commit 8111eff

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/credible-finance/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { sumTokens2 } = require("../helper/unwrapLPs");
2+
3+
const credibleContract = "0x907F40d1D6649810E0C6C2Af5e0d42c7C10ad295";
4+
5+
const supportedTokens = [
6+
"0x1f3aa82227281ca364bfb3d253b0f1af1da6473e",
7+
"0x9cc1d782e6dfe5936204c3295cb430e641dcf300",
8+
"0x1217bfe6c773eec6cc4a38b5dc45b92292b6e189",
9+
"0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
10+
];
11+
12+
async function tvl(api) {
13+
return sumTokens2({ tokens: supportedTokens, owner: credibleContract, api });
14+
}
15+
16+
module.exports = {
17+
methodology: "TVL is calculated as all token balances held in Credible Finance's lending contract on 0G Chain, representing all deposits available for lending.",
18+
"0g": {
19+
tvl,
20+
},
21+
};

0 commit comments

Comments
 (0)