We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8b96c commit 265ddabCopy full SHA for 265ddab
projects/edgevana/index.js
@@ -0,0 +1,19 @@
1
+const { PublicKey } = require("@solana/web3.js");
2
+const { getConnection } = require("../helper/solana");
3
+
4
+async function tvl() {
5
+ const connection = getConnection();
6
+ const account = await connection.getAccountInfo(new PublicKey('edgejNWAqkePLpi5sHRxT9vHi7u3kSHP9cocABPKiWZ'))
7
+ return {
8
+ solana: Number(account.data.readBigUint64LE(258))/1e9
9
+ }
10
+}
11
12
+module.exports = {
13
+ timetravel: false,
14
+ methodology:
15
+ "Uses the SPL Stake Pool SDK to fetch the total supply of deposited SOL into the Edgevana Stake Pool",
16
+ solana: {
17
+ tvl,
18
+ },
19
+};
0 commit comments