mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 22:43:12 +08:00
18 lines
550 B
JavaScript
18 lines
550 B
JavaScript
const { getConfig } = require('./helper/cache')
|
|
const { sumTokens2 } = require('./helper/solana')
|
|
|
|
async function staking() {
|
|
const { data } = await getConfig('only1-solana',"https://api-edge.only1.app/staking-pools")
|
|
|
|
const owners = data.map(i => i.publicKey)
|
|
return sumTokens2({ tokens: ['3bRTivrVsitbmCTGtqwp7hxXPsybkjn4XLNtPsHqa3zR'], owners, computeTokenAccount: true, })
|
|
}
|
|
|
|
module.exports = {
|
|
timetravel: false,
|
|
methodology: "TVL is the sum of all tokens in the staking pools",
|
|
solana: {
|
|
staking,
|
|
tvl: async () => ({})
|
|
}
|
|
} |