Skip to content

Commit

Permalink
track more sol staking projects
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki authored and tlatkdgus1 committed Nov 25, 2024
1 parent cff75bd commit ea8859c
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 22 deletions.
12 changes: 12 additions & 0 deletions projects/bonk-sol/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { getSolBalanceFromStakePool } = require('../helper/solana')

async function tvl(api) {
await getSolBalanceFromStakePool('ArAQfbzsdotoKB5jJcZa3ajQrrPcWr2YQoDAEAiFxJAC', api)
}

module.exports = {
timetravel: false,
solana: {
tvl
}
}
12 changes: 12 additions & 0 deletions projects/helius-sol/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { getSolBalanceFromStakePool } = require('../helper/solana')

async function tvl(api) {
await getSolBalanceFromStakePool('3wK2g8ZdzAH8FJ7PKr2RcvGh7V9VYson5hrVsJM5Lmws', api)
}

module.exports = {
timetravel: false,
solana: {
tvl
}
}
12 changes: 12 additions & 0 deletions projects/jupSOL/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { getSolBalanceFromStakePool } = require('../helper/solana')

async function tvl(api) {
await getSolBalanceFromStakePool('8VpRhuxa7sUUepdY3kQiTmX9rS5vx4WgaXiAnXq4KCtr', api)
}

module.exports = {
timetravel: false,
solana: {
tvl
}
}
12 changes: 12 additions & 0 deletions projects/shinobi-sol/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { getSolBalanceFromStakePool } = require('../helper/solana')

async function tvl(api) {
await getSolBalanceFromStakePool('spp1mo6shdcrRyqDK2zdurJ8H5uttZE6H6oVjHxN1QN', api)
}

module.exports = {
timetravel: false,
solana: {
tvl
}
}
36 changes: 14 additions & 22 deletions projects/solayer/index.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
const { sumTokens2, getConnection } = require("../helper/solana");
const { PublicKey } = require("@solana/web3.js");
const { sumTokens2, getSolBalanceFromStakePool } = require("../helper/solana");

async function tvl() {
const connection = getConnection();
const [account, lst] = await Promise.all([
connection.getAccountInfo(new PublicKey('po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2')),
sumTokens2({
tokensAndOwners: [
['J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn', 'GgTE2exWZ36Q82FoVgEEzEHYCfsbGjm3P6zRfx3hLUv4'],
['mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So', 'E9LmYVKU5oyjWs9Zmzv9ji8NkzhJxJQbUEH3FWDKZt8D'],
['bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1', '2DRZbbse5b5souvMQkifpS8CRBsDeLt6a9xDqqVJvmdw'],
['5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm', 'GF8jvNGY44tnCfhnzdoSUBpgfog9YnLc6BRBCnt8j9do'],
['HUBsveNpjo5pWqNkH57QzxjQASdTVXcSK7bVKTSZtcSX', '49EXLuCxc2ArgFfpJBeuci6DgULxMzrETAHpAGvsFBf1'],
['Gwa3a4VJbAyorLhn6TEeWLbQ4tWyup4E6oL3WjAga7tx', '2DriEN733SMxEzqDBVSGwev7KwcdHPXVy65sw9u5mR14']
],
})
]);

return {
solana: Number(account.data.readBigUint64LE(258)) / 1e9,
...lst
};
async function tvl(api) {
await getSolBalanceFromStakePool('po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2', api)
return sumTokens2({
tokenAccounts: [
'AGuwBAj91dgz1fhaK4qgYcH7SohyZEMK1VXTizFsWjq7',
'Q75n2KgZp7insTKkavJWftWWuGDDUuHMquosQ5hbn7G',
'HBjQ1jF2ynYFpwx46qiZsKE3rmvgEcxnkhvKeGP6omUd',
'6eLZQKhbiBNmR4PiDFJgE6TZAoH3BwR6ceVwc3K1YjBZ',
'HNw9tA7sWvjDH4cDCykj23Q4ifkKZerr6MbMfFXgyp62',
'Gwa3a4VJbAyorLhn6TEeWLbQ4tWyup4E6oL3WjAga7tx',
],
balances: api.getBalances()
})
}

module.exports = {
Expand Down
12 changes: 12 additions & 0 deletions projects/vsol/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { getSolBalanceFromStakePool } = require('../helper/solana')

async function tvl(api) {
await getSolBalanceFromStakePool('Fu9BYC6tWBo1KMKaP3CFoKfRhqv9akmy3DuYwnCyWiyC', api)
}

module.exports = {
timetravel: false,
solana: {
tvl
}
}

0 comments on commit ea8859c

Please sign in to comment.