Skip to content

Commit 4eadabe

Browse files
authored
add rate-x adapter (DefiLlama#11971)
1 parent a179ec0 commit 4eadabe

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

projects/rate-x/index.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const { sumTokens2 } = require("../helper/solana");
2+
3+
async function tvl(api) {
4+
return sumTokens2({
5+
tokenAccounts: [
6+
'EmLhAPj7J6LTAnomsLfZUKDtb4t2A8e6eofDSfTwMgkY',
7+
'DY3Rw6BZwf6epvWnVo8DSV6kYptEdCh7HbYmFRpdPxuH',
8+
'3CppdkMFxuz7ASS27pB35EDbwgfUhwrarFYuWDBWWwHB',
9+
'Grk7mshVug1TafphUvuYBrzwRqadtmCcf7GGPoPKkgs6',
10+
'5mB83ye3jdjneDJDx15HAvYxT7SCsGZF5urpVMzuLr1t',
11+
'4nyfJ4JBsRJLij7VGCVUeHwKSLAAku66ptJamoodY29L',
12+
'6opMSfkHgWsvG5KmZo8y2DuShaDHwXfB6VUuTx6W4Age',
13+
'4Ejjk5w7HAWvmXYT57s5uwn8rs7i61nbpcTRQ9ABB11M'
14+
],
15+
balances: api.getBalances()
16+
})
17+
}
18+
19+
module.exports = {
20+
timetravel: false,
21+
methodology: "TVL is calculated by summing the value of the traders' vault, LP vault, and earn vault.",
22+
solana: { tvl },
23+
};

0 commit comments

Comments
 (0)