Skip to content

Commit 09d8f89

Browse files
v7mv7m
andauthored
Add StakeNova project (#17390)
Co-authored-by: v7m <[email protected]>
1 parent 0b80868 commit 09d8f89

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

projects/stakenova/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { sumTokens2 } = require('../helper/solana');
2+
3+
const INF_VAULT = '7MBk8DXFnZCpKDiSwEMFwtyDNqxXMdUSgm52fQ3Chit4';
4+
const USDC_VAULT = 'HVpnjWTJCDvHL2pL2LeE5Y3mLEE4hP4MwpZpBvBLHQuA';
5+
6+
async function tvl() {
7+
return sumTokens2({
8+
tokenAccounts: [INF_VAULT, USDC_VAULT],
9+
});
10+
}
11+
12+
module.exports = {
13+
methodology: 'TVL represents all user-deposited SOL plus unclaimed USDC rewards. Calculated by reading vault token balances directly on-chain.',
14+
solana: {
15+
tvl,
16+
},
17+
};

0 commit comments

Comments
 (0)