Skip to content

Commit fe6268f

Browse files
authored
add turboflow (#16949)
1 parent 658b4c5 commit fe6268f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

projects/turboflow/index.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { sumTokensExport } = require("../helper/sumTokens");
2+
const { sumTokens2: sumTokensSolana } = require("../helper/solana");
3+
4+
const BSC_CONTRACT = "0x145CD0d5C3dD0eF1405dCf1b4D2BCE7c611625dB";
5+
const BSC_USDT = "0x55d398326f99059ff775485246999027b3197955";
6+
const BSC_USDC = "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d";
7+
8+
const SOLANA_CONTRACT = "8iquHJQyXUq8ykTEKZjtS4wSHKnxiw4ghGWUNzPnA9Q4";
9+
const SOLANA_USDT = "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB";
10+
const SOLANA_USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
11+
12+
async function solanaTvl() {
13+
return sumTokensSolana({
14+
tokensAndOwners: [
15+
[SOLANA_USDT, SOLANA_CONTRACT],
16+
[SOLANA_USDC, SOLANA_CONTRACT],
17+
],
18+
});
19+
}
20+
21+
module.exports = {
22+
bsc: { tvl:sumTokensExport({ chain: 'bsc', owner: BSC_CONTRACT, tokens: [BSC_USDT, BSC_USDC] })},
23+
solana: {tvl:solanaTvl},
24+
methodology: "Count the total balance across all pools for all trading pairs.",
25+
}
26+

0 commit comments

Comments
 (0)