Skip to content

Commit 265ddab

Browse files
authored
adding edgevana adapter (DefiLlama#8954)
1 parent 8e8b96c commit 265ddab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

projects/edgevana/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)