Skip to content

Commit befa8a9

Browse files
authored
Updating BUIDL index.js with Solana (#15997)
1 parent 6a48ecb commit befa8a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

projects/securitize/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { sumTokens2, getResources } = require('../helper/chain/aptos')
2+
const { getTokenSupplies } = require('../helper/solana');
23

34
const CONFIG = {
45
ethereum: [
@@ -27,4 +28,14 @@ module.exports.aptos = {
2728
const supply = res.find(i => i.type === '0x4de5876d8a8e2be7af6af9f3ca94d9e4fafb24b5f4a5848078d8eb08f08e808a::ds_token::TokenData').data.total_issued
2829
api.add('ethereum:0x7712c34205737192402172409a8f7ccef8aa2aec', supply, { skipChain: true })
2930
}
31+
}
32+
33+
34+
module.exports.solana = {
35+
tvl: async (api) => {
36+
const mints = ['GyWgeqpy5GueU2YbkE8xqUeVEokCMMCEeUrfbtMw6phr']
37+
const res = await getTokenSupplies(mints, api.chain) // align with aptos style of passing api.chain
38+
const supply = res[mints[0]]
39+
api.add(mints[0], supply)
40+
}
3041
}

0 commit comments

Comments
 (0)