mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
21 lines
553 B
JavaScript
21 lines
553 B
JavaScript
const ADDRESSES = require('../helper/coreAssets.json')
|
|
const MINT_TOKEN_CONTRACT = ADDRESSES.filecoin.WFIL;
|
|
const MINT_CLUB_BOND_CONTRACT = '0x7187b3B1314375909B775d72fB7214Cb71a7D907';
|
|
|
|
|
|
async function tvl(api) {
|
|
const collateralBalance = await api.call({
|
|
abi: 'erc20:balanceOf',
|
|
target: MINT_TOKEN_CONTRACT,
|
|
params: [MINT_CLUB_BOND_CONTRACT],
|
|
});
|
|
|
|
api.add(MINT_TOKEN_CONTRACT, collateralBalance)
|
|
}
|
|
|
|
module.exports = {
|
|
methodology: 'counts the number of MINT tokens in the Club Bonding contract.',
|
|
filecoin: {
|
|
tvl,
|
|
}
|
|
};
|