mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
const { getAPI } = require('./api')
|
|
|
|
|
|
async function staking(chain) {
|
|
const api = await getAPI(chain)
|
|
const data = await api.query.tokens.totalIssuance( { LiquidCrowdLoan: '13' } )
|
|
|
|
return {
|
|
polkadot: data/1e10
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
staking,
|
|
} |