Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions projects/securitize/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { sumTokens2, getResources } = require('../helper/chain/aptos')
const { getTokenSupplies } = require('../helper/solana');

const CONFIG = {
ethereum: [
Expand Down Expand Up @@ -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)
}
}
Loading