diff --git a/projects/securitize/index.js b/projects/securitize/index.js index f6b4bb9bf2..9c91d632c7 100644 --- a/projects/securitize/index.js +++ b/projects/securitize/index.js @@ -1,4 +1,5 @@ const { sumTokens2, getResources } = require('../helper/chain/aptos') +const { getTokenSupplies } = require('../helper/solana'); const CONFIG = { ethereum: [ @@ -27,4 +28,14 @@ module.exports.aptos = { const supply = res.find(i => i.type === '0x4de5876d8a8e2be7af6af9f3ca94d9e4fafb24b5f4a5848078d8eb08f08e808a::ds_token::TokenData').data.total_issued api.add('ethereum:0x7712c34205737192402172409a8f7ccef8aa2aec', supply, { skipChain: true }) } +} + + +module.exports.solana = { + tvl: async (api) => { + const mints = ['GyWgeqpy5GueU2YbkE8xqUeVEokCMMCEeUrfbtMw6phr'] + const res = await getTokenSupplies(mints, api.chain) // align with aptos style of passing api.chain + const supply = res[mints[0]] + api.add(mints[0], supply) + } } \ No newline at end of file