mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 05:15:28 +08:00
* gomble: add testAuction tvl * Add Test Auction TVL and Pull Request MD * revert change to pull_request_template.md * Update index.js --------- Co-authored-by: agwab <leesd556@gmail.com> Co-authored-by: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com>
16 lines
697 B
JavaScript
16 lines
697 B
JavaScript
const ADDRESSES = require('../helper/coreAssets.json')
|
|
const stakingContractAddress = '0xAB8c9Eb287796F075C821ffafBaC5FeDAa4604d5';
|
|
const testAuctionContractAddress = '0xe619F1DF06EeaAF443dFC5c09cc96e2C7C91d130';
|
|
|
|
async function tvl(api) {
|
|
const tokens = await api.call({ abi: 'address[]:getRegisteredTokens', target: stakingContractAddress })
|
|
const vTokens = await api.multiCall({ abi: 'function getRegisteredVToken(address) view returns (address)', calls: tokens, target: stakingContractAddress })
|
|
await api.sumTokens({ owners: [stakingContractAddress, testAuctionContractAddress], tokens: vTokens.concat(tokens).concat([ADDRESSES.null]) });
|
|
}
|
|
|
|
module.exports = {
|
|
bsc: {
|
|
tvl,
|
|
},
|
|
}
|