mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 05:15:28 +08:00
21 lines
466 B
JavaScript
21 lines
466 B
JavaScript
const ADDRESSES = require('../helper/coreAssets.json')
|
|
|
|
const WKAVA = ADDRESSES.kava.WKAVA;
|
|
const STRATEGY_CONTRACT = '0x9633a42E4f73F465DD421b22C09E2787493DaAdA'
|
|
|
|
async function tvl(api) {
|
|
const strategyBalance = await api.call({
|
|
abi: 'erc20:balanceOf',
|
|
target: WKAVA,
|
|
params: [STRATEGY_CONTRACT],
|
|
});
|
|
|
|
api.add(WKAVA, strategyBalance)
|
|
}
|
|
|
|
module.exports = {
|
|
methodology: 'gets the balance of the strategy contract',
|
|
kava: {
|
|
tvl,
|
|
}
|
|
};
|