Files
g1nt0ki f9f37f8d82 Tvl-v2 (#9466)
* use tvl function v2

* refactor addFundsInMasterChef

* replace usage of timestamp field

* more refactoring

* more refactoring
2024-03-21 13:56:53 +05:30

19 lines
651 B
JavaScript

const ADDRESSES = require('../helper/coreAssets.json')
const WETH = ADDRESSES.ethereum.WETH;
const USDC = ADDRESSES.ethereum.USDC;
const OSQTH = "0xf1B99e3E573A1a9C5E6B2Ce818b617F0E664E86B";
const VAULT_MATH = "0x2b1cb93B8fe1B6fB3810Ab294D681865421C4E37";
async function tvl(api) {
const fundBalances = await api.call({ abi: 'function getTotalAmounts() view returns (uint256, uint256, uint256)', target: VAULT_MATH })
api.addTokens([WETH, USDC, OSQTH], fundBalances)
}
module.exports = {
doublecounted: true,
methodology:
"Counts the amount of wETH, USDC & oSQTH in the strategy-controlled pools and treasury",
ethereum: { tvl, },
};